@apteva/integrations 0.3.34 → 0.3.35
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.
|
|
3
|
+
"version": "0.3.35",
|
|
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",
|
|
@@ -646,6 +646,173 @@
|
|
|
646
646
|
"messages"
|
|
647
647
|
]
|
|
648
648
|
}
|
|
649
|
+
},
|
|
650
|
+
{
|
|
651
|
+
"name": "create_script",
|
|
652
|
+
"description": "Create a new script for audio/speech generation. Write text content, assign a voice, and configure output settings. Use generate-script to produce the audio.",
|
|
653
|
+
"method": "POST",
|
|
654
|
+
"path": "/ai/scripts",
|
|
655
|
+
"input_schema": {
|
|
656
|
+
"type": "object",
|
|
657
|
+
"properties": {
|
|
658
|
+
"title": {
|
|
659
|
+
"type": "string",
|
|
660
|
+
"description": "Script title"
|
|
661
|
+
},
|
|
662
|
+
"content": {
|
|
663
|
+
"type": "string",
|
|
664
|
+
"description": "The text content to be converted to speech"
|
|
665
|
+
},
|
|
666
|
+
"voiceId": {
|
|
667
|
+
"type": "string",
|
|
668
|
+
"description": "Voice ID from list-voices (optional, can set later)"
|
|
669
|
+
},
|
|
670
|
+
"voiceSettings": {
|
|
671
|
+
"type": "object",
|
|
672
|
+
"description": "Voice settings: stability, similarity_boost, etc. (optional)"
|
|
673
|
+
},
|
|
674
|
+
"outputType": {
|
|
675
|
+
"type": "string",
|
|
676
|
+
"enum": [
|
|
677
|
+
"audio",
|
|
678
|
+
"video"
|
|
679
|
+
],
|
|
680
|
+
"default": "audio",
|
|
681
|
+
"description": "Output type"
|
|
682
|
+
}
|
|
683
|
+
},
|
|
684
|
+
"required": [
|
|
685
|
+
"title",
|
|
686
|
+
"content"
|
|
687
|
+
]
|
|
688
|
+
}
|
|
689
|
+
},
|
|
690
|
+
{
|
|
691
|
+
"name": "list_scripts",
|
|
692
|
+
"description": "List all scripts with optional filtering by status. Returns title, content preview, voice assignment, and generation status.",
|
|
693
|
+
"method": "GET",
|
|
694
|
+
"path": "/ai/scripts",
|
|
695
|
+
"input_schema": {
|
|
696
|
+
"type": "object",
|
|
697
|
+
"properties": {
|
|
698
|
+
"limit": {
|
|
699
|
+
"type": "integer",
|
|
700
|
+
"default": 50,
|
|
701
|
+
"description": "Max results"
|
|
702
|
+
},
|
|
703
|
+
"offset": {
|
|
704
|
+
"type": "integer",
|
|
705
|
+
"default": 0,
|
|
706
|
+
"description": "Pagination offset"
|
|
707
|
+
}
|
|
708
|
+
}
|
|
709
|
+
}
|
|
710
|
+
},
|
|
711
|
+
{
|
|
712
|
+
"name": "get_script",
|
|
713
|
+
"description": "Get a script by ID with full content, voice settings, and generation history.",
|
|
714
|
+
"method": "GET",
|
|
715
|
+
"path": "/ai/scripts/{id}",
|
|
716
|
+
"input_schema": {
|
|
717
|
+
"type": "object",
|
|
718
|
+
"properties": {
|
|
719
|
+
"id": {
|
|
720
|
+
"type": "string",
|
|
721
|
+
"description": "Script ID"
|
|
722
|
+
}
|
|
723
|
+
},
|
|
724
|
+
"required": [
|
|
725
|
+
"id"
|
|
726
|
+
]
|
|
727
|
+
}
|
|
728
|
+
},
|
|
729
|
+
{
|
|
730
|
+
"name": "update_script",
|
|
731
|
+
"description": "Update a script's title, content, voice, or settings. Only provided fields are changed.",
|
|
732
|
+
"method": "PUT",
|
|
733
|
+
"path": "/ai/scripts/{id}",
|
|
734
|
+
"input_schema": {
|
|
735
|
+
"type": "object",
|
|
736
|
+
"properties": {
|
|
737
|
+
"id": {
|
|
738
|
+
"type": "string",
|
|
739
|
+
"description": "Script ID"
|
|
740
|
+
},
|
|
741
|
+
"title": {
|
|
742
|
+
"type": "string",
|
|
743
|
+
"description": "New title"
|
|
744
|
+
},
|
|
745
|
+
"content": {
|
|
746
|
+
"type": "string",
|
|
747
|
+
"description": "New text content"
|
|
748
|
+
},
|
|
749
|
+
"voiceId": {
|
|
750
|
+
"type": "string",
|
|
751
|
+
"description": "New voice ID"
|
|
752
|
+
},
|
|
753
|
+
"voiceSettings": {
|
|
754
|
+
"type": "object",
|
|
755
|
+
"description": "New voice settings"
|
|
756
|
+
}
|
|
757
|
+
},
|
|
758
|
+
"required": [
|
|
759
|
+
"id"
|
|
760
|
+
]
|
|
761
|
+
}
|
|
762
|
+
},
|
|
763
|
+
{
|
|
764
|
+
"name": "delete_script",
|
|
765
|
+
"description": "Delete a script and its generated audio.",
|
|
766
|
+
"method": "DELETE",
|
|
767
|
+
"path": "/ai/scripts/{id}",
|
|
768
|
+
"input_schema": {
|
|
769
|
+
"type": "object",
|
|
770
|
+
"properties": {
|
|
771
|
+
"id": {
|
|
772
|
+
"type": "string",
|
|
773
|
+
"description": "Script ID"
|
|
774
|
+
}
|
|
775
|
+
},
|
|
776
|
+
"required": [
|
|
777
|
+
"id"
|
|
778
|
+
]
|
|
779
|
+
}
|
|
780
|
+
},
|
|
781
|
+
{
|
|
782
|
+
"name": "generate_script",
|
|
783
|
+
"description": "Generate audio from a script using text-to-speech. Uses the script's assigned voice or an override. Returns a job — check status with get-job-status.",
|
|
784
|
+
"method": "POST",
|
|
785
|
+
"path": "/ai/scripts/{id}/generate",
|
|
786
|
+
"input_schema": {
|
|
787
|
+
"type": "object",
|
|
788
|
+
"properties": {
|
|
789
|
+
"id": {
|
|
790
|
+
"type": "string",
|
|
791
|
+
"description": "Script ID to generate audio for"
|
|
792
|
+
},
|
|
793
|
+
"voiceId": {
|
|
794
|
+
"type": "string",
|
|
795
|
+
"description": "Override voice ID (optional, uses script's voice if not set)"
|
|
796
|
+
},
|
|
797
|
+
"model": {
|
|
798
|
+
"type": "string",
|
|
799
|
+
"description": "TTS model (optional)"
|
|
800
|
+
},
|
|
801
|
+
"outputFormat": {
|
|
802
|
+
"type": "string",
|
|
803
|
+
"enum": [
|
|
804
|
+
"mp3",
|
|
805
|
+
"wav",
|
|
806
|
+
"ogg"
|
|
807
|
+
],
|
|
808
|
+
"default": "mp3",
|
|
809
|
+
"description": "Audio format"
|
|
810
|
+
}
|
|
811
|
+
},
|
|
812
|
+
"required": [
|
|
813
|
+
"id"
|
|
814
|
+
]
|
|
815
|
+
}
|
|
649
816
|
}
|
|
650
817
|
]
|
|
651
818
|
}
|