Skip to content

Commit

Permalink
feat(backend): Deprecate createSMSMessage
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikpolik committed Nov 20, 2023
1 parent 52ff8fe commit dba09d9
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .changeset/slimy-windows-grab.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
'@clerk/backend': minor
---

Deprecate `createSMSMessage` and `SMSMessageApi` from `clerkClient`.

The equivalent `/sms_messages` Backend API endpoint will also be dropped in the future, since this feature will no longer be available for new instances.

For a brief period it will still be accessible for instances that have used it in the past 7
days (13-11-2023 to 20-11-2023).

New instances will get a 403 forbidden response if they try to access it.
6 changes: 6 additions & 0 deletions packages/backend/src/api/endpoints/SMSMessageApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,13 @@ type SMSParams = {
message: string;
};

/**
* @deprecated This endpoint is no longer available and the function will be removed in the next major version.
*/
export class SMSMessageAPI extends AbstractAPI {
/**
* @deprecated This endpoint is no longer available and the function will be removed in the next major version.
*/
public async createSMSMessage(params: SMSParams) {
return this.request<SMSMessage>({
method: 'POST',
Expand Down

0 comments on commit dba09d9

Please sign in to comment.