@clerk/types 4.75.0-canary.v20250811211124 → 4.75.0

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
@@ -1250,7 +1250,7 @@ interface CommerceSubscriptionItemResource extends ClerkResource {
1250
1250
  * <ClerkProvider clerkJsVersion="x.x.x" />
1251
1251
  * ```
1252
1252
  */
1253
- periodStartDate: Date;
1253
+ periodStart: Date;
1254
1254
  /**
1255
1255
  * @experimental This is an experimental API for the Billing feature that is available under a public beta, and the API is subject to change.
1256
1256
  * It is advised to pin the SDK version and the clerk-js version to a specific version to avoid breaking changes.
@@ -1259,7 +1259,7 @@ interface CommerceSubscriptionItemResource extends ClerkResource {
1259
1259
  * <ClerkProvider clerkJsVersion="x.x.x" />
1260
1260
  * ```
1261
1261
  */
1262
- periodEndDate: Date | null;
1262
+ periodEnd: Date | null;
1263
1263
  /**
1264
1264
  * @experimental This is an experimental API for the Billing feature that is available under a public beta, and the API is subject to change.
1265
1265
  * It is advised to pin the SDK version and the clerk-js version to a specific version to avoid breaking changes.
@@ -1268,19 +1268,7 @@ interface CommerceSubscriptionItemResource extends ClerkResource {
1268
1268
  * <ClerkProvider clerkJsVersion="x.x.x" />
1269
1269
  * ```
1270
1270
  */
1271
- canceledAtDate: Date | null;
1272
- /**
1273
- * @deprecated Use `periodStartDate` instead
1274
- */
1275
- periodStart: number;
1276
- /**
1277
- * @deprecated Use `periodEndDate` instead
1278
- */
1279
- periodEnd: number;
1280
- /**
1281
- * @deprecated Use `canceledAtDate` instead
1282
- */
1283
- canceledAt: number | null;
1271
+ canceledAt: Date | null;
1284
1272
  /**
1285
1273
  * @experimental This is an experimental API for the Billing feature that is available under a public beta, and the API is subject to change.
1286
1274
  * It is advised to pin the SDK version and the clerk-js version to a specific version to avoid breaking changes.
@@ -4672,7 +4660,10 @@ interface CommerceSubscriptionItemJSON extends ClerkResourceJSON {
4672
4660
  status: CommerceSubscriptionStatus;
4673
4661
  created_at: number;
4674
4662
  period_start: number;
4675
- period_end: number;
4663
+ /**
4664
+ * Period end is `null` for subscription items that are on the free plan.
4665
+ */
4666
+ period_end: number | null;
4676
4667
  canceled_at: number | null;
4677
4668
  past_due_at: number | null;
4678
4669
  }
package/dist/index.d.ts CHANGED
@@ -1250,7 +1250,7 @@ interface CommerceSubscriptionItemResource extends ClerkResource {
1250
1250
  * <ClerkProvider clerkJsVersion="x.x.x" />
1251
1251
  * ```
1252
1252
  */
1253
- periodStartDate: Date;
1253
+ periodStart: Date;
1254
1254
  /**
1255
1255
  * @experimental This is an experimental API for the Billing feature that is available under a public beta, and the API is subject to change.
1256
1256
  * It is advised to pin the SDK version and the clerk-js version to a specific version to avoid breaking changes.
@@ -1259,7 +1259,7 @@ interface CommerceSubscriptionItemResource extends ClerkResource {
1259
1259
  * <ClerkProvider clerkJsVersion="x.x.x" />
1260
1260
  * ```
1261
1261
  */
1262
- periodEndDate: Date | null;
1262
+ periodEnd: Date | null;
1263
1263
  /**
1264
1264
  * @experimental This is an experimental API for the Billing feature that is available under a public beta, and the API is subject to change.
1265
1265
  * It is advised to pin the SDK version and the clerk-js version to a specific version to avoid breaking changes.
@@ -1268,19 +1268,7 @@ interface CommerceSubscriptionItemResource extends ClerkResource {
1268
1268
  * <ClerkProvider clerkJsVersion="x.x.x" />
1269
1269
  * ```
1270
1270
  */
1271
- canceledAtDate: Date | null;
1272
- /**
1273
- * @deprecated Use `periodStartDate` instead
1274
- */
1275
- periodStart: number;
1276
- /**
1277
- * @deprecated Use `periodEndDate` instead
1278
- */
1279
- periodEnd: number;
1280
- /**
1281
- * @deprecated Use `canceledAtDate` instead
1282
- */
1283
- canceledAt: number | null;
1271
+ canceledAt: Date | null;
1284
1272
  /**
1285
1273
  * @experimental This is an experimental API for the Billing feature that is available under a public beta, and the API is subject to change.
1286
1274
  * It is advised to pin the SDK version and the clerk-js version to a specific version to avoid breaking changes.
@@ -4672,7 +4660,10 @@ interface CommerceSubscriptionItemJSON extends ClerkResourceJSON {
4672
4660
  status: CommerceSubscriptionStatus;
4673
4661
  created_at: number;
4674
4662
  period_start: number;
4675
- period_end: number;
4663
+ /**
4664
+ * Period end is `null` for subscription items that are on the free plan.
4665
+ */
4666
+ period_end: number | null;
4676
4667
  canceled_at: number | null;
4677
4668
  past_due_at: number | null;
4678
4669
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clerk/types",
3
- "version": "4.75.0-canary.v20250811211124",
3
+ "version": "4.75.0",
4
4
  "description": "Typings for Clerk libraries.",
5
5
  "keywords": [
6
6
  "clerk",