Skip to content

Commit a5aa803

Browse files
authored
chore(backend,react,shared,vue): Update docs links (#8047)
1 parent ab17eb3 commit a5aa803

32 files changed

Lines changed: 95 additions & 94 deletions

.changeset/better-ways-doubt.md

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

.typedoc/custom-plugin.mjs

Lines changed: 46 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -43,25 +43,25 @@ const FILES_WITHOUT_HEADINGS = [
4343
* Ideally this is a temporary solution until every one of these files are published in production and can be linked to.
4444
*/
4545
const LINK_REPLACEMENTS = [
46-
['set-active-params', '/docs/reference/javascript/types/set-active-params'],
47-
['clerk-paginated-response', '/docs/reference/javascript/types/clerk-paginated-response'],
46+
['set-active-params', '/docs/reference/types/set-active-params'],
47+
['clerk-paginated-response', '/docs/reference/types/clerk-paginated-response'],
4848
['paginated-resources', '#paginated-resources'],
4949
['use-checkout-options', '#use-checkout-options'],
5050
['needs-reverification-parameters', '#needs-reverification-parameters'],
5151
['create-organization-params', '#create-organization-params'],
52-
['session-resource', '/docs/reference/javascript/session'],
53-
['signed-in-session-resource', '/docs/reference/javascript/session'],
54-
['sign-in-resource', '/docs/reference/javascript/sign-in'],
55-
['sign-up-resource', '/docs/reference/javascript/sign-up'],
56-
['user-resource', '/docs/reference/javascript/user'],
57-
['session-status-claim', '/docs/reference/javascript/types/session-status'],
58-
['user-organization-invitation-resource', '/docs/reference/javascript/types/user-organization-invitation'],
59-
['organization-membership-resource', '/docs/reference/javascript/types/organization-membership'],
60-
['organization-suggestion-resource', '/docs/reference/javascript/types/organization-suggestion'],
61-
['organization-resource', '/docs/reference/javascript/organization'],
62-
['organization-domain-resource', '/docs/reference/javascript/types/organization-domain-resource'],
63-
['organization-invitation-resource', '/docs/reference/javascript/types/organization-invitation'],
64-
['organization-membership-request-resource', '/docs/reference/javascript/types/organization-membership-request'],
52+
['session-resource', '/docs/reference/objects/session'],
53+
['signed-in-session-resource', '/docs/reference/objects/session'],
54+
['sign-in-resource', '/docs/reference/objects/sign-in'],
55+
['sign-up-resource', '/docs/reference/objects/sign-up'],
56+
['user-resource', '/docs/reference/objects/user'],
57+
['session-status-claim', '/docs/reference/types/session-status'],
58+
['user-organization-invitation-resource', '/docs/reference/types/user-organization-invitation'],
59+
['organization-membership-resource', '/docs/reference/types/organization-membership'],
60+
['organization-suggestion-resource', '/docs/reference/types/organization-suggestion'],
61+
['organization-resource', '/docs/reference/objects/organization'],
62+
['organization-domain-resource', '/docs/reference/types/organization-domain-resource'],
63+
['organization-invitation-resource', '/docs/reference/types/organization-invitation'],
64+
['organization-membership-request-resource', '/docs/reference/types/organization-membership-request'],
6565
['session', '/docs/reference/backend/types/backend-session'],
6666
['session-activity', '/docs/reference/backend/types/backend-session-activity'],
6767
['organization', '/docs/reference/backend/types/backend-organization'],
@@ -77,22 +77,22 @@ const LINK_REPLACEMENTS = [
7777
['invitation', '/docs/reference/backend/types/backend-invitation'],
7878
['verify-token-options', '#verify-token-options'],
7979
['localization-resource', '/docs/guides/customizing-clerk/localization'],
80-
['confirm-checkout-params', '/docs/reference/javascript/types/billing-checkout-resource#parameters'],
81-
['billing-payment-method-resource', '/docs/reference/javascript/types/billing-payment-method-resource'],
82-
['billing-payer-resource', '/docs/reference/javascript/types/billing-payer-resource'],
83-
['billing-plan-resource', '/docs/reference/javascript/types/billing-plan-resource'],
84-
['billing-checkout-totals', '/docs/reference/javascript/types/billing-checkout-totals'],
85-
['billing-checkout-resource', '/docs/reference/javascript/types/billing-checkout-resource'],
86-
['billing-money-amount', '/docs/reference/javascript/types/billing-money-amount'],
87-
['billing-subscription-item-resource', '/docs/reference/javascript/types/billing-subscription-item-resource'],
88-
['feature-resource', '/docs/reference/javascript/types/feature-resource'],
89-
['billing-statement-group', '/docs/reference/javascript/types/billing-statement-group'],
90-
['billing-statement-resource', '/docs/reference/javascript/types/billing-statement-resource'],
91-
['billing-subscription-resource', '/docs/reference/javascript/types/billing-subscription-resource'],
92-
['clerk-api-response-error', '/docs/reference/javascript/types/clerk-api-response-error'],
93-
['billing-statement-totals', '/docs/reference/javascript/types/billing-statement-totals'],
94-
['billing-payment-resource', '/docs/reference/javascript/types/billing-payment-resource'],
95-
['deleted-object-resource', '/docs/reference/javascript/types/deleted-object-resource'],
80+
['confirm-checkout-params', '/docs/reference/types/billing-checkout-resource#parameters'],
81+
['billing-payment-method-resource', '/docs/reference/types/billing-payment-method-resource'],
82+
['billing-payer-resource', '/docs/reference/types/billing-payer-resource'],
83+
['billing-plan-resource', '/docs/reference/types/billing-plan-resource'],
84+
['billing-checkout-totals', '/docs/reference/types/billing-checkout-totals'],
85+
['billing-checkout-resource', '/docs/reference/types/billing-checkout-resource'],
86+
['billing-money-amount', '/docs/reference/types/billing-money-amount'],
87+
['billing-subscription-item-resource', '/docs/reference/types/billing-subscription-item-resource'],
88+
['feature-resource', '/docs/reference/types/feature-resource'],
89+
['billing-statement-group', '/docs/reference/types/billing-statement-group'],
90+
['billing-statement-resource', '/docs/reference/types/billing-statement-resource'],
91+
['billing-subscription-resource', '/docs/reference/types/billing-subscription-resource'],
92+
['clerk-api-response-error', '/docs/reference/types/clerk-api-response-error'],
93+
['billing-statement-totals', '/docs/reference/types/billing-statement-totals'],
94+
['billing-payment-resource', '/docs/reference/types/billing-payment-resource'],
95+
['deleted-object-resource', '/docs/reference/types/deleted-object-resource'],
9696
['checkout-flow-resource', '/docs/reference/hooks/use-checkout#checkout-flow-resource'],
9797
['organization-creation-defaults-resource', '#organization-creation-defaults-resource'],
9898
];
@@ -133,7 +133,7 @@ function getCatchAllReplacements() {
133133
},
134134
{
135135
pattern: /`LoadedClerk`/g,
136-
replace: '[Clerk](/docs/reference/javascript/clerk)',
136+
replace: '[Clerk](/docs/reference/objects/clerk)',
137137
},
138138
{
139139
pattern: /(?<![\[\w`])`?LocalizationResource`?(?![\]\w`])/g,
@@ -143,64 +143,63 @@ function getCatchAllReplacements() {
143143
// SessionResource appears in plain text, with an array next to it, with backticks, etc.
144144
// e.g. `SessionResource[]`
145145
pattern: /(?<![`[\]])\bSessionResource(\[\])?\b(?![\]\)`])/g,
146-
replace: '[`SessionResource`](/docs/reference/javascript/session)$1',
146+
replace: '[`SessionResource`](/docs/reference/objects/session)$1',
147147
},
148148
{
149149
pattern: /(?<![\[\w`])`?SessionStatusClaim`?(?![\]\w`])/g,
150-
replace: '[`SessionStatusClaim`](/docs/reference/javascript/types/session-status)',
150+
replace: '[`SessionStatusClaim`](/docs/reference/types/session-status)',
151151
},
152152
{
153153
pattern: /(?<![`[\]])\bSetActiveParams\b(?![\]\(])/g,
154-
replace: '[SetActiveParams](/docs/reference/javascript/types/set-active-params)',
154+
replace: '[SetActiveParams](/docs/reference/types/set-active-params)',
155155
},
156156
{
157157
pattern: /(?<![\[\w`])`?SignInResource`?(?![\]\w`])/g,
158-
replace: '[`SignInResource`](/docs/reference/javascript/sign-in)',
158+
replace: '[`SignInResource`](/docs/reference/objects/sign-in)',
159159
},
160160
{
161161
pattern: /(?<![\[\w`])`?SignedInSessionResource`?(?![\]\w`])/g,
162-
replace: '[`SignedInSessionResource`](/docs/reference/javascript/session)',
162+
replace: '[`SignedInSessionResource`](/docs/reference/objects/session)',
163163
},
164164
{
165165
pattern: /(?<![\[\w`])`?SignUpResource`?(?![\]\w`])/g,
166-
replace: '[`SignUpResource`](/docs/reference/javascript/sign-up)',
166+
replace: '[`SignUpResource`](/docs/reference/objects/sign-up)',
167167
},
168168
{
169169
pattern: /(?<![\[\w`])`?OrganizationResource`?(?![\]\w`])/g,
170-
replace: '[`OrganizationResource`](/docs/reference/javascript/organization)',
170+
replace: '[`OrganizationResource`](/docs/reference/objects/organization)',
171171
},
172172
{
173173
pattern: /`OrganizationPrivateMetadata`/g,
174-
replace:
175-
'[`OrganizationPrivateMetadata`](/docs/reference/javascript/types/metadata#organization-private-metadata)',
174+
replace: '[`OrganizationPrivateMetadata`](/docs/reference/types/metadata#organization-private-metadata)',
176175
},
177176
{
178177
pattern: /OrganizationPublicMetadata/g,
179-
replace: '[OrganizationPublicMetadata](/docs/reference/javascript/types/metadata#organization-public-metadata)',
178+
replace: '[OrganizationPublicMetadata](/docs/reference/types/metadata#organization-public-metadata)',
180179
},
181180
{
182181
pattern: /`OrganizationInvitationPrivateMetadata`/g,
183182
replace:
184-
'[`OrganizationInvitationPrivateMetadata`](/docs/reference/javascript/types/metadata#organization-invitation-private-metadata)',
183+
'[`OrganizationInvitationPrivateMetadata`](/docs/reference/types/metadata#organization-invitation-private-metadata)',
185184
},
186185
{
187186
pattern: /`OrganizationInvitationPublicMetadata`/g,
188187
replace:
189-
'[`OrganizationInvitationPublicMetadata`](/docs/reference/javascript/types/metadata#organization-invitation-public-metadata)',
188+
'[`OrganizationInvitationPublicMetadata`](/docs/reference/types/metadata#organization-invitation-public-metadata)',
190189
},
191190
{
192191
pattern: /`OrganizationMembershipPrivateMetadata`/g,
193192
replace:
194-
'[`OrganizationMembershipPrivateMetadata`](/docs/reference/javascript/types/metadata#organization-membership-private-metadata)',
193+
'[`OrganizationMembershipPrivateMetadata`](/docs/reference/types/metadata#organization-membership-private-metadata)',
195194
},
196195
{
197196
pattern: /`OrganizationMembershipPublicMetadata`/g,
198197
replace:
199-
'[`OrganizationMembershipPublicMetadata`](/docs/reference/javascript/types/metadata#organization-membership-public-metadata)',
198+
'[`OrganizationMembershipPublicMetadata`](/docs/reference/types/metadata#organization-membership-public-metadata)',
200199
},
201200
{
202201
pattern: /(?<![\[\w`])`?UserResource`?(?![\]\w`])/g,
203-
replace: '[`UserResource`](/docs/reference/javascript/user)',
202+
replace: '[`UserResource`](/docs/reference/objects/user)',
204203
},
205204
{
206205
/**

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ export class APIKey {
6666
*/
6767
readonly updatedAt: number,
6868
/**
69-
* The API key secret. **This property is only present in the response from [`create()`](/docs/reference/javascript/api-keys#create) and cannot be retrieved later.**
69+
* The API key secret. **This property is only present in the response from [`create()`](/docs/reference/objects/api-keys#create) and cannot be retrieved later.**
7070
*/
7171
readonly secret?: string,
7272
) {}

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import type { ClientJSON } from './JSON';
44
import { Session } from './Session';
55

66
/**
7-
* The Backend `Client` object is similar to the [`Client`](https://clerk.com/docs/reference/javascript/client) object as it holds information about the authenticated sessions in the current device. However, the Backend `Client` object is different from the `Client` object in that it is used in the [Backend API](https://clerk.com/docs/reference/backend-api/tag/Clients#operation/GetClient) and is not directly accessible from the Frontend API.
7+
* The Backend `Client` object is similar to the [`Client`](https://clerk.com/docs/reference/objects/client) object as it holds information about the authenticated sessions in the current device. However, the Backend `Client` object is different from the `Client` object in that it is used in the [Backend API](https://clerk.com/docs/reference/backend-api/tag/Clients#operation/GetClient) and is not directly accessible from the Frontend API.
88
*/
99
export class Client {
1010
constructor(
@@ -21,11 +21,11 @@ export class Client {
2121
*/
2222
readonly sessions: Session[],
2323
/**
24-
* The ID of the [`SignIn`](https://clerk.com/docs/reference/javascript/sign-in){{ target: '_blank' }}.
24+
* The ID of the [`SignIn`](https://clerk.com/docs/reference/objects/sign-in).
2525
*/
2626
readonly signInId: string | null,
2727
/**
28-
* The ID of the [`SignUp`](https://clerk.com/docs/reference/javascript/sign-up){{ target: '_blank' }}.
28+
* The ID of the [`SignUp`](https://clerk.com/docs/reference/objects/sign-up).
2929
*/
3030
readonly signUpId: string | null,
3131
/**

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ 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/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
*/

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { BillingSubscriptionItem } from './CommerceSubscriptionItem';
44
import type { BillingSubscriptionJSON } from './JSON';
55

66
/**
7-
* The `BillingSubscription` object is similar to the [`BillingSubscriptionResource`](/docs/reference/javascript/types/billing-subscription-resource) object as it holds information about a subscription, as well as methods for managing it. However, the `BillingSubscription` object is different in that it is used in the [Backend API](https://clerk.com/docs/reference/backend-api/tag/billing/get/organizations/%7Borganization_id%7D/billing/subscription) and is not directly accessible from the Frontend API.
7+
* The `BillingSubscription` object is similar to the [`BillingSubscriptionResource`](/docs/reference/types/billing-subscription-resource) object as it holds information about a subscription, as well as methods for managing it. However, the `BillingSubscription` object is different in that it is used in the [Backend API](https://clerk.com/docs/reference/backend-api/tag/billing/get/organizations/%7Borganization_id%7D/billing/subscription) 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
*/

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { BillingPlan } from './CommercePlan';
44
import type { BillingSubscriptionItemJSON } from './JSON';
55

66
/**
7-
* The `BillingSubscriptionItem` object is similar to the [`BillingSubscriptionItemResource`](/docs/reference/javascript/types/billing-subscription-item-resource) object as it holds information about a subscription item, as well as methods for managing it. However, the `BillingSubscriptionItem` object is different in that it is used in the [Backend API](https://clerk.com/docs/reference/backend-api/tag/commerce/get/commerce/subscription_items) and is not directly accessible from the Frontend API.
7+
* The `BillingSubscriptionItem` object is similar to the [`BillingSubscriptionItemResource`](/docs/reference/types/billing-subscription-item-resource) object as it holds information about a subscription item, as well as methods for managing it. However, the `BillingSubscriptionItem` object is different in that it is used in the [Backend API](https://clerk.com/docs/reference/backend-api/tag/commerce/get/commerce/subscription_items) 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
*/

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export class Invitation {
2121
*/
2222
readonly emailAddress: string,
2323
/**
24-
* [Metadata](https://clerk.com/docs/reference/javascript/types/metadata#user-public-metadata){{ target: '_blank' }} that can be read from the Frontend API and [Backend API](https://clerk.com/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.
24+
* [Metadata](https://clerk.com/docs/reference/types/metadata#user-public-metadata){{ target: '_blank' }} that can be read from the Frontend API and [Backend API](https://clerk.com/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.
2525
*/
2626
readonly publicMetadata: Record<string, unknown> | null,
2727
/**

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type { OrganizationJSON } from './JSON';
22

33
/**
4-
* The Backend `Organization` object is similar to the [`Organization`](https://clerk.com/docs/reference/javascript/organization) object as it holds information about an Organization, as well as methods for managing it. However, the Backend `Organization` object is different in that it is used in the [Backend API](https://clerk.com/docs/reference/backend-api/tag/Organizations#operation/ListOrganizations){{ target: '_blank' }} and is not directly accessible from the Frontend API.
4+
* The Backend `Organization` object is similar to the [`Organization`](https://clerk.com/docs/reference/objects/organization) object as it holds information about an Organization, as well as methods for managing it. However, the Backend `Organization` object is different in that it is used in the [Backend API](https://clerk.com/docs/reference/backend-api/tag/Organizations#operation/ListOrganizations){{ target: '_blank' }} and is not directly accessible from the Frontend API.
55
*/
66
export class Organization {
77
private _raw: OrganizationJSON | null = null;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import type { OrganizationInvitationStatus, OrganizationMembershipRole } from '.
22
import type { OrganizationInvitationJSON, PublicOrganizationDataJSON } from './JSON';
33

44
/**
5-
* The Backend `OrganizationInvitation` object is similar to the [`OrganizationInvitation`](https://clerk.com/docs/reference/javascript/types/organization-invitation) object as it's the model around an Organization invitation. However, the Backend `OrganizationInvitation` object is different in that it's used in the [Backend API](https://clerk.com/docs/reference/backend-api/tag/Organization-Invitations#operation/CreateOrganizationInvitation){{ target: '_blank' }} and is not directly accessible from the Frontend API.
5+
* The Backend `OrganizationInvitation` object is similar to the [`OrganizationInvitation`](https://clerk.com/docs/reference/types/organization-invitation) object as it's the model around an Organization invitation. However, the Backend `OrganizationInvitation` object is different in that it's used in the [Backend API](https://clerk.com/docs/reference/backend-api/tag/Organization-Invitations#operation/CreateOrganizationInvitation){{ target: '_blank' }} and is not directly accessible from the Frontend API.
66
*/
77
export class OrganizationInvitation {
88
private _raw: OrganizationInvitationJSON | null = null;

0 commit comments

Comments
 (0)