@clerk/shared 4.0.0-canary.v20260107202600 → 4.0.0-canary.v20260108154421

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.
Files changed (106) hide show
  1. package/dist/runtime/alternativePhoneCode.d.mts +1 -1
  2. package/dist/runtime/alternativePhoneCode.d.ts +1 -1
  3. package/dist/runtime/apiUrlFromPublishableKey.d.mts +1 -1
  4. package/dist/runtime/apiUrlFromPublishableKey.d.ts +1 -1
  5. package/dist/runtime/authorization-errors.d.mts +1 -1
  6. package/dist/runtime/authorization-errors.d.ts +1 -1
  7. package/dist/runtime/authorization.d.mts +1 -1
  8. package/dist/runtime/authorization.d.ts +1 -1
  9. package/dist/runtime/clerkEventBus.d.mts +1 -1
  10. package/dist/runtime/clerkEventBus.d.ts +1 -1
  11. package/dist/runtime/color.d.mts +1 -1
  12. package/dist/runtime/color.d.ts +1 -1
  13. package/dist/runtime/color.d.ts.map +1 -1
  14. package/dist/runtime/deriveState.d.mts +1 -1
  15. package/dist/runtime/deriveState.d.ts +1 -1
  16. package/dist/runtime/{error-BXk0GDM3.d.mts → error-DNiurtIH.d.mts} +2 -2
  17. package/dist/runtime/{error-BXk0GDM3.d.mts.map → error-DNiurtIH.d.mts.map} +1 -1
  18. package/dist/runtime/{error-Bc2wkICP.d.ts → error-DW8FKFzD.d.ts} +2 -2
  19. package/dist/runtime/{error-Bc2wkICP.d.ts.map → error-DW8FKFzD.d.ts.map} +1 -1
  20. package/dist/runtime/error.d.mts +2 -2
  21. package/dist/runtime/error.d.ts +2 -2
  22. package/dist/runtime/globs.d.ts.map +1 -1
  23. package/dist/runtime/{index-C3yQerjv.d.mts → index-CwXrQ0D9.d.mts} +17 -1
  24. package/dist/runtime/index-CwXrQ0D9.d.mts.map +1 -0
  25. package/dist/runtime/{index-CuGwkvfN.d.ts → index-y60Yzgpv.d.ts} +17 -1
  26. package/dist/runtime/index-y60Yzgpv.d.ts.map +1 -0
  27. package/dist/runtime/internal/clerk-js/completeSignUpFlow.d.mts +1 -1
  28. package/dist/runtime/internal/clerk-js/completeSignUpFlow.d.ts +1 -1
  29. package/dist/runtime/internal/clerk-js/componentGuards.d.mts +1 -1
  30. package/dist/runtime/internal/clerk-js/componentGuards.d.ts +1 -1
  31. package/dist/runtime/internal/clerk-js/injectedWeb3EthProviders.d.mts +1 -1
  32. package/dist/runtime/internal/clerk-js/injectedWeb3EthProviders.d.ts +1 -1
  33. package/dist/runtime/internal/clerk-js/passkeys.d.mts +2 -2
  34. package/dist/runtime/internal/clerk-js/passkeys.d.ts +2 -2
  35. package/dist/runtime/internal/clerk-js/passwords/complexity.d.mts +1 -1
  36. package/dist/runtime/internal/clerk-js/passwords/complexity.d.ts +1 -1
  37. package/dist/runtime/internal/clerk-js/passwords/loadZxcvbn.d.mts +1 -1
  38. package/dist/runtime/internal/clerk-js/passwords/loadZxcvbn.d.ts +1 -1
  39. package/dist/runtime/internal/clerk-js/passwords/password.d.mts +1 -1
  40. package/dist/runtime/internal/clerk-js/passwords/password.d.ts +1 -1
  41. package/dist/runtime/internal/clerk-js/passwords/strength.d.mts +1 -1
  42. package/dist/runtime/internal/clerk-js/passwords/strength.d.ts +1 -1
  43. package/dist/runtime/internal/clerk-js/queryParams.d.mts +2 -2
  44. package/dist/runtime/internal/clerk-js/queryParams.d.ts +2 -2
  45. package/dist/runtime/internal/clerk-js/redirectUrls.d.mts +1 -1
  46. package/dist/runtime/internal/clerk-js/redirectUrls.d.ts +1 -1
  47. package/dist/runtime/internal/clerk-js/sessionTasks.d.mts +2 -2
  48. package/dist/runtime/internal/clerk-js/sessionTasks.d.ts +2 -2
  49. package/dist/runtime/internal/clerk-js/url.d.mts +2 -2
  50. package/dist/runtime/internal/clerk-js/url.d.ts +2 -2
  51. package/dist/runtime/internal/clerk-js/user.d.mts +1 -1
  52. package/dist/runtime/internal/clerk-js/user.d.ts +1 -1
  53. package/dist/runtime/internal/clerk-js/web3.d.mts +1 -1
  54. package/dist/runtime/internal/clerk-js/web3.d.ts +1 -1
  55. package/dist/runtime/jwtPayloadParser.d.mts +1 -1
  56. package/dist/runtime/jwtPayloadParser.d.ts +1 -1
  57. package/dist/runtime/keys.d.mts +1 -1
  58. package/dist/runtime/keys.d.ts +1 -1
  59. package/dist/runtime/loadClerkJsScript.d.mts +1 -1
  60. package/dist/runtime/loadClerkJsScript.d.ts +1 -1
  61. package/dist/runtime/loadClerkJsScript.js +2 -2
  62. package/dist/runtime/loadClerkJsScript.mjs +2 -2
  63. package/dist/runtime/oauth.d.mts +1 -1
  64. package/dist/runtime/oauth.d.ts +1 -1
  65. package/dist/runtime/organization.d.mts +1 -1
  66. package/dist/runtime/organization.d.ts +1 -1
  67. package/dist/runtime/pathMatcher.d.mts +1 -1
  68. package/dist/runtime/pathMatcher.d.ts +1 -1
  69. package/dist/runtime/poller.d.ts.map +1 -1
  70. package/dist/runtime/react/index.d.mts +14 -29
  71. package/dist/runtime/react/index.d.mts.map +1 -1
  72. package/dist/runtime/react/index.d.ts +14 -29
  73. package/dist/runtime/react/index.d.ts.map +1 -1
  74. package/dist/runtime/react/index.js +499 -309
  75. package/dist/runtime/react/index.js.map +1 -1
  76. package/dist/runtime/react/index.mjs +498 -304
  77. package/dist/runtime/react/index.mjs.map +1 -1
  78. package/dist/runtime/router.d.mts +1 -1
  79. package/dist/runtime/router.d.ts +1 -1
  80. package/dist/runtime/saml.d.mts +1 -1
  81. package/dist/runtime/saml.d.ts +1 -1
  82. package/dist/runtime/telemetry.d.mts +1 -1
  83. package/dist/runtime/telemetry.d.ts +1 -1
  84. package/dist/runtime/types/index.d.mts +1 -1
  85. package/dist/runtime/types/index.d.ts +1 -1
  86. package/dist/runtime/ui/index.d.mts +1 -1
  87. package/dist/runtime/ui/index.d.ts +1 -1
  88. package/dist/runtime/{url-CeTIrv79.d.mts → url-DBdjYUUx.d.mts} +2 -2
  89. package/dist/runtime/{url-CeTIrv79.d.mts.map → url-DBdjYUUx.d.mts.map} +1 -1
  90. package/dist/runtime/{url-B3azMvOn.d.ts → url-yHlyfWdB.d.ts} +2 -2
  91. package/dist/runtime/{url-B3azMvOn.d.ts.map → url-yHlyfWdB.d.ts.map} +1 -1
  92. package/dist/runtime/{versionSelector-BvO2gPHd.js → versionSelector-DAcqxcwB.js} +2 -2
  93. package/dist/runtime/{versionSelector-BvO2gPHd.js.map → versionSelector-DAcqxcwB.js.map} +1 -1
  94. package/dist/runtime/{versionSelector-B270CtHZ.mjs → versionSelector-DfdpF2HN.mjs} +2 -2
  95. package/dist/runtime/{versionSelector-B270CtHZ.mjs.map → versionSelector-DfdpF2HN.mjs.map} +1 -1
  96. package/dist/runtime/versionSelector.js +1 -1
  97. package/dist/runtime/versionSelector.mjs +1 -1
  98. package/dist/runtime/web3.d.mts +1 -1
  99. package/dist/runtime/web3.d.ts +1 -1
  100. package/dist/types/index.d.mts +16 -0
  101. package/dist/types/index.d.mts.map +1 -1
  102. package/dist/types/index.d.ts +16 -0
  103. package/dist/types/index.d.ts.map +1 -1
  104. package/package.json +3 -4
  105. package/dist/runtime/index-C3yQerjv.d.mts.map +0 -1
  106. package/dist/runtime/index-CuGwkvfN.d.ts.map +0 -1
@@ -347,10 +347,14 @@ type WithOptionalOrgType<T$1> = T$1 & {
347
347
  */
348
348
  interface BillingNamespace {
349
349
  /**
350
+ * Returns a list of payment attempts for the current user or supplied organization.
351
+ *
350
352
  * @experimental This is an experimental API for the Billing feature that is available under a public beta, and the API is subject to change. It is advised to [pin](https://clerk.com/docs/pinning) the SDK version and the clerk-js version to avoid breaking changes.
351
353
  */
352
354
  getPaymentAttempts: (params: GetPaymentAttemptsParams) => Promise<ClerkPaginatedResponse<BillingPaymentResource>>;
353
355
  /**
356
+ * Returns details of a specific payment attempt for the current user or supplied organization.
357
+ *
354
358
  * @experimental This is an experimental API for the Billing feature that is available under a public beta, and the API is subject to change. It is advised to [pin](https://clerk.com/docs/pinning) the SDK version and the clerk-js version to avoid breaking changes.
355
359
  */
356
360
  getPaymentAttempt: (params: {
@@ -358,24 +362,34 @@ interface BillingNamespace {
358
362
  orgId?: string;
359
363
  }) => Promise<BillingPaymentResource>;
360
364
  /**
365
+ * Returns a list of all publically visible billing plans.
366
+ *
361
367
  * @experimental This is an experimental API for the Billing feature that is available under a public beta, and the API is subject to change. It is advised to [pin](https://clerk.com/docs/pinning) the SDK version and the clerk-js version to avoid breaking changes.
362
368
  */
363
369
  getPlans: (params?: GetPlansParams) => Promise<ClerkPaginatedResponse<BillingPlanResource>>;
364
370
  /**
371
+ * Returns a billing plan by ID.
372
+ *
365
373
  * @experimental This is an experimental API for the Billing feature that is available under a public beta, and the API is subject to change. It is advised to [pin](https://clerk.com/docs/pinning) the SDK version and the clerk-js version to avoid breaking changes.
366
374
  */
367
375
  getPlan: (params: {
368
376
  id: string;
369
377
  }) => Promise<BillingPlanResource>;
370
378
  /**
379
+ * Returns the main billing subscription for the current user or supplied organization.
380
+ *
371
381
  * @experimental This is an experimental API for the Billing feature that is available under a public beta, and the API is subject to change. It is advised to [pin](https://clerk.com/docs/pinning) the SDK version and the clerk-js version to avoid breaking changes.
372
382
  */
373
383
  getSubscription: (params: GetSubscriptionParams) => Promise<BillingSubscriptionResource>;
374
384
  /**
385
+ * Returns a list of billing statements for the current user or supplied organization.
386
+ *
375
387
  * @experimental This is an experimental API for the Billing feature that is available under a public beta, and the API is subject to change. It is advised to [pin](https://clerk.com/docs/pinning) the SDK version and the clerk-js version to avoid breaking changes.
376
388
  */
377
389
  getStatements: (params: GetStatementsParams) => Promise<ClerkPaginatedResponse<BillingStatementResource>>;
378
390
  /**
391
+ * Returns a billing statement by ID.
392
+ *
379
393
  * @experimental This is an experimental API for the Billing feature that is available under a public beta, and the API is subject to change. It is advised to [pin](https://clerk.com/docs/pinning) the SDK version and the clerk-js version to avoid breaking changes.
380
394
  */
381
395
  getStatement: (params: {
@@ -383,6 +397,8 @@ interface BillingNamespace {
383
397
  orgId?: string;
384
398
  }) => Promise<BillingStatementResource>;
385
399
  /**
400
+ * Creates a new billing checkout for the current user or supplied organization.
401
+ *
386
402
  * @experimental This is an experimental API for the Billing feature that is available under a public beta, and the API is subject to change. It is advised to [pin](https://clerk.com/docs/pinning) the SDK version and the clerk-js version to avoid breaking changes.
387
403
  */
388
404
  startCheckout: (params: CreateCheckoutParams) => Promise<BillingCheckoutResource>;