Skip to content

Commit

Permalink
feat(backend,clerk-sdk-node): Drop create sms endpoint (#2165)
Browse files Browse the repository at this point in the history
* feat(backend): Deprecate createSMSMessage

* feat(backend,clerk-sdk-node): Drop create sms endpoint

This feature is beeing dropped from the Backend API.

For a brief period it will still be available 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.
  • Loading branch information
Nikpolik authored Nov 22, 2023
1 parent 4bb5705 commit 4aaf510
Show file tree
Hide file tree
Showing 9 changed files with 25 additions and 45 deletions.
13 changes: 13 additions & 0 deletions .changeset/eleven-bananas-joke.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
'@clerk/clerk-sdk-node': patch
'@clerk/backend': patch
---

Remove createSms functions from @clerk/backend and @clerk/sdk-node.

The equivalent /sms_messages Backend API endpoint will also 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.
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.
1 change: 0 additions & 1 deletion packages/backend/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ clerk.phoneNumbers;
clerk.redirectUrls;
clerk.sessions;
clerk.signInTokens;
clerk.smsMessages;
clerk.users;

// These functions should be used by framework-specific libraries, such as @clerk/nextjs or @clerk/remix.
Expand Down
19 changes: 0 additions & 19 deletions packages/backend/src/api/endpoints/SMSMessageApi.ts

This file was deleted.

1 change: 0 additions & 1 deletion packages/backend/src/api/endpoints/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,4 @@ export * from './PhoneNumberApi';
export * from './RedirectUrlApi';
export * from './SessionApi';
export * from './SignInTokenApi';
export * from './SMSMessageApi';
export * from './UserApi';
2 changes: 0 additions & 2 deletions packages/backend/src/api/factory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import {
RedirectUrlAPI,
SessionAPI,
SignInTokenAPI,
SMSMessageAPI,
UserAPI,
} from './endpoints';
import { buildRequest } from './request';
Expand All @@ -35,7 +34,6 @@ export function createBackendApiClient(options: CreateBackendApiOptions) {
redirectUrls: new RedirectUrlAPI(request),
sessions: new SessionAPI(request),
signInTokens: new SignInTokenAPI(request),
smsMessages: new SMSMessageAPI(request),
users: new UserAPI(request),
domains: new DomainAPI(request),
};
Expand Down
19 changes: 0 additions & 19 deletions packages/sdk-node/examples/node/src/smsMessages.ts

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ exports[`module exports should not change unless explicitly set 1`] = `
"signJwt",
"signedInAuthObject",
"signedOutAuthObject",
"smsMessages",
"users",
"verifyJwt",
"verifyToken",
Expand Down
2 changes: 0 additions & 2 deletions packages/sdk-node/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ export { Clerk, clerkClient, ClerkExpressRequireAuth, ClerkExpressWithAuth, crea

const {
users,
smsMessages,
sessions,
emailAddresses,
phoneNumbers,
Expand All @@ -42,7 +41,6 @@ export {
organizations,
phoneNumbers,
sessions,
smsMessages,
users,
};

Expand Down

0 comments on commit 4aaf510

Please sign in to comment.