@roarkanalytics/sdk 2.22.0 → 2.23.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 (137) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/client.d.mts +31 -10
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +31 -10
  5. package/client.d.ts.map +1 -1
  6. package/client.js +34 -6
  7. package/client.js.map +1 -1
  8. package/client.mjs +34 -6
  9. package/client.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/resources/agent-endpoint.d.mts +309 -0
  12. package/resources/agent-endpoint.d.mts.map +1 -0
  13. package/resources/agent-endpoint.d.ts +309 -0
  14. package/resources/agent-endpoint.d.ts.map +1 -0
  15. package/resources/agent-endpoint.js +35 -0
  16. package/resources/agent-endpoint.js.map +1 -0
  17. package/resources/agent-endpoint.mjs +31 -0
  18. package/resources/agent-endpoint.mjs.map +1 -0
  19. package/resources/agent.d.mts +193 -0
  20. package/resources/agent.d.mts.map +1 -0
  21. package/resources/agent.d.ts +193 -0
  22. package/resources/agent.d.ts.map +1 -0
  23. package/resources/agent.js +34 -0
  24. package/resources/agent.js.map +1 -0
  25. package/resources/agent.mjs +30 -0
  26. package/resources/agent.mjs.map +1 -0
  27. package/resources/call.d.mts +120 -1
  28. package/resources/call.d.mts.map +1 -1
  29. package/resources/call.d.ts +120 -1
  30. package/resources/call.d.ts.map +1 -1
  31. package/resources/call.js +7 -0
  32. package/resources/call.js.map +1 -1
  33. package/resources/call.mjs +7 -0
  34. package/resources/call.mjs.map +1 -1
  35. package/resources/evaluation.d.mts +2097 -617
  36. package/resources/evaluation.d.mts.map +1 -1
  37. package/resources/evaluation.d.ts +2097 -617
  38. package/resources/evaluation.d.ts.map +1 -1
  39. package/resources/evaluation.js +14 -0
  40. package/resources/evaluation.js.map +1 -1
  41. package/resources/evaluation.mjs +14 -0
  42. package/resources/evaluation.mjs.map +1 -1
  43. package/resources/http-request-definition.d.mts +339 -0
  44. package/resources/http-request-definition.d.mts.map +1 -0
  45. package/resources/http-request-definition.d.ts +339 -0
  46. package/resources/http-request-definition.d.ts.map +1 -0
  47. package/resources/http-request-definition.js +36 -0
  48. package/resources/http-request-definition.js.map +1 -0
  49. package/resources/http-request-definition.mjs +32 -0
  50. package/resources/http-request-definition.mjs.map +1 -0
  51. package/resources/index.d.mts +11 -4
  52. package/resources/index.d.mts.map +1 -1
  53. package/resources/index.d.ts +11 -4
  54. package/resources/index.d.ts.map +1 -1
  55. package/resources/index.js +19 -5
  56. package/resources/index.js.map +1 -1
  57. package/resources/index.mjs +9 -2
  58. package/resources/index.mjs.map +1 -1
  59. package/resources/simulation-job.d.mts +393 -0
  60. package/resources/simulation-job.d.mts.map +1 -0
  61. package/resources/simulation-job.d.ts +393 -0
  62. package/resources/simulation-job.d.ts.map +1 -0
  63. package/resources/simulation-job.js +38 -0
  64. package/resources/simulation-job.js.map +1 -0
  65. package/resources/simulation-job.mjs +34 -0
  66. package/resources/simulation-job.mjs.map +1 -0
  67. package/resources/{persona.d.mts → simulation-persona.d.mts} +62 -33
  68. package/resources/simulation-persona.d.mts.map +1 -0
  69. package/resources/{persona.d.ts → simulation-persona.d.ts} +62 -33
  70. package/resources/simulation-persona.d.ts.map +1 -0
  71. package/resources/{persona.js → simulation-persona.js} +18 -13
  72. package/resources/simulation-persona.js.map +1 -0
  73. package/resources/{persona.mjs → simulation-persona.mjs} +16 -11
  74. package/resources/simulation-persona.mjs.map +1 -0
  75. package/resources/simulation-run-plan-job.d.mts +359 -0
  76. package/resources/simulation-run-plan-job.d.mts.map +1 -0
  77. package/resources/simulation-run-plan-job.d.ts +359 -0
  78. package/resources/simulation-run-plan-job.d.ts.map +1 -0
  79. package/resources/simulation-run-plan-job.js +50 -0
  80. package/resources/simulation-run-plan-job.js.map +1 -0
  81. package/resources/simulation-run-plan-job.mjs +46 -0
  82. package/resources/simulation-run-plan-job.mjs.map +1 -0
  83. package/resources/simulation-run-plan.d.mts +660 -0
  84. package/resources/simulation-run-plan.d.mts.map +1 -0
  85. package/resources/simulation-run-plan.d.ts +660 -0
  86. package/resources/simulation-run-plan.d.ts.map +1 -0
  87. package/resources/simulation-run-plan.js +93 -0
  88. package/resources/simulation-run-plan.js.map +1 -0
  89. package/resources/simulation-run-plan.mjs +89 -0
  90. package/resources/simulation-run-plan.mjs.map +1 -0
  91. package/resources/simulation-scenario.d.mts +335 -0
  92. package/resources/simulation-scenario.d.mts.map +1 -0
  93. package/resources/simulation-scenario.d.ts +335 -0
  94. package/resources/simulation-scenario.d.ts.map +1 -0
  95. package/resources/simulation-scenario.js +40 -0
  96. package/resources/simulation-scenario.js.map +1 -0
  97. package/resources/simulation-scenario.mjs +36 -0
  98. package/resources/simulation-scenario.mjs.map +1 -0
  99. package/resources/webhook.d.mts +212 -0
  100. package/resources/webhook.d.mts.map +1 -0
  101. package/resources/webhook.d.ts +212 -0
  102. package/resources/webhook.d.ts.map +1 -0
  103. package/resources/webhook.js +35 -0
  104. package/resources/webhook.js.map +1 -0
  105. package/resources/webhook.mjs +31 -0
  106. package/resources/webhook.mjs.map +1 -0
  107. package/src/client.ts +208 -43
  108. package/src/resources/agent-endpoint.ts +400 -0
  109. package/src/resources/agent.ts +263 -0
  110. package/src/resources/call.ts +149 -0
  111. package/src/resources/evaluation.ts +3044 -1154
  112. package/src/resources/http-request-definition.ts +410 -0
  113. package/src/resources/index.ts +89 -21
  114. package/src/resources/simulation-job.ts +527 -0
  115. package/src/resources/{persona.ts → simulation-persona.ts} +78 -40
  116. package/src/resources/simulation-run-plan-job.ts +521 -0
  117. package/src/resources/simulation-run-plan.ts +840 -0
  118. package/src/resources/simulation-scenario.ts +463 -0
  119. package/src/resources/webhook.ts +318 -0
  120. package/src/version.ts +1 -1
  121. package/version.d.mts +1 -1
  122. package/version.d.ts +1 -1
  123. package/version.js +1 -1
  124. package/version.mjs +1 -1
  125. package/resources/persona.d.mts.map +0 -1
  126. package/resources/persona.d.ts.map +0 -1
  127. package/resources/persona.js.map +0 -1
  128. package/resources/persona.mjs.map +0 -1
  129. package/resources/simulation.d.mts +0 -802
  130. package/resources/simulation.d.mts.map +0 -1
  131. package/resources/simulation.d.ts +0 -802
  132. package/resources/simulation.d.ts.map +0 -1
  133. package/resources/simulation.js +0 -90
  134. package/resources/simulation.js.map +0 -1
  135. package/resources/simulation.mjs +0 -86
  136. package/resources/simulation.mjs.map +0 -1
  137. package/src/resources/simulation.ts +0 -1069
@@ -0,0 +1,393 @@
1
+ import { APIResource } from "../core/resource.js";
2
+ import { APIPromise } from "../core/api-promise.js";
3
+ import { RequestOptions } from "../internal/request-options.js";
4
+ export declare class SimulationJob extends APIResource {
5
+ /**
6
+ * Get a individual simulation run directly by its ID. This is generally part of a
7
+ * larger simulation run plan job.
8
+ *
9
+ * @example
10
+ * ```ts
11
+ * const response = await client.simulationJob.getByID(
12
+ * '7f3e4d2c-8a91-4b5c-9e6f-1a2b3c4d5e6f',
13
+ * );
14
+ * ```
15
+ */
16
+ getByID(jobID: unknown, options?: RequestOptions): APIPromise<SimulationJobGetByIDResponse>;
17
+ /**
18
+ * Find the matching simulation using the number used by the Roark simulation
19
+ * agent.
20
+ *
21
+ * @example
22
+ * ```ts
23
+ * const response = await client.simulationJob.lookup({
24
+ * roarkPhoneNumber: {},
25
+ * });
26
+ * ```
27
+ */
28
+ lookup(query: SimulationJobLookupParams, options?: RequestOptions): APIPromise<SimulationJobLookupResponse>;
29
+ }
30
+ export interface SimulationJobGetByIDResponse {
31
+ /**
32
+ * Simulation job with related entities
33
+ */
34
+ data: SimulationJobGetByIDResponse.Data;
35
+ }
36
+ export declare namespace SimulationJobGetByIDResponse {
37
+ /**
38
+ * Simulation job with related entities
39
+ */
40
+ interface Data {
41
+ /**
42
+ * Agent endpoint used in a simulation
43
+ */
44
+ agentEndpoint: Data.AgentEndpoint;
45
+ /**
46
+ * When the job was created
47
+ */
48
+ createdAt: string;
49
+ persona: Data.Persona;
50
+ /**
51
+ * Processing status
52
+ */
53
+ processingStatus: string;
54
+ /**
55
+ * Scenario used in a simulation
56
+ */
57
+ scenario: Data.Scenario;
58
+ /**
59
+ * Simulation job ID
60
+ */
61
+ simulationJobId: string;
62
+ /**
63
+ * Job status
64
+ */
65
+ status: string;
66
+ /**
67
+ * ID of the call created for this simulation job. Null if the call has not been
68
+ * created yet.
69
+ */
70
+ callId?: string | null;
71
+ /**
72
+ * When the job completed
73
+ */
74
+ completedAt?: string | null;
75
+ /**
76
+ * Phone number provisioned by Roark for this simulation job in E.164 format. Null
77
+ * if the simulation job is queued and has not been assigned a phone number yet.
78
+ */
79
+ roarkPhoneNumber?: string | null;
80
+ /**
81
+ * When the job started
82
+ */
83
+ startedAt?: string | null;
84
+ }
85
+ namespace Data {
86
+ /**
87
+ * Agent endpoint used in a simulation
88
+ */
89
+ interface AgentEndpoint {
90
+ /**
91
+ * Agent endpoint ID
92
+ */
93
+ id: string;
94
+ /**
95
+ * Agent endpoint name
96
+ */
97
+ name: string;
98
+ /**
99
+ * Agent endpoint phone number
100
+ */
101
+ phoneNumber: string | null;
102
+ /**
103
+ * Agent endpoint type
104
+ */
105
+ type: 'PHONE' | 'WEBSOCKET';
106
+ }
107
+ interface Persona {
108
+ /**
109
+ * Unique identifier of the persona
110
+ */
111
+ id: string;
112
+ /**
113
+ * Accent of the persona, defined using ISO 3166-1 alpha-2 country codes with
114
+ * optional variants
115
+ */
116
+ accent: 'US' | 'US_X_SOUTH' | 'GB' | 'ES' | 'DE' | 'IN' | 'FR' | 'NL' | 'SA' | 'GR' | 'AU' | 'IT' | 'ID' | 'TH' | 'JP';
117
+ /**
118
+ * Background noise setting
119
+ */
120
+ backgroundNoise: 'NONE' | 'AIRPORT' | 'CHILDREN_PLAYING' | 'CITY' | 'COFFEE_SHOP' | 'DRIVING' | 'OFFICE' | 'THUNDERSTORM';
121
+ /**
122
+ * Base emotional state of the persona
123
+ */
124
+ baseEmotion: 'NEUTRAL' | 'CHEERFUL' | 'CONFUSED' | 'FRUSTRATED' | 'SKEPTICAL' | 'RUSHED';
125
+ /**
126
+ * How the persona confirms information
127
+ */
128
+ confirmationStyle: 'EXPLICIT' | 'VAGUE';
129
+ /**
130
+ * Creation timestamp
131
+ */
132
+ createdAt: string;
133
+ /**
134
+ * Gender of the persona
135
+ */
136
+ gender: 'MALE' | 'FEMALE' | 'NEUTRAL';
137
+ /**
138
+ * Whether the persona uses filler words like "um" and "uh"
139
+ */
140
+ hasDisfluencies: boolean;
141
+ /**
142
+ * How clearly the persona expresses their intentions
143
+ */
144
+ intentClarity: 'CLEAR' | 'INDIRECT' | 'VAGUE';
145
+ /**
146
+ * Primary language ISO 639-1 code for the persona
147
+ */
148
+ language: 'EN' | 'ES' | 'DE' | 'HI' | 'FR' | 'NL' | 'AR' | 'EL' | 'IT' | 'ID' | 'TH' | 'JA';
149
+ /**
150
+ * How reliable the persona's memory is
151
+ */
152
+ memoryReliability: 'HIGH' | 'LOW';
153
+ /**
154
+ * The name the agent will identify as during conversations
155
+ */
156
+ name: string;
157
+ /**
158
+ * Additional custom properties about the persona
159
+ */
160
+ properties: {
161
+ [key: string]: unknown;
162
+ };
163
+ /**
164
+ * Speech clarity of the persona
165
+ */
166
+ speechClarity: 'CLEAR' | 'VAGUE' | 'RAMBLING';
167
+ /**
168
+ * Speech pace of the persona
169
+ */
170
+ speechPace: 'SLOW' | 'NORMAL' | 'FAST';
171
+ /**
172
+ * Last update timestamp
173
+ */
174
+ updatedAt: string;
175
+ /**
176
+ * Background story and behavioral patterns for the persona
177
+ */
178
+ backstoryPrompt?: string | null;
179
+ /**
180
+ * Human-readable description of the persona
181
+ */
182
+ description?: string | null;
183
+ /**
184
+ * Secondary language ISO 639-1 code for code-switching (e.g., Hinglish, Spanglish)
185
+ */
186
+ secondaryLanguage?: 'EN' | null;
187
+ }
188
+ /**
189
+ * Scenario used in a simulation
190
+ */
191
+ interface Scenario {
192
+ /**
193
+ * Scenario ID
194
+ */
195
+ id: string;
196
+ /**
197
+ * Scenario description
198
+ */
199
+ description?: string | null;
200
+ }
201
+ }
202
+ }
203
+ export interface SimulationJobLookupResponse {
204
+ /**
205
+ * Simulation job with related entities
206
+ */
207
+ data: SimulationJobLookupResponse.Data;
208
+ }
209
+ export declare namespace SimulationJobLookupResponse {
210
+ /**
211
+ * Simulation job with related entities
212
+ */
213
+ interface Data {
214
+ /**
215
+ * Agent endpoint used in a simulation
216
+ */
217
+ agentEndpoint: Data.AgentEndpoint;
218
+ /**
219
+ * When the job was created
220
+ */
221
+ createdAt: string;
222
+ persona: Data.Persona;
223
+ /**
224
+ * Processing status
225
+ */
226
+ processingStatus: string;
227
+ /**
228
+ * Scenario used in a simulation
229
+ */
230
+ scenario: Data.Scenario;
231
+ /**
232
+ * Simulation job ID
233
+ */
234
+ simulationJobId: string;
235
+ /**
236
+ * Job status
237
+ */
238
+ status: string;
239
+ /**
240
+ * ID of the call created for this simulation job. Null if the call has not been
241
+ * created yet.
242
+ */
243
+ callId?: string | null;
244
+ /**
245
+ * When the job completed
246
+ */
247
+ completedAt?: string | null;
248
+ /**
249
+ * Phone number provisioned by Roark for this simulation job in E.164 format. Null
250
+ * if the simulation job is queued and has not been assigned a phone number yet.
251
+ */
252
+ roarkPhoneNumber?: string | null;
253
+ /**
254
+ * When the job started
255
+ */
256
+ startedAt?: string | null;
257
+ }
258
+ namespace Data {
259
+ /**
260
+ * Agent endpoint used in a simulation
261
+ */
262
+ interface AgentEndpoint {
263
+ /**
264
+ * Agent endpoint ID
265
+ */
266
+ id: string;
267
+ /**
268
+ * Agent endpoint name
269
+ */
270
+ name: string;
271
+ /**
272
+ * Agent endpoint phone number
273
+ */
274
+ phoneNumber: string | null;
275
+ /**
276
+ * Agent endpoint type
277
+ */
278
+ type: 'PHONE' | 'WEBSOCKET';
279
+ }
280
+ interface Persona {
281
+ /**
282
+ * Unique identifier of the persona
283
+ */
284
+ id: string;
285
+ /**
286
+ * Accent of the persona, defined using ISO 3166-1 alpha-2 country codes with
287
+ * optional variants
288
+ */
289
+ accent: 'US' | 'US_X_SOUTH' | 'GB' | 'ES' | 'DE' | 'IN' | 'FR' | 'NL' | 'SA' | 'GR' | 'AU' | 'IT' | 'ID' | 'TH' | 'JP';
290
+ /**
291
+ * Background noise setting
292
+ */
293
+ backgroundNoise: 'NONE' | 'AIRPORT' | 'CHILDREN_PLAYING' | 'CITY' | 'COFFEE_SHOP' | 'DRIVING' | 'OFFICE' | 'THUNDERSTORM';
294
+ /**
295
+ * Base emotional state of the persona
296
+ */
297
+ baseEmotion: 'NEUTRAL' | 'CHEERFUL' | 'CONFUSED' | 'FRUSTRATED' | 'SKEPTICAL' | 'RUSHED';
298
+ /**
299
+ * How the persona confirms information
300
+ */
301
+ confirmationStyle: 'EXPLICIT' | 'VAGUE';
302
+ /**
303
+ * Creation timestamp
304
+ */
305
+ createdAt: string;
306
+ /**
307
+ * Gender of the persona
308
+ */
309
+ gender: 'MALE' | 'FEMALE' | 'NEUTRAL';
310
+ /**
311
+ * Whether the persona uses filler words like "um" and "uh"
312
+ */
313
+ hasDisfluencies: boolean;
314
+ /**
315
+ * How clearly the persona expresses their intentions
316
+ */
317
+ intentClarity: 'CLEAR' | 'INDIRECT' | 'VAGUE';
318
+ /**
319
+ * Primary language ISO 639-1 code for the persona
320
+ */
321
+ language: 'EN' | 'ES' | 'DE' | 'HI' | 'FR' | 'NL' | 'AR' | 'EL' | 'IT' | 'ID' | 'TH' | 'JA';
322
+ /**
323
+ * How reliable the persona's memory is
324
+ */
325
+ memoryReliability: 'HIGH' | 'LOW';
326
+ /**
327
+ * The name the agent will identify as during conversations
328
+ */
329
+ name: string;
330
+ /**
331
+ * Additional custom properties about the persona
332
+ */
333
+ properties: {
334
+ [key: string]: unknown;
335
+ };
336
+ /**
337
+ * Speech clarity of the persona
338
+ */
339
+ speechClarity: 'CLEAR' | 'VAGUE' | 'RAMBLING';
340
+ /**
341
+ * Speech pace of the persona
342
+ */
343
+ speechPace: 'SLOW' | 'NORMAL' | 'FAST';
344
+ /**
345
+ * Last update timestamp
346
+ */
347
+ updatedAt: string;
348
+ /**
349
+ * Background story and behavioral patterns for the persona
350
+ */
351
+ backstoryPrompt?: string | null;
352
+ /**
353
+ * Human-readable description of the persona
354
+ */
355
+ description?: string | null;
356
+ /**
357
+ * Secondary language ISO 639-1 code for code-switching (e.g., Hinglish, Spanglish)
358
+ */
359
+ secondaryLanguage?: 'EN' | null;
360
+ }
361
+ /**
362
+ * Scenario used in a simulation
363
+ */
364
+ interface Scenario {
365
+ /**
366
+ * Scenario ID
367
+ */
368
+ id: string;
369
+ /**
370
+ * Scenario description
371
+ */
372
+ description?: string | null;
373
+ }
374
+ }
375
+ }
376
+ export interface SimulationJobLookupParams {
377
+ /**
378
+ * Phone number provisioned by Roark for the simulation job in E.164 format. In the
379
+ * case of an inbound simulation, this is the number that calls your agent; in the
380
+ * case of an outbound simulation, this is the number you call from your agent.
381
+ */
382
+ roarkPhoneNumber: unknown;
383
+ /**
384
+ * ISO 8601 timestamp of when the call was received. Alternatively, any time
385
+ * between the start and end of the call is valid. Defaults to the current time,
386
+ * which fetches any jobs that are currently ongoing.
387
+ */
388
+ callReceivedAt?: unknown;
389
+ }
390
+ export declare namespace SimulationJob {
391
+ export { type SimulationJobGetByIDResponse as SimulationJobGetByIDResponse, type SimulationJobLookupResponse as SimulationJobLookupResponse, type SimulationJobLookupParams as SimulationJobLookupParams, };
392
+ }
393
+ //# sourceMappingURL=simulation-job.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"simulation-job.d.ts","sourceRoot":"","sources":["../src/resources/simulation-job.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,aAAc,SAAQ,WAAW;IAC5C;;;;;;;;;;OAUG;IACH,OAAO,CAAC,KAAK,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,4BAA4B,CAAC;IAI3F;;;;;;;;;;OAUG;IACH,MAAM,CACJ,K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AAU,CAAC;YAE9C;;eAEG;YACH,UAAU,EAAE,MAAM,GAAG,QAAQ,GAAG,MAAM,CAAC;YAEvC;;eAEG;YACH,SAAS,EAAE,MAAM,CAAC;YAElB;;eAEG;YACH,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;YAEhC;;eAEG;YACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;YAE5B;;eAEG;YACH,iBAAiB,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;SACjC;QAED;;WAEG;QACH,UAAiB,QAAQ;YACvB;;eAEG;YACH,EAAE,EAAE,MAAM,CAAC;YAEX;;eAEG;YACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;SAC7B;KACF;CACF;AAED,MAAM,WAAW,yBAAyB;IACxC;;;;OAIG;IACH,gBAAgB,EAAE,OAAO,CAAC;IAE1B;;;;OAIG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED,MAAM,CAAC,OAAO,WAAW,aAAa,CAAC;IACrC,OAAO,EACL,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,yBAAyB,IAAI,yBAAyB,GAC5D,CAAC;CACH"}
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.SimulationJob = void 0;
5
+ const resource_1 = require("../core/resource.js");
6
+ const path_1 = require("../internal/utils/path.js");
7
+ class SimulationJob extends resource_1.APIResource {
8
+ /**
9
+ * Get a individual simulation run directly by its ID. This is generally part of a
10
+ * larger simulation run plan job.
11
+ *
12
+ * @example
13
+ * ```ts
14
+ * const response = await client.simulationJob.getByID(
15
+ * '7f3e4d2c-8a91-4b5c-9e6f-1a2b3c4d5e6f',
16
+ * );
17
+ * ```
18
+ */
19
+ getByID(jobID, options) {
20
+ return this._client.get((0, path_1.path) `/v1/simulation/job/${jobID}`, options);
21
+ }
22
+ /**
23
+ * Find the matching simulation using the number used by the Roark simulation
24
+ * agent.
25
+ *
26
+ * @example
27
+ * ```ts
28
+ * const response = await client.simulationJob.lookup({
29
+ * roarkPhoneNumber: {},
30
+ * });
31
+ * ```
32
+ */
33
+ lookup(query, options) {
34
+ return this._client.get('/v1/simulation/job/lookup', { query, ...options });
35
+ }
36
+ }
37
+ exports.SimulationJob = SimulationJob;
38
+ //# sourceMappingURL=simulation-job.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"simulation-job.js","sourceRoot":"","sources":["../src/resources/simulation-job.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAG/C,oDAA8C;AAE9C,MAAa,aAAc,SAAQ,sBAAW;IAC5C;;;;;;;;;;OAUG;IACH,OAAO,CAAC,KAAc,EAAE,OAAwB;QAC9C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,sBAAsB,KAAK,EAAE,EAAE,OAAO,CAAC,CAAC;IACtE,CAAC;IAED;;;;;;;;;;OAUG;IACH,MAAM,CACJ,KAAgC,EAChC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,2BAA2B,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9E,CAAC;CACF;AAjCD,sCAiCC"}
@@ -0,0 +1,34 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ import { APIResource } from "../core/resource.mjs";
3
+ import { path } from "../internal/utils/path.mjs";
4
+ export class SimulationJob extends APIResource {
5
+ /**
6
+ * Get a individual simulation run directly by its ID. This is generally part of a
7
+ * larger simulation run plan job.
8
+ *
9
+ * @example
10
+ * ```ts
11
+ * const response = await client.simulationJob.getByID(
12
+ * '7f3e4d2c-8a91-4b5c-9e6f-1a2b3c4d5e6f',
13
+ * );
14
+ * ```
15
+ */
16
+ getByID(jobID, options) {
17
+ return this._client.get(path `/v1/simulation/job/${jobID}`, options);
18
+ }
19
+ /**
20
+ * Find the matching simulation using the number used by the Roark simulation
21
+ * agent.
22
+ *
23
+ * @example
24
+ * ```ts
25
+ * const response = await client.simulationJob.lookup({
26
+ * roarkPhoneNumber: {},
27
+ * });
28
+ * ```
29
+ */
30
+ lookup(query, options) {
31
+ return this._client.get('/v1/simulation/job/lookup', { query, ...options });
32
+ }
33
+ }
34
+ //# sourceMappingURL=simulation-job.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"simulation-job.mjs","sourceRoot":"","sources":["../src/resources/simulation-job.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,aAAc,SAAQ,WAAW;IAC5C;;;;;;;;;;OAUG;IACH,OAAO,CAAC,KAAc,EAAE,OAAwB;QAC9C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,sBAAsB,KAAK,EAAE,EAAE,OAAO,CAAC,CAAC;IACtE,CAAC;IAED;;;;;;;;;;OAUG;IACH,MAAM,CACJ,KAAgC,EAChC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,2BAA2B,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9E,CAAC;CACF"}