@clerk/types 4.71.0 → 4.71.1-canary.v20250729182827

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
@@ -275,6 +275,18 @@ interface CommerceBillingNamespace {
275
275
  * ```
276
276
  */
277
277
  getPaymentAttempts: (params: GetPaymentAttemptsParams) => Promise<ClerkPaginatedResponse<CommercePaymentResource>>;
278
+ /**
279
+ * @experimental This is an experimental API for the Billing feature that is available under a public beta, and the API is subject to change.
280
+ * It is advised to pin the SDK version and the clerk-js version to a specific version to avoid breaking changes.
281
+ * @example
282
+ * ```tsx
283
+ * <ClerkProvider clerkJsVersion="x.x.x" />
284
+ * ```
285
+ */
286
+ getPaymentAttempt: (params: {
287
+ id: string;
288
+ orgId?: string;
289
+ }) => Promise<CommercePaymentResource>;
278
290
  /**
279
291
  * @experimental This is an experimental API for the Billing feature that is available under a public beta, and the API is subject to change.
280
292
  * It is advised to pin the SDK version and the clerk-js version to a specific version to avoid breaking changes.
@@ -323,6 +335,18 @@ interface CommerceBillingNamespace {
323
335
  * ```
324
336
  */
325
337
  getStatements: (params: GetStatementsParams) => Promise<ClerkPaginatedResponse<CommerceStatementResource>>;
338
+ /**
339
+ * @experimental This is an experimental API for the Billing feature that is available under a public beta, and the API is subject to change.
340
+ * It is advised to pin the SDK version and the clerk-js version to a specific version to avoid breaking changes.
341
+ * @example
342
+ * ```tsx
343
+ * <ClerkProvider clerkJsVersion="x.x.x" />
344
+ * ```
345
+ */
346
+ getStatement: (params: {
347
+ id: string;
348
+ orgId?: string;
349
+ }) => Promise<CommerceStatementResource>;
326
350
  /**
327
351
  * @experimental This is an experimental API for the Billing feature that is available under a public beta, and the API is subject to change.
328
352
  * It is advised to pin the SDK version and the clerk-js version to a specific version to avoid breaking changes.
@@ -6055,6 +6079,7 @@ type __internal_LocalizationResource = {
6055
6079
  defaultFreePlanActive: LocalizationValue;
6056
6080
  viewFeatures: LocalizationValue;
6057
6081
  seeAllFeatures: LocalizationValue;
6082
+ viewPayment: LocalizationValue;
6058
6083
  availableFeatures: LocalizationValue;
6059
6084
  subtotal: LocalizationValue;
6060
6085
  credit: LocalizationValue;
package/dist/index.d.ts CHANGED
@@ -275,6 +275,18 @@ interface CommerceBillingNamespace {
275
275
  * ```
276
276
  */
277
277
  getPaymentAttempts: (params: GetPaymentAttemptsParams) => Promise<ClerkPaginatedResponse<CommercePaymentResource>>;
278
+ /**
279
+ * @experimental This is an experimental API for the Billing feature that is available under a public beta, and the API is subject to change.
280
+ * It is advised to pin the SDK version and the clerk-js version to a specific version to avoid breaking changes.
281
+ * @example
282
+ * ```tsx
283
+ * <ClerkProvider clerkJsVersion="x.x.x" />
284
+ * ```
285
+ */
286
+ getPaymentAttempt: (params: {
287
+ id: string;
288
+ orgId?: string;
289
+ }) => Promise<CommercePaymentResource>;
278
290
  /**
279
291
  * @experimental This is an experimental API for the Billing feature that is available under a public beta, and the API is subject to change.
280
292
  * It is advised to pin the SDK version and the clerk-js version to a specific version to avoid breaking changes.
@@ -323,6 +335,18 @@ interface CommerceBillingNamespace {
323
335
  * ```
324
336
  */
325
337
  getStatements: (params: GetStatementsParams) => Promise<ClerkPaginatedResponse<CommerceStatementResource>>;
338
+ /**
339
+ * @experimental This is an experimental API for the Billing feature that is available under a public beta, and the API is subject to change.
340
+ * It is advised to pin the SDK version and the clerk-js version to a specific version to avoid breaking changes.
341
+ * @example
342
+ * ```tsx
343
+ * <ClerkProvider clerkJsVersion="x.x.x" />
344
+ * ```
345
+ */
346
+ getStatement: (params: {
347
+ id: string;
348
+ orgId?: string;
349
+ }) => Promise<CommerceStatementResource>;
326
350
  /**
327
351
  * @experimental This is an experimental API for the Billing feature that is available under a public beta, and the API is subject to change.
328
352
  * It is advised to pin the SDK version and the clerk-js version to a specific version to avoid breaking changes.
@@ -6055,6 +6079,7 @@ type __internal_LocalizationResource = {
6055
6079
  defaultFreePlanActive: LocalizationValue;
6056
6080
  viewFeatures: LocalizationValue;
6057
6081
  seeAllFeatures: LocalizationValue;
6082
+ viewPayment: LocalizationValue;
6058
6083
  availableFeatures: LocalizationValue;
6059
6084
  subtotal: LocalizationValue;
6060
6085
  credit: LocalizationValue;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clerk/types",
3
- "version": "4.71.0",
3
+ "version": "4.71.1-canary.v20250729182827",
4
4
  "description": "Typings for Clerk libraries.",
5
5
  "keywords": [
6
6
  "clerk",