@rixl/sdk 0.8.2 → 0.9.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.js CHANGED
@@ -625,6 +625,117 @@ const createClient = (config = {}) => {
625
625
  //#region src/generated/client.gen.ts
626
626
  const client = createClient(createConfig({ baseUrl: "https://raw.githubusercontent.com" }));
627
627
 
628
+ //#endregion
629
+ //#region src/shared-runtime.ts
630
+ /**
631
+ * Cross-instance runtime state for the SDK.
632
+ *
633
+ * Every store and client in this package is module-level singleton state that
634
+ * `connect()` mutates. That only works while exactly one copy of `@rixl/sdk`
635
+ * is evaluated. Bundlers routinely break that assumption: Vite's dependency
636
+ * pre-bundling, for example, inlines a private copy of the SDK into any
637
+ * optimized dependency that imports it, so a consumer's `connect()` configures
638
+ * one copy while a library's requests read another — with a wrong baseUrl and,
639
+ * worse, no auth tokens.
640
+ *
641
+ * Anchoring the state to a `Symbol.for` key on `globalThis` makes every copy
642
+ * resolve the same objects, so duplication becomes harmless instead of a
643
+ * silent, hard-to-trace failure.
644
+ */
645
+ const REGISTRY_KEY = Symbol.for("@rixl/sdk.runtime");
646
+ /** Bumped only if the shape below changes incompatibly. */
647
+ const STATE_VERSION = 1;
648
+ function registry() {
649
+ const host = globalThis;
650
+ const existing = host[REGISTRY_KEY];
651
+ if (existing && existing.version === STATE_VERSION) return existing;
652
+ const created = {
653
+ version: STATE_VERSION,
654
+ copies: 0,
655
+ values: /* @__PURE__ */ new Map()
656
+ };
657
+ host[REGISTRY_KEY] = created;
658
+ return created;
659
+ }
660
+ /**
661
+ * Returns the one shared value for `name`, creating it on first use.
662
+ *
663
+ * `create` runs at most once per realm no matter how many copies of the SDK are
664
+ * loaded, so callers get object identity (a nanostore atom, a Set) rather than
665
+ * a per-copy clone.
666
+ */
667
+ function shared(name, create) {
668
+ const { values } = registry();
669
+ if (!values.has(name)) values.set(name, create());
670
+ return values.get(name);
671
+ }
672
+ const copies = registry().copies += 1;
673
+ if (copies > 1) console.warn(`[@rixl/sdk] ${copies} copies of this package were loaded in one page. Shared state is deduplicated, so this is not fatal, but it doubles bundle size and usually means a bundler inlined a private copy — with Vite, add "@rixl/sdk" to optimizeDeps.include and resolve.dedupe. Ensure libraries depending on @rixl/sdk declare it as a peerDependency.`);
674
+
675
+ //#endregion
676
+ //#region src/client-registry.ts
677
+ /**
678
+ * The baseUrl the code generator bakes in. It is derived from the origin of the
679
+ * OpenAPI input URL, not from a real server, so a client still holding it has
680
+ * simply never been configured. Captured from the client itself rather than
681
+ * hardcoded so it stays correct if the generator input ever moves.
682
+ */
683
+ const placeholderBaseUrl = shared("placeholderBaseUrl", () => client.getConfig().baseUrl);
684
+ const clients = shared("clients", () => /* @__PURE__ */ new Set());
685
+ /** Setup applied to every client copy, including ones registered later. */
686
+ const initializers = shared("clientInitializers", () => []);
687
+ /** Last baseUrl passed to {@link configureAllClients}, replayed onto late joiners. */
688
+ const appliedConfig = shared("appliedConfig", () => ({ baseUrl: void 0 }));
689
+ function isUnconfigured(target) {
690
+ const { baseUrl } = target.getConfig();
691
+ return !baseUrl || baseUrl === placeholderBaseUrl;
692
+ }
693
+ /**
694
+ * Fails a request that would otherwise be sent to the generator's placeholder
695
+ * host. Without this the request goes out looking legitimate and comes back a
696
+ * 404 from an unrelated origin, which reads like a backend fault instead of
697
+ * "the SDK was never initialised".
698
+ */
699
+ function installUnconfiguredGuard(target) {
700
+ target.interceptors.request.use((request) => {
701
+ if (isUnconfigured(target)) throw new Error(`[@rixl/sdk] Cannot send ${request.method} ${new URL(request.url).pathname}: no baseUrl is configured. Call connect({baseUrl}) before issuing requests.`);
702
+ return request;
703
+ });
704
+ }
705
+ /**
706
+ * Registers setup to run against every client copy — those already known and
707
+ * any that register afterwards. Interceptors added through here therefore reach
708
+ * a copy that loads from a lazy chunk after `connect()` has already run.
709
+ */
710
+ function addClientInitializer(initialize) {
711
+ initializers.push(initialize);
712
+ for (const target of clients) initialize(target);
713
+ }
714
+ /**
715
+ * Adds a client to the shared registry so configuration reaches it. Registering
716
+ * is idempotent, and a client that joins late is brought fully up to date.
717
+ */
718
+ function registerClient(target) {
719
+ if (clients.has(target)) return;
720
+ clients.add(target);
721
+ installUnconfiguredGuard(target);
722
+ for (const initialize of initializers) initialize(target);
723
+ if (appliedConfig.baseUrl !== void 0) target.setConfig({ baseUrl: appliedConfig.baseUrl });
724
+ }
725
+ /**
726
+ * Points every known client copy at `baseUrl`.
727
+ *
728
+ * Duplicate copies of this package each construct their own client object, and
729
+ * the generated request functions close over whichever one their copy owns.
730
+ * Configuring only the caller's copy is what leaves a bundled library issuing
731
+ * requests to the placeholder host.
732
+ */
733
+ function configureAllClients(baseUrl) {
734
+ appliedConfig.baseUrl = baseUrl;
735
+ for (const target of clients) target.setConfig({ baseUrl });
736
+ }
737
+ registerClient(client);
738
+
628
739
  //#endregion
629
740
  //#region src/generated/sdk.gen.ts
630
741
  /**
@@ -635,6 +746,35 @@ const analyticsV1DashboardServiceGetDashboardStats = (options) => (options.clien
635
746
  ...options
636
747
  });
637
748
  /**
749
+ * QueryChart
750
+ */
751
+ const analyticsV1DashboardServiceQueryChart = (options) => (options.client ?? client).post({
752
+ url: "/analytics/v1/dashboard/chart-query",
753
+ ...options,
754
+ headers: {
755
+ "Content-Type": "application/json",
756
+ ...options.headers
757
+ }
758
+ });
759
+ /**
760
+ * ListDatasets
761
+ */
762
+ const analyticsV1DashboardServiceListDatasets = (options) => (options?.client ?? client).get({
763
+ url: "/analytics/v1/dashboard/datasets",
764
+ ...options
765
+ });
766
+ /**
767
+ * GetFilterOptions
768
+ */
769
+ const analyticsV1DashboardServiceGetFilterOptions = (options) => (options.client ?? client).post({
770
+ url: "/analytics/v1/dashboard/filter-options",
771
+ ...options,
772
+ headers: {
773
+ "Content-Type": "application/json",
774
+ ...options.headers
775
+ }
776
+ });
777
+ /**
638
778
  * TrackEvents
639
779
  */
640
780
  const analyticsV1EventsServiceTrackEvents = (options) => (options.client ?? client).post({
@@ -2472,11 +2612,14 @@ const parseUser = () => {
2472
2612
  return;
2473
2613
  }
2474
2614
  };
2475
- const user = atom(parseUser());
2476
- user.subscribe((value) => {
2477
- if (typeof localStorage === "undefined" || !localStorage || typeof localStorage.setItem !== "function") return;
2478
- if (value) localStorage.setItem(userPath, JSON.stringify(value));
2479
- else localStorage.removeItem(userPath);
2615
+ const user = shared("user", () => {
2616
+ const store = atom(parseUser());
2617
+ store.subscribe((value) => {
2618
+ if (typeof localStorage === "undefined" || !localStorage || typeof localStorage.setItem !== "function") return;
2619
+ if (value) localStorage.setItem(userPath, JSON.stringify(value));
2620
+ else localStorage.removeItem(userPath);
2621
+ });
2622
+ return store;
2480
2623
  });
2481
2624
 
2482
2625
  //#endregion
@@ -2530,13 +2673,13 @@ const isTokenExpired = (expireAt) => {
2530
2673
 
2531
2674
  //#endregion
2532
2675
  //#region src/auth/authStore.ts
2533
- const isLogged = atom(initVals["isLogged"] === "true" || detectProvider() !== void 0);
2534
- const accessToken = atom(initVals["accessToken"]);
2535
- const refreshToken = atom(initVals["refreshToken"]);
2536
- const expireAt = atom(Number(initVals["expireAt"]));
2537
- const authError = atom(null);
2538
- const requiresAction = atom(initVals["requiresAction"] || null);
2539
- const limitedAccessToken = atom(initVals["limitedAccessToken"] || null);
2676
+ const isLogged = shared("isLogged", () => atom(initVals["isLogged"] === "true" || detectProvider() !== void 0));
2677
+ const accessToken = shared("accessToken", () => atom(initVals["accessToken"]));
2678
+ const refreshToken = shared("refreshToken", () => atom(initVals["refreshToken"]));
2679
+ const expireAt = shared("expireAt", () => atom(Number(initVals["expireAt"])));
2680
+ const authError = shared("authError", () => atom(null));
2681
+ const requiresAction = shared("requiresAction", () => atom(initVals["requiresAction"] || null));
2682
+ const limitedAccessToken = shared("limitedAccessToken", () => atom(initVals["limitedAccessToken"] || null));
2540
2683
  let currentTokenPromise = null;
2541
2684
  const PROVIDER_URL_MAP = {
2542
2685
  google: googleAuthUrl,
@@ -2678,17 +2821,19 @@ var ApiError = class extends Error {
2678
2821
  /**
2679
2822
  * Global API base URL store
2680
2823
  */
2681
- const apiURL = atom("");
2824
+ const apiURL = shared("apiURL", () => atom(""));
2682
2825
 
2683
2826
  //#endregion
2684
2827
  //#region src/auth/api/sdk-client.ts
2685
2828
  function isWireErrorBody(error) {
2686
2829
  return typeof error === "object" && error !== null;
2687
2830
  }
2688
- let configured = false;
2689
- let tokenResolver = getToken;
2831
+ const state = shared("sdkClientState", () => ({
2832
+ configured: false,
2833
+ tokenResolver: getToken
2834
+ }));
2690
2835
  function setTokenResolver(resolver) {
2691
- tokenResolver = resolver;
2836
+ state.tokenResolver = resolver;
2692
2837
  }
2693
2838
  /**
2694
2839
  * Routes that do not require a Bearer token at the gateway edge. These
@@ -2800,26 +2945,28 @@ function isPublicRoute(method, pathname) {
2800
2945
  return publicRoutes.some(({ method: m, path, prefix }) => match === m && (prefix ? pathname.startsWith(path) : pathname === path));
2801
2946
  }
2802
2947
  function configureSdkClient() {
2803
- if (configured) return;
2804
- configured = true;
2805
- client.setConfig({ baseUrl: apiURL.get() });
2948
+ if (state.configured) return;
2949
+ state.configured = true;
2950
+ configureAllClients(apiURL.get());
2806
2951
  apiURL.subscribe((url) => {
2807
- client.setConfig({ baseUrl: url });
2808
- });
2809
- client.interceptors.request.use(async (request) => {
2810
- if (request.headers.has("Authorization")) return request;
2811
- const { pathname } = new URL(request.url);
2812
- if (isPublicRoute(request.method, pathname)) return request;
2813
- const token = await tokenResolver();
2814
- if (!token) throw new ApiError("No access token available for an authenticated request", HTTP_STATUS.UNAUTHORIZED, pathname);
2815
- request.headers.set("Authorization", `Bearer ${token}`);
2816
- return request;
2952
+ configureAllClients(url);
2817
2953
  });
2818
- client.interceptors.error.use((error, response, request) => {
2819
- if (error instanceof Error) return error;
2820
- const body = isWireErrorBody(error) ? error : void 0;
2821
- const status = response?.status ?? body?.code ?? 0;
2822
- return new ApiError(body?.error || body?.details || (typeof error === "string" ? error : "Request failed"), status, request ? new URL(request.url).pathname : "", error);
2954
+ addClientInitializer((client) => {
2955
+ client.interceptors.request.use(async (request) => {
2956
+ if (request.headers.has("Authorization")) return request;
2957
+ const { pathname } = new URL(request.url);
2958
+ if (isPublicRoute(request.method, pathname)) return request;
2959
+ const token = await state.tokenResolver();
2960
+ if (!token) throw new ApiError("No access token available for an authenticated request", HTTP_STATUS.UNAUTHORIZED, pathname);
2961
+ request.headers.set("Authorization", `Bearer ${token}`);
2962
+ return request;
2963
+ });
2964
+ client.interceptors.error.use((error, response, request) => {
2965
+ if (error instanceof Error) return error;
2966
+ const body = isWireErrorBody(error) ? error : void 0;
2967
+ const status = response?.status ?? body?.code ?? 0;
2968
+ return new ApiError(body?.error || body?.details || (typeof error === "string" ? error : "Request failed"), status, request ? new URL(request.url).pathname : "", error);
2969
+ });
2823
2970
  });
2824
2971
  }
2825
2972
 
@@ -3180,9 +3327,9 @@ const initSocials = async () => {
3180
3327
 
3181
3328
  //#endregion
3182
3329
  //#region src/platform/platformAuthStore.ts
3183
- const platformAccessToken = atom(void 0);
3184
- const platformRefreshToken = atom(void 0);
3185
- const platformExpireAt = atom(0);
3330
+ const platformAccessToken = shared("platformAccessToken", () => atom(void 0));
3331
+ const platformRefreshToken = shared("platformRefreshToken", () => atom(void 0));
3332
+ const platformExpireAt = shared("platformExpireAt", () => atom(0));
3186
3333
  let currentPlatformTokenPromise = null;
3187
3334
  const setPlatformTokens = (access, refresh, expiresIn) => {
3188
3335
  platformAccessToken.set(access);
@@ -3239,7 +3386,7 @@ const getPlatformToken = async () => {
3239
3386
  //#region src/connect.ts
3240
3387
  const connect = async (config) => {
3241
3388
  apiURL.set(config.baseUrl);
3242
- client.setConfig({ baseUrl: config.baseUrl });
3389
+ configureAllClients(config.baseUrl);
3243
3390
  if (config.apiKey) {
3244
3391
  await exchangeApiKey(config.apiKey);
3245
3392
  setTokenResolver(getPlatformToken);
@@ -4252,5 +4399,5 @@ const verifyPasskeyForLogin = async (session_id, credential) => {
4252
4399
  };
4253
4400
 
4254
4401
  //#endregion
4255
- export { DomainStatus, MembershipRole, MembershipState, PasskeyUnavailableError, addEmail, analyticsV1DashboardServiceGetDashboardStats, analyticsV1EventsServiceTrackEvents, analyticsV1FeedsServiceGetFeedStats, analyticsV1FeedsServiceGetTopFeeds, analyticsV1FunnelsServiceGetFunnelAnalytics, analyticsV1FunnelsServiceGetRetentionAnalytics, analyticsV1HeatmapServiceGetHotSegments, analyticsV1HeatmapServiceGetVideoHeatmap, analyticsV1PostsServiceGetPostStats, analyticsV1PostsServiceGetTopPosts, analyticsV1RealtimeServiceGetRealtimeStats, analyticsV1VideosServiceGetTopVideos, analyticsV1VideosServiceGetVideoStats, apikeysV1ApiKeyServiceCreateApiKey, apikeysV1ApiKeyServiceDeleteApiKey, apikeysV1ApiKeyServiceListApiKeys, apikeysV1ApiKeyServiceRotateApiKey, authError, authV1BlogServiceGetBlogSubscription, authV1BlogServiceSendBlogBroadcast, authV1BlogServiceSubscribeBlog, authV1BlogServiceUnsubscribeBlog, authV1BlogServiceUnsubscribeBlogByEmail, authV1DomainServiceCheckDomainVerification, authV1DomainServiceCreateDomainVerification, authV1DomainServiceGetDomainAutoJoin, authV1DomainServiceGetDomainStatus, authV1DomainServiceRemoveDomain, authV1DomainServiceSetDomainAutoJoin, authV1EmailServiceAddEmail, authV1EmailServiceGetUserEmailStatus, authV1EmailServiceInitiateEmailChange, authV1EmailServiceLogin, authV1EmailServiceRegister, authV1EmailServiceResendVerification, authV1EmailServiceResetPassword, authV1EmailServiceSendPasswordReset, authV1EmailServiceVerifyEmail, authV1MembershipServiceAcceptInvitation, authV1MembershipServiceCancelInvitation, authV1MembershipServiceCheckMembership, authV1MembershipServiceDeclineInvitation, authV1MembershipServiceGetInternalMembershipInfo, authV1MembershipServiceInviteMember, authV1MembershipServiceLeaveOrganization, authV1MembershipServiceListMembershipApplications, authV1MembershipServiceListMemberships, authV1MembershipServiceListOrganizationMembers, authV1MembershipServiceReactivateMember, authV1MembershipServiceRemoveMember, authV1MembershipServiceResendInvitation, authV1MembershipServiceSuspendMember, authV1MembershipServiceUpdateActiveMembership, authV1MembershipServiceUpdateMemberRole, authV1MembershipServiceUpdateMembershipState, authV1MembershipServiceUpdateOrgName, authV1MembershipServiceUpdateOrgUsername, authV1OtpServiceDeleteOtp, authV1OtpServiceGetOtpStatus, authV1OtpServiceSetupOtp, authV1OtpServiceVerifyOtp, authV1OtpServiceVerifyTotpForLogin, authV1PasskeyServiceDeletePasskey, authV1PasskeyServiceListPasskeys, authV1PasskeyServicePasskeyLoginBegin, authV1PasskeyServicePasskeyLoginFinish, authV1PasskeyServicePasskeyRegisterBegin, authV1PasskeyServicePasskeyRegisterFinish, authV1PasskeyServiceRenamePasskey, authV1PasskeyServiceVerifyPasskeyForLogin, authV1PolicyServiceAttachPolicy, authV1PolicyServiceCreatePolicy, authV1PolicyServiceDeletePolicy, authV1PolicyServiceDetachPolicy, authV1PolicyServiceGetPolicy, authV1PolicyServiceListPermissionRegistry, authV1PolicyServiceListPolicies, authV1PolicyServiceListPolicyAttachments, authV1PolicyServiceListUserPolicies, authV1PolicyServiceUpdatePolicy, authV1ProvidersServiceConnectProvider, authV1ProvidersServiceDisconnectProvider, authV1ProvidersServiceListProviders, authV1TokenServiceLogout, authV1TokenServiceRefreshToken, authV1UserServiceGetUser, authV1UserServiceGetUserInfo, authV1UserServiceUpdateName, authV1UserServiceUpdateUsername, beginPasskeyLogin, beginPasskeyRegistration, billingV1InvoiceServiceListInvoices, billingV1InvoiceServiceUpdateInvoiceStatus, billingV1PaymentServiceCalculateGenericTax, billingV1PaymentServiceCalculateTax, billingV1PaymentServiceCreateCheckoutSession, billingV1PaymentServiceCreateSetupIntent, billingV1PaymentServiceDeletePaymentMethod, billingV1PaymentServiceGetBillingAddress, billingV1PaymentServiceGetPaymentMethodFromPaymentIntent, billingV1PaymentServiceGetPaymentMethodFromSetupIntent, billingV1PaymentServiceListPaymentMethods, billingV1PaymentServiceUpgradeSubscription, billingV1PaymentServiceUpsertBillingAddress, billingV1PaymentServiceUpsertPaymentMethod, billingV1PlanServiceGetPlan, billingV1PlanServiceListPlans, billingV1SalesServiceContactSales, billingV1SubscriptionServiceCancelSubscription, billingV1SubscriptionServiceCreateSubscription, billingV1SubscriptionServiceGetSubscription, billingV1SubscriptionServiceGetSubscriptionHistory, billingV1SubscriptionServiceReactivateSubscription, billingV1UsageServiceGetBandwidthUsage, billingV1UsageServiceGetBandwidthUsageHistory, billingV1UsageServiceGetStorageUsage, billingV1UsageServiceGetStorageUsageHistory, billingV1UsageServiceRefreshBandwidthUsage, billingV1UsageServiceRefreshStorageUsage, checkDomainVerification, clearAuthError, clearLimitedAccessState, client, clientauthV1ClientCredentialServiceCreateClientCredential, clientauthV1ClientCredentialServiceListClientCredentials, clientauthV1ClientCredentialServiceMintClientToken, clientauthV1ClientCredentialServiceRevokeClientCredential, confirmPasswordReset, connect, connectSocial, createClient, decodeRequestOptions, deleteMember, deletePasskey, deleteUserOTP, disconnectSocial, feedsV1FeedServiceCreateFeed, feedsV1FeedServiceDeleteFeed, feedsV1FeedServiceGetFeed, feedsV1FeedServiceListFeeds, feedsV1FeedServiceUpdateFeed, finishPasskeyLogin, finishPasskeyRegistration, getBlogSubscriptionStatus, getDomainStatus, getEmailVerificationStatus, getOTPStatus, getToken, getUserInfo, imagesV1ImageConversionServiceMarkImageFailed, imagesV1ImageConversionServiceMarkImageProcessed, imagesV1ImageConversionServiceTakeUnprocessedImage, imagesV1ImageServiceCreateImageUpload, imagesV1ImageServiceDeleteImage, imagesV1ImageServiceGetImage, imagesV1ImageServiceListImages, imagesV1ImageServiceUpdateImageVisibility, initClient, initiateDomainVerification, initiateEmailChange, inviteMember, isLogged, leaveOrganization, limitedAccessToken, listActiveMemberships, listOrganizationMembers, listPasskeys, listPendingMemberships, listSocials, login, loginWithEmail, logout, platformauthV1PlatformAuthServiceExchangeApiKey, platformauthV1PlatformAuthServiceRefreshPlatformToken, postsV1PostServiceCreatePost, postsV1PostServiceCreatePostUpload, postsV1PostServiceDeletePost, postsV1PostServiceDeletePost2, postsV1PostServiceGetPost, postsV1PostServiceGetPost2, postsV1PostServiceGetPost3, postsV1PostServiceListPosts, postsV1PostServiceListPosts2, postsV1PostServiceListPosts3, postsV1PostServiceListPosts4, projectV1ProjectServiceCreateProject, projectV1ProjectServiceDeleteProject, projectV1ProjectServiceGetProject, projectV1ProjectServiceListProjects, projectV1ProjectServiceMoveProject, projectV1ProjectServiceRemoveCustomDomain, projectV1ProjectServiceSetCustomDomain, projectV1ProjectServiceUpdateProjectName, projectV1ProjectServiceUpdateVideoQuality, publicRespondToInvitation, registerWithEmail, removeDomain, renamePasskey, requiresAction, resendEmailVerificationCode, resendMemberInvite, respondToInvitation, sendPasswordResetEmail, setLimitedAccessState, setupUserOTP, subscribeToBlog, unsubscribeFromBlog, updateActiveMembership, updateAutoJoin, updateFullName, updateMemberRole, updateOrgName, updateOrgUsername, updateUsername, user, verifyEmailWithCode, verifyPasskeyForLogin, verifyTOTPForLogin, verifyUserOTP, videosV1AudioTrackServiceCreateAudioTrackUpload, videosV1AudioTrackServiceDeleteAllAudioTracks, videosV1AudioTrackServiceDeleteAudioTrack, videosV1AudioTrackServiceDeleteAudioTracksByLanguage, videosV1AudioTrackServiceListAudioTracks, videosV1ChapterServiceDeleteVideoChapter, videosV1ChapterServiceGetVideoChapters, videosV1ChapterServiceUpdateVideoChapters, videosV1LanguageServiceListLanguages, videosV1SubtitleServiceCreateSubtitleUpload, videosV1SubtitleServiceDeleteAllSubtitles, videosV1SubtitleServiceDeleteSubtitle, videosV1SubtitleServiceDeleteSubtitlesByLanguage, videosV1SubtitleServiceListSubtitles, videosV1VideoConversionServiceMarkVideoFailed, videosV1VideoConversionServiceMarkVideoProcessed, videosV1VideoServiceCreateVideoUpload, videosV1VideoServiceDeleteVideo, videosV1VideoServiceGetVideo, videosV1VideoServiceListVideos, videosV1VideoServiceUpdateVideoVisibility };
4402
+ export { DomainStatus, MembershipRole, MembershipState, PasskeyUnavailableError, addEmail, analyticsV1DashboardServiceGetDashboardStats, analyticsV1DashboardServiceGetFilterOptions, analyticsV1DashboardServiceListDatasets, analyticsV1DashboardServiceQueryChart, analyticsV1EventsServiceTrackEvents, analyticsV1FeedsServiceGetFeedStats, analyticsV1FeedsServiceGetTopFeeds, analyticsV1FunnelsServiceGetFunnelAnalytics, analyticsV1FunnelsServiceGetRetentionAnalytics, analyticsV1HeatmapServiceGetHotSegments, analyticsV1HeatmapServiceGetVideoHeatmap, analyticsV1PostsServiceGetPostStats, analyticsV1PostsServiceGetTopPosts, analyticsV1RealtimeServiceGetRealtimeStats, analyticsV1VideosServiceGetTopVideos, analyticsV1VideosServiceGetVideoStats, apikeysV1ApiKeyServiceCreateApiKey, apikeysV1ApiKeyServiceDeleteApiKey, apikeysV1ApiKeyServiceListApiKeys, apikeysV1ApiKeyServiceRotateApiKey, authError, authV1BlogServiceGetBlogSubscription, authV1BlogServiceSendBlogBroadcast, authV1BlogServiceSubscribeBlog, authV1BlogServiceUnsubscribeBlog, authV1BlogServiceUnsubscribeBlogByEmail, authV1DomainServiceCheckDomainVerification, authV1DomainServiceCreateDomainVerification, authV1DomainServiceGetDomainAutoJoin, authV1DomainServiceGetDomainStatus, authV1DomainServiceRemoveDomain, authV1DomainServiceSetDomainAutoJoin, authV1EmailServiceAddEmail, authV1EmailServiceGetUserEmailStatus, authV1EmailServiceInitiateEmailChange, authV1EmailServiceLogin, authV1EmailServiceRegister, authV1EmailServiceResendVerification, authV1EmailServiceResetPassword, authV1EmailServiceSendPasswordReset, authV1EmailServiceVerifyEmail, authV1MembershipServiceAcceptInvitation, authV1MembershipServiceCancelInvitation, authV1MembershipServiceCheckMembership, authV1MembershipServiceDeclineInvitation, authV1MembershipServiceGetInternalMembershipInfo, authV1MembershipServiceInviteMember, authV1MembershipServiceLeaveOrganization, authV1MembershipServiceListMembershipApplications, authV1MembershipServiceListMemberships, authV1MembershipServiceListOrganizationMembers, authV1MembershipServiceReactivateMember, authV1MembershipServiceRemoveMember, authV1MembershipServiceResendInvitation, authV1MembershipServiceSuspendMember, authV1MembershipServiceUpdateActiveMembership, authV1MembershipServiceUpdateMemberRole, authV1MembershipServiceUpdateMembershipState, authV1MembershipServiceUpdateOrgName, authV1MembershipServiceUpdateOrgUsername, authV1OtpServiceDeleteOtp, authV1OtpServiceGetOtpStatus, authV1OtpServiceSetupOtp, authV1OtpServiceVerifyOtp, authV1OtpServiceVerifyTotpForLogin, authV1PasskeyServiceDeletePasskey, authV1PasskeyServiceListPasskeys, authV1PasskeyServicePasskeyLoginBegin, authV1PasskeyServicePasskeyLoginFinish, authV1PasskeyServicePasskeyRegisterBegin, authV1PasskeyServicePasskeyRegisterFinish, authV1PasskeyServiceRenamePasskey, authV1PasskeyServiceVerifyPasskeyForLogin, authV1PolicyServiceAttachPolicy, authV1PolicyServiceCreatePolicy, authV1PolicyServiceDeletePolicy, authV1PolicyServiceDetachPolicy, authV1PolicyServiceGetPolicy, authV1PolicyServiceListPermissionRegistry, authV1PolicyServiceListPolicies, authV1PolicyServiceListPolicyAttachments, authV1PolicyServiceListUserPolicies, authV1PolicyServiceUpdatePolicy, authV1ProvidersServiceConnectProvider, authV1ProvidersServiceDisconnectProvider, authV1ProvidersServiceListProviders, authV1TokenServiceLogout, authV1TokenServiceRefreshToken, authV1UserServiceGetUser, authV1UserServiceGetUserInfo, authV1UserServiceUpdateName, authV1UserServiceUpdateUsername, beginPasskeyLogin, beginPasskeyRegistration, billingV1InvoiceServiceListInvoices, billingV1InvoiceServiceUpdateInvoiceStatus, billingV1PaymentServiceCalculateGenericTax, billingV1PaymentServiceCalculateTax, billingV1PaymentServiceCreateCheckoutSession, billingV1PaymentServiceCreateSetupIntent, billingV1PaymentServiceDeletePaymentMethod, billingV1PaymentServiceGetBillingAddress, billingV1PaymentServiceGetPaymentMethodFromPaymentIntent, billingV1PaymentServiceGetPaymentMethodFromSetupIntent, billingV1PaymentServiceListPaymentMethods, billingV1PaymentServiceUpgradeSubscription, billingV1PaymentServiceUpsertBillingAddress, billingV1PaymentServiceUpsertPaymentMethod, billingV1PlanServiceGetPlan, billingV1PlanServiceListPlans, billingV1SalesServiceContactSales, billingV1SubscriptionServiceCancelSubscription, billingV1SubscriptionServiceCreateSubscription, billingV1SubscriptionServiceGetSubscription, billingV1SubscriptionServiceGetSubscriptionHistory, billingV1SubscriptionServiceReactivateSubscription, billingV1UsageServiceGetBandwidthUsage, billingV1UsageServiceGetBandwidthUsageHistory, billingV1UsageServiceGetStorageUsage, billingV1UsageServiceGetStorageUsageHistory, billingV1UsageServiceRefreshBandwidthUsage, billingV1UsageServiceRefreshStorageUsage, checkDomainVerification, clearAuthError, clearLimitedAccessState, client, clientauthV1ClientCredentialServiceCreateClientCredential, clientauthV1ClientCredentialServiceListClientCredentials, clientauthV1ClientCredentialServiceMintClientToken, clientauthV1ClientCredentialServiceRevokeClientCredential, confirmPasswordReset, connect, connectSocial, createClient, decodeRequestOptions, deleteMember, deletePasskey, deleteUserOTP, disconnectSocial, feedsV1FeedServiceCreateFeed, feedsV1FeedServiceDeleteFeed, feedsV1FeedServiceGetFeed, feedsV1FeedServiceListFeeds, feedsV1FeedServiceUpdateFeed, finishPasskeyLogin, finishPasskeyRegistration, getBlogSubscriptionStatus, getDomainStatus, getEmailVerificationStatus, getOTPStatus, getToken, getUserInfo, imagesV1ImageConversionServiceMarkImageFailed, imagesV1ImageConversionServiceMarkImageProcessed, imagesV1ImageConversionServiceTakeUnprocessedImage, imagesV1ImageServiceCreateImageUpload, imagesV1ImageServiceDeleteImage, imagesV1ImageServiceGetImage, imagesV1ImageServiceListImages, imagesV1ImageServiceUpdateImageVisibility, initClient, initiateDomainVerification, initiateEmailChange, inviteMember, isLogged, leaveOrganization, limitedAccessToken, listActiveMemberships, listOrganizationMembers, listPasskeys, listPendingMemberships, listSocials, login, loginWithEmail, logout, platformauthV1PlatformAuthServiceExchangeApiKey, platformauthV1PlatformAuthServiceRefreshPlatformToken, postsV1PostServiceCreatePost, postsV1PostServiceCreatePostUpload, postsV1PostServiceDeletePost, postsV1PostServiceDeletePost2, postsV1PostServiceGetPost, postsV1PostServiceGetPost2, postsV1PostServiceGetPost3, postsV1PostServiceListPosts, postsV1PostServiceListPosts2, postsV1PostServiceListPosts3, postsV1PostServiceListPosts4, projectV1ProjectServiceCreateProject, projectV1ProjectServiceDeleteProject, projectV1ProjectServiceGetProject, projectV1ProjectServiceListProjects, projectV1ProjectServiceMoveProject, projectV1ProjectServiceRemoveCustomDomain, projectV1ProjectServiceSetCustomDomain, projectV1ProjectServiceUpdateProjectName, projectV1ProjectServiceUpdateVideoQuality, publicRespondToInvitation, registerWithEmail, removeDomain, renamePasskey, requiresAction, resendEmailVerificationCode, resendMemberInvite, respondToInvitation, sendPasswordResetEmail, setLimitedAccessState, setupUserOTP, subscribeToBlog, unsubscribeFromBlog, updateActiveMembership, updateAutoJoin, updateFullName, updateMemberRole, updateOrgName, updateOrgUsername, updateUsername, user, verifyEmailWithCode, verifyPasskeyForLogin, verifyTOTPForLogin, verifyUserOTP, videosV1AudioTrackServiceCreateAudioTrackUpload, videosV1AudioTrackServiceDeleteAllAudioTracks, videosV1AudioTrackServiceDeleteAudioTrack, videosV1AudioTrackServiceDeleteAudioTracksByLanguage, videosV1AudioTrackServiceListAudioTracks, videosV1ChapterServiceDeleteVideoChapter, videosV1ChapterServiceGetVideoChapters, videosV1ChapterServiceUpdateVideoChapters, videosV1LanguageServiceListLanguages, videosV1SubtitleServiceCreateSubtitleUpload, videosV1SubtitleServiceDeleteAllSubtitles, videosV1SubtitleServiceDeleteSubtitle, videosV1SubtitleServiceDeleteSubtitlesByLanguage, videosV1SubtitleServiceListSubtitles, videosV1VideoConversionServiceMarkVideoFailed, videosV1VideoConversionServiceMarkVideoProcessed, videosV1VideoServiceCreateVideoUpload, videosV1VideoServiceDeleteVideo, videosV1VideoServiceGetVideo, videosV1VideoServiceListVideos, videosV1VideoServiceUpdateVideoVisibility };
4256
4403
  //# sourceMappingURL=index.js.map