@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.
Files changed (137) hide show
  1. package/CHANGELOG.md +27 -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,212 @@
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 Webhook extends APIResource {
5
+ /**
6
+ * Creates a new webhook with event subscriptions. The signing secret is only
7
+ * returned in this response.
8
+ */
9
+ create(body: WebhookCreateParams, options?: RequestOptions): APIPromise<WebhookCreateResponse>;
10
+ /**
11
+ * Returns a paginated list of webhooks with their event subscriptions.
12
+ */
13
+ list(query?: WebhookListParams | null | undefined, options?: RequestOptions): APIPromise<WebhookListResponse>;
14
+ /**
15
+ * Deletes a webhook and all its event subscriptions.
16
+ */
17
+ delete(webhookID: string, options?: RequestOptions): APIPromise<WebhookDeleteResponse>;
18
+ /**
19
+ * Returns a specific webhook with its event subscriptions.
20
+ */
21
+ getByID(webhookID: string, options?: RequestOptions): APIPromise<WebhookGetByIDResponse>;
22
+ }
23
+ export interface WebhookCreateResponse {
24
+ /**
25
+ * Webhook response with signing secret (returned on creation)
26
+ */
27
+ data: WebhookCreateResponse.Data;
28
+ }
29
+ export declare namespace WebhookCreateResponse {
30
+ /**
31
+ * Webhook response with signing secret (returned on creation)
32
+ */
33
+ interface Data {
34
+ /**
35
+ * Webhook ID
36
+ */
37
+ id: string;
38
+ /**
39
+ * Creation timestamp
40
+ */
41
+ createdAt: string;
42
+ /**
43
+ * Webhook description
44
+ */
45
+ description: string | null;
46
+ /**
47
+ * Event types this webhook is subscribed to
48
+ */
49
+ events: Array<'CALL_ANALYSIS_COMPLETED' | 'CALL_ANALYSIS_FAILED' | 'CALL_EVALUATION_COMPLETED' | 'CALL_EVALUATION_FAILED' | 'SIMULATION_RUN_PLAN_JOB_STARTED' | 'SIMULATION_RUN_PLAN_JOB_COMPLETED' | 'SIMULATION_RUN_PLAN_JOB_FAILED' | 'SIMULATION_RUN_PLAN_JOB_CANCELLED' | 'SIMULATION_JOB_STARTED' | 'SIMULATION_JOB_COMPLETED' | 'SIMULATION_JOB_FAILED' | 'SIMULATION_JOB_CANCELLED'>;
50
+ /**
51
+ * Request headers
52
+ */
53
+ headers: {
54
+ [key: string]: string;
55
+ };
56
+ /**
57
+ * Signing secret (only returned on creation)
58
+ */
59
+ signingSecret: string;
60
+ /**
61
+ * Last update timestamp
62
+ */
63
+ updatedAt: string;
64
+ /**
65
+ * Webhook URL
66
+ */
67
+ url: string;
68
+ }
69
+ }
70
+ export interface WebhookListResponse {
71
+ data: Array<WebhookListResponse.Data>;
72
+ pagination: WebhookListResponse.Pagination;
73
+ }
74
+ export declare namespace WebhookListResponse {
75
+ /**
76
+ * Webhook with its subscribed event types
77
+ */
78
+ interface Data {
79
+ /**
80
+ * Webhook ID
81
+ */
82
+ id: string;
83
+ /**
84
+ * Creation timestamp
85
+ */
86
+ createdAt: string;
87
+ /**
88
+ * Webhook description
89
+ */
90
+ description: string | null;
91
+ /**
92
+ * Event types this webhook is subscribed to
93
+ */
94
+ events: Array<'CALL_ANALYSIS_COMPLETED' | 'CALL_ANALYSIS_FAILED' | 'CALL_EVALUATION_COMPLETED' | 'CALL_EVALUATION_FAILED' | 'SIMULATION_RUN_PLAN_JOB_STARTED' | 'SIMULATION_RUN_PLAN_JOB_COMPLETED' | 'SIMULATION_RUN_PLAN_JOB_FAILED' | 'SIMULATION_RUN_PLAN_JOB_CANCELLED' | 'SIMULATION_JOB_STARTED' | 'SIMULATION_JOB_COMPLETED' | 'SIMULATION_JOB_FAILED' | 'SIMULATION_JOB_CANCELLED'>;
95
+ /**
96
+ * Request headers
97
+ */
98
+ headers: {
99
+ [key: string]: string;
100
+ };
101
+ /**
102
+ * Last update timestamp
103
+ */
104
+ updatedAt: string;
105
+ /**
106
+ * Webhook URL
107
+ */
108
+ url: string;
109
+ }
110
+ interface Pagination {
111
+ /**
112
+ * Whether there are more items to fetch
113
+ */
114
+ hasMore: boolean;
115
+ /**
116
+ * Cursor for the next page of items
117
+ */
118
+ nextCursor: string | null;
119
+ /**
120
+ * Total number of items
121
+ */
122
+ total: number;
123
+ }
124
+ }
125
+ export interface WebhookDeleteResponse {
126
+ data: WebhookDeleteResponse.Data;
127
+ }
128
+ export declare namespace WebhookDeleteResponse {
129
+ interface Data {
130
+ /**
131
+ * Whether the deletion was successful
132
+ */
133
+ success: boolean;
134
+ }
135
+ }
136
+ export interface WebhookGetByIDResponse {
137
+ /**
138
+ * Webhook with its subscribed event types
139
+ */
140
+ data: WebhookGetByIDResponse.Data;
141
+ }
142
+ export declare namespace WebhookGetByIDResponse {
143
+ /**
144
+ * Webhook with its subscribed event types
145
+ */
146
+ interface Data {
147
+ /**
148
+ * Webhook ID
149
+ */
150
+ id: string;
151
+ /**
152
+ * Creation timestamp
153
+ */
154
+ createdAt: string;
155
+ /**
156
+ * Webhook description
157
+ */
158
+ description: string | null;
159
+ /**
160
+ * Event types this webhook is subscribed to
161
+ */
162
+ events: Array<'CALL_ANALYSIS_COMPLETED' | 'CALL_ANALYSIS_FAILED' | 'CALL_EVALUATION_COMPLETED' | 'CALL_EVALUATION_FAILED' | 'SIMULATION_RUN_PLAN_JOB_STARTED' | 'SIMULATION_RUN_PLAN_JOB_COMPLETED' | 'SIMULATION_RUN_PLAN_JOB_FAILED' | 'SIMULATION_RUN_PLAN_JOB_CANCELLED' | 'SIMULATION_JOB_STARTED' | 'SIMULATION_JOB_COMPLETED' | 'SIMULATION_JOB_FAILED' | 'SIMULATION_JOB_CANCELLED'>;
163
+ /**
164
+ * Request headers
165
+ */
166
+ headers: {
167
+ [key: string]: string;
168
+ };
169
+ /**
170
+ * Last update timestamp
171
+ */
172
+ updatedAt: string;
173
+ /**
174
+ * Webhook URL
175
+ */
176
+ url: string;
177
+ }
178
+ }
179
+ export interface WebhookCreateParams {
180
+ /**
181
+ * Event types to subscribe to (at least one required)
182
+ */
183
+ events: Array<'CALL_ANALYSIS_COMPLETED' | 'CALL_ANALYSIS_FAILED' | 'CALL_EVALUATION_COMPLETED' | 'CALL_EVALUATION_FAILED' | 'SIMULATION_RUN_PLAN_JOB_STARTED' | 'SIMULATION_RUN_PLAN_JOB_COMPLETED' | 'SIMULATION_RUN_PLAN_JOB_FAILED' | 'SIMULATION_RUN_PLAN_JOB_CANCELLED' | 'SIMULATION_JOB_STARTED' | 'SIMULATION_JOB_COMPLETED' | 'SIMULATION_JOB_FAILED' | 'SIMULATION_JOB_CANCELLED'>;
184
+ /**
185
+ * Webhook URL
186
+ */
187
+ url: string;
188
+ /**
189
+ * Webhook description
190
+ */
191
+ description?: string | null;
192
+ /**
193
+ * Request headers (e.g. authorization tokens)
194
+ */
195
+ headers?: {
196
+ [key: string]: string;
197
+ };
198
+ }
199
+ export interface WebhookListParams {
200
+ /**
201
+ * Cursor for pagination - webhook ID to start after
202
+ */
203
+ after?: string;
204
+ /**
205
+ * Maximum number of webhooks to return (default: 20, max: 50)
206
+ */
207
+ limit?: number;
208
+ }
209
+ export declare namespace Webhook {
210
+ export { type WebhookCreateResponse as WebhookCreateResponse, type WebhookListResponse as WebhookListResponse, type WebhookDeleteResponse as WebhookDeleteResponse, type WebhookGetByIDResponse as WebhookGetByIDResponse, type WebhookCreateParams as WebhookCreateParams, type WebhookListParams as WebhookListParams, };
211
+ }
212
+ //# sourceMappingURL=webhook.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"webhook.d.ts","sourceRoot":"","sources":["../src/resources/webhook.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;;OAGG;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AC/C,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;CACH"}
@@ -0,0 +1,35 @@
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.Webhook = void 0;
5
+ const resource_1 = require("../core/resource.js");
6
+ const path_1 = require("../internal/utils/path.js");
7
+ class Webhook extends resource_1.APIResource {
8
+ /**
9
+ * Creates a new webhook with event subscriptions. The signing secret is only
10
+ * returned in this response.
11
+ */
12
+ create(body, options) {
13
+ return this._client.post('/v1/webhook', { body, ...options });
14
+ }
15
+ /**
16
+ * Returns a paginated list of webhooks with their event subscriptions.
17
+ */
18
+ list(query = {}, options) {
19
+ return this._client.get('/v1/webhook', { query, ...options });
20
+ }
21
+ /**
22
+ * Deletes a webhook and all its event subscriptions.
23
+ */
24
+ delete(webhookID, options) {
25
+ return this._client.delete((0, path_1.path) `/v1/webhook/${webhookID}`, options);
26
+ }
27
+ /**
28
+ * Returns a specific webhook with its event subscriptions.
29
+ */
30
+ getByID(webhookID, options) {
31
+ return this._client.get((0, path_1.path) `/v1/webhook/${webhookID}`, options);
32
+ }
33
+ }
34
+ exports.Webhook = Webhook;
35
+ //# sourceMappingURL=webhook.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"webhook.js","sourceRoot":"","sources":["../src/resources/webhook.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAG/C,oDAA8C;AAE9C,MAAa,OAAQ,SAAQ,sBAAW;IACtC;;;OAGG;IACH,MAAM,CAAC,IAAyB,EAAE,OAAwB;QACxD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,aAAa,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChE,CAAC;IAED;;OAEG;IACH,IAAI,CACF,QAA8C,EAAE,EAChD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,aAAa,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChE,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,SAAiB,EAAE,OAAwB;QAChD,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,eAAe,SAAS,EAAE,EAAE,OAAO,CAAC,CAAC;IACtE,CAAC;IAED;;OAEG;IACH,OAAO,CAAC,SAAiB,EAAE,OAAwB;QACjD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,eAAe,SAAS,EAAE,EAAE,OAAO,CAAC,CAAC;IACnE,CAAC;CACF;AAhCD,0BAgCC"}
@@ -0,0 +1,31 @@
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 Webhook extends APIResource {
5
+ /**
6
+ * Creates a new webhook with event subscriptions. The signing secret is only
7
+ * returned in this response.
8
+ */
9
+ create(body, options) {
10
+ return this._client.post('/v1/webhook', { body, ...options });
11
+ }
12
+ /**
13
+ * Returns a paginated list of webhooks with their event subscriptions.
14
+ */
15
+ list(query = {}, options) {
16
+ return this._client.get('/v1/webhook', { query, ...options });
17
+ }
18
+ /**
19
+ * Deletes a webhook and all its event subscriptions.
20
+ */
21
+ delete(webhookID, options) {
22
+ return this._client.delete(path `/v1/webhook/${webhookID}`, options);
23
+ }
24
+ /**
25
+ * Returns a specific webhook with its event subscriptions.
26
+ */
27
+ getByID(webhookID, options) {
28
+ return this._client.get(path `/v1/webhook/${webhookID}`, options);
29
+ }
30
+ }
31
+ //# sourceMappingURL=webhook.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"webhook.mjs","sourceRoot":"","sources":["../src/resources/webhook.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,OAAQ,SAAQ,WAAW;IACtC;;;OAGG;IACH,MAAM,CAAC,IAAyB,EAAE,OAAwB;QACxD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,aAAa,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChE,CAAC;IAED;;OAEG;IACH,IAAI,CACF,QAA8C,EAAE,EAChD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,aAAa,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChE,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,SAAiB,EAAE,OAAwB;QAChD,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,eAAe,SAAS,EAAE,EAAE,OAAO,CAAC,CAAC;IACtE,CAAC;IAED;;OAEG;IACH,OAAO,CAAC,SAAiB,EAAE,OAAwB;QACjD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,eAAe,SAAS,EAAE,EAAE,OAAO,CAAC,CAAC;IACnE,CAAC;CACF"}
package/src/client.ts CHANGED
@@ -17,11 +17,33 @@ import * as Errors from './core/error';
17
17
  import * as Uploads from './core/uploads';
18
18
  import * as API from './resources/index';
19
19
  import { APIPromise } from './core/api-promise';
20
+ import {
21
+ Agent,
22
+ AgentCreateParams,
23
+ AgentCreateResponse,
24
+ AgentGetByIDResponse,
25
+ AgentListParams,
26
+ AgentListResponse,
27
+ AgentUpdateParams,
28
+ AgentUpdateResponse,
29
+ } from './resources/agent';
30
+ import {
31
+ AgentEndpoint,
32
+ AgentEndpointCreateParams,
33
+ AgentEndpointCreateResponse,
34
+ AgentEndpointGetByIDResponse,
35
+ AgentEndpointListParams,
36
+ AgentEndpointListResponse,
37
+ AgentEndpointUpdateParams,
38
+ AgentEndpointUpdateResponse,
39
+ } from './resources/agent-endpoint';
20
40
  import {
21
41
  Call,
22
42
  CallCreateParams,
23
43
  CallCreateResponse,
24
44
  CallGetByIDResponse,
45
+ CallGetTranscriptParams,
46
+ CallGetTranscriptResponse,
25
47
  CallListEvaluationRunsResponse,
26
48
  CallListMetricsParams,
27
49
  CallListMetricsResponse,
@@ -31,6 +53,8 @@ import {
31
53
  } from './resources/call';
32
54
  import {
33
55
  Evaluation,
56
+ EvaluationCreateEvaluatorParams,
57
+ EvaluationCreateEvaluatorResponse,
34
58
  EvaluationCreateJobParams,
35
59
  EvaluationCreateJobResponse,
36
60
  EvaluationGetEvaluatorByIDResponse,
@@ -39,8 +63,20 @@ import {
39
63
  EvaluationListEvaluatorsResponse,
40
64
  EvaluationListJobRunsParams,
41
65
  EvaluationListJobRunsResponse,
66
+ EvaluationUpdateEvaluatorParams,
67
+ EvaluationUpdateEvaluatorResponse,
42
68
  } from './resources/evaluation';
43
69
  import { Health, HealthGetResponse } from './resources/health';
70
+ import {
71
+ HTTPRequestDefinition,
72
+ HTTPRequestDefinitionCreateParams,
73
+ HTTPRequestDefinitionCreateResponse,
74
+ HTTPRequestDefinitionGetByIDResponse,
75
+ HTTPRequestDefinitionListParams,
76
+ HTTPRequestDefinitionListResponse,
77
+ HTTPRequestDefinitionUpdateParams,
78
+ HTTPRequestDefinitionUpdateResponse,
79
+ } from './resources/http-request-definition';
44
80
  import {
45
81
  IntegrationCreateRetellCallParams,
46
82
  IntegrationCreateRetellCallResponse,
@@ -50,27 +86,59 @@ import {
50
86
  } from './resources/integrations';
51
87
  import { Metric, MetricListDefinitionsResponse } from './resources/metric';
52
88
  import {
53
- Persona,
54
- PersonaCreateParams,
55
- PersonaCreateResponse,
56
- PersonaGetByIDResponse,
57
- PersonaListParams,
58
- PersonaListResponse,
59
- PersonaUpdateParams,
60
- PersonaUpdateResponse,
61
- } from './resources/persona';
89
+ SimulationJob,
90
+ SimulationJobGetByIDResponse,
91
+ SimulationJobLookupParams,
92
+ SimulationJobLookupResponse,
93
+ } from './resources/simulation-job';
94
+ import {
95
+ SimulationPersona,
96
+ SimulationPersonaCreateParams,
97
+ SimulationPersonaCreateResponse,
98
+ SimulationPersonaGetByIDResponse,
99
+ SimulationPersonaListParams,
100
+ SimulationPersonaListResponse,
101
+ SimulationPersonaUpdateParams,
102
+ SimulationPersonaUpdateResponse,
103
+ } from './resources/simulation-persona';
62
104
  import {
63
- Simulation,
64
- SimulationGetRunPlanJobResponse,
65
- SimulationGetSimulationJobByIDResponse,
66
- SimulationListRunPlanJobsParams,
67
- SimulationListRunPlanJobsResponse,
68
- SimulationListScenariosParams,
69
- SimulationListScenariosResponse,
70
- SimulationLookupSimulationJobParams,
71
- SimulationLookupSimulationJobResponse,
72
- SimulationStartRunPlanJobResponse,
73
- } from './resources/simulation';
105
+ SimulationRunPlan,
106
+ SimulationRunPlanCreateParams,
107
+ SimulationRunPlanCreateResponse,
108
+ SimulationRunPlanDeleteResponse,
109
+ SimulationRunPlanGetByIDResponse,
110
+ SimulationRunPlanListParams,
111
+ SimulationRunPlanListResponse,
112
+ SimulationRunPlanUpdateParams,
113
+ SimulationRunPlanUpdateResponse,
114
+ } from './resources/simulation-run-plan';
115
+ import {
116
+ SimulationRunPlanJob,
117
+ SimulationRunPlanJobGetByIDResponse,
118
+ SimulationRunPlanJobListParams,
119
+ SimulationRunPlanJobListResponse,
120
+ SimulationRunPlanJobStartResponse,
121
+ } from './resources/simulation-run-plan-job';
122
+ import {
123
+ SimulationScenario,
124
+ SimulationScenarioCreateParams,
125
+ SimulationScenarioCreateResponse,
126
+ SimulationScenarioDeleteResponse,
127
+ SimulationScenarioGetByIDResponse,
128
+ SimulationScenarioListParams,
129
+ SimulationScenarioListResponse,
130
+ SimulationScenarioUpdateParams,
131
+ SimulationScenarioUpdateResponse,
132
+ } from './resources/simulation-scenario';
133
+ import {
134
+ Webhook,
135
+ WebhookCreateParams,
136
+ WebhookCreateResponse,
137
+ WebhookDeleteResponse,
138
+ WebhookGetByIDResponse,
139
+ WebhookListParams,
140
+ WebhookListResponse,
141
+ } from './resources/webhook';
74
142
  import { type Fetch } from './internal/builtin-types';
75
143
  import { HeadersLike, NullableHeaders, buildHeaders } from './internal/headers';
76
144
  import { FinalRequestOptions, RequestOptions } from './internal/request-options';
@@ -486,7 +554,7 @@ export class Roark {
486
554
  loggerFor(this).info(`${responseInfo} - ${retryMessage}`);
487
555
 
488
556
  const errText = await response.text().catch((err: any) => castToError(err).message);
489
- const errJSON = safeJSON(errText);
557
+ const errJSON = safeJSON(errText) as any;
490
558
  const errMessage = errJSON ? undefined : errText;
491
559
 
492
560
  loggerFor(this).debug(
@@ -735,6 +803,14 @@ export class Roark {
735
803
  (Symbol.iterator in body && 'next' in body && typeof body.next === 'function'))
736
804
  ) {
737
805
  return { bodyHeaders: undefined, body: Shims.ReadableStreamFrom(body as AsyncIterable<Uint8Array>) };
806
+ } else if (
807
+ typeof body === 'object' &&
808
+ headers.values.get('content-type') === 'application/x-www-form-urlencoded'
809
+ ) {
810
+ return {
811
+ bodyHeaders: { 'content-type': 'application/x-www-form-urlencoded' },
812
+ body: this.stringifyQuery(body as Record<string, unknown>),
813
+ };
738
814
  } else {
739
815
  return this.#encoder({ body, headers });
740
816
  }
@@ -764,8 +840,15 @@ export class Roark {
764
840
  call: API.Call = new API.Call(this);
765
841
  metric: API.Metric = new API.Metric(this);
766
842
  integrations: API.Integrations = new API.Integrations(this);
767
- simulation: API.Simulation = new API.Simulation(this);
768
- persona: API.Persona = new API.Persona(this);
843
+ simulationJob: API.SimulationJob = new API.SimulationJob(this);
844
+ simulationRunPlan: API.SimulationRunPlan = new API.SimulationRunPlan(this);
845
+ simulationRunPlanJob: API.SimulationRunPlanJob = new API.SimulationRunPlanJob(this);
846
+ simulationScenario: API.SimulationScenario = new API.SimulationScenario(this);
847
+ simulationPersona: API.SimulationPersona = new API.SimulationPersona(this);
848
+ agent: API.Agent = new API.Agent(this);
849
+ agentEndpoint: API.AgentEndpoint = new API.AgentEndpoint(this);
850
+ httpRequestDefinition: API.HTTPRequestDefinition = new API.HTTPRequestDefinition(this);
851
+ webhook: API.Webhook = new API.Webhook(this);
769
852
  }
770
853
 
771
854
  Roark.Health = Health;
@@ -773,8 +856,15 @@ Roark.Evaluation = Evaluation;
773
856
  Roark.Call = Call;
774
857
  Roark.Metric = Metric;
775
858
  Roark.Integrations = Integrations;
776
- Roark.Simulation = Simulation;
777
- Roark.Persona = Persona;
859
+ Roark.SimulationJob = SimulationJob;
860
+ Roark.SimulationRunPlan = SimulationRunPlan;
861
+ Roark.SimulationRunPlanJob = SimulationRunPlanJob;
862
+ Roark.SimulationScenario = SimulationScenario;
863
+ Roark.SimulationPersona = SimulationPersona;
864
+ Roark.Agent = Agent;
865
+ Roark.AgentEndpoint = AgentEndpoint;
866
+ Roark.HTTPRequestDefinition = HTTPRequestDefinition;
867
+ Roark.Webhook = Webhook;
778
868
 
779
869
  export declare namespace Roark {
780
870
  export type RequestOptions = Opts.RequestOptions;
@@ -783,14 +873,18 @@ export declare namespace Roark {
783
873
 
784
874
  export {
785
875
  Evaluation as Evaluation,
876
+ type EvaluationCreateEvaluatorResponse as EvaluationCreateEvaluatorResponse,
786
877
  type EvaluationCreateJobResponse as EvaluationCreateJobResponse,
787
878
  type EvaluationGetEvaluatorByIDResponse as EvaluationGetEvaluatorByIDResponse,
788
879
  type EvaluationGetJobResponse as EvaluationGetJobResponse,
789
880
  type EvaluationListEvaluatorsResponse as EvaluationListEvaluatorsResponse,
790
881
  type EvaluationListJobRunsResponse as EvaluationListJobRunsResponse,
882
+ type EvaluationUpdateEvaluatorResponse as EvaluationUpdateEvaluatorResponse,
883
+ type EvaluationCreateEvaluatorParams as EvaluationCreateEvaluatorParams,
791
884
  type EvaluationCreateJobParams as EvaluationCreateJobParams,
792
885
  type EvaluationListEvaluatorsParams as EvaluationListEvaluatorsParams,
793
886
  type EvaluationListJobRunsParams as EvaluationListJobRunsParams,
887
+ type EvaluationUpdateEvaluatorParams as EvaluationUpdateEvaluatorParams,
794
888
  };
795
889
 
796
890
  export {
@@ -798,11 +892,13 @@ export declare namespace Roark {
798
892
  type CallCreateResponse as CallCreateResponse,
799
893
  type CallListResponse as CallListResponse,
800
894
  type CallGetByIDResponse as CallGetByIDResponse,
895
+ type CallGetTranscriptResponse as CallGetTranscriptResponse,
801
896
  type CallListEvaluationRunsResponse as CallListEvaluationRunsResponse,
802
897
  type CallListMetricsResponse as CallListMetricsResponse,
803
898
  type CallListSentimentRunsResponse as CallListSentimentRunsResponse,
804
899
  type CallCreateParams as CallCreateParams,
805
900
  type CallListParams as CallListParams,
901
+ type CallGetTranscriptParams as CallGetTranscriptParams,
806
902
  type CallListMetricsParams as CallListMetricsParams,
807
903
  };
808
904
 
@@ -817,26 +913,95 @@ export declare namespace Roark {
817
913
  };
818
914
 
819
915
  export {
820
- Simulation as Simulation,
821
- type SimulationGetRunPlanJobResponse as SimulationGetRunPlanJobResponse,
822
- type SimulationGetSimulationJobByIDResponse as SimulationGetSimulationJobByIDResponse,
823
- type SimulationListRunPlanJobsResponse as SimulationListRunPlanJobsResponse,
824
- type SimulationListScenariosResponse as SimulationListScenariosResponse,
825
- type SimulationLookupSimulationJobResponse as SimulationLookupSimulationJobResponse,
826
- type SimulationStartRunPlanJobResponse as SimulationStartRunPlanJobResponse,
827
- type SimulationListRunPlanJobsParams as SimulationListRunPlanJobsParams,
828
- type SimulationListScenariosParams as SimulationListScenariosParams,
829
- type SimulationLookupSimulationJobParams as SimulationLookupSimulationJobParams,
916
+ SimulationJob as SimulationJob,
917
+ type SimulationJobGetByIDResponse as SimulationJobGetByIDResponse,
918
+ type SimulationJobLookupResponse as SimulationJobLookupResponse,
919
+ type SimulationJobLookupParams as SimulationJobLookupParams,
920
+ };
921
+
922
+ export {
923
+ SimulationRunPlan as SimulationRunPlan,
924
+ type SimulationRunPlanCreateResponse as SimulationRunPlanCreateResponse,
925
+ type SimulationRunPlanUpdateResponse as SimulationRunPlanUpdateResponse,
926
+ type SimulationRunPlanListResponse as SimulationRunPlanListResponse,
927
+ type SimulationRunPlanDeleteResponse as SimulationRunPlanDeleteResponse,
928
+ type SimulationRunPlanGetByIDResponse as SimulationRunPlanGetByIDResponse,
929
+ type SimulationRunPlanCreateParams as SimulationRunPlanCreateParams,
930
+ type SimulationRunPlanUpdateParams as SimulationRunPlanUpdateParams,
931
+ type SimulationRunPlanListParams as SimulationRunPlanListParams,
932
+ };
933
+
934
+ export {
935
+ SimulationRunPlanJob as SimulationRunPlanJob,
936
+ type SimulationRunPlanJobListResponse as SimulationRunPlanJobListResponse,
937
+ type SimulationRunPlanJobGetByIDResponse as SimulationRunPlanJobGetByIDResponse,
938
+ type SimulationRunPlanJobStartResponse as SimulationRunPlanJobStartResponse,
939
+ type SimulationRunPlanJobListParams as SimulationRunPlanJobListParams,
940
+ };
941
+
942
+ export {
943
+ SimulationScenario as SimulationScenario,
944
+ type SimulationScenarioCreateResponse as SimulationScenarioCreateResponse,
945
+ type SimulationScenarioUpdateResponse as SimulationScenarioUpdateResponse,
946
+ type SimulationScenarioListResponse as SimulationScenarioListResponse,
947
+ type SimulationScenarioDeleteResponse as SimulationScenarioDeleteResponse,
948
+ type SimulationScenarioGetByIDResponse as SimulationScenarioGetByIDResponse,
949
+ type SimulationScenarioCreateParams as SimulationScenarioCreateParams,
950
+ type SimulationScenarioUpdateParams as SimulationScenarioUpdateParams,
951
+ type SimulationScenarioListParams as SimulationScenarioListParams,
952
+ };
953
+
954
+ export {
955
+ SimulationPersona as SimulationPersona,
956
+ type SimulationPersonaCreateResponse as SimulationPersonaCreateResponse,
957
+ type SimulationPersonaUpdateResponse as SimulationPersonaUpdateResponse,
958
+ type SimulationPersonaListResponse as SimulationPersonaListResponse,
959
+ type SimulationPersonaGetByIDResponse as SimulationPersonaGetByIDResponse,
960
+ type SimulationPersonaCreateParams as SimulationPersonaCreateParams,
961
+ type SimulationPersonaUpdateParams as SimulationPersonaUpdateParams,
962
+ type SimulationPersonaListParams as SimulationPersonaListParams,
963
+ };
964
+
965
+ export {
966
+ Agent as Agent,
967
+ type AgentCreateResponse as AgentCreateResponse,
968
+ type AgentUpdateResponse as AgentUpdateResponse,
969
+ type AgentListResponse as AgentListResponse,
970
+ type AgentGetByIDResponse as AgentGetByIDResponse,
971
+ type AgentCreateParams as AgentCreateParams,
972
+ type AgentUpdateParams as AgentUpdateParams,
973
+ type AgentListParams as AgentListParams,
974
+ };
975
+
976
+ export {
977
+ AgentEndpoint as AgentEndpoint,
978
+ type AgentEndpointCreateResponse as AgentEndpointCreateResponse,
979
+ type AgentEndpointUpdateResponse as AgentEndpointUpdateResponse,
980
+ type AgentEndpointListResponse as AgentEndpointListResponse,
981
+ type AgentEndpointGetByIDResponse as AgentEndpointGetByIDResponse,
982
+ type AgentEndpointCreateParams as AgentEndpointCreateParams,
983
+ type AgentEndpointUpdateParams as AgentEndpointUpdateParams,
984
+ type AgentEndpointListParams as AgentEndpointListParams,
985
+ };
986
+
987
+ export {
988
+ HTTPRequestDefinition as HTTPRequestDefinition,
989
+ type HTTPRequestDefinitionCreateResponse as HTTPRequestDefinitionCreateResponse,
990
+ type HTTPRequestDefinitionUpdateResponse as HTTPRequestDefinitionUpdateResponse,
991
+ type HTTPRequestDefinitionListResponse as HTTPRequestDefinitionListResponse,
992
+ type HTTPRequestDefinitionGetByIDResponse as HTTPRequestDefinitionGetByIDResponse,
993
+ type HTTPRequestDefinitionCreateParams as HTTPRequestDefinitionCreateParams,
994
+ type HTTPRequestDefinitionUpdateParams as HTTPRequestDefinitionUpdateParams,
995
+ type HTTPRequestDefinitionListParams as HTTPRequestDefinitionListParams,
830
996
  };
831
997
 
832
998
  export {
833
- Persona as Persona,
834
- type PersonaCreateResponse as PersonaCreateResponse,
835
- type PersonaUpdateResponse as PersonaUpdateResponse,
836
- type PersonaListResponse as PersonaListResponse,
837
- type PersonaGetByIDResponse as PersonaGetByIDResponse,
838
- type PersonaCreateParams as PersonaCreateParams,
839
- type PersonaUpdateParams as PersonaUpdateParams,
840
- type PersonaListParams as PersonaListParams,
999
+ Webhook as Webhook,
1000
+ type WebhookCreateResponse as WebhookCreateResponse,
1001
+ type WebhookListResponse as WebhookListResponse,
1002
+ type WebhookDeleteResponse as WebhookDeleteResponse,
1003
+ type WebhookGetByIDResponse as WebhookGetByIDResponse,
1004
+ type WebhookCreateParams as WebhookCreateParams,
1005
+ type WebhookListParams as WebhookListParams,
841
1006
  };
842
1007
  }