@loopstack/hub-client 0.9.0 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/api.ts +298 -14
- package/dist/api.d.ts +162 -14
- package/dist/api.js +236 -0
- package/dist/esm/api.d.ts +162 -14
- package/dist/esm/api.js +236 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/api.ts
CHANGED
|
@@ -248,10 +248,10 @@ export interface UserDto {
|
|
|
248
248
|
'updatedAt': string;
|
|
249
249
|
/**
|
|
250
250
|
*
|
|
251
|
-
* @type {Array<Array<
|
|
251
|
+
* @type {Array<Array<WorkerItemDto>>}
|
|
252
252
|
* @memberof UserDto
|
|
253
253
|
*/
|
|
254
|
-
'workers': Array<Array<
|
|
254
|
+
'workers': Array<Array<WorkerItemDto>>;
|
|
255
255
|
}
|
|
256
256
|
/**
|
|
257
257
|
*
|
|
@@ -271,24 +271,12 @@ export interface UserSettingsDto {
|
|
|
271
271
|
* @memberof UserSettingsDto
|
|
272
272
|
*/
|
|
273
273
|
'userId': string;
|
|
274
|
-
/**
|
|
275
|
-
* Default worker for the user
|
|
276
|
-
* @type {WorkerItemDto}
|
|
277
|
-
* @memberof UserSettingsDto
|
|
278
|
-
*/
|
|
279
|
-
'defaultWorker'?: WorkerItemDto;
|
|
280
274
|
/**
|
|
281
275
|
* Default worker ID
|
|
282
276
|
* @type {string}
|
|
283
277
|
* @memberof UserSettingsDto
|
|
284
278
|
*/
|
|
285
279
|
'defaultWorkerId'?: string;
|
|
286
|
-
/**
|
|
287
|
-
* Last selected worker by the user
|
|
288
|
-
* @type {WorkerItemDto}
|
|
289
|
-
* @memberof UserSettingsDto
|
|
290
|
-
*/
|
|
291
|
-
'lastSelectedWorker'?: WorkerItemDto;
|
|
292
280
|
/**
|
|
293
281
|
* Last selected worker ID
|
|
294
282
|
* @type {string}
|
|
@@ -664,6 +652,18 @@ export interface WorkerUpdateDto {
|
|
|
664
652
|
* @memberof WorkerUpdateDto
|
|
665
653
|
*/
|
|
666
654
|
'name'?: string;
|
|
655
|
+
/**
|
|
656
|
+
* URL of the worker
|
|
657
|
+
* @type {string}
|
|
658
|
+
* @memberof WorkerUpdateDto
|
|
659
|
+
*/
|
|
660
|
+
'url'?: string;
|
|
661
|
+
/**
|
|
662
|
+
* URL of the worker websocket server
|
|
663
|
+
* @type {string}
|
|
664
|
+
* @memberof WorkerUpdateDto
|
|
665
|
+
*/
|
|
666
|
+
'websocketUrl'?: string;
|
|
667
667
|
}
|
|
668
668
|
|
|
669
669
|
/**
|
|
@@ -672,6 +672,66 @@ export interface WorkerUpdateDto {
|
|
|
672
672
|
*/
|
|
673
673
|
export const ApiV1AuthApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
674
674
|
return {
|
|
675
|
+
/**
|
|
676
|
+
*
|
|
677
|
+
* @summary Initiate Discord OAuth flow
|
|
678
|
+
* @param {*} [options] Override http request option.
|
|
679
|
+
* @throws {RequiredError}
|
|
680
|
+
*/
|
|
681
|
+
authControllerDiscordAuth: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
682
|
+
const localVarPath = `/api/v1/auth/oauth/discord`;
|
|
683
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
684
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
685
|
+
let baseOptions;
|
|
686
|
+
if (configuration) {
|
|
687
|
+
baseOptions = configuration.baseOptions;
|
|
688
|
+
}
|
|
689
|
+
|
|
690
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
691
|
+
const localVarHeaderParameter = {} as any;
|
|
692
|
+
const localVarQueryParameter = {} as any;
|
|
693
|
+
|
|
694
|
+
|
|
695
|
+
|
|
696
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
697
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
698
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
699
|
+
|
|
700
|
+
return {
|
|
701
|
+
url: toPathString(localVarUrlObj),
|
|
702
|
+
options: localVarRequestOptions,
|
|
703
|
+
};
|
|
704
|
+
},
|
|
705
|
+
/**
|
|
706
|
+
*
|
|
707
|
+
* @summary Handle Discord OAuth callback
|
|
708
|
+
* @param {*} [options] Override http request option.
|
|
709
|
+
* @throws {RequiredError}
|
|
710
|
+
*/
|
|
711
|
+
authControllerDiscordCallback: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
712
|
+
const localVarPath = `/api/v1/auth/oauth/discord/callback`;
|
|
713
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
714
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
715
|
+
let baseOptions;
|
|
716
|
+
if (configuration) {
|
|
717
|
+
baseOptions = configuration.baseOptions;
|
|
718
|
+
}
|
|
719
|
+
|
|
720
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
721
|
+
const localVarHeaderParameter = {} as any;
|
|
722
|
+
const localVarQueryParameter = {} as any;
|
|
723
|
+
|
|
724
|
+
|
|
725
|
+
|
|
726
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
727
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
728
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
729
|
+
|
|
730
|
+
return {
|
|
731
|
+
url: toPathString(localVarUrlObj),
|
|
732
|
+
options: localVarRequestOptions,
|
|
733
|
+
};
|
|
734
|
+
},
|
|
675
735
|
/**
|
|
676
736
|
*
|
|
677
737
|
* @summary Get linked OAuth providers for current user
|
|
@@ -693,6 +753,66 @@ export const ApiV1AuthApiAxiosParamCreator = function (configuration?: Configura
|
|
|
693
753
|
|
|
694
754
|
|
|
695
755
|
|
|
756
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
757
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
758
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
759
|
+
|
|
760
|
+
return {
|
|
761
|
+
url: toPathString(localVarUrlObj),
|
|
762
|
+
options: localVarRequestOptions,
|
|
763
|
+
};
|
|
764
|
+
},
|
|
765
|
+
/**
|
|
766
|
+
*
|
|
767
|
+
* @summary Initiate GitHub OAuth flow
|
|
768
|
+
* @param {*} [options] Override http request option.
|
|
769
|
+
* @throws {RequiredError}
|
|
770
|
+
*/
|
|
771
|
+
authControllerGithubAuth: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
772
|
+
const localVarPath = `/api/v1/auth/oauth/github`;
|
|
773
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
774
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
775
|
+
let baseOptions;
|
|
776
|
+
if (configuration) {
|
|
777
|
+
baseOptions = configuration.baseOptions;
|
|
778
|
+
}
|
|
779
|
+
|
|
780
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
781
|
+
const localVarHeaderParameter = {} as any;
|
|
782
|
+
const localVarQueryParameter = {} as any;
|
|
783
|
+
|
|
784
|
+
|
|
785
|
+
|
|
786
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
787
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
788
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
789
|
+
|
|
790
|
+
return {
|
|
791
|
+
url: toPathString(localVarUrlObj),
|
|
792
|
+
options: localVarRequestOptions,
|
|
793
|
+
};
|
|
794
|
+
},
|
|
795
|
+
/**
|
|
796
|
+
*
|
|
797
|
+
* @summary Handle GitHub OAuth callback
|
|
798
|
+
* @param {*} [options] Override http request option.
|
|
799
|
+
* @throws {RequiredError}
|
|
800
|
+
*/
|
|
801
|
+
authControllerGithubCallback: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
802
|
+
const localVarPath = `/api/v1/auth/oauth/github/callback`;
|
|
803
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
804
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
805
|
+
let baseOptions;
|
|
806
|
+
if (configuration) {
|
|
807
|
+
baseOptions = configuration.baseOptions;
|
|
808
|
+
}
|
|
809
|
+
|
|
810
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
811
|
+
const localVarHeaderParameter = {} as any;
|
|
812
|
+
const localVarQueryParameter = {} as any;
|
|
813
|
+
|
|
814
|
+
|
|
815
|
+
|
|
696
816
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
697
817
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
698
818
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -970,6 +1090,30 @@ export const ApiV1AuthApiAxiosParamCreator = function (configuration?: Configura
|
|
|
970
1090
|
export const ApiV1AuthApiFp = function(configuration?: Configuration) {
|
|
971
1091
|
const localVarAxiosParamCreator = ApiV1AuthApiAxiosParamCreator(configuration)
|
|
972
1092
|
return {
|
|
1093
|
+
/**
|
|
1094
|
+
*
|
|
1095
|
+
* @summary Initiate Discord OAuth flow
|
|
1096
|
+
* @param {*} [options] Override http request option.
|
|
1097
|
+
* @throws {RequiredError}
|
|
1098
|
+
*/
|
|
1099
|
+
async authControllerDiscordAuth(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
1100
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.authControllerDiscordAuth(options);
|
|
1101
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1102
|
+
const localVarOperationServerBasePath = operationServerMap['ApiV1AuthApi.authControllerDiscordAuth']?.[localVarOperationServerIndex]?.url;
|
|
1103
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1104
|
+
},
|
|
1105
|
+
/**
|
|
1106
|
+
*
|
|
1107
|
+
* @summary Handle Discord OAuth callback
|
|
1108
|
+
* @param {*} [options] Override http request option.
|
|
1109
|
+
* @throws {RequiredError}
|
|
1110
|
+
*/
|
|
1111
|
+
async authControllerDiscordCallback(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
|
|
1112
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.authControllerDiscordCallback(options);
|
|
1113
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1114
|
+
const localVarOperationServerBasePath = operationServerMap['ApiV1AuthApi.authControllerDiscordCallback']?.[localVarOperationServerIndex]?.url;
|
|
1115
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1116
|
+
},
|
|
973
1117
|
/**
|
|
974
1118
|
*
|
|
975
1119
|
* @summary Get linked OAuth providers for current user
|
|
@@ -982,6 +1126,30 @@ export const ApiV1AuthApiFp = function(configuration?: Configuration) {
|
|
|
982
1126
|
const localVarOperationServerBasePath = operationServerMap['ApiV1AuthApi.authControllerGetProviders']?.[localVarOperationServerIndex]?.url;
|
|
983
1127
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
984
1128
|
},
|
|
1129
|
+
/**
|
|
1130
|
+
*
|
|
1131
|
+
* @summary Initiate GitHub OAuth flow
|
|
1132
|
+
* @param {*} [options] Override http request option.
|
|
1133
|
+
* @throws {RequiredError}
|
|
1134
|
+
*/
|
|
1135
|
+
async authControllerGithubAuth(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
1136
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.authControllerGithubAuth(options);
|
|
1137
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1138
|
+
const localVarOperationServerBasePath = operationServerMap['ApiV1AuthApi.authControllerGithubAuth']?.[localVarOperationServerIndex]?.url;
|
|
1139
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1140
|
+
},
|
|
1141
|
+
/**
|
|
1142
|
+
*
|
|
1143
|
+
* @summary Handle GitHub OAuth callback
|
|
1144
|
+
* @param {*} [options] Override http request option.
|
|
1145
|
+
* @throws {RequiredError}
|
|
1146
|
+
*/
|
|
1147
|
+
async authControllerGithubCallback(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
|
|
1148
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.authControllerGithubCallback(options);
|
|
1149
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1150
|
+
const localVarOperationServerBasePath = operationServerMap['ApiV1AuthApi.authControllerGithubCallback']?.[localVarOperationServerIndex]?.url;
|
|
1151
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1152
|
+
},
|
|
985
1153
|
/**
|
|
986
1154
|
*
|
|
987
1155
|
* @summary Initiate Google OAuth flow
|
|
@@ -1091,6 +1259,24 @@ export const ApiV1AuthApiFp = function(configuration?: Configuration) {
|
|
|
1091
1259
|
export const ApiV1AuthApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
1092
1260
|
const localVarFp = ApiV1AuthApiFp(configuration)
|
|
1093
1261
|
return {
|
|
1262
|
+
/**
|
|
1263
|
+
*
|
|
1264
|
+
* @summary Initiate Discord OAuth flow
|
|
1265
|
+
* @param {*} [options] Override http request option.
|
|
1266
|
+
* @throws {RequiredError}
|
|
1267
|
+
*/
|
|
1268
|
+
authControllerDiscordAuth(options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
1269
|
+
return localVarFp.authControllerDiscordAuth(options).then((request) => request(axios, basePath));
|
|
1270
|
+
},
|
|
1271
|
+
/**
|
|
1272
|
+
*
|
|
1273
|
+
* @summary Handle Discord OAuth callback
|
|
1274
|
+
* @param {*} [options] Override http request option.
|
|
1275
|
+
* @throws {RequiredError}
|
|
1276
|
+
*/
|
|
1277
|
+
authControllerDiscordCallback(options?: RawAxiosRequestConfig): AxiosPromise<object> {
|
|
1278
|
+
return localVarFp.authControllerDiscordCallback(options).then((request) => request(axios, basePath));
|
|
1279
|
+
},
|
|
1094
1280
|
/**
|
|
1095
1281
|
*
|
|
1096
1282
|
* @summary Get linked OAuth providers for current user
|
|
@@ -1100,6 +1286,24 @@ export const ApiV1AuthApiFactory = function (configuration?: Configuration, base
|
|
|
1100
1286
|
authControllerGetProviders(options?: RawAxiosRequestConfig): AxiosPromise<object> {
|
|
1101
1287
|
return localVarFp.authControllerGetProviders(options).then((request) => request(axios, basePath));
|
|
1102
1288
|
},
|
|
1289
|
+
/**
|
|
1290
|
+
*
|
|
1291
|
+
* @summary Initiate GitHub OAuth flow
|
|
1292
|
+
* @param {*} [options] Override http request option.
|
|
1293
|
+
* @throws {RequiredError}
|
|
1294
|
+
*/
|
|
1295
|
+
authControllerGithubAuth(options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
1296
|
+
return localVarFp.authControllerGithubAuth(options).then((request) => request(axios, basePath));
|
|
1297
|
+
},
|
|
1298
|
+
/**
|
|
1299
|
+
*
|
|
1300
|
+
* @summary Handle GitHub OAuth callback
|
|
1301
|
+
* @param {*} [options] Override http request option.
|
|
1302
|
+
* @throws {RequiredError}
|
|
1303
|
+
*/
|
|
1304
|
+
authControllerGithubCallback(options?: RawAxiosRequestConfig): AxiosPromise<object> {
|
|
1305
|
+
return localVarFp.authControllerGithubCallback(options).then((request) => request(axios, basePath));
|
|
1306
|
+
},
|
|
1103
1307
|
/**
|
|
1104
1308
|
*
|
|
1105
1309
|
* @summary Initiate Google OAuth flow
|
|
@@ -1184,6 +1388,24 @@ export const ApiV1AuthApiFactory = function (configuration?: Configuration, base
|
|
|
1184
1388
|
* @interface ApiV1AuthApi
|
|
1185
1389
|
*/
|
|
1186
1390
|
export interface ApiV1AuthApiInterface {
|
|
1391
|
+
/**
|
|
1392
|
+
*
|
|
1393
|
+
* @summary Initiate Discord OAuth flow
|
|
1394
|
+
* @param {*} [options] Override http request option.
|
|
1395
|
+
* @throws {RequiredError}
|
|
1396
|
+
* @memberof ApiV1AuthApiInterface
|
|
1397
|
+
*/
|
|
1398
|
+
authControllerDiscordAuth(options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
1399
|
+
|
|
1400
|
+
/**
|
|
1401
|
+
*
|
|
1402
|
+
* @summary Handle Discord OAuth callback
|
|
1403
|
+
* @param {*} [options] Override http request option.
|
|
1404
|
+
* @throws {RequiredError}
|
|
1405
|
+
* @memberof ApiV1AuthApiInterface
|
|
1406
|
+
*/
|
|
1407
|
+
authControllerDiscordCallback(options?: RawAxiosRequestConfig): AxiosPromise<object>;
|
|
1408
|
+
|
|
1187
1409
|
/**
|
|
1188
1410
|
*
|
|
1189
1411
|
* @summary Get linked OAuth providers for current user
|
|
@@ -1193,6 +1415,24 @@ export interface ApiV1AuthApiInterface {
|
|
|
1193
1415
|
*/
|
|
1194
1416
|
authControllerGetProviders(options?: RawAxiosRequestConfig): AxiosPromise<object>;
|
|
1195
1417
|
|
|
1418
|
+
/**
|
|
1419
|
+
*
|
|
1420
|
+
* @summary Initiate GitHub OAuth flow
|
|
1421
|
+
* @param {*} [options] Override http request option.
|
|
1422
|
+
* @throws {RequiredError}
|
|
1423
|
+
* @memberof ApiV1AuthApiInterface
|
|
1424
|
+
*/
|
|
1425
|
+
authControllerGithubAuth(options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
1426
|
+
|
|
1427
|
+
/**
|
|
1428
|
+
*
|
|
1429
|
+
* @summary Handle GitHub OAuth callback
|
|
1430
|
+
* @param {*} [options] Override http request option.
|
|
1431
|
+
* @throws {RequiredError}
|
|
1432
|
+
* @memberof ApiV1AuthApiInterface
|
|
1433
|
+
*/
|
|
1434
|
+
authControllerGithubCallback(options?: RawAxiosRequestConfig): AxiosPromise<object>;
|
|
1435
|
+
|
|
1196
1436
|
/**
|
|
1197
1437
|
*
|
|
1198
1438
|
* @summary Initiate Google OAuth flow
|
|
@@ -1319,6 +1559,28 @@ export interface ApiV1AuthApiAuthControllerRegisterRequest {
|
|
|
1319
1559
|
* @extends {BaseAPI}
|
|
1320
1560
|
*/
|
|
1321
1561
|
export class ApiV1AuthApi extends BaseAPI implements ApiV1AuthApiInterface {
|
|
1562
|
+
/**
|
|
1563
|
+
*
|
|
1564
|
+
* @summary Initiate Discord OAuth flow
|
|
1565
|
+
* @param {*} [options] Override http request option.
|
|
1566
|
+
* @throws {RequiredError}
|
|
1567
|
+
* @memberof ApiV1AuthApi
|
|
1568
|
+
*/
|
|
1569
|
+
public authControllerDiscordAuth(options?: RawAxiosRequestConfig) {
|
|
1570
|
+
return ApiV1AuthApiFp(this.configuration).authControllerDiscordAuth(options).then((request) => request(this.axios, this.basePath));
|
|
1571
|
+
}
|
|
1572
|
+
|
|
1573
|
+
/**
|
|
1574
|
+
*
|
|
1575
|
+
* @summary Handle Discord OAuth callback
|
|
1576
|
+
* @param {*} [options] Override http request option.
|
|
1577
|
+
* @throws {RequiredError}
|
|
1578
|
+
* @memberof ApiV1AuthApi
|
|
1579
|
+
*/
|
|
1580
|
+
public authControllerDiscordCallback(options?: RawAxiosRequestConfig) {
|
|
1581
|
+
return ApiV1AuthApiFp(this.configuration).authControllerDiscordCallback(options).then((request) => request(this.axios, this.basePath));
|
|
1582
|
+
}
|
|
1583
|
+
|
|
1322
1584
|
/**
|
|
1323
1585
|
*
|
|
1324
1586
|
* @summary Get linked OAuth providers for current user
|
|
@@ -1330,6 +1592,28 @@ export class ApiV1AuthApi extends BaseAPI implements ApiV1AuthApiInterface {
|
|
|
1330
1592
|
return ApiV1AuthApiFp(this.configuration).authControllerGetProviders(options).then((request) => request(this.axios, this.basePath));
|
|
1331
1593
|
}
|
|
1332
1594
|
|
|
1595
|
+
/**
|
|
1596
|
+
*
|
|
1597
|
+
* @summary Initiate GitHub OAuth flow
|
|
1598
|
+
* @param {*} [options] Override http request option.
|
|
1599
|
+
* @throws {RequiredError}
|
|
1600
|
+
* @memberof ApiV1AuthApi
|
|
1601
|
+
*/
|
|
1602
|
+
public authControllerGithubAuth(options?: RawAxiosRequestConfig) {
|
|
1603
|
+
return ApiV1AuthApiFp(this.configuration).authControllerGithubAuth(options).then((request) => request(this.axios, this.basePath));
|
|
1604
|
+
}
|
|
1605
|
+
|
|
1606
|
+
/**
|
|
1607
|
+
*
|
|
1608
|
+
* @summary Handle GitHub OAuth callback
|
|
1609
|
+
* @param {*} [options] Override http request option.
|
|
1610
|
+
* @throws {RequiredError}
|
|
1611
|
+
* @memberof ApiV1AuthApi
|
|
1612
|
+
*/
|
|
1613
|
+
public authControllerGithubCallback(options?: RawAxiosRequestConfig) {
|
|
1614
|
+
return ApiV1AuthApiFp(this.configuration).authControllerGithubCallback(options).then((request) => request(this.axios, this.basePath));
|
|
1615
|
+
}
|
|
1616
|
+
|
|
1333
1617
|
/**
|
|
1334
1618
|
*
|
|
1335
1619
|
* @summary Initiate Google OAuth flow
|
package/dist/api.d.ts
CHANGED
|
@@ -235,10 +235,10 @@ export interface UserDto {
|
|
|
235
235
|
'updatedAt': string;
|
|
236
236
|
/**
|
|
237
237
|
*
|
|
238
|
-
* @type {Array<Array<
|
|
238
|
+
* @type {Array<Array<WorkerItemDto>>}
|
|
239
239
|
* @memberof UserDto
|
|
240
240
|
*/
|
|
241
|
-
'workers': Array<Array<
|
|
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
|