@roarkanalytics/sdk 8.0.0 → 9.0.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 +23 -0
- package/client.d.mts +7 -7
- package/client.d.mts.map +1 -1
- package/client.d.ts +7 -7
- package/client.d.ts.map +1 -1
- package/client.js +6 -3
- package/client.js.map +1 -1
- package/client.mjs +7 -4
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/agent-connection.d.mts +0 -88
- package/resources/agent-connection.d.mts.map +1 -1
- package/resources/agent-connection.d.ts +0 -88
- package/resources/agent-connection.d.ts.map +1 -1
- package/resources/agent.d.mts +2 -200
- package/resources/agent.d.mts.map +1 -1
- package/resources/agent.d.ts +2 -200
- package/resources/agent.d.ts.map +1 -1
- package/resources/conversation.d.mts +6 -95
- package/resources/conversation.d.mts.map +1 -1
- package/resources/conversation.d.ts +6 -95
- package/resources/conversation.d.ts.map +1 -1
- package/resources/conversation.js +5 -17
- package/resources/conversation.js.map +1 -1
- package/resources/conversation.mjs +5 -17
- package/resources/conversation.mjs.map +1 -1
- package/resources/customer-flow-folder.d.mts +157 -0
- package/resources/customer-flow-folder.d.mts.map +1 -0
- package/resources/customer-flow-folder.d.ts +157 -0
- package/resources/customer-flow-folder.d.ts.map +1 -0
- package/resources/customer-flow-folder.js +54 -0
- package/resources/customer-flow-folder.js.map +1 -0
- package/resources/customer-flow-folder.mjs +50 -0
- package/resources/customer-flow-folder.mjs.map +1 -0
- package/resources/customer-flow.d.mts +558 -2
- package/resources/customer-flow.d.mts.map +1 -1
- package/resources/customer-flow.d.ts +558 -2
- package/resources/customer-flow.d.ts.map +1 -1
- package/resources/customer-flow.js +2 -2
- package/resources/customer-flow.mjs +2 -2
- package/resources/dashboard.d.mts +3 -3
- package/resources/dashboard.d.ts +3 -3
- package/resources/dashboard.js +3 -3
- package/resources/dashboard.mjs +3 -3
- package/resources/index.d.mts +3 -3
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +3 -3
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -3
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +2 -2
- package/resources/index.mjs.map +1 -1
- package/resources/live-report.d.mts +10 -10
- package/resources/live-report.d.ts +10 -10
- package/resources/me.d.mts +20 -19
- package/resources/me.d.mts.map +1 -1
- package/resources/me.d.ts +20 -19
- package/resources/me.d.ts.map +1 -1
- package/resources/me.js +14 -13
- package/resources/me.js.map +1 -1
- package/resources/me.mjs +14 -13
- package/resources/me.mjs.map +1 -1
- package/resources/metric.d.mts +60 -60
- package/resources/metric.d.ts +60 -60
- package/resources/simulation-group.d.mts +13 -13
- package/resources/simulation-group.d.ts +13 -13
- package/resources/simulation-group.js +5 -5
- package/resources/simulation-group.mjs +5 -5
- package/resources/simulation-run-group.d.mts +2 -2
- package/resources/simulation-run-group.d.ts +2 -2
- package/resources/simulation-run-group.js +2 -2
- package/resources/simulation-run-group.mjs +2 -2
- package/resources/simulation.d.mts +1086 -4
- package/resources/simulation.d.mts.map +1 -1
- package/resources/simulation.d.ts +1086 -4
- package/resources/simulation.d.ts.map +1 -1
- package/resources/simulation.js +106 -0
- package/resources/simulation.js.map +1 -1
- package/resources/simulation.mjs +106 -0
- package/resources/simulation.mjs.map +1 -1
- package/src/client.ts +42 -43
- package/src/resources/agent-connection.ts +0 -103
- package/src/resources/agent.ts +2 -317
- package/src/resources/conversation.ts +6 -126
- package/src/resources/customer-flow-folder.ts +235 -0
- package/src/resources/customer-flow.ts +862 -2
- package/src/resources/dashboard.ts +3 -3
- package/src/resources/index.ts +18 -20
- package/src/resources/live-report.ts +10 -10
- package/src/resources/me.ts +20 -19
- package/src/resources/metric.ts +60 -60
- package/src/resources/simulation-group.ts +13 -13
- package/src/resources/simulation-run-group.ts +2 -2
- package/src/resources/simulation.ts +1759 -52
- 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
- package/resources/agent-setup.d.mts +0 -1057
- package/resources/agent-setup.d.mts.map +0 -1
- package/resources/agent-setup.d.ts +0 -1057
- package/resources/agent-setup.d.ts.map +0 -1
- package/resources/agent-setup.js +0 -113
- package/resources/agent-setup.js.map +0 -1
- package/resources/agent-setup.mjs +0 -109
- package/resources/agent-setup.mjs.map +0 -1
- package/src/resources/agent-setup.ts +0 -1685
|
@@ -31,7 +31,7 @@ export class Dashboard extends APIResource {
|
|
|
31
31
|
* Edits a dashboard. Omitted fields keep their current value. `widgets`, when
|
|
32
32
|
* sent, replaces the list: widgets are matched by name, so a widget that keeps its
|
|
33
33
|
* name keeps its id; a new name adds a widget and a name no longer listed removes
|
|
34
|
-
* it. To change one widget, PUT /v1/dashboard/{dashboardId}/widget/{widgetId}
|
|
34
|
+
* it. To change one widget, `PUT /v1/dashboard/{dashboardId}/widget/{widgetId}`.
|
|
35
35
|
*
|
|
36
36
|
* @example
|
|
37
37
|
* ```ts
|
|
@@ -49,8 +49,8 @@ export class Dashboard extends APIResource {
|
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
/**
|
|
52
|
-
* Lists the project's dashboards, the default first.
|
|
53
|
-
* /v1/dashboard/{dashboardId} returns the widgets.
|
|
52
|
+
* Lists the project's dashboards, the default first.
|
|
53
|
+
* `GET /v1/dashboard/{dashboardId}` returns the widgets.
|
|
54
54
|
*
|
|
55
55
|
* @example
|
|
56
56
|
* ```ts
|
package/src/resources/index.ts
CHANGED
|
@@ -77,20 +77,6 @@ export {
|
|
|
77
77
|
type AgentPromptUpdateParams,
|
|
78
78
|
type AgentPromptListVersionsParams,
|
|
79
79
|
} from './agent-prompt';
|
|
80
|
-
export {
|
|
81
|
-
AgentSetup,
|
|
82
|
-
type AgentSetupCreateResponse,
|
|
83
|
-
type AgentSetupAnswerQuestionResponse,
|
|
84
|
-
type AgentSetupCancelResponse,
|
|
85
|
-
type AgentSetupGetByIDResponse,
|
|
86
|
-
type AgentSetupGetLatestResponse,
|
|
87
|
-
type AgentSetupSendGuidanceResponse,
|
|
88
|
-
type AgentSetupCreateParams,
|
|
89
|
-
type AgentSetupAnswerQuestionParams,
|
|
90
|
-
type AgentSetupCancelParams,
|
|
91
|
-
type AgentSetupGetByIDParams,
|
|
92
|
-
type AgentSetupSendGuidanceParams,
|
|
93
|
-
} from './agent-setup';
|
|
94
80
|
export {
|
|
95
81
|
AgentVersion,
|
|
96
82
|
type AgentVersionListResponse,
|
|
@@ -191,12 +177,7 @@ export {
|
|
|
191
177
|
type ConfigApplyParams,
|
|
192
178
|
type ConfigDiffParams,
|
|
193
179
|
} from './config';
|
|
194
|
-
export {
|
|
195
|
-
Conversation,
|
|
196
|
-
type ConversationListResponse,
|
|
197
|
-
type ConversationGetByIDResponse,
|
|
198
|
-
type ConversationListParams,
|
|
199
|
-
} from './conversation';
|
|
180
|
+
export { Conversation, type ConversationGetByIDResponse } from './conversation';
|
|
200
181
|
export {
|
|
201
182
|
Customer,
|
|
202
183
|
type CustomerListResponse,
|
|
@@ -249,6 +230,13 @@ export {
|
|
|
249
230
|
type CustomerFlowEdgeCasePromoteParams,
|
|
250
231
|
type CustomerFlowEdgeCaseRemoveParams,
|
|
251
232
|
} from './customer-flow-edge-case';
|
|
233
|
+
export {
|
|
234
|
+
CustomerFlowFolder,
|
|
235
|
+
type CustomerFlowFolderCreateResponse,
|
|
236
|
+
type CustomerFlowFolderListResponse,
|
|
237
|
+
type CustomerFlowFolderDeleteResponse,
|
|
238
|
+
type CustomerFlowFolderCreateParams,
|
|
239
|
+
} from './customer-flow-folder';
|
|
252
240
|
export {
|
|
253
241
|
Dashboard,
|
|
254
242
|
type DashboardCreateResponse,
|
|
@@ -376,8 +364,18 @@ export {
|
|
|
376
364
|
export { Project, type ProjectListResponse } from './project';
|
|
377
365
|
export {
|
|
378
366
|
Simulation,
|
|
367
|
+
type SimulationAnswerResourceGenerationResponse,
|
|
368
|
+
type SimulationCancelResourceGenerationResponse,
|
|
369
|
+
type SimulationGenerateResourcesResponse,
|
|
370
|
+
type SimulationGetResourceGenerationResponse,
|
|
371
|
+
type SimulationGuideResourceGenerationResponse,
|
|
372
|
+
type SimulationListResourceGenerationsResponse,
|
|
379
373
|
type SimulationMockToolResponse,
|
|
380
374
|
type SimulationRunResponse,
|
|
375
|
+
type SimulationAnswerResourceGenerationParams,
|
|
376
|
+
type SimulationGenerateResourcesParams,
|
|
377
|
+
type SimulationGuideResourceGenerationParams,
|
|
378
|
+
type SimulationListResourceGenerationsParams,
|
|
381
379
|
type SimulationMockToolParams,
|
|
382
380
|
type SimulationRunParams,
|
|
383
381
|
} from './simulation';
|
|
@@ -850,8 +850,8 @@ export namespace LiveReportGetByIDResponse {
|
|
|
850
850
|
export interface LiveReportGetDocumentResponse {
|
|
851
851
|
/**
|
|
852
852
|
* One written report over one period. `document` is null until `status` is READY;
|
|
853
|
-
* every number in it comes from the analytics engine (the same reads
|
|
854
|
-
* /v1/dashboard/{dashboardId}/data makes over the same window and filters).
|
|
853
|
+
* every number in it comes from the analytics engine (the same reads
|
|
854
|
+
* `GET /v1/dashboard/{dashboardId}/data` makes over the same window and filters).
|
|
855
855
|
*/
|
|
856
856
|
data: LiveReportGetDocumentResponse.Data;
|
|
857
857
|
}
|
|
@@ -859,8 +859,8 @@ export interface LiveReportGetDocumentResponse {
|
|
|
859
859
|
export namespace LiveReportGetDocumentResponse {
|
|
860
860
|
/**
|
|
861
861
|
* One written report over one period. `document` is null until `status` is READY;
|
|
862
|
-
* every number in it comes from the analytics engine (the same reads
|
|
863
|
-
* /v1/dashboard/{dashboardId}/data makes over the same window and filters).
|
|
862
|
+
* every number in it comes from the analytics engine (the same reads
|
|
863
|
+
* `GET /v1/dashboard/{dashboardId}/data` makes over the same window and filters).
|
|
864
864
|
*/
|
|
865
865
|
export interface Data {
|
|
866
866
|
id: string;
|
|
@@ -1477,8 +1477,8 @@ export namespace LiveReportListDocumentsResponse {
|
|
|
1477
1477
|
export namespace Data {
|
|
1478
1478
|
/**
|
|
1479
1479
|
* One written report over one period. `document` is null until `status` is READY;
|
|
1480
|
-
* every number in it comes from the analytics engine (the same reads
|
|
1481
|
-
* /v1/dashboard/{dashboardId}/data makes over the same window and filters).
|
|
1480
|
+
* every number in it comes from the analytics engine (the same reads
|
|
1481
|
+
* `GET /v1/dashboard/{dashboardId}/data` makes over the same window and filters).
|
|
1482
1482
|
*/
|
|
1483
1483
|
export interface Item {
|
|
1484
1484
|
id: string;
|
|
@@ -2085,8 +2085,8 @@ export namespace LiveReportListDocumentsResponse {
|
|
|
2085
2085
|
export interface LiveReportRunResponse {
|
|
2086
2086
|
/**
|
|
2087
2087
|
* One written report over one period. `document` is null until `status` is READY;
|
|
2088
|
-
* every number in it comes from the analytics engine (the same reads
|
|
2089
|
-
* /v1/dashboard/{dashboardId}/data makes over the same window and filters).
|
|
2088
|
+
* every number in it comes from the analytics engine (the same reads
|
|
2089
|
+
* `GET /v1/dashboard/{dashboardId}/data` makes over the same window and filters).
|
|
2090
2090
|
*/
|
|
2091
2091
|
data: LiveReportRunResponse.Data;
|
|
2092
2092
|
}
|
|
@@ -2094,8 +2094,8 @@ export interface LiveReportRunResponse {
|
|
|
2094
2094
|
export namespace LiveReportRunResponse {
|
|
2095
2095
|
/**
|
|
2096
2096
|
* One written report over one period. `document` is null until `status` is READY;
|
|
2097
|
-
* every number in it comes from the analytics engine (the same reads
|
|
2098
|
-
* /v1/dashboard/{dashboardId}/data makes over the same window and filters).
|
|
2097
|
+
* every number in it comes from the analytics engine (the same reads
|
|
2098
|
+
* `GET /v1/dashboard/{dashboardId}/data` makes over the same window and filters).
|
|
2099
2099
|
*/
|
|
2100
2100
|
export interface Data {
|
|
2101
2101
|
id: string;
|
package/src/resources/me.ts
CHANGED
|
@@ -7,12 +7,12 @@ import { path } from '../internal/utils/path';
|
|
|
7
7
|
|
|
8
8
|
export class Me extends APIResource {
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
10
|
+
* Requires a personal API key (a project API key is refused) and admin on the
|
|
11
|
+
* project the new key defaults to. Mints a personal API key that acts as you, for
|
|
12
|
+
* a CLI or an automation. The key value is returned exactly once, in the `key`
|
|
13
|
+
* field: capture it now, it is unreadable afterwards. The new key can never exceed
|
|
14
|
+
* the one that created it: not in scope, not in permissions, and not in lifetime.
|
|
15
|
+
* Omit a field to copy it from the calling credential.
|
|
16
16
|
*
|
|
17
17
|
* @example
|
|
18
18
|
* ```ts
|
|
@@ -41,10 +41,10 @@ export class Me extends APIResource {
|
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
/**
|
|
44
|
-
*
|
|
45
|
-
*
|
|
46
|
-
*
|
|
47
|
-
* revoked ones. The key value itself is never returned.
|
|
44
|
+
* Requires a personal API key; a project API key is refused. Returns the personal
|
|
45
|
+
* API keys that act as you: the ones created in the dashboard, from
|
|
46
|
+
* `roark auth login`, and MCP connectors. Defaults to ACTIVE, pass ?status=REVOKED
|
|
47
|
+
* to see revoked ones. The key value itself is never returned.
|
|
48
48
|
*
|
|
49
49
|
* @example
|
|
50
50
|
* ```ts
|
|
@@ -59,9 +59,10 @@ export class Me extends APIResource {
|
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
/**
|
|
62
|
-
*
|
|
63
|
-
*
|
|
64
|
-
* the call is safe; an unknown id, or one belonging to someone
|
|
62
|
+
* Requires a personal API key. Revokes one of your personal API keys; it stops
|
|
63
|
+
* working immediately. A key may revoke itself, which is what `roark auth logout`
|
|
64
|
+
* does. Repeating the call is safe; an unknown id, or one belonging to someone
|
|
65
|
+
* else, answers 404.
|
|
65
66
|
*
|
|
66
67
|
* @example
|
|
67
68
|
* ```ts
|
|
@@ -192,14 +193,14 @@ export namespace MeGetResponse {
|
|
|
192
193
|
|
|
193
194
|
export interface MeListAPIKeysResponse {
|
|
194
195
|
/**
|
|
195
|
-
*
|
|
196
|
+
* Your personal API keys
|
|
196
197
|
*/
|
|
197
198
|
data: MeListAPIKeysResponse.Data;
|
|
198
199
|
}
|
|
199
200
|
|
|
200
201
|
export namespace MeListAPIKeysResponse {
|
|
201
202
|
/**
|
|
202
|
-
*
|
|
203
|
+
* Your personal API keys
|
|
203
204
|
*/
|
|
204
205
|
export interface Data {
|
|
205
206
|
apiKeys: Array<Data.APIKey>;
|
|
@@ -207,7 +208,7 @@ export namespace MeListAPIKeysResponse {
|
|
|
207
208
|
|
|
208
209
|
export namespace Data {
|
|
209
210
|
/**
|
|
210
|
-
* A credential that acts as
|
|
211
|
+
* A personal API key: a credential that acts as you
|
|
211
212
|
*/
|
|
212
213
|
export interface APIKey {
|
|
213
214
|
/**
|
|
@@ -263,20 +264,20 @@ export namespace MeListAPIKeysResponse {
|
|
|
263
264
|
|
|
264
265
|
export interface MeRevokeAPIKeyResponse {
|
|
265
266
|
/**
|
|
266
|
-
* Result of revoking one of your
|
|
267
|
+
* Result of revoking one of your personal API keys
|
|
267
268
|
*/
|
|
268
269
|
data: MeRevokeAPIKeyResponse.Data;
|
|
269
270
|
}
|
|
270
271
|
|
|
271
272
|
export namespace MeRevokeAPIKeyResponse {
|
|
272
273
|
/**
|
|
273
|
-
* Result of revoking one of your
|
|
274
|
+
* Result of revoking one of your personal API keys
|
|
274
275
|
*/
|
|
275
276
|
export interface Data {
|
|
276
277
|
id: string;
|
|
277
278
|
|
|
278
279
|
/**
|
|
279
|
-
* Always true when the
|
|
280
|
+
* Always true when the key was revoked
|
|
280
281
|
*/
|
|
281
282
|
deleted: true;
|
|
282
283
|
}
|
package/src/resources/metric.ts
CHANGED
|
@@ -176,10 +176,10 @@ export namespace MetricCreateDefinitionResponse {
|
|
|
176
176
|
supportedConversationSources: Array<'SIMULATED' | 'LIVE'> | null;
|
|
177
177
|
|
|
178
178
|
/**
|
|
179
|
-
* Whether you can create a variant of this metric with
|
|
180
|
-
* /v1/metric/definitions/{idOrSlug}/variants
|
|
181
|
-
* configuration comes from the metric they derive from), for HTTP request
|
|
182
|
-
* (their configuration is the request, edited on the metric), for
|
|
179
|
+
* Whether you can create a variant of this metric with
|
|
180
|
+
* `POST /v1/metric/definitions/{idOrSlug}/variants`. False for threshold metrics
|
|
181
|
+
* (their configuration comes from the metric they derive from), for HTTP request
|
|
182
|
+
* metrics (their configuration is the request, edited on the metric), for
|
|
183
183
|
* provider-computed metrics whose calculation lives in the collector rather than
|
|
184
184
|
* an editable prompt, and for metrics in a package that manages its own variants.
|
|
185
185
|
* Most of Roark’s own metrics are false, so read this rather than discovering it
|
|
@@ -327,10 +327,10 @@ export namespace MetricCreateDefinitionResponse {
|
|
|
327
327
|
supportedConversationSources: Array<'SIMULATED' | 'LIVE'> | null;
|
|
328
328
|
|
|
329
329
|
/**
|
|
330
|
-
* Whether you can create a variant of this metric with
|
|
331
|
-
* /v1/metric/definitions/{idOrSlug}/variants
|
|
332
|
-
* configuration comes from the metric they derive from), for HTTP request
|
|
333
|
-
* (their configuration is the request, edited on the metric), for
|
|
330
|
+
* Whether you can create a variant of this metric with
|
|
331
|
+
* `POST /v1/metric/definitions/{idOrSlug}/variants`. False for threshold metrics
|
|
332
|
+
* (their configuration comes from the metric they derive from), for HTTP request
|
|
333
|
+
* metrics (their configuration is the request, edited on the metric), for
|
|
334
334
|
* provider-computed metrics whose calculation lives in the collector rather than
|
|
335
335
|
* an editable prompt, and for metrics in a package that manages its own variants.
|
|
336
336
|
* Most of Roark’s own metrics are false, so read this rather than discovering it
|
|
@@ -495,10 +495,10 @@ export namespace MetricCreateDefinitionResponse {
|
|
|
495
495
|
supportedConversationSources: Array<'SIMULATED' | 'LIVE'> | null;
|
|
496
496
|
|
|
497
497
|
/**
|
|
498
|
-
* Whether you can create a variant of this metric with
|
|
499
|
-
* /v1/metric/definitions/{idOrSlug}/variants
|
|
500
|
-
* configuration comes from the metric they derive from), for HTTP request
|
|
501
|
-
* (their configuration is the request, edited on the metric), for
|
|
498
|
+
* Whether you can create a variant of this metric with
|
|
499
|
+
* `POST /v1/metric/definitions/{idOrSlug}/variants`. False for threshold metrics
|
|
500
|
+
* (their configuration comes from the metric they derive from), for HTTP request
|
|
501
|
+
* metrics (their configuration is the request, edited on the metric), for
|
|
502
502
|
* provider-computed metrics whose calculation lives in the collector rather than
|
|
503
503
|
* an editable prompt, and for metrics in a package that manages its own variants.
|
|
504
504
|
* Most of Roark’s own metrics are false, so read this rather than discovering it
|
|
@@ -714,10 +714,10 @@ export namespace MetricCreateDefinitionResponse {
|
|
|
714
714
|
supportedConversationSources: Array<'SIMULATED' | 'LIVE'> | null;
|
|
715
715
|
|
|
716
716
|
/**
|
|
717
|
-
* Whether you can create a variant of this metric with
|
|
718
|
-
* /v1/metric/definitions/{idOrSlug}/variants
|
|
719
|
-
* configuration comes from the metric they derive from), for HTTP request
|
|
720
|
-
* (their configuration is the request, edited on the metric), for
|
|
717
|
+
* Whether you can create a variant of this metric with
|
|
718
|
+
* `POST /v1/metric/definitions/{idOrSlug}/variants`. False for threshold metrics
|
|
719
|
+
* (their configuration comes from the metric they derive from), for HTTP request
|
|
720
|
+
* metrics (their configuration is the request, edited on the metric), for
|
|
721
721
|
* provider-computed metrics whose calculation lives in the collector rather than
|
|
722
722
|
* an editable prompt, and for metrics in a package that manages its own variants.
|
|
723
723
|
* Most of Roark’s own metrics are false, so read this rather than discovering it
|
|
@@ -918,10 +918,10 @@ export namespace MetricListDefinitionsResponse {
|
|
|
918
918
|
supportedConversationSources: Array<'SIMULATED' | 'LIVE'> | null;
|
|
919
919
|
|
|
920
920
|
/**
|
|
921
|
-
* Whether you can create a variant of this metric with
|
|
922
|
-
* /v1/metric/definitions/{idOrSlug}/variants
|
|
923
|
-
* configuration comes from the metric they derive from), for HTTP request
|
|
924
|
-
* (their configuration is the request, edited on the metric), for
|
|
921
|
+
* Whether you can create a variant of this metric with
|
|
922
|
+
* `POST /v1/metric/definitions/{idOrSlug}/variants`. False for threshold metrics
|
|
923
|
+
* (their configuration comes from the metric they derive from), for HTTP request
|
|
924
|
+
* metrics (their configuration is the request, edited on the metric), for
|
|
925
925
|
* provider-computed metrics whose calculation lives in the collector rather than
|
|
926
926
|
* an editable prompt, and for metrics in a package that manages its own variants.
|
|
927
927
|
* Most of Roark’s own metrics are false, so read this rather than discovering it
|
|
@@ -1064,10 +1064,10 @@ export namespace MetricListDefinitionsResponse {
|
|
|
1064
1064
|
supportedConversationSources: Array<'SIMULATED' | 'LIVE'> | null;
|
|
1065
1065
|
|
|
1066
1066
|
/**
|
|
1067
|
-
* Whether you can create a variant of this metric with
|
|
1068
|
-
* /v1/metric/definitions/{idOrSlug}/variants
|
|
1069
|
-
* configuration comes from the metric they derive from), for HTTP request
|
|
1070
|
-
* (their configuration is the request, edited on the metric), for
|
|
1067
|
+
* Whether you can create a variant of this metric with
|
|
1068
|
+
* `POST /v1/metric/definitions/{idOrSlug}/variants`. False for threshold metrics
|
|
1069
|
+
* (their configuration comes from the metric they derive from), for HTTP request
|
|
1070
|
+
* metrics (their configuration is the request, edited on the metric), for
|
|
1071
1071
|
* provider-computed metrics whose calculation lives in the collector rather than
|
|
1072
1072
|
* an editable prompt, and for metrics in a package that manages its own variants.
|
|
1073
1073
|
* Most of Roark’s own metrics are false, so read this rather than discovering it
|
|
@@ -1210,10 +1210,10 @@ export namespace MetricListDefinitionsResponse {
|
|
|
1210
1210
|
supportedConversationSources: Array<'SIMULATED' | 'LIVE'> | null;
|
|
1211
1211
|
|
|
1212
1212
|
/**
|
|
1213
|
-
* Whether you can create a variant of this metric with
|
|
1214
|
-
* /v1/metric/definitions/{idOrSlug}/variants
|
|
1215
|
-
* configuration comes from the metric they derive from), for HTTP request
|
|
1216
|
-
* (their configuration is the request, edited on the metric), for
|
|
1213
|
+
* Whether you can create a variant of this metric with
|
|
1214
|
+
* `POST /v1/metric/definitions/{idOrSlug}/variants`. False for threshold metrics
|
|
1215
|
+
* (their configuration comes from the metric they derive from), for HTTP request
|
|
1216
|
+
* metrics (their configuration is the request, edited on the metric), for
|
|
1217
1217
|
* provider-computed metrics whose calculation lives in the collector rather than
|
|
1218
1218
|
* an editable prompt, and for metrics in a package that manages its own variants.
|
|
1219
1219
|
* Most of Roark’s own metrics are false, so read this rather than discovering it
|
|
@@ -1391,10 +1391,10 @@ export namespace MetricListDefinitionsResponse {
|
|
|
1391
1391
|
supportedConversationSources: Array<'SIMULATED' | 'LIVE'> | null;
|
|
1392
1392
|
|
|
1393
1393
|
/**
|
|
1394
|
-
* Whether you can create a variant of this metric with
|
|
1395
|
-
* /v1/metric/definitions/{idOrSlug}/variants
|
|
1396
|
-
* configuration comes from the metric they derive from), for HTTP request
|
|
1397
|
-
* (their configuration is the request, edited on the metric), for
|
|
1394
|
+
* Whether you can create a variant of this metric with
|
|
1395
|
+
* `POST /v1/metric/definitions/{idOrSlug}/variants`. False for threshold metrics
|
|
1396
|
+
* (their configuration comes from the metric they derive from), for HTTP request
|
|
1397
|
+
* metrics (their configuration is the request, edited on the metric), for
|
|
1398
1398
|
* provider-computed metrics whose calculation lives in the collector rather than
|
|
1399
1399
|
* an editable prompt, and for metrics in a package that manages its own variants.
|
|
1400
1400
|
* Most of Roark’s own metrics are false, so read this rather than discovering it
|
|
@@ -1559,10 +1559,10 @@ export namespace MetricListDefinitionsResponse {
|
|
|
1559
1559
|
supportedConversationSources: Array<'SIMULATED' | 'LIVE'> | null;
|
|
1560
1560
|
|
|
1561
1561
|
/**
|
|
1562
|
-
* Whether you can create a variant of this metric with
|
|
1563
|
-
* /v1/metric/definitions/{idOrSlug}/variants
|
|
1564
|
-
* configuration comes from the metric they derive from), for HTTP request
|
|
1565
|
-
* (their configuration is the request, edited on the metric), for
|
|
1562
|
+
* Whether you can create a variant of this metric with
|
|
1563
|
+
* `POST /v1/metric/definitions/{idOrSlug}/variants`. False for threshold metrics
|
|
1564
|
+
* (their configuration comes from the metric they derive from), for HTTP request
|
|
1565
|
+
* metrics (their configuration is the request, edited on the metric), for
|
|
1566
1566
|
* provider-computed metrics whose calculation lives in the collector rather than
|
|
1567
1567
|
* an editable prompt, and for metrics in a package that manages its own variants.
|
|
1568
1568
|
* Most of Roark’s own metrics are false, so read this rather than discovering it
|
|
@@ -1778,10 +1778,10 @@ export namespace MetricListDefinitionsResponse {
|
|
|
1778
1778
|
supportedConversationSources: Array<'SIMULATED' | 'LIVE'> | null;
|
|
1779
1779
|
|
|
1780
1780
|
/**
|
|
1781
|
-
* Whether you can create a variant of this metric with
|
|
1782
|
-
* /v1/metric/definitions/{idOrSlug}/variants
|
|
1783
|
-
* configuration comes from the metric they derive from), for HTTP request
|
|
1784
|
-
* (their configuration is the request, edited on the metric), for
|
|
1781
|
+
* Whether you can create a variant of this metric with
|
|
1782
|
+
* `POST /v1/metric/definitions/{idOrSlug}/variants`. False for threshold metrics
|
|
1783
|
+
* (their configuration comes from the metric they derive from), for HTTP request
|
|
1784
|
+
* metrics (their configuration is the request, edited on the metric), for
|
|
1785
1785
|
* provider-computed metrics whose calculation lives in the collector rather than
|
|
1786
1786
|
* an editable prompt, and for metrics in a package that manages its own variants.
|
|
1787
1787
|
* Most of Roark’s own metrics are false, so read this rather than discovering it
|
|
@@ -1986,10 +1986,10 @@ export namespace MetricUpdateDefinitionResponse {
|
|
|
1986
1986
|
supportedConversationSources: Array<'SIMULATED' | 'LIVE'> | null;
|
|
1987
1987
|
|
|
1988
1988
|
/**
|
|
1989
|
-
* Whether you can create a variant of this metric with
|
|
1990
|
-
* /v1/metric/definitions/{idOrSlug}/variants
|
|
1991
|
-
* configuration comes from the metric they derive from), for HTTP request
|
|
1992
|
-
* (their configuration is the request, edited on the metric), for
|
|
1989
|
+
* Whether you can create a variant of this metric with
|
|
1990
|
+
* `POST /v1/metric/definitions/{idOrSlug}/variants`. False for threshold metrics
|
|
1991
|
+
* (their configuration comes from the metric they derive from), for HTTP request
|
|
1992
|
+
* metrics (their configuration is the request, edited on the metric), for
|
|
1993
1993
|
* provider-computed metrics whose calculation lives in the collector rather than
|
|
1994
1994
|
* an editable prompt, and for metrics in a package that manages its own variants.
|
|
1995
1995
|
* Most of Roark’s own metrics are false, so read this rather than discovering it
|
|
@@ -2137,10 +2137,10 @@ export namespace MetricUpdateDefinitionResponse {
|
|
|
2137
2137
|
supportedConversationSources: Array<'SIMULATED' | 'LIVE'> | null;
|
|
2138
2138
|
|
|
2139
2139
|
/**
|
|
2140
|
-
* Whether you can create a variant of this metric with
|
|
2141
|
-
* /v1/metric/definitions/{idOrSlug}/variants
|
|
2142
|
-
* configuration comes from the metric they derive from), for HTTP request
|
|
2143
|
-
* (their configuration is the request, edited on the metric), for
|
|
2140
|
+
* Whether you can create a variant of this metric with
|
|
2141
|
+
* `POST /v1/metric/definitions/{idOrSlug}/variants`. False for threshold metrics
|
|
2142
|
+
* (their configuration comes from the metric they derive from), for HTTP request
|
|
2143
|
+
* metrics (their configuration is the request, edited on the metric), for
|
|
2144
2144
|
* provider-computed metrics whose calculation lives in the collector rather than
|
|
2145
2145
|
* an editable prompt, and for metrics in a package that manages its own variants.
|
|
2146
2146
|
* Most of Roark’s own metrics are false, so read this rather than discovering it
|
|
@@ -2305,10 +2305,10 @@ export namespace MetricUpdateDefinitionResponse {
|
|
|
2305
2305
|
supportedConversationSources: Array<'SIMULATED' | 'LIVE'> | null;
|
|
2306
2306
|
|
|
2307
2307
|
/**
|
|
2308
|
-
* Whether you can create a variant of this metric with
|
|
2309
|
-
* /v1/metric/definitions/{idOrSlug}/variants
|
|
2310
|
-
* configuration comes from the metric they derive from), for HTTP request
|
|
2311
|
-
* (their configuration is the request, edited on the metric), for
|
|
2308
|
+
* Whether you can create a variant of this metric with
|
|
2309
|
+
* `POST /v1/metric/definitions/{idOrSlug}/variants`. False for threshold metrics
|
|
2310
|
+
* (their configuration comes from the metric they derive from), for HTTP request
|
|
2311
|
+
* metrics (their configuration is the request, edited on the metric), for
|
|
2312
2312
|
* provider-computed metrics whose calculation lives in the collector rather than
|
|
2313
2313
|
* an editable prompt, and for metrics in a package that manages its own variants.
|
|
2314
2314
|
* Most of Roark’s own metrics are false, so read this rather than discovering it
|
|
@@ -2508,10 +2508,10 @@ export namespace MetricUpdateDefinitionResponse {
|
|
|
2508
2508
|
supportedConversationSources: Array<'SIMULATED' | 'LIVE'> | null;
|
|
2509
2509
|
|
|
2510
2510
|
/**
|
|
2511
|
-
* Whether you can create a variant of this metric with
|
|
2512
|
-
* /v1/metric/definitions/{idOrSlug}/variants
|
|
2513
|
-
* configuration comes from the metric they derive from), for HTTP request
|
|
2514
|
-
* (their configuration is the request, edited on the metric), for
|
|
2511
|
+
* Whether you can create a variant of this metric with
|
|
2512
|
+
* `POST /v1/metric/definitions/{idOrSlug}/variants`. False for threshold metrics
|
|
2513
|
+
* (their configuration comes from the metric they derive from), for HTTP request
|
|
2514
|
+
* metrics (their configuration is the request, edited on the metric), for
|
|
2515
2515
|
* provider-computed metrics whose calculation lives in the collector rather than
|
|
2516
2516
|
* an editable prompt, and for metrics in a package that manages its own variants.
|
|
2517
2517
|
* Most of Roark’s own metrics are false, so read this rather than discovering it
|
|
@@ -2700,10 +2700,10 @@ export namespace MetricUpdateDefinitionResponse {
|
|
|
2700
2700
|
supportedConversationSources: Array<'SIMULATED' | 'LIVE'> | null;
|
|
2701
2701
|
|
|
2702
2702
|
/**
|
|
2703
|
-
* Whether you can create a variant of this metric with
|
|
2704
|
-
* /v1/metric/definitions/{idOrSlug}/variants
|
|
2705
|
-
* configuration comes from the metric they derive from), for HTTP request
|
|
2706
|
-
* (their configuration is the request, edited on the metric), for
|
|
2703
|
+
* Whether you can create a variant of this metric with
|
|
2704
|
+
* `POST /v1/metric/definitions/{idOrSlug}/variants`. False for threshold metrics
|
|
2705
|
+
* (their configuration comes from the metric they derive from), for HTTP request
|
|
2706
|
+
* metrics (their configuration is the request, edited on the metric), for
|
|
2707
2707
|
* provider-computed metrics whose calculation lives in the collector rather than
|
|
2708
2708
|
* an editable prompt, and for metrics in a package that manages its own variants.
|
|
2709
2709
|
* Most of Roark’s own metrics are false, so read this rather than discovering it
|
|
@@ -8,8 +8,8 @@ import { path } from '../internal/utils/path';
|
|
|
8
8
|
export class SimulationGroup extends APIResource {
|
|
9
9
|
/**
|
|
10
10
|
* Saves a named set of plans to run together, again and again. Nothing runs yet:
|
|
11
|
-
* POST /v1/simulation/group/{groupId}/run starts one run of every plan and
|
|
12
|
-
* them into a run group with one combined report.
|
|
11
|
+
* `POST /v1/simulation/group/{groupId}/run` starts one run of every plan and
|
|
12
|
+
* groups them into a run group with one combined report.
|
|
13
13
|
*
|
|
14
14
|
* Slack channels need Slack connected to the project. Email is on by default.
|
|
15
15
|
*
|
|
@@ -105,9 +105,9 @@ export class SimulationGroup extends APIResource {
|
|
|
105
105
|
}
|
|
106
106
|
|
|
107
107
|
/**
|
|
108
|
-
* Starts one run of every plan in the group, exactly as
|
|
109
|
-
* /v1/simulation/plan/{planId}/job would for each, and groups the runs into
|
|
110
|
-
* group whose combined report is announced through the group's notification
|
|
108
|
+
* Starts one run of every plan in the group, exactly as
|
|
109
|
+
* `POST /v1/simulation/plan/{planId}/job` would for each, and groups the runs into
|
|
110
|
+
* a run group whose combined report is announced through the group's notification
|
|
111
111
|
* settings once it is ready. This places real calls. Config-managed groups can be
|
|
112
112
|
* run here too.
|
|
113
113
|
*
|
|
@@ -164,8 +164,8 @@ export namespace SimulationGroupCreateResponse {
|
|
|
164
164
|
lastRunAt: string | null;
|
|
165
165
|
|
|
166
166
|
/**
|
|
167
|
-
* The most recent run group it started, readable at
|
|
168
|
-
* /v1/simulation/run-group/{groupId}
|
|
167
|
+
* The most recent run group it started, readable at
|
|
168
|
+
* `GET /v1/simulation/run-group/{groupId}`. Null when it has never run.
|
|
169
169
|
*/
|
|
170
170
|
latestRunGroupId: string | null;
|
|
171
171
|
|
|
@@ -257,8 +257,8 @@ export namespace SimulationGroupUpdateResponse {
|
|
|
257
257
|
lastRunAt: string | null;
|
|
258
258
|
|
|
259
259
|
/**
|
|
260
|
-
* The most recent run group it started, readable at
|
|
261
|
-
* /v1/simulation/run-group/{groupId}
|
|
260
|
+
* The most recent run group it started, readable at
|
|
261
|
+
* `GET /v1/simulation/run-group/{groupId}`. Null when it has never run.
|
|
262
262
|
*/
|
|
263
263
|
latestRunGroupId: string | null;
|
|
264
264
|
|
|
@@ -348,8 +348,8 @@ export namespace SimulationGroupListResponse {
|
|
|
348
348
|
lastRunAt: string | null;
|
|
349
349
|
|
|
350
350
|
/**
|
|
351
|
-
* The most recent run group it started, readable at
|
|
352
|
-
* /v1/simulation/run-group/{groupId}
|
|
351
|
+
* The most recent run group it started, readable at
|
|
352
|
+
* `GET /v1/simulation/run-group/{groupId}`. Null when it has never run.
|
|
353
353
|
*/
|
|
354
354
|
latestRunGroupId: string | null;
|
|
355
355
|
|
|
@@ -467,8 +467,8 @@ export namespace SimulationGroupGetByIDResponse {
|
|
|
467
467
|
lastRunAt: string | null;
|
|
468
468
|
|
|
469
469
|
/**
|
|
470
|
-
* The most recent run group it started, readable at
|
|
471
|
-
* /v1/simulation/run-group/{groupId}
|
|
470
|
+
* The most recent run group it started, readable at
|
|
471
|
+
* `GET /v1/simulation/run-group/{groupId}`. Null when it has never run.
|
|
472
472
|
*/
|
|
473
473
|
latestRunGroupId: string | null;
|
|
474
474
|
|
|
@@ -34,8 +34,8 @@ export class SimulationRunGroup extends APIResource {
|
|
|
34
34
|
|
|
35
35
|
/**
|
|
36
36
|
* Returns the run groups in the project, newest first, with their runs and where
|
|
37
|
-
* each group report stands. Read a report document from
|
|
38
|
-
* /v1/simulation/run-group/{groupId}
|
|
37
|
+
* each group report stands. Read a report document from
|
|
38
|
+
* `GET /v1/simulation/run-group/{groupId}`.
|
|
39
39
|
*
|
|
40
40
|
* @example
|
|
41
41
|
* ```ts
|