@apteva/integrations 0.3.2 → 0.3.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apteva/integrations",
3
- "version": "0.3.2",
3
+ "version": "0.3.3",
4
4
  "description": "Local integrations, connections, and webhooks for Apteva. Self-contained app templates, OAuth engine, and trigger provider.",
5
5
  "author": "Apteva <hello@apteva.com>",
6
6
  "license": "Elastic-2.0",
@@ -1,788 +0,0 @@
1
- {
2
- "slug": "omnikit-storage",
3
- "name": "OmniKit Storage",
4
- "description": "Comprehensive file storage and management system with bucket organization, folder hierarchy, and multipart upload support",
5
- "logo": "https://cdn.omnikit.co/cdn/project-10/public/10_1770556267491_eecb0n/603050903_10162713420734412_6016628635295692734_n.jpg",
6
- "categories": [
7
- "storage",
8
- "files",
9
- "documents",
10
- "media",
11
- "backup",
12
- "cloud",
13
- "omnikit"
14
- ],
15
- "base_url": "https://api.omnikit.co",
16
- "auth": {
17
- "types": [
18
- "bearer"
19
- ],
20
- "headers": {
21
- "Authorization": "Bearer {{token}}"
22
- },
23
- "credential_fields": [
24
- {
25
- "name": "token",
26
- "label": "API Key"
27
- }
28
- ]
29
- },
30
- "tools": [
31
- {
32
- "name": "list_files",
33
- "description": "List files with advanced filtering, sorting, and pagination",
34
- "method": "GET",
35
- "path": "/storage/files",
36
- "input_schema": {
37
- "type": "object",
38
- "properties": {
39
- "bucket_id": {
40
- "type": "integer",
41
- "description": "Filter by storage bucket"
42
- },
43
- "folder_id": {
44
- "type": "integer",
45
- "description": "Filter by folder"
46
- },
47
- "file_type": {
48
- "type": "string",
49
- "enum": [
50
- "image",
51
- "video",
52
- "audio",
53
- "document",
54
- "archive",
55
- "other"
56
- ],
57
- "description": "Filter by file type"
58
- },
59
- "mime_type": {
60
- "type": "string",
61
- "description": "Filter by MIME type pattern"
62
- },
63
- "extension": {
64
- "type": "string",
65
- "description": "Filter by file extension"
66
- },
67
- "search": {
68
- "type": "string",
69
- "description": "Search in file names and descriptions"
70
- },
71
- "access_level": {
72
- "type": "string",
73
- "enum": [
74
- "private",
75
- "public"
76
- ],
77
- "description": "Filter by access level"
78
- },
79
- "created_by": {
80
- "type": "string",
81
- "description": "Filter by creator user ID"
82
- },
83
- "min_size": {
84
- "type": "integer",
85
- "description": "Minimum file size in bytes"
86
- },
87
- "max_size": {
88
- "type": "integer",
89
- "description": "Maximum file size in bytes"
90
- },
91
- "min_width": {
92
- "type": "integer",
93
- "description": "Minimum image/video width"
94
- },
95
- "max_width": {
96
- "type": "integer",
97
- "description": "Maximum image/video width"
98
- },
99
- "min_height": {
100
- "type": "integer",
101
- "description": "Minimum image/video height"
102
- },
103
- "max_height": {
104
- "type": "integer",
105
- "description": "Maximum image/video height"
106
- },
107
- "min_duration": {
108
- "type": "number",
109
- "description": "Minimum duration in seconds (video/audio)"
110
- },
111
- "max_duration": {
112
- "type": "number",
113
- "description": "Maximum duration in seconds (video/audio)"
114
- },
115
- "status": {
116
- "type": "string",
117
- "description": "Filter by processing status"
118
- },
119
- "processing_status": {
120
- "type": "string",
121
- "description": "Filter by processing status"
122
- },
123
- "has_thumbnails": {
124
- "type": "boolean",
125
- "description": "Filter files with/without thumbnails"
126
- },
127
- "created_after": {
128
- "type": "string",
129
- "format": "date-time",
130
- "description": "Filter files created after date"
131
- },
132
- "created_before": {
133
- "type": "string",
134
- "format": "date-time",
135
- "description": "Filter files created before date"
136
- },
137
- "uploaded_after": {
138
- "type": "string",
139
- "format": "date-time",
140
- "description": "Filter files uploaded after date"
141
- },
142
- "uploaded_before": {
143
- "type": "string",
144
- "format": "date-time",
145
- "description": "Filter files uploaded before date"
146
- },
147
- "is_shared": {
148
- "type": "boolean",
149
- "description": "Filter shared files"
150
- },
151
- "limit": {
152
- "type": "integer",
153
- "minimum": 1,
154
- "maximum": 1000,
155
- "default": 50,
156
- "description": "Number of files to return"
157
- },
158
- "offset": {
159
- "type": "integer",
160
- "minimum": 0,
161
- "default": 0,
162
- "description": "Pagination offset"
163
- },
164
- "sort_by": {
165
- "type": "string",
166
- "enum": [
167
- "name",
168
- "size",
169
- "created_at",
170
- "updated_at",
171
- "downloads",
172
- "views"
173
- ],
174
- "default": "created_at",
175
- "description": "Sort field"
176
- },
177
- "sort_order": {
178
- "type": "string",
179
- "enum": [
180
- "asc",
181
- "desc"
182
- ],
183
- "default": "desc",
184
- "description": "Sort direction"
185
- },
186
- "include_storage_info": {
187
- "type": "boolean",
188
- "default": false,
189
- "description": "Include storage backend info"
190
- },
191
- "include_metadata": {
192
- "type": "boolean",
193
- "default": false,
194
- "description": "Include file metadata"
195
- }
196
- }
197
- }
198
- },
199
- {
200
- "name": "search_files",
201
- "description": "Search and filter files in storage. Use 'file_type' to filter by type (image, video, audio, document, archive). Use 'content_rating' with 'sfw' for safe-for-work only. Use 'sort_by' with 'random' for random results. Use 'search' to find files by name/description. Use 'folder' to search within a specific folder by name. Supports filtering by format (portrait/landscape/square), dimensions, duration, size, dates, and more.",
202
- "method": "GET",
203
- "path": "/storage/search",
204
- "input_schema": {
205
- "type": "object",
206
- "properties": {
207
- "folder": {
208
- "type": "string",
209
- "description": "Search within a folder by name, path, or ID. Includes all subfolders by default."
210
- },
211
- "recursive": {
212
- "type": "boolean",
213
- "default": true,
214
- "description": "When searching in a folder, include files from all subfolders (default: true)"
215
- },
216
- "bucket_id": {
217
- "type": "integer",
218
- "description": "Filter by storage bucket ID"
219
- },
220
- "folder_id": {
221
- "type": "integer",
222
- "description": "Filter by folder ID directly"
223
- },
224
- "search": {
225
- "type": "string",
226
- "description": "Search in file names, descriptions, and tags"
227
- },
228
- "name_contains": {
229
- "type": "string",
230
- "description": "Search specifically in file names only"
231
- },
232
- "file_type": {
233
- "type": "string",
234
- "enum": [
235
- "image",
236
- "video",
237
- "audio",
238
- "document",
239
- "archive",
240
- "other"
241
- ],
242
- "description": "Filter by file type. Use 'image' for pictures/photos, 'video' for videos, 'audio' for audio files, 'document' for PDFs/docs."
243
- },
244
- "mime_type": {
245
- "type": "string",
246
- "description": "Filter by exact MIME type (e.g. 'image/png', 'video/mp4')"
247
- },
248
- "extension": {
249
- "type": "string",
250
- "description": "Filter by file extension (e.g. 'jpg', 'pdf', 'mp4')"
251
- },
252
- "status": {
253
- "type": "string",
254
- "enum": [
255
- "uploading",
256
- "processing",
257
- "completed",
258
- "failed"
259
- ],
260
- "description": "Filter by file processing status"
261
- },
262
- "access_level": {
263
- "type": "string",
264
- "enum": [
265
- "public",
266
- "private",
267
- "restricted"
268
- ],
269
- "description": "Filter by access level"
270
- },
271
- "content_rating": {
272
- "type": "string",
273
- "enum": [
274
- "sfw",
275
- "nsfw",
276
- "suggestive",
277
- "adult",
278
- "explicit"
279
- ],
280
- "description": "Filter by content safety rating. 'sfw' returns only safe-for-work files. 'nsfw' returns everything except safe (suggestive + adult + explicit). Or filter by exact rating: 'suggestive' (mild/implied), 'adult' (18+), 'explicit' (graphic). Files without a rating are excluded."
281
- },
282
- "format": {
283
- "type": "string",
284
- "enum": [
285
- "portrait",
286
- "landscape",
287
- "square"
288
- ],
289
- "description": "Filter by aspect ratio format (portrait, landscape, or square)"
290
- },
291
- "has_thumbnails": {
292
- "type": "boolean",
293
- "description": "Filter files with/without thumbnails"
294
- },
295
- "min_size": {
296
- "type": "integer",
297
- "description": "Minimum file size in bytes"
298
- },
299
- "max_size": {
300
- "type": "integer",
301
- "description": "Maximum file size in bytes"
302
- },
303
- "min_width": {
304
- "type": "integer",
305
- "description": "Minimum image/video width in pixels"
306
- },
307
- "max_width": {
308
- "type": "integer",
309
- "description": "Maximum image/video width in pixels"
310
- },
311
- "min_height": {
312
- "type": "integer",
313
- "description": "Minimum image/video height in pixels"
314
- },
315
- "max_height": {
316
- "type": "integer",
317
- "description": "Maximum image/video height in pixels"
318
- },
319
- "min_duration": {
320
- "type": "number",
321
- "description": "Minimum duration in seconds (video/audio)"
322
- },
323
- "max_duration": {
324
- "type": "number",
325
- "description": "Maximum duration in seconds (video/audio)"
326
- },
327
- "created_after": {
328
- "type": "string",
329
- "format": "date-time",
330
- "description": "Filter files created after this ISO date"
331
- },
332
- "created_before": {
333
- "type": "string",
334
- "format": "date-time",
335
- "description": "Filter files created before this ISO date"
336
- },
337
- "sort_by": {
338
- "type": "string",
339
- "enum": [
340
- "name",
341
- "size_bytes",
342
- "created_at",
343
- "uploaded_at",
344
- "file_type",
345
- "extension",
346
- "width",
347
- "height",
348
- "duration",
349
- "random"
350
- ],
351
- "default": "created_at",
352
- "description": "Sort field. Use 'random' to get random files."
353
- },
354
- "sort_order": {
355
- "type": "string",
356
- "enum": [
357
- "asc",
358
- "desc"
359
- ],
360
- "default": "desc",
361
- "description": "Sort direction"
362
- },
363
- "limit": {
364
- "type": "integer",
365
- "minimum": 1,
366
- "maximum": 1000,
367
- "default": 50,
368
- "description": "Number of files to return"
369
- },
370
- "offset": {
371
- "type": "integer",
372
- "minimum": 0,
373
- "default": 0,
374
- "description": "Pagination offset"
375
- },
376
- "include_metadata": {
377
- "type": "boolean",
378
- "default": false,
379
- "description": "Include file metadata in response"
380
- },
381
- "include_thumbnails": {
382
- "type": "boolean",
383
- "default": false,
384
- "description": "Include thumbnail information"
385
- }
386
- }
387
- }
388
- },
389
- {
390
- "name": "update_file_metadata",
391
- "description": "Update file metadata, permissions, or content",
392
- "method": "PUT",
393
- "path": "/storage/files/%7B%7Bid%7D%7D",
394
- "input_schema": {
395
- "type": "object",
396
- "properties": {
397
- "id": {
398
- "type": "integer",
399
- "description": "File ID to update"
400
- },
401
- "name": {
402
- "type": "string",
403
- "description": "New file name"
404
- },
405
- "description": {
406
- "type": "string",
407
- "description": "New description"
408
- },
409
- "alt_text": {
410
- "type": "string",
411
- "description": "New alt text"
412
- },
413
- "caption": {
414
- "type": "string",
415
- "description": "New caption"
416
- },
417
- "folder_id": {
418
- "type": "integer",
419
- "description": "Move to different folder"
420
- },
421
- "tags": {
422
- "type": "array",
423
- "items": {
424
- "type": "string"
425
- },
426
- "description": "Update tags"
427
- },
428
- "metadata": {
429
- "type": "object",
430
- "description": "Additional metadata"
431
- },
432
- "access_level": {
433
- "type": "string",
434
- "enum": [
435
- "private",
436
- "public"
437
- ],
438
- "description": "Update access level"
439
- }
440
- },
441
- "required": [
442
- "id"
443
- ]
444
- }
445
- },
446
- {
447
- "name": "delete_file",
448
- "description": "Delete a file from storage",
449
- "method": "DELETE",
450
- "path": "/storage/files/%7B%7Bid%7D%7D",
451
- "input_schema": {
452
- "type": "object",
453
- "properties": {
454
- "id": {
455
- "type": "integer",
456
- "description": "File ID to delete"
457
- },
458
- "force": {
459
- "type": "boolean",
460
- "default": false,
461
- "description": "Force delete without trash"
462
- }
463
- },
464
- "required": [
465
- "id"
466
- ]
467
- }
468
- },
469
- {
470
- "name": "get_file_info",
471
- "description": "Get detailed metadata about a file including optional transcript with timecoded segments and thumbnails",
472
- "method": "GET",
473
- "path": "/storage/files/%7B%7Bid%7D%7D",
474
- "input_schema": {
475
- "type": "object",
476
- "properties": {
477
- "id": {
478
- "type": "integer",
479
- "description": "File ID"
480
- },
481
- "include_storage_info": {
482
- "type": "boolean",
483
- "default": false,
484
- "description": "Include storage backend information"
485
- },
486
- "include_transcripts": {
487
- "type": "boolean",
488
- "default": false,
489
- "description": "Include transcript metadata (for video/audio files)"
490
- },
491
- "include_transcript_segments": {
492
- "type": "boolean",
493
- "default": false,
494
- "description": "Include transcript segments with timecodes"
495
- },
496
- "include_thumbnails": {
497
- "type": "boolean",
498
- "default": false,
499
- "description": "Include thumbnail URLs with timestamps"
500
- }
501
- },
502
- "required": [
503
- "id"
504
- ]
505
- }
506
- },
507
- {
508
- "name": "create_folder",
509
- "description": "Create a new folder for organizing files",
510
- "method": "POST",
511
- "path": "/storage/folders",
512
- "input_schema": {
513
- "type": "object",
514
- "properties": {
515
- "name": {
516
- "type": "string",
517
- "description": "Name of the folder"
518
- },
519
- "parent_id": {
520
- "type": "integer",
521
- "description": "Parent folder ID (for nested folders)"
522
- },
523
- "bucket_id": {
524
- "type": "integer",
525
- "description": "Storage bucket ID (optional)"
526
- },
527
- "description": {
528
- "type": "string",
529
- "description": "Folder description"
530
- },
531
- "folder_type": {
532
- "type": "string",
533
- "enum": [
534
- "standard",
535
- "archive",
536
- "temp"
537
- ],
538
- "default": "standard",
539
- "description": "Type of folder"
540
- },
541
- "access_level": {
542
- "type": "string",
543
- "enum": [
544
- "private",
545
- "public"
546
- ],
547
- "default": "private",
548
- "description": "Folder access level"
549
- },
550
- "tags": {
551
- "type": "array",
552
- "items": {
553
- "type": "string"
554
- },
555
- "description": "Tags for categorization"
556
- }
557
- },
558
- "required": [
559
- "name"
560
- ]
561
- }
562
- },
563
- {
564
- "name": "list_folders",
565
- "description": "List folders in a bucket or parent folder",
566
- "method": "GET",
567
- "path": "/storage/folders",
568
- "input_schema": {
569
- "type": "object",
570
- "properties": {
571
- "parent_id": {
572
- "type": "integer",
573
- "description": "Parent folder ID (null for root)"
574
- },
575
- "bucket_id": {
576
- "type": "integer",
577
- "description": "Storage bucket ID (optional)"
578
- },
579
- "folder_type": {
580
- "type": "string",
581
- "enum": [
582
- "standard",
583
- "archive",
584
- "temp"
585
- ],
586
- "description": "Filter by folder type"
587
- },
588
- "access_level": {
589
- "type": "string",
590
- "enum": [
591
- "private",
592
- "public"
593
- ],
594
- "description": "Filter by access level"
595
- },
596
- "include_children": {
597
- "type": "boolean",
598
- "default": false,
599
- "description": "Include child folders"
600
- },
601
- "include_file_count": {
602
- "type": "boolean",
603
- "default": false,
604
- "description": "Include count of files in each folder"
605
- },
606
- "search": {
607
- "type": "string",
608
- "description": "Search folder names"
609
- },
610
- "limit": {
611
- "type": "integer",
612
- "minimum": 1,
613
- "maximum": 1000,
614
- "default": 100,
615
- "description": "Number of folders to return"
616
- },
617
- "offset": {
618
- "type": "integer",
619
- "minimum": 0,
620
- "default": 0,
621
- "description": "Pagination offset"
622
- },
623
- "order_by": {
624
- "type": "string",
625
- "enum": [
626
- "name",
627
- "created_at",
628
- "updated_at"
629
- ],
630
- "default": "name",
631
- "description": "Sort field"
632
- },
633
- "order_direction": {
634
- "type": "string",
635
- "enum": [
636
- "ASC",
637
- "DESC"
638
- ],
639
- "default": "ASC",
640
- "description": "Sort direction"
641
- }
642
- }
643
- }
644
- },
645
- {
646
- "name": "create_bucket",
647
- "description": "Create a new storage bucket for organizing files",
648
- "method": "POST",
649
- "path": "/storage/buckets",
650
- "input_schema": {
651
- "type": "object",
652
- "properties": {
653
- "name": {
654
- "type": "string",
655
- "description": "Bucket name (must be unique)"
656
- },
657
- "region": {
658
- "type": "string",
659
- "default": "us-east-1",
660
- "description": "Storage region"
661
- },
662
- "settings": {
663
- "type": "object",
664
- "description": "Additional bucket settings"
665
- },
666
- "is_default": {
667
- "type": "boolean",
668
- "default": false,
669
- "description": "Set as default bucket for project"
670
- }
671
- },
672
- "required": [
673
- "name"
674
- ]
675
- }
676
- },
677
- {
678
- "name": "list_buckets",
679
- "description": "List all storage buckets with statistics",
680
- "method": "GET",
681
- "path": "/storage/buckets",
682
- "input_schema": {
683
- "type": "object",
684
- "properties": {
685
- "include_stats": {
686
- "type": "boolean",
687
- "default": false,
688
- "description": "Include storage statistics"
689
- },
690
- "limit": {
691
- "type": "integer",
692
- "minimum": 1,
693
- "maximum": 1000,
694
- "default": 100,
695
- "description": "Number of buckets to return"
696
- },
697
- "offset": {
698
- "type": "integer",
699
- "minimum": 0,
700
- "default": 0,
701
- "description": "Pagination offset"
702
- }
703
- }
704
- }
705
- },
706
- {
707
- "name": "upload_file",
708
- "description": "Upload a file to storage with metadata. Accepts either base64-encoded file data OR a public URL to fetch the file from.",
709
- "method": "POST",
710
- "path": "/storage/upload",
711
- "input_schema": {
712
- "type": "object",
713
- "properties": {
714
- "file_data": {
715
- "type": "string",
716
- "description": "File data as base64-encoded string. Provide EITHER file_data OR source_url (not both)."
717
- },
718
- "source_url": {
719
- "type": "string",
720
- "format": "uri",
721
- "description": "Public URL to fetch the file from. Provide EITHER source_url OR file_data (not both)."
722
- },
723
- "file_name": {
724
- "type": "string",
725
- "description": "Name of the file including extension"
726
- },
727
- "mime_type": {
728
- "type": "string",
729
- "description": "MIME type of the file (e.g., 'image/png'). Auto-detected from URL if not provided."
730
- },
731
- "folder_id": {
732
- "type": "string",
733
- "description": "Folder ID to store file in (optional)"
734
- },
735
- "bucket_id": {
736
- "type": "string",
737
- "description": "Bucket ID to use (optional, uses default bucket)"
738
- },
739
- "description": {
740
- "type": "string",
741
- "description": "File description"
742
- },
743
- "alt_text": {
744
- "type": "string",
745
- "description": "Alt text for images"
746
- },
747
- "caption": {
748
- "type": "string",
749
- "description": "Caption for the file"
750
- },
751
- "tags": {
752
- "type": "array",
753
- "items": {
754
- "type": "string"
755
- },
756
- "description": "Tags for organizing the file"
757
- },
758
- "metadata": {
759
- "type": "object",
760
- "description": "Custom metadata object"
761
- },
762
- "access_level": {
763
- "type": "string",
764
- "enum": [
765
- "private",
766
- "public"
767
- ],
768
- "default": "public",
769
- "description": "File access level"
770
- },
771
- "skip_thumbnails": {
772
- "type": "boolean",
773
- "default": false,
774
- "description": "Skip thumbnail generation for images/videos"
775
- },
776
- "auto_transcribe": {
777
- "type": "boolean",
778
- "default": true,
779
- "description": "Auto-generate transcripts for audio/video files"
780
- }
781
- },
782
- "required": [
783
- "file_name"
784
- ]
785
- }
786
- }
787
- ]
788
- }