@clerk/types 4.63.0 → 4.64.0-canary.v20250707104434

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -288,6 +288,22 @@ interface CommercePlanResource extends ClerkResource {
288
288
  isDefault: boolean;
289
289
  isRecurring: boolean;
290
290
  hasBaseFee: boolean;
291
+ /**
292
+ * Specifies the subscriber type this plan is designed for.
293
+ *
294
+ * Each plan is exclusively created for either individual users or organizations,
295
+ * and cannot be used interchangeably.
296
+ *
297
+ * @type {['user'] | ['org']}
298
+ * @example
299
+ * ```ts
300
+ * // For a user plan
301
+ * payerType: ['user']
302
+ *
303
+ * // For an organization plan
304
+ * payerType: ['org']
305
+ * ```
306
+ */
291
307
  payerType: string[];
292
308
  publiclyVisible: boolean;
293
309
  slug: string;
@@ -3172,6 +3188,22 @@ interface CommercePlanJSON extends ClerkResourceJSON {
3172
3188
  is_default: boolean;
3173
3189
  is_recurring: boolean;
3174
3190
  has_base_fee: boolean;
3191
+ /**
3192
+ * Specifies the subscriber type this plan is designed for.
3193
+ *
3194
+ * Each plan is exclusively created for either individual users or organizations,
3195
+ * and cannot be used interchangeably.
3196
+ *
3197
+ * @type {['user'] | ['org']}
3198
+ * @example
3199
+ * ```ts
3200
+ * // For a user plan
3201
+ * payer_type: ['user']
3202
+ *
3203
+ * // For an organization plan
3204
+ * payer_type: ['org']
3205
+ * ```
3206
+ */
3175
3207
  payer_type: string[];
3176
3208
  publicly_visible: boolean;
3177
3209
  slug: string;
@@ -6020,6 +6052,11 @@ interface Clerk {
6020
6052
  * @param targetNode Target node to unmount the OAuth consent component from.
6021
6053
  */
6022
6054
  __internal_unmountOAuthConsent: (targetNode: HTMLDivElement) => void;
6055
+ /**
6056
+ * @internal
6057
+ * Loads Stripe libraries for commerce functionality
6058
+ */
6059
+ __internal_loadStripeJs: () => Promise<any>;
6023
6060
  /**
6024
6061
  * Register a listener that triggers a callback each time important Clerk resources are changed.
6025
6062
  * Allows to hook up at different steps in the sign up, sign in processes.
package/dist/index.d.ts CHANGED
@@ -288,6 +288,22 @@ interface CommercePlanResource extends ClerkResource {
288
288
  isDefault: boolean;
289
289
  isRecurring: boolean;
290
290
  hasBaseFee: boolean;
291
+ /**
292
+ * Specifies the subscriber type this plan is designed for.
293
+ *
294
+ * Each plan is exclusively created for either individual users or organizations,
295
+ * and cannot be used interchangeably.
296
+ *
297
+ * @type {['user'] | ['org']}
298
+ * @example
299
+ * ```ts
300
+ * // For a user plan
301
+ * payerType: ['user']
302
+ *
303
+ * // For an organization plan
304
+ * payerType: ['org']
305
+ * ```
306
+ */
291
307
  payerType: string[];
292
308
  publiclyVisible: boolean;
293
309
  slug: string;
@@ -3172,6 +3188,22 @@ interface CommercePlanJSON extends ClerkResourceJSON {
3172
3188
  is_default: boolean;
3173
3189
  is_recurring: boolean;
3174
3190
  has_base_fee: boolean;
3191
+ /**
3192
+ * Specifies the subscriber type this plan is designed for.
3193
+ *
3194
+ * Each plan is exclusively created for either individual users or organizations,
3195
+ * and cannot be used interchangeably.
3196
+ *
3197
+ * @type {['user'] | ['org']}
3198
+ * @example
3199
+ * ```ts
3200
+ * // For a user plan
3201
+ * payer_type: ['user']
3202
+ *
3203
+ * // For an organization plan
3204
+ * payer_type: ['org']
3205
+ * ```
3206
+ */
3175
3207
  payer_type: string[];
3176
3208
  publicly_visible: boolean;
3177
3209
  slug: string;
@@ -6020,6 +6052,11 @@ interface Clerk {
6020
6052
  * @param targetNode Target node to unmount the OAuth consent component from.
6021
6053
  */
6022
6054
  __internal_unmountOAuthConsent: (targetNode: HTMLDivElement) => void;
6055
+ /**
6056
+ * @internal
6057
+ * Loads Stripe libraries for commerce functionality
6058
+ */
6059
+ __internal_loadStripeJs: () => Promise<any>;
6023
6060
  /**
6024
6061
  * Register a listener that triggers a callback each time important Clerk resources are changed.
6025
6062
  * Allows to hook up at different steps in the sign up, sign in processes.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clerk/types",
3
- "version": "4.63.0",
3
+ "version": "4.64.0-canary.v20250707104434",
4
4
  "description": "Typings for Clerk libraries.",
5
5
  "keywords": [
6
6
  "clerk",