@rixl/sdk 0.41.0 → 0.43.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/README.md +43 -44
- package/dist/index.d.ts +5284 -3533
- package/dist/index.js +174 -150
- package/dist/index.js.map +1 -1
- package/package.json +7 -7
package/dist/index.js
CHANGED
|
@@ -2,11 +2,10 @@ import { atom } from "nanostores";
|
|
|
2
2
|
import { decodeJwt } from "jose";
|
|
3
3
|
import * as v from "valibot";
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
// src/generated/core/bodySerializer.gen.ts
|
|
6
6
|
const jsonBodySerializer = { bodySerializer: (body) => JSON.stringify(body, (_key, value) => typeof value === "bigint" ? value.toString() : value) };
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
//#region src/generated/core/serverSentEvents.gen.ts
|
|
8
|
+
// src/generated/core/serverSentEvents.gen.ts
|
|
10
9
|
function createSseClient({ onRequest, onSseError, onSseEvent, responseTransformer, responseValidator, sseDefaultRetryDelay, sseMaxRetryAttempts, sseMaxRetryDelay, sseSleepFn, url, ...options }) {
|
|
11
10
|
let lastEventId;
|
|
12
11
|
const sleep = sseSleepFn ?? ((ms) => new Promise((resolve) => setTimeout(resolve, ms)));
|
|
@@ -99,8 +98,7 @@ function createSseClient({ onRequest, onSseError, onSseEvent, responseTransforme
|
|
|
99
98
|
return { stream: createStream() };
|
|
100
99
|
}
|
|
101
100
|
|
|
102
|
-
|
|
103
|
-
//#region src/generated/core/pathSerializer.gen.ts
|
|
101
|
+
// src/generated/core/pathSerializer.gen.ts
|
|
104
102
|
const separatorArrayExplode = (style) => {
|
|
105
103
|
switch (style) {
|
|
106
104
|
case "label": return ".";
|
|
@@ -179,8 +177,7 @@ const serializeObjectParam = ({ allowReserved, explode, name, style, value, valu
|
|
|
179
177
|
return style === "label" || style === "matrix" ? separator + joinedValues : joinedValues;
|
|
180
178
|
};
|
|
181
179
|
|
|
182
|
-
|
|
183
|
-
//#region src/generated/core/utils.gen.ts
|
|
180
|
+
// src/generated/core/utils.gen.ts
|
|
184
181
|
const PATH_PARAM_RE = /\{[^{}]+\}/g;
|
|
185
182
|
const defaultPathSerializer = ({ path, url: _url }) => {
|
|
186
183
|
let url = _url;
|
|
@@ -254,8 +251,7 @@ function getValidRequestBody(options) {
|
|
|
254
251
|
if (hasBody) return options.body;
|
|
255
252
|
}
|
|
256
253
|
|
|
257
|
-
|
|
258
|
-
//#region src/generated/core/auth.gen.ts
|
|
254
|
+
// src/generated/core/auth.gen.ts
|
|
259
255
|
const getAuthToken = async (auth, callback) => {
|
|
260
256
|
const token = typeof callback === "function" ? await callback(auth) : callback;
|
|
261
257
|
if (!token) return;
|
|
@@ -264,8 +260,7 @@ const getAuthToken = async (auth, callback) => {
|
|
|
264
260
|
return token;
|
|
265
261
|
};
|
|
266
262
|
|
|
267
|
-
|
|
268
|
-
//#region src/generated/client/utils.gen.ts
|
|
263
|
+
// src/generated/client/utils.gen.ts
|
|
269
264
|
const createQuerySerializer = ({ parameters = {}, ...args } = {}) => {
|
|
270
265
|
const querySerializer = (queryParams) => {
|
|
271
266
|
const search = [];
|
|
@@ -435,8 +430,7 @@ const createConfig = (override = {}) => ({
|
|
|
435
430
|
...override
|
|
436
431
|
});
|
|
437
432
|
|
|
438
|
-
|
|
439
|
-
//#region src/generated/client/client.gen.ts
|
|
433
|
+
// src/generated/client/client.gen.ts
|
|
440
434
|
const createClient = (config = {}) => {
|
|
441
435
|
let _config = mergeConfigs(createConfig(), config);
|
|
442
436
|
const getConfig = () => ({ ..._config });
|
|
@@ -607,12 +601,10 @@ const createClient = (config = {}) => {
|
|
|
607
601
|
};
|
|
608
602
|
};
|
|
609
603
|
|
|
610
|
-
|
|
611
|
-
//#region src/generated/client.gen.ts
|
|
604
|
+
// src/generated/client.gen.ts
|
|
612
605
|
const client = createClient(createConfig({ baseUrl: "https://raw.githubusercontent.com" }));
|
|
613
606
|
|
|
614
|
-
|
|
615
|
-
//#region src/shared-runtime.ts
|
|
607
|
+
// src/shared-runtime.ts
|
|
616
608
|
/**
|
|
617
609
|
* Cross-instance runtime state for the SDK.
|
|
618
610
|
*
|
|
@@ -658,13 +650,11 @@ function shared(name, create) {
|
|
|
658
650
|
const copies = registry().copies += 1;
|
|
659
651
|
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.`);
|
|
660
652
|
|
|
661
|
-
|
|
662
|
-
//#region src/client-registry.ts
|
|
653
|
+
// src/client-registry.ts
|
|
663
654
|
/**
|
|
664
|
-
* The baseUrl the code generator bakes in
|
|
665
|
-
* OpenAPI input URL
|
|
666
|
-
*
|
|
667
|
-
* hardcoded so it stays correct if the generator input ever moves.
|
|
655
|
+
* The baseUrl the code generator bakes in: the spec's first server, or the
|
|
656
|
+
* origin of the OpenAPI input URL when the spec has none. Captured from the
|
|
657
|
+
* client itself rather than hardcoded so it stays correct if either moves.
|
|
668
658
|
*/
|
|
669
659
|
const placeholderBaseUrl = shared("placeholderBaseUrl", () => client.getConfig().baseUrl ?? "https://raw.githubusercontent.com");
|
|
670
660
|
const clients = shared("clients", () => /* @__PURE__ */ new Set());
|
|
@@ -672,9 +662,14 @@ const clients = shared("clients", () => /* @__PURE__ */ new Set());
|
|
|
672
662
|
const initializers = shared("clientInitializers", () => []);
|
|
673
663
|
/** Last baseUrl passed to {@link configureAllClients}, replayed onto late joiners. */
|
|
674
664
|
const appliedConfig = shared("appliedConfig", () => ({ baseUrl: void 0 }));
|
|
665
|
+
/**
|
|
666
|
+
* A client still holding the placeholder was never configured, unless connect()
|
|
667
|
+
* chose that same URL: once the spec names a real server, the default and the
|
|
668
|
+
* production baseUrl are identical.
|
|
669
|
+
*/
|
|
675
670
|
function isUnconfigured(target) {
|
|
676
671
|
const { baseUrl } = target.getConfig();
|
|
677
|
-
return !baseUrl || baseUrl === placeholderBaseUrl;
|
|
672
|
+
return !baseUrl || baseUrl === placeholderBaseUrl && appliedConfig.baseUrl !== baseUrl;
|
|
678
673
|
}
|
|
679
674
|
/**
|
|
680
675
|
* Fails a request that would otherwise be sent to the generator's placeholder
|
|
@@ -722,8 +717,7 @@ function configureAllClients(baseUrl) {
|
|
|
722
717
|
}
|
|
723
718
|
registerClient(client);
|
|
724
719
|
|
|
725
|
-
|
|
726
|
-
//#region src/generated/sdk.gen.ts
|
|
720
|
+
// src/generated/sdk.gen.ts
|
|
727
721
|
/**
|
|
728
722
|
* GetDashboardStats
|
|
729
723
|
*/
|
|
@@ -2557,9 +2551,100 @@ const videosV1VideoServiceGetVideo = (options) => (options.client ?? client).get
|
|
|
2557
2551
|
url: "/media/v1/videos/{video_id}",
|
|
2558
2552
|
...options
|
|
2559
2553
|
});
|
|
2554
|
+
/**
|
|
2555
|
+
* ListEndpoints
|
|
2556
|
+
*/
|
|
2557
|
+
const webhooksV1WebhookServiceListEndpoints = (options) => (options.client ?? client).get({
|
|
2558
|
+
url: "/webhooks/v1/projects/{project_id}/endpoints",
|
|
2559
|
+
...options
|
|
2560
|
+
});
|
|
2561
|
+
/**
|
|
2562
|
+
* CreateEndpoint
|
|
2563
|
+
*
|
|
2564
|
+
* CreateEndpoint registers a new HTTPS endpoint and returns its signing
|
|
2565
|
+
* secret exactly once. Store it; only a rotation returns a secret again.
|
|
2566
|
+
*/
|
|
2567
|
+
const webhooksV1WebhookServiceCreateEndpoint = (options) => (options.client ?? client).post({
|
|
2568
|
+
url: "/webhooks/v1/projects/{project_id}/endpoints",
|
|
2569
|
+
...options,
|
|
2570
|
+
headers: {
|
|
2571
|
+
"Content-Type": "application/json",
|
|
2572
|
+
...options.headers
|
|
2573
|
+
}
|
|
2574
|
+
});
|
|
2575
|
+
/**
|
|
2576
|
+
* DeleteEndpoint
|
|
2577
|
+
*/
|
|
2578
|
+
const webhooksV1WebhookServiceDeleteEndpoint = (options) => (options.client ?? client).delete({
|
|
2579
|
+
url: "/webhooks/v1/projects/{project_id}/endpoints/{endpoint_id}",
|
|
2580
|
+
...options
|
|
2581
|
+
});
|
|
2582
|
+
/**
|
|
2583
|
+
* GetEndpoint
|
|
2584
|
+
*/
|
|
2585
|
+
const webhooksV1WebhookServiceGetEndpoint = (options) => (options.client ?? client).get({
|
|
2586
|
+
url: "/webhooks/v1/projects/{project_id}/endpoints/{endpoint_id}",
|
|
2587
|
+
...options
|
|
2588
|
+
});
|
|
2589
|
+
/**
|
|
2590
|
+
* UpdateEndpoint
|
|
2591
|
+
*/
|
|
2592
|
+
const webhooksV1WebhookServiceUpdateEndpoint = (options) => (options.client ?? client).patch({
|
|
2593
|
+
url: "/webhooks/v1/projects/{project_id}/endpoints/{endpoint_id}",
|
|
2594
|
+
...options,
|
|
2595
|
+
headers: {
|
|
2596
|
+
"Content-Type": "application/json",
|
|
2597
|
+
...options.headers
|
|
2598
|
+
}
|
|
2599
|
+
});
|
|
2600
|
+
/**
|
|
2601
|
+
* ListEndpointAttempts
|
|
2602
|
+
*
|
|
2603
|
+
* ListEndpointAttempts returns the delivery history for one endpoint,
|
|
2604
|
+
* newest first.
|
|
2605
|
+
*/
|
|
2606
|
+
const webhooksV1WebhookServiceListEndpointAttempts = (options) => (options.client ?? client).get({
|
|
2607
|
+
url: "/webhooks/v1/projects/{project_id}/endpoints/{endpoint_id}/attempts",
|
|
2608
|
+
...options
|
|
2609
|
+
});
|
|
2610
|
+
/**
|
|
2611
|
+
* ReplayEvent
|
|
2612
|
+
*
|
|
2613
|
+
* ReplayEvent re-delivers one event to one endpoint with the same
|
|
2614
|
+
* webhook-id so consumers dedupe it against the original delivery.
|
|
2615
|
+
*/
|
|
2616
|
+
const webhooksV1WebhookServiceReplayEvent = (options) => (options.client ?? client).post({
|
|
2617
|
+
url: "/webhooks/v1/projects/{project_id}/endpoints/{endpoint_id}/events/{event_id}/replay",
|
|
2618
|
+
...options
|
|
2619
|
+
});
|
|
2620
|
+
/**
|
|
2621
|
+
* RotateEndpointSecret
|
|
2622
|
+
*
|
|
2623
|
+
* RotateEndpointSecret installs a fresh signing secret. For 24h deliveries
|
|
2624
|
+
* are signed with both the old and the new secret so consumers can migrate.
|
|
2625
|
+
*/
|
|
2626
|
+
const webhooksV1WebhookServiceRotateEndpointSecret = (options) => (options.client ?? client).post({
|
|
2627
|
+
url: "/webhooks/v1/projects/{project_id}/endpoints/{endpoint_id}/rotate-secret",
|
|
2628
|
+
...options
|
|
2629
|
+
});
|
|
2630
|
+
/**
|
|
2631
|
+
* SendTestEvent
|
|
2632
|
+
*
|
|
2633
|
+
* SendTestEvent delivers one synthetic webhook.test event to the endpoint.
|
|
2634
|
+
*/
|
|
2635
|
+
const webhooksV1WebhookServiceSendTestEvent = (options) => (options.client ?? client).post({
|
|
2636
|
+
url: "/webhooks/v1/projects/{project_id}/endpoints/{endpoint_id}/test",
|
|
2637
|
+
...options
|
|
2638
|
+
});
|
|
2639
|
+
/**
|
|
2640
|
+
* ListEvents
|
|
2641
|
+
*/
|
|
2642
|
+
const webhooksV1WebhookServiceListEvents = (options) => (options.client ?? client).get({
|
|
2643
|
+
url: "/webhooks/v1/projects/{project_id}/events",
|
|
2644
|
+
...options
|
|
2645
|
+
});
|
|
2560
2646
|
|
|
2561
|
-
|
|
2562
|
-
//#region src/auth/constants.ts
|
|
2647
|
+
// src/auth/constants.ts
|
|
2563
2648
|
/**
|
|
2564
2649
|
* Global constants for the auth library
|
|
2565
2650
|
*/
|
|
@@ -2582,8 +2667,7 @@ const HTTP_STATUS = {
|
|
|
2582
2667
|
INTERNAL_SERVER_ERROR: 500
|
|
2583
2668
|
};
|
|
2584
2669
|
|
|
2585
|
-
|
|
2586
|
-
//#region src/auth/state.ts
|
|
2670
|
+
// src/auth/state.ts
|
|
2587
2671
|
const storagePath$1 = (provider) => STATE_STORAGE_KEY_PREFIX + provider;
|
|
2588
2672
|
/**
|
|
2589
2673
|
* Retrieves and validates the OAuth state from session storage
|
|
@@ -2617,8 +2701,7 @@ function generateOauthState(provider) {
|
|
|
2617
2701
|
return state;
|
|
2618
2702
|
}
|
|
2619
2703
|
|
|
2620
|
-
|
|
2621
|
-
//#region src/auth/providers/oauth.ts
|
|
2704
|
+
// src/auth/providers/oauth.ts
|
|
2622
2705
|
/**
|
|
2623
2706
|
* Generic OAuth provider configuration and utilities
|
|
2624
2707
|
* This file contains shared logic for all OAuth providers to reduce duplication
|
|
@@ -2673,8 +2756,7 @@ const createOAuthProvider = ({ provider, metadata }) => {
|
|
|
2673
2756
|
};
|
|
2674
2757
|
};
|
|
2675
2758
|
|
|
2676
|
-
|
|
2677
|
-
//#region src/auth/providers/google.ts
|
|
2759
|
+
// src/auth/providers/google.ts
|
|
2678
2760
|
const googleProvider = createOAuthProvider({
|
|
2679
2761
|
provider: "google",
|
|
2680
2762
|
metadata: {
|
|
@@ -2692,8 +2774,7 @@ const googleConfig = googleProvider.config;
|
|
|
2692
2774
|
const googleAuthUrl = googleProvider.authUrl;
|
|
2693
2775
|
const updateGoogleAuthUrl = googleProvider.updateAuthUrl;
|
|
2694
2776
|
|
|
2695
|
-
|
|
2696
|
-
//#region src/auth/providers/microsoft.ts
|
|
2777
|
+
// src/auth/providers/microsoft.ts
|
|
2697
2778
|
const microsoftProvider = createOAuthProvider({
|
|
2698
2779
|
provider: "microsoft",
|
|
2699
2780
|
metadata: {
|
|
@@ -2712,8 +2793,7 @@ const microsoftConfig = microsoftProvider.config;
|
|
|
2712
2793
|
const microsoftAuthUrl = microsoftProvider.authUrl;
|
|
2713
2794
|
const updateMicrosoftAuthUrl = microsoftProvider.updateAuthUrl;
|
|
2714
2795
|
|
|
2715
|
-
|
|
2716
|
-
//#region src/auth/providers/apple.ts
|
|
2796
|
+
// src/auth/providers/apple.ts
|
|
2717
2797
|
const appleProvider = createOAuthProvider({
|
|
2718
2798
|
provider: "apple",
|
|
2719
2799
|
metadata: {
|
|
@@ -2728,8 +2808,7 @@ const appleConfig = appleProvider.config;
|
|
|
2728
2808
|
const appleAuthUrl = appleProvider.authUrl;
|
|
2729
2809
|
const updateAppleAuthUrl = appleProvider.updateAuthUrl;
|
|
2730
2810
|
|
|
2731
|
-
|
|
2732
|
-
//#region src/auth/pkce.ts
|
|
2811
|
+
// src/auth/pkce.ts
|
|
2733
2812
|
const storagePath = (provider) => PKCE_STORAGE_KEY_PREFIX + provider;
|
|
2734
2813
|
const base64Url = (bytes) => btoa(String.fromCharCode(...bytes)).replace(/\+/g, "-").replace(/\//g, "_").replace(/=+$/, "");
|
|
2735
2814
|
/**
|
|
@@ -2756,15 +2835,13 @@ async function pkceChallenge(verifier) {
|
|
|
2756
2835
|
return base64Url(new Uint8Array(digest));
|
|
2757
2836
|
}
|
|
2758
2837
|
|
|
2759
|
-
|
|
2760
|
-
//#region src/auth/url.ts
|
|
2838
|
+
// src/auth/url.ts
|
|
2761
2839
|
const urlParams = new URLSearchParams(typeof window !== "undefined" ? fromURL(window.location.href) : "");
|
|
2762
2840
|
function fromURL(urlString) {
|
|
2763
2841
|
return urlString.replace(/^[^?#]*[?#]/, "").replace(/[?#]/g, "&");
|
|
2764
2842
|
}
|
|
2765
2843
|
|
|
2766
|
-
|
|
2767
|
-
//#region src/auth/providers/authorization-code.ts
|
|
2844
|
+
// src/auth/providers/authorization-code.ts
|
|
2768
2845
|
/** Builds an authorization code request carrying the provider's state and a PKCE S256 challenge. */
|
|
2769
2846
|
const authorizationCodeUrl = async (provider, request) => {
|
|
2770
2847
|
const params = new URLSearchParams({
|
|
@@ -2795,8 +2872,7 @@ const readAuthorizationCode = (provider, redirectUri) => {
|
|
|
2795
2872
|
} };
|
|
2796
2873
|
};
|
|
2797
2874
|
|
|
2798
|
-
|
|
2799
|
-
//#region src/auth/providers/telegram.ts
|
|
2875
|
+
// src/auth/providers/telegram.ts
|
|
2800
2876
|
const TELEGRAM_AUTH_URL = "https://oauth.telegram.org/auth";
|
|
2801
2877
|
const telegramConfig = shared("provider.telegram.config", () => atom(null));
|
|
2802
2878
|
const telegramAuthUrl = shared("provider.telegram.authUrl", () => atom(null));
|
|
@@ -2832,8 +2908,7 @@ const readTelegramCode = () => {
|
|
|
2832
2908
|
return config ? readAuthorizationCode("telegram", telegramRedirectUri(config)) : void 0;
|
|
2833
2909
|
};
|
|
2834
2910
|
|
|
2835
|
-
|
|
2836
|
-
//#region src/auth/providers/utils.ts
|
|
2911
|
+
// src/auth/providers/utils.ts
|
|
2837
2912
|
/**
|
|
2838
2913
|
* Extracts the provider identifier from a state parameter
|
|
2839
2914
|
* @param state The state parameter from the OAuth redirect
|
|
@@ -2886,8 +2961,7 @@ function getProviderCredential(provider) {
|
|
|
2886
2961
|
return CALLBACK_READERS.find((reader) => reader.provider === provider)?.read();
|
|
2887
2962
|
}
|
|
2888
2963
|
|
|
2889
|
-
|
|
2890
|
-
//#region src/auth/providers/credential.ts
|
|
2964
|
+
// src/auth/providers/credential.ts
|
|
2891
2965
|
/** The credential as the sign-in and link requests carry it. */
|
|
2892
2966
|
const credentialFields = (credential) => {
|
|
2893
2967
|
if ("token" in credential) return { token: credential.token };
|
|
@@ -2899,8 +2973,7 @@ const credentialFields = (credential) => {
|
|
|
2899
2973
|
};
|
|
2900
2974
|
};
|
|
2901
2975
|
|
|
2902
|
-
|
|
2903
|
-
//#region src/auth/providers/callback.ts
|
|
2976
|
+
// src/auth/providers/callback.ts
|
|
2904
2977
|
/** Params that carry the credential itself — their presence marks a callback response. */
|
|
2905
2978
|
const CREDENTIAL_PARAMS = [
|
|
2906
2979
|
"id_token",
|
|
@@ -2972,8 +3045,7 @@ const completeOAuthCallback = () => {
|
|
|
2972
3045
|
window.history.replaceState(window.history.state, "", withoutOAuthResponse(window.location.href));
|
|
2973
3046
|
};
|
|
2974
3047
|
|
|
2975
|
-
|
|
2976
|
-
//#region src/auth/api/types.ts
|
|
3048
|
+
// src/auth/api/types.ts
|
|
2977
3049
|
/**
|
|
2978
3050
|
* Generic API error class - wraps ky's HTTPError for consistency
|
|
2979
3051
|
*/
|
|
@@ -2997,8 +3069,7 @@ var ApiError = class extends Error {
|
|
|
2997
3069
|
}
|
|
2998
3070
|
};
|
|
2999
3071
|
|
|
3000
|
-
|
|
3001
|
-
//#region src/auth/providers/diagnostics.ts
|
|
3072
|
+
// src/auth/providers/diagnostics.ts
|
|
3002
3073
|
const claimsOf = (token) => {
|
|
3003
3074
|
try {
|
|
3004
3075
|
const { iss, aud, exp, nonce, email } = decodeJwt(token);
|
|
@@ -3079,8 +3150,7 @@ const logProviderExchangeFailure = (provider, credential, error) => {
|
|
|
3079
3150
|
});
|
|
3080
3151
|
};
|
|
3081
3152
|
|
|
3082
|
-
|
|
3083
|
-
//#region src/auth/api/refresh-tokens.ts
|
|
3153
|
+
// src/auth/api/refresh-tokens.ts
|
|
3084
3154
|
/**
|
|
3085
3155
|
* Exchange a provider credential for a Rixl session, or refresh an existing
|
|
3086
3156
|
* Rixl session with a Bearer refresh token.
|
|
@@ -3106,8 +3176,7 @@ const refreshTokens = async (provider, credential, options) => {
|
|
|
3106
3176
|
return data;
|
|
3107
3177
|
};
|
|
3108
3178
|
|
|
3109
|
-
|
|
3110
|
-
//#region src/auth/initialization.ts
|
|
3179
|
+
// src/auth/initialization.ts
|
|
3111
3180
|
/**
|
|
3112
3181
|
* Creates a deferred promise that can be resolved or rejected externally
|
|
3113
3182
|
* @returns A deferred promise object
|
|
@@ -3135,8 +3204,7 @@ function createDeferred() {
|
|
|
3135
3204
|
*/
|
|
3136
3205
|
const initDeferred = shared("initDeferred", createDeferred);
|
|
3137
3206
|
|
|
3138
|
-
|
|
3139
|
-
//#region src/auth/cookie/util.ts
|
|
3207
|
+
// src/auth/cookie/util.ts
|
|
3140
3208
|
const splitOnFirstEquals = (pair) => {
|
|
3141
3209
|
const trimmed = pair.trim();
|
|
3142
3210
|
const separator = trimmed.indexOf("=");
|
|
@@ -3172,8 +3240,7 @@ function deleteCookie(name) {
|
|
|
3172
3240
|
const encodeName = (name) => encodeURIComponent(name).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent);
|
|
3173
3241
|
const encodeValue = (value) => encodeURIComponent(value).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g, decodeURIComponent);
|
|
3174
3242
|
|
|
3175
|
-
|
|
3176
|
-
//#region src/auth/cookie/index.ts
|
|
3243
|
+
// src/auth/cookie/index.ts
|
|
3177
3244
|
const initVals = getAllCookiesStartWith(GLOBAL_PREFIX);
|
|
3178
3245
|
/** The stored values as they are now, which other tabs may have rewritten since load. */
|
|
3179
3246
|
const readStoreCookies = () => getAllCookiesStartWith(GLOBAL_PREFIX);
|
|
@@ -3193,8 +3260,7 @@ const setStoreCookie = (key, value) => {
|
|
|
3193
3260
|
});
|
|
3194
3261
|
};
|
|
3195
3262
|
|
|
3196
|
-
|
|
3197
|
-
//#region src/auth/userStore.ts
|
|
3263
|
+
// src/auth/userStore.ts
|
|
3198
3264
|
const userPath = GLOBAL_PREFIX + "_user";
|
|
3199
3265
|
const parseUser = () => {
|
|
3200
3266
|
if (typeof localStorage === "undefined" || !localStorage || typeof localStorage.getItem !== "function") return;
|
|
@@ -3216,8 +3282,7 @@ const user = shared("user", () => {
|
|
|
3216
3282
|
return store;
|
|
3217
3283
|
});
|
|
3218
3284
|
|
|
3219
|
-
|
|
3220
|
-
//#region src/auth/permissions/matcher.ts
|
|
3285
|
+
// src/auth/permissions/matcher.ts
|
|
3221
3286
|
/**
|
|
3222
3287
|
* Permission strings follow a `service:resource:action` grammar, e.g.
|
|
3223
3288
|
* `media:videos:read`. Only the trailing action segment carries the verb, so
|
|
@@ -3250,8 +3315,7 @@ const matches = (held, required) => {
|
|
|
3250
3315
|
return (SUPERSETS[verb] ?? []).some((superset) => held.has(resource + superset));
|
|
3251
3316
|
};
|
|
3252
3317
|
|
|
3253
|
-
|
|
3254
|
-
//#region src/auth/permissions/epoch.ts
|
|
3318
|
+
// src/auth/permissions/epoch.ts
|
|
3255
3319
|
/**
|
|
3256
3320
|
* Counts the identity scopes that have come and gone — an organization switch,
|
|
3257
3321
|
* a sign-out. A response that started under an earlier scope answers a question
|
|
@@ -3269,8 +3333,7 @@ const retirePermissionEpoch = () => {
|
|
|
3269
3333
|
state$1.current += 1;
|
|
3270
3334
|
};
|
|
3271
3335
|
|
|
3272
|
-
|
|
3273
|
-
//#region src/auth/permissionStore.ts
|
|
3336
|
+
// src/auth/permissionStore.ts
|
|
3274
3337
|
/**
|
|
3275
3338
|
* The current identity's effective permissions in their active organization.
|
|
3276
3339
|
*
|
|
@@ -3312,8 +3375,7 @@ const clearPermissions = () => {
|
|
|
3312
3375
|
permissionsResolved.set(false);
|
|
3313
3376
|
};
|
|
3314
3377
|
|
|
3315
|
-
|
|
3316
|
-
//#region src/auth/utils/jwt.ts
|
|
3378
|
+
// src/auth/utils/jwt.ts
|
|
3317
3379
|
/**
|
|
3318
3380
|
* Decodes a JWT token and extracts user information
|
|
3319
3381
|
* Uses jose library for modern, secure JWT handling
|
|
@@ -3361,8 +3423,7 @@ const isTokenExpired = (expireAt) => {
|
|
|
3361
3423
|
return Date.now() >= expireAt;
|
|
3362
3424
|
};
|
|
3363
3425
|
|
|
3364
|
-
|
|
3365
|
-
//#region src/auth/utils/requires-action.ts
|
|
3426
|
+
// src/auth/utils/requires-action.ts
|
|
3366
3427
|
/**
|
|
3367
3428
|
* Whether a token response is limited scope: it names an action the user must
|
|
3368
3429
|
* take before getting full tokens (e.g. `add_email`). The gateway emits every
|
|
@@ -3371,8 +3432,7 @@ const isTokenExpired = (expireAt) => {
|
|
|
3371
3432
|
*/
|
|
3372
3433
|
const isLimitedScopeTokenResponse = (result) => "requires_action" in result && Boolean(result.requires_action);
|
|
3373
3434
|
|
|
3374
|
-
|
|
3375
|
-
//#region src/auth/session-channel.ts
|
|
3435
|
+
// src/auth/session-channel.ts
|
|
3376
3436
|
const LOGOUT = "logout";
|
|
3377
3437
|
const channel = shared("sessionChannel", () => typeof window === "undefined" || typeof BroadcastChannel === "undefined" ? null : new BroadcastChannel(`${GLOBAL_PREFIX}_session`));
|
|
3378
3438
|
/** Tells the other tabs on this origin that the user logged out. */
|
|
@@ -3387,8 +3447,7 @@ const onLogoutElsewhere = (handler) => {
|
|
|
3387
3447
|
});
|
|
3388
3448
|
};
|
|
3389
3449
|
|
|
3390
|
-
|
|
3391
|
-
//#region src/auth/authStore.ts
|
|
3450
|
+
// src/auth/authStore.ts
|
|
3392
3451
|
const ensureSessionSync = () => {
|
|
3393
3452
|
shared("sessionSyncInitialized", () => {
|
|
3394
3453
|
onLogoutElsewhere(() => removeTokens());
|
|
@@ -3593,15 +3652,13 @@ const clearLimitedAccessState = () => {
|
|
|
3593
3652
|
if (!(!!accessToken.get() && !!refreshToken.get())) isLogged.set(false);
|
|
3594
3653
|
};
|
|
3595
3654
|
|
|
3596
|
-
|
|
3597
|
-
//#region src/auth/api-url.ts
|
|
3655
|
+
// src/auth/api-url.ts
|
|
3598
3656
|
/**
|
|
3599
3657
|
* Global API base URL store
|
|
3600
3658
|
*/
|
|
3601
3659
|
const apiURL = shared("apiURL", () => atom(""));
|
|
3602
3660
|
|
|
3603
|
-
|
|
3604
|
-
//#region src/auth/api/sdk-client.ts
|
|
3661
|
+
// src/auth/api/sdk-client.ts
|
|
3605
3662
|
function isWireErrorBody(error) {
|
|
3606
3663
|
return typeof error === "object" && error !== null;
|
|
3607
3664
|
}
|
|
@@ -3763,8 +3820,7 @@ function configureSdkClient() {
|
|
|
3763
3820
|
});
|
|
3764
3821
|
}
|
|
3765
3822
|
|
|
3766
|
-
|
|
3767
|
-
//#region src/auth/social/socialState.ts
|
|
3823
|
+
// src/auth/social/socialState.ts
|
|
3768
3824
|
const socialStoragePath = (provider) => SOCIAL_CONNECT_KEY_PREFIX + provider;
|
|
3769
3825
|
/**
|
|
3770
3826
|
* Sets a flag indicating that a social provider connection is being attempted
|
|
@@ -3795,8 +3851,7 @@ function clearSocialConnectAttempts() {
|
|
|
3795
3851
|
} catch {}
|
|
3796
3852
|
}
|
|
3797
3853
|
|
|
3798
|
-
|
|
3799
|
-
//#region src/auth/api/error-handlers.ts
|
|
3854
|
+
// src/auth/api/error-handlers.ts
|
|
3800
3855
|
/**
|
|
3801
3856
|
* Helper to create error functions - reduces bundle size by reusing error creation logic
|
|
3802
3857
|
*/
|
|
@@ -3822,8 +3877,7 @@ const handleApiError = (error, statusHandlers) => {
|
|
|
3822
3877
|
throw error;
|
|
3823
3878
|
};
|
|
3824
3879
|
|
|
3825
|
-
|
|
3826
|
-
//#region src/auth/api/utils.ts
|
|
3880
|
+
// src/auth/api/utils.ts
|
|
3827
3881
|
/**
|
|
3828
3882
|
* Generic helper for API calls to handle initialization and error handling
|
|
3829
3883
|
* @param fn The async function to execute
|
|
@@ -3839,8 +3893,7 @@ const apiCall = async (fn, errorMap = {}) => {
|
|
|
3839
3893
|
}
|
|
3840
3894
|
};
|
|
3841
3895
|
|
|
3842
|
-
|
|
3843
|
-
//#region src/auth/api/tokens.ts
|
|
3896
|
+
// src/auth/api/tokens.ts
|
|
3844
3897
|
function persistTokens(data) {
|
|
3845
3898
|
const tokens = data ?? {};
|
|
3846
3899
|
if (tokens.access_token && tokens.refresh_token && tokens.expires_in) {
|
|
@@ -3850,8 +3903,7 @@ function persistTokens(data) {
|
|
|
3850
3903
|
return false;
|
|
3851
3904
|
}
|
|
3852
3905
|
|
|
3853
|
-
|
|
3854
|
-
//#region src/auth/validation/base.ts
|
|
3906
|
+
// src/auth/validation/base.ts
|
|
3855
3907
|
/**
|
|
3856
3908
|
* 🛡️ INPUT VALIDATION UTILITY
|
|
3857
3909
|
* Validates data before API calls and throws user-friendly errors
|
|
@@ -3889,8 +3941,7 @@ const NameSchema = v.pipe(v.string("Name must be text"), v.minLength(1, "Name mu
|
|
|
3889
3941
|
*/
|
|
3890
3942
|
const DomainSchema = v.pipe(v.string("Domain must be text"), v.trim(), v.toLowerCase(), v.minLength(1, "Domain is required"), v.regex(/^[a-z0-9]([a-z0-9-]*[a-z0-9])?(\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)+$/, "Invalid domain format. Please enter a valid domain like company.com"));
|
|
3891
3943
|
|
|
3892
|
-
|
|
3893
|
-
//#region src/auth/validation/auth.ts
|
|
3944
|
+
// src/auth/validation/auth.ts
|
|
3894
3945
|
const EmailAuthRequestSchema = v.object({
|
|
3895
3946
|
email: EmailSchema,
|
|
3896
3947
|
password: PasswordSchema
|
|
@@ -3929,8 +3980,7 @@ const ConnectProviderSchema = v.object({
|
|
|
3929
3980
|
*/
|
|
3930
3981
|
const VerifyOTPCodeSchema = v.object({ code: v.pipe(v.string("OTP code must be text"), v.minLength(6, "OTP code must be at least 6 characters"), v.regex(/^\d+$/, "OTP code must contain only numbers")) });
|
|
3931
3982
|
|
|
3932
|
-
|
|
3933
|
-
//#region src/auth/social/socialConnections.ts
|
|
3983
|
+
// src/auth/social/socialConnections.ts
|
|
3934
3984
|
const PROVIDER_TO_PROTO = {
|
|
3935
3985
|
google: "EXTERNAL_ACCOUNT_PROVIDER_GOOGLE",
|
|
3936
3986
|
apple: "EXTERNAL_ACCOUNT_PROVIDER_APPLE",
|
|
@@ -4008,15 +4058,13 @@ const connectSocial = (provider) => {
|
|
|
4008
4058
|
login(provider);
|
|
4009
4059
|
};
|
|
4010
4060
|
|
|
4011
|
-
|
|
4012
|
-
//#region src/auth/authConfig.ts
|
|
4061
|
+
// src/auth/authConfig.ts
|
|
4013
4062
|
const config = shared("authConfig", () => ({ loginRedirectUrl: void 0 }));
|
|
4014
4063
|
const setLoginRedirectUrl = (url) => {
|
|
4015
4064
|
config.loginRedirectUrl = url;
|
|
4016
4065
|
};
|
|
4017
4066
|
|
|
4018
|
-
|
|
4019
|
-
//#region src/auth/init.ts
|
|
4067
|
+
// src/auth/init.ts
|
|
4020
4068
|
/**
|
|
4021
4069
|
* Initializes the authentication client with the provided configuration
|
|
4022
4070
|
* @param config The authentication client configuration
|
|
@@ -4140,8 +4188,7 @@ const initSocials = async () => {
|
|
|
4140
4188
|
}
|
|
4141
4189
|
};
|
|
4142
4190
|
|
|
4143
|
-
|
|
4144
|
-
//#region src/platform/platformAuthStore.ts
|
|
4191
|
+
// src/platform/platformAuthStore.ts
|
|
4145
4192
|
const platformAccessToken = shared("platformAccessToken", () => atom(void 0));
|
|
4146
4193
|
const platformRefreshToken = shared("platformRefreshToken", () => atom(void 0));
|
|
4147
4194
|
const platformExpireAt = shared("platformExpireAt", () => atom(0));
|
|
@@ -4197,8 +4244,7 @@ const getPlatformToken = async () => {
|
|
|
4197
4244
|
return currentPlatformTokenPromise;
|
|
4198
4245
|
};
|
|
4199
4246
|
|
|
4200
|
-
|
|
4201
|
-
//#region src/connect.ts
|
|
4247
|
+
// src/connect.ts
|
|
4202
4248
|
const connect = async (config) => {
|
|
4203
4249
|
apiURL.set(config.baseUrl);
|
|
4204
4250
|
configureAllClients(config.baseUrl);
|
|
@@ -4221,8 +4267,7 @@ const connect = async (config) => {
|
|
|
4221
4267
|
});
|
|
4222
4268
|
};
|
|
4223
4269
|
|
|
4224
|
-
|
|
4225
|
-
//#region src/auth/auth/logout.ts
|
|
4270
|
+
// src/auth/auth/logout.ts
|
|
4226
4271
|
const logout = async () => {
|
|
4227
4272
|
try {
|
|
4228
4273
|
const body = {
|
|
@@ -4240,8 +4285,7 @@ const logout = async () => {
|
|
|
4240
4285
|
}
|
|
4241
4286
|
};
|
|
4242
4287
|
|
|
4243
|
-
|
|
4244
|
-
//#region src/auth/membership/types.ts
|
|
4288
|
+
// src/auth/membership/types.ts
|
|
4245
4289
|
let MembershipRole = /* @__PURE__ */ function(MembershipRole) {
|
|
4246
4290
|
MembershipRole["OWNER"] = "owner";
|
|
4247
4291
|
MembershipRole["ADMIN"] = "admin";
|
|
@@ -4257,8 +4301,7 @@ let MembershipState = /* @__PURE__ */ function(MembershipState) {
|
|
|
4257
4301
|
return MembershipState;
|
|
4258
4302
|
}({});
|
|
4259
4303
|
|
|
4260
|
-
|
|
4261
|
-
//#region src/auth/membership/mappers.ts
|
|
4304
|
+
// src/auth/membership/mappers.ts
|
|
4262
4305
|
const ROLE_FROM_PROTO = {
|
|
4263
4306
|
MEMBERSHIP_ROLE_UNSPECIFIED: "member",
|
|
4264
4307
|
MEMBERSHIP_ROLE_OWNER: "owner",
|
|
@@ -4331,8 +4374,7 @@ function toMember(m) {
|
|
|
4331
4374
|
};
|
|
4332
4375
|
}
|
|
4333
4376
|
|
|
4334
|
-
|
|
4335
|
-
//#region src/auth/membership/list.ts
|
|
4377
|
+
// src/auth/membership/list.ts
|
|
4336
4378
|
const listActiveMemberships = async (paginationParams) => {
|
|
4337
4379
|
return apiCall(async () => {
|
|
4338
4380
|
const { data } = await authV1MembershipServiceListMemberships({
|
|
@@ -4370,8 +4412,7 @@ const listOrganizationMembers = async (orgId, paginationParams) => {
|
|
|
4370
4412
|
}, { [HTTP_STATUS.UNAUTHORIZED]: () => /* @__PURE__ */ new Error("User is not authorized to list organization members!") });
|
|
4371
4413
|
};
|
|
4372
4414
|
|
|
4373
|
-
|
|
4374
|
-
//#region src/auth/validation/membership.ts
|
|
4415
|
+
// src/auth/validation/membership.ts
|
|
4375
4416
|
/**
|
|
4376
4417
|
* Membership state schemas
|
|
4377
4418
|
*/
|
|
@@ -4387,8 +4428,7 @@ const InviteMemberSchema = v.object({
|
|
|
4387
4428
|
const UpdateMemberRoleSchema = v.object({ role: v.union([v.literal("admin"), v.literal("member")]) });
|
|
4388
4429
|
const ResendInviteSchema = v.object({ user_id: v.pipe(v.string("User ID must be text"), v.minLength(1, "User ID is required")) });
|
|
4389
4430
|
|
|
4390
|
-
|
|
4391
|
-
//#region src/auth/membership/invite.ts
|
|
4431
|
+
// src/auth/membership/invite.ts
|
|
4392
4432
|
const ROLE_TO_PROTO$1 = {
|
|
4393
4433
|
admin: "MEMBERSHIP_ROLE_ADMIN",
|
|
4394
4434
|
member: "MEMBERSHIP_ROLE_MEMBER"
|
|
@@ -4458,8 +4498,7 @@ const publicRespondToInvitation = async (token, state) => {
|
|
|
4458
4498
|
}, { [HTTP_STATUS.BAD_REQUEST]: () => /* @__PURE__ */ new Error("Invalid invitation token!") });
|
|
4459
4499
|
};
|
|
4460
4500
|
|
|
4461
|
-
|
|
4462
|
-
//#region src/auth/membership/manage.ts
|
|
4501
|
+
// src/auth/membership/manage.ts
|
|
4463
4502
|
const ROLE_TO_PROTO = {
|
|
4464
4503
|
admin: "MEMBERSHIP_ROLE_ADMIN",
|
|
4465
4504
|
member: "MEMBERSHIP_ROLE_MEMBER"
|
|
@@ -4529,8 +4568,7 @@ const leaveOrganization = async (orgId) => {
|
|
|
4529
4568
|
});
|
|
4530
4569
|
};
|
|
4531
4570
|
|
|
4532
|
-
|
|
4533
|
-
//#region src/auth/validation/user.ts
|
|
4571
|
+
// src/auth/validation/user.ts
|
|
4534
4572
|
/**
|
|
4535
4573
|
* Update username request schema
|
|
4536
4574
|
*/
|
|
@@ -4540,8 +4578,7 @@ const UpdateUsernameSchema = v.object({ username: UsernameSchema });
|
|
|
4540
4578
|
*/
|
|
4541
4579
|
const UpdateNameSchema = v.object({ full_name: NameSchema });
|
|
4542
4580
|
|
|
4543
|
-
|
|
4544
|
-
//#region src/auth/user.ts
|
|
4581
|
+
// src/auth/user.ts
|
|
4545
4582
|
const getUserInfo = async (userId) => {
|
|
4546
4583
|
return apiCall(async () => {
|
|
4547
4584
|
const { data } = await authV1UserServiceGetUserInfo({
|
|
@@ -4639,8 +4676,7 @@ const regenerateBackupCodes = async (userId) => {
|
|
|
4639
4676
|
}, { [HTTP_STATUS.UNAUTHORIZED]: () => /* @__PURE__ */ new Error("Token is missing or invalid; user is not authenticated.") });
|
|
4640
4677
|
};
|
|
4641
4678
|
|
|
4642
|
-
|
|
4643
|
-
//#region src/auth/organization.ts
|
|
4679
|
+
// src/auth/organization.ts
|
|
4644
4680
|
const updateOrgName = async (fullName, orgId) => {
|
|
4645
4681
|
return apiCall(async () => {
|
|
4646
4682
|
const requestBody = validateInput(UpdateNameSchema, { full_name: fullName });
|
|
@@ -4669,8 +4705,7 @@ const updateOrgUsername = async (username, orgId) => {
|
|
|
4669
4705
|
});
|
|
4670
4706
|
};
|
|
4671
4707
|
|
|
4672
|
-
|
|
4673
|
-
//#region src/auth/auth/login.ts
|
|
4708
|
+
// src/auth/auth/login.ts
|
|
4674
4709
|
/**
|
|
4675
4710
|
* Maps the AuthV1AuthMethod values returned by the gateway to the SDK's
|
|
4676
4711
|
* lowercase `TwoFactorAuthMethod` domain type. The proto-shaped enum uses
|
|
@@ -4759,8 +4794,7 @@ function isApiErrorBody(error) {
|
|
|
4759
4794
|
return typeof error === "object" && error !== null && "error" in error;
|
|
4760
4795
|
}
|
|
4761
4796
|
|
|
4762
|
-
|
|
4763
|
-
//#region src/auth/auth/register.ts
|
|
4797
|
+
// src/auth/auth/register.ts
|
|
4764
4798
|
const registerWithEmail = async (email, password, subscribeToBlog, countryCode) => {
|
|
4765
4799
|
return apiCall(async () => {
|
|
4766
4800
|
const validatedInput = validateInput(RegisterRequestSchema, {
|
|
@@ -4799,8 +4833,7 @@ const resendEmailVerificationCode = async (email) => {
|
|
|
4799
4833
|
});
|
|
4800
4834
|
};
|
|
4801
4835
|
|
|
4802
|
-
|
|
4803
|
-
//#region src/auth/auth/password.ts
|
|
4836
|
+
// src/auth/auth/password.ts
|
|
4804
4837
|
const sendPasswordResetEmail = async (email) => {
|
|
4805
4838
|
return apiCall(async () => {
|
|
4806
4839
|
const validatedInput = validateInput(ResendEmailRequestSchema, { email });
|
|
@@ -4823,8 +4856,7 @@ const confirmPasswordReset = async (token, password) => {
|
|
|
4823
4856
|
}, { [HTTP_STATUS.BAD_REQUEST]: () => /* @__PURE__ */ new Error("Bad request - invalid token or password") });
|
|
4824
4857
|
};
|
|
4825
4858
|
|
|
4826
|
-
|
|
4827
|
-
//#region src/auth/auth/email.ts
|
|
4859
|
+
// src/auth/auth/email.ts
|
|
4828
4860
|
const initiateEmailChange = async (email) => {
|
|
4829
4861
|
return apiCall(async () => {
|
|
4830
4862
|
const validatedInput = validateInput(ChangeEmailRequestSchema, { new_email: email });
|
|
@@ -4915,8 +4947,7 @@ const getEmailVerificationStatus = async () => {
|
|
|
4915
4947
|
}, { [HTTP_STATUS.UNAUTHORIZED]: () => /* @__PURE__ */ new Error("Unauthorized - invalid or missing token") });
|
|
4916
4948
|
};
|
|
4917
4949
|
|
|
4918
|
-
|
|
4919
|
-
//#region src/auth/validation/domain.ts
|
|
4950
|
+
// src/auth/validation/domain.ts
|
|
4920
4951
|
/**
|
|
4921
4952
|
* Add domain request schema
|
|
4922
4953
|
*/
|
|
@@ -4926,8 +4957,7 @@ const AddDomainSchema = v.object({ domain: DomainSchema });
|
|
|
4926
4957
|
*/
|
|
4927
4958
|
const UpdateAutoJoinSchema = v.object({ enabled: v.boolean("Auto-join setting must be a boolean") });
|
|
4928
4959
|
|
|
4929
|
-
|
|
4930
|
-
//#region src/auth/domain/types.ts
|
|
4960
|
+
// src/auth/domain/types.ts
|
|
4931
4961
|
let DomainStatus = /* @__PURE__ */ function(DomainStatus) {
|
|
4932
4962
|
DomainStatus["PENDING"] = "pending";
|
|
4933
4963
|
DomainStatus["VERIFIED"] = "verified";
|
|
@@ -4935,8 +4965,7 @@ let DomainStatus = /* @__PURE__ */ function(DomainStatus) {
|
|
|
4935
4965
|
return DomainStatus;
|
|
4936
4966
|
}({});
|
|
4937
4967
|
|
|
4938
|
-
|
|
4939
|
-
//#region src/auth/domain/mappers.ts
|
|
4968
|
+
// src/auth/domain/mappers.ts
|
|
4940
4969
|
function toDomainResponse(data) {
|
|
4941
4970
|
const status = data.status;
|
|
4942
4971
|
const verified = status && "verified" in status ? status.verified : void 0;
|
|
@@ -4962,8 +4991,7 @@ function toAutoJoinSetting(data) {
|
|
|
4962
4991
|
};
|
|
4963
4992
|
}
|
|
4964
4993
|
|
|
4965
|
-
|
|
4966
|
-
//#region src/auth/domain/index.ts
|
|
4994
|
+
// src/auth/domain/index.ts
|
|
4967
4995
|
const getDomainStatus = async (orgId) => {
|
|
4968
4996
|
return apiCall(async () => {
|
|
4969
4997
|
try {
|
|
@@ -5021,8 +5049,7 @@ const removeDomain = async (orgId) => {
|
|
|
5021
5049
|
}, { [HTTP_STATUS.UNAUTHORIZED]: () => /* @__PURE__ */ new Error("Not authorized to remove domain") });
|
|
5022
5050
|
};
|
|
5023
5051
|
|
|
5024
|
-
|
|
5025
|
-
//#region src/auth/blog/index.ts
|
|
5052
|
+
// src/auth/blog/index.ts
|
|
5026
5053
|
const BLOG_SUBSCRIPTION_ERRORS = {
|
|
5027
5054
|
[HTTP_STATUS.UNAUTHORIZED]: () => /* @__PURE__ */ new Error("User is not authorized to manage blog subscription"),
|
|
5028
5055
|
[HTTP_STATUS.FORBIDDEN]: () => /* @__PURE__ */ new Error("Account is inactive"),
|
|
@@ -5054,8 +5081,7 @@ const unsubscribeFromBlog = async () => {
|
|
|
5054
5081
|
});
|
|
5055
5082
|
};
|
|
5056
5083
|
|
|
5057
|
-
|
|
5058
|
-
//#region src/auth/passkey.ts
|
|
5084
|
+
// src/auth/passkey.ts
|
|
5059
5085
|
function base64urlToBuffer(base64url) {
|
|
5060
5086
|
const base64 = base64url.replace(/-/g, "+").replace(/_/g, "/");
|
|
5061
5087
|
const padded = base64.padEnd(base64.length + (4 - base64.length % 4) % 4, "=");
|
|
@@ -5256,8 +5282,7 @@ const verifyPasskeyForLogin = async (session_id, credential) => {
|
|
|
5256
5282
|
});
|
|
5257
5283
|
};
|
|
5258
5284
|
|
|
5259
|
-
|
|
5260
|
-
//#region src/auth/permissions/resolve.ts
|
|
5285
|
+
// src/auth/permissions/resolve.ts
|
|
5261
5286
|
/** An `ensurePermissions` call already in flight, so concurrent guards share one request. */
|
|
5262
5287
|
let pending = null;
|
|
5263
5288
|
/** The scope `pending` was issued under; once retired, its answer is worthless. */
|
|
@@ -5316,6 +5341,5 @@ const ensurePermissions = async () => {
|
|
|
5316
5341
|
return request;
|
|
5317
5342
|
};
|
|
5318
5343
|
|
|
5319
|
-
//#endregion
|
|
5320
|
-
export { DomainStatus, MembershipRole, MembershipState, PasskeyUnavailableError, READ_VERBS, WRITE_VERBS, addEmail, analyticsV1DashboardServiceBatchQueryChart, analyticsV1DashboardServiceCreateDashboard, analyticsV1DashboardServiceCreateWidget, analyticsV1DashboardServiceDeleteDashboard, analyticsV1DashboardServiceDeleteWidget, analyticsV1DashboardServiceExportDashboard, analyticsV1DashboardServiceGetDashboard, analyticsV1DashboardServiceGetDashboardStats, analyticsV1DashboardServiceGetFilterOptions, analyticsV1DashboardServiceGetScopeTree, analyticsV1DashboardServiceListDashboards, analyticsV1DashboardServiceListDatasets, analyticsV1DashboardServiceQueryChart, analyticsV1DashboardServiceSetDefaultDashboard, analyticsV1DashboardServiceUpdateDashboard, analyticsV1DashboardServiceUpdateDashboardLayout, analyticsV1DashboardServiceUpdateWidget, analyticsV1EventsServiceTrackEvents, analyticsV1FeedsServiceGetFeedStats, analyticsV1FeedsServiceGetTopFeeds, analyticsV1FunnelsServiceGetFunnelAnalytics, analyticsV1FunnelsServiceGetRetentionAnalytics, analyticsV1HeatmapServiceGetHotSegments, analyticsV1HeatmapServiceGetVideoHeatmap, analyticsV1ImagesServiceGetImageStats, analyticsV1ImagesServiceGetTopImages, analyticsV1PostsServiceGetPostStats, analyticsV1PostsServiceGetTopPosts, analyticsV1RealtimeServiceGetRealtimeStats, analyticsV1VideosServiceGetTopVideos, analyticsV1VideosServiceGetVideoStats, apikeysV1ApiKeyServiceCreateApiKey, apikeysV1ApiKeyServiceDeleteApiKey, apikeysV1ApiKeyServiceListApiKeys, apikeysV1ApiKeyServiceRotateApiKey, apikeysV1ApiKeyServiceUpdateApiKey, 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, authV1MembershipServiceRespondToMembershipApplication, authV1MembershipServiceSuspendMember, authV1MembershipServiceUpdateActiveMembership, authV1MembershipServiceUpdateMemberRole, authV1MembershipServiceUpdateMembershipState, authV1MembershipServiceUpdateOrgName, authV1MembershipServiceUpdateOrgUsername, authV1OtpServiceDeleteOtp, authV1OtpServiceGetOtpStatus, authV1OtpServiceRegenerateBackupCodes, 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, authV1UserServiceCreateAvatarUpload, authV1UserServiceGetUser, authV1UserServiceGetUserInfo, authV1UserServiceUpdateName, authV1UserServiceUpdateUserAvatar, authV1UserServiceUpdateUsername, beginPasskeyLogin, beginPasskeyRegistration, billingV1InvoiceServiceListInvoices, billingV1InvoiceServiceUpdateInvoiceStatus, billingV1PaymentServiceCalculateGenericTax, billingV1PaymentServiceCalculateTax, billingV1PaymentServiceCreateCheckoutSession, billingV1PaymentServiceCreateSetupIntent, billingV1PaymentServiceDeletePaymentMethod, billingV1PaymentServiceGetBillingAddress, billingV1PaymentServiceGetBillingConfig, billingV1PaymentServiceGetPaymentMethodFromPaymentIntent, billingV1PaymentServiceGetPaymentMethodFromSetupIntent, billingV1PaymentServiceListPaymentMethods, billingV1PaymentServiceUpgradeSubscription, billingV1PaymentServiceUpsertBillingAddress, billingV1PaymentServiceUpsertPaymentMethod, billingV1PlanServiceGetPlan, billingV1PlanServiceListPlans, billingV1SalesServiceContactSales, billingV1SubscriptionServiceCancelSubscription, billingV1SubscriptionServiceCreateSubscription, billingV1SubscriptionServiceGetSubscription, billingV1SubscriptionServiceGetSubscriptionHistory, billingV1SubscriptionServiceReactivateSubscription, billingV1UsageServiceGetBandwidthUsage, billingV1UsageServiceGetBandwidthUsageHistory, billingV1UsageServiceGetStorageUsage, billingV1UsageServiceGetStorageUsageHistory, billingV1UsageServiceRefreshBandwidthUsage, billingV1UsageServiceRefreshStorageUsage, checkDomainVerification, clearAuthError, clearLimitedAccessState, clearPermissions, client, clientauthV1ClientCredentialServiceCreateClientCredential, clientauthV1ClientCredentialServiceListClientCredentials, clientauthV1ClientCredentialServiceMintClientToken, clientauthV1ClientCredentialServiceRevokeClientCredential, confirmPasswordReset, connect, connectSocial, createClient, decodeRequestOptions, deleteMember, deletePasskey, deleteUserOTP, disconnectSocial, ensurePermissions, feedsV1FeedServiceCreateFeed, feedsV1FeedServiceDeleteFeed, feedsV1FeedServiceGetFeed, feedsV1FeedServiceListFeeds, feedsV1FeedServiceUpdateFeed, finishPasskeyLogin, finishPasskeyRegistration, getBlogSubscriptionStatus, getDomainStatus, getEmailVerificationStatus, getOTPStatus, getToken, getUserInfo, hasPermission, imagesV1ImageConversionServiceMarkImageFailed, imagesV1ImageConversionServiceMarkImageProcessed, imagesV1ImageConversionServiceTakeUnprocessedImage, imagesV1ImageServiceCreateImageUpload, imagesV1ImageServiceDeleteImage, imagesV1ImageServiceGetImage, imagesV1ImageServiceListImages, imagesV1ImageServiceUpdateImageVisibility, initClient, initiateDomainVerification, initiateEmailChange, invalidatePermissions, inviteMember, isLogged, leaveOrganization, limitedAccessToken, listActiveMemberships, listOrganizationMembers, listPasskeys, listPendingMemberships, listSocials, login, loginWithEmail, logout, matches as matchesPermission, permissions, permissionsResolved, platformauthV1PlatformAuthServiceExchangeApiKey, platformauthV1PlatformAuthServiceRefreshPlatformToken, postsV1PostServiceCreatePost, postsV1PostServiceCreatePostUpload, postsV1PostServiceDeletePost, postsV1PostServiceDeletePost2, postsV1PostServiceGetPost, postsV1PostServiceGetPost2, postsV1PostServiceGetPost3, postsV1PostServiceListPosts, postsV1PostServiceListPosts2, postsV1PostServiceListPosts3, postsV1PostServiceListPosts4, projectV1ProjectServiceCreateProject, projectV1ProjectServiceDeleteProject, projectV1ProjectServiceGetProject, projectV1ProjectServiceListProjects, projectV1ProjectServiceMoveProject, projectV1ProjectServiceRemoveCustomDomain, projectV1ProjectServiceSetCustomDomain, projectV1ProjectServiceUpdateProjectName, projectV1ProjectServiceUpdateVideoQuality, publicRespondToInvitation, regenerateBackupCodes, registerWithEmail, removeDomain, renamePasskey, requiresAction, resendEmailVerificationCode, resendMemberInvite, resolvePermissions, respondToInvitation, sendPasswordResetEmail, setLimitedAccessState, setupUserOTP, subscribeToBlog, supportV1SupportChatServiceListChatMessages, supportV1SupportChatServiceSendChatMessage, supportV1SupportTicketServiceAddTicketMessage, supportV1SupportTicketServiceCloseTicket, supportV1SupportTicketServiceCreateTicket, supportV1SupportTicketServiceGetTicket, supportV1SupportTicketServiceListCategories, supportV1SupportTicketServiceListTickets, supportV1SupportTicketServiceListTopics, supportV1SupportTicketServiceListTopics2, unsubscribeFromBlog, updateActiveMembership, updateAutoJoin, updateFullName, updateMemberRole, updateOrgName, updateOrgUsername, updateUsername, user, verifyEmailWithCode, verifyPasskeyForLogin, verifyTOTPForLogin, verifyUserOTP, videosV1AudioTrackServiceCreateAudioTrackUpload, videosV1AudioTrackServiceDeleteAllAudioTracks, videosV1AudioTrackServiceDeleteAudioTrack, videosV1AudioTrackServiceDeleteAudioTracksByLanguage, videosV1AudioTrackServiceListAudioTracks, videosV1ChapterServiceDeleteVideoChapter, videosV1ChapterServiceGetVideoChapters, videosV1ChapterServiceUpdateVideoChapters, videosV1ChapterServiceUpdateVideoChapters2, videosV1LanguageServiceListLanguages, videosV1SubtitleServiceCreateSubtitleUpload, videosV1SubtitleServiceDeleteAllSubtitles, videosV1SubtitleServiceDeleteSubtitle, videosV1SubtitleServiceDeleteSubtitlesByLanguage, videosV1SubtitleServiceListSubtitles, videosV1VideoConversionServiceMarkVideoFailed, videosV1VideoConversionServiceMarkVideoProcessed, videosV1VideoServiceCreateVideoUpload, videosV1VideoServiceDeleteVideo, videosV1VideoServiceGetVideo, videosV1VideoServiceListVideos, videosV1VideoServiceUpdateVideoVisibility };
|
|
5344
|
+
export { DomainStatus, MembershipRole, MembershipState, PasskeyUnavailableError, READ_VERBS, WRITE_VERBS, addEmail, analyticsV1DashboardServiceBatchQueryChart, analyticsV1DashboardServiceCreateDashboard, analyticsV1DashboardServiceCreateWidget, analyticsV1DashboardServiceDeleteDashboard, analyticsV1DashboardServiceDeleteWidget, analyticsV1DashboardServiceExportDashboard, analyticsV1DashboardServiceGetDashboard, analyticsV1DashboardServiceGetDashboardStats, analyticsV1DashboardServiceGetFilterOptions, analyticsV1DashboardServiceGetScopeTree, analyticsV1DashboardServiceListDashboards, analyticsV1DashboardServiceListDatasets, analyticsV1DashboardServiceQueryChart, analyticsV1DashboardServiceSetDefaultDashboard, analyticsV1DashboardServiceUpdateDashboard, analyticsV1DashboardServiceUpdateDashboardLayout, analyticsV1DashboardServiceUpdateWidget, analyticsV1EventsServiceTrackEvents, analyticsV1FeedsServiceGetFeedStats, analyticsV1FeedsServiceGetTopFeeds, analyticsV1FunnelsServiceGetFunnelAnalytics, analyticsV1FunnelsServiceGetRetentionAnalytics, analyticsV1HeatmapServiceGetHotSegments, analyticsV1HeatmapServiceGetVideoHeatmap, analyticsV1ImagesServiceGetImageStats, analyticsV1ImagesServiceGetTopImages, analyticsV1PostsServiceGetPostStats, analyticsV1PostsServiceGetTopPosts, analyticsV1RealtimeServiceGetRealtimeStats, analyticsV1VideosServiceGetTopVideos, analyticsV1VideosServiceGetVideoStats, apikeysV1ApiKeyServiceCreateApiKey, apikeysV1ApiKeyServiceDeleteApiKey, apikeysV1ApiKeyServiceListApiKeys, apikeysV1ApiKeyServiceRotateApiKey, apikeysV1ApiKeyServiceUpdateApiKey, 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, authV1MembershipServiceRespondToMembershipApplication, authV1MembershipServiceSuspendMember, authV1MembershipServiceUpdateActiveMembership, authV1MembershipServiceUpdateMemberRole, authV1MembershipServiceUpdateMembershipState, authV1MembershipServiceUpdateOrgName, authV1MembershipServiceUpdateOrgUsername, authV1OtpServiceDeleteOtp, authV1OtpServiceGetOtpStatus, authV1OtpServiceRegenerateBackupCodes, 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, authV1UserServiceCreateAvatarUpload, authV1UserServiceGetUser, authV1UserServiceGetUserInfo, authV1UserServiceUpdateName, authV1UserServiceUpdateUserAvatar, authV1UserServiceUpdateUsername, beginPasskeyLogin, beginPasskeyRegistration, billingV1InvoiceServiceListInvoices, billingV1InvoiceServiceUpdateInvoiceStatus, billingV1PaymentServiceCalculateGenericTax, billingV1PaymentServiceCalculateTax, billingV1PaymentServiceCreateCheckoutSession, billingV1PaymentServiceCreateSetupIntent, billingV1PaymentServiceDeletePaymentMethod, billingV1PaymentServiceGetBillingAddress, billingV1PaymentServiceGetBillingConfig, billingV1PaymentServiceGetPaymentMethodFromPaymentIntent, billingV1PaymentServiceGetPaymentMethodFromSetupIntent, billingV1PaymentServiceListPaymentMethods, billingV1PaymentServiceUpgradeSubscription, billingV1PaymentServiceUpsertBillingAddress, billingV1PaymentServiceUpsertPaymentMethod, billingV1PlanServiceGetPlan, billingV1PlanServiceListPlans, billingV1SalesServiceContactSales, billingV1SubscriptionServiceCancelSubscription, billingV1SubscriptionServiceCreateSubscription, billingV1SubscriptionServiceGetSubscription, billingV1SubscriptionServiceGetSubscriptionHistory, billingV1SubscriptionServiceReactivateSubscription, billingV1UsageServiceGetBandwidthUsage, billingV1UsageServiceGetBandwidthUsageHistory, billingV1UsageServiceGetStorageUsage, billingV1UsageServiceGetStorageUsageHistory, billingV1UsageServiceRefreshBandwidthUsage, billingV1UsageServiceRefreshStorageUsage, checkDomainVerification, clearAuthError, clearLimitedAccessState, clearPermissions, client, clientauthV1ClientCredentialServiceCreateClientCredential, clientauthV1ClientCredentialServiceListClientCredentials, clientauthV1ClientCredentialServiceMintClientToken, clientauthV1ClientCredentialServiceRevokeClientCredential, confirmPasswordReset, connect, connectSocial, createClient, decodeRequestOptions, deleteMember, deletePasskey, deleteUserOTP, disconnectSocial, ensurePermissions, feedsV1FeedServiceCreateFeed, feedsV1FeedServiceDeleteFeed, feedsV1FeedServiceGetFeed, feedsV1FeedServiceListFeeds, feedsV1FeedServiceUpdateFeed, finishPasskeyLogin, finishPasskeyRegistration, getBlogSubscriptionStatus, getDomainStatus, getEmailVerificationStatus, getOTPStatus, getToken, getUserInfo, hasPermission, imagesV1ImageConversionServiceMarkImageFailed, imagesV1ImageConversionServiceMarkImageProcessed, imagesV1ImageConversionServiceTakeUnprocessedImage, imagesV1ImageServiceCreateImageUpload, imagesV1ImageServiceDeleteImage, imagesV1ImageServiceGetImage, imagesV1ImageServiceListImages, imagesV1ImageServiceUpdateImageVisibility, initClient, initiateDomainVerification, initiateEmailChange, invalidatePermissions, inviteMember, isLogged, leaveOrganization, limitedAccessToken, listActiveMemberships, listOrganizationMembers, listPasskeys, listPendingMemberships, listSocials, login, loginWithEmail, logout, matches as matchesPermission, permissions, permissionsResolved, platformauthV1PlatformAuthServiceExchangeApiKey, platformauthV1PlatformAuthServiceRefreshPlatformToken, postsV1PostServiceCreatePost, postsV1PostServiceCreatePostUpload, postsV1PostServiceDeletePost, postsV1PostServiceDeletePost2, postsV1PostServiceGetPost, postsV1PostServiceGetPost2, postsV1PostServiceGetPost3, postsV1PostServiceListPosts, postsV1PostServiceListPosts2, postsV1PostServiceListPosts3, postsV1PostServiceListPosts4, projectV1ProjectServiceCreateProject, projectV1ProjectServiceDeleteProject, projectV1ProjectServiceGetProject, projectV1ProjectServiceListProjects, projectV1ProjectServiceMoveProject, projectV1ProjectServiceRemoveCustomDomain, projectV1ProjectServiceSetCustomDomain, projectV1ProjectServiceUpdateProjectName, projectV1ProjectServiceUpdateVideoQuality, publicRespondToInvitation, regenerateBackupCodes, registerWithEmail, removeDomain, renamePasskey, requiresAction, resendEmailVerificationCode, resendMemberInvite, resolvePermissions, respondToInvitation, sendPasswordResetEmail, setLimitedAccessState, setupUserOTP, subscribeToBlog, supportV1SupportChatServiceListChatMessages, supportV1SupportChatServiceSendChatMessage, supportV1SupportTicketServiceAddTicketMessage, supportV1SupportTicketServiceCloseTicket, supportV1SupportTicketServiceCreateTicket, supportV1SupportTicketServiceGetTicket, supportV1SupportTicketServiceListCategories, supportV1SupportTicketServiceListTickets, supportV1SupportTicketServiceListTopics, supportV1SupportTicketServiceListTopics2, unsubscribeFromBlog, updateActiveMembership, updateAutoJoin, updateFullName, updateMemberRole, updateOrgName, updateOrgUsername, updateUsername, user, verifyEmailWithCode, verifyPasskeyForLogin, verifyTOTPForLogin, verifyUserOTP, videosV1AudioTrackServiceCreateAudioTrackUpload, videosV1AudioTrackServiceDeleteAllAudioTracks, videosV1AudioTrackServiceDeleteAudioTrack, videosV1AudioTrackServiceDeleteAudioTracksByLanguage, videosV1AudioTrackServiceListAudioTracks, videosV1ChapterServiceDeleteVideoChapter, videosV1ChapterServiceGetVideoChapters, videosV1ChapterServiceUpdateVideoChapters, videosV1ChapterServiceUpdateVideoChapters2, videosV1LanguageServiceListLanguages, videosV1SubtitleServiceCreateSubtitleUpload, videosV1SubtitleServiceDeleteAllSubtitles, videosV1SubtitleServiceDeleteSubtitle, videosV1SubtitleServiceDeleteSubtitlesByLanguage, videosV1SubtitleServiceListSubtitles, videosV1VideoConversionServiceMarkVideoFailed, videosV1VideoConversionServiceMarkVideoProcessed, videosV1VideoServiceCreateVideoUpload, videosV1VideoServiceDeleteVideo, videosV1VideoServiceGetVideo, videosV1VideoServiceListVideos, videosV1VideoServiceUpdateVideoVisibility, webhooksV1WebhookServiceCreateEndpoint, webhooksV1WebhookServiceDeleteEndpoint, webhooksV1WebhookServiceGetEndpoint, webhooksV1WebhookServiceListEndpointAttempts, webhooksV1WebhookServiceListEndpoints, webhooksV1WebhookServiceListEvents, webhooksV1WebhookServiceReplayEvent, webhooksV1WebhookServiceRotateEndpointSecret, webhooksV1WebhookServiceSendTestEvent, webhooksV1WebhookServiceUpdateEndpoint };
|
|
5321
5345
|
//# sourceMappingURL=index.js.map
|