@asteroidai/cli 1.9.108 → 1.9.111
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/asteroid.js +336 -2
- package/dist/core.js +335 -1
- package/package.json +1 -1
package/dist/asteroid.js
CHANGED
|
@@ -1162,6 +1162,19 @@ var COMMANDS = [
|
|
|
1162
1162
|
readOnly: false,
|
|
1163
1163
|
destructive: true
|
|
1164
1164
|
},
|
|
1165
|
+
{
|
|
1166
|
+
command: "event-type list",
|
|
1167
|
+
tool: "event_types_list",
|
|
1168
|
+
title: "List notification event types",
|
|
1169
|
+
description: "List the events a workflow notification rule can match, with the fields each one can filter on, their operators and valid values.",
|
|
1170
|
+
method: "GET",
|
|
1171
|
+
path: "/agents/v2/event-types",
|
|
1172
|
+
args: [],
|
|
1173
|
+
query: [],
|
|
1174
|
+
binary: false,
|
|
1175
|
+
readOnly: true,
|
|
1176
|
+
destructive: false
|
|
1177
|
+
},
|
|
1165
1178
|
{
|
|
1166
1179
|
command: "execution activities",
|
|
1167
1180
|
tool: "execution_activities_get",
|
|
@@ -1916,7 +1929,7 @@ var COMMANDS = [
|
|
|
1916
1929
|
command: "execution resume",
|
|
1917
1930
|
tool: "execution_resume",
|
|
1918
1931
|
title: "Resume execution",
|
|
1919
|
-
description: "Resume a paused execution. It continues from where it stopped.",
|
|
1932
|
+
description: "Resume a paused execution. It continues from where it stopped. Also approves an execution in `awaiting_confirmation`, like Approve on the execution page: read the agent's reason in `execution_activities_get` first, and get the user's go-ahead before you approve for them.",
|
|
1920
1933
|
method: "POST",
|
|
1921
1934
|
path: "/agents/v2/executions/{executionId}/resume",
|
|
1922
1935
|
args: [
|
|
@@ -1999,6 +2012,155 @@ var COMMANDS = [
|
|
|
1999
2012
|
readOnly: true,
|
|
2000
2013
|
destructive: false
|
|
2001
2014
|
},
|
|
2015
|
+
{
|
|
2016
|
+
command: "integration create",
|
|
2017
|
+
tool: "integration_create",
|
|
2018
|
+
title: "Create a webhook integration",
|
|
2019
|
+
description: "Create a webhook integration. Set `type` to `webhook` and `configuration` to `{type: webhook, url, headers}`. Put a shared secret in a header, such as `Authorization`. Asteroid signs every delivery; verify it with integration_signing_keys_get. Slack is added in the platform app only.",
|
|
2020
|
+
method: "POST",
|
|
2021
|
+
path: "/agents/v2/integrations",
|
|
2022
|
+
args: [],
|
|
2023
|
+
query: [],
|
|
2024
|
+
binary: false,
|
|
2025
|
+
readOnly: false,
|
|
2026
|
+
destructive: false,
|
|
2027
|
+
body: {
|
|
2028
|
+
required: true,
|
|
2029
|
+
contentType: "application/json",
|
|
2030
|
+
fields: [
|
|
2031
|
+
{
|
|
2032
|
+
name: "name",
|
|
2033
|
+
flag: "name",
|
|
2034
|
+
type: "string",
|
|
2035
|
+
required: true
|
|
2036
|
+
},
|
|
2037
|
+
{
|
|
2038
|
+
name: "type",
|
|
2039
|
+
flag: "type",
|
|
2040
|
+
type: "string",
|
|
2041
|
+
required: true,
|
|
2042
|
+
description: "The type of the integration",
|
|
2043
|
+
enum: ["webhook", "slack", "asteroid_management"]
|
|
2044
|
+
},
|
|
2045
|
+
{
|
|
2046
|
+
name: "configuration",
|
|
2047
|
+
flag: "configuration",
|
|
2048
|
+
type: "json",
|
|
2049
|
+
required: true,
|
|
2050
|
+
description: "Configuration for an integration"
|
|
2051
|
+
}
|
|
2052
|
+
],
|
|
2053
|
+
files: [],
|
|
2054
|
+
credentialOrganization: true
|
|
2055
|
+
}
|
|
2056
|
+
},
|
|
2057
|
+
{
|
|
2058
|
+
command: "integration delete",
|
|
2059
|
+
tool: "integration_delete",
|
|
2060
|
+
title: "Delete an integration",
|
|
2061
|
+
description: "Delete an integration and every workflow notification rule that sends to it.",
|
|
2062
|
+
method: "DELETE",
|
|
2063
|
+
path: "/agents/v2/integrations/{id}",
|
|
2064
|
+
args: [
|
|
2065
|
+
{
|
|
2066
|
+
name: "id",
|
|
2067
|
+
flag: "id",
|
|
2068
|
+
type: "string",
|
|
2069
|
+
required: true
|
|
2070
|
+
}
|
|
2071
|
+
],
|
|
2072
|
+
query: [],
|
|
2073
|
+
binary: false,
|
|
2074
|
+
readOnly: false,
|
|
2075
|
+
destructive: true
|
|
2076
|
+
},
|
|
2077
|
+
{
|
|
2078
|
+
command: "integration list",
|
|
2079
|
+
tool: "integrations_list",
|
|
2080
|
+
title: "List integrations",
|
|
2081
|
+
description: "List the organization's integrations: webhooks and Slack workspaces. Slack tokens are left out. Use an integration's `id` as `integrationId` in a workflow notification rule.",
|
|
2082
|
+
method: "GET",
|
|
2083
|
+
path: "/agents/v2/integrations",
|
|
2084
|
+
args: [],
|
|
2085
|
+
query: [],
|
|
2086
|
+
binary: false,
|
|
2087
|
+
readOnly: true,
|
|
2088
|
+
destructive: false
|
|
2089
|
+
},
|
|
2090
|
+
{
|
|
2091
|
+
command: "integration signing-keys",
|
|
2092
|
+
tool: "integration_signing_keys_get",
|
|
2093
|
+
title: "Get webhook signing keys",
|
|
2094
|
+
description: "Get the public keys that sign webhook deliveries. Verify a delivery against the key named in its `X-Asteroid-Webhook-Key-Id` header.",
|
|
2095
|
+
method: "GET",
|
|
2096
|
+
path: "/agents/v2/integrations/webhook/public-key",
|
|
2097
|
+
args: [],
|
|
2098
|
+
query: [],
|
|
2099
|
+
binary: false,
|
|
2100
|
+
readOnly: true,
|
|
2101
|
+
destructive: false
|
|
2102
|
+
},
|
|
2103
|
+
{
|
|
2104
|
+
command: "integration test",
|
|
2105
|
+
tool: "integration_test",
|
|
2106
|
+
title: "Send a test notification",
|
|
2107
|
+
description: "Send a test notification to an integration, such as a sample event to a webhook URL.",
|
|
2108
|
+
method: "POST",
|
|
2109
|
+
path: "/agents/v2/integrations/{id}/test",
|
|
2110
|
+
args: [
|
|
2111
|
+
{
|
|
2112
|
+
name: "id",
|
|
2113
|
+
flag: "id",
|
|
2114
|
+
type: "string",
|
|
2115
|
+
required: true
|
|
2116
|
+
}
|
|
2117
|
+
],
|
|
2118
|
+
query: [],
|
|
2119
|
+
binary: false,
|
|
2120
|
+
readOnly: false,
|
|
2121
|
+
destructive: false
|
|
2122
|
+
},
|
|
2123
|
+
{
|
|
2124
|
+
command: "integration update",
|
|
2125
|
+
tool: "integration_update",
|
|
2126
|
+
title: "Update a webhook integration",
|
|
2127
|
+
description: "Replace a webhook integration's name and configuration (`{type: webhook, url, headers}`). Slack integrations are edited in the platform app only.",
|
|
2128
|
+
method: "PATCH",
|
|
2129
|
+
path: "/agents/v2/integrations/{id}",
|
|
2130
|
+
args: [
|
|
2131
|
+
{
|
|
2132
|
+
name: "id",
|
|
2133
|
+
flag: "id",
|
|
2134
|
+
type: "string",
|
|
2135
|
+
required: true
|
|
2136
|
+
}
|
|
2137
|
+
],
|
|
2138
|
+
query: [],
|
|
2139
|
+
binary: false,
|
|
2140
|
+
readOnly: false,
|
|
2141
|
+
destructive: false,
|
|
2142
|
+
body: {
|
|
2143
|
+
required: true,
|
|
2144
|
+
contentType: "application/json",
|
|
2145
|
+
fields: [
|
|
2146
|
+
{
|
|
2147
|
+
name: "name",
|
|
2148
|
+
flag: "name",
|
|
2149
|
+
type: "string",
|
|
2150
|
+
required: true
|
|
2151
|
+
},
|
|
2152
|
+
{
|
|
2153
|
+
name: "configuration",
|
|
2154
|
+
flag: "configuration",
|
|
2155
|
+
type: "json",
|
|
2156
|
+
required: true,
|
|
2157
|
+
description: "Configuration for an integration"
|
|
2158
|
+
}
|
|
2159
|
+
],
|
|
2160
|
+
files: [],
|
|
2161
|
+
credentialOrganization: false
|
|
2162
|
+
}
|
|
2163
|
+
},
|
|
2002
2164
|
{
|
|
2003
2165
|
command: "model list",
|
|
2004
2166
|
tool: "models_list",
|
|
@@ -2012,6 +2174,34 @@ var COMMANDS = [
|
|
|
2012
2174
|
readOnly: true,
|
|
2013
2175
|
destructive: false
|
|
2014
2176
|
},
|
|
2177
|
+
{
|
|
2178
|
+
command: "notification list",
|
|
2179
|
+
tool: "notifications_list",
|
|
2180
|
+
title: "List notification rules",
|
|
2181
|
+
description: "List the workflow notification rules across the organization, by workflow name. Filter with `integrationId` or `workflowId`.",
|
|
2182
|
+
method: "GET",
|
|
2183
|
+
path: "/agents/v2/notifications",
|
|
2184
|
+
args: [],
|
|
2185
|
+
query: [
|
|
2186
|
+
{
|
|
2187
|
+
name: "integrationId",
|
|
2188
|
+
flag: "integration-id",
|
|
2189
|
+
type: "string",
|
|
2190
|
+
required: false,
|
|
2191
|
+
description: "Only rules that notify this integration."
|
|
2192
|
+
},
|
|
2193
|
+
{
|
|
2194
|
+
name: "workflowId",
|
|
2195
|
+
flag: "workflow-id",
|
|
2196
|
+
type: "string",
|
|
2197
|
+
required: false,
|
|
2198
|
+
description: "Only this workflow's rules."
|
|
2199
|
+
}
|
|
2200
|
+
],
|
|
2201
|
+
binary: false,
|
|
2202
|
+
readOnly: true,
|
|
2203
|
+
destructive: false
|
|
2204
|
+
},
|
|
2015
2205
|
{
|
|
2016
2206
|
command: "portal-skills add",
|
|
2017
2207
|
tool: "portal_skills_add",
|
|
@@ -4794,6 +4984,150 @@ var COMMANDS = [
|
|
|
4794
4984
|
readOnly: true,
|
|
4795
4985
|
destructive: false
|
|
4796
4986
|
},
|
|
4987
|
+
{
|
|
4988
|
+
command: "workflow notification create",
|
|
4989
|
+
tool: "workflow_notification_create",
|
|
4990
|
+
title: "Add a notification rule to a workflow",
|
|
4991
|
+
description: "Send a workflow's events to an integration. `eventRules` omitted sends every event, `[]` sends none, a list sends only matching events (see event_types_list for event types and filter fields). `metadataFilter` sends only executions whose metadata matches every key and value. One rule per integration per workflow.",
|
|
4992
|
+
method: "POST",
|
|
4993
|
+
path: "/agents/v2/workflows/{workflowId}/notifications",
|
|
4994
|
+
args: [
|
|
4995
|
+
{
|
|
4996
|
+
name: "workflowId",
|
|
4997
|
+
flag: "workflow-id",
|
|
4998
|
+
type: "string",
|
|
4999
|
+
required: true
|
|
5000
|
+
}
|
|
5001
|
+
],
|
|
5002
|
+
query: [],
|
|
5003
|
+
binary: false,
|
|
5004
|
+
readOnly: false,
|
|
5005
|
+
destructive: false,
|
|
5006
|
+
body: {
|
|
5007
|
+
required: true,
|
|
5008
|
+
contentType: "application/json",
|
|
5009
|
+
fields: [
|
|
5010
|
+
{
|
|
5011
|
+
name: "integrationId",
|
|
5012
|
+
flag: "integration-id",
|
|
5013
|
+
type: "string",
|
|
5014
|
+
required: true
|
|
5015
|
+
},
|
|
5016
|
+
{
|
|
5017
|
+
name: "eventRules",
|
|
5018
|
+
flag: "event-rules",
|
|
5019
|
+
type: "json",
|
|
5020
|
+
required: false,
|
|
5021
|
+
description: "Event notification rules. Three possible states: null/omitted (notify on ALL events), [] (notify on NO events), [A,B,C] (notify only on specific events)"
|
|
5022
|
+
},
|
|
5023
|
+
{
|
|
5024
|
+
name: "metadataFilter",
|
|
5025
|
+
flag: "metadata-filter",
|
|
5026
|
+
type: "json",
|
|
5027
|
+
required: false,
|
|
5028
|
+
description: "Metadata filter for execution routing. Only sends notifications for executions whose metadata matches all specified key-value pairs. Null or omitted means no filtering.",
|
|
5029
|
+
record: "string"
|
|
5030
|
+
}
|
|
5031
|
+
],
|
|
5032
|
+
files: [],
|
|
5033
|
+
credentialOrganization: false
|
|
5034
|
+
}
|
|
5035
|
+
},
|
|
5036
|
+
{
|
|
5037
|
+
command: "workflow notification delete",
|
|
5038
|
+
tool: "workflow_notification_delete",
|
|
5039
|
+
title: "Remove a workflow notification rule",
|
|
5040
|
+
description: "Stop sending a workflow's events to one integration.",
|
|
5041
|
+
method: "DELETE",
|
|
5042
|
+
path: "/agents/v2/workflows/{workflowId}/notifications/{integrationId}",
|
|
5043
|
+
args: [
|
|
5044
|
+
{
|
|
5045
|
+
name: "workflowId",
|
|
5046
|
+
flag: "workflow-id",
|
|
5047
|
+
type: "string",
|
|
5048
|
+
required: true
|
|
5049
|
+
},
|
|
5050
|
+
{
|
|
5051
|
+
name: "integrationId",
|
|
5052
|
+
flag: "integration-id",
|
|
5053
|
+
type: "string",
|
|
5054
|
+
required: true
|
|
5055
|
+
}
|
|
5056
|
+
],
|
|
5057
|
+
query: [],
|
|
5058
|
+
binary: false,
|
|
5059
|
+
readOnly: false,
|
|
5060
|
+
destructive: true
|
|
5061
|
+
},
|
|
5062
|
+
{
|
|
5063
|
+
command: "workflow notification list",
|
|
5064
|
+
tool: "workflow_notifications_list",
|
|
5065
|
+
title: "List a workflow's notification rules",
|
|
5066
|
+
description: "List the notification rules of a workflow. Each sends events to one integration.",
|
|
5067
|
+
method: "GET",
|
|
5068
|
+
path: "/agents/v2/workflows/{workflowId}/notifications",
|
|
5069
|
+
args: [
|
|
5070
|
+
{
|
|
5071
|
+
name: "workflowId",
|
|
5072
|
+
flag: "workflow-id",
|
|
5073
|
+
type: "string",
|
|
5074
|
+
required: true
|
|
5075
|
+
}
|
|
5076
|
+
],
|
|
5077
|
+
query: [],
|
|
5078
|
+
binary: false,
|
|
5079
|
+
readOnly: true,
|
|
5080
|
+
destructive: false
|
|
5081
|
+
},
|
|
5082
|
+
{
|
|
5083
|
+
command: "workflow notification update",
|
|
5084
|
+
tool: "workflow_notification_update",
|
|
5085
|
+
title: "Update a workflow notification rule",
|
|
5086
|
+
description: "Replace the `eventRules` and `metadataFilter` of the workflow's rule for one integration. Omitted fields are cleared.",
|
|
5087
|
+
method: "PATCH",
|
|
5088
|
+
path: "/agents/v2/workflows/{workflowId}/notifications/{integrationId}",
|
|
5089
|
+
args: [
|
|
5090
|
+
{
|
|
5091
|
+
name: "workflowId",
|
|
5092
|
+
flag: "workflow-id",
|
|
5093
|
+
type: "string",
|
|
5094
|
+
required: true
|
|
5095
|
+
},
|
|
5096
|
+
{
|
|
5097
|
+
name: "integrationId",
|
|
5098
|
+
flag: "integration-id",
|
|
5099
|
+
type: "string",
|
|
5100
|
+
required: true
|
|
5101
|
+
}
|
|
5102
|
+
],
|
|
5103
|
+
query: [],
|
|
5104
|
+
binary: false,
|
|
5105
|
+
readOnly: false,
|
|
5106
|
+
destructive: false,
|
|
5107
|
+
body: {
|
|
5108
|
+
required: true,
|
|
5109
|
+
contentType: "application/json",
|
|
5110
|
+
fields: [
|
|
5111
|
+
{
|
|
5112
|
+
name: "eventRules",
|
|
5113
|
+
flag: "event-rules",
|
|
5114
|
+
type: "json",
|
|
5115
|
+
required: false,
|
|
5116
|
+
description: "Event notification rules. Three possible states: null/omitted (notify on ALL events), [] (notify on NO events), [A,B,C] (notify only on specific events)"
|
|
5117
|
+
},
|
|
5118
|
+
{
|
|
5119
|
+
name: "metadataFilter",
|
|
5120
|
+
flag: "metadata-filter",
|
|
5121
|
+
type: "json",
|
|
5122
|
+
required: false,
|
|
5123
|
+
description: "Metadata filter for execution routing. Only sends notifications for executions whose metadata matches all specified key-value pairs. Null or omitted clears any existing filter.",
|
|
5124
|
+
record: "string"
|
|
5125
|
+
}
|
|
5126
|
+
],
|
|
5127
|
+
files: [],
|
|
5128
|
+
credentialOrganization: false
|
|
5129
|
+
}
|
|
5130
|
+
},
|
|
4797
5131
|
{
|
|
4798
5132
|
command: "workflow pull",
|
|
4799
5133
|
tool: "workflow_files_list",
|
|
@@ -6871,7 +7205,7 @@ var ApiError = class extends Error {
|
|
|
6871
7205
|
status;
|
|
6872
7206
|
body;
|
|
6873
7207
|
};
|
|
6874
|
-
var VERSION = "1.9.
|
|
7208
|
+
var VERSION = "1.9.111";
|
|
6875
7209
|
function problem(status, body, fallback) {
|
|
6876
7210
|
if (body && typeof body === "object") {
|
|
6877
7211
|
const record2 = body;
|
package/dist/core.js
CHANGED
|
@@ -1183,6 +1183,19 @@ var COMMANDS = [
|
|
|
1183
1183
|
readOnly: false,
|
|
1184
1184
|
destructive: true
|
|
1185
1185
|
},
|
|
1186
|
+
{
|
|
1187
|
+
command: "event-type list",
|
|
1188
|
+
tool: "event_types_list",
|
|
1189
|
+
title: "List notification event types",
|
|
1190
|
+
description: "List the events a workflow notification rule can match, with the fields each one can filter on, their operators and valid values.",
|
|
1191
|
+
method: "GET",
|
|
1192
|
+
path: "/agents/v2/event-types",
|
|
1193
|
+
args: [],
|
|
1194
|
+
query: [],
|
|
1195
|
+
binary: false,
|
|
1196
|
+
readOnly: true,
|
|
1197
|
+
destructive: false
|
|
1198
|
+
},
|
|
1186
1199
|
{
|
|
1187
1200
|
command: "execution activities",
|
|
1188
1201
|
tool: "execution_activities_get",
|
|
@@ -1937,7 +1950,7 @@ var COMMANDS = [
|
|
|
1937
1950
|
command: "execution resume",
|
|
1938
1951
|
tool: "execution_resume",
|
|
1939
1952
|
title: "Resume execution",
|
|
1940
|
-
description: "Resume a paused execution. It continues from where it stopped.",
|
|
1953
|
+
description: "Resume a paused execution. It continues from where it stopped. Also approves an execution in `awaiting_confirmation`, like Approve on the execution page: read the agent's reason in `execution_activities_get` first, and get the user's go-ahead before you approve for them.",
|
|
1941
1954
|
method: "POST",
|
|
1942
1955
|
path: "/agents/v2/executions/{executionId}/resume",
|
|
1943
1956
|
args: [
|
|
@@ -2020,6 +2033,155 @@ var COMMANDS = [
|
|
|
2020
2033
|
readOnly: true,
|
|
2021
2034
|
destructive: false
|
|
2022
2035
|
},
|
|
2036
|
+
{
|
|
2037
|
+
command: "integration create",
|
|
2038
|
+
tool: "integration_create",
|
|
2039
|
+
title: "Create a webhook integration",
|
|
2040
|
+
description: "Create a webhook integration. Set `type` to `webhook` and `configuration` to `{type: webhook, url, headers}`. Put a shared secret in a header, such as `Authorization`. Asteroid signs every delivery; verify it with integration_signing_keys_get. Slack is added in the platform app only.",
|
|
2041
|
+
method: "POST",
|
|
2042
|
+
path: "/agents/v2/integrations",
|
|
2043
|
+
args: [],
|
|
2044
|
+
query: [],
|
|
2045
|
+
binary: false,
|
|
2046
|
+
readOnly: false,
|
|
2047
|
+
destructive: false,
|
|
2048
|
+
body: {
|
|
2049
|
+
required: true,
|
|
2050
|
+
contentType: "application/json",
|
|
2051
|
+
fields: [
|
|
2052
|
+
{
|
|
2053
|
+
name: "name",
|
|
2054
|
+
flag: "name",
|
|
2055
|
+
type: "string",
|
|
2056
|
+
required: true
|
|
2057
|
+
},
|
|
2058
|
+
{
|
|
2059
|
+
name: "type",
|
|
2060
|
+
flag: "type",
|
|
2061
|
+
type: "string",
|
|
2062
|
+
required: true,
|
|
2063
|
+
description: "The type of the integration",
|
|
2064
|
+
enum: ["webhook", "slack", "asteroid_management"]
|
|
2065
|
+
},
|
|
2066
|
+
{
|
|
2067
|
+
name: "configuration",
|
|
2068
|
+
flag: "configuration",
|
|
2069
|
+
type: "json",
|
|
2070
|
+
required: true,
|
|
2071
|
+
description: "Configuration for an integration"
|
|
2072
|
+
}
|
|
2073
|
+
],
|
|
2074
|
+
files: [],
|
|
2075
|
+
credentialOrganization: true
|
|
2076
|
+
}
|
|
2077
|
+
},
|
|
2078
|
+
{
|
|
2079
|
+
command: "integration delete",
|
|
2080
|
+
tool: "integration_delete",
|
|
2081
|
+
title: "Delete an integration",
|
|
2082
|
+
description: "Delete an integration and every workflow notification rule that sends to it.",
|
|
2083
|
+
method: "DELETE",
|
|
2084
|
+
path: "/agents/v2/integrations/{id}",
|
|
2085
|
+
args: [
|
|
2086
|
+
{
|
|
2087
|
+
name: "id",
|
|
2088
|
+
flag: "id",
|
|
2089
|
+
type: "string",
|
|
2090
|
+
required: true
|
|
2091
|
+
}
|
|
2092
|
+
],
|
|
2093
|
+
query: [],
|
|
2094
|
+
binary: false,
|
|
2095
|
+
readOnly: false,
|
|
2096
|
+
destructive: true
|
|
2097
|
+
},
|
|
2098
|
+
{
|
|
2099
|
+
command: "integration list",
|
|
2100
|
+
tool: "integrations_list",
|
|
2101
|
+
title: "List integrations",
|
|
2102
|
+
description: "List the organization's integrations: webhooks and Slack workspaces. Slack tokens are left out. Use an integration's `id` as `integrationId` in a workflow notification rule.",
|
|
2103
|
+
method: "GET",
|
|
2104
|
+
path: "/agents/v2/integrations",
|
|
2105
|
+
args: [],
|
|
2106
|
+
query: [],
|
|
2107
|
+
binary: false,
|
|
2108
|
+
readOnly: true,
|
|
2109
|
+
destructive: false
|
|
2110
|
+
},
|
|
2111
|
+
{
|
|
2112
|
+
command: "integration signing-keys",
|
|
2113
|
+
tool: "integration_signing_keys_get",
|
|
2114
|
+
title: "Get webhook signing keys",
|
|
2115
|
+
description: "Get the public keys that sign webhook deliveries. Verify a delivery against the key named in its `X-Asteroid-Webhook-Key-Id` header.",
|
|
2116
|
+
method: "GET",
|
|
2117
|
+
path: "/agents/v2/integrations/webhook/public-key",
|
|
2118
|
+
args: [],
|
|
2119
|
+
query: [],
|
|
2120
|
+
binary: false,
|
|
2121
|
+
readOnly: true,
|
|
2122
|
+
destructive: false
|
|
2123
|
+
},
|
|
2124
|
+
{
|
|
2125
|
+
command: "integration test",
|
|
2126
|
+
tool: "integration_test",
|
|
2127
|
+
title: "Send a test notification",
|
|
2128
|
+
description: "Send a test notification to an integration, such as a sample event to a webhook URL.",
|
|
2129
|
+
method: "POST",
|
|
2130
|
+
path: "/agents/v2/integrations/{id}/test",
|
|
2131
|
+
args: [
|
|
2132
|
+
{
|
|
2133
|
+
name: "id",
|
|
2134
|
+
flag: "id",
|
|
2135
|
+
type: "string",
|
|
2136
|
+
required: true
|
|
2137
|
+
}
|
|
2138
|
+
],
|
|
2139
|
+
query: [],
|
|
2140
|
+
binary: false,
|
|
2141
|
+
readOnly: false,
|
|
2142
|
+
destructive: false
|
|
2143
|
+
},
|
|
2144
|
+
{
|
|
2145
|
+
command: "integration update",
|
|
2146
|
+
tool: "integration_update",
|
|
2147
|
+
title: "Update a webhook integration",
|
|
2148
|
+
description: "Replace a webhook integration's name and configuration (`{type: webhook, url, headers}`). Slack integrations are edited in the platform app only.",
|
|
2149
|
+
method: "PATCH",
|
|
2150
|
+
path: "/agents/v2/integrations/{id}",
|
|
2151
|
+
args: [
|
|
2152
|
+
{
|
|
2153
|
+
name: "id",
|
|
2154
|
+
flag: "id",
|
|
2155
|
+
type: "string",
|
|
2156
|
+
required: true
|
|
2157
|
+
}
|
|
2158
|
+
],
|
|
2159
|
+
query: [],
|
|
2160
|
+
binary: false,
|
|
2161
|
+
readOnly: false,
|
|
2162
|
+
destructive: false,
|
|
2163
|
+
body: {
|
|
2164
|
+
required: true,
|
|
2165
|
+
contentType: "application/json",
|
|
2166
|
+
fields: [
|
|
2167
|
+
{
|
|
2168
|
+
name: "name",
|
|
2169
|
+
flag: "name",
|
|
2170
|
+
type: "string",
|
|
2171
|
+
required: true
|
|
2172
|
+
},
|
|
2173
|
+
{
|
|
2174
|
+
name: "configuration",
|
|
2175
|
+
flag: "configuration",
|
|
2176
|
+
type: "json",
|
|
2177
|
+
required: true,
|
|
2178
|
+
description: "Configuration for an integration"
|
|
2179
|
+
}
|
|
2180
|
+
],
|
|
2181
|
+
files: [],
|
|
2182
|
+
credentialOrganization: false
|
|
2183
|
+
}
|
|
2184
|
+
},
|
|
2023
2185
|
{
|
|
2024
2186
|
command: "model list",
|
|
2025
2187
|
tool: "models_list",
|
|
@@ -2033,6 +2195,34 @@ var COMMANDS = [
|
|
|
2033
2195
|
readOnly: true,
|
|
2034
2196
|
destructive: false
|
|
2035
2197
|
},
|
|
2198
|
+
{
|
|
2199
|
+
command: "notification list",
|
|
2200
|
+
tool: "notifications_list",
|
|
2201
|
+
title: "List notification rules",
|
|
2202
|
+
description: "List the workflow notification rules across the organization, by workflow name. Filter with `integrationId` or `workflowId`.",
|
|
2203
|
+
method: "GET",
|
|
2204
|
+
path: "/agents/v2/notifications",
|
|
2205
|
+
args: [],
|
|
2206
|
+
query: [
|
|
2207
|
+
{
|
|
2208
|
+
name: "integrationId",
|
|
2209
|
+
flag: "integration-id",
|
|
2210
|
+
type: "string",
|
|
2211
|
+
required: false,
|
|
2212
|
+
description: "Only rules that notify this integration."
|
|
2213
|
+
},
|
|
2214
|
+
{
|
|
2215
|
+
name: "workflowId",
|
|
2216
|
+
flag: "workflow-id",
|
|
2217
|
+
type: "string",
|
|
2218
|
+
required: false,
|
|
2219
|
+
description: "Only this workflow's rules."
|
|
2220
|
+
}
|
|
2221
|
+
],
|
|
2222
|
+
binary: false,
|
|
2223
|
+
readOnly: true,
|
|
2224
|
+
destructive: false
|
|
2225
|
+
},
|
|
2036
2226
|
{
|
|
2037
2227
|
command: "portal-skills add",
|
|
2038
2228
|
tool: "portal_skills_add",
|
|
@@ -4815,6 +5005,150 @@ var COMMANDS = [
|
|
|
4815
5005
|
readOnly: true,
|
|
4816
5006
|
destructive: false
|
|
4817
5007
|
},
|
|
5008
|
+
{
|
|
5009
|
+
command: "workflow notification create",
|
|
5010
|
+
tool: "workflow_notification_create",
|
|
5011
|
+
title: "Add a notification rule to a workflow",
|
|
5012
|
+
description: "Send a workflow's events to an integration. `eventRules` omitted sends every event, `[]` sends none, a list sends only matching events (see event_types_list for event types and filter fields). `metadataFilter` sends only executions whose metadata matches every key and value. One rule per integration per workflow.",
|
|
5013
|
+
method: "POST",
|
|
5014
|
+
path: "/agents/v2/workflows/{workflowId}/notifications",
|
|
5015
|
+
args: [
|
|
5016
|
+
{
|
|
5017
|
+
name: "workflowId",
|
|
5018
|
+
flag: "workflow-id",
|
|
5019
|
+
type: "string",
|
|
5020
|
+
required: true
|
|
5021
|
+
}
|
|
5022
|
+
],
|
|
5023
|
+
query: [],
|
|
5024
|
+
binary: false,
|
|
5025
|
+
readOnly: false,
|
|
5026
|
+
destructive: false,
|
|
5027
|
+
body: {
|
|
5028
|
+
required: true,
|
|
5029
|
+
contentType: "application/json",
|
|
5030
|
+
fields: [
|
|
5031
|
+
{
|
|
5032
|
+
name: "integrationId",
|
|
5033
|
+
flag: "integration-id",
|
|
5034
|
+
type: "string",
|
|
5035
|
+
required: true
|
|
5036
|
+
},
|
|
5037
|
+
{
|
|
5038
|
+
name: "eventRules",
|
|
5039
|
+
flag: "event-rules",
|
|
5040
|
+
type: "json",
|
|
5041
|
+
required: false,
|
|
5042
|
+
description: "Event notification rules. Three possible states: null/omitted (notify on ALL events), [] (notify on NO events), [A,B,C] (notify only on specific events)"
|
|
5043
|
+
},
|
|
5044
|
+
{
|
|
5045
|
+
name: "metadataFilter",
|
|
5046
|
+
flag: "metadata-filter",
|
|
5047
|
+
type: "json",
|
|
5048
|
+
required: false,
|
|
5049
|
+
description: "Metadata filter for execution routing. Only sends notifications for executions whose metadata matches all specified key-value pairs. Null or omitted means no filtering.",
|
|
5050
|
+
record: "string"
|
|
5051
|
+
}
|
|
5052
|
+
],
|
|
5053
|
+
files: [],
|
|
5054
|
+
credentialOrganization: false
|
|
5055
|
+
}
|
|
5056
|
+
},
|
|
5057
|
+
{
|
|
5058
|
+
command: "workflow notification delete",
|
|
5059
|
+
tool: "workflow_notification_delete",
|
|
5060
|
+
title: "Remove a workflow notification rule",
|
|
5061
|
+
description: "Stop sending a workflow's events to one integration.",
|
|
5062
|
+
method: "DELETE",
|
|
5063
|
+
path: "/agents/v2/workflows/{workflowId}/notifications/{integrationId}",
|
|
5064
|
+
args: [
|
|
5065
|
+
{
|
|
5066
|
+
name: "workflowId",
|
|
5067
|
+
flag: "workflow-id",
|
|
5068
|
+
type: "string",
|
|
5069
|
+
required: true
|
|
5070
|
+
},
|
|
5071
|
+
{
|
|
5072
|
+
name: "integrationId",
|
|
5073
|
+
flag: "integration-id",
|
|
5074
|
+
type: "string",
|
|
5075
|
+
required: true
|
|
5076
|
+
}
|
|
5077
|
+
],
|
|
5078
|
+
query: [],
|
|
5079
|
+
binary: false,
|
|
5080
|
+
readOnly: false,
|
|
5081
|
+
destructive: true
|
|
5082
|
+
},
|
|
5083
|
+
{
|
|
5084
|
+
command: "workflow notification list",
|
|
5085
|
+
tool: "workflow_notifications_list",
|
|
5086
|
+
title: "List a workflow's notification rules",
|
|
5087
|
+
description: "List the notification rules of a workflow. Each sends events to one integration.",
|
|
5088
|
+
method: "GET",
|
|
5089
|
+
path: "/agents/v2/workflows/{workflowId}/notifications",
|
|
5090
|
+
args: [
|
|
5091
|
+
{
|
|
5092
|
+
name: "workflowId",
|
|
5093
|
+
flag: "workflow-id",
|
|
5094
|
+
type: "string",
|
|
5095
|
+
required: true
|
|
5096
|
+
}
|
|
5097
|
+
],
|
|
5098
|
+
query: [],
|
|
5099
|
+
binary: false,
|
|
5100
|
+
readOnly: true,
|
|
5101
|
+
destructive: false
|
|
5102
|
+
},
|
|
5103
|
+
{
|
|
5104
|
+
command: "workflow notification update",
|
|
5105
|
+
tool: "workflow_notification_update",
|
|
5106
|
+
title: "Update a workflow notification rule",
|
|
5107
|
+
description: "Replace the `eventRules` and `metadataFilter` of the workflow's rule for one integration. Omitted fields are cleared.",
|
|
5108
|
+
method: "PATCH",
|
|
5109
|
+
path: "/agents/v2/workflows/{workflowId}/notifications/{integrationId}",
|
|
5110
|
+
args: [
|
|
5111
|
+
{
|
|
5112
|
+
name: "workflowId",
|
|
5113
|
+
flag: "workflow-id",
|
|
5114
|
+
type: "string",
|
|
5115
|
+
required: true
|
|
5116
|
+
},
|
|
5117
|
+
{
|
|
5118
|
+
name: "integrationId",
|
|
5119
|
+
flag: "integration-id",
|
|
5120
|
+
type: "string",
|
|
5121
|
+
required: true
|
|
5122
|
+
}
|
|
5123
|
+
],
|
|
5124
|
+
query: [],
|
|
5125
|
+
binary: false,
|
|
5126
|
+
readOnly: false,
|
|
5127
|
+
destructive: false,
|
|
5128
|
+
body: {
|
|
5129
|
+
required: true,
|
|
5130
|
+
contentType: "application/json",
|
|
5131
|
+
fields: [
|
|
5132
|
+
{
|
|
5133
|
+
name: "eventRules",
|
|
5134
|
+
flag: "event-rules",
|
|
5135
|
+
type: "json",
|
|
5136
|
+
required: false,
|
|
5137
|
+
description: "Event notification rules. Three possible states: null/omitted (notify on ALL events), [] (notify on NO events), [A,B,C] (notify only on specific events)"
|
|
5138
|
+
},
|
|
5139
|
+
{
|
|
5140
|
+
name: "metadataFilter",
|
|
5141
|
+
flag: "metadata-filter",
|
|
5142
|
+
type: "json",
|
|
5143
|
+
required: false,
|
|
5144
|
+
description: "Metadata filter for execution routing. Only sends notifications for executions whose metadata matches all specified key-value pairs. Null or omitted clears any existing filter.",
|
|
5145
|
+
record: "string"
|
|
5146
|
+
}
|
|
5147
|
+
],
|
|
5148
|
+
files: [],
|
|
5149
|
+
credentialOrganization: false
|
|
5150
|
+
}
|
|
5151
|
+
},
|
|
4818
5152
|
{
|
|
4819
5153
|
command: "workflow pull",
|
|
4820
5154
|
tool: "workflow_files_list",
|