@clerk/types 4.75.0 → 4.76.0-canary.v20250812164045

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
@@ -1306,6 +1306,15 @@ interface CommerceSubscriptionItemResource extends ClerkResource {
1306
1306
  * ```
1307
1307
  */
1308
1308
  cancel: (params: CancelSubscriptionParams) => Promise<DeletedObjectResource>;
1309
+ /**
1310
+ * @experimental This is an experimental API for the Billing feature that is available under a public beta, and the API is subject to change.
1311
+ * It is advised to pin the SDK version and the clerk-js version to a specific version to avoid breaking changes.
1312
+ * @example
1313
+ * ```tsx
1314
+ * <ClerkProvider clerkJsVersion="x.x.x" />
1315
+ * ```
1316
+ */
1317
+ isFreeTrial: boolean;
1309
1318
  }
1310
1319
  /**
1311
1320
  * @experimental This is an experimental API for the Billing feature that is available under a public beta, and the API is subject to change.
@@ -1411,6 +1420,15 @@ interface CommerceSubscriptionResource extends ClerkResource {
1411
1420
  * ```
1412
1421
  */
1413
1422
  updatedAt: Date | null;
1423
+ /**
1424
+ * @experimental This is an experimental API for the Billing feature that is available under a public beta, and the API is subject to change.
1425
+ * It is advised to pin the SDK version and the clerk-js version to a specific version to avoid breaking changes.
1426
+ * @example
1427
+ * ```tsx
1428
+ * <ClerkProvider clerkJsVersion="x.x.x" />
1429
+ * ```
1430
+ */
1431
+ eligibleForFreeTrial?: boolean;
1414
1432
  }
1415
1433
  /**
1416
1434
  * @experimental This is an experimental API for the Billing feature that is available under a public beta, and the API is subject to change.
@@ -4666,6 +4684,7 @@ interface CommerceSubscriptionItemJSON extends ClerkResourceJSON {
4666
4684
  period_end: number | null;
4667
4685
  canceled_at: number | null;
4668
4686
  past_due_at: number | null;
4687
+ is_free_trial: boolean;
4669
4688
  }
4670
4689
  /**
4671
4690
  * @experimental This is an experimental API for the Billing feature that is available under a public beta, and the API is subject to change.
@@ -4694,6 +4713,7 @@ interface CommerceSubscriptionJSON extends ClerkResourceJSON {
4694
4713
  updated_at: number | null;
4695
4714
  past_due_at: number | null;
4696
4715
  subscription_items: CommerceSubscriptionItemJSON[] | null;
4716
+ eligible_for_free_trial?: boolean;
4697
4717
  }
4698
4718
  /**
4699
4719
  * @experimental This is an experimental API for the Billing feature that is available under a public beta, and the API is subject to change.
package/dist/index.d.ts CHANGED
@@ -1306,6 +1306,15 @@ interface CommerceSubscriptionItemResource extends ClerkResource {
1306
1306
  * ```
1307
1307
  */
1308
1308
  cancel: (params: CancelSubscriptionParams) => Promise<DeletedObjectResource>;
1309
+ /**
1310
+ * @experimental This is an experimental API for the Billing feature that is available under a public beta, and the API is subject to change.
1311
+ * It is advised to pin the SDK version and the clerk-js version to a specific version to avoid breaking changes.
1312
+ * @example
1313
+ * ```tsx
1314
+ * <ClerkProvider clerkJsVersion="x.x.x" />
1315
+ * ```
1316
+ */
1317
+ isFreeTrial: boolean;
1309
1318
  }
1310
1319
  /**
1311
1320
  * @experimental This is an experimental API for the Billing feature that is available under a public beta, and the API is subject to change.
@@ -1411,6 +1420,15 @@ interface CommerceSubscriptionResource extends ClerkResource {
1411
1420
  * ```
1412
1421
  */
1413
1422
  updatedAt: Date | null;
1423
+ /**
1424
+ * @experimental This is an experimental API for the Billing feature that is available under a public beta, and the API is subject to change.
1425
+ * It is advised to pin the SDK version and the clerk-js version to a specific version to avoid breaking changes.
1426
+ * @example
1427
+ * ```tsx
1428
+ * <ClerkProvider clerkJsVersion="x.x.x" />
1429
+ * ```
1430
+ */
1431
+ eligibleForFreeTrial?: boolean;
1414
1432
  }
1415
1433
  /**
1416
1434
  * @experimental This is an experimental API for the Billing feature that is available under a public beta, and the API is subject to change.
@@ -4666,6 +4684,7 @@ interface CommerceSubscriptionItemJSON extends ClerkResourceJSON {
4666
4684
  period_end: number | null;
4667
4685
  canceled_at: number | null;
4668
4686
  past_due_at: number | null;
4687
+ is_free_trial: boolean;
4669
4688
  }
4670
4689
  /**
4671
4690
  * @experimental This is an experimental API for the Billing feature that is available under a public beta, and the API is subject to change.
@@ -4694,6 +4713,7 @@ interface CommerceSubscriptionJSON extends ClerkResourceJSON {
4694
4713
  updated_at: number | null;
4695
4714
  past_due_at: number | null;
4696
4715
  subscription_items: CommerceSubscriptionItemJSON[] | null;
4716
+ eligible_for_free_trial?: boolean;
4697
4717
  }
4698
4718
  /**
4699
4719
  * @experimental This is an experimental API for the Billing feature that is available under a public beta, and the API is subject to change.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clerk/types",
3
- "version": "4.75.0",
3
+ "version": "4.76.0-canary.v20250812164045",
4
4
  "description": "Typings for Clerk libraries.",
5
5
  "keywords": [
6
6
  "clerk",