@roarkanalytics/sdk 2.22.0 → 2.23.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (137) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/client.d.mts +31 -10
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +31 -10
  5. package/client.d.ts.map +1 -1
  6. package/client.js +34 -6
  7. package/client.js.map +1 -1
  8. package/client.mjs +34 -6
  9. package/client.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/resources/agent-endpoint.d.mts +309 -0
  12. package/resources/agent-endpoint.d.mts.map +1 -0
  13. package/resources/agent-endpoint.d.ts +309 -0
  14. package/resources/agent-endpoint.d.ts.map +1 -0
  15. package/resources/agent-endpoint.js +35 -0
  16. package/resources/agent-endpoint.js.map +1 -0
  17. package/resources/agent-endpoint.mjs +31 -0
  18. package/resources/agent-endpoint.mjs.map +1 -0
  19. package/resources/agent.d.mts +193 -0
  20. package/resources/agent.d.mts.map +1 -0
  21. package/resources/agent.d.ts +193 -0
  22. package/resources/agent.d.ts.map +1 -0
  23. package/resources/agent.js +34 -0
  24. package/resources/agent.js.map +1 -0
  25. package/resources/agent.mjs +30 -0
  26. package/resources/agent.mjs.map +1 -0
  27. package/resources/call.d.mts +120 -1
  28. package/resources/call.d.mts.map +1 -1
  29. package/resources/call.d.ts +120 -1
  30. package/resources/call.d.ts.map +1 -1
  31. package/resources/call.js +7 -0
  32. package/resources/call.js.map +1 -1
  33. package/resources/call.mjs +7 -0
  34. package/resources/call.mjs.map +1 -1
  35. package/resources/evaluation.d.mts +2097 -617
  36. package/resources/evaluation.d.mts.map +1 -1
  37. package/resources/evaluation.d.ts +2097 -617
  38. package/resources/evaluation.d.ts.map +1 -1
  39. package/resources/evaluation.js +14 -0
  40. package/resources/evaluation.js.map +1 -1
  41. package/resources/evaluation.mjs +14 -0
  42. package/resources/evaluation.mjs.map +1 -1
  43. package/resources/http-request-definition.d.mts +339 -0
  44. package/resources/http-request-definition.d.mts.map +1 -0
  45. package/resources/http-request-definition.d.ts +339 -0
  46. package/resources/http-request-definition.d.ts.map +1 -0
  47. package/resources/http-request-definition.js +36 -0
  48. package/resources/http-request-definition.js.map +1 -0
  49. package/resources/http-request-definition.mjs +32 -0
  50. package/resources/http-request-definition.mjs.map +1 -0
  51. package/resources/index.d.mts +11 -4
  52. package/resources/index.d.mts.map +1 -1
  53. package/resources/index.d.ts +11 -4
  54. package/resources/index.d.ts.map +1 -1
  55. package/resources/index.js +19 -5
  56. package/resources/index.js.map +1 -1
  57. package/resources/index.mjs +9 -2
  58. package/resources/index.mjs.map +1 -1
  59. package/resources/simulation-job.d.mts +393 -0
  60. package/resources/simulation-job.d.mts.map +1 -0
  61. package/resources/simulation-job.d.ts +393 -0
  62. package/resources/simulation-job.d.ts.map +1 -0
  63. package/resources/simulation-job.js +38 -0
  64. package/resources/simulation-job.js.map +1 -0
  65. package/resources/simulation-job.mjs +34 -0
  66. package/resources/simulation-job.mjs.map +1 -0
  67. package/resources/{persona.d.mts → simulation-persona.d.mts} +62 -33
  68. package/resources/simulation-persona.d.mts.map +1 -0
  69. package/resources/{persona.d.ts → simulation-persona.d.ts} +62 -33
  70. package/resources/simulation-persona.d.ts.map +1 -0
  71. package/resources/{persona.js → simulation-persona.js} +18 -13
  72. package/resources/simulation-persona.js.map +1 -0
  73. package/resources/{persona.mjs → simulation-persona.mjs} +16 -11
  74. package/resources/simulation-persona.mjs.map +1 -0
  75. package/resources/simulation-run-plan-job.d.mts +359 -0
  76. package/resources/simulation-run-plan-job.d.mts.map +1 -0
  77. package/resources/simulation-run-plan-job.d.ts +359 -0
  78. package/resources/simulation-run-plan-job.d.ts.map +1 -0
  79. package/resources/simulation-run-plan-job.js +50 -0
  80. package/resources/simulation-run-plan-job.js.map +1 -0
  81. package/resources/simulation-run-plan-job.mjs +46 -0
  82. package/resources/simulation-run-plan-job.mjs.map +1 -0
  83. package/resources/simulation-run-plan.d.mts +660 -0
  84. package/resources/simulation-run-plan.d.mts.map +1 -0
  85. package/resources/simulation-run-plan.d.ts +660 -0
  86. package/resources/simulation-run-plan.d.ts.map +1 -0
  87. package/resources/simulation-run-plan.js +93 -0
  88. package/resources/simulation-run-plan.js.map +1 -0
  89. package/resources/simulation-run-plan.mjs +89 -0
  90. package/resources/simulation-run-plan.mjs.map +1 -0
  91. package/resources/simulation-scenario.d.mts +335 -0
  92. package/resources/simulation-scenario.d.mts.map +1 -0
  93. package/resources/simulation-scenario.d.ts +335 -0
  94. package/resources/simulation-scenario.d.ts.map +1 -0
  95. package/resources/simulation-scenario.js +40 -0
  96. package/resources/simulation-scenario.js.map +1 -0
  97. package/resources/simulation-scenario.mjs +36 -0
  98. package/resources/simulation-scenario.mjs.map +1 -0
  99. package/resources/webhook.d.mts +212 -0
  100. package/resources/webhook.d.mts.map +1 -0
  101. package/resources/webhook.d.ts +212 -0
  102. package/resources/webhook.d.ts.map +1 -0
  103. package/resources/webhook.js +35 -0
  104. package/resources/webhook.js.map +1 -0
  105. package/resources/webhook.mjs +31 -0
  106. package/resources/webhook.mjs.map +1 -0
  107. package/src/client.ts +208 -43
  108. package/src/resources/agent-endpoint.ts +400 -0
  109. package/src/resources/agent.ts +263 -0
  110. package/src/resources/call.ts +149 -0
  111. package/src/resources/evaluation.ts +3044 -1154
  112. package/src/resources/http-request-definition.ts +410 -0
  113. package/src/resources/index.ts +89 -21
  114. package/src/resources/simulation-job.ts +527 -0
  115. package/src/resources/{persona.ts → simulation-persona.ts} +78 -40
  116. package/src/resources/simulation-run-plan-job.ts +521 -0
  117. package/src/resources/simulation-run-plan.ts +840 -0
  118. package/src/resources/simulation-scenario.ts +463 -0
  119. package/src/resources/webhook.ts +318 -0
  120. package/src/version.ts +1 -1
  121. package/version.d.mts +1 -1
  122. package/version.d.ts +1 -1
  123. package/version.js +1 -1
  124. package/version.mjs +1 -1
  125. package/resources/persona.d.mts.map +0 -1
  126. package/resources/persona.d.ts.map +0 -1
  127. package/resources/persona.js.map +0 -1
  128. package/resources/persona.mjs.map +0 -1
  129. package/resources/simulation.d.mts +0 -802
  130. package/resources/simulation.d.mts.map +0 -1
  131. package/resources/simulation.d.ts +0 -802
  132. package/resources/simulation.d.ts.map +0 -1
  133. package/resources/simulation.js +0 -90
  134. package/resources/simulation.js.map +0 -1
  135. package/resources/simulation.mjs +0 -86
  136. package/resources/simulation.mjs.map +0 -1
  137. package/src/resources/simulation.ts +0 -1069
@@ -0,0 +1,309 @@
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 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.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"agent-endpoint.d.mts","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;IAI1G;;;O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CAAmC,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,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;IAI1G;;;OAGG;IACH,MAAM,CACJ,UAAU,EAAE,MAAM,EAClB,IAAI,GAAE,yBAAyB,GAAG,IAAI,GAAG,SAAc,EACvD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,2BAA2B,CAAC;IAI1C;;OAEG;IACH,IAAI,CACF,KAAK,GAAE,uBAAuB,GAAG,IAAI,GAAG,SAAc,EACtD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,yBAAyB,CAAC;IAIxC;;OAEG;IACH,OAAO,CAAC,UAAU,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,4BAA4B,CAAC;CAGhG;AAED,MAAM,WAAW,2BAA2B;IAC1C;;OAEG;IACH,IAAI,EAAE,2BAA2B,CAAC,IAAI,CAAC;CACxC;AAED,yBAAiB,2BAA2B,CAAC;IAC3C;;OAEG;IACH,UAAiB,IAAI;QACnB;;WAEG;QACH,EAAE,EAAE,MAAM,CAAC;QAEX;;WAEG;QACH,OAAO,EAAE,MAAM,CAAC;QAEhB;;WAEG;QACH,SAAS,EAAE,MAAM,CAAC;QAElB;;WAEG;QACH,SAAS,EAAE,UAAU,GAAG,UAAU,GAAG,uBAAuB,CAAC;QAE7D;;WAEG;QACH,WAAW,EAAE,MAAM,CAAC;QAEpB;;WAEG;QACH,mCAAmC,EAAE,MAAM,GAAG,IAAI,CAAC;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G;IACH,SAAS,EAAE,UAAU,GAAG,UAAU,GAAG,uBAAuB,CAAC;IAE7D;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;OAGG;IACH,mCAAmC,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEpD;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,GAAG,cAAc,CAAC;CAC5C;AAED,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;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"}