Skip to content

Commit

Permalink
(chore) update prop/param descriptions to be consistent (#1824)
Browse files Browse the repository at this point in the history
Co-authored-by: victoria <[email protected]>
  • Loading branch information
alexisintech and victoriaxyz authored Dec 18, 2024
1 parent 979b9d7 commit 0fdc7d0
Show file tree
Hide file tree
Showing 63 changed files with 285 additions and 204 deletions.
6 changes: 3 additions & 3 deletions docs/references/astro/auth-store.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,21 @@ The `$authStore` store provides a convenient way to access the current auth stat
- `userId`
- `string`

The unique identifier of the current user.
The ID of the current user.

---

- `sessionId`
- `string`

The unique identifier of the current session.
The ID of the current session.

---

- `orgId`
- `string`

The unique identifier of the user's active organization.
The ID of the user's active organization.

---

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ function createEmailAddress(params: CreateEmailAddressParams): Promise<EmailAddr
- `userId`
- `string`

The unique identifier of the user to create the email address for.
The ID of the user to create the email address for.

---

Expand Down
2 changes: 1 addition & 1 deletion docs/references/backend/invitations/create-invitation.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ function createInvitation(params: CreateParams): Promise<Invitation>
---

- `publicMetadata?`
- `{[string]: any}`
- [`UserPublicMetadata`](/docs/references/javascript/types/metadata#user-public-metadata)

Metadata that can be read from both the Frontend API and [Backend API](/docs/reference/backend-api){{ target: '_blank' }}, but can be set only from the Backend API. Once the user accepts the invitation and signs up, these metadata will end up in the user's public metadata.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ function createOrganizationInvitation(
---

- `publicMetadata?`
- `{[string]: any}`
- [`OrganizationInvitationPublicMetadata`](/docs/references/javascript/types/metadata#organization-invitation-public-metadata)

Metadata that can be read from both the Frontend API and [Backend API](/docs/reference/backend-api){{ target: '_blank' }}, but can be set only from the Backend API .
Metadata that can be read from both the Frontend API and [Backend API](/docs/reference/backend-api){{ target: '_blank' }}, but can be set only from the Backend API.
</Properties>

## Example
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ function createOrganizationMembership(
- `organizationId`
- `string`

The organization ID of the organization a user is being added to.
The ID of the organization the user is being added to.

---

- `userId`
- `string`

The unique identifier of the user to be added to the organization.
The ID of the user to be added to the organization.

---

Expand Down
6 changes: 3 additions & 3 deletions docs/references/backend/organization/create-organization.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,14 @@ function createOrganization(params: CreateParams): Promise<Organization>
---

- `publicMetadata?`
- `{[string]: any}`
- [`OrganizationPublicMetadata`](/docs/references/javascript/types/metadata#organization-public-metadata)

Metadata that can be read from both the Frontend API and [Backend API](/docs/reference/backend-api){{ target: '_blank' }}, but can be set only from the Backend API .
Metadata that can be read from both the Frontend API and [Backend API](/docs/reference/backend-api){{ target: '_blank' }}, but can be set only from the Backend API.

---

- `privateMetadata?`
- `{[string]: any}`
- [`OrganizationPrivateMetadata`](/docs/references/javascript/types/metadata#organization-private-metadata)

Metadata that is only visible to your [Backend API](/docs/reference/backend-api){{ target: '_blank' }}.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ function getOrganizationList(
- `userId`
- `string`

The unique identifier of the user to be removed from the organization.
The ID of the user to be removed from the organization.
</Properties>

## Example
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,19 +26,19 @@ function updateOrganizationMembershipMetadata(
- `userId`
- `string`

The unique identifier of the user that this membership belongs to.
The ID of the user that this membership belongs to.

---

- `publicMetadata?`
- `{[string]: any}`
- [`OrganizationMembershipPublicMetadata`](/docs/references/javascript/types/metadata#organization-membership-public-metadata)

Metadata that can be read from both the Frontend API and [Backend API](/docs/reference/backend-api){{ target: '_blank' }}, but can be set only from the Backend API .
Metadata that can be read from both the Frontend API and [Backend API](/docs/reference/backend-api){{ target: '_blank' }}, but can be set only from the Backend API.

---

- `privateMetadata?`
- `{[string]: any}`
- [`OrganizationMembershipPrivateMetadata`](/docs/references/javascript/types/metadata#organization-membership-private-metadata)

Metadata that is only visible to your [Backend API](/docs/reference/backend-api){{ target: '_blank' }}.
</Properties>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ function updateOrganizationMembership(
- `organizationId`
- `string`

The organization ID of the organization a user belongs to.
The ID of the organization this membership belongs to.

---

- `userId`
- `string`

The unique identifier of the user to update.
The ID of the user that this membership belongs to.

---

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@ function updateOrganizationMetadata(
---

- `publicMetadata?`
- `{[string]: any}`
- [`OrganizationPublicMetadata`](/docs/references/javascript/types/metadata#organization-public-metadata)

Metadata that can be read from both the Frontend API and [Backend API](/docs/reference/backend-api){{ target: '_blank' }}, but can be set only from the Backend API .

---

- `privateMetadata?`
- `{[string]: any}`
- [`OrganizationPrivateMetadata`](/docs/references/javascript/types/metadata#organization-private-metadata)

Metadata that is only visible to your [Backend API](/docs/reference/backend-api){{ target: '_blank' }}.
</Properties>
Expand Down
8 changes: 4 additions & 4 deletions docs/references/backend/organization/update-organization.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -34,16 +34,16 @@ function updateOrganization(params: UpdateOrganizationParams): Promise<Organizat
---

- `publicMetadata?`
- `{[string]: any}`
- [`OrganizationPublicMetadata`](/docs/references/javascript/types/metadata#organization-public-metadata)

Metadata that can be read from both the Frontend API and [Backend API](/docs/reference/backend-api){{ target: '_blank' }}, but can be set only from the Backend API .
Metadata that can be read from both the Frontend API and [Backend API](/docs/reference/backend-api){{ target: '_blank' }}, but can be set only from the Backend API. Updating this property will override the existing metadata. To merge metadata, use [`updateOrganizationMetadata()`](/docs/references/backend/organization/update-organization-metadata).

---

- `privateMetadata?`
- `{[string]: any}`
- [`OrganizationPrivateMetadata`](/docs/references/javascript/types/metadata#organization-private-metadata)

Metadata that is only visible to your [Backend API](/docs/reference/backend-api){{ target: '_blank' }}.
Metadata that is only visible to your [Backend API](/docs/reference/backend-api){{ target: '_blank' }}. Updating this property will override the existing metadata. To merge metadata, use [`updateOrganizationMetadata()`](/docs/references/backend/organization/update-organization-metadata).

---

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ function createPhoneNumber(params: CreatePhoneNumberParams): Promise<PhoneNumber
- `userId`
- `string`

The unique identifier of the user to create the phone number for.
The ID of the user to create the phone number for.

---

Expand Down
2 changes: 1 addition & 1 deletion docs/references/backend/sessions/get-session.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ function getSession(sessionId: string): Promise<Session>
- `sessionId`
- `string`

The unique identifier of the session to retrieve.
The ID of the session to retrieve.
</Properties>

## Example
Expand Down
2 changes: 1 addition & 1 deletion docs/references/backend/sessions/get-token.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ function getToken(sessionId: string, template: string): Promise<Token>
- `sessionId`
- `string`

The unique identifier of the session to retrieve a token for.
The ID of the session to retrieve a token for.

---

Expand Down
2 changes: 1 addition & 1 deletion docs/references/backend/sessions/revoke-session.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ function revokeSession(sessionId: string): Promise<Session>
- `sessionId`
- `string`

The unique identifier of the session to revoke.
The ID of the session to revoke.
</Properties>

## Example
Expand Down
2 changes: 1 addition & 1 deletion docs/references/backend/sessions/verify-session.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const session = await clerkClient.sessions.verifySession(sessionId, token)
- `sessionId`
- `string`

The unique identifier of the session to verify.
The ID of the session to verify.

---

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ function createSignInToken(params: CreateSignInTokensParams): Promise<SignInToke
- `userId`
- `string`

The unique identifier of the user who can use the newly created sign-in token.
The ID of the user who can use the newly created sign-in token.

---

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@ The Backend `AllowlistIdentifier` object represents an identifier that has been
- `createdAt`
- `number`

Date when the allowlist identifier was first created.
The date when the allowlist identifier was first created.

---

- `updatedAt`
- `number`

Date of the last time the allowlist identifier was updated.
The date when the allowlist identifier was last updated.

---

Expand Down
6 changes: 3 additions & 3 deletions docs/references/backend/types/backend-client.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ The Backend `Client` object is similar to the [`Client`](/docs/references/javasc
- `id`
- `string`

A unique identifier for the client.
The unique identifier for the `Client`.

---

Expand Down Expand Up @@ -53,12 +53,12 @@ The Backend `Client` object is similar to the [`Client`](/docs/references/javasc
- `createdAt`
- `number`

Date when the `Client` was first created.
The date when the `Client` was first created.

---

- `updatedAt`
- `number`

Date of the last time the `Client` was updated.
The date when the `Client` was last updated.
</Properties>
8 changes: 4 additions & 4 deletions docs/references/backend/types/backend-invitation.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ The Backend `Invitation` object represents an invitation to join your applicatio
- `id`
- `string`

A unique identifier for the `Invitation`.
The unique identifier for the `Invitation`.

---

Expand All @@ -25,21 +25,21 @@ The Backend `Invitation` object represents an invitation to join your applicatio
- `publicMetadata`
- [`UserPublicMetadata`](/docs/references/javascript/types/metadata#user-public-metadata)

Metadata that can be read from the Frontend API and [Backend API](/docs/reference/backend-api){{ target: '_blank' }} and can be set only from the Backend API .
Metadata that can be read from the Frontend API and [Backend API](/docs/reference/backend-api){{ target: '_blank' }} and can be set only from the Backend API. Once the user accepts the invitation and signs up, these metadata will end up in the user's public metadata.

---

- `createdAt`
- `number`

Date when the `Invitation` was first created.
The date when the `Invitation` was first created.

---

- `updatedAt`
- `number`

Date of the last time the `Invitation` was updated.
The date when the `Invitation` was last updated.

---

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ The Backend `OrganizationInvitation` object is similar to the [`OrganizationInvi
- `id`
- `string`

A unique identifier for the invitation.
The unique identifier for the `OrganizationInvitation`.

---

Expand Down Expand Up @@ -39,14 +39,14 @@ The Backend `OrganizationInvitation` object is similar to the [`OrganizationInvi
- `createdAt`
- `number`

Date when the invitation was first created.
The date when the invitation was first created.

---

- `updatedAt`
- `number`

Date of the last time the invitation was updated.
The date when the invitation was last updated.

---

Expand All @@ -58,14 +58,14 @@ The Backend `OrganizationInvitation` object is similar to the [`OrganizationInvi
---

- `publicMetadata`
- [`UserPublicMetadata`](/docs/references/javascript/types/metadata#user-public-metadata)
- [`OrganizationInvitationPublicMetadata`](/docs/references/javascript/types/metadata#organization-invitation-public-metadata)

Metadata that can be read from the Frontend API and [Backend API](/docs/reference/backend-api){{ target: '_blank' }} and can be set only from the Backend API.

---

- `privateMetadata`
- [`UserPrivateMetadata`](/docs/references/javascript/types/metadata#user-private-metadata)
- [`OrganizationInvitationPrivateMetadata`](/docs/references/javascript/types/metadata#organization-invitation-private-metadata)

Metadata that can be read and set only from the [Backend API](/docs/reference/backend-api){{ target: '_blank' }}.
</Properties>
Loading

0 comments on commit 0fdc7d0

Please sign in to comment.