Repository navigation
Release Notes
This public release contains the definition and documentation of
- click-to-dial 0.2.0
The API definition(s) are based on
- Commonalities r4.4 (0.9.0)
- Identity and Consent Management r4.2 (0.5.0)
click-to-dial 0.2.0
click-to-dial 0.2.0 is an initial public version of this API.
Changes documented below are compared to version 0.1.0.
- API definition with inline documentation:
Breaking changes
- Restricted
CreateCallRequest.sinkto HTTPS URLs only. Non-HTTPS sink URLs are rejected with400 INVALID_ARGUMENT. - Restricted the successful callback acknowledgement response from the previously documented
2XXrange to an explicit204 No Content, without a response body. - Renamed the five ClickToDial-specific 422 error codes to
CLICK_TO_DIAL.INVALID_PHONE_NUMBER,CLICK_TO_DIAL.SAME_CALLER_CALLEE,CLICK_TO_DIAL.RECORDING_NOT_SUPPORTED,CLICK_TO_DIAL.CALLER_NOT_AVAILABLE, andCLICK_TO_DIAL.CALLEE_NOT_AVAILABLE. - Changed the
409error code forterminateCallfromALREADY_EXISTStoINCOMPATIBLE_STATEfor retained Call resources in non-terminable states.
Added
- Added
422 EVENT_NOTIFICATIONS_NOT_SUPPORTEDforPOST /callswhen asinkis requested but the provider does not support event notification delivery. No Call resource is created. - Added the optional
sinkproperty to the Call resource. Accepted sink URLs are returned in thePOST /callsresponse and subsequentGET /calls/{callId}responses without exposing credentials or access tokens. - Added detailed user stories and acceptance criteria for creating calls with status notifications, terminating active calls, and retrieving recordings when available.
- Added enhanced Gherkin test scenarios for rainy-day and edge-case behavior across
createCall,getCall,terminateCall, andgetRecording, including HTTPS-only sinks, unsupported notifications, callbacks withoutsinkCredential, registered sink visibility without credentials, recording defaults, authorization failures, and termination conflict handling (#111, #122, #131, #144).
Changed
- Restricted
CreateCallRequest.sinkto HTTPS URLs only, rejecting non-HTTPS values with400 INVALID_ARGUMENT. - Required the consumer's sink to acknowledge successful callback notification receipt with
204 No Content, without a response body, instead of the previously documented2XXresponse range. - Changed the five ClickToDial-specific 422 error codes to the
CLICK_TO_DIAL.namespace. The shared Commonalities errorEVENT_NOTIFICATIONS_NOT_SUPPORTEDremains unchanged. - Changed
terminateCallconflict handling to use409 INCOMPATIBLE_STATEfor existing, retained Call resources that cannot be terminated. Unknown or no-longer-retained resources return404 NOT_FOUND. - Clarified callback authentication:
sinkCredentialis optional. Without it, an HTTPS sink may receive notifications without Bearer authentication. When a credential is provided, the provider uses the specified authentication mechanism. Authentication of consumer requests to the provider remains unchanged. - Documented
410 GONEand429 TOO_MANY_REQUESTSas responses the consumer's sink may return to callback notifications. - Clarified
accessTokenExpiresUtcsemantics relative to the Call lifetime and the effect of token expiration on notification delivery. - Defined
recordingEnabled: falseas the default when the optional request property is omitted, and clarified the equivalent semantics for Call responses. - Clarified that
RecordingResource.generatedAtis optional; its absence means that the generation time was not provided or is unavailable. - Clarified the aggregate Call lifecycle, recording availability, callback delivery failure behavior, and state reconciliation through
GET /calls/{callId}. - Aligned the API definition and documentation with Commonalities r4.4, including callback behavior and reusable error response definitions.
Fixed
- Added the
x-correlatorrequest header to callback notifications and the corresponding header to successful callback responses. - Corrected API documentation and examples to align with the OpenAPI definition and Commonalities, including authentication guidance and CloudEvents details.
- Fixed test definitions: replaced the obsolete
EventCTDStatusChangedcallback schema reference withCallStatusChangedEvent, corrected the expected event caller/callee number values, and removed the requirement for optionalgeneratedAtin recording tests (#111). - Removed unnecessary request
Content-Typerequirements from GET and DELETE test scenarios, and added a403 PERMISSION_DENIEDscenario forcreateCall(#144). - Updated termination and retained-resource query test scenarios to distinguish successful termination, retained final-state Call resources, and missing resources, with each query or termination scenario in its matching operation feature (#144).
Removed
- Removed the error codes
400 OUT_OF_RANGEand403 INVALID_TOKEN_CONTEXTfrom the documented operation responses, and404 IDENTIFIER_NOT_FOUNDfromgetCall,terminateCall, andgetRecording, following the migration to Commonalities reusable error responses (#122).
Full Changelog: r1.4...r2.3