@loopstack/hub-client 0.9.0 → 0.9.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/api.js CHANGED
@@ -53,6 +53,56 @@ exports.WorkerSortByDtoOrderEnum = {
53
53
  */
54
54
  const ApiV1AuthApiAxiosParamCreator = function (configuration) {
55
55
  return {
56
+ /**
57
+ *
58
+ * @summary Initiate Discord OAuth flow
59
+ * @param {*} [options] Override http request option.
60
+ * @throws {RequiredError}
61
+ */
62
+ authControllerDiscordAuth: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
63
+ const localVarPath = `/api/v1/auth/oauth/discord`;
64
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
65
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
66
+ let baseOptions;
67
+ if (configuration) {
68
+ baseOptions = configuration.baseOptions;
69
+ }
70
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
71
+ const localVarHeaderParameter = {};
72
+ const localVarQueryParameter = {};
73
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
74
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
75
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
76
+ return {
77
+ url: (0, common_1.toPathString)(localVarUrlObj),
78
+ options: localVarRequestOptions,
79
+ };
80
+ }),
81
+ /**
82
+ *
83
+ * @summary Handle Discord OAuth callback
84
+ * @param {*} [options] Override http request option.
85
+ * @throws {RequiredError}
86
+ */
87
+ authControllerDiscordCallback: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
88
+ const localVarPath = `/api/v1/auth/oauth/discord/callback`;
89
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
90
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
91
+ let baseOptions;
92
+ if (configuration) {
93
+ baseOptions = configuration.baseOptions;
94
+ }
95
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
96
+ const localVarHeaderParameter = {};
97
+ const localVarQueryParameter = {};
98
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
99
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
100
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
101
+ return {
102
+ url: (0, common_1.toPathString)(localVarUrlObj),
103
+ options: localVarRequestOptions,
104
+ };
105
+ }),
56
106
  /**
57
107
  *
58
108
  * @summary Get linked OAuth providers for current user
@@ -78,6 +128,56 @@ const ApiV1AuthApiAxiosParamCreator = function (configuration) {
78
128
  options: localVarRequestOptions,
79
129
  };
80
130
  }),
131
+ /**
132
+ *
133
+ * @summary Initiate GitHub OAuth flow
134
+ * @param {*} [options] Override http request option.
135
+ * @throws {RequiredError}
136
+ */
137
+ authControllerGithubAuth: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
138
+ const localVarPath = `/api/v1/auth/oauth/github`;
139
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
140
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
141
+ let baseOptions;
142
+ if (configuration) {
143
+ baseOptions = configuration.baseOptions;
144
+ }
145
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
146
+ const localVarHeaderParameter = {};
147
+ const localVarQueryParameter = {};
148
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
149
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
150
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
151
+ return {
152
+ url: (0, common_1.toPathString)(localVarUrlObj),
153
+ options: localVarRequestOptions,
154
+ };
155
+ }),
156
+ /**
157
+ *
158
+ * @summary Handle GitHub OAuth callback
159
+ * @param {*} [options] Override http request option.
160
+ * @throws {RequiredError}
161
+ */
162
+ authControllerGithubCallback: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
163
+ const localVarPath = `/api/v1/auth/oauth/github/callback`;
164
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
165
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
166
+ let baseOptions;
167
+ if (configuration) {
168
+ baseOptions = configuration.baseOptions;
169
+ }
170
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
171
+ const localVarHeaderParameter = {};
172
+ const localVarQueryParameter = {};
173
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
174
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
175
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
176
+ return {
177
+ url: (0, common_1.toPathString)(localVarUrlObj),
178
+ options: localVarRequestOptions,
179
+ };
180
+ }),
81
181
  /**
82
182
  *
83
183
  * @summary Initiate Google OAuth flow
@@ -303,6 +403,36 @@ exports.ApiV1AuthApiAxiosParamCreator = ApiV1AuthApiAxiosParamCreator;
303
403
  const ApiV1AuthApiFp = function (configuration) {
304
404
  const localVarAxiosParamCreator = (0, exports.ApiV1AuthApiAxiosParamCreator)(configuration);
305
405
  return {
406
+ /**
407
+ *
408
+ * @summary Initiate Discord OAuth flow
409
+ * @param {*} [options] Override http request option.
410
+ * @throws {RequiredError}
411
+ */
412
+ authControllerDiscordAuth(options) {
413
+ return __awaiter(this, void 0, void 0, function* () {
414
+ var _a, _b, _c;
415
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.authControllerDiscordAuth(options);
416
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
417
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ApiV1AuthApi.authControllerDiscordAuth']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
418
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
419
+ });
420
+ },
421
+ /**
422
+ *
423
+ * @summary Handle Discord OAuth callback
424
+ * @param {*} [options] Override http request option.
425
+ * @throws {RequiredError}
426
+ */
427
+ authControllerDiscordCallback(options) {
428
+ return __awaiter(this, void 0, void 0, function* () {
429
+ var _a, _b, _c;
430
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.authControllerDiscordCallback(options);
431
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
432
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ApiV1AuthApi.authControllerDiscordCallback']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
433
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
434
+ });
435
+ },
306
436
  /**
307
437
  *
308
438
  * @summary Get linked OAuth providers for current user
@@ -318,6 +448,36 @@ const ApiV1AuthApiFp = function (configuration) {
318
448
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
319
449
  });
320
450
  },
451
+ /**
452
+ *
453
+ * @summary Initiate GitHub OAuth flow
454
+ * @param {*} [options] Override http request option.
455
+ * @throws {RequiredError}
456
+ */
457
+ authControllerGithubAuth(options) {
458
+ return __awaiter(this, void 0, void 0, function* () {
459
+ var _a, _b, _c;
460
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.authControllerGithubAuth(options);
461
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
462
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ApiV1AuthApi.authControllerGithubAuth']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
463
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
464
+ });
465
+ },
466
+ /**
467
+ *
468
+ * @summary Handle GitHub OAuth callback
469
+ * @param {*} [options] Override http request option.
470
+ * @throws {RequiredError}
471
+ */
472
+ authControllerGithubCallback(options) {
473
+ return __awaiter(this, void 0, void 0, function* () {
474
+ var _a, _b, _c;
475
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.authControllerGithubCallback(options);
476
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
477
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ApiV1AuthApi.authControllerGithubCallback']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
478
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
479
+ });
480
+ },
321
481
  /**
322
482
  *
323
483
  * @summary Initiate Google OAuth flow
@@ -451,6 +611,24 @@ exports.ApiV1AuthApiFp = ApiV1AuthApiFp;
451
611
  const ApiV1AuthApiFactory = function (configuration, basePath, axios) {
452
612
  const localVarFp = (0, exports.ApiV1AuthApiFp)(configuration);
453
613
  return {
614
+ /**
615
+ *
616
+ * @summary Initiate Discord OAuth flow
617
+ * @param {*} [options] Override http request option.
618
+ * @throws {RequiredError}
619
+ */
620
+ authControllerDiscordAuth(options) {
621
+ return localVarFp.authControllerDiscordAuth(options).then((request) => request(axios, basePath));
622
+ },
623
+ /**
624
+ *
625
+ * @summary Handle Discord OAuth callback
626
+ * @param {*} [options] Override http request option.
627
+ * @throws {RequiredError}
628
+ */
629
+ authControllerDiscordCallback(options) {
630
+ return localVarFp.authControllerDiscordCallback(options).then((request) => request(axios, basePath));
631
+ },
454
632
  /**
455
633
  *
456
634
  * @summary Get linked OAuth providers for current user
@@ -460,6 +638,24 @@ const ApiV1AuthApiFactory = function (configuration, basePath, axios) {
460
638
  authControllerGetProviders(options) {
461
639
  return localVarFp.authControllerGetProviders(options).then((request) => request(axios, basePath));
462
640
  },
641
+ /**
642
+ *
643
+ * @summary Initiate GitHub OAuth flow
644
+ * @param {*} [options] Override http request option.
645
+ * @throws {RequiredError}
646
+ */
647
+ authControllerGithubAuth(options) {
648
+ return localVarFp.authControllerGithubAuth(options).then((request) => request(axios, basePath));
649
+ },
650
+ /**
651
+ *
652
+ * @summary Handle GitHub OAuth callback
653
+ * @param {*} [options] Override http request option.
654
+ * @throws {RequiredError}
655
+ */
656
+ authControllerGithubCallback(options) {
657
+ return localVarFp.authControllerGithubCallback(options).then((request) => request(axios, basePath));
658
+ },
463
659
  /**
464
660
  *
465
661
  * @summary Initiate Google OAuth flow
@@ -545,6 +741,26 @@ exports.ApiV1AuthApiFactory = ApiV1AuthApiFactory;
545
741
  * @extends {BaseAPI}
546
742
  */
547
743
  class ApiV1AuthApi extends base_1.BaseAPI {
744
+ /**
745
+ *
746
+ * @summary Initiate Discord OAuth flow
747
+ * @param {*} [options] Override http request option.
748
+ * @throws {RequiredError}
749
+ * @memberof ApiV1AuthApi
750
+ */
751
+ authControllerDiscordAuth(options) {
752
+ return (0, exports.ApiV1AuthApiFp)(this.configuration).authControllerDiscordAuth(options).then((request) => request(this.axios, this.basePath));
753
+ }
754
+ /**
755
+ *
756
+ * @summary Handle Discord OAuth callback
757
+ * @param {*} [options] Override http request option.
758
+ * @throws {RequiredError}
759
+ * @memberof ApiV1AuthApi
760
+ */
761
+ authControllerDiscordCallback(options) {
762
+ return (0, exports.ApiV1AuthApiFp)(this.configuration).authControllerDiscordCallback(options).then((request) => request(this.axios, this.basePath));
763
+ }
548
764
  /**
549
765
  *
550
766
  * @summary Get linked OAuth providers for current user
@@ -555,6 +771,26 @@ class ApiV1AuthApi extends base_1.BaseAPI {
555
771
  authControllerGetProviders(options) {
556
772
  return (0, exports.ApiV1AuthApiFp)(this.configuration).authControllerGetProviders(options).then((request) => request(this.axios, this.basePath));
557
773
  }
774
+ /**
775
+ *
776
+ * @summary Initiate GitHub OAuth flow
777
+ * @param {*} [options] Override http request option.
778
+ * @throws {RequiredError}
779
+ * @memberof ApiV1AuthApi
780
+ */
781
+ authControllerGithubAuth(options) {
782
+ return (0, exports.ApiV1AuthApiFp)(this.configuration).authControllerGithubAuth(options).then((request) => request(this.axios, this.basePath));
783
+ }
784
+ /**
785
+ *
786
+ * @summary Handle GitHub OAuth callback
787
+ * @param {*} [options] Override http request option.
788
+ * @throws {RequiredError}
789
+ * @memberof ApiV1AuthApi
790
+ */
791
+ authControllerGithubCallback(options) {
792
+ return (0, exports.ApiV1AuthApiFp)(this.configuration).authControllerGithubCallback(options).then((request) => request(this.axios, this.basePath));
793
+ }
558
794
  /**
559
795
  *
560
796
  * @summary Initiate Google OAuth flow
package/dist/esm/api.d.ts CHANGED
@@ -235,10 +235,10 @@ export interface UserDto {
235
235
  'updatedAt': string;
236
236
  /**
237
237
  *
238
- * @type {Array<Array<object>>}
238
+ * @type {Array<Array<WorkerItemDto>>}
239
239
  * @memberof UserDto
240
240
  */
241
- 'workers': Array<Array<object>>;
241
+ 'workers': Array<Array<WorkerItemDto>>;
242
242
  }
243
243
  /**
244
244
  *
@@ -258,24 +258,12 @@ export interface UserSettingsDto {
258
258
  * @memberof UserSettingsDto
259
259
  */
260
260
  'userId': string;
261
- /**
262
- * Default worker for the user
263
- * @type {WorkerItemDto}
264
- * @memberof UserSettingsDto
265
- */
266
- 'defaultWorker'?: WorkerItemDto;
267
261
  /**
268
262
  * Default worker ID
269
263
  * @type {string}
270
264
  * @memberof UserSettingsDto
271
265
  */
272
266
  'defaultWorkerId'?: string;
273
- /**
274
- * Last selected worker by the user
275
- * @type {WorkerItemDto}
276
- * @memberof UserSettingsDto
277
- */
278
- 'lastSelectedWorker'?: WorkerItemDto;
279
267
  /**
280
268
  * Last selected worker ID
281
269
  * @type {string}
@@ -647,12 +635,38 @@ export interface WorkerUpdateDto {
647
635
  * @memberof WorkerUpdateDto
648
636
  */
649
637
  'name'?: string;
638
+ /**
639
+ * URL of the worker
640
+ * @type {string}
641
+ * @memberof WorkerUpdateDto
642
+ */
643
+ 'url'?: string;
644
+ /**
645
+ * URL of the worker websocket server
646
+ * @type {string}
647
+ * @memberof WorkerUpdateDto
648
+ */
649
+ 'websocketUrl'?: string;
650
650
  }
651
651
  /**
652
652
  * ApiV1AuthApi - axios parameter creator
653
653
  * @export
654
654
  */
655
655
  export declare const ApiV1AuthApiAxiosParamCreator: (configuration?: Configuration) => {
656
+ /**
657
+ *
658
+ * @summary Initiate Discord OAuth flow
659
+ * @param {*} [options] Override http request option.
660
+ * @throws {RequiredError}
661
+ */
662
+ authControllerDiscordAuth: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
663
+ /**
664
+ *
665
+ * @summary Handle Discord OAuth callback
666
+ * @param {*} [options] Override http request option.
667
+ * @throws {RequiredError}
668
+ */
669
+ authControllerDiscordCallback: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
656
670
  /**
657
671
  *
658
672
  * @summary Get linked OAuth providers for current user
@@ -660,6 +674,20 @@ export declare const ApiV1AuthApiAxiosParamCreator: (configuration?: Configurati
660
674
  * @throws {RequiredError}
661
675
  */
662
676
  authControllerGetProviders: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
677
+ /**
678
+ *
679
+ * @summary Initiate GitHub OAuth flow
680
+ * @param {*} [options] Override http request option.
681
+ * @throws {RequiredError}
682
+ */
683
+ authControllerGithubAuth: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
684
+ /**
685
+ *
686
+ * @summary Handle GitHub OAuth callback
687
+ * @param {*} [options] Override http request option.
688
+ * @throws {RequiredError}
689
+ */
690
+ authControllerGithubCallback: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
663
691
  /**
664
692
  *
665
693
  * @summary Initiate Google OAuth flow
@@ -725,6 +753,20 @@ export declare const ApiV1AuthApiAxiosParamCreator: (configuration?: Configurati
725
753
  * @export
726
754
  */
727
755
  export declare const ApiV1AuthApiFp: (configuration?: Configuration) => {
756
+ /**
757
+ *
758
+ * @summary Initiate Discord OAuth flow
759
+ * @param {*} [options] Override http request option.
760
+ * @throws {RequiredError}
761
+ */
762
+ authControllerDiscordAuth(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
763
+ /**
764
+ *
765
+ * @summary Handle Discord OAuth callback
766
+ * @param {*} [options] Override http request option.
767
+ * @throws {RequiredError}
768
+ */
769
+ authControllerDiscordCallback(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>>;
728
770
  /**
729
771
  *
730
772
  * @summary Get linked OAuth providers for current user
@@ -732,6 +774,20 @@ export declare const ApiV1AuthApiFp: (configuration?: Configuration) => {
732
774
  * @throws {RequiredError}
733
775
  */
734
776
  authControllerGetProviders(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>>;
777
+ /**
778
+ *
779
+ * @summary Initiate GitHub OAuth flow
780
+ * @param {*} [options] Override http request option.
781
+ * @throws {RequiredError}
782
+ */
783
+ authControllerGithubAuth(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
784
+ /**
785
+ *
786
+ * @summary Handle GitHub OAuth callback
787
+ * @param {*} [options] Override http request option.
788
+ * @throws {RequiredError}
789
+ */
790
+ authControllerGithubCallback(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>>;
735
791
  /**
736
792
  *
737
793
  * @summary Initiate Google OAuth flow
@@ -797,6 +853,20 @@ export declare const ApiV1AuthApiFp: (configuration?: Configuration) => {
797
853
  * @export
798
854
  */
799
855
  export declare const ApiV1AuthApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
856
+ /**
857
+ *
858
+ * @summary Initiate Discord OAuth flow
859
+ * @param {*} [options] Override http request option.
860
+ * @throws {RequiredError}
861
+ */
862
+ authControllerDiscordAuth(options?: RawAxiosRequestConfig): AxiosPromise<void>;
863
+ /**
864
+ *
865
+ * @summary Handle Discord OAuth callback
866
+ * @param {*} [options] Override http request option.
867
+ * @throws {RequiredError}
868
+ */
869
+ authControllerDiscordCallback(options?: RawAxiosRequestConfig): AxiosPromise<object>;
800
870
  /**
801
871
  *
802
872
  * @summary Get linked OAuth providers for current user
@@ -804,6 +874,20 @@ export declare const ApiV1AuthApiFactory: (configuration?: Configuration, basePa
804
874
  * @throws {RequiredError}
805
875
  */
806
876
  authControllerGetProviders(options?: RawAxiosRequestConfig): AxiosPromise<object>;
877
+ /**
878
+ *
879
+ * @summary Initiate GitHub OAuth flow
880
+ * @param {*} [options] Override http request option.
881
+ * @throws {RequiredError}
882
+ */
883
+ authControllerGithubAuth(options?: RawAxiosRequestConfig): AxiosPromise<void>;
884
+ /**
885
+ *
886
+ * @summary Handle GitHub OAuth callback
887
+ * @param {*} [options] Override http request option.
888
+ * @throws {RequiredError}
889
+ */
890
+ authControllerGithubCallback(options?: RawAxiosRequestConfig): AxiosPromise<object>;
807
891
  /**
808
892
  *
809
893
  * @summary Initiate Google OAuth flow
@@ -870,6 +954,22 @@ export declare const ApiV1AuthApiFactory: (configuration?: Configuration, basePa
870
954
  * @interface ApiV1AuthApi
871
955
  */
872
956
  export interface ApiV1AuthApiInterface {
957
+ /**
958
+ *
959
+ * @summary Initiate Discord OAuth flow
960
+ * @param {*} [options] Override http request option.
961
+ * @throws {RequiredError}
962
+ * @memberof ApiV1AuthApiInterface
963
+ */
964
+ authControllerDiscordAuth(options?: RawAxiosRequestConfig): AxiosPromise<void>;
965
+ /**
966
+ *
967
+ * @summary Handle Discord OAuth callback
968
+ * @param {*} [options] Override http request option.
969
+ * @throws {RequiredError}
970
+ * @memberof ApiV1AuthApiInterface
971
+ */
972
+ authControllerDiscordCallback(options?: RawAxiosRequestConfig): AxiosPromise<object>;
873
973
  /**
874
974
  *
875
975
  * @summary Get linked OAuth providers for current user
@@ -878,6 +978,22 @@ export interface ApiV1AuthApiInterface {
878
978
  * @memberof ApiV1AuthApiInterface
879
979
  */
880
980
  authControllerGetProviders(options?: RawAxiosRequestConfig): AxiosPromise<object>;
981
+ /**
982
+ *
983
+ * @summary Initiate GitHub OAuth flow
984
+ * @param {*} [options] Override http request option.
985
+ * @throws {RequiredError}
986
+ * @memberof ApiV1AuthApiInterface
987
+ */
988
+ authControllerGithubAuth(options?: RawAxiosRequestConfig): AxiosPromise<void>;
989
+ /**
990
+ *
991
+ * @summary Handle GitHub OAuth callback
992
+ * @param {*} [options] Override http request option.
993
+ * @throws {RequiredError}
994
+ * @memberof ApiV1AuthApiInterface
995
+ */
996
+ authControllerGithubCallback(options?: RawAxiosRequestConfig): AxiosPromise<object>;
881
997
  /**
882
998
  *
883
999
  * @summary Initiate Google OAuth flow
@@ -992,6 +1108,22 @@ export interface ApiV1AuthApiAuthControllerRegisterRequest {
992
1108
  * @extends {BaseAPI}
993
1109
  */
994
1110
  export declare class ApiV1AuthApi extends BaseAPI implements ApiV1AuthApiInterface {
1111
+ /**
1112
+ *
1113
+ * @summary Initiate Discord OAuth flow
1114
+ * @param {*} [options] Override http request option.
1115
+ * @throws {RequiredError}
1116
+ * @memberof ApiV1AuthApi
1117
+ */
1118
+ authControllerDiscordAuth(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
1119
+ /**
1120
+ *
1121
+ * @summary Handle Discord OAuth callback
1122
+ * @param {*} [options] Override http request option.
1123
+ * @throws {RequiredError}
1124
+ * @memberof ApiV1AuthApi
1125
+ */
1126
+ authControllerDiscordCallback(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any, {}>>;
995
1127
  /**
996
1128
  *
997
1129
  * @summary Get linked OAuth providers for current user
@@ -1000,6 +1132,22 @@ export declare class ApiV1AuthApi extends BaseAPI implements ApiV1AuthApiInterfa
1000
1132
  * @memberof ApiV1AuthApi
1001
1133
  */
1002
1134
  authControllerGetProviders(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any, {}>>;
1135
+ /**
1136
+ *
1137
+ * @summary Initiate GitHub OAuth flow
1138
+ * @param {*} [options] Override http request option.
1139
+ * @throws {RequiredError}
1140
+ * @memberof ApiV1AuthApi
1141
+ */
1142
+ authControllerGithubAuth(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
1143
+ /**
1144
+ *
1145
+ * @summary Handle GitHub OAuth callback
1146
+ * @param {*} [options] Override http request option.
1147
+ * @throws {RequiredError}
1148
+ * @memberof ApiV1AuthApi
1149
+ */
1150
+ authControllerGithubCallback(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any, {}>>;
1003
1151
  /**
1004
1152
  *
1005
1153
  * @summary Initiate Google OAuth flow