@apteva/integrations 0.3.19 → 0.3.21
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.21",
|
|
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",
|
|
@@ -33,23 +33,17 @@
|
|
|
33
33
|
"tools": [
|
|
34
34
|
{
|
|
35
35
|
"name": "list_sources",
|
|
36
|
-
"description": "
|
|
36
|
+
"description": "ALWAYS call this first before importing or querying metrics. Returns all configured analytics sources with their available metric names, including sources without data yet. The response contains the exact metric_name values needed for import-metrics and query-metrics. Sources with has_data=false still have valid metrics that can be imported into.",
|
|
37
37
|
"method": "GET",
|
|
38
38
|
"path": "/analytics/sources",
|
|
39
39
|
"input_schema": {
|
|
40
40
|
"type": "object",
|
|
41
|
-
"properties": {
|
|
42
|
-
"include_empty": {
|
|
43
|
-
"type": "boolean",
|
|
44
|
-
"description": "Include sources without data (shows all configured sources)",
|
|
45
|
-
"default": true
|
|
46
|
-
}
|
|
47
|
-
}
|
|
41
|
+
"properties": {}
|
|
48
42
|
}
|
|
49
43
|
},
|
|
50
44
|
{
|
|
51
45
|
"name": "import_metrics",
|
|
52
|
-
"description": "Import
|
|
46
|
+
"description": "Import metrics data. First call list-sources to discover the exact metric_name values available for each source. Supports single metric or bulk import via the metrics array.",
|
|
53
47
|
"method": "POST",
|
|
54
48
|
"path": "/analytics/metrics/import",
|
|
55
49
|
"input_schema": {
|
|
@@ -57,7 +51,7 @@
|
|
|
57
51
|
"properties": {
|
|
58
52
|
"metric_name": {
|
|
59
53
|
"type": "string",
|
|
60
|
-
"description": "Metric name for single import
|
|
54
|
+
"description": "Metric name for single import - use exact values from list-sources"
|
|
61
55
|
},
|
|
62
56
|
"value": {
|
|
63
57
|
"type": "number",
|
|
@@ -83,7 +77,7 @@
|
|
|
83
77
|
},
|
|
84
78
|
"source": {
|
|
85
79
|
"type": "string",
|
|
86
|
-
"description": "Source platform
|
|
80
|
+
"description": "Source platform identifier - use the source id from list-sources"
|
|
87
81
|
},
|
|
88
82
|
"dimensions": {
|
|
89
83
|
"type": "object",
|
|
@@ -133,7 +127,7 @@
|
|
|
133
127
|
},
|
|
134
128
|
{
|
|
135
129
|
"name": "query_metrics",
|
|
136
|
-
"description": "Query
|
|
130
|
+
"description": "Query metrics data with flexible filtering, grouping, and date ranges. First call list-sources to discover available metric_name values. Returns time-series data for charts and reports.",
|
|
137
131
|
"method": "GET",
|
|
138
132
|
"path": "/analytics/metrics/{metric_name}",
|
|
139
133
|
"input_schema": {
|
|
@@ -57,16 +57,16 @@
|
|
|
57
57
|
"name": "get_file",
|
|
58
58
|
"description": "Get detailed file info including optional transcripts and thumbnails",
|
|
59
59
|
"method": "GET",
|
|
60
|
-
"path": "/files/{
|
|
60
|
+
"path": "/files/{file_id}",
|
|
61
61
|
"input_schema": {
|
|
62
62
|
"type": "object",
|
|
63
63
|
"properties": {
|
|
64
|
-
"
|
|
64
|
+
"file_id": { "type": "integer", "description": "File ID" },
|
|
65
65
|
"include_transcripts": { "type": "boolean", "default": false, "description": "Include transcript metadata" },
|
|
66
66
|
"include_transcript_segments": { "type": "boolean", "default": false, "description": "Include transcript segments with timecodes" },
|
|
67
67
|
"include_thumbnails": { "type": "boolean", "default": false, "description": "Include thumbnail URLs" }
|
|
68
68
|
},
|
|
69
|
-
"required": ["
|
|
69
|
+
"required": ["file_id"]
|
|
70
70
|
}
|
|
71
71
|
},
|
|
72
72
|
{
|
|
@@ -92,32 +92,32 @@
|
|
|
92
92
|
"name": "update_file",
|
|
93
93
|
"description": "Update file metadata, tags, or move to a different folder",
|
|
94
94
|
"method": "PUT",
|
|
95
|
-
"path": "/files/{
|
|
95
|
+
"path": "/files/{file_id}",
|
|
96
96
|
"input_schema": {
|
|
97
97
|
"type": "object",
|
|
98
98
|
"properties": {
|
|
99
|
-
"
|
|
99
|
+
"file_id": { "type": "integer", "description": "File ID to update" },
|
|
100
100
|
"name": { "type": "string", "description": "New file name" },
|
|
101
101
|
"description": { "type": "string", "description": "New description" },
|
|
102
102
|
"folder_id": { "type": "integer", "description": "Move to different folder" },
|
|
103
103
|
"tags": { "type": "array", "items": { "type": "string" }, "description": "Update tags" },
|
|
104
104
|
"access_level": { "type": "string", "enum": ["private", "public"], "description": "Update access level" }
|
|
105
105
|
},
|
|
106
|
-
"required": ["
|
|
106
|
+
"required": ["file_id"]
|
|
107
107
|
}
|
|
108
108
|
},
|
|
109
109
|
{
|
|
110
110
|
"name": "delete_file",
|
|
111
111
|
"description": "Delete a file from storage",
|
|
112
112
|
"method": "DELETE",
|
|
113
|
-
"path": "/files/{
|
|
113
|
+
"path": "/files/{file_id}",
|
|
114
114
|
"input_schema": {
|
|
115
115
|
"type": "object",
|
|
116
116
|
"properties": {
|
|
117
|
-
"
|
|
117
|
+
"file_id": { "type": "integer", "description": "File ID to delete" },
|
|
118
118
|
"force": { "type": "boolean", "default": false, "description": "Force delete without trash" }
|
|
119
119
|
},
|
|
120
|
-
"required": ["
|
|
120
|
+
"required": ["file_id"]
|
|
121
121
|
}
|
|
122
122
|
},
|
|
123
123
|
{
|