@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/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/dist/esm/api.js
CHANGED
|
@@ -50,6 +50,56 @@ export const WorkerSortByDtoOrderEnum = {
|
|
|
50
50
|
*/
|
|
51
51
|
export const ApiV1AuthApiAxiosParamCreator = function (configuration) {
|
|
52
52
|
return {
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @summary Initiate Discord OAuth flow
|
|
56
|
+
* @param {*} [options] Override http request option.
|
|
57
|
+
* @throws {RequiredError}
|
|
58
|
+
*/
|
|
59
|
+
authControllerDiscordAuth: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
60
|
+
const localVarPath = `/api/v1/auth/oauth/discord`;
|
|
61
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
62
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
63
|
+
let baseOptions;
|
|
64
|
+
if (configuration) {
|
|
65
|
+
baseOptions = configuration.baseOptions;
|
|
66
|
+
}
|
|
67
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
68
|
+
const localVarHeaderParameter = {};
|
|
69
|
+
const localVarQueryParameter = {};
|
|
70
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
71
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
72
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
73
|
+
return {
|
|
74
|
+
url: toPathString(localVarUrlObj),
|
|
75
|
+
options: localVarRequestOptions,
|
|
76
|
+
};
|
|
77
|
+
}),
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
* @summary Handle Discord OAuth callback
|
|
81
|
+
* @param {*} [options] Override http request option.
|
|
82
|
+
* @throws {RequiredError}
|
|
83
|
+
*/
|
|
84
|
+
authControllerDiscordCallback: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
85
|
+
const localVarPath = `/api/v1/auth/oauth/discord/callback`;
|
|
86
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
87
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
88
|
+
let baseOptions;
|
|
89
|
+
if (configuration) {
|
|
90
|
+
baseOptions = configuration.baseOptions;
|
|
91
|
+
}
|
|
92
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
93
|
+
const localVarHeaderParameter = {};
|
|
94
|
+
const localVarQueryParameter = {};
|
|
95
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
96
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
97
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
98
|
+
return {
|
|
99
|
+
url: toPathString(localVarUrlObj),
|
|
100
|
+
options: localVarRequestOptions,
|
|
101
|
+
};
|
|
102
|
+
}),
|
|
53
103
|
/**
|
|
54
104
|
*
|
|
55
105
|
* @summary Get linked OAuth providers for current user
|
|
@@ -75,6 +125,56 @@ export const ApiV1AuthApiAxiosParamCreator = function (configuration) {
|
|
|
75
125
|
options: localVarRequestOptions,
|
|
76
126
|
};
|
|
77
127
|
}),
|
|
128
|
+
/**
|
|
129
|
+
*
|
|
130
|
+
* @summary Initiate GitHub OAuth flow
|
|
131
|
+
* @param {*} [options] Override http request option.
|
|
132
|
+
* @throws {RequiredError}
|
|
133
|
+
*/
|
|
134
|
+
authControllerGithubAuth: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
135
|
+
const localVarPath = `/api/v1/auth/oauth/github`;
|
|
136
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
137
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
138
|
+
let baseOptions;
|
|
139
|
+
if (configuration) {
|
|
140
|
+
baseOptions = configuration.baseOptions;
|
|
141
|
+
}
|
|
142
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
143
|
+
const localVarHeaderParameter = {};
|
|
144
|
+
const localVarQueryParameter = {};
|
|
145
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
146
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
147
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
148
|
+
return {
|
|
149
|
+
url: toPathString(localVarUrlObj),
|
|
150
|
+
options: localVarRequestOptions,
|
|
151
|
+
};
|
|
152
|
+
}),
|
|
153
|
+
/**
|
|
154
|
+
*
|
|
155
|
+
* @summary Handle GitHub OAuth callback
|
|
156
|
+
* @param {*} [options] Override http request option.
|
|
157
|
+
* @throws {RequiredError}
|
|
158
|
+
*/
|
|
159
|
+
authControllerGithubCallback: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
160
|
+
const localVarPath = `/api/v1/auth/oauth/github/callback`;
|
|
161
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
162
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
163
|
+
let baseOptions;
|
|
164
|
+
if (configuration) {
|
|
165
|
+
baseOptions = configuration.baseOptions;
|
|
166
|
+
}
|
|
167
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
168
|
+
const localVarHeaderParameter = {};
|
|
169
|
+
const localVarQueryParameter = {};
|
|
170
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
171
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
172
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
173
|
+
return {
|
|
174
|
+
url: toPathString(localVarUrlObj),
|
|
175
|
+
options: localVarRequestOptions,
|
|
176
|
+
};
|
|
177
|
+
}),
|
|
78
178
|
/**
|
|
79
179
|
*
|
|
80
180
|
* @summary Initiate Google OAuth flow
|
|
@@ -299,6 +399,36 @@ export const ApiV1AuthApiAxiosParamCreator = function (configuration) {
|
|
|
299
399
|
export const ApiV1AuthApiFp = function (configuration) {
|
|
300
400
|
const localVarAxiosParamCreator = ApiV1AuthApiAxiosParamCreator(configuration);
|
|
301
401
|
return {
|
|
402
|
+
/**
|
|
403
|
+
*
|
|
404
|
+
* @summary Initiate Discord OAuth flow
|
|
405
|
+
* @param {*} [options] Override http request option.
|
|
406
|
+
* @throws {RequiredError}
|
|
407
|
+
*/
|
|
408
|
+
authControllerDiscordAuth(options) {
|
|
409
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
410
|
+
var _a, _b, _c;
|
|
411
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.authControllerDiscordAuth(options);
|
|
412
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
413
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ApiV1AuthApi.authControllerDiscordAuth']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
414
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
415
|
+
});
|
|
416
|
+
},
|
|
417
|
+
/**
|
|
418
|
+
*
|
|
419
|
+
* @summary Handle Discord OAuth callback
|
|
420
|
+
* @param {*} [options] Override http request option.
|
|
421
|
+
* @throws {RequiredError}
|
|
422
|
+
*/
|
|
423
|
+
authControllerDiscordCallback(options) {
|
|
424
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
425
|
+
var _a, _b, _c;
|
|
426
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.authControllerDiscordCallback(options);
|
|
427
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
428
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ApiV1AuthApi.authControllerDiscordCallback']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
429
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
430
|
+
});
|
|
431
|
+
},
|
|
302
432
|
/**
|
|
303
433
|
*
|
|
304
434
|
* @summary Get linked OAuth providers for current user
|
|
@@ -314,6 +444,36 @@ export const ApiV1AuthApiFp = function (configuration) {
|
|
|
314
444
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
315
445
|
});
|
|
316
446
|
},
|
|
447
|
+
/**
|
|
448
|
+
*
|
|
449
|
+
* @summary Initiate GitHub OAuth flow
|
|
450
|
+
* @param {*} [options] Override http request option.
|
|
451
|
+
* @throws {RequiredError}
|
|
452
|
+
*/
|
|
453
|
+
authControllerGithubAuth(options) {
|
|
454
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
455
|
+
var _a, _b, _c;
|
|
456
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.authControllerGithubAuth(options);
|
|
457
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
458
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ApiV1AuthApi.authControllerGithubAuth']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
459
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
460
|
+
});
|
|
461
|
+
},
|
|
462
|
+
/**
|
|
463
|
+
*
|
|
464
|
+
* @summary Handle GitHub OAuth callback
|
|
465
|
+
* @param {*} [options] Override http request option.
|
|
466
|
+
* @throws {RequiredError}
|
|
467
|
+
*/
|
|
468
|
+
authControllerGithubCallback(options) {
|
|
469
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
470
|
+
var _a, _b, _c;
|
|
471
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.authControllerGithubCallback(options);
|
|
472
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
473
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ApiV1AuthApi.authControllerGithubCallback']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
474
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
475
|
+
});
|
|
476
|
+
},
|
|
317
477
|
/**
|
|
318
478
|
*
|
|
319
479
|
* @summary Initiate Google OAuth flow
|
|
@@ -446,6 +606,24 @@ export const ApiV1AuthApiFp = function (configuration) {
|
|
|
446
606
|
export const ApiV1AuthApiFactory = function (configuration, basePath, axios) {
|
|
447
607
|
const localVarFp = ApiV1AuthApiFp(configuration);
|
|
448
608
|
return {
|
|
609
|
+
/**
|
|
610
|
+
*
|
|
611
|
+
* @summary Initiate Discord OAuth flow
|
|
612
|
+
* @param {*} [options] Override http request option.
|
|
613
|
+
* @throws {RequiredError}
|
|
614
|
+
*/
|
|
615
|
+
authControllerDiscordAuth(options) {
|
|
616
|
+
return localVarFp.authControllerDiscordAuth(options).then((request) => request(axios, basePath));
|
|
617
|
+
},
|
|
618
|
+
/**
|
|
619
|
+
*
|
|
620
|
+
* @summary Handle Discord OAuth callback
|
|
621
|
+
* @param {*} [options] Override http request option.
|
|
622
|
+
* @throws {RequiredError}
|
|
623
|
+
*/
|
|
624
|
+
authControllerDiscordCallback(options) {
|
|
625
|
+
return localVarFp.authControllerDiscordCallback(options).then((request) => request(axios, basePath));
|
|
626
|
+
},
|
|
449
627
|
/**
|
|
450
628
|
*
|
|
451
629
|
* @summary Get linked OAuth providers for current user
|
|
@@ -455,6 +633,24 @@ export const ApiV1AuthApiFactory = function (configuration, basePath, axios) {
|
|
|
455
633
|
authControllerGetProviders(options) {
|
|
456
634
|
return localVarFp.authControllerGetProviders(options).then((request) => request(axios, basePath));
|
|
457
635
|
},
|
|
636
|
+
/**
|
|
637
|
+
*
|
|
638
|
+
* @summary Initiate GitHub OAuth flow
|
|
639
|
+
* @param {*} [options] Override http request option.
|
|
640
|
+
* @throws {RequiredError}
|
|
641
|
+
*/
|
|
642
|
+
authControllerGithubAuth(options) {
|
|
643
|
+
return localVarFp.authControllerGithubAuth(options).then((request) => request(axios, basePath));
|
|
644
|
+
},
|
|
645
|
+
/**
|
|
646
|
+
*
|
|
647
|
+
* @summary Handle GitHub OAuth callback
|
|
648
|
+
* @param {*} [options] Override http request option.
|
|
649
|
+
* @throws {RequiredError}
|
|
650
|
+
*/
|
|
651
|
+
authControllerGithubCallback(options) {
|
|
652
|
+
return localVarFp.authControllerGithubCallback(options).then((request) => request(axios, basePath));
|
|
653
|
+
},
|
|
458
654
|
/**
|
|
459
655
|
*
|
|
460
656
|
* @summary Initiate Google OAuth flow
|
|
@@ -539,6 +735,26 @@ export const ApiV1AuthApiFactory = function (configuration, basePath, axios) {
|
|
|
539
735
|
* @extends {BaseAPI}
|
|
540
736
|
*/
|
|
541
737
|
export class ApiV1AuthApi extends BaseAPI {
|
|
738
|
+
/**
|
|
739
|
+
*
|
|
740
|
+
* @summary Initiate Discord OAuth flow
|
|
741
|
+
* @param {*} [options] Override http request option.
|
|
742
|
+
* @throws {RequiredError}
|
|
743
|
+
* @memberof ApiV1AuthApi
|
|
744
|
+
*/
|
|
745
|
+
authControllerDiscordAuth(options) {
|
|
746
|
+
return ApiV1AuthApiFp(this.configuration).authControllerDiscordAuth(options).then((request) => request(this.axios, this.basePath));
|
|
747
|
+
}
|
|
748
|
+
/**
|
|
749
|
+
*
|
|
750
|
+
* @summary Handle Discord OAuth callback
|
|
751
|
+
* @param {*} [options] Override http request option.
|
|
752
|
+
* @throws {RequiredError}
|
|
753
|
+
* @memberof ApiV1AuthApi
|
|
754
|
+
*/
|
|
755
|
+
authControllerDiscordCallback(options) {
|
|
756
|
+
return ApiV1AuthApiFp(this.configuration).authControllerDiscordCallback(options).then((request) => request(this.axios, this.basePath));
|
|
757
|
+
}
|
|
542
758
|
/**
|
|
543
759
|
*
|
|
544
760
|
* @summary Get linked OAuth providers for current user
|
|
@@ -549,6 +765,26 @@ export class ApiV1AuthApi extends BaseAPI {
|
|
|
549
765
|
authControllerGetProviders(options) {
|
|
550
766
|
return ApiV1AuthApiFp(this.configuration).authControllerGetProviders(options).then((request) => request(this.axios, this.basePath));
|
|
551
767
|
}
|
|
768
|
+
/**
|
|
769
|
+
*
|
|
770
|
+
* @summary Initiate GitHub OAuth flow
|
|
771
|
+
* @param {*} [options] Override http request option.
|
|
772
|
+
* @throws {RequiredError}
|
|
773
|
+
* @memberof ApiV1AuthApi
|
|
774
|
+
*/
|
|
775
|
+
authControllerGithubAuth(options) {
|
|
776
|
+
return ApiV1AuthApiFp(this.configuration).authControllerGithubAuth(options).then((request) => request(this.axios, this.basePath));
|
|
777
|
+
}
|
|
778
|
+
/**
|
|
779
|
+
*
|
|
780
|
+
* @summary Handle GitHub OAuth callback
|
|
781
|
+
* @param {*} [options] Override http request option.
|
|
782
|
+
* @throws {RequiredError}
|
|
783
|
+
* @memberof ApiV1AuthApi
|
|
784
|
+
*/
|
|
785
|
+
authControllerGithubCallback(options) {
|
|
786
|
+
return ApiV1AuthApiFp(this.configuration).authControllerGithubCallback(options).then((request) => request(this.axios, this.basePath));
|
|
787
|
+
}
|
|
552
788
|
/**
|
|
553
789
|
*
|
|
554
790
|
* @summary Initiate Google OAuth flow
|