Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions clerk-typedoc/backend/auth-object.mdx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
## Properties

| Property | Type | Description |
| ---------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <a id="debug"></a> `debug` | <code>() => \{ [key: string]: any; \}</code> | Used to help debug issues when using Clerk in development. |
| <a id="gettoken"></a> `getToken` | <code>() => Promise\<null\> \| () => Promise\<string\> \| [ServerGetToken](../types/server-get-token.mdx) \| () => Promise\<null\></code> | A function that gets the current user's [session token](/docs/guides/sessions/session-tokens) or a [custom JWT template](/docs/guides/sessions/jwt-templates). |
| <a id="has"></a> `has` | <code>[CheckAuthorizationFromSessionClaims](../types/check-authorization-from-session-claims.mdx) \| () => false</code> | A function that checks if the user has an organization role or custom permission. |
| <a id="tokentype"></a> `tokenType` | <code>null \| "api_key" \| "session_token" \| "m2m_token" \| "oauth_token"</code> | The allowed token type. |
| Property | Type | Description |
| ---------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <a id="debug"></a> `debug` | <code>() => \{ [key: string]: any; \}</code> | Used to help debug issues when using Clerk in development. |
| <a id="gettoken"></a> `getToken` | <code>() => Promise\<null\> \| () => Promise\<string\> \| ServerGetToken \| () => Promise\<null\></code> | A function that gets the current user's [session token](/docs/guides/sessions/session-tokens) or a [custom JWT template](/docs/guides/sessions/jwt-templates). |
| <a id="has"></a> `has` | <code>CheckAuthorizationFromSessionClaims \| () => false</code> | A function that checks if the user has an organization role or custom permission. |
| <a id="tokentype"></a> `tokenType` | <code>null \| "api_key" \| "session_token" \| "m2m_token" \| "oauth_token"</code> | The allowed token type. |
32 changes: 16 additions & 16 deletions clerk-typedoc/backend/billing-plan.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,19 @@ The `BillingPlan` object is similar to the [`BillingPlanResource`](/docs/referen

## Properties

| Property | Type | Description |
| ------------------------------------------------ | ----------------------------------------------------------------------------- | --------------------------------------------------------------- |
| <a id="annualfee"></a> `annualFee` | [`BillingMoneyAmount`](/docs/reference/javascript/types/billing-money-amount) | The annual fee of the plan. |
| <a id="annualmonthlyfee"></a> `annualMonthlyFee` | [`BillingMoneyAmount`](/docs/reference/javascript/types/billing-money-amount) | The annual fee of the plan on a monthly basis. |
| <a id="description"></a> `description` | <code>undefined \| string</code> | The description of the plan. |
| <a id="features"></a> `features` | <code>[Feature](feature.mdx)[]</code> | The features the plan offers. |
| <a id="fee"></a> `fee` | [`BillingMoneyAmount`](/docs/reference/javascript/types/billing-money-amount) | The monthly fee of the plan. |
| <a id="forpayertype"></a> `forPayerType` | <code>"user" \| "org"</code> | The type of payer for the plan. |
| <a id="hasbasefee"></a> `hasBaseFee` | `boolean` | Whether the plan has a base fee. |
| <a id="id"></a> `id` | `string` | The unique identifier for the plan. |
| <a id="isdefault"></a> `isDefault` | `boolean` | Whether the plan is the default plan. |
| <a id="isrecurring"></a> `isRecurring` | `boolean` | Whether the plan is recurring. |
| <a id="name"></a> `name` | `string` | The name of the plan. |
| <a id="productid"></a> `productId` | `string` | The ID of the product the plan belongs to. |
| <a id="publiclyvisible"></a> `publiclyVisible` | `boolean` | Whether the plan is displayed in the `<PriceTable/>` component. |
| <a id="slug"></a> `slug` | `string` | The URL-friendly identifier of the plan. |
| Property | Type | Description |
| ------------------------------------------------ | ------------------------------------- | --------------------------------------------------------------- |
| <a id="annualfee"></a> `annualFee` | `BillingMoneyAmount` | The annual fee of the plan. |
| <a id="annualmonthlyfee"></a> `annualMonthlyFee` | `BillingMoneyAmount` | The annual fee of the plan on a monthly basis. |
| <a id="description"></a> `description` | <code>undefined \| string</code> | The description of the plan. |
| <a id="features"></a> `features` | <code>[Feature](feature.mdx)[]</code> | The features the plan offers. |
| <a id="fee"></a> `fee` | `BillingMoneyAmount` | The monthly fee of the plan. |
| <a id="forpayertype"></a> `forPayerType` | <code>"user" \| "org"</code> | The type of payer for the plan. |
| <a id="hasbasefee"></a> `hasBaseFee` | `boolean` | Whether the plan has a base fee. |
| <a id="id"></a> `id` | `string` | The unique identifier for the plan. |
| <a id="isdefault"></a> `isDefault` | `boolean` | Whether the plan is the default plan. |
| <a id="isrecurring"></a> `isRecurring` | `boolean` | Whether the plan is recurring. |
| <a id="name"></a> `name` | `string` | The name of the plan. |
| <a id="productid"></a> `productId` | `string` | The ID of the product the plan belongs to. |
| <a id="publiclyvisible"></a> `publiclyVisible` | `boolean` | Whether the plan is displayed in the `<PriceTable/>` component. |
| <a id="slug"></a> `slug` | `string` | The URL-friendly identifier of the plan. |
38 changes: 19 additions & 19 deletions clerk-typedoc/backend/billing-subscription-item.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,22 @@ The `BillingSubscriptionItem` object is similar to the [`BillingSubscriptionItem

## Properties

| Property | Type | Description |
| ----------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------- |
| <a id="amount"></a> `amount` | <code>undefined \| null \| [BillingMoneyAmount](/docs/reference/javascript/types/billing-money-amount)</code> | The current amount for the subscription item. |
| <a id="canceledat"></a> `canceledAt` | <code>null \| number</code> | Unix timestamp (milliseconds) of when the subscription item was canceled. |
| <a id="createdat"></a> `createdAt` | `number` | Unix timestamp (milliseconds) of when the subscription item was created. |
| <a id="endedat"></a> `endedAt` | <code>null \| number</code> | Unix timestamp (milliseconds) of when the subscription item ended. |
| <a id="id"></a> `id` | `string` | The unique identifier for the subscription item. |
| <a id="isfreetrial"></a> `isFreeTrial?` | `boolean` | Whether this subscription item is currently in a free trial period. |
| <a id="lifetimepaid"></a> `lifetimePaid?` | <code>null \| [BillingMoneyAmount](/docs/reference/javascript/types/billing-money-amount)</code> | The lifetime amount paid for this subscription item. |
| <a id="nextpayment"></a> `nextPayment` | <code>null \| \{ amount: number; date: number; \}</code> | The next payment information. |
| <a id="pastdueat"></a> `pastDueAt` | <code>null \| number</code> | Unix timestamp (milliseconds) of when the subscription item became past due. |
| <a id="payerid"></a> `payerId` | `string` | The payer ID. |
| <a id="periodend"></a> `periodEnd` | <code>null \| number</code> | Unix timestamp (milliseconds) of when the current period ends. |
| <a id="periodstart"></a> `periodStart` | `number` | Unix timestamp (milliseconds) of when the current period starts. |
| <a id="plan"></a> `plan` | <code>null \| [BillingPlan](billing-plan.mdx)</code> | The plan associated with this subscription item. |
| <a id="planid"></a> `planId` | <code>null \| string</code> | The plan ID. |
| <a id="planperiod"></a> `planPeriod` | <code>"month" \| "annual"</code> | The plan period for the subscription item. |
| <a id="status"></a> `status` | `BillingSubscriptionItemStatus` | The status of the subscription item. |
| <a id="updatedat"></a> `updatedAt` | `number` | Unix timestamp (milliseconds) of when the subscription item was last updated. |
| Property | Type | Description |
| ----------------------------------------- | -------------------------------------------------------- | ----------------------------------------------------------------------------- |
| <a id="amount"></a> `amount` | <code>undefined \| null \| BillingMoneyAmount</code> | The current amount for the subscription item. |
| <a id="canceledat"></a> `canceledAt` | <code>null \| number</code> | Unix timestamp (milliseconds) of when the subscription item was canceled. |
| <a id="createdat"></a> `createdAt` | `number` | Unix timestamp (milliseconds) of when the subscription item was created. |
| <a id="endedat"></a> `endedAt` | <code>null \| number</code> | Unix timestamp (milliseconds) of when the subscription item ended. |
| <a id="id"></a> `id` | `string` | The unique identifier for the subscription item. |
| <a id="isfreetrial"></a> `isFreeTrial?` | `boolean` | Whether this subscription item is currently in a free trial period. |
| <a id="lifetimepaid"></a> `lifetimePaid?` | <code>null \| BillingMoneyAmount</code> | The lifetime amount paid for this subscription item. |
| <a id="nextpayment"></a> `nextPayment` | <code>null \| \{ amount: number; date: number; \}</code> | The next payment information. |
| <a id="pastdueat"></a> `pastDueAt` | <code>null \| number</code> | Unix timestamp (milliseconds) of when the subscription item became past due. |
| <a id="payerid"></a> `payerId` | `string` | The payer ID. |
| <a id="periodend"></a> `periodEnd` | <code>null \| number</code> | Unix timestamp (milliseconds) of when the current period ends. |
| <a id="periodstart"></a> `periodStart` | `number` | Unix timestamp (milliseconds) of when the current period starts. |
| <a id="plan"></a> `plan` | <code>null \| [BillingPlan](billing-plan.mdx)</code> | The plan associated with this subscription item. |
| <a id="planid"></a> `planId` | <code>null \| string</code> | The plan ID. |
| <a id="planperiod"></a> `planPeriod` | <code>"month" \| "annual"</code> | The plan period for the subscription item. |
| <a id="status"></a> `status` | `BillingSubscriptionItemStatus` | The status of the subscription item. |
| <a id="updatedat"></a> `updatedAt` | `number` | Unix timestamp (milliseconds) of when the subscription item was last updated. |
Loading