@clerk/types 4.68.0-snapshot.v20250717132356 → 4.68.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
@@ -283,7 +283,7 @@ interface CommerceBillingNamespace {
283
283
  * <ClerkProvider clerkJsVersion="x.x.x" />
284
284
  * ```
285
285
  */
286
- getPlans: (params?: GetPlansParams) => Promise<CommercePlanResource[]>;
286
+ getPlans: (params?: GetPlansParams) => Promise<ClerkPaginatedResponse<CommercePlanResource>>;
287
287
  /**
288
288
  * @experimental This is an experimental API for the Billing feature that is available under a public beta, and the API is subject to change.
289
289
  * It is advised to pin the SDK version and the clerk-js version to a specific version to avoid breaking changes.
@@ -442,7 +442,7 @@ interface CommerceProductResource extends ClerkResource {
442
442
  * <ClerkProvider clerkJsVersion="x.x.x" />
443
443
  * ```
444
444
  */
445
- interface GetPlansParams {
445
+ type GetPlansParams = ClerkPaginationParams<{
446
446
  /**
447
447
  * @experimental This is an experimental API for the Billing feature that is available under a public beta, and the API is subject to change.
448
448
  * It is advised to pin the SDK version and the clerk-js version to a specific version to avoid breaking changes.
@@ -451,8 +451,8 @@ interface GetPlansParams {
451
451
  * <ClerkProvider clerkJsVersion="x.x.x" />
452
452
  * ```
453
453
  */
454
- subscriberType?: CommerceSubscriberType;
455
- }
454
+ for?: CommerceSubscriberType;
455
+ }>;
456
456
  /**
457
457
  * @experimental This is an experimental API for the Billing feature that is available under a public beta, and the API is subject to change.
458
458
  * It is advised to pin the SDK version and the clerk-js version to a specific version to avoid breaking changes.
@@ -8612,18 +8612,20 @@ interface HandleEmailLinkVerificationParams {
8612
8612
  */
8613
8613
  onVerifiedOnOtherDevice?: () => void;
8614
8614
  }
8615
- type ButtonPropsModal<T extends SignInProps | SignUpProps> = {
8615
+ type SignInButtonPropsModal = {
8616
8616
  mode: 'modal';
8617
- appearance?: T['appearance'];
8617
+ appearance?: SignInProps['appearance'];
8618
+ };
8619
+ type SignUpButtonPropsModal = {
8620
+ mode: 'modal';
8621
+ appearance?: SignUpProps['appearance'];
8622
+ unsafeMetadata?: SignUpUnsafeMetadata;
8618
8623
  };
8619
8624
  type ButtonPropsRedirect = {
8620
8625
  mode?: 'redirect';
8621
8626
  };
8622
- type ButtonProps<T extends SignInProps | SignUpProps> = ButtonPropsModal<T> | ButtonPropsRedirect;
8623
- type SignInButtonProps = ButtonProps<SignInProps> & Pick<SignInProps, 'fallbackRedirectUrl' | 'forceRedirectUrl' | 'signUpForceRedirectUrl' | 'signUpFallbackRedirectUrl' | 'initialValues' | 'withSignUp' | 'oauthFlow'>;
8624
- type SignUpButtonProps = {
8625
- unsafeMetadata?: SignUpUnsafeMetadata;
8626
- } & ButtonProps<SignUpProps> & Pick<SignUpProps, 'fallbackRedirectUrl' | 'forceRedirectUrl' | 'signInForceRedirectUrl' | 'signInFallbackRedirectUrl' | 'initialValues' | 'oauthFlow'>;
8627
+ type SignInButtonProps = (SignInButtonPropsModal | ButtonPropsRedirect) & Pick<SignInProps, 'fallbackRedirectUrl' | 'forceRedirectUrl' | 'signUpForceRedirectUrl' | 'signUpFallbackRedirectUrl' | 'initialValues' | 'withSignUp' | 'oauthFlow'>;
8628
+ type SignUpButtonProps = (SignUpButtonPropsModal | ButtonPropsRedirect) & Pick<SignUpProps, 'fallbackRedirectUrl' | 'forceRedirectUrl' | 'signInForceRedirectUrl' | 'signInFallbackRedirectUrl' | 'initialValues' | 'oauthFlow'>;
8627
8629
  type CreateOrganizationInvitationParams = {
8628
8630
  emailAddress: string;
8629
8631
  role: OrganizationCustomRoleKey;
package/dist/index.d.ts CHANGED
@@ -283,7 +283,7 @@ interface CommerceBillingNamespace {
283
283
  * <ClerkProvider clerkJsVersion="x.x.x" />
284
284
  * ```
285
285
  */
286
- getPlans: (params?: GetPlansParams) => Promise<CommercePlanResource[]>;
286
+ getPlans: (params?: GetPlansParams) => Promise<ClerkPaginatedResponse<CommercePlanResource>>;
287
287
  /**
288
288
  * @experimental This is an experimental API for the Billing feature that is available under a public beta, and the API is subject to change.
289
289
  * It is advised to pin the SDK version and the clerk-js version to a specific version to avoid breaking changes.
@@ -442,7 +442,7 @@ interface CommerceProductResource extends ClerkResource {
442
442
  * <ClerkProvider clerkJsVersion="x.x.x" />
443
443
  * ```
444
444
  */
445
- interface GetPlansParams {
445
+ type GetPlansParams = ClerkPaginationParams<{
446
446
  /**
447
447
  * @experimental This is an experimental API for the Billing feature that is available under a public beta, and the API is subject to change.
448
448
  * It is advised to pin the SDK version and the clerk-js version to a specific version to avoid breaking changes.
@@ -451,8 +451,8 @@ interface GetPlansParams {
451
451
  * <ClerkProvider clerkJsVersion="x.x.x" />
452
452
  * ```
453
453
  */
454
- subscriberType?: CommerceSubscriberType;
455
- }
454
+ for?: CommerceSubscriberType;
455
+ }>;
456
456
  /**
457
457
  * @experimental This is an experimental API for the Billing feature that is available under a public beta, and the API is subject to change.
458
458
  * It is advised to pin the SDK version and the clerk-js version to a specific version to avoid breaking changes.
@@ -8612,18 +8612,20 @@ interface HandleEmailLinkVerificationParams {
8612
8612
  */
8613
8613
  onVerifiedOnOtherDevice?: () => void;
8614
8614
  }
8615
- type ButtonPropsModal<T extends SignInProps | SignUpProps> = {
8615
+ type SignInButtonPropsModal = {
8616
8616
  mode: 'modal';
8617
- appearance?: T['appearance'];
8617
+ appearance?: SignInProps['appearance'];
8618
+ };
8619
+ type SignUpButtonPropsModal = {
8620
+ mode: 'modal';
8621
+ appearance?: SignUpProps['appearance'];
8622
+ unsafeMetadata?: SignUpUnsafeMetadata;
8618
8623
  };
8619
8624
  type ButtonPropsRedirect = {
8620
8625
  mode?: 'redirect';
8621
8626
  };
8622
- type ButtonProps<T extends SignInProps | SignUpProps> = ButtonPropsModal<T> | ButtonPropsRedirect;
8623
- type SignInButtonProps = ButtonProps<SignInProps> & Pick<SignInProps, 'fallbackRedirectUrl' | 'forceRedirectUrl' | 'signUpForceRedirectUrl' | 'signUpFallbackRedirectUrl' | 'initialValues' | 'withSignUp' | 'oauthFlow'>;
8624
- type SignUpButtonProps = {
8625
- unsafeMetadata?: SignUpUnsafeMetadata;
8626
- } & ButtonProps<SignUpProps> & Pick<SignUpProps, 'fallbackRedirectUrl' | 'forceRedirectUrl' | 'signInForceRedirectUrl' | 'signInFallbackRedirectUrl' | 'initialValues' | 'oauthFlow'>;
8627
+ type SignInButtonProps = (SignInButtonPropsModal | ButtonPropsRedirect) & Pick<SignInProps, 'fallbackRedirectUrl' | 'forceRedirectUrl' | 'signUpForceRedirectUrl' | 'signUpFallbackRedirectUrl' | 'initialValues' | 'withSignUp' | 'oauthFlow'>;
8628
+ type SignUpButtonProps = (SignUpButtonPropsModal | ButtonPropsRedirect) & Pick<SignUpProps, 'fallbackRedirectUrl' | 'forceRedirectUrl' | 'signInForceRedirectUrl' | 'signInFallbackRedirectUrl' | 'initialValues' | 'oauthFlow'>;
8627
8629
  type CreateOrganizationInvitationParams = {
8628
8630
  emailAddress: string;
8629
8631
  role: OrganizationCustomRoleKey;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clerk/types",
3
- "version": "4.68.0-snapshot.v20250717132356",
3
+ "version": "4.68.0",
4
4
  "description": "Typings for Clerk libraries.",
5
5
  "keywords": [
6
6
  "clerk",