feat: Console SDK update for version 11.0.0#85
Conversation
Greptile SummaryThis PR upgrades the Console SDK to 11.0.0 with a comprehensive set of breaking changes: SMS template methods and models removed, email template endpoints moved from path params to body params, deprecated Deno runtimes dropped, two service methods renamed, and new detection enums added. The most significant change — and the one needing the most scrutiny — is the Realtime refactor, which moves channels/queries from the WebSocket URL to per-subscription
Confidence Score: 3/5Not safe to merge without resolving the Realtime subscription-ID mapping race condition and stale-map issues, which can cause events to be silently delivered to the wrong callback or missed entirely. Two independent P1 defects exist in the Realtime layer (both in src/client.ts and src/services/realtime.ts — the Realtime subscribe-message protocol implementation Important Files Changed
|
This PR contains updates to the SDK for version 11.0.0.
What's Changed
project.updateProtocolStatustoproject.updateProtocol(endpoint changed to/project/protocols/{protocolId})project.updateServiceStatustoproject.updateService(endpoint changed to/project/services/{serviceId})getSmsTemplate,getSMSTemplate,updateSmsTemplate,updateSMSTemplate,deleteSmsTemplate, anddeleteSMSTemplatefromProjectsserviceSmsTemplatemodel andSmsTemplateType/SmsTemplateLocaleenumstypeandlocalefrom the URL path to the request body — endpoints are now/projects/{projectId}/templates/emaillocaleoptional onprojects.getEmailTemplate,projects.updateEmailTemplate, andprojects.deleteEmailTemplateprojects.updateEmailTemplate—localenow optional and placed aftermessage(object-style callers unaffected)Deno121,Deno124, andDeno135values fromRuntime,Runtimes, andBuildRuntimeenumsqueriesset from the Realtime client — queries are now tracked per-subscriptionDetectionFrameworkTypeandDetectionRuntimeTypeenumstypefield toProviderRepositoryFrameworkList,ProviderRepositoryRuntimeList,DetectionFramework, andDetectionRuntimemodelssubscribemessage protocol — channels and queries are sent per-subscription over the WebSocket, with per-subscription IDs and reconnect handlingupdateProtocolandupdateServicedescriptions to "Update properties of a specific…"