@mobilerun/sdk 5.5.0 → 5.6.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.
- package/CHANGELOG.md +9 -0
- package/client.d.mts +8 -8
- package/client.d.mts.map +1 -1
- package/client.d.ts +8 -8
- package/client.d.ts.map +1 -1
- package/client.js +1 -0
- package/client.js.map +1 -1
- package/client.mjs +2 -1
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/apps.d.mts +18 -15
- package/resources/apps.d.mts.map +1 -1
- package/resources/apps.d.ts +18 -15
- package/resources/apps.d.ts.map +1 -1
- package/resources/apps.js +5 -2
- package/resources/apps.js.map +1 -1
- package/resources/apps.mjs +5 -2
- package/resources/apps.mjs.map +1 -1
- package/resources/assistant/conversations.d.mts +7 -17
- package/resources/assistant/conversations.d.mts.map +1 -1
- package/resources/assistant/conversations.d.ts +7 -17
- package/resources/assistant/conversations.d.ts.map +1 -1
- package/resources/assistant/conversations.js +4 -11
- package/resources/assistant/conversations.js.map +1 -1
- package/resources/assistant/conversations.mjs +4 -11
- package/resources/assistant/conversations.mjs.map +1 -1
- package/resources/connect/connect.d.mts +2 -2
- package/resources/connect/connect.d.mts.map +1 -1
- package/resources/connect/connect.d.ts +2 -2
- package/resources/connect/connect.d.ts.map +1 -1
- package/resources/connect/connect.js.map +1 -1
- package/resources/connect/connect.mjs.map +1 -1
- package/resources/connect/index.d.mts +1 -1
- package/resources/connect/index.d.mts.map +1 -1
- package/resources/connect/index.d.ts +1 -1
- package/resources/connect/index.d.ts.map +1 -1
- package/resources/connect/index.js.map +1 -1
- package/resources/connect/index.mjs.map +1 -1
- package/resources/connect/proxies.d.mts +94 -11
- package/resources/connect/proxies.d.mts.map +1 -1
- package/resources/connect/proxies.d.ts +94 -11
- package/resources/connect/proxies.d.ts.map +1 -1
- package/resources/connect/proxies.js +21 -10
- package/resources/connect/proxies.js.map +1 -1
- package/resources/connect/proxies.mjs +21 -10
- package/resources/connect/proxies.mjs.map +1 -1
- package/resources/devices/browser.d.mts +9 -3
- package/resources/devices/browser.d.mts.map +1 -1
- package/resources/devices/browser.d.ts +9 -3
- package/resources/devices/browser.d.ts.map +1 -1
- package/resources/devices/browser.js +9 -3
- package/resources/devices/browser.js.map +1 -1
- package/resources/devices/browser.mjs +9 -3
- package/resources/devices/browser.mjs.map +1 -1
- package/resources/devices/devices.d.mts +52 -23
- package/resources/devices/devices.d.mts.map +1 -1
- package/resources/devices/devices.d.ts +52 -23
- package/resources/devices/devices.d.ts.map +1 -1
- package/resources/devices/devices.js +17 -7
- package/resources/devices/devices.js.map +1 -1
- package/resources/devices/devices.mjs +17 -7
- package/resources/devices/devices.mjs.map +1 -1
- package/resources/devices/index.d.mts +1 -1
- package/resources/devices/index.d.mts.map +1 -1
- package/resources/devices/index.d.ts +1 -1
- package/resources/devices/index.d.ts.map +1 -1
- package/resources/devices/index.js.map +1 -1
- package/resources/devices/index.mjs.map +1 -1
- package/resources/devices/recordings.d.mts +4 -2
- package/resources/devices/recordings.d.mts.map +1 -1
- package/resources/devices/recordings.d.ts +4 -2
- package/resources/devices/recordings.d.ts.map +1 -1
- package/resources/devices/traffic-sessions.d.mts +1 -11
- package/resources/devices/traffic-sessions.d.mts.map +1 -1
- package/resources/devices/traffic-sessions.d.ts +1 -11
- package/resources/devices/traffic-sessions.d.ts.map +1 -1
- package/resources/devices/traffic-sessions.js +2 -8
- package/resources/devices/traffic-sessions.js.map +1 -1
- package/resources/devices/traffic-sessions.mjs +2 -8
- package/resources/devices/traffic-sessions.mjs.map +1 -1
- package/resources/files.d.mts +5 -19
- package/resources/files.d.mts.map +1 -1
- package/resources/files.d.ts +5 -19
- package/resources/files.d.ts.map +1 -1
- package/resources/files.js +2 -10
- package/resources/files.js.map +1 -1
- package/resources/files.mjs +2 -10
- package/resources/files.mjs.map +1 -1
- package/resources/index.d.mts +4 -4
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +4 -4
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/mailboxes/connections.d.mts +64 -0
- package/resources/mailboxes/connections.d.mts.map +1 -0
- package/resources/mailboxes/connections.d.ts +64 -0
- package/resources/mailboxes/connections.d.ts.map +1 -0
- package/resources/mailboxes/connections.js +42 -0
- package/resources/mailboxes/connections.js.map +1 -0
- package/resources/mailboxes/connections.mjs +38 -0
- package/resources/mailboxes/connections.mjs.map +1 -0
- package/resources/mailboxes/index.d.mts +2 -1
- package/resources/mailboxes/index.d.mts.map +1 -1
- package/resources/mailboxes/index.d.ts +2 -1
- package/resources/mailboxes/index.d.ts.map +1 -1
- package/resources/mailboxes/index.js +3 -1
- package/resources/mailboxes/index.js.map +1 -1
- package/resources/mailboxes/index.mjs +1 -0
- package/resources/mailboxes/index.mjs.map +1 -1
- package/resources/mailboxes/mailboxes.d.mts +73 -24
- package/resources/mailboxes/mailboxes.d.mts.map +1 -1
- package/resources/mailboxes/mailboxes.d.ts +73 -24
- package/resources/mailboxes/mailboxes.d.ts.map +1 -1
- package/resources/mailboxes/mailboxes.js +25 -8
- package/resources/mailboxes/mailboxes.js.map +1 -1
- package/resources/mailboxes/mailboxes.mjs +25 -8
- package/resources/mailboxes/mailboxes.mjs.map +1 -1
- package/resources/messages/index.d.mts +1 -1
- package/resources/messages/index.d.mts.map +1 -1
- package/resources/messages/index.d.ts +1 -1
- package/resources/messages/index.d.ts.map +1 -1
- package/resources/messages/index.js.map +1 -1
- package/resources/messages/index.mjs +1 -1
- package/resources/messages/index.mjs.map +1 -1
- package/resources/messages/messages.d.mts +26 -1
- package/resources/messages/messages.d.mts.map +1 -1
- package/resources/messages/messages.d.ts +26 -1
- package/resources/messages/messages.d.ts.map +1 -1
- package/resources/messages/messages.js +9 -0
- package/resources/messages/messages.js.map +1 -1
- package/resources/messages/messages.mjs +9 -0
- package/resources/messages/messages.mjs.map +1 -1
- package/resources/notifications.d.mts +27 -1
- package/resources/notifications.d.mts.map +1 -1
- package/resources/notifications.d.ts +27 -1
- package/resources/notifications.d.ts.map +1 -1
- package/resources/notifications.js +17 -0
- package/resources/notifications.js.map +1 -1
- package/resources/notifications.mjs +17 -0
- package/resources/notifications.mjs.map +1 -1
- package/resources/numbers/index.d.mts +1 -1
- package/resources/numbers/index.d.mts.map +1 -1
- package/resources/numbers/index.d.ts +1 -1
- package/resources/numbers/index.d.ts.map +1 -1
- package/resources/numbers/index.js.map +1 -1
- package/resources/numbers/index.mjs +1 -1
- package/resources/numbers/index.mjs.map +1 -1
- package/resources/numbers/messages.d.mts +60 -1
- package/resources/numbers/messages.d.mts.map +1 -1
- package/resources/numbers/messages.d.ts +60 -1
- package/resources/numbers/messages.d.ts.map +1 -1
- package/resources/numbers/messages.js +21 -0
- package/resources/numbers/messages.js.map +1 -1
- package/resources/numbers/messages.mjs +21 -0
- package/resources/numbers/messages.mjs.map +1 -1
- package/resources/numbers/numbers.d.mts +123 -15
- package/resources/numbers/numbers.d.mts.map +1 -1
- package/resources/numbers/numbers.d.ts +123 -15
- package/resources/numbers/numbers.d.ts.map +1 -1
- package/resources/numbers/numbers.js +2 -11
- package/resources/numbers/numbers.js.map +1 -1
- package/resources/numbers/numbers.mjs +3 -12
- package/resources/numbers/numbers.mjs.map +1 -1
- package/resources/store/apps.d.mts +23 -2
- package/resources/store/apps.d.mts.map +1 -1
- package/resources/store/apps.d.ts +23 -2
- package/resources/store/apps.d.ts.map +1 -1
- package/resources/tasks/tasks.d.mts +16 -55
- package/resources/tasks/tasks.d.mts.map +1 -1
- package/resources/tasks/tasks.d.ts +16 -55
- package/resources/tasks/tasks.d.ts.map +1 -1
- package/resources/tasks/tasks.js +2 -10
- package/resources/tasks/tasks.js.map +1 -1
- package/resources/tasks/tasks.mjs +2 -10
- package/resources/tasks/tasks.mjs.map +1 -1
- package/resources/webhooks/deliveries.d.mts +22 -31
- package/resources/webhooks/deliveries.d.mts.map +1 -1
- package/resources/webhooks/deliveries.d.ts +22 -31
- package/resources/webhooks/deliveries.d.ts.map +1 -1
- package/resources/webhooks/deliveries.js +4 -30
- package/resources/webhooks/deliveries.js.map +1 -1
- package/resources/webhooks/deliveries.mjs +4 -30
- package/resources/webhooks/deliveries.mjs.map +1 -1
- package/resources/webhooks/index.d.mts +1 -0
- package/resources/webhooks/index.d.mts.map +1 -1
- package/resources/webhooks/index.d.ts +1 -0
- package/resources/webhooks/index.d.ts.map +1 -1
- package/resources/webhooks/index.js +3 -1
- package/resources/webhooks/index.js.map +1 -1
- package/resources/webhooks/index.mjs +1 -0
- package/resources/webhooks/index.mjs.map +1 -1
- package/resources/webhooks/integrations.d.mts +77 -0
- package/resources/webhooks/integrations.d.mts.map +1 -0
- package/resources/webhooks/integrations.d.ts +77 -0
- package/resources/webhooks/integrations.d.ts.map +1 -0
- package/resources/webhooks/integrations.js +26 -0
- package/resources/webhooks/integrations.js.map +1 -0
- package/resources/webhooks/integrations.mjs +22 -0
- package/resources/webhooks/integrations.mjs.map +1 -0
- package/resources/webhooks/webhooks.d.mts +279 -71
- package/resources/webhooks/webhooks.d.mts.map +1 -1
- package/resources/webhooks/webhooks.d.ts +279 -71
- package/resources/webhooks/webhooks.d.ts.map +1 -1
- package/resources/webhooks/webhooks.js +27 -60
- package/resources/webhooks/webhooks.js.map +1 -1
- package/resources/webhooks/webhooks.mjs +27 -60
- package/resources/webhooks/webhooks.mjs.map +1 -1
- package/resources/workflows/action-catalog.d.mts +7 -3
- package/resources/workflows/action-catalog.d.mts.map +1 -1
- package/resources/workflows/action-catalog.d.ts +7 -3
- package/resources/workflows/action-catalog.d.ts.map +1 -1
- package/resources/workflows/actions/actions.d.mts +9 -5
- package/resources/workflows/actions/actions.d.mts.map +1 -1
- package/resources/workflows/actions/actions.d.ts +9 -5
- package/resources/workflows/actions/actions.d.ts.map +1 -1
- package/resources/workflows/actions/actions.js +4 -0
- package/resources/workflows/actions/actions.js.map +1 -1
- package/resources/workflows/actions/actions.mjs +4 -0
- package/resources/workflows/actions/actions.mjs.map +1 -1
- package/resources/workflows/events.d.mts +48 -4
- package/resources/workflows/events.d.mts.map +1 -1
- package/resources/workflows/events.d.ts +48 -4
- package/resources/workflows/events.d.ts.map +1 -1
- package/resources/workflows/executions/executions.d.mts +334 -0
- package/resources/workflows/executions/executions.d.mts.map +1 -0
- package/resources/workflows/executions/executions.d.ts +334 -0
- package/resources/workflows/executions/executions.d.ts.map +1 -0
- package/resources/workflows/executions/executions.js +49 -0
- package/resources/workflows/executions/executions.js.map +1 -0
- package/resources/workflows/executions/executions.mjs +44 -0
- package/resources/workflows/executions/executions.mjs.map +1 -0
- package/resources/workflows/executions/index.d.mts +3 -0
- package/resources/workflows/executions/index.d.mts.map +1 -0
- package/resources/workflows/executions/index.d.ts +3 -0
- package/resources/workflows/executions/index.d.ts.map +1 -0
- package/resources/workflows/executions/index.js +9 -0
- package/resources/workflows/executions/index.js.map +1 -0
- package/resources/workflows/executions/index.mjs +4 -0
- package/resources/workflows/executions/index.mjs.map +1 -0
- package/resources/workflows/executions/screenshots.d.mts +18 -0
- package/resources/workflows/executions/screenshots.d.mts.map +1 -0
- package/resources/workflows/executions/screenshots.d.ts +18 -0
- package/resources/workflows/executions/screenshots.d.ts.map +1 -0
- package/resources/workflows/executions/screenshots.js +23 -0
- package/resources/workflows/executions/screenshots.js.map +1 -0
- package/resources/workflows/executions/screenshots.mjs +19 -0
- package/resources/workflows/executions/screenshots.mjs.map +1 -0
- package/resources/workflows/executions.d.mts +1 -269
- package/resources/workflows/executions.d.mts.map +1 -1
- package/resources/workflows/executions.d.ts +1 -269
- package/resources/workflows/executions.d.ts.map +1 -1
- package/resources/workflows/executions.js +2 -37
- package/resources/workflows/executions.js.map +1 -1
- package/resources/workflows/executions.mjs +1 -35
- package/resources/workflows/executions.mjs.map +1 -1
- package/resources/workflows/flows/actions.d.mts +39 -0
- package/resources/workflows/flows/actions.d.mts.map +1 -1
- package/resources/workflows/flows/actions.d.ts +39 -0
- package/resources/workflows/flows/actions.d.ts.map +1 -1
- package/resources/workflows/flows/actions.js +4 -0
- package/resources/workflows/flows/actions.js.map +1 -1
- package/resources/workflows/flows/actions.mjs +4 -0
- package/resources/workflows/flows/actions.mjs.map +1 -1
- package/resources/workflows/flows/flows.d.mts +529 -18
- package/resources/workflows/flows/flows.d.mts.map +1 -1
- package/resources/workflows/flows/flows.d.ts +529 -18
- package/resources/workflows/flows/flows.d.ts.map +1 -1
- package/resources/workflows/flows/flows.js +75 -0
- package/resources/workflows/flows/flows.js.map +1 -1
- package/resources/workflows/flows/flows.mjs +75 -0
- package/resources/workflows/flows/flows.mjs.map +1 -1
- package/resources/workflows/flows/index.d.mts +1 -1
- package/resources/workflows/flows/index.d.mts.map +1 -1
- package/resources/workflows/flows/index.d.ts +1 -1
- package/resources/workflows/flows/index.d.ts.map +1 -1
- package/resources/workflows/flows/index.js.map +1 -1
- package/resources/workflows/flows/index.mjs.map +1 -1
- package/resources/workflows/index.d.mts +2 -2
- package/resources/workflows/index.d.mts.map +1 -1
- package/resources/workflows/index.d.ts +2 -2
- package/resources/workflows/index.d.ts.map +1 -1
- package/resources/workflows/index.js +4 -4
- package/resources/workflows/index.js.map +1 -1
- package/resources/workflows/index.mjs +1 -1
- package/resources/workflows/index.mjs.map +1 -1
- package/resources/workflows/triggers.d.mts +107 -9
- package/resources/workflows/triggers.d.mts.map +1 -1
- package/resources/workflows/triggers.d.ts +107 -9
- package/resources/workflows/triggers.d.ts.map +1 -1
- package/resources/workflows/triggers.js +14 -0
- package/resources/workflows/triggers.js.map +1 -1
- package/resources/workflows/triggers.mjs +14 -0
- package/resources/workflows/triggers.mjs.map +1 -1
- package/resources/workflows/workflows.d.mts +4 -4
- package/resources/workflows/workflows.d.mts.map +1 -1
- package/resources/workflows/workflows.d.ts +4 -4
- package/resources/workflows/workflows.d.ts.map +1 -1
- package/resources/workflows/workflows.js +2 -2
- package/resources/workflows/workflows.js.map +1 -1
- package/resources/workflows/workflows.mjs +2 -2
- package/resources/workflows/workflows.mjs.map +1 -1
- package/src/client.ts +18 -1
- package/src/resources/apps.ts +18 -15
- package/src/resources/assistant/conversations.ts +12 -27
- package/src/resources/connect/connect.ts +6 -0
- package/src/resources/connect/index.ts +3 -0
- package/src/resources/connect/proxies.ts +119 -19
- package/src/resources/devices/browser.ts +9 -3
- package/src/resources/devices/devices.ts +80 -30
- package/src/resources/devices/index.ts +2 -0
- package/src/resources/devices/recordings.ts +4 -2
- package/src/resources/devices/traffic-sessions.ts +2 -19
- package/src/resources/files.ts +8 -29
- package/src/resources/index.ts +11 -1
- package/src/resources/mailboxes/connections.ts +91 -0
- package/src/resources/mailboxes/index.ts +7 -0
- package/src/resources/mailboxes/mailboxes.ts +146 -24
- package/src/resources/messages/index.ts +6 -1
- package/src/resources/messages/messages.ts +55 -1
- package/src/resources/notifications.ts +37 -0
- package/src/resources/numbers/index.ts +7 -1
- package/src/resources/numbers/messages.ts +92 -1
- package/src/resources/numbers/numbers.ts +143 -25
- package/src/resources/store/apps.ts +291 -2
- package/src/resources/tasks/tasks.ts +18 -65
- package/src/resources/webhooks/deliveries.ts +26 -31
- package/src/resources/webhooks/index.ts +6 -0
- package/src/resources/webhooks/integrations.ts +107 -0
- package/src/resources/webhooks/webhooks.ts +326 -71
- package/src/resources/workflows/action-catalog.ts +11 -3
- package/src/resources/workflows/actions/actions.ts +9 -5
- package/src/resources/workflows/events.ts +62 -4
- package/src/resources/workflows/executions/executions.ts +514 -0
- package/src/resources/workflows/executions/index.ts +12 -0
- package/src/resources/workflows/executions/screenshots.ts +34 -0
- package/src/resources/workflows/executions.ts +1 -412
- package/src/resources/workflows/flows/actions.ts +46 -0
- package/src/resources/workflows/flows/flows.ts +765 -17
- package/src/resources/workflows/flows/index.ts +11 -0
- package/src/resources/workflows/index.ts +12 -1
- package/src/resources/workflows/triggers.ts +128 -10
- package/src/resources/workflows/workflows.ts +32 -10
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -68,16 +68,8 @@ export class Tasks extends APIResource {
|
|
|
68
68
|
* Create and dispatch a new agent task. Returns the task ID and device stream
|
|
69
69
|
* details.
|
|
70
70
|
*/
|
|
71
|
-
run(
|
|
72
|
-
|
|
73
|
-
return this._client.post('/tasks', {
|
|
74
|
-
body,
|
|
75
|
-
...options,
|
|
76
|
-
headers: buildHeaders([
|
|
77
|
-
{ ...(idempotencyKey != null ? { 'Idempotency-Key': idempotencyKey } : undefined) },
|
|
78
|
-
options?.headers,
|
|
79
|
-
]),
|
|
80
|
-
});
|
|
71
|
+
run(body: TaskRunParams, options?: RequestOptions): APIPromise<TaskRunResponse> {
|
|
72
|
+
return this._client.post('/tasks', { body, ...options });
|
|
81
73
|
}
|
|
82
74
|
|
|
83
75
|
/**
|
|
@@ -755,6 +747,11 @@ export namespace TaskGetTrajectoryResponse {
|
|
|
755
747
|
|
|
756
748
|
code?: string | null;
|
|
757
749
|
|
|
750
|
+
/**
|
|
751
|
+
* Classification of tool-call markup in an LLM response.
|
|
752
|
+
*/
|
|
753
|
+
tool_call_status?: 'valid' | 'no_markup' | 'malformed';
|
|
754
|
+
|
|
758
755
|
usage?: Data.Usage | null;
|
|
759
756
|
}
|
|
760
757
|
|
|
@@ -1179,114 +1176,70 @@ export interface TaskListParams {
|
|
|
1179
1176
|
|
|
1180
1177
|
export interface TaskRunParams {
|
|
1181
1178
|
/**
|
|
1182
|
-
*
|
|
1179
|
+
* The ID of the device to run the task on.
|
|
1183
1180
|
*/
|
|
1184
1181
|
deviceId: string;
|
|
1185
1182
|
|
|
1186
|
-
/**
|
|
1187
|
-
* Body param
|
|
1188
|
-
*/
|
|
1189
1183
|
task: string;
|
|
1190
1184
|
|
|
1191
|
-
/**
|
|
1192
|
-
* Body param
|
|
1193
|
-
*/
|
|
1194
1185
|
accessibility?: boolean;
|
|
1195
1186
|
|
|
1196
|
-
/**
|
|
1197
|
-
* Body param
|
|
1198
|
-
*/
|
|
1199
1187
|
apps?: Array<string>;
|
|
1200
1188
|
|
|
1201
|
-
/**
|
|
1202
|
-
* Body param
|
|
1203
|
-
*/
|
|
1204
1189
|
continueOnFailure?: boolean;
|
|
1205
1190
|
|
|
1206
|
-
/**
|
|
1207
|
-
* Body param
|
|
1208
|
-
*/
|
|
1209
1191
|
credentials?: Array<TaskRunParams.Credential>;
|
|
1210
1192
|
|
|
1211
1193
|
/**
|
|
1212
|
-
*
|
|
1194
|
+
* The display ID of the device to run the task on.
|
|
1213
1195
|
*/
|
|
1214
1196
|
displayId?: number;
|
|
1215
1197
|
|
|
1216
1198
|
/**
|
|
1217
|
-
*
|
|
1199
|
+
* Maximum agent execution time in seconds (1–2700).
|
|
1218
1200
|
*/
|
|
1219
1201
|
executionTimeout?: number;
|
|
1220
1202
|
|
|
1221
|
-
/**
|
|
1222
|
-
* Body param
|
|
1223
|
-
*/
|
|
1224
1203
|
files?: Array<string>;
|
|
1225
1204
|
|
|
1226
1205
|
/**
|
|
1227
|
-
*
|
|
1228
|
-
* 'openai/gpt-5.6-luna')
|
|
1206
|
+
* The LLM model identifier to use for the task (e.g. 'openai/gpt-6-luna')
|
|
1229
1207
|
*/
|
|
1230
1208
|
llmModel?: string;
|
|
1231
1209
|
|
|
1232
|
-
/**
|
|
1233
|
-
* Body param
|
|
1234
|
-
*/
|
|
1235
1210
|
maxSteps?: number;
|
|
1236
1211
|
|
|
1237
|
-
/**
|
|
1238
|
-
* Body param
|
|
1239
|
-
*/
|
|
1240
1212
|
outputSchema?: { [key: string]: unknown } | null;
|
|
1241
1213
|
|
|
1242
|
-
/**
|
|
1243
|
-
* Body param
|
|
1244
|
-
*/
|
|
1245
1214
|
reasoning?: boolean;
|
|
1246
1215
|
|
|
1247
1216
|
/**
|
|
1248
|
-
*
|
|
1249
|
-
* reference
|
|
1217
|
+
* Record device video for the whole task and persist a retrievable reference
|
|
1250
1218
|
*/
|
|
1251
1219
|
recordingEnabled?: boolean;
|
|
1252
1220
|
|
|
1253
|
-
/**
|
|
1254
|
-
* Body param
|
|
1255
|
-
*/
|
|
1256
1221
|
stealth?: boolean;
|
|
1257
1222
|
|
|
1258
1223
|
/**
|
|
1259
|
-
*
|
|
1260
|
-
* structured_output
|
|
1224
|
+
* LLM model used by sub-agent roles: executor, app_opener, structured_output
|
|
1261
1225
|
*/
|
|
1262
1226
|
subagentModel?: string;
|
|
1263
1227
|
|
|
1264
1228
|
/**
|
|
1265
|
-
*
|
|
1266
|
-
*
|
|
1229
|
+
* Optional custom behavioral overlay applied on top of the agent's default system
|
|
1230
|
+
* prompts. Never echoed back in responses or errors.
|
|
1267
1231
|
*/
|
|
1268
1232
|
systemPrompt?: string | null;
|
|
1269
1233
|
|
|
1270
1234
|
/**
|
|
1271
|
-
* @deprecated
|
|
1272
|
-
*
|
|
1235
|
+
* @deprecated Deprecated and ignored. Sampling behavior is controlled by the model
|
|
1236
|
+
* provider.
|
|
1273
1237
|
*/
|
|
1274
1238
|
temperature?: number;
|
|
1275
1239
|
|
|
1276
|
-
/**
|
|
1277
|
-
* Body param
|
|
1278
|
-
*/
|
|
1279
1240
|
vision?: boolean;
|
|
1280
1241
|
|
|
1281
|
-
/**
|
|
1282
|
-
* Body param
|
|
1283
|
-
*/
|
|
1284
1242
|
vpnCountry?: 'US' | 'BR' | 'FR' | 'DE' | 'IN' | 'JP' | 'KR' | 'ZA' | null;
|
|
1285
|
-
|
|
1286
|
-
/**
|
|
1287
|
-
* Header param
|
|
1288
|
-
*/
|
|
1289
|
-
'Idempotency-Key'?: string;
|
|
1290
1243
|
}
|
|
1291
1244
|
|
|
1292
1245
|
export namespace TaskRunParams {
|
|
@@ -1326,7 +1279,7 @@ export interface TaskRunStreamedParams {
|
|
|
1326
1279
|
files?: Array<string>;
|
|
1327
1280
|
|
|
1328
1281
|
/**
|
|
1329
|
-
* The LLM model identifier to use for the task (e.g. 'openai/gpt-
|
|
1282
|
+
* The LLM model identifier to use for the task (e.g. 'openai/gpt-6-luna')
|
|
1330
1283
|
*/
|
|
1331
1284
|
llmModel?: string;
|
|
1332
1285
|
|
|
@@ -11,12 +11,8 @@ export class Deliveries extends APIResource {
|
|
|
11
11
|
* Returns a paginated feed of webhook deliveries across all of your subscriptions,
|
|
12
12
|
* with the originating endpoint URL included on each record. Results can be
|
|
13
13
|
* filtered by delivery status (pending, success, skipped, or dead), by a `since`
|
|
14
|
-
* timestamp,
|
|
15
|
-
*
|
|
16
|
-
* @example
|
|
17
|
-
* ```ts
|
|
18
|
-
* const deliveries = await client.webhooks.deliveries.list();
|
|
19
|
-
* ```
|
|
14
|
+
* timestamp, by `eventId` (exact match against the originating event id), and/or
|
|
15
|
+
* by endpoint delivery `kind`.
|
|
20
16
|
*/
|
|
21
17
|
list(
|
|
22
18
|
query: DeliveryListParams | null | undefined = {},
|
|
@@ -30,14 +26,6 @@ export class Deliveries extends APIResource {
|
|
|
30
26
|
* identified by its id. Each record reports the event, delivery status, attempt
|
|
31
27
|
* count, and the last response code or error. Results can be filtered by `eventId`
|
|
32
28
|
* (exact match against the originating event id).
|
|
33
|
-
*
|
|
34
|
-
* @example
|
|
35
|
-
* ```ts
|
|
36
|
-
* const response =
|
|
37
|
-
* await client.webhooks.deliveries.listForWebhook(
|
|
38
|
-
* '550e8400-e29b-41d4-a716-446655440000',
|
|
39
|
-
* );
|
|
40
|
-
* ```
|
|
41
29
|
*/
|
|
42
30
|
listForWebhook(
|
|
43
31
|
id: string,
|
|
@@ -51,15 +39,6 @@ export class Deliveries extends APIResource {
|
|
|
51
39
|
* Returns a single delivery for a webhook subscription along with the full list of
|
|
52
40
|
* captured attempt records. Each attempt includes the request URL, method, headers
|
|
53
41
|
* and body, whether it was signed, and the response status, headers, and snippet.
|
|
54
|
-
*
|
|
55
|
-
* @example
|
|
56
|
-
* ```ts
|
|
57
|
-
* const response =
|
|
58
|
-
* await client.webhooks.deliveries.retrieveAttempts(
|
|
59
|
-
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
60
|
-
* { id: '550e8400-e29b-41d4-a716-446655440000' },
|
|
61
|
-
* );
|
|
62
|
-
* ```
|
|
63
42
|
*/
|
|
64
43
|
retrieveAttempts(
|
|
65
44
|
deliveryID: string,
|
|
@@ -73,13 +52,8 @@ export class Deliveries extends APIResource {
|
|
|
73
52
|
/**
|
|
74
53
|
* Returns aggregate delivery statistics across all of your webhooks, including the
|
|
75
54
|
* total count, a breakdown by status (pending, success, skipped, dead), and the
|
|
76
|
-
* overall success rate.
|
|
77
|
-
* window.
|
|
78
|
-
*
|
|
79
|
-
* @example
|
|
80
|
-
* ```ts
|
|
81
|
-
* const response = await client.webhooks.deliveries.stats();
|
|
82
|
-
* ```
|
|
55
|
+
* overall success rate. Optional `since` and endpoint delivery `kind` filters
|
|
56
|
+
* narrow the reporting window.
|
|
83
57
|
*/
|
|
84
58
|
stats(
|
|
85
59
|
query: DeliveryStatsParams | null | undefined = {},
|
|
@@ -115,7 +89,18 @@ export namespace DeliveryListResponse {
|
|
|
115
89
|
|
|
116
90
|
endpointId: string;
|
|
117
91
|
|
|
118
|
-
|
|
92
|
+
endpointKind: 'http' | 'integration';
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* Integration target label of the parent webhook (e.g. `#ops`); null for `http`
|
|
96
|
+
* webhooks.
|
|
97
|
+
*/
|
|
98
|
+
endpointLabel: string | null;
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* Delivery URL of the parent webhook; null for `integration` webhooks.
|
|
102
|
+
*/
|
|
103
|
+
endpointUrl: string | null;
|
|
119
104
|
|
|
120
105
|
eventId: string;
|
|
121
106
|
|
|
@@ -281,6 +266,11 @@ export interface DeliveryListParams {
|
|
|
281
266
|
*/
|
|
282
267
|
eventId?: string;
|
|
283
268
|
|
|
269
|
+
/**
|
|
270
|
+
* Only include deliveries to endpoints of this kind.
|
|
271
|
+
*/
|
|
272
|
+
kind?: 'http' | 'integration';
|
|
273
|
+
|
|
284
274
|
page?: number;
|
|
285
275
|
|
|
286
276
|
pageSize?: number;
|
|
@@ -306,6 +296,11 @@ export interface DeliveryRetrieveAttemptsParams {
|
|
|
306
296
|
}
|
|
307
297
|
|
|
308
298
|
export interface DeliveryStatsParams {
|
|
299
|
+
/**
|
|
300
|
+
* Only include deliveries to endpoints of this kind.
|
|
301
|
+
*/
|
|
302
|
+
kind?: 'http' | 'integration';
|
|
303
|
+
|
|
309
304
|
since?: string;
|
|
310
305
|
}
|
|
311
306
|
|
|
@@ -11,6 +11,12 @@ export {
|
|
|
11
11
|
type DeliveryRetrieveAttemptsParams,
|
|
12
12
|
type DeliveryStatsParams,
|
|
13
13
|
} from './deliveries';
|
|
14
|
+
export {
|
|
15
|
+
Integrations,
|
|
16
|
+
type IntegrationListResponse,
|
|
17
|
+
type IntegrationListTargetsResponse,
|
|
18
|
+
type IntegrationListTargetsParams,
|
|
19
|
+
} from './integrations';
|
|
14
20
|
export {
|
|
15
21
|
Webhooks,
|
|
16
22
|
type WebhookCreateResponse,
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../core/resource';
|
|
4
|
+
import { APIPromise } from '../../core/api-promise';
|
|
5
|
+
import { RequestOptions } from '../../internal/request-options';
|
|
6
|
+
import { path } from '../../internal/utils/path';
|
|
7
|
+
|
|
8
|
+
export class Integrations extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Returns the integrations that can receive webhook events as channel messages
|
|
11
|
+
* (e.g. Slack), with your org's connection state for each. Connect an integration
|
|
12
|
+
* in the Cloud app before creating a webhook for it.
|
|
13
|
+
*/
|
|
14
|
+
list(options?: RequestOptions): APIPromise<IntegrationListResponse> {
|
|
15
|
+
return this._client.get('/webhooks/integrations', options);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Returns the live list of targets (e.g. Slack channels the connected account is a
|
|
20
|
+
* member of) for an integration. Pass a target's `args` together with the
|
|
21
|
+
* integration `capability` to `POST /webhooks` with `kind: "integration"`.
|
|
22
|
+
*/
|
|
23
|
+
listTargets(
|
|
24
|
+
capabilityID: string,
|
|
25
|
+
query: IntegrationListTargetsParams,
|
|
26
|
+
options?: RequestOptions,
|
|
27
|
+
): APIPromise<IntegrationListTargetsResponse> {
|
|
28
|
+
return this._client.get(path`/webhooks/integrations/${capabilityID}/targets`, { query, ...options });
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export interface IntegrationListResponse {
|
|
33
|
+
data: Array<IntegrationListResponse.Data>;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export namespace IntegrationListResponse {
|
|
37
|
+
export interface Data {
|
|
38
|
+
capability: Data.Capability;
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Connection state for your org. Only `connected` integrations can be used as a
|
|
42
|
+
* destination.
|
|
43
|
+
*/
|
|
44
|
+
connection: 'connected' | 'not_connected' | 'expired';
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Opaque key for the Cloud connect dialog.
|
|
48
|
+
*/
|
|
49
|
+
connectKey: string;
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* True for the previous revision during a switch; prefer the non-deprecated one.
|
|
53
|
+
*/
|
|
54
|
+
deprecated: boolean;
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Server-resolved brand logo URL; null when unknown. Show this instead of deriving
|
|
58
|
+
* a logo from connectKey.
|
|
59
|
+
*/
|
|
60
|
+
iconUrl: string | null;
|
|
61
|
+
|
|
62
|
+
label: string;
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* True when targets (e.g. channels) can be listed via
|
|
66
|
+
* `GET /webhooks/integrations/{capabilityId}/targets`.
|
|
67
|
+
*/
|
|
68
|
+
supportsTargets: boolean;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export namespace Data {
|
|
72
|
+
export interface Capability {
|
|
73
|
+
id: string;
|
|
74
|
+
|
|
75
|
+
revision: number;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export interface IntegrationListTargetsResponse {
|
|
81
|
+
data: Array<IntegrationListTargetsResponse.Data>;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export namespace IntegrationListTargetsResponse {
|
|
85
|
+
export interface Data {
|
|
86
|
+
/**
|
|
87
|
+
* Pass as `args` when creating an `integration` webhook.
|
|
88
|
+
*/
|
|
89
|
+
args: { [key: string]: unknown };
|
|
90
|
+
|
|
91
|
+
isPrivate: boolean;
|
|
92
|
+
|
|
93
|
+
label: string;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export interface IntegrationListTargetsParams {
|
|
98
|
+
revision: number;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export declare namespace Integrations {
|
|
102
|
+
export {
|
|
103
|
+
type IntegrationListResponse as IntegrationListResponse,
|
|
104
|
+
type IntegrationListTargetsResponse as IntegrationListTargetsResponse,
|
|
105
|
+
type IntegrationListTargetsParams as IntegrationListTargetsParams,
|
|
106
|
+
};
|
|
107
|
+
}
|