@rixl/sdk 0.6.1 → 0.7.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +9424 -3701
- package/dist/index.js +1288 -1833
- package/dist/index.js.map +1 -1
- package/package.json +8 -8
- package/dist/providers-Cu3u1p1O.js +0 -261
- package/dist/providers-Cu3u1p1O.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,24 +1,9 @@
|
|
|
1
|
-
import { _ as HTTP_STATUS, a as telegramConfig, b as __exportAll, c as appleConfig, d as microsoftConfig, f as updateMicrosoftAuthUrl, g as GLOBAL_PREFIX, h as updateGoogleAuthUrl, i as telegramAuthUrl, l as updateAppleAuthUrl, m as googleConfig, n as detectProvider, o as updateTelegramAuthUrl, p as googleAuthUrl, r as getProviderToken, s as appleAuthUrl, u as microsoftAuthUrl, v as SOCIAL_CONNECT_KEY_PREFIX, y as AuthProvider } from "./providers-Cu3u1p1O.js";
|
|
2
1
|
import { atom } from "nanostores";
|
|
3
2
|
import { decodeJwt } from "jose";
|
|
4
3
|
import * as v from "valibot";
|
|
5
4
|
import "ky";
|
|
6
5
|
|
|
7
6
|
//#region src/generated/core/bodySerializer.gen.ts
|
|
8
|
-
const serializeFormDataPair = (data, key, value) => {
|
|
9
|
-
if (typeof value === "string" || value instanceof Blob) data.append(key, value);
|
|
10
|
-
else if (value instanceof Date) data.append(key, value.toISOString());
|
|
11
|
-
else data.append(key, JSON.stringify(value));
|
|
12
|
-
};
|
|
13
|
-
const formDataBodySerializer = { bodySerializer: (body) => {
|
|
14
|
-
const data = new FormData();
|
|
15
|
-
Object.entries(body).forEach(([key, value]) => {
|
|
16
|
-
if (value === void 0 || value === null) return;
|
|
17
|
-
if (Array.isArray(value)) value.forEach((v) => serializeFormDataPair(data, key, v));
|
|
18
|
-
else serializeFormDataPair(data, key, value);
|
|
19
|
-
});
|
|
20
|
-
return data;
|
|
21
|
-
} };
|
|
22
7
|
const jsonBodySerializer = { bodySerializer: (body) => JSON.stringify(body, (_key, value) => typeof value === "bigint" ? value.toString() : value) };
|
|
23
8
|
|
|
24
9
|
//#endregion
|
|
@@ -638,33 +623,21 @@ const createClient = (config = {}) => {
|
|
|
638
623
|
|
|
639
624
|
//#endregion
|
|
640
625
|
//#region src/generated/client.gen.ts
|
|
641
|
-
const client = createClient(createConfig());
|
|
626
|
+
const client = createClient(createConfig({ baseUrl: "https://raw.githubusercontent.com" }));
|
|
642
627
|
|
|
643
628
|
//#endregion
|
|
644
629
|
//#region src/generated/sdk.gen.ts
|
|
645
630
|
/**
|
|
646
|
-
*
|
|
647
|
-
*
|
|
648
|
-
* Returns time-bucketed dashboard statistics
|
|
631
|
+
* GetDashboardStats
|
|
649
632
|
*/
|
|
650
|
-
const
|
|
651
|
-
security: [{
|
|
652
|
-
name: "X-API-Key",
|
|
653
|
-
type: "apiKey"
|
|
654
|
-
}],
|
|
633
|
+
const analyticsV1DashboardServiceGetDashboardStats = (options) => (options.client ?? client).get({
|
|
655
634
|
url: "/analytics/v1/dashboard",
|
|
656
635
|
...options
|
|
657
636
|
});
|
|
658
637
|
/**
|
|
659
|
-
*
|
|
660
|
-
*
|
|
661
|
-
* Ingest a batch of analytics events for the authenticated organization
|
|
638
|
+
* TrackEvents
|
|
662
639
|
*/
|
|
663
|
-
const
|
|
664
|
-
security: [{
|
|
665
|
-
name: "X-API-Key",
|
|
666
|
-
type: "apiKey"
|
|
667
|
-
}],
|
|
640
|
+
const analyticsV1EventsServiceTrackEvents = (options) => (options.client ?? client).post({
|
|
668
641
|
url: "/analytics/v1/events",
|
|
669
642
|
...options,
|
|
670
643
|
headers: {
|
|
@@ -673,28 +646,23 @@ const postAnalyticsV1Events = (options) => (options.client ?? client).post({
|
|
|
673
646
|
}
|
|
674
647
|
});
|
|
675
648
|
/**
|
|
676
|
-
*
|
|
677
|
-
|
|
678
|
-
|
|
649
|
+
* GetFeedStats
|
|
650
|
+
*/
|
|
651
|
+
const analyticsV1FeedsServiceGetFeedStats = (options) => (options.client ?? client).get({
|
|
652
|
+
url: "/analytics/v1/feeds/{feed_id}/stats",
|
|
653
|
+
...options
|
|
654
|
+
});
|
|
655
|
+
/**
|
|
656
|
+
* GetTopFeeds
|
|
679
657
|
*/
|
|
680
|
-
const
|
|
681
|
-
|
|
682
|
-
name: "X-API-Key",
|
|
683
|
-
type: "apiKey"
|
|
684
|
-
}],
|
|
685
|
-
url: "/analytics/v1/feeds/{feedId}/stats",
|
|
658
|
+
const analyticsV1FeedsServiceGetTopFeeds = (options) => (options?.client ?? client).get({
|
|
659
|
+
url: "/analytics/v1/top/feeds",
|
|
686
660
|
...options
|
|
687
661
|
});
|
|
688
662
|
/**
|
|
689
|
-
*
|
|
690
|
-
*
|
|
691
|
-
* Calculate funnel conversion across a sequence of steps
|
|
663
|
+
* GetFunnelAnalytics
|
|
692
664
|
*/
|
|
693
|
-
const
|
|
694
|
-
security: [{
|
|
695
|
-
name: "X-API-Key",
|
|
696
|
-
type: "apiKey"
|
|
697
|
-
}],
|
|
665
|
+
const analyticsV1FunnelsServiceGetFunnelAnalytics = (options) => (options.client ?? client).post({
|
|
698
666
|
url: "/analytics/v1/funnels",
|
|
699
667
|
...options,
|
|
700
668
|
headers: {
|
|
@@ -703,181 +671,102 @@ const postAnalyticsV1Funnels = (options) => (options.client ?? client).post({
|
|
|
703
671
|
}
|
|
704
672
|
});
|
|
705
673
|
/**
|
|
706
|
-
*
|
|
707
|
-
*
|
|
708
|
-
* Returns aggregated statistics for a post
|
|
674
|
+
* GetRetentionAnalytics
|
|
709
675
|
*/
|
|
710
|
-
const
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
676
|
+
const analyticsV1FunnelsServiceGetRetentionAnalytics = (options) => (options.client ?? client).post({
|
|
677
|
+
url: "/analytics/v1/retention",
|
|
678
|
+
...options,
|
|
679
|
+
headers: {
|
|
680
|
+
"Content-Type": "application/json",
|
|
681
|
+
...options.headers
|
|
682
|
+
}
|
|
717
683
|
});
|
|
718
684
|
/**
|
|
719
|
-
*
|
|
720
|
-
*
|
|
721
|
-
* Returns real-time analytics snapshot
|
|
685
|
+
* GetVideoHeatmap
|
|
722
686
|
*/
|
|
723
|
-
const
|
|
724
|
-
|
|
725
|
-
name: "X-API-Key",
|
|
726
|
-
type: "apiKey"
|
|
727
|
-
}],
|
|
728
|
-
url: "/analytics/v1/realtime",
|
|
687
|
+
const analyticsV1HeatmapServiceGetVideoHeatmap = (options) => (options.client ?? client).get({
|
|
688
|
+
url: "/analytics/v1/videos/{video_id}/heatmap",
|
|
729
689
|
...options
|
|
730
690
|
});
|
|
731
691
|
/**
|
|
732
|
-
*
|
|
733
|
-
*
|
|
734
|
-
* Returns retention cohorts over a date range
|
|
692
|
+
* GetHotSegments
|
|
735
693
|
*/
|
|
736
|
-
const
|
|
737
|
-
|
|
738
|
-
name: "X-API-Key",
|
|
739
|
-
type: "apiKey"
|
|
740
|
-
}],
|
|
741
|
-
url: "/analytics/v1/retention",
|
|
694
|
+
const analyticsV1HeatmapServiceGetHotSegments = (options) => (options.client ?? client).get({
|
|
695
|
+
url: "/analytics/v1/videos/{video_id}/hot-segments",
|
|
742
696
|
...options
|
|
743
697
|
});
|
|
744
698
|
/**
|
|
745
|
-
*
|
|
746
|
-
*
|
|
747
|
-
* Returns the top feeds over a date range
|
|
699
|
+
* GetPostStats
|
|
748
700
|
*/
|
|
749
|
-
const
|
|
750
|
-
|
|
751
|
-
name: "X-API-Key",
|
|
752
|
-
type: "apiKey"
|
|
753
|
-
}],
|
|
754
|
-
url: "/analytics/v1/top/feeds",
|
|
701
|
+
const analyticsV1PostsServiceGetPostStats = (options) => (options.client ?? client).get({
|
|
702
|
+
url: "/analytics/v1/posts/{post_id}/stats",
|
|
755
703
|
...options
|
|
756
704
|
});
|
|
757
705
|
/**
|
|
758
|
-
*
|
|
759
|
-
*
|
|
760
|
-
* Returns the top posts over a date range
|
|
706
|
+
* GetTopPosts
|
|
761
707
|
*/
|
|
762
|
-
const
|
|
763
|
-
security: [{
|
|
764
|
-
name: "X-API-Key",
|
|
765
|
-
type: "apiKey"
|
|
766
|
-
}],
|
|
708
|
+
const analyticsV1PostsServiceGetTopPosts = (options) => (options?.client ?? client).get({
|
|
767
709
|
url: "/analytics/v1/top/posts",
|
|
768
710
|
...options
|
|
769
711
|
});
|
|
770
712
|
/**
|
|
771
|
-
*
|
|
772
|
-
*
|
|
773
|
-
* Returns the top videos over a date range
|
|
713
|
+
* GetRealtimeStats
|
|
774
714
|
*/
|
|
775
|
-
const
|
|
776
|
-
|
|
777
|
-
name: "X-API-Key",
|
|
778
|
-
type: "apiKey"
|
|
779
|
-
}],
|
|
780
|
-
url: "/analytics/v1/top/videos",
|
|
715
|
+
const analyticsV1RealtimeServiceGetRealtimeStats = (options) => (options?.client ?? client).get({
|
|
716
|
+
url: "/analytics/v1/realtime",
|
|
781
717
|
...options
|
|
782
718
|
});
|
|
783
719
|
/**
|
|
784
|
-
*
|
|
785
|
-
*
|
|
786
|
-
* Returns the engagement heatmap for a video
|
|
720
|
+
* GetTopVideos
|
|
787
721
|
*/
|
|
788
|
-
const
|
|
789
|
-
|
|
790
|
-
name: "X-API-Key",
|
|
791
|
-
type: "apiKey"
|
|
792
|
-
}],
|
|
793
|
-
url: "/analytics/v1/videos/{videoId}/heatmap",
|
|
722
|
+
const analyticsV1VideosServiceGetTopVideos = (options) => (options?.client ?? client).get({
|
|
723
|
+
url: "/analytics/v1/top/videos",
|
|
794
724
|
...options
|
|
795
725
|
});
|
|
796
726
|
/**
|
|
797
|
-
*
|
|
798
|
-
*
|
|
799
|
-
* Returns the most engaging segments of a video
|
|
727
|
+
* GetVideoStats
|
|
800
728
|
*/
|
|
801
|
-
const
|
|
802
|
-
|
|
803
|
-
name: "X-API-Key",
|
|
804
|
-
type: "apiKey"
|
|
805
|
-
}],
|
|
806
|
-
url: "/analytics/v1/videos/{videoId}/hot-segments",
|
|
729
|
+
const analyticsV1VideosServiceGetVideoStats = (options) => (options.client ?? client).get({
|
|
730
|
+
url: "/analytics/v1/videos/{video_id}/stats",
|
|
807
731
|
...options
|
|
808
732
|
});
|
|
809
733
|
/**
|
|
810
|
-
*
|
|
811
|
-
*
|
|
812
|
-
* Returns aggregated statistics for a video over a date range
|
|
734
|
+
* ListApiKeys
|
|
813
735
|
*/
|
|
814
|
-
const
|
|
815
|
-
|
|
816
|
-
name: "X-API-Key",
|
|
817
|
-
type: "apiKey"
|
|
818
|
-
}],
|
|
819
|
-
url: "/analytics/v1/videos/{videoId}/stats",
|
|
736
|
+
const apikeysV1ApiKeyServiceListApiKeys = (options) => (options.client ?? client).get({
|
|
737
|
+
url: "/organizations/{org_id}/api-keys/v1",
|
|
820
738
|
...options
|
|
821
739
|
});
|
|
822
740
|
/**
|
|
823
|
-
*
|
|
824
|
-
*
|
|
825
|
-
* Subscribes the authenticated user to the blog newsletter.
|
|
741
|
+
* CreateApiKey
|
|
826
742
|
*/
|
|
827
|
-
const
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
743
|
+
const apikeysV1ApiKeyServiceCreateApiKey = (options) => (options.client ?? client).post({
|
|
744
|
+
url: "/organizations/{org_id}/api-keys/v1",
|
|
745
|
+
...options,
|
|
746
|
+
headers: {
|
|
747
|
+
"Content-Type": "application/json",
|
|
748
|
+
...options.headers
|
|
749
|
+
}
|
|
834
750
|
});
|
|
835
751
|
/**
|
|
836
|
-
*
|
|
837
|
-
*
|
|
838
|
-
* Returns whether the authenticated user is subscribed to the blog newsletter.
|
|
752
|
+
* DeleteApiKey
|
|
839
753
|
*/
|
|
840
|
-
const
|
|
841
|
-
|
|
842
|
-
name: "X-API-Key",
|
|
843
|
-
type: "apiKey"
|
|
844
|
-
}],
|
|
845
|
-
url: "/auth/v1/blog/subscription",
|
|
754
|
+
const apikeysV1ApiKeyServiceDeleteApiKey = (options) => (options.client ?? client).delete({
|
|
755
|
+
url: "/organizations/{org_id}/api-keys/v1/{key_id}",
|
|
846
756
|
...options
|
|
847
757
|
});
|
|
848
758
|
/**
|
|
849
|
-
*
|
|
850
|
-
*
|
|
851
|
-
* Unsubscribes the authenticated user from the blog newsletter.
|
|
759
|
+
* RotateApiKey
|
|
852
760
|
*/
|
|
853
|
-
const
|
|
854
|
-
|
|
855
|
-
name: "X-API-Key",
|
|
856
|
-
type: "apiKey"
|
|
857
|
-
}],
|
|
858
|
-
url: "/auth/v1/blog/unsubscribe",
|
|
761
|
+
const apikeysV1ApiKeyServiceRotateApiKey = (options) => (options.client ?? client).post({
|
|
762
|
+
url: "/organizations/{org_id}/api-keys/v1/{key_id}/rotate",
|
|
859
763
|
...options
|
|
860
764
|
});
|
|
861
765
|
/**
|
|
862
|
-
*
|
|
863
|
-
*
|
|
864
|
-
* Unsubscribes a recipient using the user id and email from an email-footer link. No authentication required.
|
|
865
|
-
*/
|
|
866
|
-
const postAuthV1BlogUnsubscribeEmail = (options) => (options.client ?? client).post({
|
|
867
|
-
url: "/auth/v1/blog/unsubscribe/email",
|
|
868
|
-
...options,
|
|
869
|
-
headers: {
|
|
870
|
-
"Content-Type": "application/json",
|
|
871
|
-
...options.headers
|
|
872
|
-
}
|
|
873
|
-
});
|
|
874
|
-
/**
|
|
875
|
-
* Verify email with a code
|
|
876
|
-
*
|
|
877
|
-
* Verifies a user's email address using a verification id and the code sent to them.
|
|
766
|
+
* SendBlogBroadcast
|
|
878
767
|
*/
|
|
879
|
-
const
|
|
880
|
-
url: "/auth/v1/
|
|
768
|
+
const authV1BlogServiceSendBlogBroadcast = (options) => (options.client ?? client).post({
|
|
769
|
+
url: "/auth/v1/blog/broadcast",
|
|
881
770
|
...options,
|
|
882
771
|
headers: {
|
|
883
772
|
"Content-Type": "application/json",
|
|
@@ -885,43 +774,31 @@ const postAuthV1EmailVerify = (options) => (options.client ?? client).post({
|
|
|
885
774
|
}
|
|
886
775
|
});
|
|
887
776
|
/**
|
|
888
|
-
*
|
|
889
|
-
*
|
|
890
|
-
* Resends the email verification message to the given email address.
|
|
777
|
+
* SubscribeBlog
|
|
891
778
|
*/
|
|
892
|
-
const
|
|
893
|
-
url: "/auth/v1/
|
|
894
|
-
...options
|
|
895
|
-
headers: {
|
|
896
|
-
"Content-Type": "application/json",
|
|
897
|
-
...options.headers
|
|
898
|
-
}
|
|
779
|
+
const authV1BlogServiceSubscribeBlog = (options) => (options?.client ?? client).post({
|
|
780
|
+
url: "/auth/v1/blog/subscribe",
|
|
781
|
+
...options
|
|
899
782
|
});
|
|
900
783
|
/**
|
|
901
|
-
*
|
|
902
|
-
*
|
|
903
|
-
* Accepts the organization invitation identified by the provided token.
|
|
784
|
+
* GetBlogSubscription
|
|
904
785
|
*/
|
|
905
|
-
const
|
|
906
|
-
url: "/auth/v1/
|
|
786
|
+
const authV1BlogServiceGetBlogSubscription = (options) => (options?.client ?? client).get({
|
|
787
|
+
url: "/auth/v1/blog/subscription",
|
|
907
788
|
...options
|
|
908
789
|
});
|
|
909
790
|
/**
|
|
910
|
-
*
|
|
911
|
-
*
|
|
912
|
-
* Declines the organization invitation identified by the provided token.
|
|
791
|
+
* UnsubscribeBlog
|
|
913
792
|
*/
|
|
914
|
-
const
|
|
915
|
-
url: "/auth/v1/
|
|
793
|
+
const authV1BlogServiceUnsubscribeBlog = (options) => (options?.client ?? client).post({
|
|
794
|
+
url: "/auth/v1/blog/unsubscribe",
|
|
916
795
|
...options
|
|
917
796
|
});
|
|
918
797
|
/**
|
|
919
|
-
*
|
|
920
|
-
*
|
|
921
|
-
* Authenticates a user by email and password and issues access and refresh tokens.
|
|
798
|
+
* UnsubscribeBlogByEmail
|
|
922
799
|
*/
|
|
923
|
-
const
|
|
924
|
-
url: "/auth/v1/
|
|
800
|
+
const authV1BlogServiceUnsubscribeBlogByEmail = (options) => (options.client ?? client).post({
|
|
801
|
+
url: "/auth/v1/blog/unsubscribe/email",
|
|
925
802
|
...options,
|
|
926
803
|
headers: {
|
|
927
804
|
"Content-Type": "application/json",
|
|
@@ -929,77 +806,38 @@ const postAuthV1Login = (options) => (options.client ?? client).post({
|
|
|
929
806
|
}
|
|
930
807
|
});
|
|
931
808
|
/**
|
|
932
|
-
*
|
|
933
|
-
*
|
|
934
|
-
* Revokes the current access token so it can no longer be used.
|
|
935
|
-
*/
|
|
936
|
-
const postAuthV1Logout = (options) => (options?.client ?? client).post({
|
|
937
|
-
url: "/auth/v1/logout",
|
|
938
|
-
...options
|
|
939
|
-
});
|
|
940
|
-
/**
|
|
941
|
-
* Set the active membership
|
|
942
|
-
*
|
|
943
|
-
* Sets the specified membership as the authenticated user's currently active organization.
|
|
809
|
+
* RemoveDomain
|
|
944
810
|
*/
|
|
945
|
-
const
|
|
946
|
-
|
|
947
|
-
name: "X-API-Key",
|
|
948
|
-
type: "apiKey"
|
|
949
|
-
}],
|
|
950
|
-
url: "/auth/v1/memberships/{orgId}/active",
|
|
811
|
+
const authV1DomainServiceRemoveDomain = (options) => (options.client ?? client).delete({
|
|
812
|
+
url: "/auth/v1/memberships/{org_id}/domain",
|
|
951
813
|
...options
|
|
952
814
|
});
|
|
953
815
|
/**
|
|
954
|
-
*
|
|
955
|
-
*
|
|
956
|
-
* Checks whether the authenticated user is a member of the specified organization and returns their membership status.
|
|
816
|
+
* GetDomainStatus
|
|
957
817
|
*/
|
|
958
|
-
const
|
|
959
|
-
|
|
960
|
-
name: "X-API-Key",
|
|
961
|
-
type: "apiKey"
|
|
962
|
-
}],
|
|
963
|
-
url: "/auth/v1/memberships/{orgId}/check",
|
|
818
|
+
const authV1DomainServiceGetDomainStatus = (options) => (options.client ?? client).get({
|
|
819
|
+
url: "/auth/v1/memberships/{org_id}/domain",
|
|
964
820
|
...options
|
|
965
821
|
});
|
|
966
822
|
/**
|
|
967
|
-
*
|
|
968
|
-
*
|
|
969
|
-
* Removes the custom domain from the organization and clears its verification.
|
|
823
|
+
* GetDomainAutoJoin
|
|
970
824
|
*/
|
|
971
|
-
const
|
|
972
|
-
|
|
973
|
-
name: "X-API-Key",
|
|
974
|
-
type: "apiKey"
|
|
975
|
-
}],
|
|
976
|
-
url: "/auth/v1/memberships/{orgId}/domain",
|
|
825
|
+
const authV1DomainServiceGetDomainAutoJoin = (options) => (options.client ?? client).get({
|
|
826
|
+
url: "/auth/v1/memberships/{org_id}/domain/auto-join",
|
|
977
827
|
...options
|
|
978
828
|
});
|
|
979
829
|
/**
|
|
980
|
-
*
|
|
981
|
-
*
|
|
982
|
-
* Returns the current custom domain and its verification status for the organization.
|
|
830
|
+
* CheckDomainVerification
|
|
983
831
|
*/
|
|
984
|
-
const
|
|
985
|
-
|
|
986
|
-
name: "X-API-Key",
|
|
987
|
-
type: "apiKey"
|
|
988
|
-
}],
|
|
989
|
-
url: "/auth/v1/memberships/{orgId}/domain",
|
|
832
|
+
const authV1DomainServiceCheckDomainVerification = (options) => (options.client ?? client).post({
|
|
833
|
+
url: "/auth/v1/memberships/{org_id}/domain/verify",
|
|
990
834
|
...options
|
|
991
835
|
});
|
|
992
836
|
/**
|
|
993
|
-
*
|
|
994
|
-
*
|
|
995
|
-
* Registers a custom domain for the organization and issues verification details to prove ownership.
|
|
837
|
+
* CreateDomainVerification
|
|
996
838
|
*/
|
|
997
|
-
const
|
|
998
|
-
|
|
999
|
-
name: "X-API-Key",
|
|
1000
|
-
type: "apiKey"
|
|
1001
|
-
}],
|
|
1002
|
-
url: "/auth/v1/memberships/{orgId}/domain",
|
|
839
|
+
const authV1DomainServiceCreateDomainVerification = (options) => (options.client ?? client).post({
|
|
840
|
+
url: "/auth/v1/memberships/{user.org_id}/domain",
|
|
1003
841
|
...options,
|
|
1004
842
|
headers: {
|
|
1005
843
|
"Content-Type": "application/json",
|
|
@@ -1007,29 +845,10 @@ const postAuthV1MembershipsByOrgIdDomain = (options) => (options.client ?? clien
|
|
|
1007
845
|
}
|
|
1008
846
|
});
|
|
1009
847
|
/**
|
|
1010
|
-
*
|
|
1011
|
-
*
|
|
1012
|
-
* Returns whether users with a matching verified domain email are automatically added to the organization.
|
|
848
|
+
* SetDomainAutoJoin
|
|
1013
849
|
*/
|
|
1014
|
-
const
|
|
1015
|
-
|
|
1016
|
-
name: "X-API-Key",
|
|
1017
|
-
type: "apiKey"
|
|
1018
|
-
}],
|
|
1019
|
-
url: "/auth/v1/memberships/{orgId}/domain/auto-join",
|
|
1020
|
-
...options
|
|
1021
|
-
});
|
|
1022
|
-
/**
|
|
1023
|
-
* Set domain auto-join setting
|
|
1024
|
-
*
|
|
1025
|
-
* Enables or disables automatically adding users with a matching verified domain email to the organization.
|
|
1026
|
-
*/
|
|
1027
|
-
const putAuthV1MembershipsByOrgIdDomainAutoJoin = (options) => (options.client ?? client).put({
|
|
1028
|
-
security: [{
|
|
1029
|
-
name: "X-API-Key",
|
|
1030
|
-
type: "apiKey"
|
|
1031
|
-
}],
|
|
1032
|
-
url: "/auth/v1/memberships/{orgId}/domain/auto-join",
|
|
850
|
+
const authV1DomainServiceSetDomainAutoJoin = (options) => (options.client ?? client).put({
|
|
851
|
+
url: "/auth/v1/memberships/{user.org_id}/domain/auto-join",
|
|
1033
852
|
...options,
|
|
1034
853
|
headers: {
|
|
1035
854
|
"Content-Type": "application/json",
|
|
@@ -1037,94 +856,38 @@ const putAuthV1MembershipsByOrgIdDomainAutoJoin = (options) => (options.client ?
|
|
|
1037
856
|
}
|
|
1038
857
|
});
|
|
1039
858
|
/**
|
|
1040
|
-
*
|
|
1041
|
-
*
|
|
1042
|
-
* Verifies the organization's pending custom domain and returns its updated verification status.
|
|
1043
|
-
*/
|
|
1044
|
-
const postAuthV1MembershipsByOrgIdDomainVerification = (options) => (options.client ?? client).post({
|
|
1045
|
-
security: [{
|
|
1046
|
-
name: "X-API-Key",
|
|
1047
|
-
type: "apiKey"
|
|
1048
|
-
}],
|
|
1049
|
-
url: "/auth/v1/memberships/{orgId}/domain/verification",
|
|
1050
|
-
...options
|
|
1051
|
-
});
|
|
1052
|
-
/**
|
|
1053
|
-
* Get the caller's membership info in an organization
|
|
1054
|
-
*
|
|
1055
|
-
* Returns the authenticated user's membership info (email) for an organization, with permission-denied when not a member.
|
|
859
|
+
* AcceptInvitation
|
|
1056
860
|
*/
|
|
1057
|
-
const
|
|
1058
|
-
|
|
1059
|
-
name: "X-API-Key",
|
|
1060
|
-
type: "apiKey"
|
|
1061
|
-
}],
|
|
1062
|
-
url: "/auth/v1/memberships/{orgId}/info",
|
|
1063
|
-
...options
|
|
1064
|
-
});
|
|
1065
|
-
/**
|
|
1066
|
-
* Leave an organization
|
|
1067
|
-
*
|
|
1068
|
-
* Removes the authenticated user's own membership from the organization.
|
|
1069
|
-
*/
|
|
1070
|
-
const deleteAuthV1MembershipsByOrgIdLeave = (options) => (options.client ?? client).delete({
|
|
1071
|
-
security: [{
|
|
1072
|
-
name: "X-API-Key",
|
|
1073
|
-
type: "apiKey"
|
|
1074
|
-
}],
|
|
1075
|
-
url: "/auth/v1/memberships/{orgId}/leave",
|
|
861
|
+
const authV1MembershipServiceAcceptInvitation = (options) => (options.client ?? client).post({
|
|
862
|
+
url: "/auth/v1/invitations/{token}/accept",
|
|
1076
863
|
...options
|
|
1077
864
|
});
|
|
1078
865
|
/**
|
|
1079
|
-
*
|
|
1080
|
-
*
|
|
1081
|
-
* Returns a paginated list of the members belonging to the specified organization.
|
|
866
|
+
* DeclineInvitation
|
|
1082
867
|
*/
|
|
1083
|
-
const
|
|
1084
|
-
|
|
1085
|
-
name: "X-API-Key",
|
|
1086
|
-
type: "apiKey"
|
|
1087
|
-
}],
|
|
1088
|
-
url: "/auth/v1/memberships/{orgId}/members",
|
|
868
|
+
const authV1MembershipServiceDeclineInvitation = (options) => (options.client ?? client).post({
|
|
869
|
+
url: "/auth/v1/invitations/{token}/decline",
|
|
1089
870
|
...options
|
|
1090
871
|
});
|
|
1091
872
|
/**
|
|
1092
|
-
*
|
|
1093
|
-
*
|
|
1094
|
-
* Removes the specified member from the organization.
|
|
873
|
+
* ListMembershipApplications
|
|
1095
874
|
*/
|
|
1096
|
-
const
|
|
1097
|
-
|
|
1098
|
-
name: "X-API-Key",
|
|
1099
|
-
type: "apiKey"
|
|
1100
|
-
}],
|
|
1101
|
-
url: "/auth/v1/memberships/{orgId}/members/{userId}",
|
|
875
|
+
const authV1MembershipServiceListMembershipApplications = (options) => (options?.client ?? client).get({
|
|
876
|
+
url: "/auth/v1/membership-applications",
|
|
1102
877
|
...options
|
|
1103
878
|
});
|
|
1104
879
|
/**
|
|
1105
|
-
*
|
|
1106
|
-
*
|
|
1107
|
-
* Returns all authorization policies attached to the specified organization member.
|
|
880
|
+
* ListMemberships
|
|
1108
881
|
*/
|
|
1109
|
-
const
|
|
1110
|
-
|
|
1111
|
-
name: "X-API-Key",
|
|
1112
|
-
type: "apiKey"
|
|
1113
|
-
}],
|
|
1114
|
-
url: "/auth/v1/memberships/{orgId}/members/{userId}/policies",
|
|
882
|
+
const authV1MembershipServiceListMemberships = (options) => (options?.client ?? client).get({
|
|
883
|
+
url: "/auth/v1/memberships",
|
|
1115
884
|
...options
|
|
1116
885
|
});
|
|
1117
886
|
/**
|
|
1118
|
-
*
|
|
1119
|
-
*
|
|
1120
|
-
* Updates the specified member's role within the organization.
|
|
887
|
+
* UpdateActiveMembership
|
|
1121
888
|
*/
|
|
1122
|
-
const
|
|
1123
|
-
|
|
1124
|
-
name: "X-API-Key",
|
|
1125
|
-
type: "apiKey"
|
|
1126
|
-
}],
|
|
1127
|
-
url: "/auth/v1/memberships/{orgId}/members/{userId}/role",
|
|
889
|
+
const authV1MembershipServiceUpdateActiveMembership = (options) => (options.client ?? client).patch({
|
|
890
|
+
url: "/auth/v1/memberships/active",
|
|
1128
891
|
...options,
|
|
1129
892
|
headers: {
|
|
1130
893
|
"Content-Type": "application/json",
|
|
@@ -1132,50 +895,31 @@ const putAuthV1MembershipsByOrgIdMembersByUserIdRole = (options) => (options.cli
|
|
|
1132
895
|
}
|
|
1133
896
|
});
|
|
1134
897
|
/**
|
|
1135
|
-
*
|
|
1136
|
-
*
|
|
1137
|
-
* Invites the user with the given username to the organization with the specified role.
|
|
898
|
+
* CheckMembership
|
|
1138
899
|
*/
|
|
1139
|
-
const
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
type: "apiKey"
|
|
1143
|
-
}],
|
|
1144
|
-
url: "/auth/v1/memberships/{orgId}/members/invite",
|
|
1145
|
-
...options,
|
|
1146
|
-
headers: {
|
|
1147
|
-
"Content-Type": "application/json",
|
|
1148
|
-
...options.headers
|
|
1149
|
-
}
|
|
900
|
+
const authV1MembershipServiceCheckMembership = (options) => (options.client ?? client).get({
|
|
901
|
+
url: "/auth/v1/memberships/{org_id}/check",
|
|
902
|
+
...options
|
|
1150
903
|
});
|
|
1151
904
|
/**
|
|
1152
|
-
*
|
|
1153
|
-
*
|
|
1154
|
-
* Resends the pending organization invitation to the specified member.
|
|
905
|
+
* GetInternalMembershipInfo
|
|
1155
906
|
*/
|
|
1156
|
-
const
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
type: "apiKey"
|
|
1160
|
-
}],
|
|
1161
|
-
url: "/auth/v1/memberships/{orgId}/members/invite/resend",
|
|
1162
|
-
...options,
|
|
1163
|
-
headers: {
|
|
1164
|
-
"Content-Type": "application/json",
|
|
1165
|
-
...options.headers
|
|
1166
|
-
}
|
|
907
|
+
const authV1MembershipServiceGetInternalMembershipInfo = (options) => (options.client ?? client).get({
|
|
908
|
+
url: "/auth/v1/memberships/{org_id}/info",
|
|
909
|
+
...options
|
|
1167
910
|
});
|
|
1168
911
|
/**
|
|
1169
|
-
*
|
|
1170
|
-
*
|
|
1171
|
-
* Accepts or declines the authenticated user's pending invitation to the organization. Used from inside the dashboard; the public token flow is /auth/v1/invitations/{token}/accept|decline.
|
|
912
|
+
* LeaveOrganization
|
|
1172
913
|
*/
|
|
1173
|
-
const
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
914
|
+
const authV1MembershipServiceLeaveOrganization = (options) => (options.client ?? client).post({
|
|
915
|
+
url: "/auth/v1/memberships/{org_id}/leave",
|
|
916
|
+
...options
|
|
917
|
+
});
|
|
918
|
+
/**
|
|
919
|
+
* InviteMember
|
|
920
|
+
*/
|
|
921
|
+
const authV1MembershipServiceInviteMember = (options) => (options.client ?? client).post({
|
|
922
|
+
url: "/auth/v1/memberships/{user.org_id}/invite",
|
|
1179
923
|
...options,
|
|
1180
924
|
headers: {
|
|
1181
925
|
"Content-Type": "application/json",
|
|
@@ -1183,16 +927,10 @@ const putAuthV1MembershipsByOrgIdMembershipState = (options) => (options.client
|
|
|
1183
927
|
}
|
|
1184
928
|
});
|
|
1185
929
|
/**
|
|
1186
|
-
*
|
|
1187
|
-
*
|
|
1188
|
-
* Updates the display name of the specified organization.
|
|
930
|
+
* ResendInvitation
|
|
1189
931
|
*/
|
|
1190
|
-
const
|
|
1191
|
-
|
|
1192
|
-
name: "X-API-Key",
|
|
1193
|
-
type: "apiKey"
|
|
1194
|
-
}],
|
|
1195
|
-
url: "/auth/v1/memberships/{orgId}/name",
|
|
932
|
+
const authV1MembershipServiceResendInvitation = (options) => (options.client ?? client).post({
|
|
933
|
+
url: "/auth/v1/memberships/{user.org_id}/invite/resend",
|
|
1196
934
|
...options,
|
|
1197
935
|
headers: {
|
|
1198
936
|
"Content-Type": "application/json",
|
|
@@ -1200,72 +938,38 @@ const putAuthV1MembershipsByOrgIdName = (options) => (options.client ?? client).
|
|
|
1200
938
|
}
|
|
1201
939
|
});
|
|
1202
940
|
/**
|
|
1203
|
-
*
|
|
1204
|
-
*
|
|
1205
|
-
* Returns all authorization policies defined in the organization.
|
|
941
|
+
* CancelInvitation
|
|
1206
942
|
*/
|
|
1207
|
-
const
|
|
1208
|
-
|
|
1209
|
-
name: "X-API-Key",
|
|
1210
|
-
type: "apiKey"
|
|
1211
|
-
}],
|
|
1212
|
-
url: "/auth/v1/memberships/{orgId}/policies",
|
|
943
|
+
const authV1MembershipServiceCancelInvitation = (options) => (options.client ?? client).delete({
|
|
944
|
+
url: "/auth/v1/memberships/{user.org_id}/invite/{user_id}",
|
|
1213
945
|
...options
|
|
1214
946
|
});
|
|
1215
947
|
/**
|
|
1216
|
-
*
|
|
1217
|
-
*
|
|
1218
|
-
* Creates a new authorization policy in the organization with the given name, description, and permissions.
|
|
948
|
+
* ListOrganizationMembers
|
|
1219
949
|
*/
|
|
1220
|
-
const
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
type: "apiKey"
|
|
1224
|
-
}],
|
|
1225
|
-
url: "/auth/v1/memberships/{orgId}/policies",
|
|
1226
|
-
...options,
|
|
1227
|
-
headers: {
|
|
1228
|
-
"Content-Type": "application/json",
|
|
1229
|
-
...options.headers
|
|
1230
|
-
}
|
|
950
|
+
const authV1MembershipServiceListOrganizationMembers = (options) => (options.client ?? client).get({
|
|
951
|
+
url: "/auth/v1/memberships/{user.org_id}/members",
|
|
952
|
+
...options
|
|
1231
953
|
});
|
|
1232
954
|
/**
|
|
1233
|
-
*
|
|
1234
|
-
*
|
|
1235
|
-
* Deletes an authorization policy from the organization by its ID.
|
|
955
|
+
* RemoveMember
|
|
1236
956
|
*/
|
|
1237
|
-
const
|
|
1238
|
-
|
|
1239
|
-
name: "X-API-Key",
|
|
1240
|
-
type: "apiKey"
|
|
1241
|
-
}],
|
|
1242
|
-
url: "/auth/v1/memberships/{orgId}/policies/{policyId}",
|
|
957
|
+
const authV1MembershipServiceRemoveMember = (options) => (options.client ?? client).delete({
|
|
958
|
+
url: "/auth/v1/memberships/{user.org_id}/members/{user_id}",
|
|
1243
959
|
...options
|
|
1244
960
|
});
|
|
1245
961
|
/**
|
|
1246
|
-
*
|
|
1247
|
-
*
|
|
1248
|
-
* Returns the details of a single authorization policy in the organization by its ID.
|
|
962
|
+
* ReactivateMember
|
|
1249
963
|
*/
|
|
1250
|
-
const
|
|
1251
|
-
|
|
1252
|
-
name: "X-API-Key",
|
|
1253
|
-
type: "apiKey"
|
|
1254
|
-
}],
|
|
1255
|
-
url: "/auth/v1/memberships/{orgId}/policies/{policyId}",
|
|
964
|
+
const authV1MembershipServiceReactivateMember = (options) => (options.client ?? client).patch({
|
|
965
|
+
url: "/auth/v1/memberships/{user.org_id}/members/{user_id}/reactivate",
|
|
1256
966
|
...options
|
|
1257
967
|
});
|
|
1258
968
|
/**
|
|
1259
|
-
*
|
|
1260
|
-
*
|
|
1261
|
-
* Updates an existing authorization policy's name, description, and permissions.
|
|
969
|
+
* UpdateMemberRole
|
|
1262
970
|
*/
|
|
1263
|
-
const
|
|
1264
|
-
|
|
1265
|
-
name: "X-API-Key",
|
|
1266
|
-
type: "apiKey"
|
|
1267
|
-
}],
|
|
1268
|
-
url: "/auth/v1/memberships/{orgId}/policies/{policyId}",
|
|
971
|
+
const authV1MembershipServiceUpdateMemberRole = (options) => (options.client ?? client).patch({
|
|
972
|
+
url: "/auth/v1/memberships/{user.org_id}/members/{user_id}/role",
|
|
1269
973
|
...options,
|
|
1270
974
|
headers: {
|
|
1271
975
|
"Content-Type": "application/json",
|
|
@@ -1273,29 +977,17 @@ const putAuthV1MembershipsByOrgIdPoliciesByPolicyId = (options) => (options.clie
|
|
|
1273
977
|
}
|
|
1274
978
|
});
|
|
1275
979
|
/**
|
|
1276
|
-
*
|
|
1277
|
-
*
|
|
1278
|
-
* Returns all identities that the given policy is attached to within the organization.
|
|
980
|
+
* SuspendMember
|
|
1279
981
|
*/
|
|
1280
|
-
const
|
|
1281
|
-
|
|
1282
|
-
name: "X-API-Key",
|
|
1283
|
-
type: "apiKey"
|
|
1284
|
-
}],
|
|
1285
|
-
url: "/auth/v1/memberships/{orgId}/policies/{policyId}/attachments",
|
|
982
|
+
const authV1MembershipServiceSuspendMember = (options) => (options.client ?? client).patch({
|
|
983
|
+
url: "/auth/v1/memberships/{user.org_id}/members/{user_id}/suspend",
|
|
1286
984
|
...options
|
|
1287
985
|
});
|
|
1288
986
|
/**
|
|
1289
|
-
*
|
|
1290
|
-
*
|
|
1291
|
-
* Attaches the given policy to an identity so the policy's permissions apply to that identity.
|
|
987
|
+
* UpdateOrgName
|
|
1292
988
|
*/
|
|
1293
|
-
const
|
|
1294
|
-
|
|
1295
|
-
name: "X-API-Key",
|
|
1296
|
-
type: "apiKey"
|
|
1297
|
-
}],
|
|
1298
|
-
url: "/auth/v1/memberships/{orgId}/policies/{policyId}/attachments",
|
|
989
|
+
const authV1MembershipServiceUpdateOrgName = (options) => (options.client ?? client).patch({
|
|
990
|
+
url: "/auth/v1/memberships/{user.org_id}/name",
|
|
1299
991
|
...options,
|
|
1300
992
|
headers: {
|
|
1301
993
|
"Content-Type": "application/json",
|
|
@@ -1303,29 +995,21 @@ const postAuthV1MembershipsByOrgIdPoliciesByPolicyIdAttachments = (options) => (
|
|
|
1303
995
|
}
|
|
1304
996
|
});
|
|
1305
997
|
/**
|
|
1306
|
-
*
|
|
1307
|
-
*
|
|
1308
|
-
* Detaches a policy from an identity by removing the specified attachment.
|
|
998
|
+
* UpdateMembershipState
|
|
1309
999
|
*/
|
|
1310
|
-
const
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1000
|
+
const authV1MembershipServiceUpdateMembershipState = (options) => (options.client ?? client).patch({
|
|
1001
|
+
url: "/auth/v1/memberships/{user.org_id}/state",
|
|
1002
|
+
...options,
|
|
1003
|
+
headers: {
|
|
1004
|
+
"Content-Type": "application/json",
|
|
1005
|
+
...options.headers
|
|
1006
|
+
}
|
|
1317
1007
|
});
|
|
1318
1008
|
/**
|
|
1319
|
-
*
|
|
1320
|
-
*
|
|
1321
|
-
* Updates the unique username handle of the specified organization.
|
|
1009
|
+
* UpdateOrgUsername
|
|
1322
1010
|
*/
|
|
1323
|
-
const
|
|
1324
|
-
|
|
1325
|
-
name: "X-API-Key",
|
|
1326
|
-
type: "apiKey"
|
|
1327
|
-
}],
|
|
1328
|
-
url: "/auth/v1/memberships/{orgId}/username",
|
|
1011
|
+
const authV1MembershipServiceUpdateOrgUsername = (options) => (options.client ?? client).patch({
|
|
1012
|
+
url: "/auth/v1/memberships/{user.org_id}/username",
|
|
1329
1013
|
...options,
|
|
1330
1014
|
headers: {
|
|
1331
1015
|
"Content-Type": "application/json",
|
|
@@ -1333,47 +1017,31 @@ const putAuthV1MembershipsByOrgIdUsername = (options) => (options.client ?? clie
|
|
|
1333
1017
|
}
|
|
1334
1018
|
});
|
|
1335
1019
|
/**
|
|
1336
|
-
*
|
|
1337
|
-
*
|
|
1338
|
-
* Returns a paginated list of the organizations in which the authenticated user holds an active membership.
|
|
1020
|
+
* DeleteOTP
|
|
1339
1021
|
*/
|
|
1340
|
-
const
|
|
1341
|
-
|
|
1342
|
-
name: "X-API-Key",
|
|
1343
|
-
type: "apiKey"
|
|
1344
|
-
}],
|
|
1345
|
-
url: "/auth/v1/memberships/active",
|
|
1022
|
+
const authV1OtpServiceDeleteOtp = (options) => (options?.client ?? client).delete({
|
|
1023
|
+
url: "/auth/v1/users/current/totp/delete",
|
|
1346
1024
|
...options
|
|
1347
1025
|
});
|
|
1348
1026
|
/**
|
|
1349
|
-
*
|
|
1350
|
-
*
|
|
1351
|
-
* Returns a paginated list of the authenticated user's pending organization membership invitations that have not yet been accepted.
|
|
1027
|
+
* SetupOTP
|
|
1352
1028
|
*/
|
|
1353
|
-
const
|
|
1354
|
-
|
|
1355
|
-
name: "X-API-Key",
|
|
1356
|
-
type: "apiKey"
|
|
1357
|
-
}],
|
|
1358
|
-
url: "/auth/v1/memberships/pending",
|
|
1029
|
+
const authV1OtpServiceSetupOtp = (options) => (options?.client ?? client).post({
|
|
1030
|
+
url: "/auth/v1/users/current/totp/setup",
|
|
1359
1031
|
...options
|
|
1360
1032
|
});
|
|
1361
1033
|
/**
|
|
1362
|
-
*
|
|
1363
|
-
*
|
|
1364
|
-
* Begins a passkey login by returning a session_id and WebAuthn challenge options for the client to sign.
|
|
1034
|
+
* GetOTPStatus
|
|
1365
1035
|
*/
|
|
1366
|
-
const
|
|
1367
|
-
url: "/auth/v1/
|
|
1036
|
+
const authV1OtpServiceGetOtpStatus = (options) => (options?.client ?? client).get({
|
|
1037
|
+
url: "/auth/v1/users/current/totp/status",
|
|
1368
1038
|
...options
|
|
1369
1039
|
});
|
|
1370
1040
|
/**
|
|
1371
|
-
*
|
|
1372
|
-
*
|
|
1373
|
-
* Completes a passkey login by verifying the signed WebAuthn credential against the session and returning authentication tokens.
|
|
1041
|
+
* VerifyOTP
|
|
1374
1042
|
*/
|
|
1375
|
-
const
|
|
1376
|
-
url: "/auth/v1/
|
|
1043
|
+
const authV1OtpServiceVerifyOtp = (options) => (options.client ?? client).post({
|
|
1044
|
+
url: "/auth/v1/users/current/totp/verify",
|
|
1377
1045
|
...options,
|
|
1378
1046
|
headers: {
|
|
1379
1047
|
"Content-Type": "application/json",
|
|
@@ -1381,12 +1049,10 @@ const postAuthV1PasskeyLoginFinish = (options) => (options.client ?? client).pos
|
|
|
1381
1049
|
}
|
|
1382
1050
|
});
|
|
1383
1051
|
/**
|
|
1384
|
-
*
|
|
1385
|
-
*
|
|
1386
|
-
* Sends a password reset email containing a reset token to the given email address.
|
|
1052
|
+
* VerifyTOTPForLogin
|
|
1387
1053
|
*/
|
|
1388
|
-
const
|
|
1389
|
-
url: "/auth/v1/
|
|
1054
|
+
const authV1OtpServiceVerifyTotpForLogin = (options) => (options.client ?? client).post({
|
|
1055
|
+
url: "/auth/v1/verify-totp",
|
|
1390
1056
|
...options,
|
|
1391
1057
|
headers: {
|
|
1392
1058
|
"Content-Type": "application/json",
|
|
@@ -1394,12 +1060,10 @@ const postAuthV1PasswordReset = (options) => (options.client ?? client).post({
|
|
|
1394
1060
|
}
|
|
1395
1061
|
});
|
|
1396
1062
|
/**
|
|
1397
|
-
*
|
|
1398
|
-
*
|
|
1399
|
-
* Resets the user's password using a valid reset token and the supplied new password.
|
|
1063
|
+
* PasskeyLoginBegin
|
|
1400
1064
|
*/
|
|
1401
|
-
const
|
|
1402
|
-
url: "/auth/v1/
|
|
1065
|
+
const authV1PasskeyServicePasskeyLoginBegin = (options) => (options.client ?? client).post({
|
|
1066
|
+
url: "/auth/v1/passkey/login/begin",
|
|
1403
1067
|
...options,
|
|
1404
1068
|
headers: {
|
|
1405
1069
|
"Content-Type": "application/json",
|
|
@@ -1407,55 +1071,39 @@ const postAuthV1PasswordResetConfirm = (options) => (options.client ?? client).p
|
|
|
1407
1071
|
}
|
|
1408
1072
|
});
|
|
1409
1073
|
/**
|
|
1410
|
-
*
|
|
1411
|
-
*
|
|
1412
|
-
* Returns the registered permission names and their bit offsets.
|
|
1074
|
+
* PasskeyLoginFinish
|
|
1413
1075
|
*/
|
|
1414
|
-
const
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1076
|
+
const authV1PasskeyServicePasskeyLoginFinish = (options) => (options.client ?? client).post({
|
|
1077
|
+
url: "/auth/v1/passkey/login/finish",
|
|
1078
|
+
...options,
|
|
1079
|
+
headers: {
|
|
1080
|
+
"Content-Type": "application/json",
|
|
1081
|
+
...options.headers
|
|
1082
|
+
}
|
|
1421
1083
|
});
|
|
1422
1084
|
/**
|
|
1423
|
-
*
|
|
1424
|
-
*
|
|
1425
|
-
* Returns the list of social providers connected to the authenticated user's account.
|
|
1085
|
+
* ListPasskeys
|
|
1426
1086
|
*/
|
|
1427
|
-
const
|
|
1428
|
-
|
|
1429
|
-
name: "X-API-Key",
|
|
1430
|
-
type: "apiKey"
|
|
1431
|
-
}],
|
|
1432
|
-
url: "/auth/v1/providers",
|
|
1087
|
+
const authV1PasskeyServiceListPasskeys = (options) => (options?.client ?? client).get({
|
|
1088
|
+
url: "/auth/v1/users/current/passkeys",
|
|
1433
1089
|
...options
|
|
1434
1090
|
});
|
|
1435
1091
|
/**
|
|
1436
|
-
*
|
|
1437
|
-
*
|
|
1438
|
-
* Disconnects the named social provider from the authenticated user's account.
|
|
1092
|
+
* PasskeyRegisterBegin
|
|
1439
1093
|
*/
|
|
1440
|
-
const
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1094
|
+
const authV1PasskeyServicePasskeyRegisterBegin = (options) => (options.client ?? client).post({
|
|
1095
|
+
url: "/auth/v1/users/current/passkeys/register/begin",
|
|
1096
|
+
...options,
|
|
1097
|
+
headers: {
|
|
1098
|
+
"Content-Type": "application/json",
|
|
1099
|
+
...options.headers
|
|
1100
|
+
}
|
|
1447
1101
|
});
|
|
1448
1102
|
/**
|
|
1449
|
-
*
|
|
1450
|
-
*
|
|
1451
|
-
* Connects a social provider to the authenticated user's account using the supplied provider token.
|
|
1103
|
+
* PasskeyRegisterFinish
|
|
1452
1104
|
*/
|
|
1453
|
-
const
|
|
1454
|
-
|
|
1455
|
-
name: "X-API-Key",
|
|
1456
|
-
type: "apiKey"
|
|
1457
|
-
}],
|
|
1458
|
-
url: "/auth/v1/providers/connect",
|
|
1105
|
+
const authV1PasskeyServicePasskeyRegisterFinish = (options) => (options.client ?? client).post({
|
|
1106
|
+
url: "/auth/v1/users/current/passkeys/register/finish",
|
|
1459
1107
|
...options,
|
|
1460
1108
|
headers: {
|
|
1461
1109
|
"Content-Type": "application/json",
|
|
@@ -1463,12 +1111,17 @@ const postAuthV1ProvidersConnect = (options) => (options.client ?? client).post(
|
|
|
1463
1111
|
}
|
|
1464
1112
|
});
|
|
1465
1113
|
/**
|
|
1466
|
-
*
|
|
1467
|
-
*
|
|
1468
|
-
* Registers a new user account from an email and password and starts email verification.
|
|
1114
|
+
* DeletePasskey
|
|
1469
1115
|
*/
|
|
1470
|
-
const
|
|
1471
|
-
url: "/auth/v1/
|
|
1116
|
+
const authV1PasskeyServiceDeletePasskey = (options) => (options.client ?? client).delete({
|
|
1117
|
+
url: "/auth/v1/users/current/passkeys/{id}",
|
|
1118
|
+
...options
|
|
1119
|
+
});
|
|
1120
|
+
/**
|
|
1121
|
+
* RenamePasskey
|
|
1122
|
+
*/
|
|
1123
|
+
const authV1PasskeyServiceRenamePasskey = (options) => (options.client ?? client).patch({
|
|
1124
|
+
url: "/auth/v1/users/current/passkeys/{id}",
|
|
1472
1125
|
...options,
|
|
1473
1126
|
headers: {
|
|
1474
1127
|
"Content-Type": "application/json",
|
|
@@ -1476,53 +1129,35 @@ const postAuthV1Register = (options) => (options.client ?? client).post({
|
|
|
1476
1129
|
}
|
|
1477
1130
|
});
|
|
1478
1131
|
/**
|
|
1479
|
-
*
|
|
1480
|
-
*
|
|
1481
|
-
* Exchanges a valid refresh token for a new access token.
|
|
1132
|
+
* VerifyPasskeyForLogin
|
|
1482
1133
|
*/
|
|
1483
|
-
const
|
|
1484
|
-
url: "/auth/v1/
|
|
1485
|
-
...options
|
|
1134
|
+
const authV1PasskeyServiceVerifyPasskeyForLogin = (options) => (options.client ?? client).post({
|
|
1135
|
+
url: "/auth/v1/verify-passkey",
|
|
1136
|
+
...options,
|
|
1137
|
+
headers: {
|
|
1138
|
+
"Content-Type": "application/json",
|
|
1139
|
+
...options.headers
|
|
1140
|
+
}
|
|
1486
1141
|
});
|
|
1487
1142
|
/**
|
|
1488
|
-
*
|
|
1489
|
-
*
|
|
1490
|
-
* Returns the profile information of the authenticated user.
|
|
1143
|
+
* ListPolicies
|
|
1491
1144
|
*/
|
|
1492
|
-
const
|
|
1493
|
-
|
|
1494
|
-
name: "X-API-Key",
|
|
1495
|
-
type: "apiKey"
|
|
1496
|
-
}],
|
|
1497
|
-
url: "/auth/v1/userinfo",
|
|
1145
|
+
const authV1PolicyServiceListPolicies = (options) => (options.client ?? client).get({
|
|
1146
|
+
url: "/auth/v1/memberships/{org_id}/policies",
|
|
1498
1147
|
...options
|
|
1499
1148
|
});
|
|
1500
1149
|
/**
|
|
1501
|
-
*
|
|
1502
|
-
*
|
|
1503
|
-
* Returns the profile information of the authenticated user.
|
|
1150
|
+
* ListUserPolicies
|
|
1504
1151
|
*/
|
|
1505
|
-
const
|
|
1506
|
-
|
|
1507
|
-
name: "X-API-Key",
|
|
1508
|
-
type: "apiKey"
|
|
1509
|
-
}],
|
|
1510
|
-
url: "/auth/v1/users/current",
|
|
1152
|
+
const authV1PolicyServiceListUserPolicies = (options) => (options.client ?? client).get({
|
|
1153
|
+
url: "/auth/v1/memberships/{user.org_id}/members/{member_id}/policies",
|
|
1511
1154
|
...options
|
|
1512
1155
|
});
|
|
1513
1156
|
/**
|
|
1514
|
-
*
|
|
1515
|
-
*
|
|
1516
|
-
* Adds an email address to the authenticated account and sends a verification
|
|
1517
|
-
* code to it. The address becomes active only once it has been verified via
|
|
1518
|
-
* `POST /auth/v1/email/verify`. Subject to rate limiting per account.
|
|
1157
|
+
* CreatePolicy
|
|
1519
1158
|
*/
|
|
1520
|
-
const
|
|
1521
|
-
|
|
1522
|
-
name: "X-API-Key",
|
|
1523
|
-
type: "apiKey"
|
|
1524
|
-
}],
|
|
1525
|
-
url: "/auth/v1/users/current/emails",
|
|
1159
|
+
const authV1PolicyServiceCreatePolicy = (options) => (options.client ?? client).post({
|
|
1160
|
+
url: "/auth/v1/memberships/{user.org_id}/policies",
|
|
1526
1161
|
...options,
|
|
1527
1162
|
headers: {
|
|
1528
1163
|
"Content-Type": "application/json",
|
|
@@ -1530,18 +1165,31 @@ const postAuthV1UsersCurrentEmails = (options) => (options.client ?? client).pos
|
|
|
1530
1165
|
}
|
|
1531
1166
|
});
|
|
1532
1167
|
/**
|
|
1533
|
-
*
|
|
1534
|
-
*
|
|
1535
|
-
* Starts changing the authenticated account's email address. A verification
|
|
1536
|
-
* code is sent to the new address; the change is applied only after the code
|
|
1537
|
-
* is confirmed via `POST /auth/v1/email/verify`. Subject to rate limiting per account.
|
|
1168
|
+
* DetachPolicy
|
|
1538
1169
|
*/
|
|
1539
|
-
const
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1170
|
+
const authV1PolicyServiceDetachPolicy = (options) => (options.client ?? client).delete({
|
|
1171
|
+
url: "/auth/v1/memberships/{user.org_id}/policies/attachments/{attachment_id}",
|
|
1172
|
+
...options
|
|
1173
|
+
});
|
|
1174
|
+
/**
|
|
1175
|
+
* DeletePolicy
|
|
1176
|
+
*/
|
|
1177
|
+
const authV1PolicyServiceDeletePolicy = (options) => (options.client ?? client).delete({
|
|
1178
|
+
url: "/auth/v1/memberships/{user.org_id}/policies/{policy_id}",
|
|
1179
|
+
...options
|
|
1180
|
+
});
|
|
1181
|
+
/**
|
|
1182
|
+
* GetPolicy
|
|
1183
|
+
*/
|
|
1184
|
+
const authV1PolicyServiceGetPolicy = (options) => (options.client ?? client).get({
|
|
1185
|
+
url: "/auth/v1/memberships/{user.org_id}/policies/{policy_id}",
|
|
1186
|
+
...options
|
|
1187
|
+
});
|
|
1188
|
+
/**
|
|
1189
|
+
* UpdatePolicy
|
|
1190
|
+
*/
|
|
1191
|
+
const authV1PolicyServiceUpdatePolicy = (options) => (options.client ?? client).put({
|
|
1192
|
+
url: "/auth/v1/memberships/{user.org_id}/policies/{policy_id}",
|
|
1545
1193
|
...options,
|
|
1546
1194
|
headers: {
|
|
1547
1195
|
"Content-Type": "application/json",
|
|
@@ -1549,30 +1197,17 @@ const putAuthV1UsersCurrentEmailsChange = (options) => (options.client ?? client
|
|
|
1549
1197
|
}
|
|
1550
1198
|
});
|
|
1551
1199
|
/**
|
|
1552
|
-
*
|
|
1553
|
-
*
|
|
1554
|
-
* Returns the authenticated account's current email address together with
|
|
1555
|
-
* whether an email is set and whether it has been verified.
|
|
1200
|
+
* ListPolicyAttachments
|
|
1556
1201
|
*/
|
|
1557
|
-
const
|
|
1558
|
-
|
|
1559
|
-
name: "X-API-Key",
|
|
1560
|
-
type: "apiKey"
|
|
1561
|
-
}],
|
|
1562
|
-
url: "/auth/v1/users/current/emails/status",
|
|
1202
|
+
const authV1PolicyServiceListPolicyAttachments = (options) => (options.client ?? client).get({
|
|
1203
|
+
url: "/auth/v1/memberships/{user.org_id}/policies/{policy_id}/attachments",
|
|
1563
1204
|
...options
|
|
1564
1205
|
});
|
|
1565
1206
|
/**
|
|
1566
|
-
*
|
|
1567
|
-
*
|
|
1568
|
-
* Updates the authenticated user's full name to the provided value.
|
|
1207
|
+
* AttachPolicy
|
|
1569
1208
|
*/
|
|
1570
|
-
const
|
|
1571
|
-
|
|
1572
|
-
name: "X-API-Key",
|
|
1573
|
-
type: "apiKey"
|
|
1574
|
-
}],
|
|
1575
|
-
url: "/auth/v1/users/current/name",
|
|
1209
|
+
const authV1PolicyServiceAttachPolicy = (options) => (options.client ?? client).post({
|
|
1210
|
+
url: "/auth/v1/memberships/{user.org_id}/policies/{policy_id}/attachments",
|
|
1576
1211
|
...options,
|
|
1577
1212
|
headers: {
|
|
1578
1213
|
"Content-Type": "application/json",
|
|
@@ -1580,42 +1215,24 @@ const patchAuthV1UsersCurrentName = (options) => (options.client ?? client).patc
|
|
|
1580
1215
|
}
|
|
1581
1216
|
});
|
|
1582
1217
|
/**
|
|
1583
|
-
*
|
|
1584
|
-
*
|
|
1585
|
-
* Returns all passkeys registered to the authenticated user.
|
|
1218
|
+
* ListPermissionRegistry
|
|
1586
1219
|
*/
|
|
1587
|
-
const
|
|
1588
|
-
|
|
1589
|
-
name: "X-API-Key",
|
|
1590
|
-
type: "apiKey"
|
|
1591
|
-
}],
|
|
1592
|
-
url: "/auth/v1/users/current/passkeys",
|
|
1220
|
+
const authV1PolicyServiceListPermissionRegistry = (options) => (options?.client ?? client).get({
|
|
1221
|
+
url: "/auth/v1/policies/permissions",
|
|
1593
1222
|
...options
|
|
1594
1223
|
});
|
|
1595
1224
|
/**
|
|
1596
|
-
*
|
|
1597
|
-
*
|
|
1598
|
-
* Deletes the authenticated user's passkey identified by the path ID.
|
|
1225
|
+
* ListProviders
|
|
1599
1226
|
*/
|
|
1600
|
-
const
|
|
1601
|
-
|
|
1602
|
-
name: "X-API-Key",
|
|
1603
|
-
type: "apiKey"
|
|
1604
|
-
}],
|
|
1605
|
-
url: "/auth/v1/users/current/passkeys/{id}",
|
|
1227
|
+
const authV1ProvidersServiceListProviders = (options) => (options?.client ?? client).get({
|
|
1228
|
+
url: "/auth/v1/providers",
|
|
1606
1229
|
...options
|
|
1607
1230
|
});
|
|
1608
1231
|
/**
|
|
1609
|
-
*
|
|
1610
|
-
*
|
|
1611
|
-
* Renames the authenticated user's passkey identified by the path ID to the supplied name.
|
|
1232
|
+
* ConnectProvider
|
|
1612
1233
|
*/
|
|
1613
|
-
const
|
|
1614
|
-
|
|
1615
|
-
name: "X-API-Key",
|
|
1616
|
-
type: "apiKey"
|
|
1617
|
-
}],
|
|
1618
|
-
url: "/auth/v1/users/current/passkeys/{id}",
|
|
1234
|
+
const authV1ProvidersServiceConnectProvider = (options) => (options.client ?? client).post({
|
|
1235
|
+
url: "/auth/v1/providers/connect",
|
|
1619
1236
|
...options,
|
|
1620
1237
|
headers: {
|
|
1621
1238
|
"Content-Type": "application/json",
|
|
@@ -1623,29 +1240,17 @@ const patchAuthV1UsersCurrentPasskeysById = (options) => (options.client ?? clie
|
|
|
1623
1240
|
}
|
|
1624
1241
|
});
|
|
1625
1242
|
/**
|
|
1626
|
-
*
|
|
1627
|
-
*
|
|
1628
|
-
* Begins registering a new passkey for the authenticated user by returning a session_id and WebAuthn creation options.
|
|
1243
|
+
* DisconnectProvider
|
|
1629
1244
|
*/
|
|
1630
|
-
const
|
|
1631
|
-
|
|
1632
|
-
name: "X-API-Key",
|
|
1633
|
-
type: "apiKey"
|
|
1634
|
-
}],
|
|
1635
|
-
url: "/auth/v1/users/current/passkeys/register/begin",
|
|
1245
|
+
const authV1ProvidersServiceDisconnectProvider = (options) => (options.client ?? client).delete({
|
|
1246
|
+
url: "/auth/v1/providers/{provider}",
|
|
1636
1247
|
...options
|
|
1637
1248
|
});
|
|
1638
1249
|
/**
|
|
1639
|
-
*
|
|
1640
|
-
*
|
|
1641
|
-
* Completes passkey registration by verifying the signed WebAuthn credential and storing it under the given name for the authenticated user.
|
|
1250
|
+
* VerifyEmail
|
|
1642
1251
|
*/
|
|
1643
|
-
const
|
|
1644
|
-
|
|
1645
|
-
name: "X-API-Key",
|
|
1646
|
-
type: "apiKey"
|
|
1647
|
-
}],
|
|
1648
|
-
url: "/auth/v1/users/current/passkeys/register/finish",
|
|
1252
|
+
const authV1EmailServiceVerifyEmail = (options) => (options.client ?? client).post({
|
|
1253
|
+
url: "/auth/v1/email/verify",
|
|
1649
1254
|
...options,
|
|
1650
1255
|
headers: {
|
|
1651
1256
|
"Content-Type": "application/json",
|
|
@@ -1653,55 +1258,43 @@ const postAuthV1UsersCurrentPasskeysRegisterFinish = (options) => (options.clien
|
|
|
1653
1258
|
}
|
|
1654
1259
|
});
|
|
1655
1260
|
/**
|
|
1656
|
-
*
|
|
1657
|
-
*
|
|
1658
|
-
* Disables TOTP two-factor authentication for the authenticated user and removes their stored TOTP secret.
|
|
1261
|
+
* ResendVerification
|
|
1659
1262
|
*/
|
|
1660
|
-
const
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1263
|
+
const authV1EmailServiceResendVerification = (options) => (options.client ?? client).post({
|
|
1264
|
+
url: "/auth/v1/email/verify/resend",
|
|
1265
|
+
...options,
|
|
1266
|
+
headers: {
|
|
1267
|
+
"Content-Type": "application/json",
|
|
1268
|
+
...options.headers
|
|
1269
|
+
}
|
|
1667
1270
|
});
|
|
1668
1271
|
/**
|
|
1669
|
-
*
|
|
1670
|
-
*
|
|
1671
|
-
* Begins TOTP setup for the authenticated user by generating and returning a provisioning secret and QR code that have not yet been enabled.
|
|
1272
|
+
* Login
|
|
1672
1273
|
*/
|
|
1673
|
-
const
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1274
|
+
const authV1EmailServiceLogin = (options) => (options.client ?? client).post({
|
|
1275
|
+
url: "/auth/v1/login",
|
|
1276
|
+
...options,
|
|
1277
|
+
headers: {
|
|
1278
|
+
"Content-Type": "application/json",
|
|
1279
|
+
...options.headers
|
|
1280
|
+
}
|
|
1680
1281
|
});
|
|
1681
1282
|
/**
|
|
1682
|
-
*
|
|
1683
|
-
*
|
|
1684
|
-
* Returns whether the authenticated user currently has TOTP two-factor authentication enabled.
|
|
1283
|
+
* Logout
|
|
1685
1284
|
*/
|
|
1686
|
-
const
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1285
|
+
const authV1TokenServiceLogout = (options) => (options.client ?? client).post({
|
|
1286
|
+
url: "/auth/v1/logout",
|
|
1287
|
+
...options,
|
|
1288
|
+
headers: {
|
|
1289
|
+
"Content-Type": "application/json",
|
|
1290
|
+
...options.headers
|
|
1291
|
+
}
|
|
1693
1292
|
});
|
|
1694
1293
|
/**
|
|
1695
|
-
*
|
|
1696
|
-
*
|
|
1697
|
-
* Verifies the submitted TOTP code against the user's pending setup secret and, if valid, enables TOTP two-factor authentication and returns refreshed tokens.
|
|
1294
|
+
* SendPasswordReset
|
|
1698
1295
|
*/
|
|
1699
|
-
const
|
|
1700
|
-
|
|
1701
|
-
name: "X-API-Key",
|
|
1702
|
-
type: "apiKey"
|
|
1703
|
-
}],
|
|
1704
|
-
url: "/auth/v1/users/current/totp/verify",
|
|
1296
|
+
const authV1EmailServiceSendPasswordReset = (options) => (options.client ?? client).post({
|
|
1297
|
+
url: "/auth/v1/password/reset",
|
|
1705
1298
|
...options,
|
|
1706
1299
|
headers: {
|
|
1707
1300
|
"Content-Type": "application/json",
|
|
@@ -1709,16 +1302,10 @@ const postAuthV1UsersCurrentTotpVerify = (options) => (options.client ?? client)
|
|
|
1709
1302
|
}
|
|
1710
1303
|
});
|
|
1711
1304
|
/**
|
|
1712
|
-
*
|
|
1713
|
-
*
|
|
1714
|
-
* Updates the authenticated user's username to the provided value.
|
|
1305
|
+
* ResetPassword
|
|
1715
1306
|
*/
|
|
1716
|
-
const
|
|
1717
|
-
|
|
1718
|
-
name: "X-API-Key",
|
|
1719
|
-
type: "apiKey"
|
|
1720
|
-
}],
|
|
1721
|
-
url: "/auth/v1/users/current/username",
|
|
1307
|
+
const authV1EmailServiceResetPassword = (options) => (options.client ?? client).post({
|
|
1308
|
+
url: "/auth/v1/password/reset/confirm",
|
|
1722
1309
|
...options,
|
|
1723
1310
|
headers: {
|
|
1724
1311
|
"Content-Type": "application/json",
|
|
@@ -1726,12 +1313,10 @@ const patchAuthV1UsersCurrentUsername = (options) => (options.client ?? client).
|
|
|
1726
1313
|
}
|
|
1727
1314
|
});
|
|
1728
1315
|
/**
|
|
1729
|
-
*
|
|
1730
|
-
*
|
|
1731
|
-
* Completes the passkey step of a password login's 2FA challenge. Verifies the signed WebAuthn assertion against the challenge stored in the login session (from POST /auth/v1/login with status "2fa_required") and returns authentication tokens.
|
|
1316
|
+
* Register
|
|
1732
1317
|
*/
|
|
1733
|
-
const
|
|
1734
|
-
url: "/auth/v1/
|
|
1318
|
+
const authV1EmailServiceRegister = (options) => (options.client ?? client).post({
|
|
1319
|
+
url: "/auth/v1/register",
|
|
1735
1320
|
...options,
|
|
1736
1321
|
headers: {
|
|
1737
1322
|
"Content-Type": "application/json",
|
|
@@ -1739,12 +1324,10 @@ const postAuthV1VerifyPasskey = (options) => (options.client ?? client).post({
|
|
|
1739
1324
|
}
|
|
1740
1325
|
});
|
|
1741
1326
|
/**
|
|
1742
|
-
*
|
|
1743
|
-
*
|
|
1744
|
-
* Verifies the submitted TOTP code for a pending login session and, if valid, completes authentication and returns access tokens.
|
|
1327
|
+
* RefreshToken
|
|
1745
1328
|
*/
|
|
1746
|
-
const
|
|
1747
|
-
url: "/auth/v1/
|
|
1329
|
+
const authV1TokenServiceRefreshToken = (options) => (options.client ?? client).post({
|
|
1330
|
+
url: "/auth/v1/token",
|
|
1748
1331
|
...options,
|
|
1749
1332
|
headers: {
|
|
1750
1333
|
"Content-Type": "application/json",
|
|
@@ -1752,29 +1335,21 @@ const postAuthV1VerifyTotp = (options) => (options.client ?? client).post({
|
|
|
1752
1335
|
}
|
|
1753
1336
|
});
|
|
1754
1337
|
/**
|
|
1755
|
-
*
|
|
1756
|
-
*
|
|
1757
|
-
* Returns the organization's billing address
|
|
1338
|
+
* AddEmail
|
|
1758
1339
|
*/
|
|
1759
|
-
const
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1340
|
+
const authV1EmailServiceAddEmail = (options) => (options.client ?? client).post({
|
|
1341
|
+
url: "/auth/v1/users/current/emails",
|
|
1342
|
+
...options,
|
|
1343
|
+
headers: {
|
|
1344
|
+
"Content-Type": "application/json",
|
|
1345
|
+
...options.headers
|
|
1346
|
+
}
|
|
1766
1347
|
});
|
|
1767
1348
|
/**
|
|
1768
|
-
*
|
|
1769
|
-
*
|
|
1770
|
-
* Create or update the organization's billing address
|
|
1349
|
+
* InitiateEmailChange
|
|
1771
1350
|
*/
|
|
1772
|
-
const
|
|
1773
|
-
|
|
1774
|
-
name: "X-API-Key",
|
|
1775
|
-
type: "apiKey"
|
|
1776
|
-
}],
|
|
1777
|
-
url: "/billing/v1/address",
|
|
1351
|
+
const authV1EmailServiceInitiateEmailChange = (options) => (options.client ?? client).put({
|
|
1352
|
+
url: "/auth/v1/users/current/emails/change",
|
|
1778
1353
|
...options,
|
|
1779
1354
|
headers: {
|
|
1780
1355
|
"Content-Type": "application/json",
|
|
@@ -1782,55 +1357,31 @@ const postBillingV1Address = (options) => (options.client ?? client).post({
|
|
|
1782
1357
|
}
|
|
1783
1358
|
});
|
|
1784
1359
|
/**
|
|
1785
|
-
*
|
|
1786
|
-
*
|
|
1787
|
-
* Returns the organization's bandwidth usage.
|
|
1360
|
+
* GetUserEmailStatus
|
|
1788
1361
|
*/
|
|
1789
|
-
const
|
|
1790
|
-
|
|
1791
|
-
name: "X-API-Key",
|
|
1792
|
-
type: "apiKey"
|
|
1793
|
-
}],
|
|
1794
|
-
url: "/billing/v1/bandwidth-usage",
|
|
1362
|
+
const authV1EmailServiceGetUserEmailStatus = (options) => (options?.client ?? client).get({
|
|
1363
|
+
url: "/auth/v1/users/current/emails/status",
|
|
1795
1364
|
...options
|
|
1796
1365
|
});
|
|
1797
1366
|
/**
|
|
1798
|
-
*
|
|
1799
|
-
*
|
|
1800
|
-
* Returns the organization's bandwidth usage history
|
|
1367
|
+
* GetUserInfo
|
|
1801
1368
|
*/
|
|
1802
|
-
const
|
|
1803
|
-
|
|
1804
|
-
name: "X-API-Key",
|
|
1805
|
-
type: "apiKey"
|
|
1806
|
-
}],
|
|
1807
|
-
url: "/billing/v1/bandwidth-usage/history",
|
|
1369
|
+
const authV1UserServiceGetUserInfo = (options) => (options?.client ?? client).get({
|
|
1370
|
+
url: "/auth/v1/userinfo",
|
|
1808
1371
|
...options
|
|
1809
1372
|
});
|
|
1810
1373
|
/**
|
|
1811
|
-
*
|
|
1812
|
-
*
|
|
1813
|
-
* Recalculate and persist the organization's bandwidth usage
|
|
1374
|
+
* GetUser
|
|
1814
1375
|
*/
|
|
1815
|
-
const
|
|
1816
|
-
|
|
1817
|
-
name: "X-API-Key",
|
|
1818
|
-
type: "apiKey"
|
|
1819
|
-
}],
|
|
1820
|
-
url: "/billing/v1/bandwidth-usage/refresh",
|
|
1376
|
+
const authV1UserServiceGetUser = (options) => (options?.client ?? client).get({
|
|
1377
|
+
url: "/auth/v1/users/current",
|
|
1821
1378
|
...options
|
|
1822
1379
|
});
|
|
1823
1380
|
/**
|
|
1824
|
-
*
|
|
1825
|
-
*
|
|
1826
|
-
* Create a Stripe hosted checkout session
|
|
1381
|
+
* UpdateName
|
|
1827
1382
|
*/
|
|
1828
|
-
const
|
|
1829
|
-
|
|
1830
|
-
name: "X-API-Key",
|
|
1831
|
-
type: "apiKey"
|
|
1832
|
-
}],
|
|
1833
|
-
url: "/billing/v1/checkout",
|
|
1383
|
+
const authV1UserServiceUpdateName = (options) => (options.client ?? client).patch({
|
|
1384
|
+
url: "/auth/v1/users/current/name",
|
|
1834
1385
|
...options,
|
|
1835
1386
|
headers: {
|
|
1836
1387
|
"Content-Type": "application/json",
|
|
@@ -1838,16 +1389,10 @@ const postBillingV1Checkout = (options) => (options.client ?? client).post({
|
|
|
1838
1389
|
}
|
|
1839
1390
|
});
|
|
1840
1391
|
/**
|
|
1841
|
-
*
|
|
1842
|
-
*
|
|
1843
|
-
* Submits a sales contact request for the organization.
|
|
1392
|
+
* UpdateUsername
|
|
1844
1393
|
*/
|
|
1845
|
-
const
|
|
1846
|
-
|
|
1847
|
-
name: "X-API-Key",
|
|
1848
|
-
type: "apiKey"
|
|
1849
|
-
}],
|
|
1850
|
-
url: "/billing/v1/contact-sales",
|
|
1394
|
+
const authV1UserServiceUpdateUsername = (options) => (options.client ?? client).patch({
|
|
1395
|
+
url: "/auth/v1/users/current/username",
|
|
1851
1396
|
...options,
|
|
1852
1397
|
headers: {
|
|
1853
1398
|
"Content-Type": "application/json",
|
|
@@ -1855,29 +1400,17 @@ const postBillingV1ContactSales = (options) => (options.client ?? client).post({
|
|
|
1855
1400
|
}
|
|
1856
1401
|
});
|
|
1857
1402
|
/**
|
|
1858
|
-
*
|
|
1859
|
-
*
|
|
1860
|
-
* Returns the organization's invoices.
|
|
1403
|
+
* ListInvoices
|
|
1861
1404
|
*/
|
|
1862
|
-
const
|
|
1863
|
-
security: [{
|
|
1864
|
-
name: "X-API-Key",
|
|
1865
|
-
type: "apiKey"
|
|
1866
|
-
}],
|
|
1405
|
+
const billingV1InvoiceServiceListInvoices = (options) => (options?.client ?? client).get({
|
|
1867
1406
|
url: "/billing/v1/invoices",
|
|
1868
1407
|
...options
|
|
1869
1408
|
});
|
|
1870
1409
|
/**
|
|
1871
|
-
*
|
|
1872
|
-
*
|
|
1873
|
-
* Updates the status of an invoice (admin).
|
|
1410
|
+
* UpdateInvoiceStatus
|
|
1874
1411
|
*/
|
|
1875
|
-
const
|
|
1876
|
-
|
|
1877
|
-
name: "X-API-Key",
|
|
1878
|
-
type: "apiKey"
|
|
1879
|
-
}],
|
|
1880
|
-
url: "/billing/v1/invoices/{invoiceId}/status",
|
|
1412
|
+
const billingV1InvoiceServiceUpdateInvoiceStatus = (options) => (options.client ?? client).patch({
|
|
1413
|
+
url: "/billing/v1/invoices/{invoice_id}/status",
|
|
1881
1414
|
...options,
|
|
1882
1415
|
headers: {
|
|
1883
1416
|
"Content-Type": "application/json",
|
|
@@ -1885,67 +1418,45 @@ const putBillingV1InvoicesByInvoiceIdStatus = (options) => (options.client ?? cl
|
|
|
1885
1418
|
}
|
|
1886
1419
|
});
|
|
1887
1420
|
/**
|
|
1888
|
-
*
|
|
1889
|
-
*
|
|
1890
|
-
* Trigger the cleanup of old bandwidth usage records
|
|
1421
|
+
* GetBillingAddress
|
|
1891
1422
|
*/
|
|
1892
|
-
const
|
|
1893
|
-
|
|
1894
|
-
name: "X-API-Key",
|
|
1895
|
-
type: "apiKey"
|
|
1896
|
-
}],
|
|
1897
|
-
url: "/billing/v1/jobs/cleanup-bandwidth-snapshots",
|
|
1423
|
+
const billingV1PaymentServiceGetBillingAddress = (options) => (options?.client ?? client).get({
|
|
1424
|
+
url: "/billing/v1/address",
|
|
1898
1425
|
...options
|
|
1899
1426
|
});
|
|
1900
1427
|
/**
|
|
1901
|
-
*
|
|
1902
|
-
*
|
|
1903
|
-
* Trigger the daily bandwidth usage calculation job for all organizations
|
|
1428
|
+
* UpsertBillingAddress
|
|
1904
1429
|
*/
|
|
1905
|
-
const
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1430
|
+
const billingV1PaymentServiceUpsertBillingAddress = (options) => (options.client ?? client).put({
|
|
1431
|
+
url: "/billing/v1/address",
|
|
1432
|
+
...options,
|
|
1433
|
+
headers: {
|
|
1434
|
+
"Content-Type": "application/json",
|
|
1435
|
+
...options.headers
|
|
1436
|
+
}
|
|
1912
1437
|
});
|
|
1913
1438
|
/**
|
|
1914
|
-
*
|
|
1915
|
-
*
|
|
1916
|
-
* Trigger the monthly bandwidth usage calculation job for all organizations
|
|
1439
|
+
* CreateCheckoutSession
|
|
1917
1440
|
*/
|
|
1918
|
-
const
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
1441
|
+
const billingV1PaymentServiceCreateCheckoutSession = (options) => (options.client ?? client).post({
|
|
1442
|
+
url: "/billing/v1/checkout",
|
|
1443
|
+
...options,
|
|
1444
|
+
headers: {
|
|
1445
|
+
"Content-Type": "application/json",
|
|
1446
|
+
...options.headers
|
|
1447
|
+
}
|
|
1925
1448
|
});
|
|
1926
1449
|
/**
|
|
1927
|
-
*
|
|
1928
|
-
*
|
|
1929
|
-
* Returns the organization's payment methods.
|
|
1450
|
+
* ListPaymentMethods
|
|
1930
1451
|
*/
|
|
1931
|
-
const
|
|
1932
|
-
security: [{
|
|
1933
|
-
name: "X-API-Key",
|
|
1934
|
-
type: "apiKey"
|
|
1935
|
-
}],
|
|
1452
|
+
const billingV1PaymentServiceListPaymentMethods = (options) => (options?.client ?? client).get({
|
|
1936
1453
|
url: "/billing/v1/payment-methods",
|
|
1937
1454
|
...options
|
|
1938
1455
|
});
|
|
1939
1456
|
/**
|
|
1940
|
-
*
|
|
1941
|
-
*
|
|
1942
|
-
* Attach a payment method to the organization
|
|
1457
|
+
* UpsertPaymentMethod
|
|
1943
1458
|
*/
|
|
1944
|
-
const
|
|
1945
|
-
security: [{
|
|
1946
|
-
name: "X-API-Key",
|
|
1947
|
-
type: "apiKey"
|
|
1948
|
-
}],
|
|
1459
|
+
const billingV1PaymentServiceUpsertPaymentMethod = (options) => (options.client ?? client).put({
|
|
1949
1460
|
url: "/billing/v1/payment-methods",
|
|
1950
1461
|
...options,
|
|
1951
1462
|
headers: {
|
|
@@ -1954,138 +1465,53 @@ const postBillingV1PaymentMethods = (options) => (options.client ?? client).post
|
|
|
1954
1465
|
}
|
|
1955
1466
|
});
|
|
1956
1467
|
/**
|
|
1957
|
-
*
|
|
1958
|
-
*
|
|
1959
|
-
* Remove a payment method from the organization
|
|
1960
|
-
*/
|
|
1961
|
-
const deleteBillingV1PaymentMethodsByPaymentMethodId = (options) => (options.client ?? client).delete({
|
|
1962
|
-
security: [{
|
|
1963
|
-
name: "X-API-Key",
|
|
1964
|
-
type: "apiKey"
|
|
1965
|
-
}],
|
|
1966
|
-
url: "/billing/v1/payment-methods/{paymentMethodId}",
|
|
1967
|
-
...options
|
|
1968
|
-
});
|
|
1969
|
-
/**
|
|
1970
|
-
* Resolve payment method from payment intent
|
|
1971
|
-
*
|
|
1972
|
-
* Returns the payment method ID associated with a payment intent
|
|
1468
|
+
* GetPaymentMethodFromPaymentIntent
|
|
1973
1469
|
*/
|
|
1974
|
-
const
|
|
1975
|
-
security: [{
|
|
1976
|
-
name: "X-API-Key",
|
|
1977
|
-
type: "apiKey"
|
|
1978
|
-
}],
|
|
1470
|
+
const billingV1PaymentServiceGetPaymentMethodFromPaymentIntent = (options) => (options?.client ?? client).get({
|
|
1979
1471
|
url: "/billing/v1/payment-methods/from-payment-intent",
|
|
1980
1472
|
...options
|
|
1981
1473
|
});
|
|
1982
1474
|
/**
|
|
1983
|
-
*
|
|
1984
|
-
*
|
|
1985
|
-
* Returns the payment method ID associated with a setup intent
|
|
1475
|
+
* GetPaymentMethodFromSetupIntent
|
|
1986
1476
|
*/
|
|
1987
|
-
const
|
|
1988
|
-
security: [{
|
|
1989
|
-
name: "X-API-Key",
|
|
1990
|
-
type: "apiKey"
|
|
1991
|
-
}],
|
|
1477
|
+
const billingV1PaymentServiceGetPaymentMethodFromSetupIntent = (options) => (options?.client ?? client).get({
|
|
1992
1478
|
url: "/billing/v1/payment-methods/from-setup-intent",
|
|
1993
1479
|
...options
|
|
1994
1480
|
});
|
|
1995
1481
|
/**
|
|
1996
|
-
*
|
|
1997
|
-
*
|
|
1998
|
-
* Returns the available billing plans.
|
|
1482
|
+
* DeletePaymentMethod
|
|
1999
1483
|
*/
|
|
2000
|
-
const
|
|
2001
|
-
url: "/billing/v1/
|
|
1484
|
+
const billingV1PaymentServiceDeletePaymentMethod = (options) => (options.client ?? client).delete({
|
|
1485
|
+
url: "/billing/v1/payment-methods/{payment_method_id}",
|
|
2002
1486
|
...options
|
|
2003
1487
|
});
|
|
2004
1488
|
/**
|
|
2005
|
-
*
|
|
2006
|
-
*
|
|
2007
|
-
* Returns a single billing plan by ID.
|
|
1489
|
+
* CreateSetupIntent
|
|
2008
1490
|
*/
|
|
2009
|
-
const
|
|
2010
|
-
url: "/billing/v1/plans/{planId}",
|
|
2011
|
-
...options
|
|
2012
|
-
});
|
|
2013
|
-
/**
|
|
2014
|
-
* Create setup intent
|
|
2015
|
-
*
|
|
2016
|
-
* Create a Stripe setup intent for adding a payment method
|
|
2017
|
-
*/
|
|
2018
|
-
const postBillingV1SetupIntent = (options) => (options?.client ?? client).post({
|
|
2019
|
-
security: [{
|
|
2020
|
-
name: "X-API-Key",
|
|
2021
|
-
type: "apiKey"
|
|
2022
|
-
}],
|
|
1491
|
+
const billingV1PaymentServiceCreateSetupIntent = (options) => (options.client ?? client).post({
|
|
2023
1492
|
url: "/billing/v1/setup-intent",
|
|
2024
|
-
...options
|
|
2025
|
-
|
|
2026
|
-
|
|
2027
|
-
|
|
2028
|
-
|
|
2029
|
-
* Returns the organization's storage usage.
|
|
2030
|
-
*/
|
|
2031
|
-
const getBillingV1StorageUsage = (options) => (options?.client ?? client).get({
|
|
2032
|
-
security: [{
|
|
2033
|
-
name: "X-API-Key",
|
|
2034
|
-
type: "apiKey"
|
|
2035
|
-
}],
|
|
2036
|
-
url: "/billing/v1/storage-usage",
|
|
2037
|
-
...options
|
|
2038
|
-
});
|
|
2039
|
-
/**
|
|
2040
|
-
* Storage usage history
|
|
2041
|
-
*
|
|
2042
|
-
* Returns the organization's storage usage history
|
|
2043
|
-
*/
|
|
2044
|
-
const getBillingV1StorageUsageHistory = (options) => (options?.client ?? client).get({
|
|
2045
|
-
security: [{
|
|
2046
|
-
name: "X-API-Key",
|
|
2047
|
-
type: "apiKey"
|
|
2048
|
-
}],
|
|
2049
|
-
url: "/billing/v1/storage-usage/history",
|
|
2050
|
-
...options
|
|
2051
|
-
});
|
|
2052
|
-
/**
|
|
2053
|
-
* Refresh storage usage
|
|
2054
|
-
*
|
|
2055
|
-
* Recalculate and persist the organization's storage usage
|
|
2056
|
-
*/
|
|
2057
|
-
const postBillingV1StorageUsageRefresh = (options) => (options?.client ?? client).post({
|
|
2058
|
-
security: [{
|
|
2059
|
-
name: "X-API-Key",
|
|
2060
|
-
type: "apiKey"
|
|
2061
|
-
}],
|
|
2062
|
-
url: "/billing/v1/storage-usage/refresh",
|
|
2063
|
-
...options
|
|
1493
|
+
...options,
|
|
1494
|
+
headers: {
|
|
1495
|
+
"Content-Type": "application/json",
|
|
1496
|
+
...options.headers
|
|
1497
|
+
}
|
|
2064
1498
|
});
|
|
2065
1499
|
/**
|
|
2066
|
-
*
|
|
2067
|
-
*
|
|
2068
|
-
* Returns the current organization subscription.
|
|
1500
|
+
* UpgradeSubscription
|
|
2069
1501
|
*/
|
|
2070
|
-
const
|
|
2071
|
-
|
|
2072
|
-
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
|
|
1502
|
+
const billingV1PaymentServiceUpgradeSubscription = (options) => (options.client ?? client).post({
|
|
1503
|
+
url: "/billing/v1/subscription/upgrade",
|
|
1504
|
+
...options,
|
|
1505
|
+
headers: {
|
|
1506
|
+
"Content-Type": "application/json",
|
|
1507
|
+
...options.headers
|
|
1508
|
+
}
|
|
2077
1509
|
});
|
|
2078
1510
|
/**
|
|
2079
|
-
*
|
|
2080
|
-
*
|
|
2081
|
-
* Create a subscription for the authenticated organization
|
|
1511
|
+
* CalculateTax
|
|
2082
1512
|
*/
|
|
2083
|
-
const
|
|
2084
|
-
|
|
2085
|
-
name: "X-API-Key",
|
|
2086
|
-
type: "apiKey"
|
|
2087
|
-
}],
|
|
2088
|
-
url: "/billing/v1/subscription",
|
|
1513
|
+
const billingV1PaymentServiceCalculateTax = (options) => (options.client ?? client).post({
|
|
1514
|
+
url: "/billing/v1/tax/calculate",
|
|
2089
1515
|
...options,
|
|
2090
1516
|
headers: {
|
|
2091
1517
|
"Content-Type": "application/json",
|
|
@@ -2093,55 +1519,35 @@ const postBillingV1Subscription = (options) => (options.client ?? client).post({
|
|
|
2093
1519
|
}
|
|
2094
1520
|
});
|
|
2095
1521
|
/**
|
|
2096
|
-
*
|
|
2097
|
-
*
|
|
2098
|
-
* Cancel the organization's subscription at the end of the current period
|
|
1522
|
+
* CalculateGenericTax
|
|
2099
1523
|
*/
|
|
2100
|
-
const
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
|
|
2104
|
-
|
|
2105
|
-
|
|
2106
|
-
|
|
1524
|
+
const billingV1PaymentServiceCalculateGenericTax = (options) => (options.client ?? client).post({
|
|
1525
|
+
url: "/billing/v1/tax/calculate-generic",
|
|
1526
|
+
...options,
|
|
1527
|
+
headers: {
|
|
1528
|
+
"Content-Type": "application/json",
|
|
1529
|
+
...options.headers
|
|
1530
|
+
}
|
|
2107
1531
|
});
|
|
2108
1532
|
/**
|
|
2109
|
-
*
|
|
2110
|
-
*
|
|
2111
|
-
* Returns the organization's subscription history.
|
|
1533
|
+
* ListPlans
|
|
2112
1534
|
*/
|
|
2113
|
-
const
|
|
2114
|
-
|
|
2115
|
-
name: "X-API-Key",
|
|
2116
|
-
type: "apiKey"
|
|
2117
|
-
}],
|
|
2118
|
-
url: "/billing/v1/subscription/history",
|
|
1535
|
+
const billingV1PlanServiceListPlans = (options) => (options?.client ?? client).get({
|
|
1536
|
+
url: "/billing/v1/plans",
|
|
2119
1537
|
...options
|
|
2120
1538
|
});
|
|
2121
1539
|
/**
|
|
2122
|
-
*
|
|
2123
|
-
*
|
|
2124
|
-
* Reactivate a subscription scheduled for cancellation
|
|
1540
|
+
* GetPlan
|
|
2125
1541
|
*/
|
|
2126
|
-
const
|
|
2127
|
-
|
|
2128
|
-
name: "X-API-Key",
|
|
2129
|
-
type: "apiKey"
|
|
2130
|
-
}],
|
|
2131
|
-
url: "/billing/v1/subscription/reactivate",
|
|
1542
|
+
const billingV1PlanServiceGetPlan = (options) => (options.client ?? client).get({
|
|
1543
|
+
url: "/billing/v1/plans/{plan_id}",
|
|
2132
1544
|
...options
|
|
2133
1545
|
});
|
|
2134
1546
|
/**
|
|
2135
|
-
*
|
|
2136
|
-
*
|
|
2137
|
-
* Upgrade the organization's subscription to a new plan
|
|
1547
|
+
* ContactSales
|
|
2138
1548
|
*/
|
|
2139
|
-
const
|
|
2140
|
-
|
|
2141
|
-
name: "X-API-Key",
|
|
2142
|
-
type: "apiKey"
|
|
2143
|
-
}],
|
|
2144
|
-
url: "/billing/v1/subscription/upgrade",
|
|
1549
|
+
const billingV1SalesServiceContactSales = (options) => (options.client ?? client).post({
|
|
1550
|
+
url: "/billing/v1/contact-sales",
|
|
2145
1551
|
...options,
|
|
2146
1552
|
headers: {
|
|
2147
1553
|
"Content-Type": "application/json",
|
|
@@ -2149,241 +1555,134 @@ const postBillingV1SubscriptionUpgrade = (options) => (options.client ?? client)
|
|
|
2149
1555
|
}
|
|
2150
1556
|
});
|
|
2151
1557
|
/**
|
|
2152
|
-
*
|
|
2153
|
-
*
|
|
2154
|
-
* Calculate tax for a plan purchase
|
|
1558
|
+
* GetSubscription
|
|
2155
1559
|
*/
|
|
2156
|
-
const
|
|
2157
|
-
|
|
2158
|
-
|
|
2159
|
-
type: "apiKey"
|
|
2160
|
-
}],
|
|
2161
|
-
url: "/billing/v1/tax/calculate",
|
|
2162
|
-
...options,
|
|
2163
|
-
headers: {
|
|
2164
|
-
"Content-Type": "application/json",
|
|
2165
|
-
...options.headers
|
|
2166
|
-
}
|
|
1560
|
+
const billingV1SubscriptionServiceGetSubscription = (options) => (options?.client ?? client).get({
|
|
1561
|
+
url: "/billing/v1/subscription",
|
|
1562
|
+
...options
|
|
2167
1563
|
});
|
|
2168
1564
|
/**
|
|
2169
|
-
*
|
|
2170
|
-
*
|
|
2171
|
-
* Receives Stripe webhook events. The raw payload and signature are forwarded to the billing service for verification and processing.
|
|
1565
|
+
* CreateSubscription
|
|
2172
1566
|
*/
|
|
2173
|
-
const
|
|
2174
|
-
url: "/billing/
|
|
1567
|
+
const billingV1SubscriptionServiceCreateSubscription = (options) => (options.client ?? client).post({
|
|
1568
|
+
url: "/billing/v1/subscription",
|
|
2175
1569
|
...options,
|
|
2176
1570
|
headers: {
|
|
2177
1571
|
"Content-Type": "application/json",
|
|
2178
|
-
...options
|
|
1572
|
+
...options.headers
|
|
2179
1573
|
}
|
|
2180
1574
|
});
|
|
2181
1575
|
/**
|
|
2182
|
-
*
|
|
2183
|
-
*
|
|
2184
|
-
* Returns a single image by ID.
|
|
1576
|
+
* CancelSubscription
|
|
2185
1577
|
*/
|
|
2186
|
-
const
|
|
2187
|
-
url: "/
|
|
1578
|
+
const billingV1SubscriptionServiceCancelSubscription = (options) => (options?.client ?? client).post({
|
|
1579
|
+
url: "/billing/v1/subscription/cancel",
|
|
2188
1580
|
...options
|
|
2189
1581
|
});
|
|
2190
1582
|
/**
|
|
2191
|
-
*
|
|
2192
|
-
*
|
|
2193
|
-
* Returns the language codes supported for audio tracks and subtitles.
|
|
1583
|
+
* GetSubscriptionHistory
|
|
2194
1584
|
*/
|
|
2195
|
-
const
|
|
2196
|
-
url: "/
|
|
1585
|
+
const billingV1SubscriptionServiceGetSubscriptionHistory = (options) => (options?.client ?? client).get({
|
|
1586
|
+
url: "/billing/v1/subscription/history",
|
|
2197
1587
|
...options
|
|
2198
1588
|
});
|
|
2199
1589
|
/**
|
|
2200
|
-
*
|
|
2201
|
-
*
|
|
2202
|
-
* Returns the images in a project.
|
|
1590
|
+
* ReactivateSubscription
|
|
2203
1591
|
*/
|
|
2204
|
-
const
|
|
2205
|
-
|
|
2206
|
-
name: "X-API-Key",
|
|
2207
|
-
type: "apiKey"
|
|
2208
|
-
}],
|
|
2209
|
-
url: "/media/v1/projects/{projectId}/images",
|
|
1592
|
+
const billingV1SubscriptionServiceReactivateSubscription = (options) => (options?.client ?? client).post({
|
|
1593
|
+
url: "/billing/v1/subscription/reactivate",
|
|
2210
1594
|
...options
|
|
2211
1595
|
});
|
|
2212
1596
|
/**
|
|
2213
|
-
*
|
|
2214
|
-
*
|
|
2215
|
-
* Deletes an image from a project.
|
|
1597
|
+
* GetBandwidthUsage
|
|
2216
1598
|
*/
|
|
2217
|
-
const
|
|
2218
|
-
|
|
2219
|
-
name: "X-API-Key",
|
|
2220
|
-
type: "apiKey"
|
|
2221
|
-
}],
|
|
2222
|
-
url: "/media/v1/projects/{projectId}/images/{imageId}",
|
|
1599
|
+
const billingV1UsageServiceGetBandwidthUsage = (options) => (options?.client ?? client).get({
|
|
1600
|
+
url: "/billing/v1/bandwidth-usage",
|
|
2223
1601
|
...options
|
|
2224
1602
|
});
|
|
2225
1603
|
/**
|
|
2226
|
-
*
|
|
2227
|
-
*
|
|
2228
|
-
* Returns a single image within a project, including private media. Requires project access.
|
|
1604
|
+
* GetBandwidthUsageHistory
|
|
2229
1605
|
*/
|
|
2230
|
-
const
|
|
2231
|
-
|
|
2232
|
-
name: "X-API-Key",
|
|
2233
|
-
type: "apiKey"
|
|
2234
|
-
}],
|
|
2235
|
-
url: "/media/v1/projects/{projectId}/images/{imageId}",
|
|
1606
|
+
const billingV1UsageServiceGetBandwidthUsageHistory = (options) => (options?.client ?? client).get({
|
|
1607
|
+
url: "/billing/v1/bandwidth-usage/history",
|
|
2236
1608
|
...options
|
|
2237
1609
|
});
|
|
2238
1610
|
/**
|
|
2239
|
-
*
|
|
2240
|
-
*
|
|
2241
|
-
* Finalizes a previously initiated image upload.
|
|
1611
|
+
* RefreshBandwidthUsage
|
|
2242
1612
|
*/
|
|
2243
|
-
const
|
|
2244
|
-
|
|
2245
|
-
name: "X-API-Key",
|
|
2246
|
-
type: "apiKey"
|
|
2247
|
-
}],
|
|
2248
|
-
url: "/media/v1/projects/{projectId}/images/{imageId}/upload/complete",
|
|
1613
|
+
const billingV1UsageServiceRefreshBandwidthUsage = (options) => (options?.client ?? client).post({
|
|
1614
|
+
url: "/billing/v1/bandwidth-usage/refresh",
|
|
2249
1615
|
...options
|
|
2250
1616
|
});
|
|
2251
1617
|
/**
|
|
2252
|
-
*
|
|
2253
|
-
*
|
|
2254
|
-
* Updates an image's visibility (public, unlisted, or private). Requires project access.
|
|
1618
|
+
* GetStorageUsage
|
|
2255
1619
|
*/
|
|
2256
|
-
const
|
|
2257
|
-
|
|
2258
|
-
|
|
2259
|
-
type: "apiKey"
|
|
2260
|
-
}],
|
|
2261
|
-
url: "/media/v1/projects/{projectId}/images/{imageId}/visibility",
|
|
2262
|
-
...options,
|
|
2263
|
-
headers: {
|
|
2264
|
-
"Content-Type": "application/json",
|
|
2265
|
-
...options.headers
|
|
2266
|
-
}
|
|
2267
|
-
});
|
|
2268
|
-
/**
|
|
2269
|
-
* Create an image upload
|
|
2270
|
-
*
|
|
2271
|
-
* Initiates an image upload and returns upload details.
|
|
2272
|
-
*/
|
|
2273
|
-
const postMediaV1ProjectsByProjectIdImagesUpload = (options) => (options.client ?? client).post({
|
|
2274
|
-
security: [{
|
|
2275
|
-
name: "X-API-Key",
|
|
2276
|
-
type: "apiKey"
|
|
2277
|
-
}],
|
|
2278
|
-
url: "/media/v1/projects/{projectId}/images/upload",
|
|
2279
|
-
...options,
|
|
2280
|
-
headers: {
|
|
2281
|
-
"Content-Type": "application/json",
|
|
2282
|
-
...options.headers
|
|
2283
|
-
}
|
|
1620
|
+
const billingV1UsageServiceGetStorageUsage = (options) => (options?.client ?? client).get({
|
|
1621
|
+
url: "/billing/v1/storage-usage",
|
|
1622
|
+
...options
|
|
2284
1623
|
});
|
|
2285
1624
|
/**
|
|
2286
|
-
*
|
|
2287
|
-
*
|
|
2288
|
-
* Returns the videos belonging to a project.
|
|
1625
|
+
* GetStorageUsageHistory
|
|
2289
1626
|
*/
|
|
2290
|
-
const
|
|
2291
|
-
|
|
2292
|
-
name: "X-API-Key",
|
|
2293
|
-
type: "apiKey"
|
|
2294
|
-
}],
|
|
2295
|
-
url: "/media/v1/projects/{projectId}/videos",
|
|
1627
|
+
const billingV1UsageServiceGetStorageUsageHistory = (options) => (options?.client ?? client).get({
|
|
1628
|
+
url: "/billing/v1/storage-usage/history",
|
|
2296
1629
|
...options
|
|
2297
1630
|
});
|
|
2298
1631
|
/**
|
|
2299
|
-
*
|
|
2300
|
-
*
|
|
2301
|
-
* Deletes a video from a project.
|
|
1632
|
+
* RefreshStorageUsage
|
|
2302
1633
|
*/
|
|
2303
|
-
const
|
|
2304
|
-
|
|
2305
|
-
name: "X-API-Key",
|
|
2306
|
-
type: "apiKey"
|
|
2307
|
-
}],
|
|
2308
|
-
url: "/media/v1/projects/{projectId}/videos/{videoId}",
|
|
1634
|
+
const billingV1UsageServiceRefreshStorageUsage = (options) => (options?.client ?? client).post({
|
|
1635
|
+
url: "/billing/v1/storage-usage/refresh",
|
|
2309
1636
|
...options
|
|
2310
1637
|
});
|
|
2311
1638
|
/**
|
|
2312
|
-
*
|
|
2313
|
-
*
|
|
2314
|
-
* Returns a single video within a project, including private media. Requires project access.
|
|
1639
|
+
* ListClientCredentials
|
|
2315
1640
|
*/
|
|
2316
|
-
const
|
|
2317
|
-
|
|
2318
|
-
name: "X-API-Key",
|
|
2319
|
-
type: "apiKey"
|
|
2320
|
-
}],
|
|
2321
|
-
url: "/media/v1/projects/{projectId}/videos/{videoId}",
|
|
1641
|
+
const clientauthV1ClientCredentialServiceListClientCredentials = (options) => (options?.client ?? client).get({
|
|
1642
|
+
url: "/platform/clientauth/v1/credentials",
|
|
2322
1643
|
...options
|
|
2323
1644
|
});
|
|
2324
1645
|
/**
|
|
2325
|
-
*
|
|
2326
|
-
*
|
|
2327
|
-
* Deletes all audio tracks for a video.
|
|
1646
|
+
* CreateClientCredential
|
|
2328
1647
|
*/
|
|
2329
|
-
const
|
|
2330
|
-
|
|
2331
|
-
|
|
2332
|
-
|
|
2333
|
-
|
|
2334
|
-
|
|
2335
|
-
|
|
1648
|
+
const clientauthV1ClientCredentialServiceCreateClientCredential = (options) => (options.client ?? client).post({
|
|
1649
|
+
url: "/platform/clientauth/v1/credentials",
|
|
1650
|
+
...options,
|
|
1651
|
+
headers: {
|
|
1652
|
+
"Content-Type": "application/json",
|
|
1653
|
+
...options.headers
|
|
1654
|
+
}
|
|
2336
1655
|
});
|
|
2337
1656
|
/**
|
|
2338
|
-
*
|
|
2339
|
-
*
|
|
2340
|
-
* Returns a video's audio tracks within a project, including for private media. Requires project access.
|
|
1657
|
+
* RevokeClientCredential
|
|
2341
1658
|
*/
|
|
2342
|
-
const
|
|
2343
|
-
|
|
2344
|
-
name: "X-API-Key",
|
|
2345
|
-
type: "apiKey"
|
|
2346
|
-
}],
|
|
2347
|
-
url: "/media/v1/projects/{projectId}/videos/{videoId}/audio-tracks",
|
|
1659
|
+
const clientauthV1ClientCredentialServiceRevokeClientCredential = (options) => (options.client ?? client).post({
|
|
1660
|
+
url: "/platform/clientauth/v1/credentials/{credential_id}/revoke",
|
|
2348
1661
|
...options
|
|
2349
1662
|
});
|
|
2350
1663
|
/**
|
|
2351
|
-
*
|
|
2352
|
-
*
|
|
2353
|
-
* Deletes a single audio track from a video.
|
|
1664
|
+
* MintClientToken
|
|
2354
1665
|
*/
|
|
2355
|
-
const
|
|
2356
|
-
|
|
2357
|
-
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
|
|
1666
|
+
const clientauthV1ClientCredentialServiceMintClientToken = (options) => (options.client ?? client).post({
|
|
1667
|
+
url: "/platform/clientauth/v1/token",
|
|
1668
|
+
...options,
|
|
1669
|
+
headers: {
|
|
1670
|
+
"Content-Type": "application/json",
|
|
1671
|
+
...options.headers
|
|
1672
|
+
}
|
|
2362
1673
|
});
|
|
2363
1674
|
/**
|
|
2364
|
-
*
|
|
2365
|
-
*
|
|
2366
|
-
* Deletes all audio tracks for a video in a given language.
|
|
1675
|
+
* ListFeeds
|
|
2367
1676
|
*/
|
|
2368
|
-
const
|
|
2369
|
-
|
|
2370
|
-
name: "X-API-Key",
|
|
2371
|
-
type: "apiKey"
|
|
2372
|
-
}],
|
|
2373
|
-
url: "/media/v1/projects/{projectId}/videos/{videoId}/audio-tracks/language/{lang}",
|
|
1677
|
+
const feedsV1FeedServiceListFeeds = (options) => (options.client ?? client).get({
|
|
1678
|
+
url: "/feeds/v1/projects/{project_id}/feeds",
|
|
2374
1679
|
...options
|
|
2375
1680
|
});
|
|
2376
1681
|
/**
|
|
2377
|
-
*
|
|
2378
|
-
*
|
|
2379
|
-
* Initiates one or more audio track uploads for a video.
|
|
1682
|
+
* CreateFeed
|
|
2380
1683
|
*/
|
|
2381
|
-
const
|
|
2382
|
-
|
|
2383
|
-
name: "X-API-Key",
|
|
2384
|
-
type: "apiKey"
|
|
2385
|
-
}],
|
|
2386
|
-
url: "/media/v1/projects/{projectId}/videos/{videoId}/audio-tracks/upload",
|
|
1684
|
+
const feedsV1FeedServiceCreateFeed = (options) => (options.client ?? client).post({
|
|
1685
|
+
url: "/feeds/v1/projects/{project_id}/feeds",
|
|
2387
1686
|
...options,
|
|
2388
1687
|
headers: {
|
|
2389
1688
|
"Content-Type": "application/json",
|
|
@@ -2391,16 +1690,24 @@ const postMediaV1ProjectsByProjectIdVideosByVideoIdAudioTracksUpload = (options)
|
|
|
2391
1690
|
}
|
|
2392
1691
|
});
|
|
2393
1692
|
/**
|
|
2394
|
-
*
|
|
2395
|
-
|
|
2396
|
-
|
|
1693
|
+
* DeleteFeed
|
|
1694
|
+
*/
|
|
1695
|
+
const feedsV1FeedServiceDeleteFeed = (options) => (options.client ?? client).delete({
|
|
1696
|
+
url: "/feeds/v1/projects/{project_id}/feeds/{feed_id}",
|
|
1697
|
+
...options
|
|
1698
|
+
});
|
|
1699
|
+
/**
|
|
1700
|
+
* GetFeed
|
|
1701
|
+
*/
|
|
1702
|
+
const feedsV1FeedServiceGetFeed = (options) => (options.client ?? client).get({
|
|
1703
|
+
url: "/feeds/v1/projects/{project_id}/feeds/{feed_id}",
|
|
1704
|
+
...options
|
|
1705
|
+
});
|
|
1706
|
+
/**
|
|
1707
|
+
* UpdateFeed
|
|
2397
1708
|
*/
|
|
2398
|
-
const
|
|
2399
|
-
|
|
2400
|
-
name: "X-API-Key",
|
|
2401
|
-
type: "apiKey"
|
|
2402
|
-
}],
|
|
2403
|
-
url: "/media/v1/projects/{projectId}/videos/{videoId}/audio-tracks/upload/complete",
|
|
1709
|
+
const feedsV1FeedServiceUpdateFeed = (options) => (options.client ?? client).put({
|
|
1710
|
+
url: "/feeds/v1/projects/{project_id}/feeds/{feed_id}",
|
|
2404
1711
|
...options,
|
|
2405
1712
|
headers: {
|
|
2406
1713
|
"Content-Type": "application/json",
|
|
@@ -2408,42 +1715,21 @@ const postMediaV1ProjectsByProjectIdVideosByVideoIdAudioTracksUploadComplete = (
|
|
|
2408
1715
|
}
|
|
2409
1716
|
});
|
|
2410
1717
|
/**
|
|
2411
|
-
*
|
|
2412
|
-
*
|
|
2413
|
-
* Removes every chapter from a video.
|
|
1718
|
+
* MarkImageFailed
|
|
2414
1719
|
*/
|
|
2415
|
-
const
|
|
2416
|
-
|
|
2417
|
-
|
|
2418
|
-
|
|
2419
|
-
|
|
2420
|
-
|
|
2421
|
-
|
|
2422
|
-
});
|
|
2423
|
-
/**
|
|
2424
|
-
* Get video chapters
|
|
2425
|
-
*
|
|
2426
|
-
* Returns the chapters of a video.
|
|
2427
|
-
*/
|
|
2428
|
-
const getMediaV1ProjectsByProjectIdVideosByVideoIdChapters = (options) => (options.client ?? client).get({
|
|
2429
|
-
security: [{
|
|
2430
|
-
name: "X-API-Key",
|
|
2431
|
-
type: "apiKey"
|
|
2432
|
-
}],
|
|
2433
|
-
url: "/media/v1/projects/{projectId}/videos/{videoId}/chapters",
|
|
2434
|
-
...options
|
|
1720
|
+
const imagesV1ImageConversionServiceMarkImageFailed = (options) => (options.client ?? client).post({
|
|
1721
|
+
url: "/internal/images/mark-failed",
|
|
1722
|
+
...options,
|
|
1723
|
+
headers: {
|
|
1724
|
+
"Content-Type": "application/json",
|
|
1725
|
+
...options.headers
|
|
1726
|
+
}
|
|
2435
1727
|
});
|
|
2436
1728
|
/**
|
|
2437
|
-
*
|
|
2438
|
-
*
|
|
2439
|
-
* Replaces the chapters of a video.
|
|
1729
|
+
* MarkImageProcessed
|
|
2440
1730
|
*/
|
|
2441
|
-
const
|
|
2442
|
-
|
|
2443
|
-
name: "X-API-Key",
|
|
2444
|
-
type: "apiKey"
|
|
2445
|
-
}],
|
|
2446
|
-
url: "/media/v1/projects/{projectId}/videos/{videoId}/chapters",
|
|
1731
|
+
const imagesV1ImageConversionServiceMarkImageProcessed = (options) => (options.client ?? client).post({
|
|
1732
|
+
url: "/internal/images/mark-processed",
|
|
2447
1733
|
...options,
|
|
2448
1734
|
headers: {
|
|
2449
1735
|
"Content-Type": "application/json",
|
|
@@ -2451,81 +1737,49 @@ const putMediaV1ProjectsByProjectIdVideosByVideoIdChapters = (options) => (optio
|
|
|
2451
1737
|
}
|
|
2452
1738
|
});
|
|
2453
1739
|
/**
|
|
2454
|
-
*
|
|
2455
|
-
*
|
|
2456
|
-
* Removes one chapter identified by its start time (seconds).
|
|
1740
|
+
* TakeUnprocessedImage
|
|
2457
1741
|
*/
|
|
2458
|
-
const
|
|
2459
|
-
|
|
2460
|
-
name: "X-API-Key",
|
|
2461
|
-
type: "apiKey"
|
|
2462
|
-
}],
|
|
2463
|
-
url: "/media/v1/projects/{projectId}/videos/{videoId}/chapters/{startTimeSec}",
|
|
1742
|
+
const imagesV1ImageConversionServiceTakeUnprocessedImage = (options) => (options?.client ?? client).post({
|
|
1743
|
+
url: "/internal/images/take",
|
|
2464
1744
|
...options
|
|
2465
1745
|
});
|
|
2466
1746
|
/**
|
|
2467
|
-
*
|
|
2468
|
-
*
|
|
2469
|
-
* Deletes all subtitles for a video.
|
|
1747
|
+
* GetImage
|
|
2470
1748
|
*/
|
|
2471
|
-
const
|
|
2472
|
-
|
|
2473
|
-
name: "X-API-Key",
|
|
2474
|
-
type: "apiKey"
|
|
2475
|
-
}],
|
|
2476
|
-
url: "/media/v1/projects/{projectId}/videos/{videoId}/subtitles",
|
|
1749
|
+
const imagesV1ImageServiceGetImage = (options) => (options.client ?? client).get({
|
|
1750
|
+
url: "/media/v1/images/{image_id}",
|
|
2477
1751
|
...options
|
|
2478
1752
|
});
|
|
2479
1753
|
/**
|
|
2480
|
-
*
|
|
2481
|
-
*
|
|
2482
|
-
* Returns a video's subtitles within a project, including for private media. Requires project access.
|
|
1754
|
+
* ListImages
|
|
2483
1755
|
*/
|
|
2484
|
-
const
|
|
2485
|
-
|
|
2486
|
-
name: "X-API-Key",
|
|
2487
|
-
type: "apiKey"
|
|
2488
|
-
}],
|
|
2489
|
-
url: "/media/v1/projects/{projectId}/videos/{videoId}/subtitles",
|
|
1756
|
+
const imagesV1ImageServiceListImages = (options) => (options.client ?? client).get({
|
|
1757
|
+
url: "/media/v1/projects/{project_id}/images",
|
|
2490
1758
|
...options
|
|
2491
1759
|
});
|
|
2492
1760
|
/**
|
|
2493
|
-
*
|
|
2494
|
-
*
|
|
2495
|
-
* Deletes a single subtitle from a video.
|
|
1761
|
+
* CreateImageUpload
|
|
2496
1762
|
*/
|
|
2497
|
-
const
|
|
2498
|
-
|
|
2499
|
-
|
|
2500
|
-
|
|
2501
|
-
|
|
2502
|
-
|
|
2503
|
-
|
|
1763
|
+
const imagesV1ImageServiceCreateImageUpload = (options) => (options.client ?? client).post({
|
|
1764
|
+
url: "/media/v1/projects/{project_id}/images/upload",
|
|
1765
|
+
...options,
|
|
1766
|
+
headers: {
|
|
1767
|
+
"Content-Type": "application/json",
|
|
1768
|
+
...options.headers
|
|
1769
|
+
}
|
|
2504
1770
|
});
|
|
2505
1771
|
/**
|
|
2506
|
-
*
|
|
2507
|
-
*
|
|
2508
|
-
* Deletes all subtitles for a video in a given language.
|
|
1772
|
+
* DeleteImage
|
|
2509
1773
|
*/
|
|
2510
|
-
const
|
|
2511
|
-
|
|
2512
|
-
name: "X-API-Key",
|
|
2513
|
-
type: "apiKey"
|
|
2514
|
-
}],
|
|
2515
|
-
url: "/media/v1/projects/{projectId}/videos/{videoId}/subtitles/language/{lang}",
|
|
1774
|
+
const imagesV1ImageServiceDeleteImage = (options) => (options.client ?? client).delete({
|
|
1775
|
+
url: "/media/v1/projects/{project_id}/images/{image_id}",
|
|
2516
1776
|
...options
|
|
2517
1777
|
});
|
|
2518
1778
|
/**
|
|
2519
|
-
*
|
|
2520
|
-
*
|
|
2521
|
-
* Initiates one or more subtitle uploads for a video.
|
|
1779
|
+
* UpdateImageVisibility
|
|
2522
1780
|
*/
|
|
2523
|
-
const
|
|
2524
|
-
|
|
2525
|
-
name: "X-API-Key",
|
|
2526
|
-
type: "apiKey"
|
|
2527
|
-
}],
|
|
2528
|
-
url: "/media/v1/projects/{projectId}/videos/{videoId}/subtitles/upload",
|
|
1781
|
+
const imagesV1ImageServiceUpdateImageVisibility = (options) => (options.client ?? client).patch({
|
|
1782
|
+
url: "/media/v1/projects/{project_id}/images/{image_id}/visibility",
|
|
2529
1783
|
...options,
|
|
2530
1784
|
headers: {
|
|
2531
1785
|
"Content-Type": "application/json",
|
|
@@ -2533,16 +1787,10 @@ const postMediaV1ProjectsByProjectIdVideosByVideoIdSubtitlesUpload = (options) =
|
|
|
2533
1787
|
}
|
|
2534
1788
|
});
|
|
2535
1789
|
/**
|
|
2536
|
-
*
|
|
2537
|
-
*
|
|
2538
|
-
* Finalizes previously initiated subtitle uploads.
|
|
1790
|
+
* RefreshPlatformToken
|
|
2539
1791
|
*/
|
|
2540
|
-
const
|
|
2541
|
-
|
|
2542
|
-
name: "X-API-Key",
|
|
2543
|
-
type: "apiKey"
|
|
2544
|
-
}],
|
|
2545
|
-
url: "/media/v1/projects/{projectId}/videos/{videoId}/subtitles/upload/complete",
|
|
1792
|
+
const platformauthV1PlatformAuthServiceRefreshPlatformToken = (options) => (options.client ?? client).post({
|
|
1793
|
+
url: "/platform/auth/v1/refresh",
|
|
2546
1794
|
...options,
|
|
2547
1795
|
headers: {
|
|
2548
1796
|
"Content-Type": "application/json",
|
|
@@ -2550,47 +1798,49 @@ const postMediaV1ProjectsByProjectIdVideosByVideoIdSubtitlesUploadComplete = (op
|
|
|
2550
1798
|
}
|
|
2551
1799
|
});
|
|
2552
1800
|
/**
|
|
2553
|
-
*
|
|
2554
|
-
*
|
|
2555
|
-
* Replaces the thumbnail image for an existing video.
|
|
1801
|
+
* ExchangeAPIKey
|
|
2556
1802
|
*/
|
|
2557
|
-
const
|
|
2558
|
-
|
|
2559
|
-
security: [{
|
|
2560
|
-
name: "X-API-Key",
|
|
2561
|
-
type: "apiKey"
|
|
2562
|
-
}],
|
|
2563
|
-
url: "/media/v1/projects/{projectId}/videos/{videoId}/thumbnail",
|
|
1803
|
+
const platformauthV1PlatformAuthServiceExchangeApiKey = (options) => (options.client ?? client).post({
|
|
1804
|
+
url: "/platform/auth/v1/token",
|
|
2564
1805
|
...options,
|
|
2565
1806
|
headers: {
|
|
2566
|
-
"Content-Type":
|
|
1807
|
+
"Content-Type": "application/json",
|
|
2567
1808
|
...options.headers
|
|
2568
1809
|
}
|
|
2569
1810
|
});
|
|
2570
1811
|
/**
|
|
2571
|
-
*
|
|
2572
|
-
|
|
2573
|
-
|
|
1812
|
+
* ListPosts
|
|
1813
|
+
*/
|
|
1814
|
+
const postsV1PostServiceListPosts3 = (options) => (options.client ?? client).get({
|
|
1815
|
+
url: "/posts/v1/feeds/{feed_id}",
|
|
1816
|
+
...options
|
|
1817
|
+
});
|
|
1818
|
+
/**
|
|
1819
|
+
* ListPosts
|
|
2574
1820
|
*/
|
|
2575
|
-
const
|
|
2576
|
-
|
|
2577
|
-
name: "X-API-Key",
|
|
2578
|
-
type: "apiKey"
|
|
2579
|
-
}],
|
|
2580
|
-
url: "/media/v1/projects/{projectId}/videos/{videoId}/upload/complete",
|
|
1821
|
+
const postsV1PostServiceListPosts4 = (options) => (options.client ?? client).get({
|
|
1822
|
+
url: "/posts/v1/feeds/{feed_id}/creators/{creator_id}",
|
|
2581
1823
|
...options
|
|
2582
1824
|
});
|
|
2583
1825
|
/**
|
|
2584
|
-
*
|
|
2585
|
-
*
|
|
2586
|
-
* Updates a video's visibility (public, unlisted, or private). Requires project access.
|
|
1826
|
+
* GetPost
|
|
2587
1827
|
*/
|
|
2588
|
-
const
|
|
2589
|
-
|
|
2590
|
-
|
|
2591
|
-
|
|
2592
|
-
|
|
2593
|
-
|
|
1828
|
+
const postsV1PostServiceGetPost3 = (options) => (options.client ?? client).get({
|
|
1829
|
+
url: "/posts/v1/feeds/{feed_id}/{post_id}",
|
|
1830
|
+
...options
|
|
1831
|
+
});
|
|
1832
|
+
/**
|
|
1833
|
+
* ListPosts
|
|
1834
|
+
*/
|
|
1835
|
+
const postsV1PostServiceListPosts = (options) => (options.client ?? client).get({
|
|
1836
|
+
url: "/posts/v1/projects/{project_id}/feeds/{feed_id}/posts",
|
|
1837
|
+
...options
|
|
1838
|
+
});
|
|
1839
|
+
/**
|
|
1840
|
+
* CreatePost
|
|
1841
|
+
*/
|
|
1842
|
+
const postsV1PostServiceCreatePost = (options) => (options.client ?? client).post({
|
|
1843
|
+
url: "/posts/v1/projects/{project_id}/feeds/{feed_id}/posts",
|
|
2594
1844
|
...options,
|
|
2595
1845
|
headers: {
|
|
2596
1846
|
"Content-Type": "application/json",
|
|
@@ -2598,16 +1848,17 @@ const putMediaV1ProjectsByProjectIdVideosByVideoIdVisibility = (options) => (opt
|
|
|
2598
1848
|
}
|
|
2599
1849
|
});
|
|
2600
1850
|
/**
|
|
2601
|
-
*
|
|
2602
|
-
*
|
|
2603
|
-
* Initiates a video upload and returns upload details.
|
|
1851
|
+
* ListPosts
|
|
2604
1852
|
*/
|
|
2605
|
-
const
|
|
2606
|
-
|
|
2607
|
-
|
|
2608
|
-
|
|
2609
|
-
|
|
2610
|
-
|
|
1853
|
+
const postsV1PostServiceListPosts2 = (options) => (options.client ?? client).get({
|
|
1854
|
+
url: "/posts/v1/projects/{project_id}/feeds/{feed_id}/posts/creators/{creator_id}",
|
|
1855
|
+
...options
|
|
1856
|
+
});
|
|
1857
|
+
/**
|
|
1858
|
+
* CreatePostUpload
|
|
1859
|
+
*/
|
|
1860
|
+
const postsV1PostServiceCreatePostUpload = (options) => (options.client ?? client).post({
|
|
1861
|
+
url: "/posts/v1/projects/{project_id}/feeds/{feed_id}/posts/upload",
|
|
2611
1862
|
...options,
|
|
2612
1863
|
headers: {
|
|
2613
1864
|
"Content-Type": "application/json",
|
|
@@ -2615,56 +1866,45 @@ const postMediaV1ProjectsByProjectIdVideosUpload = (options) => (options.client
|
|
|
2615
1866
|
}
|
|
2616
1867
|
});
|
|
2617
1868
|
/**
|
|
2618
|
-
*
|
|
2619
|
-
|
|
2620
|
-
|
|
1869
|
+
* DeletePost
|
|
1870
|
+
*/
|
|
1871
|
+
const postsV1PostServiceDeletePost2 = (options) => (options.client ?? client).delete({
|
|
1872
|
+
url: "/posts/v1/projects/{project_id}/feeds/{feed_id}/posts/{post_id}",
|
|
1873
|
+
...options
|
|
1874
|
+
});
|
|
1875
|
+
/**
|
|
1876
|
+
* GetPost
|
|
2621
1877
|
*/
|
|
2622
|
-
const
|
|
2623
|
-
url: "/
|
|
1878
|
+
const postsV1PostServiceGetPost2 = (options) => (options.client ?? client).get({
|
|
1879
|
+
url: "/posts/v1/projects/{project_id}/feeds/{feed_id}/posts/{post_id}",
|
|
2624
1880
|
...options
|
|
2625
1881
|
});
|
|
2626
1882
|
/**
|
|
2627
|
-
*
|
|
2628
|
-
*
|
|
2629
|
-
* Returns the audio tracks associated with a video.
|
|
1883
|
+
* DeletePost
|
|
2630
1884
|
*/
|
|
2631
|
-
const
|
|
2632
|
-
url: "/
|
|
1885
|
+
const postsV1PostServiceDeletePost = (options) => (options.client ?? client).delete({
|
|
1886
|
+
url: "/posts/v1/projects/{project_id}/posts/{post_id}",
|
|
2633
1887
|
...options
|
|
2634
1888
|
});
|
|
2635
1889
|
/**
|
|
2636
|
-
*
|
|
2637
|
-
*
|
|
2638
|
-
* Returns the subtitles associated with a video.
|
|
1890
|
+
* GetPost
|
|
2639
1891
|
*/
|
|
2640
|
-
const
|
|
2641
|
-
url: "/
|
|
1892
|
+
const postsV1PostServiceGetPost = (options) => (options.client ?? client).get({
|
|
1893
|
+
url: "/posts/v1/projects/{project_id}/posts/{post_id}",
|
|
2642
1894
|
...options
|
|
2643
1895
|
});
|
|
2644
1896
|
/**
|
|
2645
|
-
*
|
|
2646
|
-
*
|
|
2647
|
-
* Get all projects for a specific organization
|
|
1897
|
+
* ListProjects
|
|
2648
1898
|
*/
|
|
2649
|
-
const
|
|
2650
|
-
|
|
2651
|
-
name: "X-API-Key",
|
|
2652
|
-
type: "apiKey"
|
|
2653
|
-
}],
|
|
2654
|
-
url: "/organization/{orgId}/projects",
|
|
1899
|
+
const projectV1ProjectServiceListProjects = (options) => (options.client ?? client).get({
|
|
1900
|
+
url: "/organizations/{org_id}/projects/v1",
|
|
2655
1901
|
...options
|
|
2656
1902
|
});
|
|
2657
1903
|
/**
|
|
2658
|
-
*
|
|
2659
|
-
*
|
|
2660
|
-
* Create a new project under the given organization with specified video quality
|
|
1904
|
+
* CreateProject
|
|
2661
1905
|
*/
|
|
2662
|
-
const
|
|
2663
|
-
|
|
2664
|
-
name: "X-API-Key",
|
|
2665
|
-
type: "apiKey"
|
|
2666
|
-
}],
|
|
2667
|
-
url: "/organization/{orgId}/projects",
|
|
1906
|
+
const projectV1ProjectServiceCreateProject = (options) => (options.client ?? client).post({
|
|
1907
|
+
url: "/organizations/{org_id}/projects/v1",
|
|
2668
1908
|
...options,
|
|
2669
1909
|
headers: {
|
|
2670
1910
|
"Content-Type": "application/json",
|
|
@@ -2672,55 +1912,31 @@ const createProjectsByOrgid = (options) => (options.client ?? client).post({
|
|
|
2672
1912
|
}
|
|
2673
1913
|
});
|
|
2674
1914
|
/**
|
|
2675
|
-
*
|
|
2676
|
-
*
|
|
2677
|
-
* Soft delete a project (marks it as deleted)
|
|
1915
|
+
* DeleteProject
|
|
2678
1916
|
*/
|
|
2679
|
-
const
|
|
2680
|
-
|
|
2681
|
-
name: "X-API-Key",
|
|
2682
|
-
type: "apiKey"
|
|
2683
|
-
}],
|
|
2684
|
-
url: "/organization/{orgId}/projects/{projectId}",
|
|
1917
|
+
const projectV1ProjectServiceDeleteProject = (options) => (options.client ?? client).delete({
|
|
1918
|
+
url: "/organizations/{org_id}/projects/v1/{project_id}",
|
|
2685
1919
|
...options
|
|
2686
1920
|
});
|
|
2687
1921
|
/**
|
|
2688
|
-
*
|
|
2689
|
-
*
|
|
2690
|
-
* Retrieve a specific project under an organization
|
|
1922
|
+
* GetProject
|
|
2691
1923
|
*/
|
|
2692
|
-
const
|
|
2693
|
-
|
|
2694
|
-
name: "X-API-Key",
|
|
2695
|
-
type: "apiKey"
|
|
2696
|
-
}],
|
|
2697
|
-
url: "/organization/{orgId}/projects/{projectId}",
|
|
1924
|
+
const projectV1ProjectServiceGetProject = (options) => (options.client ?? client).get({
|
|
1925
|
+
url: "/organizations/{org_id}/projects/v1/{project_id}",
|
|
2698
1926
|
...options
|
|
2699
1927
|
});
|
|
2700
1928
|
/**
|
|
2701
|
-
*
|
|
2702
|
-
*
|
|
2703
|
-
* Remove the custom domain from a specific project
|
|
1929
|
+
* RemoveCustomDomain
|
|
2704
1930
|
*/
|
|
2705
|
-
const
|
|
2706
|
-
|
|
2707
|
-
name: "X-API-Key",
|
|
2708
|
-
type: "apiKey"
|
|
2709
|
-
}],
|
|
2710
|
-
url: "/organization/{orgId}/projects/{projectId}/custom-domain",
|
|
1931
|
+
const projectV1ProjectServiceRemoveCustomDomain = (options) => (options.client ?? client).delete({
|
|
1932
|
+
url: "/organizations/{org_id}/projects/v1/{project_id}/custom-domain",
|
|
2711
1933
|
...options
|
|
2712
1934
|
});
|
|
2713
1935
|
/**
|
|
2714
|
-
*
|
|
2715
|
-
*
|
|
2716
|
-
* Set or update a custom domain for a specific project
|
|
1936
|
+
* SetCustomDomain
|
|
2717
1937
|
*/
|
|
2718
|
-
const
|
|
2719
|
-
|
|
2720
|
-
name: "X-API-Key",
|
|
2721
|
-
type: "apiKey"
|
|
2722
|
-
}],
|
|
2723
|
-
url: "/organization/{orgId}/projects/{projectId}/custom-domain",
|
|
1938
|
+
const projectV1ProjectServiceSetCustomDomain = (options) => (options.client ?? client).put({
|
|
1939
|
+
url: "/organizations/{org_id}/projects/v1/{project_id}/custom-domain",
|
|
2724
1940
|
...options,
|
|
2725
1941
|
headers: {
|
|
2726
1942
|
"Content-Type": "application/json",
|
|
@@ -2728,16 +1944,10 @@ const updateCustomDomainByProjectid = (options) => (options.client ?? client).pu
|
|
|
2728
1944
|
}
|
|
2729
1945
|
});
|
|
2730
1946
|
/**
|
|
2731
|
-
*
|
|
2732
|
-
*
|
|
2733
|
-
* Move a project from one organization to another (if user has access to both)
|
|
1947
|
+
* MoveProject
|
|
2734
1948
|
*/
|
|
2735
|
-
const
|
|
2736
|
-
|
|
2737
|
-
name: "X-API-Key",
|
|
2738
|
-
type: "apiKey"
|
|
2739
|
-
}],
|
|
2740
|
-
url: "/organization/{orgId}/projects/{projectId}/move",
|
|
1949
|
+
const projectV1ProjectServiceMoveProject = (options) => (options.client ?? client).post({
|
|
1950
|
+
url: "/organizations/{org_id}/projects/v1/{project_id}/move",
|
|
2741
1951
|
...options,
|
|
2742
1952
|
headers: {
|
|
2743
1953
|
"Content-Type": "application/json",
|
|
@@ -2745,16 +1955,10 @@ const createMoveByProjectid = (options) => (options.client ?? client).post({
|
|
|
2745
1955
|
}
|
|
2746
1956
|
});
|
|
2747
1957
|
/**
|
|
2748
|
-
*
|
|
2749
|
-
*
|
|
2750
|
-
* Update the name of a specific project
|
|
1958
|
+
* UpdateProjectName
|
|
2751
1959
|
*/
|
|
2752
|
-
const
|
|
2753
|
-
|
|
2754
|
-
name: "X-API-Key",
|
|
2755
|
-
type: "apiKey"
|
|
2756
|
-
}],
|
|
2757
|
-
url: "/organization/{orgId}/projects/{projectId}/name",
|
|
1960
|
+
const projectV1ProjectServiceUpdateProjectName = (options) => (options.client ?? client).patch({
|
|
1961
|
+
url: "/organizations/{org_id}/projects/v1/{project_id}/name",
|
|
2758
1962
|
...options,
|
|
2759
1963
|
headers: {
|
|
2760
1964
|
"Content-Type": "application/json",
|
|
@@ -2762,16 +1966,10 @@ const patchNameByProjectid = (options) => (options.client ?? client).patch({
|
|
|
2762
1966
|
}
|
|
2763
1967
|
});
|
|
2764
1968
|
/**
|
|
2765
|
-
*
|
|
2766
|
-
*
|
|
2767
|
-
* Update the default video quality setting for a project
|
|
1969
|
+
* UpdateVideoQuality
|
|
2768
1970
|
*/
|
|
2769
|
-
const
|
|
2770
|
-
|
|
2771
|
-
name: "X-API-Key",
|
|
2772
|
-
type: "apiKey"
|
|
2773
|
-
}],
|
|
2774
|
-
url: "/organization/{orgId}/projects/{projectId}/video-quality",
|
|
1971
|
+
const projectV1ProjectServiceUpdateVideoQuality = (options) => (options.client ?? client).patch({
|
|
1972
|
+
url: "/organizations/{org_id}/projects/v1/{project_id}/video-quality",
|
|
2775
1973
|
...options,
|
|
2776
1974
|
headers: {
|
|
2777
1975
|
"Content-Type": "application/json",
|
|
@@ -2779,29 +1977,24 @@ const patchVideoQualityByProjectid = (options) => (options.client ?? client).pat
|
|
|
2779
1977
|
}
|
|
2780
1978
|
});
|
|
2781
1979
|
/**
|
|
2782
|
-
*
|
|
2783
|
-
*
|
|
2784
|
-
* Get all API keys for a specific organization
|
|
1980
|
+
* DeleteAllAudioTracks
|
|
2785
1981
|
*/
|
|
2786
|
-
const
|
|
2787
|
-
|
|
2788
|
-
name: "X-API-Key",
|
|
2789
|
-
type: "apiKey"
|
|
2790
|
-
}],
|
|
2791
|
-
url: "/platform/api-keys",
|
|
1982
|
+
const videosV1AudioTrackServiceDeleteAllAudioTracks = (options) => (options.client ?? client).delete({
|
|
1983
|
+
url: "/media/v1/projects/{project_id}/videos/{video_id}/audio-tracks",
|
|
2792
1984
|
...options
|
|
2793
1985
|
});
|
|
2794
1986
|
/**
|
|
2795
|
-
*
|
|
2796
|
-
*
|
|
2797
|
-
* Create a new API key for a project in the authenticated organization
|
|
1987
|
+
* DeleteAudioTracksByLanguage
|
|
2798
1988
|
*/
|
|
2799
|
-
const
|
|
2800
|
-
|
|
2801
|
-
|
|
2802
|
-
|
|
2803
|
-
|
|
2804
|
-
|
|
1989
|
+
const videosV1AudioTrackServiceDeleteAudioTracksByLanguage = (options) => (options.client ?? client).delete({
|
|
1990
|
+
url: "/media/v1/projects/{project_id}/videos/{video_id}/audio-tracks/language/{language_code}",
|
|
1991
|
+
...options
|
|
1992
|
+
});
|
|
1993
|
+
/**
|
|
1994
|
+
* CreateAudioTrackUpload
|
|
1995
|
+
*/
|
|
1996
|
+
const videosV1AudioTrackServiceCreateAudioTrackUpload = (options) => (options.client ?? client).post({
|
|
1997
|
+
url: "/media/v1/projects/{project_id}/videos/{video_id}/audio-tracks/upload",
|
|
2805
1998
|
...options,
|
|
2806
1999
|
headers: {
|
|
2807
2000
|
"Content-Type": "application/json",
|
|
@@ -2809,81 +2002,45 @@ const createApiKeyByOrgid = (options) => (options.client ?? client).post({
|
|
|
2809
2002
|
}
|
|
2810
2003
|
});
|
|
2811
2004
|
/**
|
|
2812
|
-
*
|
|
2813
|
-
*
|
|
2814
|
-
* Delete an API key owned by the authenticated organization
|
|
2005
|
+
* DeleteAudioTrack
|
|
2815
2006
|
*/
|
|
2816
|
-
const
|
|
2817
|
-
|
|
2818
|
-
name: "X-API-Key",
|
|
2819
|
-
type: "apiKey"
|
|
2820
|
-
}],
|
|
2821
|
-
url: "/platform/api-keys/{keyId}",
|
|
2007
|
+
const videosV1AudioTrackServiceDeleteAudioTrack = (options) => (options.client ?? client).delete({
|
|
2008
|
+
url: "/media/v1/projects/{project_id}/videos/{video_id}/audio-tracks/{track_id}",
|
|
2822
2009
|
...options
|
|
2823
2010
|
});
|
|
2824
2011
|
/**
|
|
2825
|
-
*
|
|
2826
|
-
*
|
|
2827
|
-
* Rotate an API key, returning a new secret
|
|
2012
|
+
* ListAudioTracks
|
|
2828
2013
|
*/
|
|
2829
|
-
const
|
|
2830
|
-
|
|
2831
|
-
name: "X-API-Key",
|
|
2832
|
-
type: "apiKey"
|
|
2833
|
-
}],
|
|
2834
|
-
url: "/platform/api-keys/{keyId}/rotate",
|
|
2014
|
+
const videosV1AudioTrackServiceListAudioTracks = (options) => (options.client ?? client).get({
|
|
2015
|
+
url: "/media/v1/videos/{video_id}/audio-tracks",
|
|
2835
2016
|
...options
|
|
2836
2017
|
});
|
|
2837
2018
|
/**
|
|
2838
|
-
*
|
|
2839
|
-
*
|
|
2840
|
-
* Trades a refresh token for a fresh access/refresh pair.
|
|
2019
|
+
* UpdateVideoChapters
|
|
2841
2020
|
*/
|
|
2842
|
-
const
|
|
2843
|
-
url: "/
|
|
2844
|
-
...options
|
|
2845
|
-
headers: {
|
|
2846
|
-
"Content-Type": "application/json",
|
|
2847
|
-
...options.headers
|
|
2848
|
-
}
|
|
2021
|
+
const videosV1ChapterServiceUpdateVideoChapters = (options) => (options.client ?? client).delete({
|
|
2022
|
+
url: "/media/v1/projects/{project_id}/videos/{video_id}/chapters",
|
|
2023
|
+
...options
|
|
2849
2024
|
});
|
|
2850
2025
|
/**
|
|
2851
|
-
*
|
|
2852
|
-
*
|
|
2853
|
-
* Trades an API key (`<keyId>_<secret>`) for a short-lived platform access token plus a refresh token.
|
|
2026
|
+
* GetVideoChapters
|
|
2854
2027
|
*/
|
|
2855
|
-
const
|
|
2856
|
-
url: "/
|
|
2857
|
-
...options
|
|
2858
|
-
headers: {
|
|
2859
|
-
"Content-Type": "application/json",
|
|
2860
|
-
...options.headers
|
|
2861
|
-
}
|
|
2028
|
+
const videosV1ChapterServiceGetVideoChapters = (options) => (options.client ?? client).get({
|
|
2029
|
+
url: "/media/v1/projects/{project_id}/videos/{video_id}/chapters",
|
|
2030
|
+
...options
|
|
2862
2031
|
});
|
|
2863
2032
|
/**
|
|
2864
|
-
*
|
|
2865
|
-
*
|
|
2866
|
-
* List client credentials for the specified organization
|
|
2033
|
+
* DeleteVideoChapter
|
|
2867
2034
|
*/
|
|
2868
|
-
const
|
|
2869
|
-
|
|
2870
|
-
name: "X-API-Key",
|
|
2871
|
-
type: "apiKey"
|
|
2872
|
-
}],
|
|
2873
|
-
url: "/platform/clientauth/credentials",
|
|
2035
|
+
const videosV1ChapterServiceDeleteVideoChapter = (options) => (options.client ?? client).delete({
|
|
2036
|
+
url: "/media/v1/projects/{project_id}/videos/{video_id}/chapters/{start_time_sec}",
|
|
2874
2037
|
...options
|
|
2875
2038
|
});
|
|
2876
2039
|
/**
|
|
2877
|
-
*
|
|
2878
|
-
*
|
|
2879
|
-
* Create a new client credential for the authenticated organization
|
|
2040
|
+
* MarkVideoFailed
|
|
2880
2041
|
*/
|
|
2881
|
-
const
|
|
2882
|
-
|
|
2883
|
-
name: "X-API-Key",
|
|
2884
|
-
type: "apiKey"
|
|
2885
|
-
}],
|
|
2886
|
-
url: "/platform/clientauth/credentials",
|
|
2042
|
+
const videosV1VideoConversionServiceMarkVideoFailed = (options) => (options.client ?? client).post({
|
|
2043
|
+
url: "/internal/videos/mark-failed",
|
|
2887
2044
|
...options,
|
|
2888
2045
|
headers: {
|
|
2889
2046
|
"Content-Type": "application/json",
|
|
@@ -2891,25 +2048,10 @@ const createCredentialByOrgid = (options) => (options.client ?? client).post({
|
|
|
2891
2048
|
}
|
|
2892
2049
|
});
|
|
2893
2050
|
/**
|
|
2894
|
-
*
|
|
2895
|
-
*
|
|
2896
|
-
* Revoke a client credential owned by the authenticated organization
|
|
2051
|
+
* MarkVideoProcessed
|
|
2897
2052
|
*/
|
|
2898
|
-
const
|
|
2899
|
-
|
|
2900
|
-
name: "X-API-Key",
|
|
2901
|
-
type: "apiKey"
|
|
2902
|
-
}],
|
|
2903
|
-
url: "/platform/clientauth/credentials/{credentialId}/revoke",
|
|
2904
|
-
...options
|
|
2905
|
-
});
|
|
2906
|
-
/**
|
|
2907
|
-
* Mint client access token
|
|
2908
|
-
*
|
|
2909
|
-
* Exchange client_id/client_secret for a short-lived access token. The request subject is an opaque client-defined label and is not treated as authoritative user identity for authorization.
|
|
2910
|
-
*/
|
|
2911
|
-
const createToken = (options) => (options.client ?? client).post({
|
|
2912
|
-
url: "/platform/clientauth/token",
|
|
2053
|
+
const videosV1VideoConversionServiceMarkVideoProcessed = (options) => (options.client ?? client).post({
|
|
2054
|
+
url: "/internal/videos/mark-processed",
|
|
2913
2055
|
...options,
|
|
2914
2056
|
headers: {
|
|
2915
2057
|
"Content-Type": "application/json",
|
|
@@ -2917,56 +2059,31 @@ const createToken = (options) => (options.client ?? client).post({
|
|
|
2917
2059
|
}
|
|
2918
2060
|
});
|
|
2919
2061
|
/**
|
|
2920
|
-
*
|
|
2921
|
-
*
|
|
2922
|
-
* Public, unauthenticated listing of posts in a feed, with pagination.
|
|
2923
|
-
*/
|
|
2924
|
-
const listPublicPosts = (options) => (options.client ?? client).get({
|
|
2925
|
-
url: "/posts/v1/feeds/{feedId}",
|
|
2926
|
-
...options
|
|
2927
|
-
});
|
|
2928
|
-
/**
|
|
2929
|
-
* Get a post
|
|
2930
|
-
*
|
|
2931
|
-
* Public, unauthenticated retrieval of a single post by ID.
|
|
2062
|
+
* ListLanguages
|
|
2932
2063
|
*/
|
|
2933
|
-
const
|
|
2934
|
-
url: "/
|
|
2064
|
+
const videosV1LanguageServiceListLanguages = (options) => (options?.client ?? client).get({
|
|
2065
|
+
url: "/media/v1/languages",
|
|
2935
2066
|
...options
|
|
2936
2067
|
});
|
|
2937
2068
|
/**
|
|
2938
|
-
*
|
|
2939
|
-
*
|
|
2940
|
-
* Public, unauthenticated listing of posts in a feed by a specific creator, with pagination.
|
|
2069
|
+
* DeleteAllSubtitles
|
|
2941
2070
|
*/
|
|
2942
|
-
const
|
|
2943
|
-
url: "/
|
|
2071
|
+
const videosV1SubtitleServiceDeleteAllSubtitles = (options) => (options.client ?? client).delete({
|
|
2072
|
+
url: "/media/v1/projects/{project_id}/videos/{video_id}/subtitles",
|
|
2944
2073
|
...options
|
|
2945
2074
|
});
|
|
2946
2075
|
/**
|
|
2947
|
-
*
|
|
2948
|
-
*
|
|
2949
|
-
* List posts in a feed
|
|
2076
|
+
* DeleteSubtitlesByLanguage
|
|
2950
2077
|
*/
|
|
2951
|
-
const
|
|
2952
|
-
|
|
2953
|
-
name: "X-API-Key",
|
|
2954
|
-
type: "apiKey"
|
|
2955
|
-
}],
|
|
2956
|
-
url: "/posts/v1/projects/{projectId}/feeds/{feedId}/posts",
|
|
2078
|
+
const videosV1SubtitleServiceDeleteSubtitlesByLanguage = (options) => (options.client ?? client).delete({
|
|
2079
|
+
url: "/media/v1/projects/{project_id}/videos/{video_id}/subtitles/language/{language_code}",
|
|
2957
2080
|
...options
|
|
2958
2081
|
});
|
|
2959
2082
|
/**
|
|
2960
|
-
*
|
|
2961
|
-
*
|
|
2962
|
-
* Create a new post in a feed
|
|
2083
|
+
* CreateSubtitleUpload
|
|
2963
2084
|
*/
|
|
2964
|
-
const
|
|
2965
|
-
|
|
2966
|
-
name: "X-API-Key",
|
|
2967
|
-
type: "apiKey"
|
|
2968
|
-
}],
|
|
2969
|
-
url: "/posts/v1/projects/{projectId}/feeds/{feedId}/posts",
|
|
2085
|
+
const videosV1SubtitleServiceCreateSubtitleUpload = (options) => (options.client ?? client).post({
|
|
2086
|
+
url: "/media/v1/projects/{project_id}/videos/{video_id}/subtitles/upload",
|
|
2970
2087
|
...options,
|
|
2971
2088
|
headers: {
|
|
2972
2089
|
"Content-Type": "application/json",
|
|
@@ -2974,55 +2091,31 @@ const createPost = (options) => (options.client ?? client).post({
|
|
|
2974
2091
|
}
|
|
2975
2092
|
});
|
|
2976
2093
|
/**
|
|
2977
|
-
*
|
|
2978
|
-
*
|
|
2979
|
-
* Delete a post by ID
|
|
2094
|
+
* DeleteSubtitle
|
|
2980
2095
|
*/
|
|
2981
|
-
const
|
|
2982
|
-
|
|
2983
|
-
name: "X-API-Key",
|
|
2984
|
-
type: "apiKey"
|
|
2985
|
-
}],
|
|
2986
|
-
url: "/posts/v1/projects/{projectId}/feeds/{feedId}/posts/{postId}",
|
|
2096
|
+
const videosV1SubtitleServiceDeleteSubtitle = (options) => (options.client ?? client).delete({
|
|
2097
|
+
url: "/media/v1/projects/{project_id}/videos/{video_id}/subtitles/{subtitle_id}",
|
|
2987
2098
|
...options
|
|
2988
2099
|
});
|
|
2989
2100
|
/**
|
|
2990
|
-
*
|
|
2991
|
-
*
|
|
2992
|
-
* Get a single post by ID
|
|
2101
|
+
* ListSubtitles
|
|
2993
2102
|
*/
|
|
2994
|
-
const
|
|
2995
|
-
|
|
2996
|
-
name: "X-API-Key",
|
|
2997
|
-
type: "apiKey"
|
|
2998
|
-
}],
|
|
2999
|
-
url: "/posts/v1/projects/{projectId}/feeds/{feedId}/posts/{postId}",
|
|
2103
|
+
const videosV1SubtitleServiceListSubtitles = (options) => (options.client ?? client).get({
|
|
2104
|
+
url: "/media/v1/videos/{video_id}/subtitles",
|
|
3000
2105
|
...options
|
|
3001
2106
|
});
|
|
3002
2107
|
/**
|
|
3003
|
-
*
|
|
3004
|
-
*
|
|
3005
|
-
* List posts in a feed authored by a specific creator
|
|
2108
|
+
* ListVideos
|
|
3006
2109
|
*/
|
|
3007
|
-
const
|
|
3008
|
-
|
|
3009
|
-
name: "X-API-Key",
|
|
3010
|
-
type: "apiKey"
|
|
3011
|
-
}],
|
|
3012
|
-
url: "/posts/v1/projects/{projectId}/feeds/{feedId}/posts/creators/{creatorId}",
|
|
2110
|
+
const videosV1VideoServiceListVideos = (options) => (options.client ?? client).get({
|
|
2111
|
+
url: "/media/v1/projects/{project_id}/videos",
|
|
3013
2112
|
...options
|
|
3014
2113
|
});
|
|
3015
2114
|
/**
|
|
3016
|
-
*
|
|
3017
|
-
*
|
|
3018
|
-
* Finalize a media upload and publish the post
|
|
2115
|
+
* CreateVideoUpload
|
|
3019
2116
|
*/
|
|
3020
|
-
const
|
|
3021
|
-
|
|
3022
|
-
name: "X-API-Key",
|
|
3023
|
-
type: "apiKey"
|
|
3024
|
-
}],
|
|
3025
|
-
url: "/posts/v1/projects/{projectId}/feeds/{feedId}/posts/upload/complete",
|
|
2117
|
+
const videosV1VideoServiceCreateVideoUpload = (options) => (options.client ?? client).post({
|
|
2118
|
+
url: "/media/v1/projects/{project_id}/videos/upload",
|
|
3026
2119
|
...options,
|
|
3027
2120
|
headers: {
|
|
3028
2121
|
"Content-Type": "application/json",
|
|
@@ -3030,33 +2123,17 @@ const completePostUpload = (options) => (options.client ?? client).post({
|
|
|
3030
2123
|
}
|
|
3031
2124
|
});
|
|
3032
2125
|
/**
|
|
3033
|
-
*
|
|
3034
|
-
*
|
|
3035
|
-
* Begin a media upload and create a draft post
|
|
2126
|
+
* DeleteVideo
|
|
3036
2127
|
*/
|
|
3037
|
-
const
|
|
3038
|
-
|
|
3039
|
-
|
|
3040
|
-
type: "apiKey"
|
|
3041
|
-
}],
|
|
3042
|
-
url: "/posts/v1/projects/{projectId}/feeds/{feedId}/posts/upload/init",
|
|
3043
|
-
...options,
|
|
3044
|
-
headers: {
|
|
3045
|
-
"Content-Type": "application/json",
|
|
3046
|
-
...options.headers
|
|
3047
|
-
}
|
|
2128
|
+
const videosV1VideoServiceDeleteVideo = (options) => (options.client ?? client).delete({
|
|
2129
|
+
url: "/media/v1/projects/{project_id}/videos/{video_id}",
|
|
2130
|
+
...options
|
|
3048
2131
|
});
|
|
3049
2132
|
/**
|
|
3050
|
-
*
|
|
3051
|
-
*
|
|
3052
|
-
* Lists all feeds for the active project with pagination.
|
|
2133
|
+
* UpdateVideoVisibility
|
|
3053
2134
|
*/
|
|
3054
|
-
const
|
|
3055
|
-
|
|
3056
|
-
name: "X-API-Key",
|
|
3057
|
-
type: "apiKey"
|
|
3058
|
-
}],
|
|
3059
|
-
url: "/projects/{projectId}/feeds",
|
|
2135
|
+
const videosV1VideoServiceUpdateVideoVisibility = (options) => (options.client ?? client).patch({
|
|
2136
|
+
url: "/media/v1/projects/{project_id}/videos/{video_id}/visibility",
|
|
3060
2137
|
...options,
|
|
3061
2138
|
headers: {
|
|
3062
2139
|
"Content-Type": "application/json",
|
|
@@ -3064,100 +2141,247 @@ const listFeeds = (options) => (options.client ?? client).get({
|
|
|
3064
2141
|
}
|
|
3065
2142
|
});
|
|
3066
2143
|
/**
|
|
3067
|
-
*
|
|
3068
|
-
*
|
|
3069
|
-
* Creates a new feed under the active project.
|
|
2144
|
+
* GetVideo
|
|
3070
2145
|
*/
|
|
3071
|
-
const
|
|
3072
|
-
|
|
3073
|
-
|
|
3074
|
-
type: "apiKey"
|
|
3075
|
-
}],
|
|
3076
|
-
url: "/projects/{projectId}/feeds",
|
|
3077
|
-
...options,
|
|
3078
|
-
headers: {
|
|
3079
|
-
"Content-Type": "application/json",
|
|
3080
|
-
...options.headers
|
|
3081
|
-
}
|
|
2146
|
+
const videosV1VideoServiceGetVideo = (options) => (options.client ?? client).get({
|
|
2147
|
+
url: "/media/v1/videos/{video_id}",
|
|
2148
|
+
...options
|
|
3082
2149
|
});
|
|
2150
|
+
|
|
2151
|
+
//#endregion
|
|
2152
|
+
//#region src/auth/constants.ts
|
|
2153
|
+
/**
|
|
2154
|
+
* Global constants for the auth library
|
|
2155
|
+
*/
|
|
2156
|
+
/** Prefix for all cookies and storage keys */
|
|
2157
|
+
const GLOBAL_PREFIX = "__rixl_auth";
|
|
2158
|
+
/** OAuth state storage key prefix */
|
|
2159
|
+
const STATE_STORAGE_KEY_PREFIX = "__rixl_auth_state_";
|
|
2160
|
+
/** Social connect storage key prefix */
|
|
2161
|
+
const SOCIAL_CONNECT_KEY_PREFIX = "__rixl_auth_social_connect_";
|
|
2162
|
+
/** HTTP Status codes - only codes actually used in the library */
|
|
2163
|
+
const HTTP_STATUS = {
|
|
2164
|
+
ACCEPTED: 202,
|
|
2165
|
+
BAD_REQUEST: 400,
|
|
2166
|
+
UNAUTHORIZED: 401,
|
|
2167
|
+
FORBIDDEN: 403,
|
|
2168
|
+
NOT_FOUND: 404,
|
|
2169
|
+
CONFLICT: 409,
|
|
2170
|
+
TOO_MANY_REQUESTS: 429,
|
|
2171
|
+
INTERNAL_SERVER_ERROR: 500
|
|
2172
|
+
};
|
|
2173
|
+
|
|
2174
|
+
//#endregion
|
|
2175
|
+
//#region src/auth/state.ts
|
|
2176
|
+
const storagePath = (provider) => STATE_STORAGE_KEY_PREFIX + provider;
|
|
3083
2177
|
/**
|
|
3084
|
-
*
|
|
3085
|
-
*
|
|
3086
|
-
*
|
|
2178
|
+
* Retrieves and validates the OAuth state from session storage
|
|
2179
|
+
* @param provider The provider identifier
|
|
2180
|
+
* @param state The state value to validate
|
|
2181
|
+
* @returns True if the state is valid, false otherwise
|
|
3087
2182
|
*/
|
|
3088
|
-
|
|
3089
|
-
|
|
3090
|
-
|
|
3091
|
-
type: "apiKey"
|
|
3092
|
-
}],
|
|
3093
|
-
url: "/projects/{projectId}/feeds/{feedId}",
|
|
3094
|
-
...options,
|
|
3095
|
-
headers: {
|
|
3096
|
-
"Content-Type": "application/json",
|
|
3097
|
-
...options.headers
|
|
3098
|
-
}
|
|
3099
|
-
});
|
|
2183
|
+
function validateOAuthState(provider, state) {
|
|
2184
|
+
return sessionStorage.getItem(storagePath(provider)) === state;
|
|
2185
|
+
}
|
|
3100
2186
|
/**
|
|
3101
|
-
*
|
|
3102
|
-
*
|
|
3103
|
-
*
|
|
2187
|
+
* Gets or Generates a complete state parameter for OAuth requests
|
|
2188
|
+
* @param provider The identifier for the provider (e.g., 'google', 'apple')
|
|
2189
|
+
* @returns A state string containing the provider identifier and random data
|
|
3104
2190
|
*/
|
|
3105
|
-
|
|
3106
|
-
|
|
3107
|
-
|
|
3108
|
-
|
|
3109
|
-
}
|
|
3110
|
-
|
|
3111
|
-
|
|
3112
|
-
|
|
3113
|
-
|
|
3114
|
-
|
|
3115
|
-
|
|
3116
|
-
});
|
|
2191
|
+
function getOauthState(provider) {
|
|
2192
|
+
return sessionStorage.getItem(storagePath(provider)) ?? generateOauthState(provider);
|
|
2193
|
+
}
|
|
2194
|
+
function generateOauthState(provider) {
|
|
2195
|
+
const state = `${provider}_${crypto.randomUUID()}`;
|
|
2196
|
+
sessionStorage.setItem(storagePath(provider), state);
|
|
2197
|
+
return state;
|
|
2198
|
+
}
|
|
2199
|
+
|
|
2200
|
+
//#endregion
|
|
2201
|
+
//#region src/auth/providers/oauth.ts
|
|
3117
2202
|
/**
|
|
3118
|
-
*
|
|
3119
|
-
*
|
|
3120
|
-
* Updates an existing feed in the active project.
|
|
2203
|
+
* Generic OAuth provider configuration and utilities
|
|
2204
|
+
* This file contains shared logic for all OAuth providers to reduce duplication
|
|
3121
2205
|
*/
|
|
3122
|
-
|
|
3123
|
-
|
|
3124
|
-
|
|
3125
|
-
|
|
3126
|
-
|
|
3127
|
-
|
|
3128
|
-
|
|
3129
|
-
|
|
3130
|
-
|
|
3131
|
-
|
|
2206
|
+
/**
|
|
2207
|
+
* Builds an OAuth URL from configuration and metadata
|
|
2208
|
+
*/
|
|
2209
|
+
const buildOAuthUrl = (config, metadata, state) => {
|
|
2210
|
+
const params = new URLSearchParams({
|
|
2211
|
+
client_id: config.clientId,
|
|
2212
|
+
redirect_uri: window.location.origin,
|
|
2213
|
+
response_type: metadata.responseType,
|
|
2214
|
+
scope: [...metadata.defaultScopes, ...config.scope ? [config.scope] : []].join(" "),
|
|
2215
|
+
state
|
|
2216
|
+
});
|
|
2217
|
+
if (metadata.responseType.includes("id_token")) params.set("nonce", state);
|
|
2218
|
+
if (metadata.responseMode) params.set("response_mode", metadata.responseMode);
|
|
2219
|
+
if (metadata.additionalParams) Object.entries(metadata.additionalParams).forEach(([key, value]) => {
|
|
2220
|
+
params.set(key, value);
|
|
2221
|
+
});
|
|
2222
|
+
return `${metadata.authBaseUrl}?${params.toString()}`;
|
|
2223
|
+
};
|
|
2224
|
+
/**
|
|
2225
|
+
* Warning helper for unconfigured providers
|
|
2226
|
+
*/
|
|
2227
|
+
const warnProviderNotConfigured = (providerName) => {
|
|
2228
|
+
console.warn(`${providerName} provider not configured. Check initClient method.`);
|
|
2229
|
+
};
|
|
2230
|
+
/**
|
|
2231
|
+
* Creates a reusable OAuth provider with configuration and URL management
|
|
2232
|
+
* This factory reduces code duplication across OAuth providers
|
|
2233
|
+
*/
|
|
2234
|
+
const createOAuthProvider = ({ provider, metadata }) => {
|
|
2235
|
+
const config = atom(null);
|
|
2236
|
+
const authUrl = atom(null);
|
|
2237
|
+
const updateAuthUrl = () => {
|
|
2238
|
+
const currentConfig = config.get();
|
|
2239
|
+
if (!currentConfig) {
|
|
2240
|
+
warnProviderNotConfigured(metadata.name);
|
|
2241
|
+
authUrl.set(null);
|
|
2242
|
+
return;
|
|
2243
|
+
}
|
|
2244
|
+
const state = getOauthState(provider);
|
|
2245
|
+
const url = buildOAuthUrl(currentConfig, metadata, state);
|
|
2246
|
+
authUrl.set(url);
|
|
2247
|
+
};
|
|
2248
|
+
return {
|
|
2249
|
+
config,
|
|
2250
|
+
authUrl,
|
|
2251
|
+
updateAuthUrl
|
|
2252
|
+
};
|
|
2253
|
+
};
|
|
2254
|
+
|
|
2255
|
+
//#endregion
|
|
2256
|
+
//#region src/auth/providers/google.ts
|
|
2257
|
+
const googleProvider = createOAuthProvider({
|
|
2258
|
+
provider: "google",
|
|
2259
|
+
metadata: {
|
|
2260
|
+
name: "Google",
|
|
2261
|
+
authBaseUrl: "https://accounts.google.com/o/oauth2/v2/auth",
|
|
2262
|
+
defaultScopes: [
|
|
2263
|
+
"openid",
|
|
2264
|
+
"https://www.googleapis.com/auth/userinfo.email",
|
|
2265
|
+
"https://www.googleapis.com/auth/userinfo.profile"
|
|
2266
|
+
],
|
|
2267
|
+
responseType: "id_token"
|
|
2268
|
+
}
|
|
2269
|
+
});
|
|
2270
|
+
const googleConfig = googleProvider.config;
|
|
2271
|
+
const googleAuthUrl = googleProvider.authUrl;
|
|
2272
|
+
const updateGoogleAuthUrl = googleProvider.updateAuthUrl;
|
|
2273
|
+
|
|
2274
|
+
//#endregion
|
|
2275
|
+
//#region src/auth/providers/microsoft.ts
|
|
2276
|
+
const microsoftProvider = createOAuthProvider({
|
|
2277
|
+
provider: "microsoft",
|
|
2278
|
+
metadata: {
|
|
2279
|
+
name: "Microsoft",
|
|
2280
|
+
authBaseUrl: "https://login.microsoftonline.com/common/oauth2/v2.0/authorize",
|
|
2281
|
+
defaultScopes: [
|
|
2282
|
+
"openid",
|
|
2283
|
+
"profile",
|
|
2284
|
+
"email"
|
|
2285
|
+
],
|
|
2286
|
+
responseType: "id_token",
|
|
2287
|
+
responseMode: "fragment"
|
|
2288
|
+
}
|
|
2289
|
+
});
|
|
2290
|
+
const microsoftConfig = microsoftProvider.config;
|
|
2291
|
+
const microsoftAuthUrl = microsoftProvider.authUrl;
|
|
2292
|
+
const updateMicrosoftAuthUrl = microsoftProvider.updateAuthUrl;
|
|
2293
|
+
|
|
2294
|
+
//#endregion
|
|
2295
|
+
//#region src/auth/providers/apple.ts
|
|
2296
|
+
const appleProvider = createOAuthProvider({
|
|
2297
|
+
provider: "apple",
|
|
2298
|
+
metadata: {
|
|
2299
|
+
name: "Apple",
|
|
2300
|
+
authBaseUrl: "https://appleid.apple.com/auth/authorize",
|
|
2301
|
+
defaultScopes: ["openid"],
|
|
2302
|
+
responseType: "code id_token",
|
|
2303
|
+
responseMode: "fragment"
|
|
2304
|
+
}
|
|
2305
|
+
});
|
|
2306
|
+
const appleConfig = appleProvider.config;
|
|
2307
|
+
const appleAuthUrl = appleProvider.authUrl;
|
|
2308
|
+
const updateAppleAuthUrl = appleProvider.updateAuthUrl;
|
|
2309
|
+
|
|
2310
|
+
//#endregion
|
|
2311
|
+
//#region src/auth/providers/telegram.ts
|
|
2312
|
+
const telegramConfig = atom(null);
|
|
2313
|
+
const telegramAuthUrl = atom(null);
|
|
2314
|
+
/**
|
|
2315
|
+
* Updates the Telegram authentication URL using the configured settings
|
|
2316
|
+
*/
|
|
2317
|
+
function updateTelegramAuthUrl() {
|
|
2318
|
+
const config = telegramConfig.get();
|
|
2319
|
+
if (!config) {
|
|
2320
|
+
warnProviderNotConfigured("Telegram");
|
|
2321
|
+
telegramAuthUrl.set(null);
|
|
2322
|
+
return;
|
|
3132
2323
|
}
|
|
3133
|
-
})
|
|
2324
|
+
const url = `https://oauth.telegram.org/auth?bot_id=${encodeURIComponent(config.botId)}&origin=${encodeURIComponent(window.location.origin)}&return_to=${encodeURIComponent(window.location.origin + location.pathname)}`;
|
|
2325
|
+
telegramAuthUrl.set(url);
|
|
2326
|
+
}
|
|
3134
2327
|
|
|
3135
2328
|
//#endregion
|
|
3136
|
-
//#region src/
|
|
3137
|
-
const
|
|
3138
|
-
|
|
3139
|
-
|
|
3140
|
-
|
|
3141
|
-
|
|
3142
|
-
|
|
3143
|
-
|
|
3144
|
-
|
|
3145
|
-
|
|
3146
|
-
|
|
3147
|
-
|
|
3148
|
-
|
|
3149
|
-
|
|
3150
|
-
|
|
3151
|
-
|
|
3152
|
-
|
|
2329
|
+
//#region src/auth/url.ts
|
|
2330
|
+
const urlParams = new URLSearchParams(typeof window !== "undefined" ? fromURL(window.location.href) : "");
|
|
2331
|
+
function fromURL(urlString) {
|
|
2332
|
+
return urlString.replace(/^[^?#]*[?#]/, "").replace(/[?#]/g, "&");
|
|
2333
|
+
}
|
|
2334
|
+
|
|
2335
|
+
//#endregion
|
|
2336
|
+
//#region src/auth/providers/utils.ts
|
|
2337
|
+
/**
|
|
2338
|
+
* Extracts the provider identifier from a state parameter
|
|
2339
|
+
* @param state The state parameter from the OAuth redirect
|
|
2340
|
+
* @returns The provider identifier or undefined if not found
|
|
2341
|
+
*/
|
|
2342
|
+
function extractProviderFromState(state) {
|
|
2343
|
+
const parts = state.split("_");
|
|
2344
|
+
if (parts.length >= 1) return parts[0];
|
|
2345
|
+
}
|
|
2346
|
+
const OAUTH_PROVIDERS = [
|
|
2347
|
+
"google",
|
|
2348
|
+
"apple",
|
|
2349
|
+
"microsoft"
|
|
2350
|
+
];
|
|
2351
|
+
/**
|
|
2352
|
+
* Detects the authentication provider from URL parameters
|
|
2353
|
+
* @returns The detected authentication provider or undefined if none detected
|
|
2354
|
+
*/
|
|
2355
|
+
function detectProvider() {
|
|
2356
|
+
if (urlParams.has("tgWebAppData")) return "tgWebAppData";
|
|
2357
|
+
if (urlParams.has("tgAuthResult")) return "tgAuthResult";
|
|
2358
|
+
const id_token = urlParams.get("id_token");
|
|
2359
|
+
const state = urlParams.get("state");
|
|
2360
|
+
if (id_token && state) {
|
|
2361
|
+
const providerFromState = extractProviderFromState(state);
|
|
2362
|
+
return OAUTH_PROVIDERS.find((p) => providerFromState === p && validateOAuthState(p, state));
|
|
3153
2363
|
}
|
|
3154
|
-
}
|
|
2364
|
+
}
|
|
2365
|
+
/**
|
|
2366
|
+
* Gets the authentication token or code from the URL based on the provider
|
|
2367
|
+
* @param provider The authentication provider
|
|
2368
|
+
* @returns The token or code, or undefined if not found
|
|
2369
|
+
*/
|
|
2370
|
+
function getProviderToken(provider) {
|
|
2371
|
+
if (provider === "tgWebAppData" || provider === "tgAuthResult") return urlParams.get(provider) || void 0;
|
|
2372
|
+
if (provider === "google" || provider === "apple" || provider === "microsoft") return urlParams.get("id_token") || void 0;
|
|
2373
|
+
}
|
|
3155
2374
|
|
|
3156
2375
|
//#endregion
|
|
3157
2376
|
//#region src/auth/api/refresh-tokens.ts
|
|
3158
|
-
const refreshTokens = async (provider, token) => {
|
|
3159
|
-
const { data } = await
|
|
3160
|
-
|
|
2377
|
+
const refreshTokens = async (provider, token, options) => {
|
|
2378
|
+
const { data } = await authV1TokenServiceRefreshToken({
|
|
2379
|
+
body: {
|
|
2380
|
+
token_type: provider,
|
|
2381
|
+
refresh_token: token,
|
|
2382
|
+
country_code: options?.countryCode,
|
|
2383
|
+
origin: options?.origin
|
|
2384
|
+
},
|
|
3161
2385
|
throwOnError: true
|
|
3162
2386
|
});
|
|
3163
2387
|
return data;
|
|
@@ -3424,16 +2648,6 @@ expireAt.subscribe((value) => setStoreCookie("expireAt", value));
|
|
|
3424
2648
|
requiresAction.subscribe((value) => setStoreCookie("requiresAction", value));
|
|
3425
2649
|
limitedAccessToken.subscribe((value) => setStoreCookie("limitedAccessToken", value));
|
|
3426
2650
|
|
|
3427
|
-
//#endregion
|
|
3428
|
-
//#region src/auth/auth/logout.ts
|
|
3429
|
-
const logout = async () => {
|
|
3430
|
-
try {
|
|
3431
|
-
await postAuthV1Logout({ throwOnError: true });
|
|
3432
|
-
} catch {} finally {
|
|
3433
|
-
removeTokens();
|
|
3434
|
-
}
|
|
3435
|
-
};
|
|
3436
|
-
|
|
3437
2651
|
//#endregion
|
|
3438
2652
|
//#region src/auth/api/types.ts
|
|
3439
2653
|
/**
|
|
@@ -3468,6 +2682,9 @@ const apiURL = atom("");
|
|
|
3468
2682
|
|
|
3469
2683
|
//#endregion
|
|
3470
2684
|
//#region src/auth/api/sdk-client.ts
|
|
2685
|
+
function isWireErrorBody(error) {
|
|
2686
|
+
return typeof error === "object" && error !== null;
|
|
2687
|
+
}
|
|
3471
2688
|
let configured = false;
|
|
3472
2689
|
function configureSdkClient() {
|
|
3473
2690
|
if (configured) return;
|
|
@@ -3478,10 +2695,17 @@ function configureSdkClient() {
|
|
|
3478
2695
|
});
|
|
3479
2696
|
client.interceptors.request.use(async (request) => {
|
|
3480
2697
|
if (request.headers.has("Authorization")) return request;
|
|
2698
|
+
if (new URL(request.url).pathname.endsWith("/auth/v1/token")) return request;
|
|
3481
2699
|
const token = await getToken();
|
|
3482
2700
|
if (token) request.headers.set("Authorization", `Bearer ${token}`);
|
|
3483
2701
|
return request;
|
|
3484
2702
|
});
|
|
2703
|
+
client.interceptors.error.use((error, response, request) => {
|
|
2704
|
+
if (error instanceof Error) return error;
|
|
2705
|
+
const body = isWireErrorBody(error) ? error : void 0;
|
|
2706
|
+
const status = response?.status ?? body?.code ?? 0;
|
|
2707
|
+
return new ApiError(body?.error || body?.details || (typeof error === "string" ? error : "Request failed"), status, request ? new URL(request.url).pathname : "", error);
|
|
2708
|
+
});
|
|
3485
2709
|
}
|
|
3486
2710
|
|
|
3487
2711
|
//#endregion
|
|
@@ -3554,6 +2778,17 @@ const apiCall = async (fn, errorMap = {}) => {
|
|
|
3554
2778
|
}
|
|
3555
2779
|
};
|
|
3556
2780
|
|
|
2781
|
+
//#endregion
|
|
2782
|
+
//#region src/auth/api/tokens.ts
|
|
2783
|
+
function persistTokens(data) {
|
|
2784
|
+
const tokens = data ?? {};
|
|
2785
|
+
if (tokens.access_token && tokens.refresh_token && tokens.expires_in) {
|
|
2786
|
+
setTokens(tokens.access_token, tokens.refresh_token, Number(tokens.expires_in));
|
|
2787
|
+
return true;
|
|
2788
|
+
}
|
|
2789
|
+
return false;
|
|
2790
|
+
}
|
|
2791
|
+
|
|
3557
2792
|
//#endregion
|
|
3558
2793
|
//#region src/auth/validation/base.ts
|
|
3559
2794
|
/**
|
|
@@ -3596,8 +2831,13 @@ const DomainSchema = v.pipe(v.string("Domain must be text"), v.trim(), v.toLower
|
|
|
3596
2831
|
//#endregion
|
|
3597
2832
|
//#region src/auth/validation/auth.ts
|
|
3598
2833
|
const EmailAuthRequestSchema = v.object({
|
|
2834
|
+
email: EmailSchema,
|
|
2835
|
+
password: PasswordSchema
|
|
2836
|
+
});
|
|
2837
|
+
const RegisterRequestSchema = v.object({
|
|
3599
2838
|
email: EmailSchema,
|
|
3600
2839
|
password: PasswordSchema,
|
|
2840
|
+
country_code: v.optional(v.string()),
|
|
3601
2841
|
subscribe_to_blog: v.optional(v.boolean())
|
|
3602
2842
|
});
|
|
3603
2843
|
const ResetPasswordRequestSchema = v.object({
|
|
@@ -3630,28 +2870,63 @@ const VerifyOTPCodeSchema = v.object({ code: v.pipe(v.string("OTP code must be t
|
|
|
3630
2870
|
|
|
3631
2871
|
//#endregion
|
|
3632
2872
|
//#region src/auth/social/socialConnections.ts
|
|
2873
|
+
const PROVIDER_TO_PROTO = {
|
|
2874
|
+
google: "EXTERNAL_ACCOUNT_PROVIDER_GOOGLE",
|
|
2875
|
+
apple: "EXTERNAL_ACCOUNT_PROVIDER_APPLE",
|
|
2876
|
+
microsoft: "EXTERNAL_ACCOUNT_PROVIDER_MICROSOFT",
|
|
2877
|
+
facebook: "EXTERNAL_ACCOUNT_PROVIDER_FACEBOOK",
|
|
2878
|
+
telegram: "EXTERNAL_ACCOUNT_PROVIDER_TELEGRAM"
|
|
2879
|
+
};
|
|
2880
|
+
const PROVIDER_FROM_PROTO = {
|
|
2881
|
+
EXTERNAL_ACCOUNT_PROVIDER_GOOGLE: "google",
|
|
2882
|
+
EXTERNAL_ACCOUNT_PROVIDER_APPLE: "apple",
|
|
2883
|
+
EXTERNAL_ACCOUNT_PROVIDER_MICROSOFT: "microsoft",
|
|
2884
|
+
EXTERNAL_ACCOUNT_PROVIDER_FACEBOOK: "facebook",
|
|
2885
|
+
EXTERNAL_ACCOUNT_PROVIDER_TELEGRAM: "telegram"
|
|
2886
|
+
};
|
|
2887
|
+
const normalizeProviderType = (provider) => provider === "tgAuthResult" || provider === "tgWebAppData" ? "telegram" : provider;
|
|
2888
|
+
const toProtoProvider = (provider) => {
|
|
2889
|
+
const proto = PROVIDER_TO_PROTO[provider];
|
|
2890
|
+
if (!proto) throw new Error(`Unknown provider: ${provider}`);
|
|
2891
|
+
return proto;
|
|
2892
|
+
};
|
|
3633
2893
|
const listSocials = async () => {
|
|
3634
2894
|
return apiCall(async () => {
|
|
3635
|
-
const { data } = await
|
|
3636
|
-
return data.providers ?? []
|
|
2895
|
+
const { data } = await authV1ProvidersServiceListProviders({ throwOnError: true });
|
|
2896
|
+
return (data.providers ?? []).flatMap((p) => {
|
|
2897
|
+
const provider = p.provider ? PROVIDER_FROM_PROTO[p.provider] : void 0;
|
|
2898
|
+
if (!provider) return [];
|
|
2899
|
+
return [{
|
|
2900
|
+
provider,
|
|
2901
|
+
username: p.username,
|
|
2902
|
+
first_name: p.first_name,
|
|
2903
|
+
last_name: p.last_name,
|
|
2904
|
+
email_address: p.email_address,
|
|
2905
|
+
image_url: p.image_url
|
|
2906
|
+
}];
|
|
2907
|
+
});
|
|
3637
2908
|
}, { [HTTP_STATUS.UNAUTHORIZED]: () => /* @__PURE__ */ new Error("User is not authorized to list providers!") });
|
|
3638
2909
|
};
|
|
3639
2910
|
const connectSocialInternal = async (provider, token) => {
|
|
3640
2911
|
return apiCall(async () => {
|
|
3641
|
-
const
|
|
3642
|
-
|
|
3643
|
-
|
|
3644
|
-
|
|
3645
|
-
|
|
2912
|
+
const requestBody = validateInput(ConnectProviderSchema, {
|
|
2913
|
+
provider,
|
|
2914
|
+
token
|
|
2915
|
+
});
|
|
2916
|
+
const { data } = await authV1ProvidersServiceConnectProvider({
|
|
2917
|
+
body: {
|
|
2918
|
+
provider: toProtoProvider(normalizeProviderType(requestBody.provider)),
|
|
2919
|
+
token: requestBody.token
|
|
2920
|
+
},
|
|
3646
2921
|
throwOnError: true
|
|
3647
2922
|
});
|
|
3648
|
-
|
|
2923
|
+
persistTokens(data);
|
|
3649
2924
|
}, { [HTTP_STATUS.UNAUTHORIZED]: () => /* @__PURE__ */ new Error("User is not authorized to connect provider!") });
|
|
3650
2925
|
};
|
|
3651
|
-
const disconnectSocial = async (
|
|
2926
|
+
const disconnectSocial = async (provider) => {
|
|
3652
2927
|
return apiCall(async () => {
|
|
3653
|
-
await
|
|
3654
|
-
path: { provider:
|
|
2928
|
+
await authV1ProvidersServiceDisconnectProvider({
|
|
2929
|
+
path: { provider: toProtoProvider(provider) },
|
|
3655
2930
|
throwOnError: true
|
|
3656
2931
|
});
|
|
3657
2932
|
}, {
|
|
@@ -3685,7 +2960,6 @@ const setLoginRedirectUrl = (url) => {
|
|
|
3685
2960
|
|
|
3686
2961
|
//#endregion
|
|
3687
2962
|
//#region src/auth/init.ts
|
|
3688
|
-
var init_exports = /* @__PURE__ */ __exportAll({ initClient: () => initClient });
|
|
3689
2963
|
/**
|
|
3690
2964
|
* Initializes the authentication client with the provided configuration
|
|
3691
2965
|
* @param config The authentication client configuration
|
|
@@ -3705,8 +2979,7 @@ const initConfig = async (config) => {
|
|
|
3705
2979
|
setTokenRefreshFunction(async () => {
|
|
3706
2980
|
const currentRefreshToken = refreshToken.get();
|
|
3707
2981
|
if (currentRefreshToken) {
|
|
3708
|
-
const
|
|
3709
|
-
const result = await refreshTokens(AuthProvider.BEARER, currentRefreshToken);
|
|
2982
|
+
const result = await refreshTokens("Bearer", currentRefreshToken);
|
|
3710
2983
|
if (result && !("requires_action" in result)) setTokens(result.access_token, result.refresh_token, result.expires_in);
|
|
3711
2984
|
return getToken();
|
|
3712
2985
|
}
|
|
@@ -3771,7 +3044,6 @@ const initPage = async () => {
|
|
|
3771
3044
|
if (!provider) return void 0;
|
|
3772
3045
|
const token = getProviderToken(provider);
|
|
3773
3046
|
if (!token) return void 0;
|
|
3774
|
-
if (refreshToken.get()) return void 0;
|
|
3775
3047
|
try {
|
|
3776
3048
|
await exchangeProviderToken(provider, token);
|
|
3777
3049
|
} catch (error) {
|
|
@@ -3791,6 +3063,37 @@ const initSocials = async () => {
|
|
|
3791
3063
|
}
|
|
3792
3064
|
};
|
|
3793
3065
|
|
|
3066
|
+
//#endregion
|
|
3067
|
+
//#region src/connect.ts
|
|
3068
|
+
const connect = async (config) => {
|
|
3069
|
+
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
|
+
});
|
|
3074
|
+
if (config.auth) return initClient({
|
|
3075
|
+
apiUrl: config.baseUrl,
|
|
3076
|
+
loginRedirectUrl: config.auth.loginRedirectUrl,
|
|
3077
|
+
googleProvider: config.auth.google,
|
|
3078
|
+
appleProvider: config.auth.apple,
|
|
3079
|
+
microsoftProvider: config.auth.microsoft,
|
|
3080
|
+
telegramProvider: config.auth.telegram
|
|
3081
|
+
});
|
|
3082
|
+
};
|
|
3083
|
+
|
|
3084
|
+
//#endregion
|
|
3085
|
+
//#region src/auth/auth/logout.ts
|
|
3086
|
+
const logout = async () => {
|
|
3087
|
+
try {
|
|
3088
|
+
await authV1TokenServiceLogout({
|
|
3089
|
+
body: { token: refreshToken.get() },
|
|
3090
|
+
throwOnError: true
|
|
3091
|
+
});
|
|
3092
|
+
} catch {} finally {
|
|
3093
|
+
removeTokens();
|
|
3094
|
+
}
|
|
3095
|
+
};
|
|
3096
|
+
|
|
3794
3097
|
//#endregion
|
|
3795
3098
|
//#region src/auth/membership/types.ts
|
|
3796
3099
|
let MembershipRole = /* @__PURE__ */ function(MembershipRole) {
|
|
@@ -3808,34 +3111,116 @@ let MembershipState = /* @__PURE__ */ function(MembershipState) {
|
|
|
3808
3111
|
return MembershipState;
|
|
3809
3112
|
}({});
|
|
3810
3113
|
|
|
3114
|
+
//#endregion
|
|
3115
|
+
//#region src/auth/membership/mappers.ts
|
|
3116
|
+
const ROLE_FROM_PROTO = {
|
|
3117
|
+
MEMBERSHIP_ROLE_UNSPECIFIED: "member",
|
|
3118
|
+
MEMBERSHIP_ROLE_OWNER: "owner",
|
|
3119
|
+
MEMBERSHIP_ROLE_ADMIN: "admin",
|
|
3120
|
+
MEMBERSHIP_ROLE_MEMBER: "member"
|
|
3121
|
+
};
|
|
3122
|
+
const STATE_FROM_PROTO = {
|
|
3123
|
+
MEMBERSHIP_STATE_UNSPECIFIED: "pending",
|
|
3124
|
+
MEMBERSHIP_STATE_ACTIVE: "accepted",
|
|
3125
|
+
MEMBERSHIP_STATE_SUSPENDED: "pending",
|
|
3126
|
+
MEMBERSHIP_STATE_LEFT: "declined",
|
|
3127
|
+
MEMBERSHIP_STATE_REMOVED: "declined"
|
|
3128
|
+
};
|
|
3129
|
+
const APPLICATION_STATE_FROM_PROTO = {
|
|
3130
|
+
MEMBERSHIP_APPLICATION_STATE_UNSPECIFIED: "pending",
|
|
3131
|
+
MEMBERSHIP_APPLICATION_STATE_PENDING: "pending",
|
|
3132
|
+
MEMBERSHIP_APPLICATION_STATE_APPROVED: "accepted",
|
|
3133
|
+
MEMBERSHIP_APPLICATION_STATE_DECLINED: "declined",
|
|
3134
|
+
MEMBERSHIP_APPLICATION_STATE_CANCELLED: "declined"
|
|
3135
|
+
};
|
|
3136
|
+
function toRole(role) {
|
|
3137
|
+
return ROLE_FROM_PROTO[role ?? "MEMBERSHIP_ROLE_UNSPECIFIED"];
|
|
3138
|
+
}
|
|
3139
|
+
function toState(state) {
|
|
3140
|
+
return STATE_FROM_PROTO[state ?? "MEMBERSHIP_STATE_UNSPECIFIED"];
|
|
3141
|
+
}
|
|
3142
|
+
function toApplicationState(state) {
|
|
3143
|
+
return APPLICATION_STATE_FROM_PROTO[state ?? "MEMBERSHIP_APPLICATION_STATE_UNSPECIFIED"];
|
|
3144
|
+
}
|
|
3145
|
+
function toMembership(m) {
|
|
3146
|
+
return {
|
|
3147
|
+
id: m.id ?? "",
|
|
3148
|
+
user_id: m.user_id ?? "",
|
|
3149
|
+
org_id: m.org_id ?? "",
|
|
3150
|
+
role: toRole(m.role),
|
|
3151
|
+
state: toState(m.state),
|
|
3152
|
+
joined_at: m.joined_at,
|
|
3153
|
+
organization_username: m.organization_username ?? "",
|
|
3154
|
+
organization_first_name: m.organization_first_name ?? "",
|
|
3155
|
+
organization_last_name: m.organization_last_name ?? ""
|
|
3156
|
+
};
|
|
3157
|
+
}
|
|
3158
|
+
function toMembershipApplication(m) {
|
|
3159
|
+
return {
|
|
3160
|
+
id: m.id ?? "",
|
|
3161
|
+
user_id: m.user_id ?? "",
|
|
3162
|
+
org_id: m.org_id ?? "",
|
|
3163
|
+
role: toRole(m.role),
|
|
3164
|
+
state: toApplicationState(m.state),
|
|
3165
|
+
organization_username: m.organization_username ?? "",
|
|
3166
|
+
organization_first_name: m.organization_first_name ?? "",
|
|
3167
|
+
organization_last_name: m.organization_last_name ?? "",
|
|
3168
|
+
created_at: m.created_at,
|
|
3169
|
+
decided_at: m.decided_at,
|
|
3170
|
+
invitation_expires_at: m.invitation_expires_at
|
|
3171
|
+
};
|
|
3172
|
+
}
|
|
3173
|
+
function toMember(m) {
|
|
3174
|
+
return {
|
|
3175
|
+
id: m.id ?? "",
|
|
3176
|
+
user_id: m.user_id ?? "",
|
|
3177
|
+
org_id: m.org_id ?? "",
|
|
3178
|
+
role: toRole(m.role),
|
|
3179
|
+
state: toState(m.state),
|
|
3180
|
+
joined_at: m.joined_at,
|
|
3181
|
+
username: m.username ?? "",
|
|
3182
|
+
first_name: m.first_name ?? "",
|
|
3183
|
+
last_name: m.last_name ?? "",
|
|
3184
|
+
invitation_expires_at: m.invitation_expires_at
|
|
3185
|
+
};
|
|
3186
|
+
}
|
|
3187
|
+
|
|
3811
3188
|
//#endregion
|
|
3812
3189
|
//#region src/auth/membership/list.ts
|
|
3813
3190
|
const listActiveMemberships = async (paginationParams) => {
|
|
3814
3191
|
return apiCall(async () => {
|
|
3815
|
-
const { data } = await
|
|
3816
|
-
query:
|
|
3192
|
+
const { data } = await authV1MembershipServiceListMemberships({
|
|
3193
|
+
query: {
|
|
3194
|
+
state: "MEMBERSHIP_STATE_ACTIVE",
|
|
3195
|
+
limit: 25,
|
|
3196
|
+
...paginationParams
|
|
3197
|
+
},
|
|
3817
3198
|
throwOnError: true
|
|
3818
3199
|
});
|
|
3819
|
-
return data.memberships || [];
|
|
3200
|
+
return (data.memberships || []).map(toMembership);
|
|
3820
3201
|
}, { [HTTP_STATUS.UNAUTHORIZED]: () => /* @__PURE__ */ new Error("User is not authorized to list memberships!") });
|
|
3821
3202
|
};
|
|
3822
3203
|
const listPendingMemberships = async (paginationParams) => {
|
|
3823
3204
|
return apiCall(async () => {
|
|
3824
|
-
const { data } = await
|
|
3825
|
-
query:
|
|
3205
|
+
const { data } = await authV1MembershipServiceListMembershipApplications({
|
|
3206
|
+
query: {
|
|
3207
|
+
state: "MEMBERSHIP_APPLICATION_STATE_PENDING",
|
|
3208
|
+
limit: 25,
|
|
3209
|
+
...paginationParams
|
|
3210
|
+
},
|
|
3826
3211
|
throwOnError: true
|
|
3827
3212
|
});
|
|
3828
|
-
return data.
|
|
3829
|
-
}, { [HTTP_STATUS.UNAUTHORIZED]: () => /* @__PURE__ */ new Error("User is not authorized to list
|
|
3213
|
+
return (data.applications || []).map(toMembershipApplication);
|
|
3214
|
+
}, { [HTTP_STATUS.UNAUTHORIZED]: () => /* @__PURE__ */ new Error("User is not authorized to list membership applications!") });
|
|
3830
3215
|
};
|
|
3831
3216
|
const listOrganizationMembers = async (orgId, paginationParams) => {
|
|
3832
3217
|
return apiCall(async () => {
|
|
3833
|
-
const { data } = await
|
|
3834
|
-
path: { orgId },
|
|
3218
|
+
const { data } = await authV1MembershipServiceListOrganizationMembers({
|
|
3219
|
+
path: { "user.org_id": orgId },
|
|
3835
3220
|
query: paginationParams,
|
|
3836
3221
|
throwOnError: true
|
|
3837
3222
|
});
|
|
3838
|
-
return data.members || [];
|
|
3223
|
+
return (data.members || []).map(toMember);
|
|
3839
3224
|
}, { [HTTP_STATUS.UNAUTHORIZED]: () => /* @__PURE__ */ new Error("User is not authorized to list organization members!") });
|
|
3840
3225
|
};
|
|
3841
3226
|
|
|
@@ -3858,15 +3243,26 @@ const ResendInviteSchema = v.object({ user_id: v.pipe(v.string("User ID must be
|
|
|
3858
3243
|
|
|
3859
3244
|
//#endregion
|
|
3860
3245
|
//#region src/auth/membership/invite.ts
|
|
3246
|
+
const ROLE_TO_PROTO$1 = {
|
|
3247
|
+
admin: "MEMBERSHIP_ROLE_ADMIN",
|
|
3248
|
+
member: "MEMBERSHIP_ROLE_MEMBER"
|
|
3249
|
+
};
|
|
3250
|
+
const STATE_TO_PROTO = {
|
|
3251
|
+
accepted: "MEMBERSHIP_APPLICATION_STATE_APPROVED",
|
|
3252
|
+
declined: "MEMBERSHIP_APPLICATION_STATE_DECLINED"
|
|
3253
|
+
};
|
|
3861
3254
|
const inviteMember = async (orgId, username, role) => {
|
|
3862
3255
|
return apiCall(async () => {
|
|
3863
|
-
const
|
|
3256
|
+
const validated = validateInput(InviteMemberSchema, {
|
|
3864
3257
|
username,
|
|
3865
3258
|
role
|
|
3866
3259
|
});
|
|
3867
|
-
await
|
|
3868
|
-
path: { orgId },
|
|
3869
|
-
body:
|
|
3260
|
+
await authV1MembershipServiceInviteMember({
|
|
3261
|
+
path: { "user.org_id": orgId },
|
|
3262
|
+
body: {
|
|
3263
|
+
username: validated.username,
|
|
3264
|
+
role: ROLE_TO_PROTO$1[validated.role]
|
|
3265
|
+
},
|
|
3870
3266
|
throwOnError: true
|
|
3871
3267
|
});
|
|
3872
3268
|
}, {
|
|
@@ -3877,10 +3273,10 @@ const inviteMember = async (orgId, username, role) => {
|
|
|
3877
3273
|
};
|
|
3878
3274
|
const resendMemberInvite = async (orgId, userId) => {
|
|
3879
3275
|
return apiCall(async () => {
|
|
3880
|
-
|
|
3881
|
-
await
|
|
3882
|
-
path: { orgId },
|
|
3883
|
-
body:
|
|
3276
|
+
validateInput(ResendInviteSchema, { user_id: userId });
|
|
3277
|
+
await authV1MembershipServiceResendInvitation({
|
|
3278
|
+
path: { "user.org_id": orgId },
|
|
3279
|
+
body: { user_id: userId },
|
|
3884
3280
|
throwOnError: true
|
|
3885
3281
|
});
|
|
3886
3282
|
}, {
|
|
@@ -3891,10 +3287,10 @@ const resendMemberInvite = async (orgId, userId) => {
|
|
|
3891
3287
|
};
|
|
3892
3288
|
const respondToInvitation = async (orgId, state) => {
|
|
3893
3289
|
return apiCall(async () => {
|
|
3894
|
-
const
|
|
3895
|
-
await
|
|
3896
|
-
path: { orgId },
|
|
3897
|
-
body:
|
|
3290
|
+
const validated = validateInput(AcceptDeclineMembershipSchema, { state });
|
|
3291
|
+
await authV1MembershipServiceUpdateMembershipState({
|
|
3292
|
+
path: { "user.org_id": orgId },
|
|
3293
|
+
body: { state: STATE_TO_PROTO[validated.state] },
|
|
3898
3294
|
throwOnError: true
|
|
3899
3295
|
});
|
|
3900
3296
|
}, {
|
|
@@ -3905,11 +3301,11 @@ const respondToInvitation = async (orgId, state) => {
|
|
|
3905
3301
|
const publicRespondToInvitation = async (token, state) => {
|
|
3906
3302
|
return apiCall(async () => {
|
|
3907
3303
|
validateInput(PublicInviteResponseSchema, { state });
|
|
3908
|
-
if (state === "accept") await
|
|
3304
|
+
if (state === "accept") await authV1MembershipServiceAcceptInvitation({
|
|
3909
3305
|
path: { token },
|
|
3910
3306
|
throwOnError: true
|
|
3911
3307
|
});
|
|
3912
|
-
else await
|
|
3308
|
+
else await authV1MembershipServiceDeclineInvitation({
|
|
3913
3309
|
path: { token },
|
|
3914
3310
|
throwOnError: true
|
|
3915
3311
|
});
|
|
@@ -3918,10 +3314,14 @@ const publicRespondToInvitation = async (token, state) => {
|
|
|
3918
3314
|
|
|
3919
3315
|
//#endregion
|
|
3920
3316
|
//#region src/auth/membership/manage.ts
|
|
3317
|
+
const ROLE_TO_PROTO = {
|
|
3318
|
+
admin: "MEMBERSHIP_ROLE_ADMIN",
|
|
3319
|
+
member: "MEMBERSHIP_ROLE_MEMBER"
|
|
3320
|
+
};
|
|
3921
3321
|
const updateActiveMembership = async (orgId) => {
|
|
3922
3322
|
return apiCall(async () => {
|
|
3923
|
-
await
|
|
3924
|
-
|
|
3323
|
+
await authV1MembershipServiceUpdateActiveMembership({
|
|
3324
|
+
body: { user: { org_id: orgId } },
|
|
3925
3325
|
throwOnError: true
|
|
3926
3326
|
});
|
|
3927
3327
|
accessToken.set(void 0);
|
|
@@ -3931,13 +3331,13 @@ const updateActiveMembership = async (orgId) => {
|
|
|
3931
3331
|
};
|
|
3932
3332
|
const updateMemberRole = async (orgId, userId, role) => {
|
|
3933
3333
|
return apiCall(async () => {
|
|
3934
|
-
const
|
|
3935
|
-
await
|
|
3334
|
+
const validated = validateInput(UpdateMemberRoleSchema, { role });
|
|
3335
|
+
await authV1MembershipServiceUpdateMemberRole({
|
|
3936
3336
|
path: {
|
|
3937
|
-
orgId,
|
|
3938
|
-
userId
|
|
3337
|
+
"user.org_id": orgId,
|
|
3338
|
+
user_id: userId
|
|
3939
3339
|
},
|
|
3940
|
-
body:
|
|
3340
|
+
body: { role: ROLE_TO_PROTO[validated.role] },
|
|
3941
3341
|
throwOnError: true
|
|
3942
3342
|
});
|
|
3943
3343
|
}, {
|
|
@@ -3948,10 +3348,10 @@ const updateMemberRole = async (orgId, userId, role) => {
|
|
|
3948
3348
|
};
|
|
3949
3349
|
const deleteMember = async (orgId, userId) => {
|
|
3950
3350
|
return apiCall(async () => {
|
|
3951
|
-
await
|
|
3351
|
+
await authV1MembershipServiceRemoveMember({
|
|
3952
3352
|
path: {
|
|
3953
|
-
orgId,
|
|
3954
|
-
userId
|
|
3353
|
+
"user.org_id": orgId,
|
|
3354
|
+
user_id: userId
|
|
3955
3355
|
},
|
|
3956
3356
|
throwOnError: true
|
|
3957
3357
|
});
|
|
@@ -3963,8 +3363,8 @@ const deleteMember = async (orgId, userId) => {
|
|
|
3963
3363
|
};
|
|
3964
3364
|
const leaveOrganization = async (orgId) => {
|
|
3965
3365
|
return apiCall(async () => {
|
|
3966
|
-
await
|
|
3967
|
-
path: { orgId },
|
|
3366
|
+
await authV1MembershipServiceLeaveOrganization({
|
|
3367
|
+
path: { org_id: orgId },
|
|
3968
3368
|
throwOnError: true
|
|
3969
3369
|
});
|
|
3970
3370
|
}, {
|
|
@@ -3987,9 +3387,29 @@ const UpdateNameSchema = v.object({ full_name: NameSchema });
|
|
|
3987
3387
|
|
|
3988
3388
|
//#endregion
|
|
3989
3389
|
//#region src/auth/user.ts
|
|
3390
|
+
const getUserInfo = async (userId) => {
|
|
3391
|
+
return apiCall(async () => {
|
|
3392
|
+
const { data } = await authV1UserServiceGetUserInfo({
|
|
3393
|
+
query: userId ? { user_id: userId } : void 0,
|
|
3394
|
+
throwOnError: true
|
|
3395
|
+
});
|
|
3396
|
+
return {
|
|
3397
|
+
id: data.id ?? "",
|
|
3398
|
+
username: data.username ?? "",
|
|
3399
|
+
email: data.email ?? "",
|
|
3400
|
+
email_verified: data.email_verified ?? false,
|
|
3401
|
+
first_name: data.first_name ?? "",
|
|
3402
|
+
last_name: data.last_name ?? "",
|
|
3403
|
+
image_url: data.image_url ?? "",
|
|
3404
|
+
language_code: data.language_code ?? "",
|
|
3405
|
+
country_code: data.country_code ?? "",
|
|
3406
|
+
active_org_id: data.active_org_id ?? ""
|
|
3407
|
+
};
|
|
3408
|
+
}, { [HTTP_STATUS.UNAUTHORIZED]: () => /* @__PURE__ */ new Error("Token is missing or invalid; user is not authenticated.") });
|
|
3409
|
+
};
|
|
3990
3410
|
const updateFullName = async (fullName) => {
|
|
3991
3411
|
return apiCall(async () => {
|
|
3992
|
-
await
|
|
3412
|
+
await authV1UserServiceUpdateName({
|
|
3993
3413
|
body: validateInput(UpdateNameSchema, { full_name: fullName }),
|
|
3994
3414
|
throwOnError: true
|
|
3995
3415
|
});
|
|
@@ -4001,7 +3421,7 @@ const updateFullName = async (fullName) => {
|
|
|
4001
3421
|
};
|
|
4002
3422
|
const updateUsername = async (username) => {
|
|
4003
3423
|
return apiCall(async () => {
|
|
4004
|
-
await
|
|
3424
|
+
await authV1UserServiceUpdateUsername({
|
|
4005
3425
|
body: validateInput(UpdateUsernameSchema, { username }),
|
|
4006
3426
|
throwOnError: true
|
|
4007
3427
|
});
|
|
@@ -4014,17 +3434,16 @@ const updateUsername = async (username) => {
|
|
|
4014
3434
|
};
|
|
4015
3435
|
const getOTPStatus = async () => {
|
|
4016
3436
|
return apiCall(async () => {
|
|
4017
|
-
const { data } = await
|
|
3437
|
+
const { data } = await authV1OtpServiceGetOtpStatus({ throwOnError: true });
|
|
4018
3438
|
return {
|
|
4019
3439
|
is_setup: data.is_setup ?? false,
|
|
4020
|
-
created_at: data.created_at
|
|
4021
|
-
message: data.message
|
|
3440
|
+
created_at: data.created_at
|
|
4022
3441
|
};
|
|
4023
3442
|
}, { [HTTP_STATUS.UNAUTHORIZED]: () => /* @__PURE__ */ new Error("Token is missing or invalid; user is not authenticated.") });
|
|
4024
3443
|
};
|
|
4025
3444
|
const setupUserOTP = async () => {
|
|
4026
3445
|
return apiCall(async () => {
|
|
4027
|
-
const { data } = await
|
|
3446
|
+
const { data } = await authV1OtpServiceSetupOtp({ throwOnError: true });
|
|
4028
3447
|
return {
|
|
4029
3448
|
qrCodeUrl: data.qr_code_url || "",
|
|
4030
3449
|
secret: data.secret || ""
|
|
@@ -4033,11 +3452,11 @@ const setupUserOTP = async () => {
|
|
|
4033
3452
|
};
|
|
4034
3453
|
const verifyUserOTP = async (code) => {
|
|
4035
3454
|
return apiCall(async () => {
|
|
4036
|
-
const { data } = await
|
|
3455
|
+
const { data } = await authV1OtpServiceVerifyOtp({
|
|
4037
3456
|
body: validateInput(VerifyOTPCodeSchema, { code }),
|
|
4038
3457
|
throwOnError: true
|
|
4039
3458
|
});
|
|
4040
|
-
|
|
3459
|
+
persistTokens(data);
|
|
4041
3460
|
}, {
|
|
4042
3461
|
[HTTP_STATUS.BAD_REQUEST]: () => /* @__PURE__ */ new Error("Invalid request format"),
|
|
4043
3462
|
[HTTP_STATUS.UNAUTHORIZED]: () => /* @__PURE__ */ new Error("Token is missing or invalid; user is not authenticated.")
|
|
@@ -4045,7 +3464,7 @@ const verifyUserOTP = async (code) => {
|
|
|
4045
3464
|
};
|
|
4046
3465
|
const deleteUserOTP = async () => {
|
|
4047
3466
|
return apiCall(async () => {
|
|
4048
|
-
await
|
|
3467
|
+
await authV1OtpServiceDeleteOtp({ throwOnError: true });
|
|
4049
3468
|
}, { [HTTP_STATUS.UNAUTHORIZED]: () => /* @__PURE__ */ new Error("Token is missing or invalid; user is not authenticated.") });
|
|
4050
3469
|
};
|
|
4051
3470
|
|
|
@@ -4054,8 +3473,8 @@ const deleteUserOTP = async () => {
|
|
|
4054
3473
|
const updateOrgName = async (fullName, orgId) => {
|
|
4055
3474
|
return apiCall(async () => {
|
|
4056
3475
|
const requestBody = validateInput(UpdateNameSchema, { full_name: fullName });
|
|
4057
|
-
await
|
|
4058
|
-
path: { orgId },
|
|
3476
|
+
await authV1MembershipServiceUpdateOrgName({
|
|
3477
|
+
path: { "user.org_id": orgId },
|
|
4059
3478
|
body: requestBody,
|
|
4060
3479
|
throwOnError: true
|
|
4061
3480
|
});
|
|
@@ -4067,8 +3486,8 @@ const updateOrgName = async (fullName, orgId) => {
|
|
|
4067
3486
|
const updateOrgUsername = async (username, orgId) => {
|
|
4068
3487
|
return apiCall(async () => {
|
|
4069
3488
|
const requestBody = validateInput(UpdateUsernameSchema, { username });
|
|
4070
|
-
await
|
|
4071
|
-
path: { orgId },
|
|
3489
|
+
await authV1MembershipServiceUpdateOrgUsername({
|
|
3490
|
+
path: { "user.org_id": orgId },
|
|
4072
3491
|
body: requestBody,
|
|
4073
3492
|
throwOnError: true
|
|
4074
3493
|
});
|
|
@@ -4088,7 +3507,7 @@ const loginWithEmail = async (email, password) => {
|
|
|
4088
3507
|
password
|
|
4089
3508
|
});
|
|
4090
3509
|
try {
|
|
4091
|
-
const { data } = await
|
|
3510
|
+
const { data } = await authV1EmailServiceLogin({
|
|
4092
3511
|
body: validatedInput,
|
|
4093
3512
|
throwOnError: true
|
|
4094
3513
|
});
|
|
@@ -4103,34 +3522,26 @@ const loginWithEmail = async (email, password) => {
|
|
|
4103
3522
|
};
|
|
4104
3523
|
const verifyTOTPForLogin = async (code, session_id) => {
|
|
4105
3524
|
return apiCall(async () => {
|
|
4106
|
-
const { data } = await
|
|
3525
|
+
const { data } = await authV1OtpServiceVerifyTotpForLogin({
|
|
4107
3526
|
body: validateInput(LoginOTPVerifyRequestSchema, {
|
|
4108
3527
|
code,
|
|
4109
3528
|
session_id
|
|
4110
3529
|
}),
|
|
4111
3530
|
throwOnError: true
|
|
4112
3531
|
});
|
|
4113
|
-
|
|
3532
|
+
persistTokens(data);
|
|
4114
3533
|
}, { [HTTP_STATUS.UNAUTHORIZED]: () => /* @__PURE__ */ new Error("Invalid or expired TOTP code") });
|
|
4115
3534
|
};
|
|
4116
3535
|
function handleLoginResponse(data, email) {
|
|
4117
3536
|
switch (data.status) {
|
|
4118
3537
|
case "ok":
|
|
4119
|
-
|
|
3538
|
+
persistTokens(data);
|
|
4120
3539
|
return;
|
|
4121
|
-
case "2fa_required": {
|
|
4122
|
-
const response = data;
|
|
4123
|
-
return {
|
|
4124
|
-
session_id: response.session_id,
|
|
4125
|
-
email,
|
|
4126
|
-
authentication: response.authentication,
|
|
4127
|
-
passkey_options: response.passkey_options
|
|
4128
|
-
};
|
|
4129
|
-
}
|
|
4130
|
-
case "otp_required": return {
|
|
3540
|
+
case "2fa_required": return {
|
|
4131
3541
|
session_id: data.session_id,
|
|
4132
3542
|
email,
|
|
4133
|
-
authentication:
|
|
3543
|
+
authentication: data.authentication,
|
|
3544
|
+
passkey_options: data.passkey_options
|
|
4134
3545
|
};
|
|
4135
3546
|
case "email_not_verified": return {
|
|
4136
3547
|
error_code: "email_not_verified",
|
|
@@ -4141,18 +3552,20 @@ function handleLoginResponse(data, email) {
|
|
|
4141
3552
|
}
|
|
4142
3553
|
}
|
|
4143
3554
|
function handleLoginError(error, email) {
|
|
4144
|
-
|
|
4145
|
-
|
|
3555
|
+
const body = error instanceof ApiError ? error.data : error;
|
|
3556
|
+
if (isApiErrorBody(body)) {
|
|
3557
|
+
if (body.error === "email_not_verified") return {
|
|
4146
3558
|
error_code: "email_not_verified",
|
|
4147
|
-
message:
|
|
3559
|
+
message: body.details || "Email not verified",
|
|
4148
3560
|
email
|
|
4149
3561
|
};
|
|
4150
|
-
if (
|
|
3562
|
+
if (body.error === "provider_conflict") return {
|
|
4151
3563
|
error_code: "provider_conflict",
|
|
4152
|
-
message:
|
|
3564
|
+
message: body.details || "Email registered with different provider",
|
|
4153
3565
|
email
|
|
4154
3566
|
};
|
|
4155
|
-
|
|
3567
|
+
if (error instanceof ApiError) throw error;
|
|
3568
|
+
throw new ApiError(body.error || "Login failed", body.code || 500, "/auth/v1/login", body);
|
|
4156
3569
|
}
|
|
4157
3570
|
throw error;
|
|
4158
3571
|
}
|
|
@@ -4162,12 +3575,13 @@ function isApiErrorBody(error) {
|
|
|
4162
3575
|
|
|
4163
3576
|
//#endregion
|
|
4164
3577
|
//#region src/auth/auth/register.ts
|
|
4165
|
-
const registerWithEmail = async (email, password, subscribeToBlog) => {
|
|
3578
|
+
const registerWithEmail = async (email, password, subscribeToBlog, countryCode) => {
|
|
4166
3579
|
return apiCall(async () => {
|
|
4167
|
-
const { data } = await
|
|
4168
|
-
body: validateInput(
|
|
3580
|
+
const { data } = await authV1EmailServiceRegister({
|
|
3581
|
+
body: validateInput(RegisterRequestSchema, {
|
|
4169
3582
|
email,
|
|
4170
3583
|
password,
|
|
3584
|
+
country_code: countryCode,
|
|
4171
3585
|
subscribe_to_blog: subscribeToBlog
|
|
4172
3586
|
}),
|
|
4173
3587
|
throwOnError: true
|
|
@@ -4182,7 +3596,7 @@ const registerWithEmail = async (email, password, subscribeToBlog) => {
|
|
|
4182
3596
|
};
|
|
4183
3597
|
const resendEmailVerificationCode = async (email) => {
|
|
4184
3598
|
return apiCall(async () => {
|
|
4185
|
-
const { data } = await
|
|
3599
|
+
const { data } = await authV1EmailServiceResendVerification({
|
|
4186
3600
|
body: validateInput(ResendEmailRequestSchema, { email }),
|
|
4187
3601
|
throwOnError: true
|
|
4188
3602
|
});
|
|
@@ -4201,7 +3615,7 @@ const resendEmailVerificationCode = async (email) => {
|
|
|
4201
3615
|
//#region src/auth/auth/password.ts
|
|
4202
3616
|
const sendPasswordResetEmail = async (email) => {
|
|
4203
3617
|
return apiCall(async () => {
|
|
4204
|
-
await
|
|
3618
|
+
await authV1EmailServiceSendPasswordReset({
|
|
4205
3619
|
body: validateInput(ResendEmailRequestSchema, { email }),
|
|
4206
3620
|
throwOnError: true
|
|
4207
3621
|
});
|
|
@@ -4209,7 +3623,7 @@ const sendPasswordResetEmail = async (email) => {
|
|
|
4209
3623
|
};
|
|
4210
3624
|
const confirmPasswordReset = async (token, password) => {
|
|
4211
3625
|
return apiCall(async () => {
|
|
4212
|
-
await
|
|
3626
|
+
await authV1EmailServiceResetPassword({
|
|
4213
3627
|
body: validateInput(ResetPasswordRequestSchema, {
|
|
4214
3628
|
token,
|
|
4215
3629
|
new_password: password
|
|
@@ -4223,7 +3637,7 @@ const confirmPasswordReset = async (token, password) => {
|
|
|
4223
3637
|
//#region src/auth/auth/email.ts
|
|
4224
3638
|
const initiateEmailChange = async (email) => {
|
|
4225
3639
|
return apiCall(async () => {
|
|
4226
|
-
const { data } = await
|
|
3640
|
+
const { data } = await authV1EmailServiceInitiateEmailChange({
|
|
4227
3641
|
body: validateInput(ChangeEmailRequestSchema, { new_email: email }),
|
|
4228
3642
|
throwOnError: true
|
|
4229
3643
|
});
|
|
@@ -4241,7 +3655,7 @@ const initiateEmailChange = async (email) => {
|
|
|
4241
3655
|
};
|
|
4242
3656
|
const addEmail = async (email) => {
|
|
4243
3657
|
return apiCall(async () => {
|
|
4244
|
-
const { data } = await
|
|
3658
|
+
const { data } = await authV1EmailServiceAddEmail({
|
|
4245
3659
|
body: validateInput(ResendEmailRequestSchema, { email }),
|
|
4246
3660
|
throwOnError: true
|
|
4247
3661
|
});
|
|
@@ -4275,29 +3689,30 @@ const verifyEmailWithCode = async (...args) => {
|
|
|
4275
3689
|
return apiCall(async () => {
|
|
4276
3690
|
const payload = normalizeVerifyEmailArgs(args);
|
|
4277
3691
|
validateInput(verifyEmailChangeRequestSchema, payload);
|
|
4278
|
-
const { data } = await
|
|
3692
|
+
const { data } = await authV1EmailServiceVerifyEmail({
|
|
4279
3693
|
body: {
|
|
4280
3694
|
code: payload.code,
|
|
4281
3695
|
verification_id: payload.verification_id
|
|
4282
3696
|
},
|
|
4283
3697
|
throwOnError: true
|
|
4284
3698
|
});
|
|
4285
|
-
|
|
3699
|
+
const tokens = data.tokens;
|
|
3700
|
+
persistTokens(tokens);
|
|
4286
3701
|
return {
|
|
4287
3702
|
email: data.email || "",
|
|
4288
3703
|
message: data.message || "Email verified",
|
|
4289
3704
|
verified: data.verified || false,
|
|
4290
|
-
tokens:
|
|
4291
|
-
access_token:
|
|
4292
|
-
refresh_token:
|
|
4293
|
-
expires_in:
|
|
3705
|
+
tokens: tokens ? {
|
|
3706
|
+
access_token: tokens.access_token,
|
|
3707
|
+
refresh_token: tokens.refresh_token,
|
|
3708
|
+
expires_in: Number(tokens.expires_in)
|
|
4294
3709
|
} : void 0
|
|
4295
3710
|
};
|
|
4296
3711
|
}, { [HTTP_STATUS.BAD_REQUEST]: () => /* @__PURE__ */ new Error("Invalid code or verification ID") });
|
|
4297
3712
|
};
|
|
4298
3713
|
const getEmailVerificationStatus = async () => {
|
|
4299
3714
|
return apiCall(async () => {
|
|
4300
|
-
const { data } = await
|
|
3715
|
+
const { data } = await authV1EmailServiceGetUserEmailStatus({ throwOnError: true });
|
|
4301
3716
|
return {
|
|
4302
3717
|
email: data.email || "",
|
|
4303
3718
|
has_email: data.has_email ?? false,
|
|
@@ -4326,16 +3741,40 @@ let DomainStatus = /* @__PURE__ */ function(DomainStatus) {
|
|
|
4326
3741
|
return DomainStatus;
|
|
4327
3742
|
}({});
|
|
4328
3743
|
|
|
3744
|
+
//#endregion
|
|
3745
|
+
//#region src/auth/domain/mappers.ts
|
|
3746
|
+
function toDomainResponse(data) {
|
|
3747
|
+
const status = data.status;
|
|
3748
|
+
const verified = status && "verified" in status ? status.verified : void 0;
|
|
3749
|
+
const pending = status && "pending" in status ? status.pending : void 0;
|
|
3750
|
+
return {
|
|
3751
|
+
present: data.present,
|
|
3752
|
+
id: data.id ?? "",
|
|
3753
|
+
domain: data.domain ?? "",
|
|
3754
|
+
status: verified ? "verified" : "pending",
|
|
3755
|
+
verification_token: pending?.verification_token,
|
|
3756
|
+
expires_at: pending?.expires_at,
|
|
3757
|
+
verified_at: verified?.verified_at,
|
|
3758
|
+
auto_join: status?.auto_join
|
|
3759
|
+
};
|
|
3760
|
+
}
|
|
3761
|
+
function toAutoJoinSetting(data) {
|
|
3762
|
+
return {
|
|
3763
|
+
enabled: data.enabled ?? false,
|
|
3764
|
+
present: data.present
|
|
3765
|
+
};
|
|
3766
|
+
}
|
|
3767
|
+
|
|
4329
3768
|
//#endregion
|
|
4330
3769
|
//#region src/auth/domain/index.ts
|
|
4331
3770
|
const getDomainStatus = async (orgId) => {
|
|
4332
3771
|
return apiCall(async () => {
|
|
4333
3772
|
try {
|
|
4334
|
-
const { data } = await
|
|
4335
|
-
path: { orgId },
|
|
3773
|
+
const { data } = await authV1DomainServiceGetDomainStatus({
|
|
3774
|
+
path: { org_id: orgId },
|
|
4336
3775
|
throwOnError: true
|
|
4337
3776
|
});
|
|
4338
|
-
return data;
|
|
3777
|
+
return toDomainResponse(data);
|
|
4339
3778
|
} catch (error) {
|
|
4340
3779
|
if (error?.code === HTTP_STATUS.NOT_FOUND) return null;
|
|
4341
3780
|
throw error;
|
|
@@ -4345,12 +3784,12 @@ const getDomainStatus = async (orgId) => {
|
|
|
4345
3784
|
const initiateDomainVerification = async (orgId, domain) => {
|
|
4346
3785
|
return apiCall(async () => {
|
|
4347
3786
|
const requestBody = validateInput(AddDomainSchema, { domain });
|
|
4348
|
-
const { data } = await
|
|
4349
|
-
path: { orgId },
|
|
3787
|
+
const { data } = await authV1DomainServiceCreateDomainVerification({
|
|
3788
|
+
path: { "user.org_id": orgId },
|
|
4350
3789
|
body: requestBody,
|
|
4351
3790
|
throwOnError: true
|
|
4352
3791
|
});
|
|
4353
|
-
return data;
|
|
3792
|
+
return toDomainResponse(data);
|
|
4354
3793
|
}, {
|
|
4355
3794
|
[HTTP_STATUS.BAD_REQUEST]: () => /* @__PURE__ */ new Error("Invalid domain format or public domains like gmail.com are not allowed"),
|
|
4356
3795
|
[HTTP_STATUS.UNAUTHORIZED]: () => /* @__PURE__ */ new Error("Not authorized to configure domain settings")
|
|
@@ -4358,28 +3797,28 @@ const initiateDomainVerification = async (orgId, domain) => {
|
|
|
4358
3797
|
};
|
|
4359
3798
|
const checkDomainVerification = async (orgId) => {
|
|
4360
3799
|
return apiCall(async () => {
|
|
4361
|
-
const { data } = await
|
|
4362
|
-
path: { orgId },
|
|
3800
|
+
const { data } = await authV1DomainServiceCheckDomainVerification({
|
|
3801
|
+
path: { org_id: orgId },
|
|
4363
3802
|
throwOnError: true
|
|
4364
3803
|
});
|
|
4365
|
-
return data;
|
|
3804
|
+
return toDomainResponse(data);
|
|
4366
3805
|
}, { [HTTP_STATUS.UNAUTHORIZED]: () => /* @__PURE__ */ new Error("Not authorized to check domain verification") });
|
|
4367
3806
|
};
|
|
4368
3807
|
const updateAutoJoin = async (orgId, enabled) => {
|
|
4369
3808
|
return apiCall(async () => {
|
|
4370
3809
|
const requestBody = validateInput(UpdateAutoJoinSchema, { enabled });
|
|
4371
|
-
const { data } = await
|
|
4372
|
-
path: { orgId },
|
|
3810
|
+
const { data } = await authV1DomainServiceSetDomainAutoJoin({
|
|
3811
|
+
path: { "user.org_id": orgId },
|
|
4373
3812
|
body: requestBody,
|
|
4374
3813
|
throwOnError: true
|
|
4375
3814
|
});
|
|
4376
|
-
return data;
|
|
3815
|
+
return toAutoJoinSetting(data);
|
|
4377
3816
|
}, { [HTTP_STATUS.UNAUTHORIZED]: () => /* @__PURE__ */ new Error("Not authorized to update auto-join settings") });
|
|
4378
3817
|
};
|
|
4379
3818
|
const removeDomain = async (orgId) => {
|
|
4380
3819
|
return apiCall(async () => {
|
|
4381
|
-
await
|
|
4382
|
-
path: { orgId },
|
|
3820
|
+
await authV1DomainServiceRemoveDomain({
|
|
3821
|
+
path: { org_id: orgId },
|
|
4383
3822
|
throwOnError: true
|
|
4384
3823
|
});
|
|
4385
3824
|
}, { [HTTP_STATUS.UNAUTHORIZED]: () => /* @__PURE__ */ new Error("Not authorized to remove domain") });
|
|
@@ -4394,13 +3833,16 @@ const BLOG_SUBSCRIPTION_ERRORS = {
|
|
|
4394
3833
|
};
|
|
4395
3834
|
const getBlogSubscriptionStatus = async () => {
|
|
4396
3835
|
return apiCall(async () => {
|
|
4397
|
-
const { data } = await
|
|
4398
|
-
return
|
|
3836
|
+
const { data } = await authV1BlogServiceGetBlogSubscription({ throwOnError: true });
|
|
3837
|
+
return {
|
|
3838
|
+
subscribed: data.subscribed ?? false,
|
|
3839
|
+
subscribed_at: data.subscribed_at
|
|
3840
|
+
};
|
|
4399
3841
|
}, BLOG_SUBSCRIPTION_ERRORS);
|
|
4400
3842
|
};
|
|
4401
3843
|
const subscribeToBlog = async () => {
|
|
4402
3844
|
return apiCall(async () => {
|
|
4403
|
-
await
|
|
3845
|
+
await authV1BlogServiceSubscribeBlog({ throwOnError: true });
|
|
4404
3846
|
}, {
|
|
4405
3847
|
...BLOG_SUBSCRIPTION_ERRORS,
|
|
4406
3848
|
[HTTP_STATUS.INTERNAL_SERVER_ERROR]: () => /* @__PURE__ */ new Error("Failed to subscribe to blog updates")
|
|
@@ -4408,7 +3850,7 @@ const subscribeToBlog = async () => {
|
|
|
4408
3850
|
};
|
|
4409
3851
|
const unsubscribeFromBlog = async () => {
|
|
4410
3852
|
return apiCall(async () => {
|
|
4411
|
-
await
|
|
3853
|
+
await authV1BlogServiceUnsubscribeBlog({ throwOnError: true });
|
|
4412
3854
|
}, {
|
|
4413
3855
|
...BLOG_SUBSCRIPTION_ERRORS,
|
|
4414
3856
|
[HTTP_STATUS.INTERNAL_SERVER_ERROR]: () => /* @__PURE__ */ new Error("Failed to unsubscribe from blog updates")
|
|
@@ -4431,8 +3873,12 @@ function bufferToBase64url(buffer) {
|
|
|
4431
3873
|
for (let i = 0; i < bytes.length; i++) binary += String.fromCharCode(bytes[i]);
|
|
4432
3874
|
return btoa(binary).replace(/\+/g, "-").replace(/\//g, "_").replace(/=+$/, "");
|
|
4433
3875
|
}
|
|
3876
|
+
function parseOptionsEnvelope(raw) {
|
|
3877
|
+
const decoded = typeof raw === "string" ? JSON.parse(atob(raw)) : raw;
|
|
3878
|
+
return decoded.publicKey ?? decoded;
|
|
3879
|
+
}
|
|
4434
3880
|
function decodeCreationOptions(raw) {
|
|
4435
|
-
const pk = raw
|
|
3881
|
+
const pk = parseOptionsEnvelope(raw);
|
|
4436
3882
|
return {
|
|
4437
3883
|
...pk,
|
|
4438
3884
|
challenge: base64urlToBuffer(pk.challenge),
|
|
@@ -4447,7 +3893,7 @@ function decodeCreationOptions(raw) {
|
|
|
4447
3893
|
};
|
|
4448
3894
|
}
|
|
4449
3895
|
function decodeRequestOptions(raw) {
|
|
4450
|
-
const pk = raw
|
|
3896
|
+
const pk = parseOptionsEnvelope(raw);
|
|
4451
3897
|
return {
|
|
4452
3898
|
...pk,
|
|
4453
3899
|
challenge: base64urlToBuffer(pk.challenge),
|
|
@@ -4457,9 +3903,12 @@ function decodeRequestOptions(raw) {
|
|
|
4457
3903
|
}))
|
|
4458
3904
|
};
|
|
4459
3905
|
}
|
|
3906
|
+
function encodeCredential(credential) {
|
|
3907
|
+
return btoa(JSON.stringify(credential));
|
|
3908
|
+
}
|
|
4460
3909
|
function serializeLoginCredential(cred) {
|
|
4461
3910
|
const response = cred.response;
|
|
4462
|
-
return {
|
|
3911
|
+
return encodeCredential({
|
|
4463
3912
|
id: cred.id,
|
|
4464
3913
|
rawId: bufferToBase64url(cred.rawId),
|
|
4465
3914
|
type: cred.type,
|
|
@@ -4469,11 +3918,11 @@ function serializeLoginCredential(cred) {
|
|
|
4469
3918
|
signature: bufferToBase64url(response.signature),
|
|
4470
3919
|
userHandle: response.userHandle ? bufferToBase64url(response.userHandle) : null
|
|
4471
3920
|
}
|
|
4472
|
-
};
|
|
3921
|
+
});
|
|
4473
3922
|
}
|
|
4474
3923
|
function serializeRegistrationCredential(cred) {
|
|
4475
3924
|
const response = cred.response;
|
|
4476
|
-
return {
|
|
3925
|
+
return encodeCredential({
|
|
4477
3926
|
id: cred.id,
|
|
4478
3927
|
rawId: bufferToBase64url(cred.rawId),
|
|
4479
3928
|
type: cred.type,
|
|
@@ -4481,18 +3930,18 @@ function serializeRegistrationCredential(cred) {
|
|
|
4481
3930
|
attestationObject: bufferToBase64url(response.attestationObject),
|
|
4482
3931
|
clientDataJSON: bufferToBase64url(response.clientDataJSON)
|
|
4483
3932
|
}
|
|
4484
|
-
};
|
|
3933
|
+
});
|
|
4485
3934
|
}
|
|
4486
3935
|
const finishPasskeyLogin = async (session_id, credential) => {
|
|
4487
3936
|
return apiCall(async () => {
|
|
4488
|
-
const { data } = await
|
|
3937
|
+
const { data } = await authV1PasskeyServicePasskeyLoginFinish({
|
|
4489
3938
|
body: {
|
|
4490
3939
|
session_id,
|
|
4491
3940
|
credential: serializeLoginCredential(credential)
|
|
4492
3941
|
},
|
|
4493
3942
|
throwOnError: true
|
|
4494
3943
|
});
|
|
4495
|
-
|
|
3944
|
+
persistTokens(data);
|
|
4496
3945
|
}, {
|
|
4497
3946
|
[HTTP_STATUS.BAD_REQUEST]: () => /* @__PURE__ */ new Error("Invalid passkey credential"),
|
|
4498
3947
|
[HTTP_STATUS.UNAUTHORIZED]: () => /* @__PURE__ */ new Error("Passkey authentication failed")
|
|
@@ -4500,29 +3949,35 @@ const finishPasskeyLogin = async (session_id, credential) => {
|
|
|
4500
3949
|
};
|
|
4501
3950
|
const beginPasskeyLogin = async () => {
|
|
4502
3951
|
return apiCall(async () => {
|
|
4503
|
-
const { data } = await
|
|
4504
|
-
|
|
4505
|
-
|
|
3952
|
+
const { data } = await authV1PasskeyServicePasskeyLoginBegin({
|
|
3953
|
+
body: {},
|
|
3954
|
+
throwOnError: true
|
|
3955
|
+
});
|
|
3956
|
+
const sessionId = data.session_id;
|
|
3957
|
+
if (!sessionId || !data.options) throw new Error("No passkeys available for this account");
|
|
4506
3958
|
return {
|
|
4507
|
-
session_id:
|
|
4508
|
-
options
|
|
3959
|
+
session_id: sessionId,
|
|
3960
|
+
options: decodeRequestOptions(data.options)
|
|
4509
3961
|
};
|
|
4510
3962
|
}, {});
|
|
4511
3963
|
};
|
|
4512
3964
|
const beginPasskeyRegistration = async () => {
|
|
4513
3965
|
return apiCall(async () => {
|
|
4514
|
-
const { data } = await
|
|
4515
|
-
|
|
4516
|
-
|
|
3966
|
+
const { data } = await authV1PasskeyServicePasskeyRegisterBegin({
|
|
3967
|
+
body: {},
|
|
3968
|
+
throwOnError: true
|
|
3969
|
+
});
|
|
3970
|
+
const sessionId = data.session_id;
|
|
3971
|
+
if (!sessionId || !data.options) throw new Error("Invalid response from server");
|
|
4517
3972
|
return {
|
|
4518
|
-
session_id:
|
|
4519
|
-
options
|
|
3973
|
+
session_id: sessionId,
|
|
3974
|
+
options: decodeCreationOptions(data.options)
|
|
4520
3975
|
};
|
|
4521
3976
|
}, { [HTTP_STATUS.UNAUTHORIZED]: () => /* @__PURE__ */ new Error("Token is missing or invalid; user is not authenticated.") });
|
|
4522
3977
|
};
|
|
4523
3978
|
const finishPasskeyRegistration = async (session_id, name, credential) => {
|
|
4524
3979
|
return apiCall(async () => {
|
|
4525
|
-
const { data } = await
|
|
3980
|
+
const { data } = await authV1PasskeyServicePasskeyRegisterFinish({
|
|
4526
3981
|
body: {
|
|
4527
3982
|
session_id,
|
|
4528
3983
|
name,
|
|
@@ -4541,7 +3996,7 @@ const finishPasskeyRegistration = async (session_id, name, credential) => {
|
|
|
4541
3996
|
};
|
|
4542
3997
|
const renamePasskey = async (id, name) => {
|
|
4543
3998
|
return apiCall(async () => {
|
|
4544
|
-
await
|
|
3999
|
+
await authV1PasskeyServiceRenamePasskey({
|
|
4545
4000
|
path: { id },
|
|
4546
4001
|
body: { name },
|
|
4547
4002
|
throwOnError: true
|
|
@@ -4550,7 +4005,7 @@ const renamePasskey = async (id, name) => {
|
|
|
4550
4005
|
};
|
|
4551
4006
|
const deletePasskey = async (id) => {
|
|
4552
4007
|
return apiCall(async () => {
|
|
4553
|
-
await
|
|
4008
|
+
await authV1PasskeyServiceDeletePasskey({
|
|
4554
4009
|
path: { id },
|
|
4555
4010
|
throwOnError: true
|
|
4556
4011
|
});
|
|
@@ -4558,7 +4013,7 @@ const deletePasskey = async (id) => {
|
|
|
4558
4013
|
};
|
|
4559
4014
|
const listPasskeys = async () => {
|
|
4560
4015
|
return apiCall(async () => {
|
|
4561
|
-
const { data } = await
|
|
4016
|
+
const { data } = await authV1PasskeyServiceListPasskeys({ throwOnError: true });
|
|
4562
4017
|
return (data.passkeys ?? []).map((p) => ({
|
|
4563
4018
|
id: p.id ?? "",
|
|
4564
4019
|
name: p.name ?? "",
|
|
@@ -4573,14 +4028,14 @@ const listPasskeys = async () => {
|
|
|
4573
4028
|
};
|
|
4574
4029
|
const verifyPasskeyForLogin = async (session_id, credential) => {
|
|
4575
4030
|
return apiCall(async () => {
|
|
4576
|
-
const { data } = await
|
|
4031
|
+
const { data } = await authV1PasskeyServiceVerifyPasskeyForLogin({
|
|
4577
4032
|
body: {
|
|
4578
4033
|
session_id,
|
|
4579
4034
|
credential: serializeLoginCredential(credential)
|
|
4580
4035
|
},
|
|
4581
4036
|
throwOnError: true
|
|
4582
4037
|
});
|
|
4583
|
-
|
|
4038
|
+
persistTokens(data);
|
|
4584
4039
|
}, {
|
|
4585
4040
|
[HTTP_STATUS.BAD_REQUEST]: () => /* @__PURE__ */ new Error("Invalid passkey credential"),
|
|
4586
4041
|
[HTTP_STATUS.UNAUTHORIZED]: () => /* @__PURE__ */ new Error("Passkey verification failed"),
|
|
@@ -4589,5 +4044,5 @@ const verifyPasskeyForLogin = async (session_id, credential) => {
|
|
|
4589
4044
|
};
|
|
4590
4045
|
|
|
4591
4046
|
//#endregion
|
|
4592
|
-
export { DomainStatus, MembershipRole, MembershipState, addEmail,
|
|
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 };
|
|
4593
4048
|
//# sourceMappingURL=index.js.map
|