@clerk/types 4.93.0-canary.v20251013115124 → 4.93.0-canary.v20251013161151

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
@@ -434,7 +434,7 @@ interface FeatureResource extends ClerkResource {
434
434
  avatarUrl: string;
435
435
  }
436
436
  /**
437
- * The status of a payment source.
437
+ * The status of a payment method.
438
438
  * @inline
439
439
  */
440
440
  type BillingPaymentMethodStatus = 'active' | 'expired' | 'disconnected';
@@ -517,9 +517,9 @@ interface BillingPaymentMethodResource extends ClerkResource {
517
517
  */
518
518
  walletType: string | undefined;
519
519
  /**
520
- * A function that removes this payment source from the account. Accepts the following parameters:
520
+ * A function that removes this payment method from the account. Accepts the following parameters:
521
521
  * <ul>
522
- * <li>`orgId?` (`string`): The ID of the organization to remove the payment source from.</li>
522
+ * <li>`orgId?` (`string`): The ID of the organization to remove the payment method from.</li>
523
523
  * </ul>
524
524
  *
525
525
  * @param params - The parameters for the remove operation.
@@ -527,7 +527,7 @@ interface BillingPaymentMethodResource extends ClerkResource {
527
527
  */
528
528
  remove: (params?: RemovePaymentMethodParams) => Promise<DeletedObjectResource>;
529
529
  /**
530
- * A function that sets this payment source as the default for the account. Accepts the following parameters:
530
+ * A function that sets this payment method as the default for the account. Accepts the following parameters:
531
531
  * <ul>
532
532
  * <li>`orgId?` (`string`): The ID of the organization to set as the default.</li>
533
533
  * </ul>
@@ -593,7 +593,7 @@ interface BillingPaymentResource extends ClerkResource {
593
593
  */
594
594
  updatedAt: Date;
595
595
  /**
596
- * The payment source being used for the payment, such as credit card or bank account.
596
+ * The payment method being used for the payment, such as credit card or bank account.
597
597
  */
598
598
  paymentMethod: BillingPaymentMethodResource;
599
599
  /**
@@ -686,7 +686,7 @@ interface BillingSubscriptionItemResource extends ClerkResource {
686
686
  */
687
687
  id: string;
688
688
  /**
689
- * The unique identifier for the payment source being used for the subscription item.
689
+ * The unique identifier for the payment method being used for the subscription item.
690
690
  */
691
691
  paymentMethodId: string;
692
692
  /**
@@ -887,7 +887,7 @@ type CreateCheckoutParams = WithOptionalOrgType<{
887
887
  */
888
888
  type ConfirmCheckoutParams = {
889
889
  /**
890
- * The ID of a saved payment source to use for this checkout.
890
+ * The ID of a saved payment method to use for this checkout.
891
891
  */
892
892
  paymentSourceId?: string;
893
893
  } | {
@@ -1809,6 +1809,8 @@ interface SamlAccountResource extends ClerkResource {
1809
1809
  lastName: string;
1810
1810
  verification: VerificationResource | null;
1811
1811
  samlConnection: SamlAccountConnectionResource | null;
1812
+ lastAuthenticatedAt: Date | null;
1813
+ enterpriseConnectionId: string | null;
1812
1814
  __internal_toSnapshot: () => SamlAccountJSONSnapshot;
1813
1815
  }
1814
1816
 
@@ -3694,6 +3696,7 @@ interface EnterpriseAccountJSON extends ClerkResourceJSON {
3694
3696
  public_metadata: Record<string, unknown>;
3695
3697
  verification: VerificationJSON | null;
3696
3698
  last_authenticated_at: number | null;
3699
+ enterprise_connection_id: string | null;
3697
3700
  }
3698
3701
  interface EnterpriseAccountConnectionJSON extends ClerkResourceJSON {
3699
3702
  active: boolean;
@@ -3708,6 +3711,7 @@ interface EnterpriseAccountConnectionJSON extends ClerkResourceJSON {
3708
3711
  sync_user_attributes: boolean;
3709
3712
  created_at: number;
3710
3713
  updated_at: number;
3714
+ enterprise_connection_id: string | null;
3711
3715
  }
3712
3716
  interface SamlAccountJSON extends ClerkResourceJSON {
3713
3717
  object: 'saml_account';
@@ -3720,6 +3724,7 @@ interface SamlAccountJSON extends ClerkResourceJSON {
3720
3724
  verification?: VerificationJSON;
3721
3725
  saml_connection?: SamlAccountConnectionJSON;
3722
3726
  last_authenticated_at: number | null;
3727
+ enterprise_connection_id: string | null;
3723
3728
  }
3724
3729
  interface UserJSON extends ClerkResourceJSON {
3725
3730
  object: 'user';
@@ -4346,6 +4351,7 @@ interface EnterpriseAccountResource extends ClerkResource {
4346
4351
  active: boolean;
4347
4352
  emailAddress: string;
4348
4353
  enterpriseConnection: EnterpriseAccountConnectionResource | null;
4354
+ enterpriseConnectionId: string | null;
4349
4355
  firstName: string | null;
4350
4356
  lastName: string | null;
4351
4357
  protocol: EnterpriseProtocol;
@@ -4353,6 +4359,7 @@ interface EnterpriseAccountResource extends ClerkResource {
4353
4359
  providerUserId: string | null;
4354
4360
  publicMetadata: Record<string, unknown> | null;
4355
4361
  verification: VerificationResource | null;
4362
+ lastAuthenticatedAt: Date | null;
4356
4363
  __internal_toSnapshot: () => EnterpriseAccountJSONSnapshot;
4357
4364
  }
4358
4365
  interface EnterpriseAccountConnectionResource extends ClerkResource {
@@ -4366,6 +4373,7 @@ interface EnterpriseAccountConnectionResource extends ClerkResource {
4366
4373
  protocol: EnterpriseProtocol;
4367
4374
  provider: EnterpriseProvider;
4368
4375
  syncUserAttributes: boolean;
4376
+ enterpriseConnectionId: string | null;
4369
4377
  __internal_toSnapshot: () => EnterpriseAccountConnectionJSONSnapshot;
4370
4378
  }
4371
4379
 
@@ -5776,7 +5784,7 @@ type __internal_LocalizationResource = {
5776
5784
  membershipRole__admin: LocalizationValue;
5777
5785
  membershipRole__basicMember: LocalizationValue;
5778
5786
  membershipRole__guestMember: LocalizationValue;
5779
- commerce: {
5787
+ billing: {
5780
5788
  month: LocalizationValue;
5781
5789
  year: LocalizationValue;
5782
5790
  free: LocalizationValue;
@@ -5813,14 +5821,28 @@ type __internal_LocalizationResource = {
5813
5821
  totalDue: LocalizationValue;
5814
5822
  totalDueToday: LocalizationValue;
5815
5823
  pastDue: LocalizationValue;
5816
- paymentMethods: LocalizationValue;
5817
- addPaymentMethod: LocalizationValue;
5818
5824
  pay: LocalizationValue<'amount'>;
5819
5825
  cancelSubscriptionTitle: LocalizationValue<'plan'>;
5820
5826
  cancelSubscriptionNoCharge: LocalizationValue;
5821
5827
  cancelSubscriptionAccessUntil: LocalizationValue<'plan' | 'date'>;
5822
5828
  cancelSubscriptionPastDue: LocalizationValue;
5823
5829
  popular: LocalizationValue;
5830
+ paymentMethods__label: LocalizationValue;
5831
+ addPaymentMethod__label: LocalizationValue;
5832
+ paymentMethod: {
5833
+ dev: {
5834
+ testCardInfo: LocalizationValue;
5835
+ developmentMode: LocalizationValue;
5836
+ cardNumber: LocalizationValue;
5837
+ expirationDate: LocalizationValue;
5838
+ cvcZip: LocalizationValue;
5839
+ anyNumbers: LocalizationValue;
5840
+ };
5841
+ applePayDescription: {
5842
+ monthly: LocalizationValue;
5843
+ annual: LocalizationValue;
5844
+ };
5845
+ };
5824
5846
  subscriptionDetails: {
5825
5847
  title: LocalizationValue;
5826
5848
  currentBillingCycle: LocalizationValue;
@@ -5844,20 +5866,6 @@ type __internal_LocalizationResource = {
5844
5866
  billingCycle: LocalizationValue;
5845
5867
  included: LocalizationValue;
5846
5868
  };
5847
- paymentSource: {
5848
- dev: {
5849
- testCardInfo: LocalizationValue;
5850
- developmentMode: LocalizationValue;
5851
- cardNumber: LocalizationValue;
5852
- expirationDate: LocalizationValue;
5853
- cvcZip: LocalizationValue;
5854
- anyNumbers: LocalizationValue;
5855
- };
5856
- applePayDescription: {
5857
- monthly: LocalizationValue;
5858
- annual: LocalizationValue;
5859
- };
5860
- };
5861
5869
  checkout: {
5862
5870
  title: LocalizationValue;
5863
5871
  title__paymentSuccessful: LocalizationValue;
@@ -6505,7 +6513,7 @@ type __internal_LocalizationResource = {
6505
6513
  tableHeader__amount: LocalizationValue;
6506
6514
  tableHeader__status: LocalizationValue;
6507
6515
  };
6508
- paymentSourcesSection: {
6516
+ paymentMethodsSection: {
6509
6517
  title: LocalizationValue;
6510
6518
  add: LocalizationValue;
6511
6519
  addSubtitle: LocalizationValue;
@@ -6514,11 +6522,11 @@ type __internal_LocalizationResource = {
6514
6522
  actionLabel__remove: LocalizationValue;
6515
6523
  formButtonPrimary__add: LocalizationValue;
6516
6524
  formButtonPrimary__pay: LocalizationValue;
6517
- removeResource: {
6525
+ removeMethod: {
6518
6526
  title: LocalizationValue;
6519
6527
  messageLine1: LocalizationValue<'identifier'>;
6520
6528
  messageLine2: LocalizationValue;
6521
- successMessage: LocalizationValue<'paymentSource'>;
6529
+ successMessage: LocalizationValue<'paymentMethod'>;
6522
6530
  };
6523
6531
  payWithTestCardButton: LocalizationValue;
6524
6532
  };
@@ -6733,7 +6741,7 @@ type __internal_LocalizationResource = {
6733
6741
  tableHeader__amount: LocalizationValue;
6734
6742
  tableHeader__status: LocalizationValue;
6735
6743
  };
6736
- paymentSourcesSection: {
6744
+ paymentMethodsSection: {
6737
6745
  title: LocalizationValue;
6738
6746
  add: LocalizationValue;
6739
6747
  addSubtitle: LocalizationValue;
@@ -6742,11 +6750,11 @@ type __internal_LocalizationResource = {
6742
6750
  actionLabel__remove: LocalizationValue;
6743
6751
  formButtonPrimary__add: LocalizationValue;
6744
6752
  formButtonPrimary__pay: LocalizationValue;
6745
- removeResource: {
6753
+ removeMethod: {
6746
6754
  title: LocalizationValue;
6747
6755
  messageLine1: LocalizationValue<'identifier'>;
6748
6756
  messageLine2: LocalizationValue;
6749
- successMessage: LocalizationValue<'paymentSource'>;
6757
+ successMessage: LocalizationValue<'paymentMethod'>;
6750
6758
  };
6751
6759
  payWithTestCardButton: LocalizationValue;
6752
6760
  };
package/dist/index.d.ts CHANGED
@@ -434,7 +434,7 @@ interface FeatureResource extends ClerkResource {
434
434
  avatarUrl: string;
435
435
  }
436
436
  /**
437
- * The status of a payment source.
437
+ * The status of a payment method.
438
438
  * @inline
439
439
  */
440
440
  type BillingPaymentMethodStatus = 'active' | 'expired' | 'disconnected';
@@ -517,9 +517,9 @@ interface BillingPaymentMethodResource extends ClerkResource {
517
517
  */
518
518
  walletType: string | undefined;
519
519
  /**
520
- * A function that removes this payment source from the account. Accepts the following parameters:
520
+ * A function that removes this payment method from the account. Accepts the following parameters:
521
521
  * <ul>
522
- * <li>`orgId?` (`string`): The ID of the organization to remove the payment source from.</li>
522
+ * <li>`orgId?` (`string`): The ID of the organization to remove the payment method from.</li>
523
523
  * </ul>
524
524
  *
525
525
  * @param params - The parameters for the remove operation.
@@ -527,7 +527,7 @@ interface BillingPaymentMethodResource extends ClerkResource {
527
527
  */
528
528
  remove: (params?: RemovePaymentMethodParams) => Promise<DeletedObjectResource>;
529
529
  /**
530
- * A function that sets this payment source as the default for the account. Accepts the following parameters:
530
+ * A function that sets this payment method as the default for the account. Accepts the following parameters:
531
531
  * <ul>
532
532
  * <li>`orgId?` (`string`): The ID of the organization to set as the default.</li>
533
533
  * </ul>
@@ -593,7 +593,7 @@ interface BillingPaymentResource extends ClerkResource {
593
593
  */
594
594
  updatedAt: Date;
595
595
  /**
596
- * The payment source being used for the payment, such as credit card or bank account.
596
+ * The payment method being used for the payment, such as credit card or bank account.
597
597
  */
598
598
  paymentMethod: BillingPaymentMethodResource;
599
599
  /**
@@ -686,7 +686,7 @@ interface BillingSubscriptionItemResource extends ClerkResource {
686
686
  */
687
687
  id: string;
688
688
  /**
689
- * The unique identifier for the payment source being used for the subscription item.
689
+ * The unique identifier for the payment method being used for the subscription item.
690
690
  */
691
691
  paymentMethodId: string;
692
692
  /**
@@ -887,7 +887,7 @@ type CreateCheckoutParams = WithOptionalOrgType<{
887
887
  */
888
888
  type ConfirmCheckoutParams = {
889
889
  /**
890
- * The ID of a saved payment source to use for this checkout.
890
+ * The ID of a saved payment method to use for this checkout.
891
891
  */
892
892
  paymentSourceId?: string;
893
893
  } | {
@@ -1809,6 +1809,8 @@ interface SamlAccountResource extends ClerkResource {
1809
1809
  lastName: string;
1810
1810
  verification: VerificationResource | null;
1811
1811
  samlConnection: SamlAccountConnectionResource | null;
1812
+ lastAuthenticatedAt: Date | null;
1813
+ enterpriseConnectionId: string | null;
1812
1814
  __internal_toSnapshot: () => SamlAccountJSONSnapshot;
1813
1815
  }
1814
1816
 
@@ -3694,6 +3696,7 @@ interface EnterpriseAccountJSON extends ClerkResourceJSON {
3694
3696
  public_metadata: Record<string, unknown>;
3695
3697
  verification: VerificationJSON | null;
3696
3698
  last_authenticated_at: number | null;
3699
+ enterprise_connection_id: string | null;
3697
3700
  }
3698
3701
  interface EnterpriseAccountConnectionJSON extends ClerkResourceJSON {
3699
3702
  active: boolean;
@@ -3708,6 +3711,7 @@ interface EnterpriseAccountConnectionJSON extends ClerkResourceJSON {
3708
3711
  sync_user_attributes: boolean;
3709
3712
  created_at: number;
3710
3713
  updated_at: number;
3714
+ enterprise_connection_id: string | null;
3711
3715
  }
3712
3716
  interface SamlAccountJSON extends ClerkResourceJSON {
3713
3717
  object: 'saml_account';
@@ -3720,6 +3724,7 @@ interface SamlAccountJSON extends ClerkResourceJSON {
3720
3724
  verification?: VerificationJSON;
3721
3725
  saml_connection?: SamlAccountConnectionJSON;
3722
3726
  last_authenticated_at: number | null;
3727
+ enterprise_connection_id: string | null;
3723
3728
  }
3724
3729
  interface UserJSON extends ClerkResourceJSON {
3725
3730
  object: 'user';
@@ -4346,6 +4351,7 @@ interface EnterpriseAccountResource extends ClerkResource {
4346
4351
  active: boolean;
4347
4352
  emailAddress: string;
4348
4353
  enterpriseConnection: EnterpriseAccountConnectionResource | null;
4354
+ enterpriseConnectionId: string | null;
4349
4355
  firstName: string | null;
4350
4356
  lastName: string | null;
4351
4357
  protocol: EnterpriseProtocol;
@@ -4353,6 +4359,7 @@ interface EnterpriseAccountResource extends ClerkResource {
4353
4359
  providerUserId: string | null;
4354
4360
  publicMetadata: Record<string, unknown> | null;
4355
4361
  verification: VerificationResource | null;
4362
+ lastAuthenticatedAt: Date | null;
4356
4363
  __internal_toSnapshot: () => EnterpriseAccountJSONSnapshot;
4357
4364
  }
4358
4365
  interface EnterpriseAccountConnectionResource extends ClerkResource {
@@ -4366,6 +4373,7 @@ interface EnterpriseAccountConnectionResource extends ClerkResource {
4366
4373
  protocol: EnterpriseProtocol;
4367
4374
  provider: EnterpriseProvider;
4368
4375
  syncUserAttributes: boolean;
4376
+ enterpriseConnectionId: string | null;
4369
4377
  __internal_toSnapshot: () => EnterpriseAccountConnectionJSONSnapshot;
4370
4378
  }
4371
4379
 
@@ -5776,7 +5784,7 @@ type __internal_LocalizationResource = {
5776
5784
  membershipRole__admin: LocalizationValue;
5777
5785
  membershipRole__basicMember: LocalizationValue;
5778
5786
  membershipRole__guestMember: LocalizationValue;
5779
- commerce: {
5787
+ billing: {
5780
5788
  month: LocalizationValue;
5781
5789
  year: LocalizationValue;
5782
5790
  free: LocalizationValue;
@@ -5813,14 +5821,28 @@ type __internal_LocalizationResource = {
5813
5821
  totalDue: LocalizationValue;
5814
5822
  totalDueToday: LocalizationValue;
5815
5823
  pastDue: LocalizationValue;
5816
- paymentMethods: LocalizationValue;
5817
- addPaymentMethod: LocalizationValue;
5818
5824
  pay: LocalizationValue<'amount'>;
5819
5825
  cancelSubscriptionTitle: LocalizationValue<'plan'>;
5820
5826
  cancelSubscriptionNoCharge: LocalizationValue;
5821
5827
  cancelSubscriptionAccessUntil: LocalizationValue<'plan' | 'date'>;
5822
5828
  cancelSubscriptionPastDue: LocalizationValue;
5823
5829
  popular: LocalizationValue;
5830
+ paymentMethods__label: LocalizationValue;
5831
+ addPaymentMethod__label: LocalizationValue;
5832
+ paymentMethod: {
5833
+ dev: {
5834
+ testCardInfo: LocalizationValue;
5835
+ developmentMode: LocalizationValue;
5836
+ cardNumber: LocalizationValue;
5837
+ expirationDate: LocalizationValue;
5838
+ cvcZip: LocalizationValue;
5839
+ anyNumbers: LocalizationValue;
5840
+ };
5841
+ applePayDescription: {
5842
+ monthly: LocalizationValue;
5843
+ annual: LocalizationValue;
5844
+ };
5845
+ };
5824
5846
  subscriptionDetails: {
5825
5847
  title: LocalizationValue;
5826
5848
  currentBillingCycle: LocalizationValue;
@@ -5844,20 +5866,6 @@ type __internal_LocalizationResource = {
5844
5866
  billingCycle: LocalizationValue;
5845
5867
  included: LocalizationValue;
5846
5868
  };
5847
- paymentSource: {
5848
- dev: {
5849
- testCardInfo: LocalizationValue;
5850
- developmentMode: LocalizationValue;
5851
- cardNumber: LocalizationValue;
5852
- expirationDate: LocalizationValue;
5853
- cvcZip: LocalizationValue;
5854
- anyNumbers: LocalizationValue;
5855
- };
5856
- applePayDescription: {
5857
- monthly: LocalizationValue;
5858
- annual: LocalizationValue;
5859
- };
5860
- };
5861
5869
  checkout: {
5862
5870
  title: LocalizationValue;
5863
5871
  title__paymentSuccessful: LocalizationValue;
@@ -6505,7 +6513,7 @@ type __internal_LocalizationResource = {
6505
6513
  tableHeader__amount: LocalizationValue;
6506
6514
  tableHeader__status: LocalizationValue;
6507
6515
  };
6508
- paymentSourcesSection: {
6516
+ paymentMethodsSection: {
6509
6517
  title: LocalizationValue;
6510
6518
  add: LocalizationValue;
6511
6519
  addSubtitle: LocalizationValue;
@@ -6514,11 +6522,11 @@ type __internal_LocalizationResource = {
6514
6522
  actionLabel__remove: LocalizationValue;
6515
6523
  formButtonPrimary__add: LocalizationValue;
6516
6524
  formButtonPrimary__pay: LocalizationValue;
6517
- removeResource: {
6525
+ removeMethod: {
6518
6526
  title: LocalizationValue;
6519
6527
  messageLine1: LocalizationValue<'identifier'>;
6520
6528
  messageLine2: LocalizationValue;
6521
- successMessage: LocalizationValue<'paymentSource'>;
6529
+ successMessage: LocalizationValue<'paymentMethod'>;
6522
6530
  };
6523
6531
  payWithTestCardButton: LocalizationValue;
6524
6532
  };
@@ -6733,7 +6741,7 @@ type __internal_LocalizationResource = {
6733
6741
  tableHeader__amount: LocalizationValue;
6734
6742
  tableHeader__status: LocalizationValue;
6735
6743
  };
6736
- paymentSourcesSection: {
6744
+ paymentMethodsSection: {
6737
6745
  title: LocalizationValue;
6738
6746
  add: LocalizationValue;
6739
6747
  addSubtitle: LocalizationValue;
@@ -6742,11 +6750,11 @@ type __internal_LocalizationResource = {
6742
6750
  actionLabel__remove: LocalizationValue;
6743
6751
  formButtonPrimary__add: LocalizationValue;
6744
6752
  formButtonPrimary__pay: LocalizationValue;
6745
- removeResource: {
6753
+ removeMethod: {
6746
6754
  title: LocalizationValue;
6747
6755
  messageLine1: LocalizationValue<'identifier'>;
6748
6756
  messageLine2: LocalizationValue;
6749
- successMessage: LocalizationValue<'paymentSource'>;
6757
+ successMessage: LocalizationValue<'paymentMethod'>;
6750
6758
  };
6751
6759
  payWithTestCardButton: LocalizationValue;
6752
6760
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clerk/types",
3
- "version": "4.93.0-canary.v20251013115124",
3
+ "version": "4.93.0-canary.v20251013161151",
4
4
  "description": "Typings for Clerk libraries.",
5
5
  "keywords": [
6
6
  "clerk",