Commit b5eb897
VAPI-2755 Update documentation and models for various API endpoints (#104)
* Update documentation and models for various API endpoints
- Modified LookupResult.md to correct field names and descriptions.
- Updated MachineDetectionConfiguration.md to improve clarity in descriptions.
- Revised MessageRequest.md for consistency in formatting.
- Added new Page.md documentation for pagination support.
- Adjusted RbmOpenUrlEnum.md and RbmWebViewEnum.md for better readability.
- Introduced new SipConnectionMetadata.md and SipCredentials.md models.
- Enhanced StatusCallback.md to clarify the carrierName field description.
- Created new models for endpoint management including CreateEndpointRequestBase, CreateEndpointResponse, and related types.
- Added device-related models including Device, DeviceStatusEnum, and Endpoint management types.
- Implemented error handling models such as ErrorResponse and updated InboundCallback types.
- Added list-endpoints response model for better API response handling.
* Add unit tests for endpoint models and responses
* Add comprehensive tests for EndpointsApi functionality
* Fix type checks and update pagination property names in endpoint tests
* Enhance CreateEndpointResponseData and Endpoint models with token property; update tests to validate new structure and behavior
* Refactor EndpointsApi tests to access nested data structure in responses; ensure proper validation of endpoint properties
* Comment out updateEndpointBxml tests until implementation is complete
* empty commit
* Add spacing for better readability before deleteEndpoint tests
* Add unit tests for EndpointsApi and related models
* Refactor endpoint tests for clarity and organization
* Update endpoint tests to use containKeys for link validation
* Update endpoint tests to use containKeys for key validation
* Trigger build
* Address PR review feedback for BRTC endpoints
- Add Connect and Endpoint BXML verb implementations and tests
- Export new verbs from bxml/verbs/index.ts
- Combine model tests into single comprehensive tests per model
- Add Object.values assertions to all enum tests
- Improve date assertions to verify year and specific ISO timestamps
- Use request body variable with CreateWebRtcConnectionRequest type in unit API tests
- Remove toContainKeys assertions from unit API tests
- Rename test descriptions to "should create/list/get/delete endpoint"
- Add missing delete endpoint unit test
- Remove unnecessary filtered-by-type test from smoke tests
- Rename smoke test descriptions for consistency
Generated from Claude9 with Claude Code
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Fix remaining review feedback
Add missing unit tests for 5 new models: CreateWebRtcConnectionRequest,
SipConnectionMetadata, SipCredentials, ErrorResponse, and Page.
Generated from Claude9 with Claude Code
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Fix endpoint test coverage gaps and remove redundant test file
- Remove endpoint-event.test.ts (redundant; EndpointEvent is a type alias for Endpoints)
- Fix endpoint-response.test.ts to use Endpoint type instead of Endpoints, add devices field assertions
- Add devices field assertions to create-endpoint-response-data.test.ts
- Add devices field assertions to create-endpoint-response.test.ts
- Add creationTimestamp assertions on devices in endpoint.test.ts
- Add type and timestamp assertions for second endpoint in list-endpoints-response.test.ts
- Replace conditional guard with explicit length assertion in endpoints-api.test.ts
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Address PR review comments: add Object.values assertions and endpoint-event test
- Add Object.values() assertions to all 37 enum tests to catch future changes
- Add missing endpoint-event.test.ts with proper date assertions
Generated from Claude9 with Claude Code
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* Revert non-endpoint enum Object.values changes and remove redundant endpoint-event test
EndpointEvent is just a type alias for Endpoints, which is already tested
in endpoints.test.ts.
Generated from Claude9 with Claude Code
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* Add endpoint-event model test
Generated from Claude9 with Claude Code
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* Hoist createEndpointBody to describe scope as a typed variable
Addresses review comment to use the model/interface at the top level.
Generated from Claude9 with Claude Code
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* Fix Connect and Endpoint BXML verbs to match API docs
Connect: replace incorrect attributes (copied from Transfer) with
the single documented attribute: eventCallbackUrl.
Endpoint: remove EndpointAttributes interface — per the docs,
Endpoint has no attributes, only text content (the endpoint ID).
Generated from Claude9 with Claude Code
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* Add updateEndpointBxml unit test for endpoints API
The spec defines PUT /accounts/{accountId}/endpoints/{endpointId}/bxml
but there was no unit test covering this operation.
Generated from Claude9 with Claude Code
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Update models/bxml/verbs/Endpoint.ts
Co-authored-by: Cameron Koegel <53310569+ckoegel@users.noreply.github.com>
---------
Co-authored-by: smoghe-bw <smoghe-bw>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: Cameron Koegel <53310569+ckoegel@users.noreply.github.com>1 parent fdbd3a5 commit b5eb897
90 files changed
Lines changed: 3819 additions & 33 deletions
File tree
- .openapi-generator
- api
- docs
- models
- bxml/verbs
- tests
- smoke
- unit
- api
- models
- bxml/verbs
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
56 | 57 | | |
57 | 58 | | |
58 | 59 | | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
59 | 63 | | |
60 | 64 | | |
61 | 65 | | |
62 | 66 | | |
| 67 | + | |
63 | 68 | | |
| 69 | + | |
| 70 | + | |
64 | 71 | | |
65 | 72 | | |
66 | 73 | | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
67 | 83 | | |
68 | 84 | | |
| 85 | + | |
69 | 86 | | |
70 | 87 | | |
71 | 88 | | |
| |||
83 | 100 | | |
84 | 101 | | |
85 | 102 | | |
| 103 | + | |
86 | 104 | | |
87 | 105 | | |
88 | 106 | | |
| |||
130 | 148 | | |
131 | 149 | | |
132 | 150 | | |
| 151 | + | |
133 | 152 | | |
134 | 153 | | |
135 | 154 | | |
| |||
160 | 179 | | |
161 | 180 | | |
162 | 181 | | |
| 182 | + | |
| 183 | + | |
163 | 184 | | |
164 | 185 | | |
165 | 186 | | |
| |||
243 | 264 | | |
244 | 265 | | |
245 | 266 | | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
246 | 270 | | |
247 | 271 | | |
248 | 272 | | |
249 | 273 | | |
| 274 | + | |
250 | 275 | | |
| 276 | + | |
| 277 | + | |
251 | 278 | | |
252 | 279 | | |
253 | 280 | | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
254 | 289 | | |
| 290 | + | |
255 | 291 | | |
256 | 292 | | |
257 | 293 | | |
| |||
270 | 306 | | |
271 | 307 | | |
272 | 308 | | |
| 309 | + | |
273 | 310 | | |
274 | 311 | | |
275 | 312 | | |
| |||
315 | 352 | | |
316 | 353 | | |
317 | 354 | | |
| 355 | + | |
318 | 356 | | |
319 | 357 | | |
320 | 358 | | |
| |||
342 | 380 | | |
343 | 381 | | |
344 | 382 | | |
| 383 | + | |
| 384 | + | |
345 | 385 | | |
346 | 386 | | |
347 | 387 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
123 | 128 | | |
124 | 129 | | |
125 | 130 | | |
| |||
199 | 204 | | |
200 | 205 | | |
201 | 206 | | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
202 | 210 | | |
203 | 211 | | |
204 | 212 | | |
205 | 213 | | |
| 214 | + | |
206 | 215 | | |
| 216 | + | |
| 217 | + | |
207 | 218 | | |
208 | 219 | | |
209 | 220 | | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
210 | 229 | | |
| 230 | + | |
211 | 231 | | |
212 | 232 | | |
213 | 233 | | |
| |||
225 | 245 | | |
226 | 246 | | |
227 | 247 | | |
| 248 | + | |
228 | 249 | | |
229 | 250 | | |
230 | 251 | | |
| |||
269 | 290 | | |
270 | 291 | | |
271 | 292 | | |
| 293 | + | |
272 | 294 | | |
273 | 295 | | |
274 | 296 | | |
| |||
297 | 319 | | |
298 | 320 | | |
299 | 321 | | |
| 322 | + | |
| 323 | + | |
300 | 324 | | |
301 | 325 | | |
302 | 326 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| |||
0 commit comments