@roarkanalytics/sdk 2.22.0 → 2.23.1
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 +27 -0
- package/client.d.mts +31 -10
- package/client.d.mts.map +1 -1
- package/client.d.ts +31 -10
- package/client.d.ts.map +1 -1
- package/client.js +34 -6
- package/client.js.map +1 -1
- package/client.mjs +34 -6
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/agent-endpoint.d.mts +309 -0
- package/resources/agent-endpoint.d.mts.map +1 -0
- package/resources/agent-endpoint.d.ts +309 -0
- package/resources/agent-endpoint.d.ts.map +1 -0
- package/resources/agent-endpoint.js +35 -0
- package/resources/agent-endpoint.js.map +1 -0
- package/resources/agent-endpoint.mjs +31 -0
- package/resources/agent-endpoint.mjs.map +1 -0
- package/resources/agent.d.mts +193 -0
- package/resources/agent.d.mts.map +1 -0
- package/resources/agent.d.ts +193 -0
- package/resources/agent.d.ts.map +1 -0
- package/resources/agent.js +34 -0
- package/resources/agent.js.map +1 -0
- package/resources/agent.mjs +30 -0
- package/resources/agent.mjs.map +1 -0
- package/resources/call.d.mts +120 -1
- package/resources/call.d.mts.map +1 -1
- package/resources/call.d.ts +120 -1
- package/resources/call.d.ts.map +1 -1
- package/resources/call.js +7 -0
- package/resources/call.js.map +1 -1
- package/resources/call.mjs +7 -0
- package/resources/call.mjs.map +1 -1
- package/resources/evaluation.d.mts +2097 -617
- package/resources/evaluation.d.mts.map +1 -1
- package/resources/evaluation.d.ts +2097 -617
- package/resources/evaluation.d.ts.map +1 -1
- package/resources/evaluation.js +14 -0
- package/resources/evaluation.js.map +1 -1
- package/resources/evaluation.mjs +14 -0
- package/resources/evaluation.mjs.map +1 -1
- package/resources/http-request-definition.d.mts +339 -0
- package/resources/http-request-definition.d.mts.map +1 -0
- package/resources/http-request-definition.d.ts +339 -0
- package/resources/http-request-definition.d.ts.map +1 -0
- package/resources/http-request-definition.js +36 -0
- package/resources/http-request-definition.js.map +1 -0
- package/resources/http-request-definition.mjs +32 -0
- package/resources/http-request-definition.mjs.map +1 -0
- package/resources/index.d.mts +11 -4
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +11 -4
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +19 -5
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +9 -2
- package/resources/index.mjs.map +1 -1
- package/resources/simulation-job.d.mts +393 -0
- package/resources/simulation-job.d.mts.map +1 -0
- package/resources/simulation-job.d.ts +393 -0
- package/resources/simulation-job.d.ts.map +1 -0
- package/resources/simulation-job.js +38 -0
- package/resources/simulation-job.js.map +1 -0
- package/resources/simulation-job.mjs +34 -0
- package/resources/simulation-job.mjs.map +1 -0
- package/resources/{persona.d.mts → simulation-persona.d.mts} +62 -33
- package/resources/simulation-persona.d.mts.map +1 -0
- package/resources/{persona.d.ts → simulation-persona.d.ts} +62 -33
- package/resources/simulation-persona.d.ts.map +1 -0
- package/resources/{persona.js → simulation-persona.js} +18 -13
- package/resources/simulation-persona.js.map +1 -0
- package/resources/{persona.mjs → simulation-persona.mjs} +16 -11
- package/resources/simulation-persona.mjs.map +1 -0
- package/resources/simulation-run-plan-job.d.mts +359 -0
- package/resources/simulation-run-plan-job.d.mts.map +1 -0
- package/resources/simulation-run-plan-job.d.ts +359 -0
- package/resources/simulation-run-plan-job.d.ts.map +1 -0
- package/resources/simulation-run-plan-job.js +50 -0
- package/resources/simulation-run-plan-job.js.map +1 -0
- package/resources/simulation-run-plan-job.mjs +46 -0
- package/resources/simulation-run-plan-job.mjs.map +1 -0
- package/resources/simulation-run-plan.d.mts +660 -0
- package/resources/simulation-run-plan.d.mts.map +1 -0
- package/resources/simulation-run-plan.d.ts +660 -0
- package/resources/simulation-run-plan.d.ts.map +1 -0
- package/resources/simulation-run-plan.js +93 -0
- package/resources/simulation-run-plan.js.map +1 -0
- package/resources/simulation-run-plan.mjs +89 -0
- package/resources/simulation-run-plan.mjs.map +1 -0
- package/resources/simulation-scenario.d.mts +335 -0
- package/resources/simulation-scenario.d.mts.map +1 -0
- package/resources/simulation-scenario.d.ts +335 -0
- package/resources/simulation-scenario.d.ts.map +1 -0
- package/resources/simulation-scenario.js +40 -0
- package/resources/simulation-scenario.js.map +1 -0
- package/resources/simulation-scenario.mjs +36 -0
- package/resources/simulation-scenario.mjs.map +1 -0
- package/resources/webhook.d.mts +212 -0
- package/resources/webhook.d.mts.map +1 -0
- package/resources/webhook.d.ts +212 -0
- package/resources/webhook.d.ts.map +1 -0
- package/resources/webhook.js +35 -0
- package/resources/webhook.js.map +1 -0
- package/resources/webhook.mjs +31 -0
- package/resources/webhook.mjs.map +1 -0
- package/src/client.ts +208 -43
- package/src/resources/agent-endpoint.ts +400 -0
- package/src/resources/agent.ts +263 -0
- package/src/resources/call.ts +149 -0
- package/src/resources/evaluation.ts +3044 -1154
- package/src/resources/http-request-definition.ts +410 -0
- package/src/resources/index.ts +89 -21
- package/src/resources/simulation-job.ts +527 -0
- package/src/resources/{persona.ts → simulation-persona.ts} +78 -40
- package/src/resources/simulation-run-plan-job.ts +521 -0
- package/src/resources/simulation-run-plan.ts +840 -0
- package/src/resources/simulation-scenario.ts +463 -0
- package/src/resources/webhook.ts +318 -0
- 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/persona.d.mts.map +0 -1
- package/resources/persona.d.ts.map +0 -1
- package/resources/persona.js.map +0 -1
- package/resources/persona.mjs.map +0 -1
- package/resources/simulation.d.mts +0 -802
- package/resources/simulation.d.mts.map +0 -1
- package/resources/simulation.d.ts +0 -802
- package/resources/simulation.d.ts.map +0 -1
- package/resources/simulation.js +0 -90
- package/resources/simulation.js.map +0 -1
- package/resources/simulation.mjs +0 -86
- package/resources/simulation.mjs.map +0 -1
- package/src/resources/simulation.ts +0 -1069
|
@@ -0,0 +1,410 @@
|
|
|
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 HTTPRequestDefinition extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Creates a new HTTP request definition. The signing secret is only returned in
|
|
11
|
+
* this response and cannot be retrieved later.
|
|
12
|
+
*/
|
|
13
|
+
create(
|
|
14
|
+
body: HTTPRequestDefinitionCreateParams,
|
|
15
|
+
options?: RequestOptions,
|
|
16
|
+
): APIPromise<HTTPRequestDefinitionCreateResponse> {
|
|
17
|
+
return this._client.post('/v1/http-request-definition', { body, ...options });
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Updates an existing HTTP request definition.
|
|
22
|
+
*/
|
|
23
|
+
update(
|
|
24
|
+
definitionID: string,
|
|
25
|
+
body: HTTPRequestDefinitionUpdateParams | null | undefined = {},
|
|
26
|
+
options?: RequestOptions,
|
|
27
|
+
): APIPromise<HTTPRequestDefinitionUpdateResponse> {
|
|
28
|
+
return this._client.put(path`/v1/http-request-definition/${definitionID}`, { body, ...options });
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Returns a paginated list of HTTP request definitions for the authenticated
|
|
33
|
+
* project.
|
|
34
|
+
*/
|
|
35
|
+
list(
|
|
36
|
+
query: HTTPRequestDefinitionListParams | null | undefined = {},
|
|
37
|
+
options?: RequestOptions,
|
|
38
|
+
): APIPromise<HTTPRequestDefinitionListResponse> {
|
|
39
|
+
return this._client.get('/v1/http-request-definition', { query, ...options });
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Returns a specific HTTP request definition by its ID.
|
|
44
|
+
*/
|
|
45
|
+
getByID(definitionID: string, options?: RequestOptions): APIPromise<HTTPRequestDefinitionGetByIDResponse> {
|
|
46
|
+
return this._client.get(path`/v1/http-request-definition/${definitionID}`, options);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export interface HTTPRequestDefinitionCreateResponse {
|
|
51
|
+
/**
|
|
52
|
+
* HTTP request definition with signing secret (returned on creation)
|
|
53
|
+
*/
|
|
54
|
+
data: HTTPRequestDefinitionCreateResponse.Data;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export namespace HTTPRequestDefinitionCreateResponse {
|
|
58
|
+
/**
|
|
59
|
+
* HTTP request definition with signing secret (returned on creation)
|
|
60
|
+
*/
|
|
61
|
+
export interface Data {
|
|
62
|
+
/**
|
|
63
|
+
* HTTP request definition ID
|
|
64
|
+
*/
|
|
65
|
+
id: string;
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* Request body as a string
|
|
69
|
+
*/
|
|
70
|
+
body: string | null;
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* Creation timestamp
|
|
74
|
+
*/
|
|
75
|
+
createdAt: string;
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* Description of the HTTP request definition
|
|
79
|
+
*/
|
|
80
|
+
description: string | null;
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* Request headers as key-value pairs
|
|
84
|
+
*/
|
|
85
|
+
headers: { [key: string]: string };
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* HTTP method: POST, PUT, PATCH, or GET
|
|
89
|
+
*/
|
|
90
|
+
method: 'POST' | 'PUT' | 'PATCH' | 'GET';
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* Parsed body as a JSON object if valid JSON, otherwise the raw string
|
|
94
|
+
*/
|
|
95
|
+
parsedBody: { [key: string]: unknown } | string | null;
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* Scope of the HTTP request definition
|
|
99
|
+
*/
|
|
100
|
+
scope: 'AGENT_OUTBOUND_DIAL';
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* Signing secret (only returned on creation)
|
|
104
|
+
*/
|
|
105
|
+
signingSecret: string;
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* Last update timestamp
|
|
109
|
+
*/
|
|
110
|
+
updatedAt: string;
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* URL for the HTTP request
|
|
114
|
+
*/
|
|
115
|
+
url: string;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
export interface HTTPRequestDefinitionUpdateResponse {
|
|
120
|
+
/**
|
|
121
|
+
* HTTP request definition
|
|
122
|
+
*/
|
|
123
|
+
data: HTTPRequestDefinitionUpdateResponse.Data;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
export namespace HTTPRequestDefinitionUpdateResponse {
|
|
127
|
+
/**
|
|
128
|
+
* HTTP request definition
|
|
129
|
+
*/
|
|
130
|
+
export interface Data {
|
|
131
|
+
/**
|
|
132
|
+
* HTTP request definition ID
|
|
133
|
+
*/
|
|
134
|
+
id: string;
|
|
135
|
+
|
|
136
|
+
/**
|
|
137
|
+
* Request body as a string
|
|
138
|
+
*/
|
|
139
|
+
body: string | null;
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* Creation timestamp
|
|
143
|
+
*/
|
|
144
|
+
createdAt: string;
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* Description of the HTTP request definition
|
|
148
|
+
*/
|
|
149
|
+
description: string | null;
|
|
150
|
+
|
|
151
|
+
/**
|
|
152
|
+
* Request headers as key-value pairs
|
|
153
|
+
*/
|
|
154
|
+
headers: { [key: string]: string };
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* HTTP method: POST, PUT, PATCH, or GET
|
|
158
|
+
*/
|
|
159
|
+
method: 'POST' | 'PUT' | 'PATCH' | 'GET';
|
|
160
|
+
|
|
161
|
+
/**
|
|
162
|
+
* Parsed body as a JSON object if valid JSON, otherwise the raw string
|
|
163
|
+
*/
|
|
164
|
+
parsedBody: { [key: string]: unknown } | string | null;
|
|
165
|
+
|
|
166
|
+
/**
|
|
167
|
+
* Scope of the HTTP request definition
|
|
168
|
+
*/
|
|
169
|
+
scope: 'AGENT_OUTBOUND_DIAL';
|
|
170
|
+
|
|
171
|
+
/**
|
|
172
|
+
* Last update timestamp
|
|
173
|
+
*/
|
|
174
|
+
updatedAt: string;
|
|
175
|
+
|
|
176
|
+
/**
|
|
177
|
+
* URL for the HTTP request
|
|
178
|
+
*/
|
|
179
|
+
url: string;
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
export interface HTTPRequestDefinitionListResponse {
|
|
184
|
+
data: Array<HTTPRequestDefinitionListResponse.Data>;
|
|
185
|
+
|
|
186
|
+
pagination: HTTPRequestDefinitionListResponse.Pagination;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
export namespace HTTPRequestDefinitionListResponse {
|
|
190
|
+
/**
|
|
191
|
+
* HTTP request definition
|
|
192
|
+
*/
|
|
193
|
+
export interface Data {
|
|
194
|
+
/**
|
|
195
|
+
* HTTP request definition ID
|
|
196
|
+
*/
|
|
197
|
+
id: string;
|
|
198
|
+
|
|
199
|
+
/**
|
|
200
|
+
* Request body as a string
|
|
201
|
+
*/
|
|
202
|
+
body: string | null;
|
|
203
|
+
|
|
204
|
+
/**
|
|
205
|
+
* Creation timestamp
|
|
206
|
+
*/
|
|
207
|
+
createdAt: string;
|
|
208
|
+
|
|
209
|
+
/**
|
|
210
|
+
* Description of the HTTP request definition
|
|
211
|
+
*/
|
|
212
|
+
description: string | null;
|
|
213
|
+
|
|
214
|
+
/**
|
|
215
|
+
* Request headers as key-value pairs
|
|
216
|
+
*/
|
|
217
|
+
headers: { [key: string]: string };
|
|
218
|
+
|
|
219
|
+
/**
|
|
220
|
+
* HTTP method: POST, PUT, PATCH, or GET
|
|
221
|
+
*/
|
|
222
|
+
method: 'POST' | 'PUT' | 'PATCH' | 'GET';
|
|
223
|
+
|
|
224
|
+
/**
|
|
225
|
+
* Parsed body as a JSON object if valid JSON, otherwise the raw string
|
|
226
|
+
*/
|
|
227
|
+
parsedBody: { [key: string]: unknown } | string | null;
|
|
228
|
+
|
|
229
|
+
/**
|
|
230
|
+
* Scope of the HTTP request definition
|
|
231
|
+
*/
|
|
232
|
+
scope: 'AGENT_OUTBOUND_DIAL';
|
|
233
|
+
|
|
234
|
+
/**
|
|
235
|
+
* Last update timestamp
|
|
236
|
+
*/
|
|
237
|
+
updatedAt: string;
|
|
238
|
+
|
|
239
|
+
/**
|
|
240
|
+
* URL for the HTTP request
|
|
241
|
+
*/
|
|
242
|
+
url: string;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
export interface Pagination {
|
|
246
|
+
/**
|
|
247
|
+
* Whether there are more items to fetch
|
|
248
|
+
*/
|
|
249
|
+
hasMore: boolean;
|
|
250
|
+
|
|
251
|
+
/**
|
|
252
|
+
* Cursor for the next page of items
|
|
253
|
+
*/
|
|
254
|
+
nextCursor: string | null;
|
|
255
|
+
|
|
256
|
+
/**
|
|
257
|
+
* Total number of items
|
|
258
|
+
*/
|
|
259
|
+
total: number;
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
export interface HTTPRequestDefinitionGetByIDResponse {
|
|
264
|
+
/**
|
|
265
|
+
* HTTP request definition
|
|
266
|
+
*/
|
|
267
|
+
data: HTTPRequestDefinitionGetByIDResponse.Data;
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
export namespace HTTPRequestDefinitionGetByIDResponse {
|
|
271
|
+
/**
|
|
272
|
+
* HTTP request definition
|
|
273
|
+
*/
|
|
274
|
+
export interface Data {
|
|
275
|
+
/**
|
|
276
|
+
* HTTP request definition ID
|
|
277
|
+
*/
|
|
278
|
+
id: string;
|
|
279
|
+
|
|
280
|
+
/**
|
|
281
|
+
* Request body as a string
|
|
282
|
+
*/
|
|
283
|
+
body: string | null;
|
|
284
|
+
|
|
285
|
+
/**
|
|
286
|
+
* Creation timestamp
|
|
287
|
+
*/
|
|
288
|
+
createdAt: string;
|
|
289
|
+
|
|
290
|
+
/**
|
|
291
|
+
* Description of the HTTP request definition
|
|
292
|
+
*/
|
|
293
|
+
description: string | null;
|
|
294
|
+
|
|
295
|
+
/**
|
|
296
|
+
* Request headers as key-value pairs
|
|
297
|
+
*/
|
|
298
|
+
headers: { [key: string]: string };
|
|
299
|
+
|
|
300
|
+
/**
|
|
301
|
+
* HTTP method: POST, PUT, PATCH, or GET
|
|
302
|
+
*/
|
|
303
|
+
method: 'POST' | 'PUT' | 'PATCH' | 'GET';
|
|
304
|
+
|
|
305
|
+
/**
|
|
306
|
+
* Parsed body as a JSON object if valid JSON, otherwise the raw string
|
|
307
|
+
*/
|
|
308
|
+
parsedBody: { [key: string]: unknown } | string | null;
|
|
309
|
+
|
|
310
|
+
/**
|
|
311
|
+
* Scope of the HTTP request definition
|
|
312
|
+
*/
|
|
313
|
+
scope: 'AGENT_OUTBOUND_DIAL';
|
|
314
|
+
|
|
315
|
+
/**
|
|
316
|
+
* Last update timestamp
|
|
317
|
+
*/
|
|
318
|
+
updatedAt: string;
|
|
319
|
+
|
|
320
|
+
/**
|
|
321
|
+
* URL for the HTTP request
|
|
322
|
+
*/
|
|
323
|
+
url: string;
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
export interface HTTPRequestDefinitionCreateParams {
|
|
328
|
+
/**
|
|
329
|
+
* Scope: AGENT_OUTBOUND_DIAL
|
|
330
|
+
*/
|
|
331
|
+
scope: 'AGENT_OUTBOUND_DIAL';
|
|
332
|
+
|
|
333
|
+
/**
|
|
334
|
+
* URL for the HTTP request
|
|
335
|
+
*/
|
|
336
|
+
url: string;
|
|
337
|
+
|
|
338
|
+
/**
|
|
339
|
+
* Request body template. Accepts a JSON object or a string with placeholders like
|
|
340
|
+
* {{phoneNumberToDial}}. Objects are serialized to JSON for storage.
|
|
341
|
+
*/
|
|
342
|
+
body?: string | { [key: string]: unknown } | null;
|
|
343
|
+
|
|
344
|
+
/**
|
|
345
|
+
* Description of the HTTP request definition
|
|
346
|
+
*/
|
|
347
|
+
description?: string | null;
|
|
348
|
+
|
|
349
|
+
/**
|
|
350
|
+
* Request headers as key-value pairs
|
|
351
|
+
*/
|
|
352
|
+
headers?: { [key: string]: string };
|
|
353
|
+
|
|
354
|
+
/**
|
|
355
|
+
* HTTP method (default: POST)
|
|
356
|
+
*/
|
|
357
|
+
method?: 'POST' | 'PUT' | 'PATCH' | 'GET';
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
export interface HTTPRequestDefinitionUpdateParams {
|
|
361
|
+
/**
|
|
362
|
+
* Request body template. Accepts a JSON object or a string with placeholders like
|
|
363
|
+
* {{phoneNumberToDial}}. Objects are serialized to JSON for storage.
|
|
364
|
+
*/
|
|
365
|
+
body?: string | { [key: string]: unknown } | null;
|
|
366
|
+
|
|
367
|
+
/**
|
|
368
|
+
* Description of the HTTP request definition
|
|
369
|
+
*/
|
|
370
|
+
description?: string | null;
|
|
371
|
+
|
|
372
|
+
/**
|
|
373
|
+
* Request headers as key-value pairs
|
|
374
|
+
*/
|
|
375
|
+
headers?: { [key: string]: string };
|
|
376
|
+
|
|
377
|
+
/**
|
|
378
|
+
* HTTP method: POST, PUT, PATCH, or GET
|
|
379
|
+
*/
|
|
380
|
+
method?: 'POST' | 'PUT' | 'PATCH' | 'GET';
|
|
381
|
+
|
|
382
|
+
/**
|
|
383
|
+
* URL for the HTTP request
|
|
384
|
+
*/
|
|
385
|
+
url?: string;
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
export interface HTTPRequestDefinitionListParams {
|
|
389
|
+
/**
|
|
390
|
+
* Cursor for pagination - definition ID to start after
|
|
391
|
+
*/
|
|
392
|
+
after?: string;
|
|
393
|
+
|
|
394
|
+
/**
|
|
395
|
+
* Maximum number of definitions to return (default: 20, max: 50)
|
|
396
|
+
*/
|
|
397
|
+
limit?: number;
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
export declare namespace HTTPRequestDefinition {
|
|
401
|
+
export {
|
|
402
|
+
type HTTPRequestDefinitionCreateResponse as HTTPRequestDefinitionCreateResponse,
|
|
403
|
+
type HTTPRequestDefinitionUpdateResponse as HTTPRequestDefinitionUpdateResponse,
|
|
404
|
+
type HTTPRequestDefinitionListResponse as HTTPRequestDefinitionListResponse,
|
|
405
|
+
type HTTPRequestDefinitionGetByIDResponse as HTTPRequestDefinitionGetByIDResponse,
|
|
406
|
+
type HTTPRequestDefinitionCreateParams as HTTPRequestDefinitionCreateParams,
|
|
407
|
+
type HTTPRequestDefinitionUpdateParams as HTTPRequestDefinitionUpdateParams,
|
|
408
|
+
type HTTPRequestDefinitionListParams as HTTPRequestDefinitionListParams,
|
|
409
|
+
};
|
|
410
|
+
}
|
package/src/resources/index.ts
CHANGED
|
@@ -1,28 +1,64 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
+
export {
|
|
4
|
+
Agent,
|
|
5
|
+
type AgentCreateResponse,
|
|
6
|
+
type AgentUpdateResponse,
|
|
7
|
+
type AgentListResponse,
|
|
8
|
+
type AgentGetByIDResponse,
|
|
9
|
+
type AgentCreateParams,
|
|
10
|
+
type AgentUpdateParams,
|
|
11
|
+
type AgentListParams,
|
|
12
|
+
} from './agent';
|
|
13
|
+
export {
|
|
14
|
+
AgentEndpoint,
|
|
15
|
+
type AgentEndpointCreateResponse,
|
|
16
|
+
type AgentEndpointUpdateResponse,
|
|
17
|
+
type AgentEndpointListResponse,
|
|
18
|
+
type AgentEndpointGetByIDResponse,
|
|
19
|
+
type AgentEndpointCreateParams,
|
|
20
|
+
type AgentEndpointUpdateParams,
|
|
21
|
+
type AgentEndpointListParams,
|
|
22
|
+
} from './agent-endpoint';
|
|
3
23
|
export {
|
|
4
24
|
Call,
|
|
5
25
|
type CallCreateResponse,
|
|
6
26
|
type CallListResponse,
|
|
7
27
|
type CallGetByIDResponse,
|
|
28
|
+
type CallGetTranscriptResponse,
|
|
8
29
|
type CallListEvaluationRunsResponse,
|
|
9
30
|
type CallListMetricsResponse,
|
|
10
31
|
type CallListSentimentRunsResponse,
|
|
11
32
|
type CallCreateParams,
|
|
12
33
|
type CallListParams,
|
|
34
|
+
type CallGetTranscriptParams,
|
|
13
35
|
type CallListMetricsParams,
|
|
14
36
|
} from './call';
|
|
15
37
|
export {
|
|
16
38
|
Evaluation,
|
|
39
|
+
type EvaluationCreateEvaluatorResponse,
|
|
17
40
|
type EvaluationCreateJobResponse,
|
|
18
41
|
type EvaluationGetEvaluatorByIDResponse,
|
|
19
42
|
type EvaluationGetJobResponse,
|
|
20
43
|
type EvaluationListEvaluatorsResponse,
|
|
21
44
|
type EvaluationListJobRunsResponse,
|
|
45
|
+
type EvaluationUpdateEvaluatorResponse,
|
|
46
|
+
type EvaluationCreateEvaluatorParams,
|
|
22
47
|
type EvaluationCreateJobParams,
|
|
23
48
|
type EvaluationListEvaluatorsParams,
|
|
24
49
|
type EvaluationListJobRunsParams,
|
|
50
|
+
type EvaluationUpdateEvaluatorParams,
|
|
25
51
|
} from './evaluation';
|
|
52
|
+
export {
|
|
53
|
+
HTTPRequestDefinition,
|
|
54
|
+
type HTTPRequestDefinitionCreateResponse,
|
|
55
|
+
type HTTPRequestDefinitionUpdateResponse,
|
|
56
|
+
type HTTPRequestDefinitionListResponse,
|
|
57
|
+
type HTTPRequestDefinitionGetByIDResponse,
|
|
58
|
+
type HTTPRequestDefinitionCreateParams,
|
|
59
|
+
type HTTPRequestDefinitionUpdateParams,
|
|
60
|
+
type HTTPRequestDefinitionListParams,
|
|
61
|
+
} from './http-request-definition';
|
|
26
62
|
export { Health, type HealthGetResponse } from './health';
|
|
27
63
|
export {
|
|
28
64
|
Integrations,
|
|
@@ -33,24 +69,56 @@ export {
|
|
|
33
69
|
} from './integrations';
|
|
34
70
|
export { Metric, type MetricListDefinitionsResponse } from './metric';
|
|
35
71
|
export {
|
|
36
|
-
|
|
37
|
-
type
|
|
38
|
-
type
|
|
39
|
-
type
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
type
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
type
|
|
48
|
-
type
|
|
49
|
-
type
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
type
|
|
54
|
-
type
|
|
55
|
-
type
|
|
56
|
-
|
|
72
|
+
SimulationJob,
|
|
73
|
+
type SimulationJobGetByIDResponse,
|
|
74
|
+
type SimulationJobLookupResponse,
|
|
75
|
+
type SimulationJobLookupParams,
|
|
76
|
+
} from './simulation-job';
|
|
77
|
+
export {
|
|
78
|
+
SimulationPersona,
|
|
79
|
+
type SimulationPersonaCreateResponse,
|
|
80
|
+
type SimulationPersonaUpdateResponse,
|
|
81
|
+
type SimulationPersonaListResponse,
|
|
82
|
+
type SimulationPersonaGetByIDResponse,
|
|
83
|
+
type SimulationPersonaCreateParams,
|
|
84
|
+
type SimulationPersonaUpdateParams,
|
|
85
|
+
type SimulationPersonaListParams,
|
|
86
|
+
} from './simulation-persona';
|
|
87
|
+
export {
|
|
88
|
+
SimulationRunPlan,
|
|
89
|
+
type SimulationRunPlanCreateResponse,
|
|
90
|
+
type SimulationRunPlanUpdateResponse,
|
|
91
|
+
type SimulationRunPlanListResponse,
|
|
92
|
+
type SimulationRunPlanDeleteResponse,
|
|
93
|
+
type SimulationRunPlanGetByIDResponse,
|
|
94
|
+
type SimulationRunPlanCreateParams,
|
|
95
|
+
type SimulationRunPlanUpdateParams,
|
|
96
|
+
type SimulationRunPlanListParams,
|
|
97
|
+
} from './simulation-run-plan';
|
|
98
|
+
export {
|
|
99
|
+
SimulationRunPlanJob,
|
|
100
|
+
type SimulationRunPlanJobListResponse,
|
|
101
|
+
type SimulationRunPlanJobGetByIDResponse,
|
|
102
|
+
type SimulationRunPlanJobStartResponse,
|
|
103
|
+
type SimulationRunPlanJobListParams,
|
|
104
|
+
} from './simulation-run-plan-job';
|
|
105
|
+
export {
|
|
106
|
+
SimulationScenario,
|
|
107
|
+
type SimulationScenarioCreateResponse,
|
|
108
|
+
type SimulationScenarioUpdateResponse,
|
|
109
|
+
type SimulationScenarioListResponse,
|
|
110
|
+
type SimulationScenarioDeleteResponse,
|
|
111
|
+
type SimulationScenarioGetByIDResponse,
|
|
112
|
+
type SimulationScenarioCreateParams,
|
|
113
|
+
type SimulationScenarioUpdateParams,
|
|
114
|
+
type SimulationScenarioListParams,
|
|
115
|
+
} from './simulation-scenario';
|
|
116
|
+
export {
|
|
117
|
+
Webhook,
|
|
118
|
+
type WebhookCreateResponse,
|
|
119
|
+
type WebhookListResponse,
|
|
120
|
+
type WebhookDeleteResponse,
|
|
121
|
+
type WebhookGetByIDResponse,
|
|
122
|
+
type WebhookCreateParams,
|
|
123
|
+
type WebhookListParams,
|
|
124
|
+
} from './webhook';
|