@roarkanalytics/sdk 8.0.1 → 9.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.
Files changed (118) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/client.d.mts +7 -7
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +7 -7
  5. package/client.d.ts.map +1 -1
  6. package/client.js +3 -3
  7. package/client.js.map +1 -1
  8. package/client.mjs +4 -4
  9. package/client.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/resources/agent-connection.d.mts +0 -88
  12. package/resources/agent-connection.d.mts.map +1 -1
  13. package/resources/agent-connection.d.ts +0 -88
  14. package/resources/agent-connection.d.ts.map +1 -1
  15. package/resources/agent.d.mts +2 -200
  16. package/resources/agent.d.mts.map +1 -1
  17. package/resources/agent.d.ts +2 -200
  18. package/resources/agent.d.ts.map +1 -1
  19. package/resources/config.d.mts +6 -6
  20. package/resources/config.d.mts.map +1 -1
  21. package/resources/config.d.ts +6 -6
  22. package/resources/config.d.ts.map +1 -1
  23. package/resources/conversation.d.mts +6 -95
  24. package/resources/conversation.d.mts.map +1 -1
  25. package/resources/conversation.d.ts +6 -95
  26. package/resources/conversation.d.ts.map +1 -1
  27. package/resources/conversation.js +5 -17
  28. package/resources/conversation.js.map +1 -1
  29. package/resources/conversation.mjs +5 -17
  30. package/resources/conversation.mjs.map +1 -1
  31. package/resources/customer-flow-folder.d.mts +157 -0
  32. package/resources/customer-flow-folder.d.mts.map +1 -0
  33. package/resources/customer-flow-folder.d.ts +157 -0
  34. package/resources/customer-flow-folder.d.ts.map +1 -0
  35. package/resources/customer-flow-folder.js +54 -0
  36. package/resources/customer-flow-folder.js.map +1 -0
  37. package/resources/customer-flow-folder.mjs +50 -0
  38. package/resources/customer-flow-folder.mjs.map +1 -0
  39. package/resources/customer-flow.d.mts +558 -2
  40. package/resources/customer-flow.d.mts.map +1 -1
  41. package/resources/customer-flow.d.ts +558 -2
  42. package/resources/customer-flow.d.ts.map +1 -1
  43. package/resources/customer-flow.js +2 -2
  44. package/resources/customer-flow.mjs +2 -2
  45. package/resources/dashboard.d.mts +3 -3
  46. package/resources/dashboard.d.ts +3 -3
  47. package/resources/dashboard.js +3 -3
  48. package/resources/dashboard.mjs +3 -3
  49. package/resources/index.d.mts +3 -3
  50. package/resources/index.d.mts.map +1 -1
  51. package/resources/index.d.ts +3 -3
  52. package/resources/index.d.ts.map +1 -1
  53. package/resources/index.js +3 -3
  54. package/resources/index.js.map +1 -1
  55. package/resources/index.mjs +2 -2
  56. package/resources/index.mjs.map +1 -1
  57. package/resources/live-report.d.mts +10 -10
  58. package/resources/live-report.d.ts +10 -10
  59. package/resources/me.d.mts +20 -19
  60. package/resources/me.d.mts.map +1 -1
  61. package/resources/me.d.ts +20 -19
  62. package/resources/me.d.ts.map +1 -1
  63. package/resources/me.js +14 -13
  64. package/resources/me.js.map +1 -1
  65. package/resources/me.mjs +14 -13
  66. package/resources/me.mjs.map +1 -1
  67. package/resources/metric.d.mts +60 -60
  68. package/resources/metric.d.ts +60 -60
  69. package/resources/simulation-group.d.mts +13 -13
  70. package/resources/simulation-group.d.ts +13 -13
  71. package/resources/simulation-group.js +5 -5
  72. package/resources/simulation-group.mjs +5 -5
  73. package/resources/simulation-run-group.d.mts +2 -2
  74. package/resources/simulation-run-group.d.ts +2 -2
  75. package/resources/simulation-run-group.js +2 -2
  76. package/resources/simulation-run-group.mjs +2 -2
  77. package/resources/simulation.d.mts +1086 -4
  78. package/resources/simulation.d.mts.map +1 -1
  79. package/resources/simulation.d.ts +1086 -4
  80. package/resources/simulation.d.ts.map +1 -1
  81. package/resources/simulation.js +106 -0
  82. package/resources/simulation.js.map +1 -1
  83. package/resources/simulation.mjs +106 -0
  84. package/resources/simulation.mjs.map +1 -1
  85. package/resources/webhook.d.mts +4 -4
  86. package/resources/webhook.d.mts.map +1 -1
  87. package/resources/webhook.d.ts +4 -4
  88. package/resources/webhook.d.ts.map +1 -1
  89. package/src/client.ts +39 -43
  90. package/src/resources/agent-connection.ts +0 -103
  91. package/src/resources/agent.ts +2 -317
  92. package/src/resources/config.ts +12 -12
  93. package/src/resources/conversation.ts +6 -126
  94. package/src/resources/customer-flow-folder.ts +235 -0
  95. package/src/resources/customer-flow.ts +862 -2
  96. package/src/resources/dashboard.ts +3 -3
  97. package/src/resources/index.ts +18 -20
  98. package/src/resources/live-report.ts +10 -10
  99. package/src/resources/me.ts +20 -19
  100. package/src/resources/metric.ts +60 -60
  101. package/src/resources/simulation-group.ts +13 -13
  102. package/src/resources/simulation-run-group.ts +2 -2
  103. package/src/resources/simulation.ts +1759 -52
  104. package/src/resources/webhook.ts +8 -8
  105. package/src/version.ts +1 -1
  106. package/version.d.mts +1 -1
  107. package/version.d.ts +1 -1
  108. package/version.js +1 -1
  109. package/version.mjs +1 -1
  110. package/resources/agent-setup.d.mts +0 -1057
  111. package/resources/agent-setup.d.mts.map +0 -1
  112. package/resources/agent-setup.d.ts +0 -1057
  113. package/resources/agent-setup.d.ts.map +0 -1
  114. package/resources/agent-setup.js +0 -113
  115. package/resources/agent-setup.js.map +0 -1
  116. package/resources/agent-setup.mjs +0 -109
  117. package/resources/agent-setup.mjs.map +0 -1
  118. 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. GET
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
@@ -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 GET
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 GET
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 GET
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 GET
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 GET
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;
@@ -7,12 +7,12 @@ import { path } from '../internal/utils/path';
7
7
 
8
8
  export class Me extends APIResource {
9
9
  /**
10
- * Mints a credential that acts as you, for a CLI or an automation. The key value
11
- * is returned exactly once, in the `key` field: capture it now, it is unreadable
12
- * afterwards. Requires a personal credential (a project API key is refused) and
13
- * admin on the project the credential defaults to. The new credential can never
14
- * exceed the one that created it: not in scope, not in permissions, and not in
15
- * lifetime. Omit a field to copy it from the calling credential.
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
- * Returns the credentials that act as you: the ones created in the dashboard, from
45
- * `roark auth login`, and MCP connectors. Requires a personal credential; a
46
- * project API key is refused. Defaults to ACTIVE, pass ?status=REVOKED to see
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
- * Revokes a credential that acts as you. It stops working immediately. A
63
- * credential may revoke itself, which is what `roark auth logout` does. Repeating
64
- * the call is safe; an unknown id, or one belonging to someone else, answers 404.
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
- * The credentials that act as the caller
196
+ * Your personal API keys
196
197
  */
197
198
  data: MeListAPIKeysResponse.Data;
198
199
  }
199
200
 
200
201
  export namespace MeListAPIKeysResponse {
201
202
  /**
202
- * The credentials that act as the caller
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 the caller
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 credentials
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 credentials
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 credential was revoked
280
+ * Always true when the key was revoked
280
281
  */
281
282
  deleted: true;
282
283
  }
@@ -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 POST
180
- * /v1/metric/definitions/{idOrSlug}/variants. False for threshold metrics (their
181
- * configuration comes from the metric they derive from), for HTTP request metrics
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 POST
331
- * /v1/metric/definitions/{idOrSlug}/variants. False for threshold metrics (their
332
- * configuration comes from the metric they derive from), for HTTP request metrics
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 POST
499
- * /v1/metric/definitions/{idOrSlug}/variants. False for threshold metrics (their
500
- * configuration comes from the metric they derive from), for HTTP request metrics
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 POST
718
- * /v1/metric/definitions/{idOrSlug}/variants. False for threshold metrics (their
719
- * configuration comes from the metric they derive from), for HTTP request metrics
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 POST
922
- * /v1/metric/definitions/{idOrSlug}/variants. False for threshold metrics (their
923
- * configuration comes from the metric they derive from), for HTTP request metrics
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 POST
1068
- * /v1/metric/definitions/{idOrSlug}/variants. False for threshold metrics (their
1069
- * configuration comes from the metric they derive from), for HTTP request metrics
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 POST
1214
- * /v1/metric/definitions/{idOrSlug}/variants. False for threshold metrics (their
1215
- * configuration comes from the metric they derive from), for HTTP request metrics
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 POST
1395
- * /v1/metric/definitions/{idOrSlug}/variants. False for threshold metrics (their
1396
- * configuration comes from the metric they derive from), for HTTP request metrics
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 POST
1563
- * /v1/metric/definitions/{idOrSlug}/variants. False for threshold metrics (their
1564
- * configuration comes from the metric they derive from), for HTTP request metrics
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 POST
1782
- * /v1/metric/definitions/{idOrSlug}/variants. False for threshold metrics (their
1783
- * configuration comes from the metric they derive from), for HTTP request metrics
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 POST
1990
- * /v1/metric/definitions/{idOrSlug}/variants. False for threshold metrics (their
1991
- * configuration comes from the metric they derive from), for HTTP request metrics
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 POST
2141
- * /v1/metric/definitions/{idOrSlug}/variants. False for threshold metrics (their
2142
- * configuration comes from the metric they derive from), for HTTP request metrics
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 POST
2309
- * /v1/metric/definitions/{idOrSlug}/variants. False for threshold metrics (their
2310
- * configuration comes from the metric they derive from), for HTTP request metrics
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 POST
2512
- * /v1/metric/definitions/{idOrSlug}/variants. False for threshold metrics (their
2513
- * configuration comes from the metric they derive from), for HTTP request metrics
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 POST
2704
- * /v1/metric/definitions/{idOrSlug}/variants. False for threshold metrics (their
2705
- * configuration comes from the metric they derive from), for HTTP request metrics
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 groups
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 POST
109
- * /v1/simulation/plan/{planId}/job would for each, and groups the runs into a run
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 GET
168
- * /v1/simulation/run-group/{groupId}. Null when it has never run.
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 GET
261
- * /v1/simulation/run-group/{groupId}. Null when it has never run.
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 GET
352
- * /v1/simulation/run-group/{groupId}. Null when it has never run.
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 GET
471
- * /v1/simulation/run-group/{groupId}. Null when it has never run.
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 GET
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