@roarkanalytics/sdk 3.21.0 → 4.1.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 +28 -0
- package/client.d.mts +6 -3
- package/client.d.mts.map +1 -1
- package/client.d.ts +6 -3
- package/client.d.ts.map +1 -1
- package/client.js +6 -3
- package/client.js.map +1 -1
- package/client.mjs +6 -3
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/agent-config.d.mts +394 -0
- package/resources/agent-config.d.mts.map +1 -0
- package/resources/agent-config.d.ts +394 -0
- package/resources/agent-config.d.ts.map +1 -0
- package/resources/agent-config.js +98 -0
- package/resources/agent-config.js.map +1 -0
- package/resources/agent-config.mjs +94 -0
- package/resources/agent-config.mjs.map +1 -0
- package/resources/{autoimprove-fix.d.mts → autoimprove-job.d.mts} +117 -116
- package/resources/autoimprove-job.d.mts.map +1 -0
- package/resources/{autoimprove-fix.d.ts → autoimprove-job.d.ts} +117 -116
- package/resources/autoimprove-job.d.ts.map +1 -0
- package/resources/{autoimprove-fix.js → autoimprove-job.js} +42 -41
- package/resources/autoimprove-job.js.map +1 -0
- package/resources/{autoimprove-fix.mjs → autoimprove-job.mjs} +40 -39
- package/resources/autoimprove-job.mjs.map +1 -0
- package/resources/config.d.mts +9 -0
- package/resources/config.d.mts.map +1 -1
- package/resources/config.d.ts +9 -0
- package/resources/config.d.ts.map +1 -1
- package/resources/customer-flow.d.mts +104 -19
- package/resources/customer-flow.d.mts.map +1 -1
- package/resources/customer-flow.d.ts +104 -19
- package/resources/customer-flow.d.ts.map +1 -1
- package/resources/index.d.mts +2 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +2 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +5 -3
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +2 -1
- package/resources/index.mjs.map +1 -1
- package/resources/simulation-job.d.mts +2 -2
- package/resources/simulation-job.d.mts.map +1 -1
- package/resources/simulation-job.d.ts +2 -2
- package/resources/simulation-job.d.ts.map +1 -1
- package/resources/simulation-run-plan-job.d.mts +1 -1
- package/resources/simulation-run-plan-job.d.mts.map +1 -1
- package/resources/simulation-run-plan-job.d.ts +1 -1
- package/resources/simulation-run-plan-job.d.ts.map +1 -1
- package/src/client.ts +54 -27
- package/src/resources/agent-config.ts +487 -0
- package/src/resources/{autoimprove-fix.ts → autoimprove-job.ts} +139 -138
- package/src/resources/config.ts +13 -0
- package/src/resources/customer-flow.ts +135 -20
- package/src/resources/index.ts +25 -13
- package/src/resources/simulation-job.ts +2 -2
- package/src/resources/simulation-run-plan-job.ts +1 -1
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.mts.map +1 -1
- package/version.d.ts +1 -1
- package/version.d.ts.map +1 -1
- package/version.js +1 -1
- package/version.js.map +1 -1
- package/version.mjs +1 -1
- package/version.mjs.map +1 -1
- package/resources/autoimprove-fix.d.mts.map +0 -1
- package/resources/autoimprove-fix.d.ts.map +0 -1
- package/resources/autoimprove-fix.js.map +0 -1
- package/resources/autoimprove-fix.mjs.map +0 -1
|
@@ -1,29 +1,30 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../core/resource';
|
|
4
|
-
import * as
|
|
4
|
+
import * as AutoimproveJobAPI from './autoimprove-job';
|
|
5
5
|
import { APIPromise } from '../core/api-promise';
|
|
6
6
|
import { RequestOptions } from '../internal/request-options';
|
|
7
7
|
import { path } from '../internal/utils/path';
|
|
8
8
|
|
|
9
|
-
export class
|
|
9
|
+
export class AutoimproveJob extends APIResource {
|
|
10
10
|
/**
|
|
11
11
|
* Commission Roark on an objective. It clones the agent into a staging shadow (or
|
|
12
12
|
* uses your designated staging agent), authors a validation suite of simulated
|
|
13
13
|
* callers, measures a baseline, changes the staging configuration, and re-tests
|
|
14
14
|
* until the objective metric passes its target. Production is never touched by the
|
|
15
|
-
* loop;
|
|
15
|
+
* loop; verified changes wait for promotion.
|
|
16
16
|
*
|
|
17
|
-
* Requires an active provider integration (Vapi or
|
|
18
|
-
* writes enabled. One live
|
|
17
|
+
* Requires an active provider integration (Vapi, Retell, or ElevenLabs) with agent
|
|
18
|
+
* config writes enabled. One live job per agent: starting a second returns a
|
|
19
|
+
* conflict.
|
|
19
20
|
*
|
|
20
|
-
* The
|
|
21
|
+
* The job runs asynchronously; poll GET /v1/autoimprove/job/{jobId} or watch it in
|
|
21
22
|
* the dashboard. When its status is NEEDS_INPUT, answer via the answer endpoint;
|
|
22
23
|
* when AWAITING_PROMOTE, promote or dismiss.
|
|
23
24
|
*
|
|
24
25
|
* @example
|
|
25
26
|
* ```ts
|
|
26
|
-
* const
|
|
27
|
+
* const autoimproveJob = await client.autoimproveJob.create({
|
|
27
28
|
* agentId: 'b3b0c8e2-4c1d-4f6a-9e2b-1a2b3c4d5e6f',
|
|
28
29
|
* objectiveLabel: 'Consent collection should pass',
|
|
29
30
|
* objectiveMetricDefinitionId:
|
|
@@ -32,36 +33,36 @@ export class AutoimproveFix extends APIResource {
|
|
|
32
33
|
* ```
|
|
33
34
|
*/
|
|
34
35
|
create(
|
|
35
|
-
body:
|
|
36
|
+
body: AutoimproveJobCreateParams,
|
|
36
37
|
options?: RequestOptions,
|
|
37
|
-
): APIPromise<
|
|
38
|
-
return this._client.post('/v1/autoimprove/
|
|
38
|
+
): APIPromise<AutoimproveJobCreateResponse> {
|
|
39
|
+
return this._client.post('/v1/autoimprove/job', { body, ...options });
|
|
39
40
|
}
|
|
40
41
|
|
|
41
42
|
/**
|
|
42
|
-
* List the Autoimprove
|
|
43
|
+
* List the Autoimprove jobs in this project, most recent first, capped at 100.
|
|
43
44
|
*
|
|
44
|
-
* A
|
|
45
|
+
* A job is one autonomous engagement: Roark improving one agent toward one
|
|
45
46
|
* objective metric on a staging copy, with a human-gated promote to production at
|
|
46
47
|
* the end.
|
|
47
48
|
*
|
|
48
49
|
* @example
|
|
49
50
|
* ```ts
|
|
50
|
-
* const
|
|
51
|
+
* const autoimproveJobs = await client.autoimproveJob.list();
|
|
51
52
|
* ```
|
|
52
53
|
*/
|
|
53
|
-
list(options?: RequestOptions): APIPromise<
|
|
54
|
-
return this._client.get('/v1/autoimprove/
|
|
54
|
+
list(options?: RequestOptions): APIPromise<AutoimproveJobListResponse> {
|
|
55
|
+
return this._client.get('/v1/autoimprove/job', options);
|
|
55
56
|
}
|
|
56
57
|
|
|
57
58
|
/**
|
|
58
|
-
* Answer the question a
|
|
59
|
+
* Answer the question a job is blocked on. Only meaningful while the job status is
|
|
59
60
|
* NEEDS_INPUT (the open QUESTION entry carries the offered options; free text is
|
|
60
61
|
* also accepted). Otherwise returns a conflict.
|
|
61
62
|
*
|
|
62
63
|
* @example
|
|
63
64
|
* ```ts
|
|
64
|
-
* const response = await client.
|
|
65
|
+
* const response = await client.autoimproveJob.answerQuestion(
|
|
65
66
|
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
66
67
|
* {
|
|
67
68
|
* text: 'Keep the current voice; focus on the closing confirmation.',
|
|
@@ -70,63 +71,63 @@ export class AutoimproveFix extends APIResource {
|
|
|
70
71
|
* ```
|
|
71
72
|
*/
|
|
72
73
|
answerQuestion(
|
|
73
|
-
|
|
74
|
-
body:
|
|
74
|
+
jobID: string,
|
|
75
|
+
body: AutoimproveJobAnswerQuestionParams,
|
|
75
76
|
options?: RequestOptions,
|
|
76
|
-
): APIPromise<
|
|
77
|
-
return this._client.post(path`/v1/autoimprove/
|
|
77
|
+
): APIPromise<AutoimproveJobAnswerQuestionResponse> {
|
|
78
|
+
return this._client.post(path`/v1/autoimprove/job/${jobID}/answer`, { body, ...options });
|
|
78
79
|
}
|
|
79
80
|
|
|
80
81
|
/**
|
|
81
|
-
* Stop a live
|
|
82
|
+
* Stop a live job. Production is never changed by a cancel; everything the job set
|
|
82
83
|
* up (the shadow agent, its phone number, authored test flows and run plan) is
|
|
83
84
|
* cleaned up automatically.
|
|
84
85
|
*
|
|
85
86
|
* @example
|
|
86
87
|
* ```ts
|
|
87
|
-
* const response = await client.
|
|
88
|
+
* const response = await client.autoimproveJob.cancel(
|
|
88
89
|
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
89
90
|
* );
|
|
90
91
|
* ```
|
|
91
92
|
*/
|
|
92
|
-
cancel(
|
|
93
|
-
return this._client.post(path`/v1/autoimprove/
|
|
93
|
+
cancel(jobID: string, options?: RequestOptions): APIPromise<AutoimproveJobCancelResponse> {
|
|
94
|
+
return this._client.post(path`/v1/autoimprove/job/${jobID}/cancel`, options);
|
|
94
95
|
}
|
|
95
96
|
|
|
96
97
|
/**
|
|
97
|
-
* Discard a verified
|
|
98
|
-
* staging resources are cleaned up. Only a
|
|
98
|
+
* Discard a verified job without promoting: production stays untouched and the
|
|
99
|
+
* staging resources are cleaned up. Only a job in AWAITING_PROMOTE can be
|
|
99
100
|
* dismissed.
|
|
100
101
|
*
|
|
101
102
|
* @example
|
|
102
103
|
* ```ts
|
|
103
|
-
* const response = await client.
|
|
104
|
+
* const response = await client.autoimproveJob.dismiss(
|
|
104
105
|
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
105
106
|
* );
|
|
106
107
|
* ```
|
|
107
108
|
*/
|
|
108
|
-
dismiss(
|
|
109
|
-
return this._client.post(path`/v1/autoimprove/
|
|
109
|
+
dismiss(jobID: string, options?: RequestOptions): APIPromise<AutoimproveJobDismissResponse> {
|
|
110
|
+
return this._client.post(path`/v1/autoimprove/job/${jobID}/dismiss`, options);
|
|
110
111
|
}
|
|
111
112
|
|
|
112
113
|
/**
|
|
113
|
-
* Fetch one
|
|
114
|
+
* Fetch one job with its full worklog: every step Roark took, the validation
|
|
114
115
|
* batches with their pass-rate movement, any question it is waiting on, and its
|
|
115
116
|
* final report once concluded.
|
|
116
117
|
*
|
|
117
118
|
* @example
|
|
118
119
|
* ```ts
|
|
119
|
-
* const response = await client.
|
|
120
|
+
* const response = await client.autoimproveJob.getByID(
|
|
120
121
|
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
121
122
|
* );
|
|
122
123
|
* ```
|
|
123
124
|
*/
|
|
124
|
-
getByID(
|
|
125
|
-
return this._client.get(path`/v1/autoimprove/
|
|
125
|
+
getByID(jobID: string, options?: RequestOptions): APIPromise<AutoimproveJobGetByIDResponse> {
|
|
126
|
+
return this._client.get(path`/v1/autoimprove/job/${jobID}`, options);
|
|
126
127
|
}
|
|
127
128
|
|
|
128
129
|
/**
|
|
129
|
-
* Apply the verified staging changes to the PRODUCTION agent. Only a
|
|
130
|
+
* Apply the verified staging changes to the PRODUCTION agent. Only a job in
|
|
130
131
|
* AWAITING_PROMOTE can be promoted.
|
|
131
132
|
*
|
|
132
133
|
* A snapshot of the production configuration is taken immediately before the
|
|
@@ -135,23 +136,23 @@ export class AutoimproveFix extends APIResource {
|
|
|
135
136
|
*
|
|
136
137
|
* @example
|
|
137
138
|
* ```ts
|
|
138
|
-
* const response = await client.
|
|
139
|
+
* const response = await client.autoimproveJob.promote(
|
|
139
140
|
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
140
141
|
* );
|
|
141
142
|
* ```
|
|
142
143
|
*/
|
|
143
|
-
promote(
|
|
144
|
-
return this._client.post(path`/v1/autoimprove/
|
|
144
|
+
promote(jobID: string, options?: RequestOptions): APIPromise<AutoimproveJobPromoteResponse> {
|
|
145
|
+
return this._client.post(path`/v1/autoimprove/job/${jobID}/promote`, options);
|
|
145
146
|
}
|
|
146
147
|
|
|
147
148
|
/**
|
|
148
|
-
* Steer Roark mid-
|
|
149
|
-
* binding. Accepted while the
|
|
150
|
-
* concluded
|
|
149
|
+
* Steer Roark mid-job. The message is folded into its next decision and is
|
|
150
|
+
* binding. Accepted while the job is live (RUNNING, NEEDS_INPUT, or PAUSED); a
|
|
151
|
+
* concluded job returns a conflict.
|
|
151
152
|
*
|
|
152
153
|
* @example
|
|
153
154
|
* ```ts
|
|
154
|
-
* const response = await client.
|
|
155
|
+
* const response = await client.autoimproveJob.sendGuidance(
|
|
155
156
|
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
156
157
|
* {
|
|
157
158
|
* text: 'Keep the current voice; focus on the closing confirmation.',
|
|
@@ -160,16 +161,16 @@ export class AutoimproveFix extends APIResource {
|
|
|
160
161
|
* ```
|
|
161
162
|
*/
|
|
162
163
|
sendGuidance(
|
|
163
|
-
|
|
164
|
-
body:
|
|
164
|
+
jobID: string,
|
|
165
|
+
body: AutoimproveJobSendGuidanceParams,
|
|
165
166
|
options?: RequestOptions,
|
|
166
|
-
): APIPromise<
|
|
167
|
-
return this._client.post(path`/v1/autoimprove/
|
|
167
|
+
): APIPromise<AutoimproveJobSendGuidanceResponse> {
|
|
168
|
+
return this._client.post(path`/v1/autoimprove/job/${jobID}/guidance`, { body, ...options });
|
|
168
169
|
}
|
|
169
170
|
}
|
|
170
171
|
|
|
171
172
|
/**
|
|
172
|
-
* One entry in the
|
|
173
|
+
* One entry in the job's worklog: what Roark did or observed at that step.
|
|
173
174
|
* VALIDATION entries carry the batch's trial count and pass-rate movement;
|
|
174
175
|
* QUESTION entries carry the quick-reply options Roark is waiting on.
|
|
175
176
|
*/
|
|
@@ -211,20 +212,20 @@ export interface AutoimproveLogEntry {
|
|
|
211
212
|
trialCount: number | null;
|
|
212
213
|
}
|
|
213
214
|
|
|
214
|
-
export interface
|
|
215
|
+
export interface AutoimproveJobCreateResponse {
|
|
215
216
|
/**
|
|
216
|
-
* One Autoimprove
|
|
217
|
-
*
|
|
218
|
-
*
|
|
217
|
+
* One Autoimprove job: Roark autonomously improving one agent toward one objective
|
|
218
|
+
* metric. Roark only ever changes the staging agent (a shadow clone by default);
|
|
219
|
+
* production changes exactly once, when verified changes are promoted.
|
|
219
220
|
*/
|
|
220
|
-
data:
|
|
221
|
+
data: AutoimproveJobCreateResponse.Data;
|
|
221
222
|
}
|
|
222
223
|
|
|
223
|
-
export namespace
|
|
224
|
+
export namespace AutoimproveJobCreateResponse {
|
|
224
225
|
/**
|
|
225
|
-
* One Autoimprove
|
|
226
|
-
*
|
|
227
|
-
*
|
|
226
|
+
* One Autoimprove job: Roark autonomously improving one agent toward one objective
|
|
227
|
+
* metric. Roark only ever changes the staging agent (a shadow clone by default);
|
|
228
|
+
* production changes exactly once, when verified changes are promoted.
|
|
228
229
|
*/
|
|
229
230
|
export interface Data {
|
|
230
231
|
id: string;
|
|
@@ -234,18 +235,18 @@ export namespace AutoimproveFixCreateResponse {
|
|
|
234
235
|
baselineValue: number | null;
|
|
235
236
|
|
|
236
237
|
/**
|
|
237
|
-
* When the
|
|
238
|
+
* When the job reached a terminal status (ISO 8601).
|
|
238
239
|
*/
|
|
239
240
|
concludedAt: string | null;
|
|
240
241
|
|
|
241
242
|
/**
|
|
242
|
-
* When the
|
|
243
|
+
* When the job was created (ISO 8601).
|
|
243
244
|
*/
|
|
244
245
|
createdAt: string;
|
|
245
246
|
|
|
246
247
|
currentValue: number | null;
|
|
247
248
|
|
|
248
|
-
customerIntegrationId: string;
|
|
249
|
+
customerIntegrationId: string | null;
|
|
249
250
|
|
|
250
251
|
finalReport: string | null;
|
|
251
252
|
|
|
@@ -273,7 +274,7 @@ export namespace AutoimproveFixCreateResponse {
|
|
|
273
274
|
|
|
274
275
|
stagingAgentId: string;
|
|
275
276
|
|
|
276
|
-
stagingKind: 'DESIGNATED' | 'SHADOW';
|
|
277
|
+
stagingKind: 'DESIGNATED' | 'SHADOW' | 'CHANNEL';
|
|
277
278
|
|
|
278
279
|
status:
|
|
279
280
|
| 'RUNNING'
|
|
@@ -290,7 +291,7 @@ export namespace AutoimproveFixCreateResponse {
|
|
|
290
291
|
trigger: 'ISSUE' | 'RUN_THRESHOLD_FAILED' | 'USER' | 'DEGRADATION';
|
|
291
292
|
|
|
292
293
|
/**
|
|
293
|
-
* When the
|
|
294
|
+
* When the job last changed (ISO 8601).
|
|
294
295
|
*/
|
|
295
296
|
updatedAt: string;
|
|
296
297
|
|
|
@@ -300,15 +301,15 @@ export namespace AutoimproveFixCreateResponse {
|
|
|
300
301
|
}
|
|
301
302
|
}
|
|
302
303
|
|
|
303
|
-
export interface
|
|
304
|
-
data: Array<
|
|
304
|
+
export interface AutoimproveJobListResponse {
|
|
305
|
+
data: Array<AutoimproveJobListResponse.Data>;
|
|
305
306
|
}
|
|
306
307
|
|
|
307
|
-
export namespace
|
|
308
|
+
export namespace AutoimproveJobListResponse {
|
|
308
309
|
/**
|
|
309
|
-
* One Autoimprove
|
|
310
|
-
*
|
|
311
|
-
*
|
|
310
|
+
* One Autoimprove job: Roark autonomously improving one agent toward one objective
|
|
311
|
+
* metric. Roark only ever changes the staging agent (a shadow clone by default);
|
|
312
|
+
* production changes exactly once, when verified changes are promoted.
|
|
312
313
|
*/
|
|
313
314
|
export interface Data {
|
|
314
315
|
id: string;
|
|
@@ -318,18 +319,18 @@ export namespace AutoimproveFixListResponse {
|
|
|
318
319
|
baselineValue: number | null;
|
|
319
320
|
|
|
320
321
|
/**
|
|
321
|
-
* When the
|
|
322
|
+
* When the job reached a terminal status (ISO 8601).
|
|
322
323
|
*/
|
|
323
324
|
concludedAt: string | null;
|
|
324
325
|
|
|
325
326
|
/**
|
|
326
|
-
* When the
|
|
327
|
+
* When the job was created (ISO 8601).
|
|
327
328
|
*/
|
|
328
329
|
createdAt: string;
|
|
329
330
|
|
|
330
331
|
currentValue: number | null;
|
|
331
332
|
|
|
332
|
-
customerIntegrationId: string;
|
|
333
|
+
customerIntegrationId: string | null;
|
|
333
334
|
|
|
334
335
|
finalReport: string | null;
|
|
335
336
|
|
|
@@ -357,7 +358,7 @@ export namespace AutoimproveFixListResponse {
|
|
|
357
358
|
|
|
358
359
|
stagingAgentId: string;
|
|
359
360
|
|
|
360
|
-
stagingKind: 'DESIGNATED' | 'SHADOW';
|
|
361
|
+
stagingKind: 'DESIGNATED' | 'SHADOW' | 'CHANNEL';
|
|
361
362
|
|
|
362
363
|
status:
|
|
363
364
|
| 'RUNNING'
|
|
@@ -374,7 +375,7 @@ export namespace AutoimproveFixListResponse {
|
|
|
374
375
|
trigger: 'ISSUE' | 'RUN_THRESHOLD_FAILED' | 'USER' | 'DEGRADATION';
|
|
375
376
|
|
|
376
377
|
/**
|
|
377
|
-
* When the
|
|
378
|
+
* When the job last changed (ISO 8601).
|
|
378
379
|
*/
|
|
379
380
|
updatedAt: string;
|
|
380
381
|
|
|
@@ -384,40 +385,40 @@ export namespace AutoimproveFixListResponse {
|
|
|
384
385
|
}
|
|
385
386
|
}
|
|
386
387
|
|
|
387
|
-
export interface
|
|
388
|
-
data:
|
|
388
|
+
export interface AutoimproveJobAnswerQuestionResponse {
|
|
389
|
+
data: AutoimproveJobAnswerQuestionResponse.Data;
|
|
389
390
|
}
|
|
390
391
|
|
|
391
|
-
export namespace
|
|
392
|
+
export namespace AutoimproveJobAnswerQuestionResponse {
|
|
392
393
|
export interface Data {
|
|
393
394
|
accepted: true;
|
|
394
395
|
}
|
|
395
396
|
}
|
|
396
397
|
|
|
397
|
-
export interface
|
|
398
|
-
data:
|
|
398
|
+
export interface AutoimproveJobCancelResponse {
|
|
399
|
+
data: AutoimproveJobCancelResponse.Data;
|
|
399
400
|
}
|
|
400
401
|
|
|
401
|
-
export namespace
|
|
402
|
+
export namespace AutoimproveJobCancelResponse {
|
|
402
403
|
export interface Data {
|
|
403
404
|
accepted: true;
|
|
404
405
|
}
|
|
405
406
|
}
|
|
406
407
|
|
|
407
|
-
export interface
|
|
408
|
+
export interface AutoimproveJobDismissResponse {
|
|
408
409
|
/**
|
|
409
|
-
* One Autoimprove
|
|
410
|
-
*
|
|
411
|
-
*
|
|
410
|
+
* One Autoimprove job: Roark autonomously improving one agent toward one objective
|
|
411
|
+
* metric. Roark only ever changes the staging agent (a shadow clone by default);
|
|
412
|
+
* production changes exactly once, when verified changes are promoted.
|
|
412
413
|
*/
|
|
413
|
-
data:
|
|
414
|
+
data: AutoimproveJobDismissResponse.Data;
|
|
414
415
|
}
|
|
415
416
|
|
|
416
|
-
export namespace
|
|
417
|
+
export namespace AutoimproveJobDismissResponse {
|
|
417
418
|
/**
|
|
418
|
-
* One Autoimprove
|
|
419
|
-
*
|
|
420
|
-
*
|
|
419
|
+
* One Autoimprove job: Roark autonomously improving one agent toward one objective
|
|
420
|
+
* metric. Roark only ever changes the staging agent (a shadow clone by default);
|
|
421
|
+
* production changes exactly once, when verified changes are promoted.
|
|
421
422
|
*/
|
|
422
423
|
export interface Data {
|
|
423
424
|
id: string;
|
|
@@ -427,18 +428,18 @@ export namespace AutoimproveFixDismissResponse {
|
|
|
427
428
|
baselineValue: number | null;
|
|
428
429
|
|
|
429
430
|
/**
|
|
430
|
-
* When the
|
|
431
|
+
* When the job reached a terminal status (ISO 8601).
|
|
431
432
|
*/
|
|
432
433
|
concludedAt: string | null;
|
|
433
434
|
|
|
434
435
|
/**
|
|
435
|
-
* When the
|
|
436
|
+
* When the job was created (ISO 8601).
|
|
436
437
|
*/
|
|
437
438
|
createdAt: string;
|
|
438
439
|
|
|
439
440
|
currentValue: number | null;
|
|
440
441
|
|
|
441
|
-
customerIntegrationId: string;
|
|
442
|
+
customerIntegrationId: string | null;
|
|
442
443
|
|
|
443
444
|
finalReport: string | null;
|
|
444
445
|
|
|
@@ -466,7 +467,7 @@ export namespace AutoimproveFixDismissResponse {
|
|
|
466
467
|
|
|
467
468
|
stagingAgentId: string;
|
|
468
469
|
|
|
469
|
-
stagingKind: 'DESIGNATED' | 'SHADOW';
|
|
470
|
+
stagingKind: 'DESIGNATED' | 'SHADOW' | 'CHANNEL';
|
|
470
471
|
|
|
471
472
|
status:
|
|
472
473
|
| 'RUNNING'
|
|
@@ -483,7 +484,7 @@ export namespace AutoimproveFixDismissResponse {
|
|
|
483
484
|
trigger: 'ISSUE' | 'RUN_THRESHOLD_FAILED' | 'USER' | 'DEGRADATION';
|
|
484
485
|
|
|
485
486
|
/**
|
|
486
|
-
* When the
|
|
487
|
+
* When the job last changed (ISO 8601).
|
|
487
488
|
*/
|
|
488
489
|
updatedAt: string;
|
|
489
490
|
|
|
@@ -493,15 +494,15 @@ export namespace AutoimproveFixDismissResponse {
|
|
|
493
494
|
}
|
|
494
495
|
}
|
|
495
496
|
|
|
496
|
-
export interface
|
|
497
|
-
data:
|
|
497
|
+
export interface AutoimproveJobGetByIDResponse {
|
|
498
|
+
data: AutoimproveJobGetByIDResponse.Data;
|
|
498
499
|
}
|
|
499
500
|
|
|
500
|
-
export namespace
|
|
501
|
+
export namespace AutoimproveJobGetByIDResponse {
|
|
501
502
|
/**
|
|
502
|
-
* One Autoimprove
|
|
503
|
-
*
|
|
504
|
-
*
|
|
503
|
+
* One Autoimprove job: Roark autonomously improving one agent toward one objective
|
|
504
|
+
* metric. Roark only ever changes the staging agent (a shadow clone by default);
|
|
505
|
+
* production changes exactly once, when verified changes are promoted.
|
|
505
506
|
*/
|
|
506
507
|
export interface Data {
|
|
507
508
|
id: string;
|
|
@@ -511,18 +512,18 @@ export namespace AutoimproveFixGetByIDResponse {
|
|
|
511
512
|
baselineValue: number | null;
|
|
512
513
|
|
|
513
514
|
/**
|
|
514
|
-
* When the
|
|
515
|
+
* When the job reached a terminal status (ISO 8601).
|
|
515
516
|
*/
|
|
516
517
|
concludedAt: string | null;
|
|
517
518
|
|
|
518
519
|
/**
|
|
519
|
-
* When the
|
|
520
|
+
* When the job was created (ISO 8601).
|
|
520
521
|
*/
|
|
521
522
|
createdAt: string;
|
|
522
523
|
|
|
523
524
|
currentValue: number | null;
|
|
524
525
|
|
|
525
|
-
customerIntegrationId: string;
|
|
526
|
+
customerIntegrationId: string | null;
|
|
526
527
|
|
|
527
528
|
finalReport: string | null;
|
|
528
529
|
|
|
@@ -535,7 +536,7 @@ export namespace AutoimproveFixGetByIDResponse {
|
|
|
535
536
|
/**
|
|
536
537
|
* The full worklog, oldest first.
|
|
537
538
|
*/
|
|
538
|
-
logEntries: Array<
|
|
539
|
+
logEntries: Array<AutoimproveJobAPI.AutoimproveLogEntry>;
|
|
539
540
|
|
|
540
541
|
maxIterations: number;
|
|
541
542
|
|
|
@@ -555,7 +556,7 @@ export namespace AutoimproveFixGetByIDResponse {
|
|
|
555
556
|
|
|
556
557
|
stagingAgentId: string;
|
|
557
558
|
|
|
558
|
-
stagingKind: 'DESIGNATED' | 'SHADOW';
|
|
559
|
+
stagingKind: 'DESIGNATED' | 'SHADOW' | 'CHANNEL';
|
|
559
560
|
|
|
560
561
|
status:
|
|
561
562
|
| 'RUNNING'
|
|
@@ -572,7 +573,7 @@ export namespace AutoimproveFixGetByIDResponse {
|
|
|
572
573
|
trigger: 'ISSUE' | 'RUN_THRESHOLD_FAILED' | 'USER' | 'DEGRADATION';
|
|
573
574
|
|
|
574
575
|
/**
|
|
575
|
-
* When the
|
|
576
|
+
* When the job last changed (ISO 8601).
|
|
576
577
|
*/
|
|
577
578
|
updatedAt: string;
|
|
578
579
|
|
|
@@ -582,20 +583,20 @@ export namespace AutoimproveFixGetByIDResponse {
|
|
|
582
583
|
}
|
|
583
584
|
}
|
|
584
585
|
|
|
585
|
-
export interface
|
|
586
|
+
export interface AutoimproveJobPromoteResponse {
|
|
586
587
|
/**
|
|
587
|
-
* One Autoimprove
|
|
588
|
-
*
|
|
589
|
-
*
|
|
588
|
+
* One Autoimprove job: Roark autonomously improving one agent toward one objective
|
|
589
|
+
* metric. Roark only ever changes the staging agent (a shadow clone by default);
|
|
590
|
+
* production changes exactly once, when verified changes are promoted.
|
|
590
591
|
*/
|
|
591
|
-
data:
|
|
592
|
+
data: AutoimproveJobPromoteResponse.Data;
|
|
592
593
|
}
|
|
593
594
|
|
|
594
|
-
export namespace
|
|
595
|
+
export namespace AutoimproveJobPromoteResponse {
|
|
595
596
|
/**
|
|
596
|
-
* One Autoimprove
|
|
597
|
-
*
|
|
598
|
-
*
|
|
597
|
+
* One Autoimprove job: Roark autonomously improving one agent toward one objective
|
|
598
|
+
* metric. Roark only ever changes the staging agent (a shadow clone by default);
|
|
599
|
+
* production changes exactly once, when verified changes are promoted.
|
|
599
600
|
*/
|
|
600
601
|
export interface Data {
|
|
601
602
|
id: string;
|
|
@@ -605,18 +606,18 @@ export namespace AutoimproveFixPromoteResponse {
|
|
|
605
606
|
baselineValue: number | null;
|
|
606
607
|
|
|
607
608
|
/**
|
|
608
|
-
* When the
|
|
609
|
+
* When the job reached a terminal status (ISO 8601).
|
|
609
610
|
*/
|
|
610
611
|
concludedAt: string | null;
|
|
611
612
|
|
|
612
613
|
/**
|
|
613
|
-
* When the
|
|
614
|
+
* When the job was created (ISO 8601).
|
|
614
615
|
*/
|
|
615
616
|
createdAt: string;
|
|
616
617
|
|
|
617
618
|
currentValue: number | null;
|
|
618
619
|
|
|
619
|
-
customerIntegrationId: string;
|
|
620
|
+
customerIntegrationId: string | null;
|
|
620
621
|
|
|
621
622
|
finalReport: string | null;
|
|
622
623
|
|
|
@@ -644,7 +645,7 @@ export namespace AutoimproveFixPromoteResponse {
|
|
|
644
645
|
|
|
645
646
|
stagingAgentId: string;
|
|
646
647
|
|
|
647
|
-
stagingKind: 'DESIGNATED' | 'SHADOW';
|
|
648
|
+
stagingKind: 'DESIGNATED' | 'SHADOW' | 'CHANNEL';
|
|
648
649
|
|
|
649
650
|
status:
|
|
650
651
|
| 'RUNNING'
|
|
@@ -661,7 +662,7 @@ export namespace AutoimproveFixPromoteResponse {
|
|
|
661
662
|
trigger: 'ISSUE' | 'RUN_THRESHOLD_FAILED' | 'USER' | 'DEGRADATION';
|
|
662
663
|
|
|
663
664
|
/**
|
|
664
|
-
* When the
|
|
665
|
+
* When the job last changed (ISO 8601).
|
|
665
666
|
*/
|
|
666
667
|
updatedAt: string;
|
|
667
668
|
|
|
@@ -671,24 +672,24 @@ export namespace AutoimproveFixPromoteResponse {
|
|
|
671
672
|
}
|
|
672
673
|
}
|
|
673
674
|
|
|
674
|
-
export interface
|
|
675
|
-
data:
|
|
675
|
+
export interface AutoimproveJobSendGuidanceResponse {
|
|
676
|
+
data: AutoimproveJobSendGuidanceResponse.Data;
|
|
676
677
|
}
|
|
677
678
|
|
|
678
|
-
export namespace
|
|
679
|
+
export namespace AutoimproveJobSendGuidanceResponse {
|
|
679
680
|
export interface Data {
|
|
680
681
|
accepted: true;
|
|
681
682
|
}
|
|
682
683
|
}
|
|
683
684
|
|
|
684
|
-
export interface
|
|
685
|
+
export interface AutoimproveJobCreateParams {
|
|
685
686
|
/**
|
|
686
687
|
* The production agent to improve. It is never modified until you promote.
|
|
687
688
|
*/
|
|
688
689
|
agentId: string;
|
|
689
690
|
|
|
690
691
|
/**
|
|
691
|
-
* Human-readable label for the objective, shown everywhere the
|
|
692
|
+
* Human-readable label for the objective, shown everywhere the job appears.
|
|
692
693
|
*/
|
|
693
694
|
objectiveLabel: string;
|
|
694
695
|
|
|
@@ -707,7 +708,7 @@ export interface AutoimproveFixCreateParams {
|
|
|
707
708
|
customerIntegrationId?: string;
|
|
708
709
|
|
|
709
710
|
/**
|
|
710
|
-
* Cap on decision turns. Defaults to
|
|
711
|
+
* Cap on decision turns. Defaults to 50.
|
|
711
712
|
*/
|
|
712
713
|
maxIterations?: number;
|
|
713
714
|
|
|
@@ -734,33 +735,33 @@ export interface AutoimproveFixCreateParams {
|
|
|
734
735
|
validationRunPlanId?: string;
|
|
735
736
|
}
|
|
736
737
|
|
|
737
|
-
export interface
|
|
738
|
+
export interface AutoimproveJobAnswerQuestionParams {
|
|
738
739
|
/**
|
|
739
740
|
* The message for Roark.
|
|
740
741
|
*/
|
|
741
742
|
text: string;
|
|
742
743
|
}
|
|
743
744
|
|
|
744
|
-
export interface
|
|
745
|
+
export interface AutoimproveJobSendGuidanceParams {
|
|
745
746
|
/**
|
|
746
747
|
* The message for Roark.
|
|
747
748
|
*/
|
|
748
749
|
text: string;
|
|
749
750
|
}
|
|
750
751
|
|
|
751
|
-
export declare namespace
|
|
752
|
+
export declare namespace AutoimproveJob {
|
|
752
753
|
export {
|
|
753
754
|
type AutoimproveLogEntry as AutoimproveLogEntry,
|
|
754
|
-
type
|
|
755
|
-
type
|
|
756
|
-
type
|
|
757
|
-
type
|
|
758
|
-
type
|
|
759
|
-
type
|
|
760
|
-
type
|
|
761
|
-
type
|
|
762
|
-
type
|
|
763
|
-
type
|
|
764
|
-
type
|
|
755
|
+
type AutoimproveJobCreateResponse as AutoimproveJobCreateResponse,
|
|
756
|
+
type AutoimproveJobListResponse as AutoimproveJobListResponse,
|
|
757
|
+
type AutoimproveJobAnswerQuestionResponse as AutoimproveJobAnswerQuestionResponse,
|
|
758
|
+
type AutoimproveJobCancelResponse as AutoimproveJobCancelResponse,
|
|
759
|
+
type AutoimproveJobDismissResponse as AutoimproveJobDismissResponse,
|
|
760
|
+
type AutoimproveJobGetByIDResponse as AutoimproveJobGetByIDResponse,
|
|
761
|
+
type AutoimproveJobPromoteResponse as AutoimproveJobPromoteResponse,
|
|
762
|
+
type AutoimproveJobSendGuidanceResponse as AutoimproveJobSendGuidanceResponse,
|
|
763
|
+
type AutoimproveJobCreateParams as AutoimproveJobCreateParams,
|
|
764
|
+
type AutoimproveJobAnswerQuestionParams as AutoimproveJobAnswerQuestionParams,
|
|
765
|
+
type AutoimproveJobSendGuidanceParams as AutoimproveJobSendGuidanceParams,
|
|
765
766
|
};
|
|
766
767
|
}
|