@roarkanalytics/sdk 4.2.0 → 4.4.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 (57) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/client.d.mts +8 -2
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +8 -2
  5. package/client.d.ts.map +1 -1
  6. package/client.js +6 -0
  7. package/client.js.map +1 -1
  8. package/client.mjs +7 -1
  9. package/client.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/resources/index.d.mts +3 -1
  12. package/resources/index.d.mts.map +1 -1
  13. package/resources/index.d.ts +3 -1
  14. package/resources/index.d.ts.map +1 -1
  15. package/resources/index.js +5 -1
  16. package/resources/index.js.map +1 -1
  17. package/resources/index.mjs +3 -1
  18. package/resources/index.mjs.map +1 -1
  19. package/resources/simulation-job-tool-mock.d.mts +56 -0
  20. package/resources/simulation-job-tool-mock.d.mts.map +1 -0
  21. package/resources/simulation-job-tool-mock.d.ts +56 -0
  22. package/resources/simulation-job-tool-mock.d.ts.map +1 -0
  23. package/resources/simulation-job-tool-mock.js +28 -0
  24. package/resources/simulation-job-tool-mock.js.map +1 -0
  25. package/resources/simulation-job-tool-mock.mjs +24 -0
  26. package/resources/simulation-job-tool-mock.mjs.map +1 -0
  27. package/resources/simulation-run-plan-job.d.mts +1 -1
  28. package/resources/simulation-run-plan-job.d.mts.map +1 -1
  29. package/resources/simulation-run-plan-job.d.ts +1 -1
  30. package/resources/simulation-run-plan-job.d.ts.map +1 -1
  31. package/resources/simulation-tool-fixture.d.mts +217 -0
  32. package/resources/simulation-tool-fixture.d.mts.map +1 -0
  33. package/resources/simulation-tool-fixture.d.ts +217 -0
  34. package/resources/simulation-tool-fixture.d.ts.map +1 -0
  35. package/resources/simulation-tool-fixture.js +69 -0
  36. package/resources/simulation-tool-fixture.js.map +1 -0
  37. package/resources/simulation-tool-fixture.mjs +65 -0
  38. package/resources/simulation-tool-fixture.mjs.map +1 -0
  39. package/resources/simulation.d.mts +88 -1
  40. package/resources/simulation.d.mts.map +1 -1
  41. package/resources/simulation.d.ts +88 -1
  42. package/resources/simulation.d.ts.map +1 -1
  43. package/resources/simulation.js +29 -0
  44. package/resources/simulation.js.map +1 -1
  45. package/resources/simulation.mjs +29 -0
  46. package/resources/simulation.mjs.map +1 -1
  47. package/src/client.ts +43 -1
  48. package/src/resources/index.ts +18 -1
  49. package/src/resources/simulation-job-tool-mock.ts +70 -0
  50. package/src/resources/simulation-run-plan-job.ts +1 -0
  51. package/src/resources/simulation-tool-fixture.ts +288 -0
  52. package/src/resources/simulation.ts +101 -0
  53. package/src/version.ts +1 -1
  54. package/version.d.mts +1 -1
  55. package/version.d.ts +1 -1
  56. package/version.js +1 -1
  57. package/version.mjs +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"simulation.d.ts","sourceRoot":"","sources":["../src/resources/simulation.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,+BAA4B;AACjD,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAE7D,qBAAa,UAAW,SAAQ,WAAW;IACzC;;;;;;;;;;;;;;;;;;;;;;;;;;;OA2BG;IACH,GAAG,CAAC,IAAI,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,qBAAqB,CAAC;CAG5F;AAED,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,IAAI,EAAE,qBAAqB,CAAC,IAAI,CAAC;CAClC;AAED,yBAAiB,qBAAqB,CAAC;IACrC;;OAEG;IACH,UAAiB,IAAI;QACnB;;WAEG;QACH,SAAS,EAAE,MAAM,CAAC;QAElB;;;WAGG;QACH,WAAW,EAAE,OAAO,CAAC;QAErB;;WAEG;QACH,kBAAkB,EAAE,MAAM,CAAC;QAE3B;;;WAGG;QACH,mBAAmB,EAAE,MAAM,CAAC;QAE5B;;WAEG;QACH,sBAAsB,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GACd,oBAAoB,GACpB,iBAAiB,GACjB,gBAAgB,GAChB,aAAa,CAAC;gBAElB,KAAK,EAAE,MAAM,CAAC;aACf;SACF;QAED,UAAiB,YAAY;YAC3B;;eAEG;YACH,MAAM,EAAE,MAAM,CAAC;YAEf;;eAEG;YACH,SAAS,EAAE;gBAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;aAAE,CAAC;YAErC;;eAEG;YACH,UAAU,CAAC,EAAE,MAAM,CAAC;YAEpB;;eAEG;YACH,SAAS,CAAC,EAAE,IAAI,CAAC;SAClB;KACF;CACF;AAED,MAAM,CAAC,OAAO,WAAW,UAAU,CAAC;IAClC,OAAO,EACL,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
@@ -4,6 +4,35 @@ Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.Simulation = void 0;
5
5
  const resource_1 = require("../core/resource.js");
6
6
  class Simulation extends resource_1.APIResource {
7
+ /**
8
+ * The server half of the tool guard for code-first agents. When a guarded tool
9
+ * fires during a Roark test call, send the invocation here instead of executing
10
+ * it: Roark answers with a simulated backend response that is valid JSON, shaped
11
+ * by the tool contract you pass, consistent with the test scenario, and consistent
12
+ * with earlier mocked responses in the same call. Real callers are never affected:
13
+ * the guard only diverts when the agent-config resolve response identified the
14
+ * session as a Roark simulation, and this endpoint independently re-validates the
15
+ * simulation before answering.
16
+ *
17
+ * Failure contract for your wrapper: `404` means the simulation id is unknown to
18
+ * this project (treat the session as real). `409` means the simulation has already
19
+ * ended (stale session state: do NOT execute the real tool; return your static
20
+ * fallback). `5xx` means generation failed (return your static fallback).
21
+ *
22
+ * Identical retries (same tool, same arguments) within a few minutes return the
23
+ * stored response, so double-fired handlers stay consistent.
24
+ *
25
+ * @example
26
+ * ```ts
27
+ * const response = await client.simulation.mockTool({
28
+ * simulationJobId: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
29
+ * toolName: 'book_appointment',
30
+ * });
31
+ * ```
32
+ */
33
+ mockTool(body, options) {
34
+ return this._client.post('/v1/simulation/tool-mock', { body, ...options });
35
+ }
7
36
  /**
8
37
  * Starts a simulation and returns the run.
9
38
  *
@@ -1 +1 @@
1
- {"version":3,"file":"simulation.js","sourceRoot":"","sources":["../src/resources/simulation.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAI/C,MAAa,UAAW,SAAQ,sBAAW;IACzC;;;;;;;;;;;;;;;;;;;;;;;;;;;OA2BG;IACH,GAAG,CAAC,IAAyB,EAAE,OAAwB;QACrD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,oBAAoB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvE,CAAC;CACF;AAhCD,gCAgCC"}
1
+ {"version":3,"file":"simulation.js","sourceRoot":"","sources":["../src/resources/simulation.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAI/C,MAAa,UAAW,SAAQ,sBAAW;IACzC;;;;;;;;;;;;;;;;;;;;;;;;;OAyBG;IACH,QAAQ,CAAC,IAA8B,EAAE,OAAwB;QAC/D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,0BAA0B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7E,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;OA2BG;IACH,GAAG,CAAC,IAAyB,EAAE,OAAwB;QACrD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,oBAAoB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvE,CAAC;CACF;AA9DD,gCA8DC"}
@@ -1,6 +1,35 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
  import { APIResource } from "../core/resource.mjs";
3
3
  export class Simulation extends APIResource {
4
+ /**
5
+ * The server half of the tool guard for code-first agents. When a guarded tool
6
+ * fires during a Roark test call, send the invocation here instead of executing
7
+ * it: Roark answers with a simulated backend response that is valid JSON, shaped
8
+ * by the tool contract you pass, consistent with the test scenario, and consistent
9
+ * with earlier mocked responses in the same call. Real callers are never affected:
10
+ * the guard only diverts when the agent-config resolve response identified the
11
+ * session as a Roark simulation, and this endpoint independently re-validates the
12
+ * simulation before answering.
13
+ *
14
+ * Failure contract for your wrapper: `404` means the simulation id is unknown to
15
+ * this project (treat the session as real). `409` means the simulation has already
16
+ * ended (stale session state: do NOT execute the real tool; return your static
17
+ * fallback). `5xx` means generation failed (return your static fallback).
18
+ *
19
+ * Identical retries (same tool, same arguments) within a few minutes return the
20
+ * stored response, so double-fired handlers stay consistent.
21
+ *
22
+ * @example
23
+ * ```ts
24
+ * const response = await client.simulation.mockTool({
25
+ * simulationJobId: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
26
+ * toolName: 'book_appointment',
27
+ * });
28
+ * ```
29
+ */
30
+ mockTool(body, options) {
31
+ return this._client.post('/v1/simulation/tool-mock', { body, ...options });
32
+ }
4
33
  /**
5
34
  * Starts a simulation and returns the run.
6
35
  *
@@ -1 +1 @@
1
- {"version":3,"file":"simulation.mjs","sourceRoot":"","sources":["../src/resources/simulation.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAI/C,MAAM,OAAO,UAAW,SAAQ,WAAW;IACzC;;;;;;;;;;;;;;;;;;;;;;;;;;;OA2BG;IACH,GAAG,CAAC,IAAyB,EAAE,OAAwB;QACrD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,oBAAoB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvE,CAAC;CACF"}
1
+ {"version":3,"file":"simulation.mjs","sourceRoot":"","sources":["../src/resources/simulation.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAI/C,MAAM,OAAO,UAAW,SAAQ,WAAW;IACzC;;;;;;;;;;;;;;;;;;;;;;;;;OAyBG;IACH,QAAQ,CAAC,IAA8B,EAAE,OAAwB;QAC/D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,0BAA0B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7E,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;OA2BG;IACH,GAAG,CAAC,IAAyB,EAAE,OAAwB;QACrD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,oBAAoB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvE,CAAC;CACF"}
package/src/client.ts CHANGED
@@ -192,7 +192,13 @@ import {
192
192
  MetricVariantUpdateParams,
193
193
  MetricVariantUpdateResponse,
194
194
  } from './resources/metric-variant';
195
- import { Simulation, SimulationRunParams, SimulationRunResponse } from './resources/simulation';
195
+ import {
196
+ Simulation,
197
+ SimulationMockToolParams,
198
+ SimulationMockToolResponse,
199
+ SimulationRunParams,
200
+ SimulationRunResponse,
201
+ } from './resources/simulation';
196
202
  import {
197
203
  SimulationEnvironment,
198
204
  SimulationEnvironmentCreateParams,
@@ -210,6 +216,10 @@ import {
210
216
  SimulationJobLookupParams,
211
217
  SimulationJobLookupResponse,
212
218
  } from './resources/simulation-job';
219
+ import {
220
+ SimulationJobToolMock,
221
+ SimulationJobToolMockListResponse,
222
+ } from './resources/simulation-job-tool-mock';
213
223
  import {
214
224
  SimulationPersona,
215
225
  SimulationPersonaCreateParams,
@@ -241,6 +251,16 @@ import {
241
251
  SimulationRunPlanJobStartResponse,
242
252
  } from './resources/simulation-run-plan-job';
243
253
  import { SimulationTemplate, SimulationTemplateListResponse } from './resources/simulation-template';
254
+ import {
255
+ SimulationToolFixture,
256
+ SimulationToolFixtureCreateParams,
257
+ SimulationToolFixtureCreateResponse,
258
+ SimulationToolFixtureDeleteResponse,
259
+ SimulationToolFixtureListParams,
260
+ SimulationToolFixtureListResponse,
261
+ SimulationToolFixtureUpdateParams,
262
+ SimulationToolFixtureUpdateResponse,
263
+ } from './resources/simulation-tool-fixture';
244
264
  import {
245
265
  Webhook,
246
266
  WebhookCreateParams,
@@ -975,6 +995,8 @@ export class Roark {
975
995
  metricVariant: API.MetricVariant = new API.MetricVariant(this);
976
996
  simulation: API.Simulation = new API.Simulation(this);
977
997
  simulationJob: API.SimulationJob = new API.SimulationJob(this);
998
+ simulationJobToolMock: API.SimulationJobToolMock = new API.SimulationJobToolMock(this);
999
+ simulationToolFixture: API.SimulationToolFixture = new API.SimulationToolFixture(this);
978
1000
  simulationRunPlan: API.SimulationRunPlan = new API.SimulationRunPlan(this);
979
1001
  simulationRunPlanJob: API.SimulationRunPlanJob = new API.SimulationRunPlanJob(this);
980
1002
  simulationPersona: API.SimulationPersona = new API.SimulationPersona(this);
@@ -1001,6 +1023,8 @@ Roark.MetricCollectionJob = MetricCollectionJob;
1001
1023
  Roark.MetricVariant = MetricVariant;
1002
1024
  Roark.Simulation = Simulation;
1003
1025
  Roark.SimulationJob = SimulationJob;
1026
+ Roark.SimulationJobToolMock = SimulationJobToolMock;
1027
+ Roark.SimulationToolFixture = SimulationToolFixture;
1004
1028
  Roark.SimulationRunPlan = SimulationRunPlan;
1005
1029
  Roark.SimulationRunPlanJob = SimulationRunPlanJob;
1006
1030
  Roark.SimulationPersona = SimulationPersona;
@@ -1085,7 +1109,9 @@ export declare namespace Roark {
1085
1109
 
1086
1110
  export {
1087
1111
  Simulation as Simulation,
1112
+ type SimulationMockToolResponse as SimulationMockToolResponse,
1088
1113
  type SimulationRunResponse as SimulationRunResponse,
1114
+ type SimulationMockToolParams as SimulationMockToolParams,
1089
1115
  type SimulationRunParams as SimulationRunParams,
1090
1116
  };
1091
1117
 
@@ -1096,6 +1122,22 @@ export declare namespace Roark {
1096
1122
  type SimulationJobLookupParams as SimulationJobLookupParams,
1097
1123
  };
1098
1124
 
1125
+ export {
1126
+ SimulationJobToolMock as SimulationJobToolMock,
1127
+ type SimulationJobToolMockListResponse as SimulationJobToolMockListResponse,
1128
+ };
1129
+
1130
+ export {
1131
+ SimulationToolFixture as SimulationToolFixture,
1132
+ type SimulationToolFixtureCreateResponse as SimulationToolFixtureCreateResponse,
1133
+ type SimulationToolFixtureUpdateResponse as SimulationToolFixtureUpdateResponse,
1134
+ type SimulationToolFixtureListResponse as SimulationToolFixtureListResponse,
1135
+ type SimulationToolFixtureDeleteResponse as SimulationToolFixtureDeleteResponse,
1136
+ type SimulationToolFixtureCreateParams as SimulationToolFixtureCreateParams,
1137
+ type SimulationToolFixtureUpdateParams as SimulationToolFixtureUpdateParams,
1138
+ type SimulationToolFixtureListParams as SimulationToolFixtureListParams,
1139
+ };
1140
+
1099
1141
  export {
1100
1142
  SimulationRunPlan as SimulationRunPlan,
1101
1143
  type SimulationRunPlanCreateResponse as SimulationRunPlanCreateResponse,
@@ -175,7 +175,13 @@ export {
175
175
  type MetricVariantDeleteParams,
176
176
  type MetricVariantGetByIDParams,
177
177
  } from './metric-variant';
178
- export { Simulation, type SimulationRunResponse, type SimulationRunParams } from './simulation';
178
+ export {
179
+ Simulation,
180
+ type SimulationMockToolResponse,
181
+ type SimulationRunResponse,
182
+ type SimulationMockToolParams,
183
+ type SimulationRunParams,
184
+ } from './simulation';
179
185
  export {
180
186
  SimulationEnvironment,
181
187
  type SimulationEnvironmentCreateResponse,
@@ -193,6 +199,7 @@ export {
193
199
  type SimulationJobLookupResponse,
194
200
  type SimulationJobLookupParams,
195
201
  } from './simulation-job';
202
+ export { SimulationJobToolMock, type SimulationJobToolMockListResponse } from './simulation-job-tool-mock';
196
203
  export {
197
204
  SimulationPersona,
198
205
  type SimulationPersonaCreateResponse,
@@ -224,6 +231,16 @@ export {
224
231
  type SimulationRunPlanJobStartParams,
225
232
  } from './simulation-run-plan-job';
226
233
  export { SimulationTemplate, type SimulationTemplateListResponse } from './simulation-template';
234
+ export {
235
+ SimulationToolFixture,
236
+ type SimulationToolFixtureCreateResponse,
237
+ type SimulationToolFixtureUpdateResponse,
238
+ type SimulationToolFixtureListResponse,
239
+ type SimulationToolFixtureDeleteResponse,
240
+ type SimulationToolFixtureCreateParams,
241
+ type SimulationToolFixtureUpdateParams,
242
+ type SimulationToolFixtureListParams,
243
+ } from './simulation-tool-fixture';
227
244
  export {
228
245
  Webhook,
229
246
  type WebhookCreateResponse,
@@ -0,0 +1,70 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { APIResource } from '../core/resource';
4
+ import { APIPromise } from '../core/api-promise';
5
+ import { RequestOptions } from '../internal/request-options';
6
+ import { path } from '../internal/utils/path';
7
+
8
+ export class SimulationJobToolMock extends APIResource {
9
+ /**
10
+ * Every guarded tool invocation Roark answered during this simulation: what the
11
+ * agent tried to call, with what arguments, and the simulated response it
12
+ * received. Use this to assert tool behavior in CI after a test call, with zero
13
+ * real side effects. Empty when the agent's tools are not guarded (see the tool
14
+ * guard docs).
15
+ *
16
+ * @example
17
+ * ```ts
18
+ * const simulationJobToolMocks =
19
+ * await client.simulationJobToolMock.list(
20
+ * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
21
+ * );
22
+ * ```
23
+ */
24
+ list(jobID: string, options?: RequestOptions): APIPromise<SimulationJobToolMockListResponse> {
25
+ return this._client.get(path`/v1/simulation/job/${jobID}/tool-mock`, options);
26
+ }
27
+ }
28
+
29
+ export interface SimulationJobToolMockListResponse {
30
+ data: Array<SimulationJobToolMockListResponse.Data>;
31
+ }
32
+
33
+ export namespace SimulationJobToolMockListResponse {
34
+ /**
35
+ * One guarded tool invocation during a test call: what the agent tried to call,
36
+ * and what it got.
37
+ */
38
+ export interface Data {
39
+ id: string;
40
+
41
+ /**
42
+ * ISO 8601.
43
+ */
44
+ createdAt: string;
45
+
46
+ sessionId: string | null;
47
+
48
+ /**
49
+ * GENERATED = the scenario-aware model answered; FIXTURE = a pinned deterministic
50
+ * response.
51
+ */
52
+ source: 'GENERATED' | 'FIXTURE';
53
+
54
+ toolName: string;
55
+
56
+ /**
57
+ * What the agent called the tool with, verbatim.
58
+ */
59
+ arguments?: unknown;
60
+
61
+ /**
62
+ * The simulated response the agent received.
63
+ */
64
+ result?: unknown;
65
+ }
66
+ }
67
+
68
+ export declare namespace SimulationJobToolMock {
69
+ export { type SimulationJobToolMockListResponse as SimulationJobToolMockListResponse };
70
+ }
@@ -293,6 +293,7 @@ export namespace SimulationRunPlanJobGetByIDResponse {
293
293
  */
294
294
  processingStatus:
295
295
  | 'PENDING'
296
+ | 'RESERVING_CAPACITY'
296
297
  | 'CONNECTING'
297
298
  | 'WAITING_FOR_OUTBOUND_CALL'
298
299
  | 'SIMULATING'
@@ -0,0 +1,288 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { APIResource } from '../core/resource';
4
+ import { APIPromise } from '../core/api-promise';
5
+ import { RequestOptions } from '../internal/request-options';
6
+ import { path } from '../internal/utils/path';
7
+
8
+ export class SimulationToolFixture extends APIResource {
9
+ /**
10
+ * Create-or-replace by scope: one fixture per tool project-wide, plus one per
11
+ * (tool, flow variant). Setting the same scope twice replaces the response, so CI
12
+ * can apply fixtures idempotently. During Roark test calls the tool guard answers
13
+ * with the fixture verbatim instead of generating a response; real callers are
14
+ * never affected.
15
+ *
16
+ * @example
17
+ * ```ts
18
+ * const simulationToolFixture =
19
+ * await client.simulationToolFixture.create({
20
+ * toolName: 'lookup_availability',
21
+ * });
22
+ * ```
23
+ */
24
+ create(
25
+ body: SimulationToolFixtureCreateParams,
26
+ options?: RequestOptions,
27
+ ): APIPromise<SimulationToolFixtureCreateResponse> {
28
+ return this._client.post('/v1/simulation/tool-fixture', { body, ...options });
29
+ }
30
+
31
+ /**
32
+ * Change the response, description, or enabled state of an existing fixture.
33
+ *
34
+ * @example
35
+ * ```ts
36
+ * const simulationToolFixture =
37
+ * await client.simulationToolFixture.update(
38
+ * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
39
+ * );
40
+ * ```
41
+ */
42
+ update(
43
+ fixtureID: string,
44
+ body: SimulationToolFixtureUpdateParams | null | undefined = {},
45
+ options?: RequestOptions,
46
+ ): APIPromise<SimulationToolFixtureUpdateResponse> {
47
+ return this._client.put(path`/v1/simulation/tool-fixture/${fixtureID}`, { body, ...options });
48
+ }
49
+
50
+ /**
51
+ * All deterministic tool responses configured for this project, optionally
52
+ * filtered by tool.
53
+ *
54
+ * @example
55
+ * ```ts
56
+ * const simulationToolFixtures =
57
+ * await client.simulationToolFixture.list();
58
+ * ```
59
+ */
60
+ list(
61
+ query: SimulationToolFixtureListParams | null | undefined = {},
62
+ options?: RequestOptions,
63
+ ): APIPromise<SimulationToolFixtureListResponse> {
64
+ return this._client.get('/v1/simulation/tool-fixture', { query, ...options });
65
+ }
66
+
67
+ /**
68
+ * The tool goes back to scenario-aware generated responses in test calls.
69
+ *
70
+ * @example
71
+ * ```ts
72
+ * const simulationToolFixture =
73
+ * await client.simulationToolFixture.delete(
74
+ * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
75
+ * );
76
+ * ```
77
+ */
78
+ delete(fixtureID: string, options?: RequestOptions): APIPromise<SimulationToolFixtureDeleteResponse> {
79
+ return this._client.delete(path`/v1/simulation/tool-fixture/${fixtureID}`, options);
80
+ }
81
+ }
82
+
83
+ export interface SimulationToolFixtureCreateResponse {
84
+ /**
85
+ * A deterministic tool response for Roark test calls: where the scenario-aware
86
+ * model makes mocked tools plausible, a fixture makes one exact, so a simulation
87
+ * can force the branch under test. Never applies to real callers.
88
+ */
89
+ data: SimulationToolFixtureCreateResponse.Data;
90
+ }
91
+
92
+ export namespace SimulationToolFixtureCreateResponse {
93
+ /**
94
+ * A deterministic tool response for Roark test calls: where the scenario-aware
95
+ * model makes mocked tools plausible, a fixture makes one exact, so a simulation
96
+ * can force the branch under test. Never applies to real callers.
97
+ */
98
+ export interface Data {
99
+ id: string;
100
+
101
+ /**
102
+ * ISO 8601.
103
+ */
104
+ createdAt: string;
105
+
106
+ /**
107
+ * The flow variant this fixture is pinned to. Null = project-wide.
108
+ */
109
+ customerFlowVariantId: string | null;
110
+
111
+ /**
112
+ * Why this fixture exists.
113
+ */
114
+ description: string | null;
115
+
116
+ enabled: boolean;
117
+
118
+ toolName: string;
119
+
120
+ /**
121
+ * ISO 8601.
122
+ */
123
+ updatedAt: string;
124
+
125
+ /**
126
+ * The exact JSON the tool returns during Roark test calls.
127
+ */
128
+ response?: unknown;
129
+ }
130
+ }
131
+
132
+ export interface SimulationToolFixtureUpdateResponse {
133
+ /**
134
+ * A deterministic tool response for Roark test calls: where the scenario-aware
135
+ * model makes mocked tools plausible, a fixture makes one exact, so a simulation
136
+ * can force the branch under test. Never applies to real callers.
137
+ */
138
+ data: SimulationToolFixtureUpdateResponse.Data;
139
+ }
140
+
141
+ export namespace SimulationToolFixtureUpdateResponse {
142
+ /**
143
+ * A deterministic tool response for Roark test calls: where the scenario-aware
144
+ * model makes mocked tools plausible, a fixture makes one exact, so a simulation
145
+ * can force the branch under test. Never applies to real callers.
146
+ */
147
+ export interface Data {
148
+ id: string;
149
+
150
+ /**
151
+ * ISO 8601.
152
+ */
153
+ createdAt: string;
154
+
155
+ /**
156
+ * The flow variant this fixture is pinned to. Null = project-wide.
157
+ */
158
+ customerFlowVariantId: string | null;
159
+
160
+ /**
161
+ * Why this fixture exists.
162
+ */
163
+ description: string | null;
164
+
165
+ enabled: boolean;
166
+
167
+ toolName: string;
168
+
169
+ /**
170
+ * ISO 8601.
171
+ */
172
+ updatedAt: string;
173
+
174
+ /**
175
+ * The exact JSON the tool returns during Roark test calls.
176
+ */
177
+ response?: unknown;
178
+ }
179
+ }
180
+
181
+ export interface SimulationToolFixtureListResponse {
182
+ data: Array<SimulationToolFixtureListResponse.Data>;
183
+ }
184
+
185
+ export namespace SimulationToolFixtureListResponse {
186
+ /**
187
+ * A deterministic tool response for Roark test calls: where the scenario-aware
188
+ * model makes mocked tools plausible, a fixture makes one exact, so a simulation
189
+ * can force the branch under test. Never applies to real callers.
190
+ */
191
+ export interface Data {
192
+ id: string;
193
+
194
+ /**
195
+ * ISO 8601.
196
+ */
197
+ createdAt: string;
198
+
199
+ /**
200
+ * The flow variant this fixture is pinned to. Null = project-wide.
201
+ */
202
+ customerFlowVariantId: string | null;
203
+
204
+ /**
205
+ * Why this fixture exists.
206
+ */
207
+ description: string | null;
208
+
209
+ enabled: boolean;
210
+
211
+ toolName: string;
212
+
213
+ /**
214
+ * ISO 8601.
215
+ */
216
+ updatedAt: string;
217
+
218
+ /**
219
+ * The exact JSON the tool returns during Roark test calls.
220
+ */
221
+ response?: unknown;
222
+ }
223
+ }
224
+
225
+ export interface SimulationToolFixtureDeleteResponse {
226
+ data: SimulationToolFixtureDeleteResponse.Data;
227
+ }
228
+
229
+ export namespace SimulationToolFixtureDeleteResponse {
230
+ export interface Data {
231
+ deleted: boolean;
232
+ }
233
+ }
234
+
235
+ export interface SimulationToolFixtureCreateParams {
236
+ /**
237
+ * The tool this fixture answers for.
238
+ */
239
+ toolName: string;
240
+
241
+ /**
242
+ * Pin the fixture to one flow variant (scenario). Omit for a project-wide fixture.
243
+ * A variant-pinned fixture beats the project-wide one.
244
+ */
245
+ customerFlowVariantId?: string;
246
+
247
+ /**
248
+ * Why this fixture exists.
249
+ */
250
+ description?: string;
251
+
252
+ /**
253
+ * Defaults to true.
254
+ */
255
+ enabled?: boolean;
256
+
257
+ /**
258
+ * The exact JSON to return.
259
+ */
260
+ response?: unknown;
261
+ }
262
+
263
+ export interface SimulationToolFixtureUpdateParams {
264
+ description?: string | null;
265
+
266
+ enabled?: boolean;
267
+
268
+ response?: unknown;
269
+ }
270
+
271
+ export interface SimulationToolFixtureListParams {
272
+ /**
273
+ * Only fixtures for this tool.
274
+ */
275
+ toolName?: string;
276
+ }
277
+
278
+ export declare namespace SimulationToolFixture {
279
+ export {
280
+ type SimulationToolFixtureCreateResponse as SimulationToolFixtureCreateResponse,
281
+ type SimulationToolFixtureUpdateResponse as SimulationToolFixtureUpdateResponse,
282
+ type SimulationToolFixtureListResponse as SimulationToolFixtureListResponse,
283
+ type SimulationToolFixtureDeleteResponse as SimulationToolFixtureDeleteResponse,
284
+ type SimulationToolFixtureCreateParams as SimulationToolFixtureCreateParams,
285
+ type SimulationToolFixtureUpdateParams as SimulationToolFixtureUpdateParams,
286
+ type SimulationToolFixtureListParams as SimulationToolFixtureListParams,
287
+ };
288
+ }