@rixl/sdk 0.7.3 → 0.8.1

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
@@ -2686,6 +2686,119 @@ function isWireErrorBody(error) {
2686
2686
  return typeof error === "object" && error !== null;
2687
2687
  }
2688
2688
  let configured = false;
2689
+ let tokenResolver = getToken;
2690
+ function setTokenResolver(resolver) {
2691
+ tokenResolver = resolver;
2692
+ }
2693
+ /**
2694
+ * Routes that do not require a Bearer token at the gateway edge. These
2695
+ * authenticate via credentials in the request body (or are webhooks verified by
2696
+ * signature), so attaching an Authorization header here would make the gateway
2697
+ * attempt to validate a stale/absent token and reject the request with 401.
2698
+ * Mirrors `publicRoutes` in backend/gateway/internal/routes/routes.go.
2699
+ */
2700
+ const publicRoutes = [
2701
+ {
2702
+ method: "POST",
2703
+ path: "/auth/v1/token"
2704
+ },
2705
+ {
2706
+ method: "POST",
2707
+ path: "/auth/v1/register"
2708
+ },
2709
+ {
2710
+ method: "POST",
2711
+ path: "/auth/v1/login"
2712
+ },
2713
+ {
2714
+ method: "POST",
2715
+ path: "/auth/v1/email/verify"
2716
+ },
2717
+ {
2718
+ method: "POST",
2719
+ path: "/auth/v1/email/verify/resend"
2720
+ },
2721
+ {
2722
+ method: "POST",
2723
+ path: "/auth/v1/password/reset"
2724
+ },
2725
+ {
2726
+ method: "POST",
2727
+ path: "/auth/v1/password/reset/confirm"
2728
+ },
2729
+ {
2730
+ method: "POST",
2731
+ path: "/auth/v1/verify-totp"
2732
+ },
2733
+ {
2734
+ method: "POST",
2735
+ path: "/auth/v1/verify-passkey"
2736
+ },
2737
+ {
2738
+ method: "POST",
2739
+ path: "/auth/v1/invitations/",
2740
+ prefix: true
2741
+ },
2742
+ {
2743
+ method: "POST",
2744
+ path: "/auth/v1/passkey/login/begin"
2745
+ },
2746
+ {
2747
+ method: "POST",
2748
+ path: "/auth/v1/passkey/login/finish"
2749
+ },
2750
+ {
2751
+ method: "POST",
2752
+ path: "/auth/v1/logout"
2753
+ },
2754
+ {
2755
+ method: "POST",
2756
+ path: "/auth/v1/blog/unsubscribe/email"
2757
+ },
2758
+ {
2759
+ method: "POST",
2760
+ path: "/auth/v1/blog/broadcast"
2761
+ },
2762
+ {
2763
+ method: "GET",
2764
+ path: "/media/v1/videos/",
2765
+ prefix: true
2766
+ },
2767
+ {
2768
+ method: "GET",
2769
+ path: "/media/v1/images/",
2770
+ prefix: true
2771
+ },
2772
+ {
2773
+ method: "GET",
2774
+ path: "/media/v1/languages"
2775
+ },
2776
+ {
2777
+ method: "GET",
2778
+ path: "/posts/v1/feeds/",
2779
+ prefix: true
2780
+ },
2781
+ {
2782
+ method: "POST",
2783
+ path: "/billing/webhooks/stripe"
2784
+ },
2785
+ {
2786
+ method: "POST",
2787
+ path: "/webhooks/storage"
2788
+ },
2789
+ {
2790
+ method: "POST",
2791
+ path: "/platform/auth/v1/token"
2792
+ },
2793
+ {
2794
+ method: "POST",
2795
+ path: "/platform/auth/v1/refresh"
2796
+ }
2797
+ ];
2798
+ function isPublicRoute(method, pathname) {
2799
+ const match = method.toUpperCase();
2800
+ return publicRoutes.some(({ method: m, path, prefix }) => match === m && (prefix ? pathname.startsWith(path) : pathname === path));
2801
+ }
2689
2802
  function configureSdkClient() {
2690
2803
  if (configured) return;
2691
2804
  configured = true;
@@ -2695,8 +2808,8 @@ function configureSdkClient() {
2695
2808
  });
2696
2809
  client.interceptors.request.use(async (request) => {
2697
2810
  if (request.headers.has("Authorization")) return request;
2698
- if (new URL(request.url).pathname.endsWith("/auth/v1/token")) return request;
2699
- const token = await getToken();
2811
+ if (isPublicRoute(request.method, new URL(request.url).pathname)) return request;
2812
+ const token = await tokenResolver();
2700
2813
  if (token) request.headers.set("Authorization", `Bearer ${token}`);
2701
2814
  return request;
2702
2815
  });
@@ -3063,14 +3176,77 @@ const initSocials = async () => {
3063
3176
  }
3064
3177
  };
3065
3178
 
3179
+ //#endregion
3180
+ //#region src/platform/platformAuthStore.ts
3181
+ const platformAccessToken = atom(void 0);
3182
+ const platformRefreshToken = atom(void 0);
3183
+ const platformExpireAt = atom(0);
3184
+ let currentPlatformTokenPromise = null;
3185
+ const setPlatformTokens = (access, refresh, expiresIn) => {
3186
+ platformAccessToken.set(access);
3187
+ platformRefreshToken.set(refresh);
3188
+ platformExpireAt.set(Date.now() + expiresIn * 1e3);
3189
+ };
3190
+ const clearPlatformTokens = () => {
3191
+ platformAccessToken.set(void 0);
3192
+ platformRefreshToken.set(void 0);
3193
+ platformExpireAt.set(0);
3194
+ };
3195
+ const exchangeApiKey = async (apiKey) => {
3196
+ const { data } = await platformauthV1PlatformAuthServiceExchangeApiKey({
3197
+ body: { api_key: apiKey },
3198
+ throwOnError: true
3199
+ });
3200
+ if (!data.access_token || !data.refresh_token) throw new Error("Platform token exchange did not return tokens");
3201
+ setPlatformTokens(data.access_token, data.refresh_token, Number(data.expires_in ?? 0));
3202
+ };
3203
+ const refreshPlatformAccessToken = async (refresh) => {
3204
+ const { data } = await platformauthV1PlatformAuthServiceRefreshPlatformToken({
3205
+ body: { refresh_token: refresh },
3206
+ throwOnError: true
3207
+ });
3208
+ if (!data.access_token || !data.refresh_token) throw new Error("Platform token refresh did not return tokens");
3209
+ setPlatformTokens(data.access_token, data.refresh_token, Number(data.expires_in ?? 0));
3210
+ };
3211
+ const ensureValidPlatformToken = async (refresh) => {
3212
+ if (platformAccessToken.get() && !isTokenExpired(platformExpireAt.get())) return;
3213
+ try {
3214
+ await refreshPlatformAccessToken(refresh);
3215
+ } catch (refreshError) {
3216
+ console.error("Platform token refresh failed in getPlatformToken:", refreshError);
3217
+ clearPlatformTokens();
3218
+ throw refreshError;
3219
+ }
3220
+ };
3221
+ const getPlatformToken = async () => {
3222
+ if (currentPlatformTokenPromise) return currentPlatformTokenPromise;
3223
+ const currentRefreshToken = platformRefreshToken.get();
3224
+ if (!currentRefreshToken) return void 0;
3225
+ currentPlatformTokenPromise = (async () => {
3226
+ try {
3227
+ await ensureValidPlatformToken(currentRefreshToken);
3228
+ return platformAccessToken.get();
3229
+ } finally {
3230
+ currentPlatformTokenPromise = null;
3231
+ }
3232
+ })();
3233
+ return currentPlatformTokenPromise;
3234
+ };
3235
+
3066
3236
  //#endregion
3067
3237
  //#region src/connect.ts
3068
3238
  const connect = async (config) => {
3239
+ apiURL.set(config.baseUrl);
3069
3240
  client.setConfig({ baseUrl: config.baseUrl });
3070
- if (config.apiKey) client.interceptors.request.use(async (request) => {
3071
- request.headers.set("X-API-Key", config.apiKey);
3072
- return request;
3073
- });
3241
+ if (config.apiKey) {
3242
+ await exchangeApiKey(config.apiKey);
3243
+ setTokenResolver(getPlatformToken);
3244
+ configureSdkClient();
3245
+ }
3246
+ if (config.token) {
3247
+ setTokenResolver(async () => config.token);
3248
+ configureSdkClient();
3249
+ }
3074
3250
  if (config.auth) return initClient({
3075
3251
  apiUrl: config.baseUrl,
3076
3252
  loginRedirectUrl: config.auth.loginRedirectUrl,
@@ -3318,10 +3494,10 @@ const ROLE_TO_PROTO = {
3318
3494
  admin: "MEMBERSHIP_ROLE_ADMIN",
3319
3495
  member: "MEMBERSHIP_ROLE_MEMBER"
3320
3496
  };
3321
- const updateActiveMembership = async (orgId) => {
3497
+ const updateActiveMembership = async (membershipId) => {
3322
3498
  return apiCall(async () => {
3323
3499
  await authV1MembershipServiceUpdateActiveMembership({
3324
- body: { user: { org_id: orgId } },
3500
+ body: { membership_id: membershipId },
3325
3501
  throwOnError: true
3326
3502
  });
3327
3503
  accessToken.set(void 0);
@@ -3500,6 +3676,20 @@ const updateOrgUsername = async (username, orgId) => {
3500
3676
 
3501
3677
  //#endregion
3502
3678
  //#region src/auth/auth/login.ts
3679
+ /**
3680
+ * Maps the AuthV1AuthMethod values returned by the gateway to the SDK's
3681
+ * lowercase `TwoFactorAuthMethod` domain type. The proto-shaped enum uses
3682
+ * `AUTH_METHOD_*`, but the wire has historically emitted the lowercase
3683
+ * short form (`"passkey" | "totp"`) — accept both so we're resilient to
3684
+ * either serialization.
3685
+ */
3686
+ function toTwoFactorAuthMethods(methods) {
3687
+ if (!methods) return [];
3688
+ const mapped = [];
3689
+ for (const m of methods) if (m === "AUTH_METHOD_PASSKEY" || m === "passkey") mapped.push("passkey");
3690
+ else if (m === "AUTH_METHOD_TOTP" || m === "totp") mapped.push("totp");
3691
+ return mapped;
3692
+ }
3503
3693
  const loginWithEmail = async (email, password) => {
3504
3694
  return apiCall(async () => {
3505
3695
  const validatedInput = validateInput(EmailAuthRequestSchema, {
@@ -3540,7 +3730,7 @@ function handleLoginResponse(data, email) {
3540
3730
  case "2fa_required": return {
3541
3731
  session_id: data.session_id,
3542
3732
  email,
3543
- authentication: data.authentication,
3733
+ authentication: toTwoFactorAuthMethods(data.authentication),
3544
3734
  passkey_options: data.passkey_options
3545
3735
  };
3546
3736
  case "email_not_verified": return {
@@ -3747,11 +3937,14 @@ function toDomainResponse(data) {
3747
3937
  const status = data.status;
3748
3938
  const verified = status && "verified" in status ? status.verified : void 0;
3749
3939
  const pending = status && "pending" in status ? status.pending : void 0;
3940
+ let flattenedStatus;
3941
+ if (verified) flattenedStatus = "verified";
3942
+ else if (pending) flattenedStatus = "pending";
3750
3943
  return {
3751
3944
  present: data.present,
3752
3945
  id: data.id ?? "",
3753
3946
  domain: data.domain ?? "",
3754
- status: verified ? "verified" : "pending",
3947
+ status: flattenedStatus,
3755
3948
  verification_token: pending?.verification_token,
3756
3949
  expires_at: pending?.expires_at,
3757
3950
  verified_at: verified?.verified_at,
@@ -3903,6 +4096,19 @@ function decodeRequestOptions(raw) {
3903
4096
  }))
3904
4097
  };
3905
4098
  }
4099
+ /**
4100
+ * Thrown by {@link beginPasskeyLogin} when the server responds successfully
4101
+ * but with no credential options — typically because the account has no
4102
+ * passkeys enrolled. The OpenAPI schema does not formally model this state
4103
+ * (both `session_id` and `options` are optional on `PasskeyBeginResponse`),
4104
+ * so callers should distinguish it via `instanceof` rather than error text.
4105
+ */
4106
+ var PasskeyUnavailableError = class extends Error {
4107
+ constructor(message = "No passkeys available for this account") {
4108
+ super(message);
4109
+ this.name = "PasskeyUnavailableError";
4110
+ }
4111
+ };
3906
4112
  function encodeCredential(credential) {
3907
4113
  return btoa(JSON.stringify(credential));
3908
4114
  }
@@ -3941,7 +4147,7 @@ const finishPasskeyLogin = async (session_id, credential) => {
3941
4147
  },
3942
4148
  throwOnError: true
3943
4149
  });
3944
- persistTokens(data);
4150
+ if (!persistTokens(data)) throw new Error("Passkey authentication failed: incomplete token response");
3945
4151
  }, {
3946
4152
  [HTTP_STATUS.BAD_REQUEST]: () => /* @__PURE__ */ new Error("Invalid passkey credential"),
3947
4153
  [HTTP_STATUS.UNAUTHORIZED]: () => /* @__PURE__ */ new Error("Passkey authentication failed")
@@ -3954,7 +4160,7 @@ const beginPasskeyLogin = async () => {
3954
4160
  throwOnError: true
3955
4161
  });
3956
4162
  const sessionId = data.session_id;
3957
- if (!sessionId || !data.options) throw new Error("No passkeys available for this account");
4163
+ if (!sessionId || !data.options) throw new PasskeyUnavailableError();
3958
4164
  return {
3959
4165
  session_id: sessionId,
3960
4166
  options: decodeRequestOptions(data.options)
@@ -4035,7 +4241,7 @@ const verifyPasskeyForLogin = async (session_id, credential) => {
4035
4241
  },
4036
4242
  throwOnError: true
4037
4243
  });
4038
- persistTokens(data);
4244
+ if (!persistTokens(data)) throw new Error("Passkey verification failed: incomplete token response");
4039
4245
  }, {
4040
4246
  [HTTP_STATUS.BAD_REQUEST]: () => /* @__PURE__ */ new Error("Invalid passkey credential"),
4041
4247
  [HTTP_STATUS.UNAUTHORIZED]: () => /* @__PURE__ */ new Error("Passkey verification failed"),
@@ -4044,5 +4250,5 @@ const verifyPasskeyForLogin = async (session_id, credential) => {
4044
4250
  };
4045
4251
 
4046
4252
  //#endregion
4047
- export { DomainStatus, MembershipRole, MembershipState, 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 };
4253
+ 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 };
4048
4254
  //# sourceMappingURL=index.js.map