-
Notifications
You must be signed in to change notification settings - Fork 326
/
Copy pathindex.ts
33 lines (29 loc) · 1.03 KB
/
index.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import { invitations } from './invitations';
import { organizations } from './organizations';
import { users } from './users';
export const tools = {
/**
* Tools for interacting with users.
* This is a wrapper around the `clerkClient.users` API.
* For more information, see the [Clerk API documentation](https://clerk.com/docs/reference/backend-api/tag/Users).
*/
users,
/**
* Tools for interacting with organizations.
* This is a wrapper around the `clerkClient.organizations` API.
* For more information, see the [Clerk API documentation](https://clerk.com/docs/reference/backend-api/tag/Organizations).
*/
organizations,
/**
* Tools for interacting with invitations.
* This is a wrapper around the `clerkClient.invitations` API.
* For more information, see the [Clerk API documentation](https://clerk.com/docs/reference/backend-api/tag/Invitations).
*/
invitations,
} as const;
// Just to help with types later on
export const flatTools = {
...users,
...organizations,
...invitations,
} as const;