Skip to content

Commit c1a517c

Browse files
alexisintechSarahSoutoulwobsoriano
authored
docs(backend,shared): Update typedoc comments (#7115)
Co-authored-by: Sarah Soutoul <sarah@clerk.dev> Co-authored-by: wobsoriano <sorianorobertc@gmail.com>
1 parent 8376789 commit c1a517c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+259
-259
lines changed

.changeset/shiny-pumas-report.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
---
2+
---

packages/agent-toolkit/src/lib/tools/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export const tools = {
1111
users,
1212

1313
/**
14-
* Tools for interacting with organizations.
14+
* Tools for interacting with Organizations.
1515
* This is a wrapper around the `clerkClient.organizations` API.
1616
* For more information, see the [Clerk API documentation](https://clerk.com/docs/reference/backend-api/tag/Organizations).
1717
*/

packages/astro/src/stores/external.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export const $sessionStore = computed([$authStore], auth => auth.session as Sign
5656

5757
/**
5858
* A client side store that is populated after clerk-js has loaded.
59-
* The store returns the active organization of the authenticated user or `null`.
59+
* The store returns the Active Organization of the authenticated user or `null`.
6060
* It is a nanostore, for instructions on how to use nanostores please review the [documentation](https://github.com/nanostores/nanostores)
6161
*
6262
* @example

packages/backend/src/api/endpoints/APIKeysApi.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const basePath = '/api_keys';
1010

1111
type GetAPIKeyListParams = ClerkPaginationRequest<{
1212
/**
13-
* The user or organization ID to query API keys by
13+
* The user or Organization ID to query API keys by
1414
*/
1515
subject: string;
1616
/**
@@ -27,7 +27,7 @@ type CreateAPIKeyParams = {
2727
*/
2828
name: string;
2929
/**
30-
* The user or organization ID to associate the API key with
30+
* The user or Organization ID to associate the API key with
3131
*/
3232
subject: string;
3333
/**

packages/backend/src/api/endpoints/InstanceApi.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,17 +52,17 @@ type UpdateOrganizationSettingsParams = {
5252
adminDeleteEnabled?: boolean | null | undefined;
5353
domainsEnabled?: boolean | null | undefined;
5454
/**
55-
* Specifies which [enrollment modes](https://clerk.com/docs/guides/organizations/verified-domains#enable-verified-domains) to enable for your Organization Domains.
55+
* Specifies which [enrollment modes](https://clerk.com/docs/guides/organizations/add-members/verified-domains#enable-verified-domains) to enable for your Organization Domains.
5656
*
5757
* @remarks Supported modes are 'automatic_invitation' & 'automatic_suggestion'.
5858
*/
5959
domainsEnrollmentModes?: Array<string> | undefined;
6060
/**
61-
* Specifies what the default organization role is for an organization creator.
61+
* Specifies what the default Organization Role is for an Organization creator.
6262
*/
6363
creatorRoleId?: string | null | undefined;
6464
/**
65-
* Specifies what the default organization role is for the organization domains.
65+
* Specifies what the default Organization Role is for the Organization Domains.
6666
*/
6767
domainsDefaultRoleId?: string | null | undefined;
6868
};

packages/backend/src/api/endpoints/OrganizationApi.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ type GetOrganizationMembershipListParams = ClerkPaginationRequest<{
5858
organizationId: string;
5959

6060
/**
61-
* Sorts organizations memberships by phone_number, email_address, created_at, first_name, last_name or username.
61+
* Sorts Organization memberships by phone_number, email_address, created_at, first_name, last_name or username.
6262
* By prepending one of those values with + or -, we can choose to sort in ascending (ASC) or descending (DESC) order.
6363
*/
6464
orderBy?: WithSign<'phone_number' | 'email_address' | 'created_at' | 'first_name' | 'last_name' | 'username'>;
@@ -82,7 +82,7 @@ type GetOrganizationMembershipListParams = ClerkPaginationRequest<{
8282
/* Returns users with the specified web3 wallet addresses. Accepts up to 100 web3 wallet addresses. Any web3 wallet addressed not found are ignored. */
8383
web3Wallet?: string[];
8484

85-
/* Returns users with the specified roles. Accepts up to 100 roles. Any roles not found are ignored. */
85+
/* Returns users with the specified Roles. Accepts up to 100 Roles. Any Roles not found are ignored. */
8686
role?: OrganizationMembershipRole[];
8787

8888
/**
@@ -139,7 +139,7 @@ type GetOrganizationMembershipListParams = ClerkPaginationRequest<{
139139

140140
type GetInstanceOrganizationMembershipListParams = ClerkPaginationRequest<{
141141
/**
142-
* Sorts organizations memberships by phone_number, email_address, created_at, first_name, last_name or username.
142+
* Sorts Organization memberships by phone_number, email_address, created_at, first_name, last_name or username.
143143
* By prepending one of those values with + or -, we can choose to sort in ascending (ASC) or descending (DESC) order.
144144
*/
145145
orderBy?: WithSign<'phone_number' | 'email_address' | 'created_at' | 'first_name' | 'last_name' | 'username'>;

packages/backend/src/api/endpoints/SamlConnectionApi.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ type SamlConnectionListParams = ClerkPaginationRequest<{
2121
orderBy?: WithSign<'phone_number' | 'email_address' | 'created_at' | 'first_name' | 'last_name' | 'username'>;
2222

2323
/**
24-
* Returns SAML connections that have an associated organization ID to the given organizations.
25-
* For each organization id, the + and - can be prepended to the id, which denote whether the
26-
* respective organization should be included or excluded from the result set. Accepts up to 100 organization ids.
24+
* Returns SAML connections that have an associated Organization ID to the given Organizations.
25+
* For each Organization ID, the + and - can be prepended to the ID, which denote whether the
26+
* respective Organization should be included or excluded from the result set. Accepts up to 100 Organization IDs.
2727
*/
2828
organizationId?: WithSign<string>[];
2929
}>;

packages/backend/src/api/endpoints/UserApi.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,10 +157,10 @@ type UpdateUserParams = {
157157
/** If true, the user can delete themselves with the Frontend API. */
158158
deleteSelfEnabled?: boolean;
159159

160-
/** If true, the user can create organizations with the Frontend API. */
160+
/** If true, the user can create Organizations with the Frontend API. */
161161
createOrganizationEnabled?: boolean;
162162

163-
/** The maximum number of organizations the user can create. 0 means unlimited. */
163+
/** The maximum number of Organizations the user can create. 0 means unlimited. */
164164
createOrganizationsLimit?: number;
165165
} & UserMetadataParams &
166166
(UserPasswordHashingParams | object);

packages/backend/src/api/resources/CommercePlan.ts

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,62 +4,62 @@ import { Feature } from './Feature';
44
import type { BillingPlanJSON } from './JSON';
55

66
/**
7-
* The `BillingPlan` object is similar to the [`BillingPlanResource`](/docs/reference/javascript/types/billing-plan-resource) object as it holds information about a plan, as well as methods for managing it. However, the `BillingPlan` object is different in that it is used in the [Backend API](https://clerk.com/docs/reference/backend-api/tag/commerce/get/commerce/plans) and is not directly accessible from the Frontend API.
7+
* The `BillingPlan` object is similar to the [`BillingPlanResource`](/docs/reference/javascript/types/billing-plan-resource) object as it holds information about a Plan, as well as methods for managing it. However, the `BillingPlan` object is different in that it is used in the [Backend API](https://clerk.com/docs/reference/backend-api/tag/commerce/get/commerce/plans) and is not directly accessible from the Frontend API.
88
*
99
* @experimental This is an experimental API for the Billing feature that is available under a public beta, and the API is subject to change. It is advised to [pin](https://clerk.com/docs/pinning) the SDK version and the clerk-js version to avoid breaking changes.
1010
*/
1111
export class BillingPlan {
1212
constructor(
1313
/**
14-
* The unique identifier for the plan.
14+
* The unique identifier for the Plan.
1515
*/
1616
readonly id: string,
1717
/**
18-
* The name of the plan.
18+
* The name of the Plan.
1919
*/
2020
readonly name: string,
2121
/**
22-
* The URL-friendly identifier of the plan.
22+
* The URL-friendly identifier of the Plan.
2323
*/
2424
readonly slug: string,
2525
/**
26-
* The description of the plan.
26+
* The description of the Plan.
2727
*/
2828
readonly description: string | null,
2929
/**
30-
* Whether the plan is the default plan.
30+
* Whether the Plan is the default Plan.
3131
*/
3232
readonly isDefault: boolean,
3333
/**
34-
* Whether the plan is recurring.
34+
* Whether the Plan is recurring.
3535
*/
3636
readonly isRecurring: boolean,
3737
/**
38-
* Whether the plan has a base fee.
38+
* Whether the Plan has a base fee.
3939
*/
4040
readonly hasBaseFee: boolean,
4141
/**
42-
* Whether the plan is displayed in the `<PriceTable/>` component.
42+
* Whether the Plan is displayed in the `<PriceTable/>` component.
4343
*/
4444
readonly publiclyVisible: boolean,
4545
/**
46-
* The monthly fee of the plan.
46+
* The monthly fee of the Plan.
4747
*/
4848
readonly fee: BillingMoneyAmount,
4949
/**
50-
* The annual fee of the plan.
50+
* The annual fee of the Plan.
5151
*/
5252
readonly annualFee: BillingMoneyAmount | null,
5353
/**
54-
* The annual fee of the plan on a monthly basis.
54+
* The annual fee of the Plan on a monthly basis.
5555
*/
5656
readonly annualMonthlyFee: BillingMoneyAmount | null,
5757
/**
58-
* The type of payer for the plan.
58+
* The type of payer for the Plan.
5959
*/
6060
readonly forPayerType: 'org' | 'user',
6161
/**
62-
* The features the plan offers.
62+
* The features the Plan offers.
6363
*/
6464
readonly features: Feature[],
6565
) {}

packages/backend/src/api/resources/CommerceSubscriptionItem.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export class BillingSubscriptionItem {
1919
*/
2020
readonly status: BillingSubscriptionItemJSON['status'],
2121
/**
22-
* The plan period for the subscription item.
22+
* The Plan period for the subscription item.
2323
*/
2424
readonly planPeriod: 'month' | 'annual',
2525
/**
@@ -47,11 +47,11 @@ export class BillingSubscriptionItem {
4747
*/
4848
readonly amount: BillingMoneyAmount | undefined,
4949
/**
50-
* The plan associated with this subscription item.
50+
* The Plan associated with this subscription item.
5151
*/
5252
readonly plan: BillingPlan | null,
5353
/**
54-
* The plan ID.
54+
* The Plan ID.
5555
*/
5656
readonly planId: string | null,
5757
/**

0 commit comments

Comments
 (0)