@roarkanalytics/sdk 2.21.2 → 2.23.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (138) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/README.md +9 -0
  3. package/client.d.mts +31 -10
  4. package/client.d.mts.map +1 -1
  5. package/client.d.ts +31 -10
  6. package/client.d.ts.map +1 -1
  7. package/client.js +34 -6
  8. package/client.js.map +1 -1
  9. package/client.mjs +34 -6
  10. package/client.mjs.map +1 -1
  11. package/package.json +1 -1
  12. package/resources/agent-endpoint.d.mts +309 -0
  13. package/resources/agent-endpoint.d.mts.map +1 -0
  14. package/resources/agent-endpoint.d.ts +309 -0
  15. package/resources/agent-endpoint.d.ts.map +1 -0
  16. package/resources/agent-endpoint.js +35 -0
  17. package/resources/agent-endpoint.js.map +1 -0
  18. package/resources/agent-endpoint.mjs +31 -0
  19. package/resources/agent-endpoint.mjs.map +1 -0
  20. package/resources/agent.d.mts +193 -0
  21. package/resources/agent.d.mts.map +1 -0
  22. package/resources/agent.d.ts +193 -0
  23. package/resources/agent.d.ts.map +1 -0
  24. package/resources/agent.js +34 -0
  25. package/resources/agent.js.map +1 -0
  26. package/resources/agent.mjs +30 -0
  27. package/resources/agent.mjs.map +1 -0
  28. package/resources/call.d.mts +120 -1
  29. package/resources/call.d.mts.map +1 -1
  30. package/resources/call.d.ts +120 -1
  31. package/resources/call.d.ts.map +1 -1
  32. package/resources/call.js +7 -0
  33. package/resources/call.js.map +1 -1
  34. package/resources/call.mjs +7 -0
  35. package/resources/call.mjs.map +1 -1
  36. package/resources/evaluation.d.mts +2097 -617
  37. package/resources/evaluation.d.mts.map +1 -1
  38. package/resources/evaluation.d.ts +2097 -617
  39. package/resources/evaluation.d.ts.map +1 -1
  40. package/resources/evaluation.js +14 -0
  41. package/resources/evaluation.js.map +1 -1
  42. package/resources/evaluation.mjs +14 -0
  43. package/resources/evaluation.mjs.map +1 -1
  44. package/resources/http-request-definition.d.mts +339 -0
  45. package/resources/http-request-definition.d.mts.map +1 -0
  46. package/resources/http-request-definition.d.ts +339 -0
  47. package/resources/http-request-definition.d.ts.map +1 -0
  48. package/resources/http-request-definition.js +36 -0
  49. package/resources/http-request-definition.js.map +1 -0
  50. package/resources/http-request-definition.mjs +32 -0
  51. package/resources/http-request-definition.mjs.map +1 -0
  52. package/resources/index.d.mts +11 -4
  53. package/resources/index.d.mts.map +1 -1
  54. package/resources/index.d.ts +11 -4
  55. package/resources/index.d.ts.map +1 -1
  56. package/resources/index.js +19 -5
  57. package/resources/index.js.map +1 -1
  58. package/resources/index.mjs +9 -2
  59. package/resources/index.mjs.map +1 -1
  60. package/resources/simulation-job.d.mts +393 -0
  61. package/resources/simulation-job.d.mts.map +1 -0
  62. package/resources/simulation-job.d.ts +393 -0
  63. package/resources/simulation-job.d.ts.map +1 -0
  64. package/resources/simulation-job.js +38 -0
  65. package/resources/simulation-job.js.map +1 -0
  66. package/resources/simulation-job.mjs +34 -0
  67. package/resources/simulation-job.mjs.map +1 -0
  68. package/resources/{persona.d.mts → simulation-persona.d.mts} +62 -33
  69. package/resources/simulation-persona.d.mts.map +1 -0
  70. package/resources/{persona.d.ts → simulation-persona.d.ts} +62 -33
  71. package/resources/simulation-persona.d.ts.map +1 -0
  72. package/resources/{persona.js → simulation-persona.js} +18 -13
  73. package/resources/simulation-persona.js.map +1 -0
  74. package/resources/{persona.mjs → simulation-persona.mjs} +16 -11
  75. package/resources/simulation-persona.mjs.map +1 -0
  76. package/resources/simulation-run-plan-job.d.mts +359 -0
  77. package/resources/simulation-run-plan-job.d.mts.map +1 -0
  78. package/resources/simulation-run-plan-job.d.ts +359 -0
  79. package/resources/simulation-run-plan-job.d.ts.map +1 -0
  80. package/resources/simulation-run-plan-job.js +50 -0
  81. package/resources/simulation-run-plan-job.js.map +1 -0
  82. package/resources/simulation-run-plan-job.mjs +46 -0
  83. package/resources/simulation-run-plan-job.mjs.map +1 -0
  84. package/resources/simulation-run-plan.d.mts +660 -0
  85. package/resources/simulation-run-plan.d.mts.map +1 -0
  86. package/resources/simulation-run-plan.d.ts +660 -0
  87. package/resources/simulation-run-plan.d.ts.map +1 -0
  88. package/resources/simulation-run-plan.js +93 -0
  89. package/resources/simulation-run-plan.js.map +1 -0
  90. package/resources/simulation-run-plan.mjs +89 -0
  91. package/resources/simulation-run-plan.mjs.map +1 -0
  92. package/resources/simulation-scenario.d.mts +335 -0
  93. package/resources/simulation-scenario.d.mts.map +1 -0
  94. package/resources/simulation-scenario.d.ts +335 -0
  95. package/resources/simulation-scenario.d.ts.map +1 -0
  96. package/resources/simulation-scenario.js +40 -0
  97. package/resources/simulation-scenario.js.map +1 -0
  98. package/resources/simulation-scenario.mjs +36 -0
  99. package/resources/simulation-scenario.mjs.map +1 -0
  100. package/resources/webhook.d.mts +212 -0
  101. package/resources/webhook.d.mts.map +1 -0
  102. package/resources/webhook.d.ts +212 -0
  103. package/resources/webhook.d.ts.map +1 -0
  104. package/resources/webhook.js +35 -0
  105. package/resources/webhook.js.map +1 -0
  106. package/resources/webhook.mjs +31 -0
  107. package/resources/webhook.mjs.map +1 -0
  108. package/src/client.ts +208 -43
  109. package/src/resources/agent-endpoint.ts +400 -0
  110. package/src/resources/agent.ts +263 -0
  111. package/src/resources/call.ts +149 -0
  112. package/src/resources/evaluation.ts +3044 -1154
  113. package/src/resources/http-request-definition.ts +410 -0
  114. package/src/resources/index.ts +89 -21
  115. package/src/resources/simulation-job.ts +527 -0
  116. package/src/resources/{persona.ts → simulation-persona.ts} +78 -40
  117. package/src/resources/simulation-run-plan-job.ts +521 -0
  118. package/src/resources/simulation-run-plan.ts +840 -0
  119. package/src/resources/simulation-scenario.ts +463 -0
  120. package/src/resources/webhook.ts +318 -0
  121. package/src/version.ts +1 -1
  122. package/version.d.mts +1 -1
  123. package/version.d.ts +1 -1
  124. package/version.js +1 -1
  125. package/version.mjs +1 -1
  126. package/resources/persona.d.mts.map +0 -1
  127. package/resources/persona.d.ts.map +0 -1
  128. package/resources/persona.js.map +0 -1
  129. package/resources/persona.mjs.map +0 -1
  130. package/resources/simulation.d.mts +0 -802
  131. package/resources/simulation.d.mts.map +0 -1
  132. package/resources/simulation.d.ts +0 -802
  133. package/resources/simulation.d.ts.map +0 -1
  134. package/resources/simulation.js +0 -90
  135. package/resources/simulation.js.map +0 -1
  136. package/resources/simulation.mjs +0 -86
  137. package/resources/simulation.mjs.map +0 -1
  138. package/src/resources/simulation.ts +0 -1069
@@ -0,0 +1,309 @@
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 AgentEndpoint extends APIResource {
5
+ /**
6
+ * Creates a new agent endpoint for the authenticated project.
7
+ */
8
+ create(body: AgentEndpointCreateParams, options?: RequestOptions): APIPromise<AgentEndpointCreateResponse>;
9
+ /**
10
+ * Updates an existing agent endpoint by its ID. Only environment and
11
+ * outboundDialType can be modified.
12
+ */
13
+ update(endpointID: string, body?: AgentEndpointUpdateParams | null | undefined, options?: RequestOptions): APIPromise<AgentEndpointUpdateResponse>;
14
+ /**
15
+ * Returns a paginated list of agent endpoints for the authenticated project.
16
+ */
17
+ list(query?: AgentEndpointListParams | null | undefined, options?: RequestOptions): APIPromise<AgentEndpointListResponse>;
18
+ /**
19
+ * Returns a specific agent endpoint by its ID.
20
+ */
21
+ getByID(endpointID: string, options?: RequestOptions): APIPromise<AgentEndpointGetByIDResponse>;
22
+ }
23
+ export interface AgentEndpointCreateResponse {
24
+ /**
25
+ * Detailed agent endpoint response
26
+ */
27
+ data: AgentEndpointCreateResponse.Data;
28
+ }
29
+ export declare namespace AgentEndpointCreateResponse {
30
+ /**
31
+ * Detailed agent endpoint response
32
+ */
33
+ interface Data {
34
+ /**
35
+ * Agent endpoint ID
36
+ */
37
+ id: string;
38
+ /**
39
+ * Agent ID this endpoint belongs to
40
+ */
41
+ agentId: string;
42
+ /**
43
+ * Creation timestamp
44
+ */
45
+ createdAt: string;
46
+ /**
47
+ * Agent endpoint direction (INCOMING, OUTGOING, INCOMING_AND_OUTGOING)
48
+ */
49
+ direction: 'INCOMING' | 'OUTGOING' | 'INCOMING_AND_OUTGOING';
50
+ /**
51
+ * Agent endpoint environment
52
+ */
53
+ environment: string;
54
+ /**
55
+ * ID of the linked HTTP request definition for outbound dialing
56
+ */
57
+ outboundDialHttpRequestDefinitionId: string | null;
58
+ /**
59
+ * Outbound dial type (NONE or HTTP_REQUEST)
60
+ */
61
+ outboundDialType: 'NONE' | 'HTTP_REQUEST';
62
+ /**
63
+ * Agent endpoint type (PHONE or WEBSOCKET)
64
+ */
65
+ type: 'PHONE' | 'WEBSOCKET';
66
+ /**
67
+ * Last update timestamp
68
+ */
69
+ updatedAt: string;
70
+ /**
71
+ * Agent endpoint value (phone number or websocket URL)
72
+ */
73
+ value: string;
74
+ }
75
+ }
76
+ export interface AgentEndpointUpdateResponse {
77
+ /**
78
+ * Detailed agent endpoint response
79
+ */
80
+ data: AgentEndpointUpdateResponse.Data;
81
+ }
82
+ export declare namespace AgentEndpointUpdateResponse {
83
+ /**
84
+ * Detailed agent endpoint response
85
+ */
86
+ interface Data {
87
+ /**
88
+ * Agent endpoint ID
89
+ */
90
+ id: string;
91
+ /**
92
+ * Agent ID this endpoint belongs to
93
+ */
94
+ agentId: string;
95
+ /**
96
+ * Creation timestamp
97
+ */
98
+ createdAt: string;
99
+ /**
100
+ * Agent endpoint direction (INCOMING, OUTGOING, INCOMING_AND_OUTGOING)
101
+ */
102
+ direction: 'INCOMING' | 'OUTGOING' | 'INCOMING_AND_OUTGOING';
103
+ /**
104
+ * Agent endpoint environment
105
+ */
106
+ environment: string;
107
+ /**
108
+ * ID of the linked HTTP request definition for outbound dialing
109
+ */
110
+ outboundDialHttpRequestDefinitionId: string | null;
111
+ /**
112
+ * Outbound dial type (NONE or HTTP_REQUEST)
113
+ */
114
+ outboundDialType: 'NONE' | 'HTTP_REQUEST';
115
+ /**
116
+ * Agent endpoint type (PHONE or WEBSOCKET)
117
+ */
118
+ type: 'PHONE' | 'WEBSOCKET';
119
+ /**
120
+ * Last update timestamp
121
+ */
122
+ updatedAt: string;
123
+ /**
124
+ * Agent endpoint value (phone number or websocket URL)
125
+ */
126
+ value: string;
127
+ }
128
+ }
129
+ export interface AgentEndpointListResponse {
130
+ data: Array<AgentEndpointListResponse.Data>;
131
+ pagination: AgentEndpointListResponse.Pagination;
132
+ }
133
+ export declare namespace AgentEndpointListResponse {
134
+ /**
135
+ * Detailed agent endpoint response
136
+ */
137
+ interface Data {
138
+ /**
139
+ * Agent endpoint ID
140
+ */
141
+ id: string;
142
+ /**
143
+ * Agent ID this endpoint belongs to
144
+ */
145
+ agentId: string;
146
+ /**
147
+ * Creation timestamp
148
+ */
149
+ createdAt: string;
150
+ /**
151
+ * Agent endpoint direction (INCOMING, OUTGOING, INCOMING_AND_OUTGOING)
152
+ */
153
+ direction: 'INCOMING' | 'OUTGOING' | 'INCOMING_AND_OUTGOING';
154
+ /**
155
+ * Agent endpoint environment
156
+ */
157
+ environment: string;
158
+ /**
159
+ * ID of the linked HTTP request definition for outbound dialing
160
+ */
161
+ outboundDialHttpRequestDefinitionId: string | null;
162
+ /**
163
+ * Outbound dial type (NONE or HTTP_REQUEST)
164
+ */
165
+ outboundDialType: 'NONE' | 'HTTP_REQUEST';
166
+ /**
167
+ * Agent endpoint type (PHONE or WEBSOCKET)
168
+ */
169
+ type: 'PHONE' | 'WEBSOCKET';
170
+ /**
171
+ * Last update timestamp
172
+ */
173
+ updatedAt: string;
174
+ /**
175
+ * Agent endpoint value (phone number or websocket URL)
176
+ */
177
+ value: string;
178
+ }
179
+ interface Pagination {
180
+ /**
181
+ * Whether there are more items to fetch
182
+ */
183
+ hasMore: boolean;
184
+ /**
185
+ * Cursor for the next page of items
186
+ */
187
+ nextCursor: string | null;
188
+ /**
189
+ * Total number of items
190
+ */
191
+ total: number;
192
+ }
193
+ }
194
+ export interface AgentEndpointGetByIDResponse {
195
+ /**
196
+ * Detailed agent endpoint response
197
+ */
198
+ data: AgentEndpointGetByIDResponse.Data;
199
+ }
200
+ export declare namespace AgentEndpointGetByIDResponse {
201
+ /**
202
+ * Detailed agent endpoint response
203
+ */
204
+ interface Data {
205
+ /**
206
+ * Agent endpoint ID
207
+ */
208
+ id: string;
209
+ /**
210
+ * Agent ID this endpoint belongs to
211
+ */
212
+ agentId: string;
213
+ /**
214
+ * Creation timestamp
215
+ */
216
+ createdAt: string;
217
+ /**
218
+ * Agent endpoint direction (INCOMING, OUTGOING, INCOMING_AND_OUTGOING)
219
+ */
220
+ direction: 'INCOMING' | 'OUTGOING' | 'INCOMING_AND_OUTGOING';
221
+ /**
222
+ * Agent endpoint environment
223
+ */
224
+ environment: string;
225
+ /**
226
+ * ID of the linked HTTP request definition for outbound dialing
227
+ */
228
+ outboundDialHttpRequestDefinitionId: string | null;
229
+ /**
230
+ * Outbound dial type (NONE or HTTP_REQUEST)
231
+ */
232
+ outboundDialType: 'NONE' | 'HTTP_REQUEST';
233
+ /**
234
+ * Agent endpoint type (PHONE or WEBSOCKET)
235
+ */
236
+ type: 'PHONE' | 'WEBSOCKET';
237
+ /**
238
+ * Last update timestamp
239
+ */
240
+ updatedAt: string;
241
+ /**
242
+ * Agent endpoint value (phone number or websocket URL)
243
+ */
244
+ value: string;
245
+ }
246
+ }
247
+ export interface AgentEndpointCreateParams {
248
+ /**
249
+ * Agent ID to associate this endpoint with
250
+ */
251
+ agentId: string;
252
+ /**
253
+ * Call direction: INCOMING, OUTGOING, or INCOMING_AND_OUTGOING
254
+ */
255
+ direction: 'INCOMING' | 'OUTGOING' | 'INCOMING_AND_OUTGOING';
256
+ /**
257
+ * Phone number in E.164 format (e.g., +12345678900)
258
+ */
259
+ value: string;
260
+ /**
261
+ * Environment name (default: production)
262
+ */
263
+ environment?: string;
264
+ /**
265
+ * ID of the HTTP request definition for outbound dialing (required when
266
+ * outboundDialType is HTTP_REQUEST)
267
+ */
268
+ outboundDialHttpRequestDefinitionId?: string | null;
269
+ /**
270
+ * Outbound dial type: NONE or HTTP_REQUEST (default: NONE)
271
+ */
272
+ outboundDialType?: 'NONE' | 'HTTP_REQUEST';
273
+ }
274
+ export interface AgentEndpointUpdateParams {
275
+ /**
276
+ * Environment name
277
+ */
278
+ environment?: string;
279
+ /**
280
+ * ID of the HTTP request definition for outbound dialing
281
+ */
282
+ outboundDialHttpRequestDefinitionId?: string | null;
283
+ /**
284
+ * Outbound dial type: NONE or HTTP_REQUEST
285
+ */
286
+ outboundDialType?: 'NONE' | 'HTTP_REQUEST';
287
+ }
288
+ export interface AgentEndpointListParams {
289
+ /**
290
+ * Cursor for pagination - endpoint ID to start after
291
+ */
292
+ after?: string;
293
+ /**
294
+ * Filter by agent ID
295
+ */
296
+ agentId?: string;
297
+ /**
298
+ * Maximum number of endpoints to return (default: 20, max: 50)
299
+ */
300
+ limit?: number;
301
+ /**
302
+ * Search text to filter endpoints
303
+ */
304
+ searchText?: string;
305
+ }
306
+ export declare namespace AgentEndpoint {
307
+ export { type AgentEndpointCreateResponse as AgentEndpointCreateResponse, type AgentEndpointUpdateResponse as AgentEndpointUpdateResponse, type AgentEndpointListResponse as AgentEndpointListResponse, type AgentEndpointGetByIDResponse as AgentEndpointGetByIDResponse, type AgentEndpointCreateParams as AgentEndpointCreateParams, type AgentEndpointUpdateParams as AgentEndpointUpdateParams, type AgentEndpointListParams as AgentEndpointListParams, };
308
+ }
309
+ //# sourceMappingURL=agent-endpoint.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"agent-endpoint.d.ts","sourceRoot":"","sources":["../src/resources/agent-endpoint.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,aAAc,SAAQ,WAAW;IAC5C;;OAEG;IACH,MAAM,CAAC,IAAI,EAAE,yBAAyB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,2BAA2B,CAAC;I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EG;IACH,mCAAmC,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEpD;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,GAAG,cAAc,CAAC;CAC5C;AAED,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,CAAC,OAAO,WAAW,aAAa,CAAC;IACrC,OAAO,EACL,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,uBAAuB,IAAI,uBAAuB,GACxD,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.AgentEndpoint = void 0;
5
+ const resource_1 = require("../core/resource.js");
6
+ const path_1 = require("../internal/utils/path.js");
7
+ class AgentEndpoint extends resource_1.APIResource {
8
+ /**
9
+ * Creates a new agent endpoint for the authenticated project.
10
+ */
11
+ create(body, options) {
12
+ return this._client.post('/v1/agent/endpoint', { body, ...options });
13
+ }
14
+ /**
15
+ * Updates an existing agent endpoint by its ID. Only environment and
16
+ * outboundDialType can be modified.
17
+ */
18
+ update(endpointID, body = {}, options) {
19
+ return this._client.put((0, path_1.path) `/v1/agent/endpoint/${endpointID}`, { body, ...options });
20
+ }
21
+ /**
22
+ * Returns a paginated list of agent endpoints for the authenticated project.
23
+ */
24
+ list(query = {}, options) {
25
+ return this._client.get('/v1/agent/endpoint', { query, ...options });
26
+ }
27
+ /**
28
+ * Returns a specific agent endpoint by its ID.
29
+ */
30
+ getByID(endpointID, options) {
31
+ return this._client.get((0, path_1.path) `/v1/agent/endpoint/${endpointID}`, options);
32
+ }
33
+ }
34
+ exports.AgentEndpoint = AgentEndpoint;
35
+ //# sourceMappingURL=agent-endpoint.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"agent-endpoint.js","sourceRoot":"","sources":["../src/resources/agent-endpoint.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAG/C,oDAA8C;AAE9C,MAAa,aAAc,SAAQ,sBAAW;IAC5C;;OAEG;IACH,MAAM,CAAC,IAA+B,EAAE,OAAwB;QAC9D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,oBAAoB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvE,CAAC;IAED;;;OAGG;IACH,MAAM,CACJ,UAAkB,EAClB,OAAqD,EAAE,EACvD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,sBAAsB,UAAU,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxF,CAAC;IAED;;OAEG;IACH,IAAI,CACF,QAAoD,EAAE,EACtD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,oBAAoB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvE,CAAC;IAED;;OAEG;IACH,OAAO,CAAC,UAAkB,EAAE,OAAwB;QAClD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,sBAAsB,UAAU,EAAE,EAAE,OAAO,CAAC,CAAC;IAC3E,CAAC;CACF;AApCD,sCAoCC"}
@@ -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 AgentEndpoint extends APIResource {
5
+ /**
6
+ * Creates a new agent endpoint for the authenticated project.
7
+ */
8
+ create(body, options) {
9
+ return this._client.post('/v1/agent/endpoint', { body, ...options });
10
+ }
11
+ /**
12
+ * Updates an existing agent endpoint by its ID. Only environment and
13
+ * outboundDialType can be modified.
14
+ */
15
+ update(endpointID, body = {}, options) {
16
+ return this._client.put(path `/v1/agent/endpoint/${endpointID}`, { body, ...options });
17
+ }
18
+ /**
19
+ * Returns a paginated list of agent endpoints for the authenticated project.
20
+ */
21
+ list(query = {}, options) {
22
+ return this._client.get('/v1/agent/endpoint', { query, ...options });
23
+ }
24
+ /**
25
+ * Returns a specific agent endpoint by its ID.
26
+ */
27
+ getByID(endpointID, options) {
28
+ return this._client.get(path `/v1/agent/endpoint/${endpointID}`, options);
29
+ }
30
+ }
31
+ //# sourceMappingURL=agent-endpoint.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"agent-endpoint.mjs","sourceRoot":"","sources":["../src/resources/agent-endpoint.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,aAAc,SAAQ,WAAW;IAC5C;;OAEG;IACH,MAAM,CAAC,IAA+B,EAAE,OAAwB;QAC9D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,oBAAoB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvE,CAAC;IAED;;;OAGG;IACH,MAAM,CACJ,UAAkB,EAClB,OAAqD,EAAE,EACvD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,sBAAsB,UAAU,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxF,CAAC;IAED;;OAEG;IACH,IAAI,CACF,QAAoD,EAAE,EACtD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,oBAAoB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvE,CAAC;IAED;;OAEG;IACH,OAAO,CAAC,UAAkB,EAAE,OAAwB;QAClD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,sBAAsB,UAAU,EAAE,EAAE,OAAO,CAAC,CAAC;IAC3E,CAAC;CACF"}
@@ -0,0 +1,193 @@
1
+ import { APIResource } from "../core/resource.mjs";
2
+ import { APIPromise } from "../core/api-promise.mjs";
3
+ import { RequestOptions } from "../internal/request-options.mjs";
4
+ export declare class Agent extends APIResource {
5
+ /**
6
+ * Creates a new agent for the authenticated project.
7
+ */
8
+ create(body: AgentCreateParams, options?: RequestOptions): APIPromise<AgentCreateResponse>;
9
+ /**
10
+ * Updates an existing agent by its ID.
11
+ */
12
+ update(agentID: string, body?: AgentUpdateParams | null | undefined, options?: RequestOptions): APIPromise<AgentUpdateResponse>;
13
+ /**
14
+ * Returns a paginated list of agents for the authenticated project.
15
+ */
16
+ list(query?: AgentListParams | null | undefined, options?: RequestOptions): APIPromise<AgentListResponse>;
17
+ /**
18
+ * Returns a specific agent by its ID.
19
+ */
20
+ getByID(agentID: string, options?: RequestOptions): APIPromise<AgentGetByIDResponse>;
21
+ }
22
+ export interface AgentCreateResponse {
23
+ data: AgentCreateResponse.Data;
24
+ }
25
+ export declare namespace AgentCreateResponse {
26
+ interface Data {
27
+ /**
28
+ * Unique identifier of the agent
29
+ */
30
+ id: string;
31
+ /**
32
+ * Creation timestamp in ISO 8601 format
33
+ */
34
+ createdAt: string;
35
+ /**
36
+ * Custom identifier for the agent
37
+ */
38
+ customId: string | null;
39
+ /**
40
+ * Description of the agent
41
+ */
42
+ description: string | null;
43
+ /**
44
+ * Name of the agent
45
+ */
46
+ name: string;
47
+ /**
48
+ * Last update timestamp in ISO 8601 format
49
+ */
50
+ updatedAt: string;
51
+ }
52
+ }
53
+ export interface AgentUpdateResponse {
54
+ data: AgentUpdateResponse.Data;
55
+ }
56
+ export declare namespace AgentUpdateResponse {
57
+ interface Data {
58
+ /**
59
+ * Unique identifier of the agent
60
+ */
61
+ id: string;
62
+ /**
63
+ * Creation timestamp in ISO 8601 format
64
+ */
65
+ createdAt: string;
66
+ /**
67
+ * Custom identifier for the agent
68
+ */
69
+ customId: string | null;
70
+ /**
71
+ * Description of the agent
72
+ */
73
+ description: string | null;
74
+ /**
75
+ * Name of the agent
76
+ */
77
+ name: string;
78
+ /**
79
+ * Last update timestamp in ISO 8601 format
80
+ */
81
+ updatedAt: string;
82
+ }
83
+ }
84
+ export interface AgentListResponse {
85
+ data: Array<AgentListResponse.Data>;
86
+ pagination: AgentListResponse.Pagination;
87
+ }
88
+ export declare namespace AgentListResponse {
89
+ interface Data {
90
+ /**
91
+ * Unique identifier of the agent
92
+ */
93
+ id: string;
94
+ /**
95
+ * Creation timestamp in ISO 8601 format
96
+ */
97
+ createdAt: string;
98
+ /**
99
+ * Custom identifier for the agent
100
+ */
101
+ customId: string | null;
102
+ /**
103
+ * Description of the agent
104
+ */
105
+ description: string | null;
106
+ /**
107
+ * Name of the agent
108
+ */
109
+ name: string;
110
+ /**
111
+ * Last update timestamp in ISO 8601 format
112
+ */
113
+ updatedAt: string;
114
+ }
115
+ interface Pagination {
116
+ /**
117
+ * Whether there are more items to fetch
118
+ */
119
+ hasMore: boolean;
120
+ /**
121
+ * Cursor for the next page of items
122
+ */
123
+ nextCursor: string | null;
124
+ /**
125
+ * Total number of items
126
+ */
127
+ total: number;
128
+ }
129
+ }
130
+ export interface AgentGetByIDResponse {
131
+ data: AgentGetByIDResponse.Data;
132
+ }
133
+ export declare namespace AgentGetByIDResponse {
134
+ interface Data {
135
+ /**
136
+ * Unique identifier of the agent
137
+ */
138
+ id: string;
139
+ /**
140
+ * Creation timestamp in ISO 8601 format
141
+ */
142
+ createdAt: string;
143
+ /**
144
+ * Custom identifier for the agent
145
+ */
146
+ customId: string | null;
147
+ /**
148
+ * Description of the agent
149
+ */
150
+ description: string | null;
151
+ /**
152
+ * Name of the agent
153
+ */
154
+ name: string;
155
+ /**
156
+ * Last update timestamp in ISO 8601 format
157
+ */
158
+ updatedAt: string;
159
+ }
160
+ }
161
+ export interface AgentCreateParams {
162
+ /**
163
+ * Name of the agent
164
+ */
165
+ name: string;
166
+ /**
167
+ * Custom identifier for the agent
168
+ */
169
+ customId?: string | null;
170
+ /**
171
+ * Description of the agent
172
+ */
173
+ description?: string | null;
174
+ }
175
+ export interface AgentUpdateParams {
176
+ /**
177
+ * Description of the agent
178
+ */
179
+ description?: string | null;
180
+ /**
181
+ * Name of the agent
182
+ */
183
+ name?: string;
184
+ }
185
+ export interface AgentListParams {
186
+ after?: string;
187
+ limit?: number;
188
+ searchText?: string;
189
+ }
190
+ export declare namespace Agent {
191
+ export { type AgentCreateResponse as AgentCreateResponse, type AgentUpdateResponse as AgentUpdateResponse, type AgentListResponse as AgentListResponse, type AgentGetByIDResponse as AgentGetByIDResponse, type AgentCreateParams as AgentCreateParams, type AgentUpdateParams as AgentUpdateParams, type AgentListParams as AgentListParams, };
192
+ }
193
+ //# sourceMappingURL=agent.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"agent.d.mts","sourceRoot":"","sources":["../src/resources/agent.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,KAAM,SAAQ,WAAW;IACpC;;OAEG;IACH,MAAM,CAAC,IAAI,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,mBAAmB,CAAC;IAI1F;;OAEG;IACH,MAAM,CACJ,OAAO,EAAE,MAAM,EACf,IAAI,GAAE,iBAAiB,GAAG,IAAI,GAAG,SAAc,EAC/C,OAAO,CAAC,EAAE,cAAc,GACvB,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