@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.
- package/CHANGELOG.md +19 -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,339 @@
|
|
|
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 HTTPRequestDefinition extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Creates a new HTTP request definition. The signing secret is only returned in
|
|
7
|
+
* this response and cannot be retrieved later.
|
|
8
|
+
*/
|
|
9
|
+
create(body: HTTPRequestDefinitionCreateParams, options?: RequestOptions): APIPromise<HTTPRequestDefinitionCreateResponse>;
|
|
10
|
+
/**
|
|
11
|
+
* Updates an existing HTTP request definition.
|
|
12
|
+
*/
|
|
13
|
+
update(definitionID: string, body?: HTTPRequestDefinitionUpdateParams | null | undefined, options?: RequestOptions): APIPromise<HTTPRequestDefinitionUpdateResponse>;
|
|
14
|
+
/**
|
|
15
|
+
* Returns a paginated list of HTTP request definitions for the authenticated
|
|
16
|
+
* project.
|
|
17
|
+
*/
|
|
18
|
+
list(query?: HTTPRequestDefinitionListParams | null | undefined, options?: RequestOptions): APIPromise<HTTPRequestDefinitionListResponse>;
|
|
19
|
+
/**
|
|
20
|
+
* Returns a specific HTTP request definition by its ID.
|
|
21
|
+
*/
|
|
22
|
+
getByID(definitionID: string, options?: RequestOptions): APIPromise<HTTPRequestDefinitionGetByIDResponse>;
|
|
23
|
+
}
|
|
24
|
+
export interface HTTPRequestDefinitionCreateResponse {
|
|
25
|
+
/**
|
|
26
|
+
* HTTP request definition with signing secret (returned on creation)
|
|
27
|
+
*/
|
|
28
|
+
data: HTTPRequestDefinitionCreateResponse.Data;
|
|
29
|
+
}
|
|
30
|
+
export declare namespace HTTPRequestDefinitionCreateResponse {
|
|
31
|
+
/**
|
|
32
|
+
* HTTP request definition with signing secret (returned on creation)
|
|
33
|
+
*/
|
|
34
|
+
interface Data {
|
|
35
|
+
/**
|
|
36
|
+
* HTTP request definition ID
|
|
37
|
+
*/
|
|
38
|
+
id: string;
|
|
39
|
+
/**
|
|
40
|
+
* Request body as a string
|
|
41
|
+
*/
|
|
42
|
+
body: string | null;
|
|
43
|
+
/**
|
|
44
|
+
* Creation timestamp
|
|
45
|
+
*/
|
|
46
|
+
createdAt: string;
|
|
47
|
+
/**
|
|
48
|
+
* Description of the HTTP request definition
|
|
49
|
+
*/
|
|
50
|
+
description: string | null;
|
|
51
|
+
/**
|
|
52
|
+
* Request headers as key-value pairs
|
|
53
|
+
*/
|
|
54
|
+
headers: {
|
|
55
|
+
[key: string]: string;
|
|
56
|
+
};
|
|
57
|
+
/**
|
|
58
|
+
* HTTP method: POST, PUT, PATCH, or GET
|
|
59
|
+
*/
|
|
60
|
+
method: 'POST' | 'PUT' | 'PATCH' | 'GET';
|
|
61
|
+
/**
|
|
62
|
+
* Parsed body as a JSON object if valid JSON, otherwise the raw string
|
|
63
|
+
*/
|
|
64
|
+
parsedBody: {
|
|
65
|
+
[key: string]: unknown;
|
|
66
|
+
} | string | null;
|
|
67
|
+
/**
|
|
68
|
+
* Scope of the HTTP request definition
|
|
69
|
+
*/
|
|
70
|
+
scope: 'AGENT_OUTBOUND_DIAL';
|
|
71
|
+
/**
|
|
72
|
+
* Signing secret (only returned on creation)
|
|
73
|
+
*/
|
|
74
|
+
signingSecret: string;
|
|
75
|
+
/**
|
|
76
|
+
* Last update timestamp
|
|
77
|
+
*/
|
|
78
|
+
updatedAt: string;
|
|
79
|
+
/**
|
|
80
|
+
* URL for the HTTP request
|
|
81
|
+
*/
|
|
82
|
+
url: string;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
export interface HTTPRequestDefinitionUpdateResponse {
|
|
86
|
+
/**
|
|
87
|
+
* HTTP request definition
|
|
88
|
+
*/
|
|
89
|
+
data: HTTPRequestDefinitionUpdateResponse.Data;
|
|
90
|
+
}
|
|
91
|
+
export declare namespace HTTPRequestDefinitionUpdateResponse {
|
|
92
|
+
/**
|
|
93
|
+
* HTTP request definition
|
|
94
|
+
*/
|
|
95
|
+
interface Data {
|
|
96
|
+
/**
|
|
97
|
+
* HTTP request definition ID
|
|
98
|
+
*/
|
|
99
|
+
id: string;
|
|
100
|
+
/**
|
|
101
|
+
* Request body as a string
|
|
102
|
+
*/
|
|
103
|
+
body: string | null;
|
|
104
|
+
/**
|
|
105
|
+
* Creation timestamp
|
|
106
|
+
*/
|
|
107
|
+
createdAt: string;
|
|
108
|
+
/**
|
|
109
|
+
* Description of the HTTP request definition
|
|
110
|
+
*/
|
|
111
|
+
description: string | null;
|
|
112
|
+
/**
|
|
113
|
+
* Request headers as key-value pairs
|
|
114
|
+
*/
|
|
115
|
+
headers: {
|
|
116
|
+
[key: string]: string;
|
|
117
|
+
};
|
|
118
|
+
/**
|
|
119
|
+
* HTTP method: POST, PUT, PATCH, or GET
|
|
120
|
+
*/
|
|
121
|
+
method: 'POST' | 'PUT' | 'PATCH' | 'GET';
|
|
122
|
+
/**
|
|
123
|
+
* Parsed body as a JSON object if valid JSON, otherwise the raw string
|
|
124
|
+
*/
|
|
125
|
+
parsedBody: {
|
|
126
|
+
[key: string]: unknown;
|
|
127
|
+
} | string | null;
|
|
128
|
+
/**
|
|
129
|
+
* Scope of the HTTP request definition
|
|
130
|
+
*/
|
|
131
|
+
scope: 'AGENT_OUTBOUND_DIAL';
|
|
132
|
+
/**
|
|
133
|
+
* Last update timestamp
|
|
134
|
+
*/
|
|
135
|
+
updatedAt: string;
|
|
136
|
+
/**
|
|
137
|
+
* URL for the HTTP request
|
|
138
|
+
*/
|
|
139
|
+
url: string;
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
export interface HTTPRequestDefinitionListResponse {
|
|
143
|
+
data: Array<HTTPRequestDefinitionListResponse.Data>;
|
|
144
|
+
pagination: HTTPRequestDefinitionListResponse.Pagination;
|
|
145
|
+
}
|
|
146
|
+
export declare namespace HTTPRequestDefinitionListResponse {
|
|
147
|
+
/**
|
|
148
|
+
* HTTP request definition
|
|
149
|
+
*/
|
|
150
|
+
interface Data {
|
|
151
|
+
/**
|
|
152
|
+
* HTTP request definition ID
|
|
153
|
+
*/
|
|
154
|
+
id: string;
|
|
155
|
+
/**
|
|
156
|
+
* Request body as a string
|
|
157
|
+
*/
|
|
158
|
+
body: string | null;
|
|
159
|
+
/**
|
|
160
|
+
* Creation timestamp
|
|
161
|
+
*/
|
|
162
|
+
createdAt: string;
|
|
163
|
+
/**
|
|
164
|
+
* Description of the HTTP request definition
|
|
165
|
+
*/
|
|
166
|
+
description: string | null;
|
|
167
|
+
/**
|
|
168
|
+
* Request headers as key-value pairs
|
|
169
|
+
*/
|
|
170
|
+
headers: {
|
|
171
|
+
[key: string]: string;
|
|
172
|
+
};
|
|
173
|
+
/**
|
|
174
|
+
* HTTP method: POST, PUT, PATCH, or GET
|
|
175
|
+
*/
|
|
176
|
+
method: 'POST' | 'PUT' | 'PATCH' | 'GET';
|
|
177
|
+
/**
|
|
178
|
+
* Parsed body as a JSON object if valid JSON, otherwise the raw string
|
|
179
|
+
*/
|
|
180
|
+
parsedBody: {
|
|
181
|
+
[key: string]: unknown;
|
|
182
|
+
} | string | null;
|
|
183
|
+
/**
|
|
184
|
+
* Scope of the HTTP request definition
|
|
185
|
+
*/
|
|
186
|
+
scope: 'AGENT_OUTBOUND_DIAL';
|
|
187
|
+
/**
|
|
188
|
+
* Last update timestamp
|
|
189
|
+
*/
|
|
190
|
+
updatedAt: string;
|
|
191
|
+
/**
|
|
192
|
+
* URL for the HTTP request
|
|
193
|
+
*/
|
|
194
|
+
url: string;
|
|
195
|
+
}
|
|
196
|
+
interface Pagination {
|
|
197
|
+
/**
|
|
198
|
+
* Whether there are more items to fetch
|
|
199
|
+
*/
|
|
200
|
+
hasMore: boolean;
|
|
201
|
+
/**
|
|
202
|
+
* Cursor for the next page of items
|
|
203
|
+
*/
|
|
204
|
+
nextCursor: string | null;
|
|
205
|
+
/**
|
|
206
|
+
* Total number of items
|
|
207
|
+
*/
|
|
208
|
+
total: number;
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
export interface HTTPRequestDefinitionGetByIDResponse {
|
|
212
|
+
/**
|
|
213
|
+
* HTTP request definition
|
|
214
|
+
*/
|
|
215
|
+
data: HTTPRequestDefinitionGetByIDResponse.Data;
|
|
216
|
+
}
|
|
217
|
+
export declare namespace HTTPRequestDefinitionGetByIDResponse {
|
|
218
|
+
/**
|
|
219
|
+
* HTTP request definition
|
|
220
|
+
*/
|
|
221
|
+
interface Data {
|
|
222
|
+
/**
|
|
223
|
+
* HTTP request definition ID
|
|
224
|
+
*/
|
|
225
|
+
id: string;
|
|
226
|
+
/**
|
|
227
|
+
* Request body as a string
|
|
228
|
+
*/
|
|
229
|
+
body: string | null;
|
|
230
|
+
/**
|
|
231
|
+
* Creation timestamp
|
|
232
|
+
*/
|
|
233
|
+
createdAt: string;
|
|
234
|
+
/**
|
|
235
|
+
* Description of the HTTP request definition
|
|
236
|
+
*/
|
|
237
|
+
description: string | null;
|
|
238
|
+
/**
|
|
239
|
+
* Request headers as key-value pairs
|
|
240
|
+
*/
|
|
241
|
+
headers: {
|
|
242
|
+
[key: string]: string;
|
|
243
|
+
};
|
|
244
|
+
/**
|
|
245
|
+
* HTTP method: POST, PUT, PATCH, or GET
|
|
246
|
+
*/
|
|
247
|
+
method: 'POST' | 'PUT' | 'PATCH' | 'GET';
|
|
248
|
+
/**
|
|
249
|
+
* Parsed body as a JSON object if valid JSON, otherwise the raw string
|
|
250
|
+
*/
|
|
251
|
+
parsedBody: {
|
|
252
|
+
[key: string]: unknown;
|
|
253
|
+
} | string | null;
|
|
254
|
+
/**
|
|
255
|
+
* Scope of the HTTP request definition
|
|
256
|
+
*/
|
|
257
|
+
scope: 'AGENT_OUTBOUND_DIAL';
|
|
258
|
+
/**
|
|
259
|
+
* Last update timestamp
|
|
260
|
+
*/
|
|
261
|
+
updatedAt: string;
|
|
262
|
+
/**
|
|
263
|
+
* URL for the HTTP request
|
|
264
|
+
*/
|
|
265
|
+
url: string;
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
export interface HTTPRequestDefinitionCreateParams {
|
|
269
|
+
/**
|
|
270
|
+
* Scope: AGENT_OUTBOUND_DIAL
|
|
271
|
+
*/
|
|
272
|
+
scope: 'AGENT_OUTBOUND_DIAL';
|
|
273
|
+
/**
|
|
274
|
+
* URL for the HTTP request
|
|
275
|
+
*/
|
|
276
|
+
url: string;
|
|
277
|
+
/**
|
|
278
|
+
* Request body template. Accepts a JSON object or a string with placeholders like
|
|
279
|
+
* {{phoneNumberToDial}}. Objects are serialized to JSON for storage.
|
|
280
|
+
*/
|
|
281
|
+
body?: string | {
|
|
282
|
+
[key: string]: unknown;
|
|
283
|
+
} | null;
|
|
284
|
+
/**
|
|
285
|
+
* Description of the HTTP request definition
|
|
286
|
+
*/
|
|
287
|
+
description?: string | null;
|
|
288
|
+
/**
|
|
289
|
+
* Request headers as key-value pairs
|
|
290
|
+
*/
|
|
291
|
+
headers?: {
|
|
292
|
+
[key: string]: string;
|
|
293
|
+
};
|
|
294
|
+
/**
|
|
295
|
+
* HTTP method (default: POST)
|
|
296
|
+
*/
|
|
297
|
+
method?: 'POST' | 'PUT' | 'PATCH' | 'GET';
|
|
298
|
+
}
|
|
299
|
+
export interface HTTPRequestDefinitionUpdateParams {
|
|
300
|
+
/**
|
|
301
|
+
* Request body template. Accepts a JSON object or a string with placeholders like
|
|
302
|
+
* {{phoneNumberToDial}}. Objects are serialized to JSON for storage.
|
|
303
|
+
*/
|
|
304
|
+
body?: string | {
|
|
305
|
+
[key: string]: unknown;
|
|
306
|
+
} | null;
|
|
307
|
+
/**
|
|
308
|
+
* Description of the HTTP request definition
|
|
309
|
+
*/
|
|
310
|
+
description?: string | null;
|
|
311
|
+
/**
|
|
312
|
+
* Request headers as key-value pairs
|
|
313
|
+
*/
|
|
314
|
+
headers?: {
|
|
315
|
+
[key: string]: string;
|
|
316
|
+
};
|
|
317
|
+
/**
|
|
318
|
+
* HTTP method: POST, PUT, PATCH, or GET
|
|
319
|
+
*/
|
|
320
|
+
method?: 'POST' | 'PUT' | 'PATCH' | 'GET';
|
|
321
|
+
/**
|
|
322
|
+
* URL for the HTTP request
|
|
323
|
+
*/
|
|
324
|
+
url?: string;
|
|
325
|
+
}
|
|
326
|
+
export interface HTTPRequestDefinitionListParams {
|
|
327
|
+
/**
|
|
328
|
+
* Cursor for pagination - definition ID to start after
|
|
329
|
+
*/
|
|
330
|
+
after?: string;
|
|
331
|
+
/**
|
|
332
|
+
* Maximum number of definitions to return (default: 20, max: 50)
|
|
333
|
+
*/
|
|
334
|
+
limit?: number;
|
|
335
|
+
}
|
|
336
|
+
export declare namespace HTTPRequestDefinition {
|
|
337
|
+
export { type HTTPRequestDefinitionCreateResponse as HTTPRequestDefinitionCreateResponse, type HTTPRequestDefinitionUpdateResponse as HTTPRequestDefinitionUpdateResponse, type HTTPRequestDefinitionListResponse as HTTPRequestDefinitionListResponse, type HTTPRequestDefinitionGetByIDResponse as HTTPRequestDefinitionGetByIDResponse, type HTTPRequestDefinitionCreateParams as HTTPRequestDefinitionCreateParams, type HTTPRequestDefinitionUpdateParams as HTTPRequestDefinitionUpdateParams, type HTTPRequestDefinitionListParams as HTTPRequestDefinitionListParams, };
|
|
338
|
+
}
|
|
339
|
+
//# sourceMappingURL=http-request-definition.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"http-request-definition.d.ts","sourceRoot":"","sources":["../src/resources/http-request-definition.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,qBAAsB,SAAQ,WAAW;IACpD;;;OAGG;IACH,MAAM,CACJ,IAAI,EAAE,iCAAiC,EACvC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,mCAAmC,CAAC;IAIlD;;OAEG;IACH,MAAM,CACJ,YAAY,EAAE,MAAM,EACpB,IAAI,GAAE,iCAAiC,GAAG,IAAI,GAAG,SAAc,EAC/D,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,mCAAmC,CAAC;IAIlD;;;OAGG;IACH,IAA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,GACxE,CAAC;CACH"}
|
|
@@ -0,0 +1,36 @@
|
|
|
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.HTTPRequestDefinition = void 0;
|
|
5
|
+
const resource_1 = require("../core/resource.js");
|
|
6
|
+
const path_1 = require("../internal/utils/path.js");
|
|
7
|
+
class HTTPRequestDefinition extends resource_1.APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Creates a new HTTP request definition. The signing secret is only returned in
|
|
10
|
+
* this response and cannot be retrieved later.
|
|
11
|
+
*/
|
|
12
|
+
create(body, options) {
|
|
13
|
+
return this._client.post('/v1/http-request-definition', { body, ...options });
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Updates an existing HTTP request definition.
|
|
17
|
+
*/
|
|
18
|
+
update(definitionID, body = {}, options) {
|
|
19
|
+
return this._client.put((0, path_1.path) `/v1/http-request-definition/${definitionID}`, { body, ...options });
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Returns a paginated list of HTTP request definitions for the authenticated
|
|
23
|
+
* project.
|
|
24
|
+
*/
|
|
25
|
+
list(query = {}, options) {
|
|
26
|
+
return this._client.get('/v1/http-request-definition', { query, ...options });
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Returns a specific HTTP request definition by its ID.
|
|
30
|
+
*/
|
|
31
|
+
getByID(definitionID, options) {
|
|
32
|
+
return this._client.get((0, path_1.path) `/v1/http-request-definition/${definitionID}`, options);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
exports.HTTPRequestDefinition = HTTPRequestDefinition;
|
|
36
|
+
//# sourceMappingURL=http-request-definition.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"http-request-definition.js","sourceRoot":"","sources":["../src/resources/http-request-definition.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAG/C,oDAA8C;AAE9C,MAAa,qBAAsB,SAAQ,sBAAW;IACpD;;;OAGG;IACH,MAAM,CACJ,IAAuC,EACvC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,6BAA6B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChF,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,YAAoB,EACpB,OAA6D,EAAE,EAC/D,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,+BAA+B,YAAY,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACnG,CAAC;IAED;;;OAGG;IACH,IAAI,CACF,QAA4D,EAAE,EAC9D,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,6BAA6B,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChF,CAAC;IAED;;OAEG;IACH,OAAO,CAAC,YAAoB,EAAE,OAAwB;QACpD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,+BAA+B,YAAY,EAAE,EAAE,OAAO,CAAC,CAAC;IACtF,CAAC;CACF;AAxCD,sDAwCC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
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 HTTPRequestDefinition extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Creates a new HTTP request definition. The signing secret is only returned in
|
|
7
|
+
* this response and cannot be retrieved later.
|
|
8
|
+
*/
|
|
9
|
+
create(body, options) {
|
|
10
|
+
return this._client.post('/v1/http-request-definition', { body, ...options });
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Updates an existing HTTP request definition.
|
|
14
|
+
*/
|
|
15
|
+
update(definitionID, body = {}, options) {
|
|
16
|
+
return this._client.put(path `/v1/http-request-definition/${definitionID}`, { body, ...options });
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Returns a paginated list of HTTP request definitions for the authenticated
|
|
20
|
+
* project.
|
|
21
|
+
*/
|
|
22
|
+
list(query = {}, options) {
|
|
23
|
+
return this._client.get('/v1/http-request-definition', { query, ...options });
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Returns a specific HTTP request definition by its ID.
|
|
27
|
+
*/
|
|
28
|
+
getByID(definitionID, options) {
|
|
29
|
+
return this._client.get(path `/v1/http-request-definition/${definitionID}`, options);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
//# sourceMappingURL=http-request-definition.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"http-request-definition.mjs","sourceRoot":"","sources":["../src/resources/http-request-definition.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,qBAAsB,SAAQ,WAAW;IACpD;;;OAGG;IACH,MAAM,CACJ,IAAuC,EACvC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,6BAA6B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChF,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,YAAoB,EACpB,OAA6D,EAAE,EAC/D,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,+BAA+B,YAAY,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACnG,CAAC;IAED;;;OAGG;IACH,IAAI,CACF,QAA4D,EAAE,EAC9D,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,6BAA6B,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChF,CAAC;IAED;;OAEG;IACH,OAAO,CAAC,YAAoB,EAAE,OAAwB;QACpD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,+BAA+B,YAAY,EAAE,EAAE,OAAO,CAAC,CAAC;IACtF,CAAC;CACF"}
|
package/resources/index.d.mts
CHANGED
|
@@ -1,8 +1,15 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export {
|
|
1
|
+
export { Agent, type AgentCreateResponse, type AgentUpdateResponse, type AgentListResponse, type AgentGetByIDResponse, type AgentCreateParams, type AgentUpdateParams, type AgentListParams, } from "./agent.mjs";
|
|
2
|
+
export { AgentEndpoint, type AgentEndpointCreateResponse, type AgentEndpointUpdateResponse, type AgentEndpointListResponse, type AgentEndpointGetByIDResponse, type AgentEndpointCreateParams, type AgentEndpointUpdateParams, type AgentEndpointListParams, } from "./agent-endpoint.mjs";
|
|
3
|
+
export { Call, type CallCreateResponse, type CallListResponse, type CallGetByIDResponse, type CallGetTranscriptResponse, type CallListEvaluationRunsResponse, type CallListMetricsResponse, type CallListSentimentRunsResponse, type CallCreateParams, type CallListParams, type CallGetTranscriptParams, type CallListMetricsParams, } from "./call.mjs";
|
|
4
|
+
export { Evaluation, type EvaluationCreateEvaluatorResponse, type EvaluationCreateJobResponse, type EvaluationGetEvaluatorByIDResponse, type EvaluationGetJobResponse, type EvaluationListEvaluatorsResponse, type EvaluationListJobRunsResponse, type EvaluationUpdateEvaluatorResponse, type EvaluationCreateEvaluatorParams, type EvaluationCreateJobParams, type EvaluationListEvaluatorsParams, type EvaluationListJobRunsParams, type EvaluationUpdateEvaluatorParams, } from "./evaluation.mjs";
|
|
5
|
+
export { HTTPRequestDefinition, type HTTPRequestDefinitionCreateResponse, type HTTPRequestDefinitionUpdateResponse, type HTTPRequestDefinitionListResponse, type HTTPRequestDefinitionGetByIDResponse, type HTTPRequestDefinitionCreateParams, type HTTPRequestDefinitionUpdateParams, type HTTPRequestDefinitionListParams, } from "./http-request-definition.mjs";
|
|
3
6
|
export { Health, type HealthGetResponse } from "./health.mjs";
|
|
4
7
|
export { Integrations, type IntegrationCreateRetellCallResponse, type IntegrationCreateVapiCallResponse, type IntegrationCreateRetellCallParams, type IntegrationCreateVapiCallParams, } from "./integrations.mjs";
|
|
5
8
|
export { Metric, type MetricListDefinitionsResponse } from "./metric.mjs";
|
|
6
|
-
export {
|
|
7
|
-
export {
|
|
9
|
+
export { SimulationJob, type SimulationJobGetByIDResponse, type SimulationJobLookupResponse, type SimulationJobLookupParams, } from "./simulation-job.mjs";
|
|
10
|
+
export { SimulationPersona, type SimulationPersonaCreateResponse, type SimulationPersonaUpdateResponse, type SimulationPersonaListResponse, type SimulationPersonaGetByIDResponse, type SimulationPersonaCreateParams, type SimulationPersonaUpdateParams, type SimulationPersonaListParams, } from "./simulation-persona.mjs";
|
|
11
|
+
export { SimulationRunPlan, type SimulationRunPlanCreateResponse, type SimulationRunPlanUpdateResponse, type SimulationRunPlanListResponse, type SimulationRunPlanDeleteResponse, type SimulationRunPlanGetByIDResponse, type SimulationRunPlanCreateParams, type SimulationRunPlanUpdateParams, type SimulationRunPlanListParams, } from "./simulation-run-plan.mjs";
|
|
12
|
+
export { SimulationRunPlanJob, type SimulationRunPlanJobListResponse, type SimulationRunPlanJobGetByIDResponse, type SimulationRunPlanJobStartResponse, type SimulationRunPlanJobListParams, } from "./simulation-run-plan-job.mjs";
|
|
13
|
+
export { SimulationScenario, type SimulationScenarioCreateResponse, type SimulationScenarioUpdateResponse, type SimulationScenarioListResponse, type SimulationScenarioDeleteResponse, type SimulationScenarioGetByIDResponse, type SimulationScenarioCreateParams, type SimulationScenarioUpdateParams, type SimulationScenarioListParams, } from "./simulation-scenario.mjs";
|
|
14
|
+
export { Webhook, type WebhookCreateResponse, type WebhookListResponse, type WebhookDeleteResponse, type WebhookGetByIDResponse, type WebhookCreateParams, type WebhookListParams, } from "./webhook.mjs";
|
|
8
15
|
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"OAEO,EACL,IAAI,EACJ,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,mBAAmB,EACxB,KAAK,8BAA8B,EACnC,KAAK,uBAAuB,EAC5B,KAAK,6BAA6B,EAClC,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,KAAK,qBAAqB,GAC3B;OACM,EACL,UAAU,EACV,KAAK,2BAA2B,EAChC,KAAK,kCAAkC,EACvC,KAAK,wBAAwB,EAC7B,KAAK,gCAAgC,EACrC,KAAK,6BAA6B,EAClC,KAAK,yBAAyB,EAC9B,KAAK,8BAA8B,EACnC,KAAK,2BAA2B,
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"OAEO,EACL,KAAK,EACL,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,oBAAoB,EACzB,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,eAAe,GACrB;OACM,EACL,aAAa,EACb,KAAK,2BAA2B,EAChC,KAAK,2BAA2B,EAChC,KAAK,yBAAyB,EAC9B,KAAK,4BAA4B,EACjC,KAAK,yBAAyB,EAC9B,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,GAC7B;OACM,EACL,IAAI,EACJ,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,mBAAmB,EACxB,KAAK,yBAAyB,EAC9B,KAAK,8BAA8B,EACnC,KAAK,uBAAuB,EAC5B,KAAK,6BAA6B,EAClC,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,GAC3B;OACM,EACL,UAAU,EACV,KAAK,iCAAiC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CAAgC,EACrC,KAAK,iCAAiC,EACtC,KAAK,8BAA8B,EACnC,KAAK,8BAA8B,EACnC,KAAK,4BAA4B,GAClC;OACM,EACL,OAAO,EACP,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,sBAAsB,EAC3B,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,GACvB"}
|
package/resources/index.d.ts
CHANGED
|
@@ -1,8 +1,15 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export {
|
|
1
|
+
export { Agent, type AgentCreateResponse, type AgentUpdateResponse, type AgentListResponse, type AgentGetByIDResponse, type AgentCreateParams, type AgentUpdateParams, type AgentListParams, } from "./agent.js";
|
|
2
|
+
export { AgentEndpoint, type AgentEndpointCreateResponse, type AgentEndpointUpdateResponse, type AgentEndpointListResponse, type AgentEndpointGetByIDResponse, type AgentEndpointCreateParams, type AgentEndpointUpdateParams, type AgentEndpointListParams, } from "./agent-endpoint.js";
|
|
3
|
+
export { Call, type CallCreateResponse, type CallListResponse, type CallGetByIDResponse, type CallGetTranscriptResponse, type CallListEvaluationRunsResponse, type CallListMetricsResponse, type CallListSentimentRunsResponse, type CallCreateParams, type CallListParams, type CallGetTranscriptParams, type CallListMetricsParams, } from "./call.js";
|
|
4
|
+
export { Evaluation, type EvaluationCreateEvaluatorResponse, type EvaluationCreateJobResponse, type EvaluationGetEvaluatorByIDResponse, type EvaluationGetJobResponse, type EvaluationListEvaluatorsResponse, type EvaluationListJobRunsResponse, type EvaluationUpdateEvaluatorResponse, type EvaluationCreateEvaluatorParams, type EvaluationCreateJobParams, type EvaluationListEvaluatorsParams, type EvaluationListJobRunsParams, type EvaluationUpdateEvaluatorParams, } from "./evaluation.js";
|
|
5
|
+
export { HTTPRequestDefinition, type HTTPRequestDefinitionCreateResponse, type HTTPRequestDefinitionUpdateResponse, type HTTPRequestDefinitionListResponse, type HTTPRequestDefinitionGetByIDResponse, type HTTPRequestDefinitionCreateParams, type HTTPRequestDefinitionUpdateParams, type HTTPRequestDefinitionListParams, } from "./http-request-definition.js";
|
|
3
6
|
export { Health, type HealthGetResponse } from "./health.js";
|
|
4
7
|
export { Integrations, type IntegrationCreateRetellCallResponse, type IntegrationCreateVapiCallResponse, type IntegrationCreateRetellCallParams, type IntegrationCreateVapiCallParams, } from "./integrations.js";
|
|
5
8
|
export { Metric, type MetricListDefinitionsResponse } from "./metric.js";
|
|
6
|
-
export {
|
|
7
|
-
export {
|
|
9
|
+
export { SimulationJob, type SimulationJobGetByIDResponse, type SimulationJobLookupResponse, type SimulationJobLookupParams, } from "./simulation-job.js";
|
|
10
|
+
export { SimulationPersona, type SimulationPersonaCreateResponse, type SimulationPersonaUpdateResponse, type SimulationPersonaListResponse, type SimulationPersonaGetByIDResponse, type SimulationPersonaCreateParams, type SimulationPersonaUpdateParams, type SimulationPersonaListParams, } from "./simulation-persona.js";
|
|
11
|
+
export { SimulationRunPlan, type SimulationRunPlanCreateResponse, type SimulationRunPlanUpdateResponse, type SimulationRunPlanListResponse, type SimulationRunPlanDeleteResponse, type SimulationRunPlanGetByIDResponse, type SimulationRunPlanCreateParams, type SimulationRunPlanUpdateParams, type SimulationRunPlanListParams, } from "./simulation-run-plan.js";
|
|
12
|
+
export { SimulationRunPlanJob, type SimulationRunPlanJobListResponse, type SimulationRunPlanJobGetByIDResponse, type SimulationRunPlanJobStartResponse, type SimulationRunPlanJobListParams, } from "./simulation-run-plan-job.js";
|
|
13
|
+
export { SimulationScenario, type SimulationScenarioCreateResponse, type SimulationScenarioUpdateResponse, type SimulationScenarioListResponse, type SimulationScenarioDeleteResponse, type SimulationScenarioGetByIDResponse, type SimulationScenarioCreateParams, type SimulationScenarioUpdateParams, type SimulationScenarioListParams, } from "./simulation-scenario.js";
|
|
14
|
+
export { Webhook, type WebhookCreateResponse, type WebhookListResponse, type WebhookDeleteResponse, type WebhookGetByIDResponse, type WebhookCreateParams, type WebhookListParams, } from "./webhook.js";
|
|
8
15
|
//# sourceMappingURL=index.d.ts.map
|
package/resources/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"OAEO,EACL,IAAI,EACJ,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,mBAAmB,EACxB,KAAK,8BAA8B,EACnC,KAAK,uBAAuB,EAC5B,KAAK,6BAA6B,EAClC,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,KAAK,qBAAqB,GAC3B;OACM,EACL,UAAU,EACV,KAAK,2BAA2B,EAChC,KAAK,kCAAkC,EACvC,KAAK,wBAAwB,EAC7B,KAAK,gCAAgC,EACrC,KAAK,6BAA6B,EAClC,KAAK,yBAAyB,EAC9B,KAAK,8BAA8B,EACnC,KAAK,2BAA2B,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"OAEO,EACL,KAAK,EACL,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,oBAAoB,EACzB,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,eAAe,GACrB;OACM,EACL,aAAa,EACb,KAAK,2BAA2B,EAChC,KAAK,2BAA2B,EAChC,KAAK,yBAAyB,EAC9B,KAAK,4BAA4B,EACjC,KAAK,yBAAyB,EAC9B,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,GAC7B;OACM,EACL,IAAI,EACJ,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,mBAAmB,EACxB,KAAK,yBAAyB,EAC9B,KAAK,8BAA8B,EACnC,KAAK,uBAAuB,EAC5B,KAAK,6BAA6B,EAClC,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,GAC3B;OACM,EACL,UAAU,EACV,KAAK,iCAAiC,EACtC,KAAK,2BAA2B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CAAiC,EACtC,KAAK,8BAA8B,EACnC,KAAK,8BAA8B,EACnC,KAAK,4BAA4B,GAClC;OACM,EACL,OAAO,EACP,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,sBAAsB,EAC3B,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,GACvB"}
|
package/resources/index.js
CHANGED
|
@@ -1,19 +1,33 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.
|
|
4
|
+
exports.Webhook = exports.SimulationScenario = exports.SimulationRunPlanJob = exports.SimulationRunPlan = exports.SimulationPersona = exports.SimulationJob = exports.Metric = exports.Integrations = exports.Health = exports.HTTPRequestDefinition = exports.Evaluation = exports.Call = exports.AgentEndpoint = exports.Agent = void 0;
|
|
5
|
+
var agent_1 = require("./agent.js");
|
|
6
|
+
Object.defineProperty(exports, "Agent", { enumerable: true, get: function () { return agent_1.Agent; } });
|
|
7
|
+
var agent_endpoint_1 = require("./agent-endpoint.js");
|
|
8
|
+
Object.defineProperty(exports, "AgentEndpoint", { enumerable: true, get: function () { return agent_endpoint_1.AgentEndpoint; } });
|
|
5
9
|
var call_1 = require("./call.js");
|
|
6
10
|
Object.defineProperty(exports, "Call", { enumerable: true, get: function () { return call_1.Call; } });
|
|
7
11
|
var evaluation_1 = require("./evaluation.js");
|
|
8
12
|
Object.defineProperty(exports, "Evaluation", { enumerable: true, get: function () { return evaluation_1.Evaluation; } });
|
|
13
|
+
var http_request_definition_1 = require("./http-request-definition.js");
|
|
14
|
+
Object.defineProperty(exports, "HTTPRequestDefinition", { enumerable: true, get: function () { return http_request_definition_1.HTTPRequestDefinition; } });
|
|
9
15
|
var health_1 = require("./health.js");
|
|
10
16
|
Object.defineProperty(exports, "Health", { enumerable: true, get: function () { return health_1.Health; } });
|
|
11
17
|
var integrations_1 = require("./integrations.js");
|
|
12
18
|
Object.defineProperty(exports, "Integrations", { enumerable: true, get: function () { return integrations_1.Integrations; } });
|
|
13
19
|
var metric_1 = require("./metric.js");
|
|
14
20
|
Object.defineProperty(exports, "Metric", { enumerable: true, get: function () { return metric_1.Metric; } });
|
|
15
|
-
var
|
|
16
|
-
Object.defineProperty(exports, "
|
|
17
|
-
var
|
|
18
|
-
Object.defineProperty(exports, "
|
|
21
|
+
var simulation_job_1 = require("./simulation-job.js");
|
|
22
|
+
Object.defineProperty(exports, "SimulationJob", { enumerable: true, get: function () { return simulation_job_1.SimulationJob; } });
|
|
23
|
+
var simulation_persona_1 = require("./simulation-persona.js");
|
|
24
|
+
Object.defineProperty(exports, "SimulationPersona", { enumerable: true, get: function () { return simulation_persona_1.SimulationPersona; } });
|
|
25
|
+
var simulation_run_plan_1 = require("./simulation-run-plan.js");
|
|
26
|
+
Object.defineProperty(exports, "SimulationRunPlan", { enumerable: true, get: function () { return simulation_run_plan_1.SimulationRunPlan; } });
|
|
27
|
+
var simulation_run_plan_job_1 = require("./simulation-run-plan-job.js");
|
|
28
|
+
Object.defineProperty(exports, "SimulationRunPlanJob", { enumerable: true, get: function () { return simulation_run_plan_job_1.SimulationRunPlanJob; } });
|
|
29
|
+
var simulation_scenario_1 = require("./simulation-scenario.js");
|
|
30
|
+
Object.defineProperty(exports, "SimulationScenario", { enumerable: true, get: function () { return simulation_scenario_1.SimulationScenario; } });
|
|
31
|
+
var webhook_1 = require("./webhook.js");
|
|
32
|
+
Object.defineProperty(exports, "Webhook", { enumerable: true, get: function () { return webhook_1.Webhook; } });
|
|
19
33
|
//# sourceMappingURL=index.js.map
|
package/resources/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,oCASiB;AARf,8FAAA,KAAK,OAAA;AASP,sDAS0B;AARxB,+GAAA,aAAa,OAAA;AASf,kCAagB;AAZd,4FAAA,IAAI,OAAA;AAaN,8CAcsB;AAbpB,wGAAA,UAAU,OAAA;AAcZ,wEASmC;AARjC,gIAAA,qBAAqB,OAAA;AASvB,sCAA0D;AAAjD,gGAAA,MAAM,OAAA;AACf,kDAMwB;AALtB,4GAAA,YAAY,OAAA;AAMd,sCAAsE;AAA7D,gGAAA,MAAM,OAAA;AACf,sDAK0B;AAJxB,+GAAA,aAAa,OAAA;AAKf,8DAS8B;AAR5B,uHAAA,iBAAiB,OAAA;AASnB,gEAU+B;AAT7B,wHAAA,iBAAiB,OAAA;AAUnB,wEAMmC;AALjC,+HAAA,oBAAoB,OAAA;AAMtB,gEAU+B;AAT7B,yHAAA,kBAAkB,OAAA;AAUpB,wCAQmB;AAPjB,kGAAA,OAAO,OAAA"}
|
package/resources/index.mjs
CHANGED
|
@@ -1,9 +1,16 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
export { Agent, } from "./agent.mjs";
|
|
3
|
+
export { AgentEndpoint, } from "./agent-endpoint.mjs";
|
|
2
4
|
export { Call, } from "./call.mjs";
|
|
3
5
|
export { Evaluation, } from "./evaluation.mjs";
|
|
6
|
+
export { HTTPRequestDefinition, } from "./http-request-definition.mjs";
|
|
4
7
|
export { Health } from "./health.mjs";
|
|
5
8
|
export { Integrations, } from "./integrations.mjs";
|
|
6
9
|
export { Metric } from "./metric.mjs";
|
|
7
|
-
export {
|
|
8
|
-
export {
|
|
10
|
+
export { SimulationJob, } from "./simulation-job.mjs";
|
|
11
|
+
export { SimulationPersona, } from "./simulation-persona.mjs";
|
|
12
|
+
export { SimulationRunPlan, } from "./simulation-run-plan.mjs";
|
|
13
|
+
export { SimulationRunPlanJob, } from "./simulation-run-plan-job.mjs";
|
|
14
|
+
export { SimulationScenario, } from "./simulation-scenario.mjs";
|
|
15
|
+
export { Webhook, } from "./webhook.mjs";
|
|
9
16
|
//# sourceMappingURL=index.mjs.map
|
package/resources/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,IAAI,
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,KAAK,GAQN;OACM,EACL,aAAa,GAQd;OACM,EACL,IAAI,GAYL;OACM,EACL,UAAU,GAaX;OACM,EACL,qBAAqB,GAQtB;OACM,EAAE,MAAM,EAA0B;OAClC,EACL,YAAY,GAKb;OACM,EAAE,MAAM,EAAsC;OAC9C,EACL,aAAa,GAId;OACM,EACL,iBAAiB,GAQlB;OACM,EACL,iBAAiB,GASlB;OACM,EACL,oBAAoB,GAKrB;OACM,EACL,kBAAkB,GASnB;OACM,EACL,OAAO,GAOR"}
|