gopadjs 2.4.1 → 2.6.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/.github/RELEASE +1 -1
- package/.github/renovate.json +1 -1
- package/.openapi-generator/FILES +18 -10
- package/CHANGELOG.md +26 -0
- package/README.md +2 -2
- package/api/auth-api.ts +179 -114
- package/api/{team-api.ts → group-api.ts} +466 -472
- package/api/profile-api.ts +33 -18
- package/api/user-api.ts +220 -236
- package/api.ts +1 -1
- package/flake.lock +6 -6
- package/model/create-group-request.ts +33 -0
- package/model/create-user-request.ts +57 -0
- package/model/delete-group-from-user-request.ts +27 -0
- package/model/delete-user-from-group-request.ts +27 -0
- package/model/{team.ts → group.ts} +8 -18
- package/model/index.ts +17 -9
- package/model/list-group-users200-response.ts +58 -0
- package/model/{team-users.ts → list-groups200-response.ts} +18 -15
- package/model/{teams.ts → list-providers200-response.ts} +9 -9
- package/model/{user-teams.ts → list-user-groups200-response.ts} +24 -12
- package/model/{users.ts → list-users200-response.ts} +19 -7
- package/model/{auth-login.ts → login-auth-request.ts} +4 -4
- package/model/{team-user-params.ts → permit-group-user-request.ts} +6 -15
- package/model/{user-team-params.ts → permit-user-group-request.ts} +7 -16
- package/model/profile.ts +3 -3
- package/model/provider.ts +45 -0
- package/model/update-profile-request.ts +45 -0
- package/model/update-user-request.ts +57 -0
- package/model/{user-team.ts → user-group.ts} +19 -19
- package/model/user.ts +0 -9
- package/openapi.yml +1 -1
- package/package.json +1 -1
package/.github/RELEASE
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Mon Feb
|
|
1
|
+
Mon Feb 24 08:13:06 UTC 2025
|
package/.github/renovate.json
CHANGED
package/.openapi-generator/FILES
CHANGED
|
@@ -2,29 +2,37 @@
|
|
|
2
2
|
README.md
|
|
3
3
|
api.ts
|
|
4
4
|
api/auth-api.ts
|
|
5
|
+
api/group-api.ts
|
|
5
6
|
api/profile-api.ts
|
|
6
|
-
api/team-api.ts
|
|
7
7
|
api/user-api.ts
|
|
8
8
|
base.ts
|
|
9
9
|
common.ts
|
|
10
10
|
configuration.ts
|
|
11
11
|
index.ts
|
|
12
|
-
model/auth-login.ts
|
|
13
12
|
model/auth-token.ts
|
|
14
13
|
model/auth-verify.ts
|
|
14
|
+
model/create-group-request.ts
|
|
15
|
+
model/create-user-request.ts
|
|
16
|
+
model/delete-group-from-user-request.ts
|
|
17
|
+
model/delete-user-from-group-request.ts
|
|
18
|
+
model/group.ts
|
|
15
19
|
model/index.ts
|
|
20
|
+
model/list-group-users200-response.ts
|
|
21
|
+
model/list-groups200-response.ts
|
|
22
|
+
model/list-providers200-response.ts
|
|
23
|
+
model/list-user-groups200-response.ts
|
|
24
|
+
model/list-users200-response.ts
|
|
25
|
+
model/login-auth-request.ts
|
|
16
26
|
model/notification.ts
|
|
27
|
+
model/permit-group-user-request.ts
|
|
28
|
+
model/permit-user-group-request.ts
|
|
17
29
|
model/profile.ts
|
|
18
|
-
model/
|
|
19
|
-
model/
|
|
20
|
-
model/
|
|
21
|
-
model/teams.ts
|
|
30
|
+
model/provider.ts
|
|
31
|
+
model/update-profile-request.ts
|
|
32
|
+
model/update-user-request.ts
|
|
22
33
|
model/user-auth.ts
|
|
23
|
-
model/user-
|
|
24
|
-
model/user-team.ts
|
|
25
|
-
model/user-teams.ts
|
|
34
|
+
model/user-group.ts
|
|
26
35
|
model/user.ts
|
|
27
|
-
model/users.ts
|
|
28
36
|
model/validation.ts
|
|
29
37
|
tsconfig.esm.json
|
|
30
38
|
tsconfig.json
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,31 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [2.6.0](https://github.com/gopad/gopad-js/compare/v2.5.0...v2.6.0) (2025-03-03)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* **deps:** update dependency axios to v1.8.1 ([#174](https://github.com/gopad/gopad-js/issues/174)) ([cf97d69](https://github.com/gopad/gopad-js/commit/cf97d69385efe11c5e97e8e696d26fdd3df651ba))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bugfixes
|
|
12
|
+
|
|
13
|
+
* **deps:** update dependency prettier to v3.5.3 ([#175](https://github.com/gopad/gopad-js/issues/175)) ([38bf502](https://github.com/gopad/gopad-js/commit/38bf5023e2dd1453d29648d6d3392d1ee10717b9))
|
|
14
|
+
|
|
15
|
+
## [2.5.0](https://github.com/gopad/gopad-js/compare/v2.4.1...v2.5.0) (2025-02-24)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Features
|
|
19
|
+
|
|
20
|
+
* automated openapi client update ([5827687](https://github.com/gopad/gopad-js/commit/5827687912b62aa5fa5a6eb0a38c062c05f77e18))
|
|
21
|
+
* automated openapi client update ([5dfa623](https://github.com/gopad/gopad-js/commit/5dfa623c10e47f190959950455cbc4d46e840be0))
|
|
22
|
+
* entirely regenerate client locally ([9f7bb87](https://github.com/gopad/gopad-js/commit/9f7bb87b7187331d9a102ca059b626ad26837f83))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### Bugfixes
|
|
26
|
+
|
|
27
|
+
* **deps:** update dependency prettier to v3.5.2 ([#173](https://github.com/gopad/gopad-js/issues/173)) ([74893f7](https://github.com/gopad/gopad-js/commit/74893f7be8c579fe0046ac44b2df57412d778a98))
|
|
28
|
+
|
|
3
29
|
## [2.4.1](https://github.com/gopad/gopad-js/compare/v2.4.0...v2.4.1) (2025-02-17)
|
|
4
30
|
|
|
5
31
|
|
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@ This repository provides a client SDK for Typescript/Javascript. This SDK is
|
|
|
6
6
|
automatically generated by the [OpenAPI Generator][generator] project:
|
|
7
7
|
|
|
8
8
|
- API version: 1.0.0-alpha1
|
|
9
|
-
- Package version: 2.
|
|
9
|
+
- Package version: 2.6.0
|
|
10
10
|
- Build package: org.openapitools.codegen.languages.TypeScriptAxiosClientCodegen
|
|
11
11
|
|
|
12
12
|
For more information, please visit [https://gopad.eu](https://gopad.eu)
|
|
@@ -39,7 +39,7 @@ the following command within your project directory, after that you can import
|
|
|
39
39
|
it as other libraries:
|
|
40
40
|
|
|
41
41
|
```console
|
|
42
|
-
npm install --save gopadjs@2.
|
|
42
|
+
npm install --save gopadjs@2.6.0
|
|
43
43
|
```
|
|
44
44
|
|
|
45
45
|
### Installation with Git
|
package/api/auth-api.ts
CHANGED
|
@@ -42,12 +42,14 @@ import {
|
|
|
42
42
|
operationServerMap,
|
|
43
43
|
} from "../base";
|
|
44
44
|
// @ts-ignore
|
|
45
|
-
import type { AuthLogin } from "../model";
|
|
46
|
-
// @ts-ignore
|
|
47
45
|
import type { AuthToken } from "../model";
|
|
48
46
|
// @ts-ignore
|
|
49
47
|
import type { AuthVerify } from "../model";
|
|
50
48
|
// @ts-ignore
|
|
49
|
+
import type { ListProviders200Response } from "../model";
|
|
50
|
+
// @ts-ignore
|
|
51
|
+
import type { LoginAuthRequest } from "../model";
|
|
52
|
+
// @ts-ignore
|
|
51
53
|
import type { Notification } from "../model";
|
|
52
54
|
/**
|
|
53
55
|
* AuthApi - axios parameter creator
|
|
@@ -59,21 +61,21 @@ export const AuthApiAxiosParamCreator = function (
|
|
|
59
61
|
return {
|
|
60
62
|
/**
|
|
61
63
|
*
|
|
62
|
-
* @summary Callback
|
|
64
|
+
* @summary Callback to parse the defined provider
|
|
63
65
|
* @param {string} provider An identifier for the auth provider
|
|
64
66
|
* @param {string} [state] Auth state
|
|
65
67
|
* @param {string} [code] Auth code
|
|
66
68
|
* @param {*} [options] Override http request option.
|
|
67
69
|
* @throws {RequiredError}
|
|
68
70
|
*/
|
|
69
|
-
|
|
71
|
+
callbackProvider: async (
|
|
70
72
|
provider: string,
|
|
71
73
|
state?: string,
|
|
72
74
|
code?: string,
|
|
73
75
|
options: RawAxiosRequestConfig = {},
|
|
74
76
|
): Promise<RequestArgs> => {
|
|
75
77
|
// verify required parameter 'provider' is not null or undefined
|
|
76
|
-
assertParamExists("
|
|
78
|
+
assertParamExists("callbackProvider", "provider", provider);
|
|
77
79
|
const localVarPath = `/auth/{provider}/callback`.replace(
|
|
78
80
|
`{${"provider"}}`,
|
|
79
81
|
encodeURIComponent(String(provider)),
|
|
@@ -117,23 +119,14 @@ export const AuthApiAxiosParamCreator = function (
|
|
|
117
119
|
},
|
|
118
120
|
/**
|
|
119
121
|
*
|
|
120
|
-
* @summary
|
|
121
|
-
* @param {string} provider An identifier for the auth provider
|
|
122
|
-
* @param {string} [state] Auth state
|
|
122
|
+
* @summary Fetch the available auth providers
|
|
123
123
|
* @param {*} [options] Override http request option.
|
|
124
124
|
* @throws {RequiredError}
|
|
125
125
|
*/
|
|
126
|
-
|
|
127
|
-
provider: string,
|
|
128
|
-
state?: string,
|
|
126
|
+
listProviders: async (
|
|
129
127
|
options: RawAxiosRequestConfig = {},
|
|
130
128
|
): Promise<RequestArgs> => {
|
|
131
|
-
|
|
132
|
-
assertParamExists("externalInitialize", "provider", provider);
|
|
133
|
-
const localVarPath = `/auth/{provider}/initialize`.replace(
|
|
134
|
-
`{${"provider"}}`,
|
|
135
|
-
encodeURIComponent(String(provider)),
|
|
136
|
-
);
|
|
129
|
+
const localVarPath = `/auth/providers`;
|
|
137
130
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
138
131
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
139
132
|
let baseOptions;
|
|
@@ -149,10 +142,6 @@ export const AuthApiAxiosParamCreator = function (
|
|
|
149
142
|
const localVarHeaderParameter = {} as any;
|
|
150
143
|
const localVarQueryParameter = {} as any;
|
|
151
144
|
|
|
152
|
-
if (state !== undefined) {
|
|
153
|
-
localVarQueryParameter["state"] = state;
|
|
154
|
-
}
|
|
155
|
-
|
|
156
145
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
157
146
|
let headersFromBaseOptions =
|
|
158
147
|
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -170,16 +159,16 @@ export const AuthApiAxiosParamCreator = function (
|
|
|
170
159
|
/**
|
|
171
160
|
*
|
|
172
161
|
* @summary Authenticate an user by credentials
|
|
173
|
-
* @param {
|
|
162
|
+
* @param {LoginAuthRequest} loginAuthRequest The credentials to authenticate
|
|
174
163
|
* @param {*} [options] Override http request option.
|
|
175
164
|
* @throws {RequiredError}
|
|
176
165
|
*/
|
|
177
166
|
loginAuth: async (
|
|
178
|
-
|
|
167
|
+
loginAuthRequest: LoginAuthRequest,
|
|
179
168
|
options: RawAxiosRequestConfig = {},
|
|
180
169
|
): Promise<RequestArgs> => {
|
|
181
|
-
// verify required parameter '
|
|
182
|
-
assertParamExists("loginAuth", "
|
|
170
|
+
// verify required parameter 'loginAuthRequest' is not null or undefined
|
|
171
|
+
assertParamExists("loginAuth", "loginAuthRequest", loginAuthRequest);
|
|
183
172
|
const localVarPath = `/auth/login`;
|
|
184
173
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
185
174
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -207,7 +196,7 @@ export const AuthApiAxiosParamCreator = function (
|
|
|
207
196
|
...options.headers,
|
|
208
197
|
};
|
|
209
198
|
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
210
|
-
|
|
199
|
+
loginAuthRequest,
|
|
211
200
|
localVarRequestOptions,
|
|
212
201
|
configuration,
|
|
213
202
|
);
|
|
@@ -242,9 +231,6 @@ export const AuthApiAxiosParamCreator = function (
|
|
|
242
231
|
const localVarHeaderParameter = {} as any;
|
|
243
232
|
const localVarQueryParameter = {} as any;
|
|
244
233
|
|
|
245
|
-
// authentication Cookie required
|
|
246
|
-
await setApiKeyToObject(localVarHeaderParameter, "Cookie", configuration);
|
|
247
|
-
|
|
248
234
|
// authentication Basic required
|
|
249
235
|
// http basic authentication required
|
|
250
236
|
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
@@ -274,6 +260,52 @@ export const AuthApiAxiosParamCreator = function (
|
|
|
274
260
|
options: localVarRequestOptions,
|
|
275
261
|
};
|
|
276
262
|
},
|
|
263
|
+
/**
|
|
264
|
+
*
|
|
265
|
+
* @summary Request the redirect to defined provider
|
|
266
|
+
* @param {string} provider An identifier for the auth provider
|
|
267
|
+
* @param {*} [options] Override http request option.
|
|
268
|
+
* @throws {RequiredError}
|
|
269
|
+
*/
|
|
270
|
+
requestProvider: async (
|
|
271
|
+
provider: string,
|
|
272
|
+
options: RawAxiosRequestConfig = {},
|
|
273
|
+
): Promise<RequestArgs> => {
|
|
274
|
+
// verify required parameter 'provider' is not null or undefined
|
|
275
|
+
assertParamExists("requestProvider", "provider", provider);
|
|
276
|
+
const localVarPath = `/auth/{provider}/request`.replace(
|
|
277
|
+
`{${"provider"}}`,
|
|
278
|
+
encodeURIComponent(String(provider)),
|
|
279
|
+
);
|
|
280
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
281
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
282
|
+
let baseOptions;
|
|
283
|
+
if (configuration) {
|
|
284
|
+
baseOptions = configuration.baseOptions;
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
const localVarRequestOptions = {
|
|
288
|
+
method: "GET",
|
|
289
|
+
...baseOptions,
|
|
290
|
+
...options,
|
|
291
|
+
};
|
|
292
|
+
const localVarHeaderParameter = {} as any;
|
|
293
|
+
const localVarQueryParameter = {} as any;
|
|
294
|
+
|
|
295
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
296
|
+
let headersFromBaseOptions =
|
|
297
|
+
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
298
|
+
localVarRequestOptions.headers = {
|
|
299
|
+
...localVarHeaderParameter,
|
|
300
|
+
...headersFromBaseOptions,
|
|
301
|
+
...options.headers,
|
|
302
|
+
};
|
|
303
|
+
|
|
304
|
+
return {
|
|
305
|
+
url: toPathString(localVarUrlObj),
|
|
306
|
+
options: localVarRequestOptions,
|
|
307
|
+
};
|
|
308
|
+
},
|
|
277
309
|
/**
|
|
278
310
|
*
|
|
279
311
|
* @summary Verify validity for an authentication token
|
|
@@ -299,9 +331,6 @@ export const AuthApiAxiosParamCreator = function (
|
|
|
299
331
|
const localVarHeaderParameter = {} as any;
|
|
300
332
|
const localVarQueryParameter = {} as any;
|
|
301
333
|
|
|
302
|
-
// authentication Cookie required
|
|
303
|
-
await setApiKeyToObject(localVarHeaderParameter, "Cookie", configuration);
|
|
304
|
-
|
|
305
334
|
// authentication Basic required
|
|
306
335
|
// http basic authentication required
|
|
307
336
|
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
@@ -343,23 +372,23 @@ export const AuthApiFp = function (configuration?: Configuration) {
|
|
|
343
372
|
return {
|
|
344
373
|
/**
|
|
345
374
|
*
|
|
346
|
-
* @summary Callback
|
|
375
|
+
* @summary Callback to parse the defined provider
|
|
347
376
|
* @param {string} provider An identifier for the auth provider
|
|
348
377
|
* @param {string} [state] Auth state
|
|
349
378
|
* @param {string} [code] Auth code
|
|
350
379
|
* @param {*} [options] Override http request option.
|
|
351
380
|
* @throws {RequiredError}
|
|
352
381
|
*/
|
|
353
|
-
async
|
|
382
|
+
async callbackProvider(
|
|
354
383
|
provider: string,
|
|
355
384
|
state?: string,
|
|
356
385
|
code?: string,
|
|
357
386
|
options?: RawAxiosRequestConfig,
|
|
358
387
|
): Promise<
|
|
359
|
-
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
388
|
+
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>
|
|
360
389
|
> {
|
|
361
390
|
const localVarAxiosArgs =
|
|
362
|
-
await localVarAxiosParamCreator.
|
|
391
|
+
await localVarAxiosParamCreator.callbackProvider(
|
|
363
392
|
provider,
|
|
364
393
|
state,
|
|
365
394
|
code,
|
|
@@ -367,7 +396,7 @@ export const AuthApiFp = function (configuration?: Configuration) {
|
|
|
367
396
|
);
|
|
368
397
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
369
398
|
const localVarOperationServerBasePath =
|
|
370
|
-
operationServerMap["AuthApi.
|
|
399
|
+
operationServerMap["AuthApi.callbackProvider"]?.[
|
|
371
400
|
localVarOperationServerIndex
|
|
372
401
|
]?.url;
|
|
373
402
|
return (axios, basePath) =>
|
|
@@ -380,28 +409,23 @@ export const AuthApiFp = function (configuration?: Configuration) {
|
|
|
380
409
|
},
|
|
381
410
|
/**
|
|
382
411
|
*
|
|
383
|
-
* @summary
|
|
384
|
-
* @param {string} provider An identifier for the auth provider
|
|
385
|
-
* @param {string} [state] Auth state
|
|
412
|
+
* @summary Fetch the available auth providers
|
|
386
413
|
* @param {*} [options] Override http request option.
|
|
387
414
|
* @throws {RequiredError}
|
|
388
415
|
*/
|
|
389
|
-
async
|
|
390
|
-
provider: string,
|
|
391
|
-
state?: string,
|
|
416
|
+
async listProviders(
|
|
392
417
|
options?: RawAxiosRequestConfig,
|
|
393
418
|
): Promise<
|
|
394
|
-
(
|
|
419
|
+
(
|
|
420
|
+
axios?: AxiosInstance,
|
|
421
|
+
basePath?: string,
|
|
422
|
+
) => AxiosPromise<ListProviders200Response>
|
|
395
423
|
> {
|
|
396
424
|
const localVarAxiosArgs =
|
|
397
|
-
await localVarAxiosParamCreator.
|
|
398
|
-
provider,
|
|
399
|
-
state,
|
|
400
|
-
options,
|
|
401
|
-
);
|
|
425
|
+
await localVarAxiosParamCreator.listProviders(options);
|
|
402
426
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
403
427
|
const localVarOperationServerBasePath =
|
|
404
|
-
operationServerMap["AuthApi.
|
|
428
|
+
operationServerMap["AuthApi.listProviders"]?.[
|
|
405
429
|
localVarOperationServerIndex
|
|
406
430
|
]?.url;
|
|
407
431
|
return (axios, basePath) =>
|
|
@@ -415,18 +439,18 @@ export const AuthApiFp = function (configuration?: Configuration) {
|
|
|
415
439
|
/**
|
|
416
440
|
*
|
|
417
441
|
* @summary Authenticate an user by credentials
|
|
418
|
-
* @param {
|
|
442
|
+
* @param {LoginAuthRequest} loginAuthRequest The credentials to authenticate
|
|
419
443
|
* @param {*} [options] Override http request option.
|
|
420
444
|
* @throws {RequiredError}
|
|
421
445
|
*/
|
|
422
446
|
async loginAuth(
|
|
423
|
-
|
|
447
|
+
loginAuthRequest: LoginAuthRequest,
|
|
424
448
|
options?: RawAxiosRequestConfig,
|
|
425
449
|
): Promise<
|
|
426
450
|
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AuthToken>
|
|
427
451
|
> {
|
|
428
452
|
const localVarAxiosArgs = await localVarAxiosParamCreator.loginAuth(
|
|
429
|
-
|
|
453
|
+
loginAuthRequest,
|
|
430
454
|
options,
|
|
431
455
|
);
|
|
432
456
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
@@ -467,6 +491,36 @@ export const AuthApiFp = function (configuration?: Configuration) {
|
|
|
467
491
|
configuration,
|
|
468
492
|
)(axios, localVarOperationServerBasePath || basePath);
|
|
469
493
|
},
|
|
494
|
+
/**
|
|
495
|
+
*
|
|
496
|
+
* @summary Request the redirect to defined provider
|
|
497
|
+
* @param {string} provider An identifier for the auth provider
|
|
498
|
+
* @param {*} [options] Override http request option.
|
|
499
|
+
* @throws {RequiredError}
|
|
500
|
+
*/
|
|
501
|
+
async requestProvider(
|
|
502
|
+
provider: string,
|
|
503
|
+
options?: RawAxiosRequestConfig,
|
|
504
|
+
): Promise<
|
|
505
|
+
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>
|
|
506
|
+
> {
|
|
507
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.requestProvider(
|
|
508
|
+
provider,
|
|
509
|
+
options,
|
|
510
|
+
);
|
|
511
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
512
|
+
const localVarOperationServerBasePath =
|
|
513
|
+
operationServerMap["AuthApi.requestProvider"]?.[
|
|
514
|
+
localVarOperationServerIndex
|
|
515
|
+
]?.url;
|
|
516
|
+
return (axios, basePath) =>
|
|
517
|
+
createRequestFunction(
|
|
518
|
+
localVarAxiosArgs,
|
|
519
|
+
globalAxios,
|
|
520
|
+
BASE_PATH,
|
|
521
|
+
configuration,
|
|
522
|
+
)(axios, localVarOperationServerBasePath || basePath);
|
|
523
|
+
},
|
|
470
524
|
/**
|
|
471
525
|
*
|
|
472
526
|
* @summary Verify validity for an authentication token
|
|
@@ -508,17 +562,17 @@ export const AuthApiFactory = function (
|
|
|
508
562
|
return {
|
|
509
563
|
/**
|
|
510
564
|
*
|
|
511
|
-
* @summary Callback
|
|
512
|
-
* @param {
|
|
565
|
+
* @summary Callback to parse the defined provider
|
|
566
|
+
* @param {AuthApiCallbackProviderRequest} requestParameters Request parameters.
|
|
513
567
|
* @param {*} [options] Override http request option.
|
|
514
568
|
* @throws {RequiredError}
|
|
515
569
|
*/
|
|
516
|
-
|
|
517
|
-
requestParameters:
|
|
570
|
+
callbackProvider(
|
|
571
|
+
requestParameters: AuthApiCallbackProviderRequest,
|
|
518
572
|
options?: RawAxiosRequestConfig,
|
|
519
|
-
): AxiosPromise<
|
|
573
|
+
): AxiosPromise<void> {
|
|
520
574
|
return localVarFp
|
|
521
|
-
.
|
|
575
|
+
.callbackProvider(
|
|
522
576
|
requestParameters.provider,
|
|
523
577
|
requestParameters.state,
|
|
524
578
|
requestParameters.code,
|
|
@@ -528,21 +582,15 @@ export const AuthApiFactory = function (
|
|
|
528
582
|
},
|
|
529
583
|
/**
|
|
530
584
|
*
|
|
531
|
-
* @summary
|
|
532
|
-
* @param {AuthApiExternalInitializeRequest} requestParameters Request parameters.
|
|
585
|
+
* @summary Fetch the available auth providers
|
|
533
586
|
* @param {*} [options] Override http request option.
|
|
534
587
|
* @throws {RequiredError}
|
|
535
588
|
*/
|
|
536
|
-
|
|
537
|
-
requestParameters: AuthApiExternalInitializeRequest,
|
|
589
|
+
listProviders(
|
|
538
590
|
options?: RawAxiosRequestConfig,
|
|
539
|
-
): AxiosPromise<
|
|
591
|
+
): AxiosPromise<ListProviders200Response> {
|
|
540
592
|
return localVarFp
|
|
541
|
-
.
|
|
542
|
-
requestParameters.provider,
|
|
543
|
-
requestParameters.state,
|
|
544
|
-
options,
|
|
545
|
-
)
|
|
593
|
+
.listProviders(options)
|
|
546
594
|
.then((request) => request(axios, basePath));
|
|
547
595
|
},
|
|
548
596
|
/**
|
|
@@ -557,7 +605,7 @@ export const AuthApiFactory = function (
|
|
|
557
605
|
options?: RawAxiosRequestConfig,
|
|
558
606
|
): AxiosPromise<AuthToken> {
|
|
559
607
|
return localVarFp
|
|
560
|
-
.loginAuth(requestParameters.
|
|
608
|
+
.loginAuth(requestParameters.loginAuthRequest, options)
|
|
561
609
|
.then((request) => request(axios, basePath));
|
|
562
610
|
},
|
|
563
611
|
/**
|
|
@@ -571,6 +619,21 @@ export const AuthApiFactory = function (
|
|
|
571
619
|
.refreshAuth(options)
|
|
572
620
|
.then((request) => request(axios, basePath));
|
|
573
621
|
},
|
|
622
|
+
/**
|
|
623
|
+
*
|
|
624
|
+
* @summary Request the redirect to defined provider
|
|
625
|
+
* @param {AuthApiRequestProviderRequest} requestParameters Request parameters.
|
|
626
|
+
* @param {*} [options] Override http request option.
|
|
627
|
+
* @throws {RequiredError}
|
|
628
|
+
*/
|
|
629
|
+
requestProvider(
|
|
630
|
+
requestParameters: AuthApiRequestProviderRequest,
|
|
631
|
+
options?: RawAxiosRequestConfig,
|
|
632
|
+
): AxiosPromise<void> {
|
|
633
|
+
return localVarFp
|
|
634
|
+
.requestProvider(requestParameters.provider, options)
|
|
635
|
+
.then((request) => request(axios, basePath));
|
|
636
|
+
},
|
|
574
637
|
/**
|
|
575
638
|
*
|
|
576
639
|
* @summary Verify validity for an authentication token
|
|
@@ -586,66 +649,59 @@ export const AuthApiFactory = function (
|
|
|
586
649
|
};
|
|
587
650
|
|
|
588
651
|
/**
|
|
589
|
-
* Request parameters for
|
|
652
|
+
* Request parameters for callbackProvider operation in AuthApi.
|
|
590
653
|
* @export
|
|
591
|
-
* @interface
|
|
654
|
+
* @interface AuthApiCallbackProviderRequest
|
|
592
655
|
*/
|
|
593
|
-
export interface
|
|
656
|
+
export interface AuthApiCallbackProviderRequest {
|
|
594
657
|
/**
|
|
595
658
|
* An identifier for the auth provider
|
|
596
659
|
* @type {string}
|
|
597
|
-
* @memberof
|
|
660
|
+
* @memberof AuthApiCallbackProvider
|
|
598
661
|
*/
|
|
599
662
|
readonly provider: string;
|
|
600
663
|
|
|
601
664
|
/**
|
|
602
665
|
* Auth state
|
|
603
666
|
* @type {string}
|
|
604
|
-
* @memberof
|
|
667
|
+
* @memberof AuthApiCallbackProvider
|
|
605
668
|
*/
|
|
606
669
|
readonly state?: string;
|
|
607
670
|
|
|
608
671
|
/**
|
|
609
672
|
* Auth code
|
|
610
673
|
* @type {string}
|
|
611
|
-
* @memberof
|
|
674
|
+
* @memberof AuthApiCallbackProvider
|
|
612
675
|
*/
|
|
613
676
|
readonly code?: string;
|
|
614
677
|
}
|
|
615
678
|
|
|
616
679
|
/**
|
|
617
|
-
* Request parameters for
|
|
680
|
+
* Request parameters for loginAuth operation in AuthApi.
|
|
618
681
|
* @export
|
|
619
|
-
* @interface
|
|
682
|
+
* @interface AuthApiLoginAuthRequest
|
|
620
683
|
*/
|
|
621
|
-
export interface
|
|
622
|
-
/**
|
|
623
|
-
* An identifier for the auth provider
|
|
624
|
-
* @type {string}
|
|
625
|
-
* @memberof AuthApiExternalInitialize
|
|
626
|
-
*/
|
|
627
|
-
readonly provider: string;
|
|
628
|
-
|
|
684
|
+
export interface AuthApiLoginAuthRequest {
|
|
629
685
|
/**
|
|
630
|
-
*
|
|
631
|
-
* @type {
|
|
632
|
-
* @memberof
|
|
686
|
+
* The credentials to authenticate
|
|
687
|
+
* @type {LoginAuthRequest}
|
|
688
|
+
* @memberof AuthApiLoginAuth
|
|
633
689
|
*/
|
|
634
|
-
readonly
|
|
690
|
+
readonly loginAuthRequest: LoginAuthRequest;
|
|
635
691
|
}
|
|
636
692
|
|
|
637
693
|
/**
|
|
638
|
-
* Request parameters for
|
|
694
|
+
* Request parameters for requestProvider operation in AuthApi.
|
|
639
695
|
* @export
|
|
640
|
-
* @interface
|
|
696
|
+
* @interface AuthApiRequestProviderRequest
|
|
641
697
|
*/
|
|
642
|
-
export interface
|
|
698
|
+
export interface AuthApiRequestProviderRequest {
|
|
643
699
|
/**
|
|
644
|
-
*
|
|
645
|
-
* @type {
|
|
646
|
-
* @memberof
|
|
700
|
+
* An identifier for the auth provider
|
|
701
|
+
* @type {string}
|
|
702
|
+
* @memberof AuthApiRequestProvider
|
|
647
703
|
*/
|
|
648
|
-
readonly
|
|
704
|
+
readonly provider: string;
|
|
649
705
|
}
|
|
650
706
|
|
|
651
707
|
/**
|
|
@@ -657,18 +713,18 @@ export interface AuthApiLoginAuthRequest {
|
|
|
657
713
|
export class AuthApi extends BaseAPI {
|
|
658
714
|
/**
|
|
659
715
|
*
|
|
660
|
-
* @summary Callback
|
|
661
|
-
* @param {
|
|
716
|
+
* @summary Callback to parse the defined provider
|
|
717
|
+
* @param {AuthApiCallbackProviderRequest} requestParameters Request parameters.
|
|
662
718
|
* @param {*} [options] Override http request option.
|
|
663
719
|
* @throws {RequiredError}
|
|
664
720
|
* @memberof AuthApi
|
|
665
721
|
*/
|
|
666
|
-
public
|
|
667
|
-
requestParameters:
|
|
722
|
+
public callbackProvider(
|
|
723
|
+
requestParameters: AuthApiCallbackProviderRequest,
|
|
668
724
|
options?: RawAxiosRequestConfig,
|
|
669
725
|
) {
|
|
670
726
|
return AuthApiFp(this.configuration)
|
|
671
|
-
.
|
|
727
|
+
.callbackProvider(
|
|
672
728
|
requestParameters.provider,
|
|
673
729
|
requestParameters.state,
|
|
674
730
|
requestParameters.code,
|
|
@@ -679,22 +735,14 @@ export class AuthApi extends BaseAPI {
|
|
|
679
735
|
|
|
680
736
|
/**
|
|
681
737
|
*
|
|
682
|
-
* @summary
|
|
683
|
-
* @param {AuthApiExternalInitializeRequest} requestParameters Request parameters.
|
|
738
|
+
* @summary Fetch the available auth providers
|
|
684
739
|
* @param {*} [options] Override http request option.
|
|
685
740
|
* @throws {RequiredError}
|
|
686
741
|
* @memberof AuthApi
|
|
687
742
|
*/
|
|
688
|
-
public
|
|
689
|
-
requestParameters: AuthApiExternalInitializeRequest,
|
|
690
|
-
options?: RawAxiosRequestConfig,
|
|
691
|
-
) {
|
|
743
|
+
public listProviders(options?: RawAxiosRequestConfig) {
|
|
692
744
|
return AuthApiFp(this.configuration)
|
|
693
|
-
.
|
|
694
|
-
requestParameters.provider,
|
|
695
|
-
requestParameters.state,
|
|
696
|
-
options,
|
|
697
|
-
)
|
|
745
|
+
.listProviders(options)
|
|
698
746
|
.then((request) => request(this.axios, this.basePath));
|
|
699
747
|
}
|
|
700
748
|
|
|
@@ -711,7 +759,7 @@ export class AuthApi extends BaseAPI {
|
|
|
711
759
|
options?: RawAxiosRequestConfig,
|
|
712
760
|
) {
|
|
713
761
|
return AuthApiFp(this.configuration)
|
|
714
|
-
.loginAuth(requestParameters.
|
|
762
|
+
.loginAuth(requestParameters.loginAuthRequest, options)
|
|
715
763
|
.then((request) => request(this.axios, this.basePath));
|
|
716
764
|
}
|
|
717
765
|
|
|
@@ -728,6 +776,23 @@ export class AuthApi extends BaseAPI {
|
|
|
728
776
|
.then((request) => request(this.axios, this.basePath));
|
|
729
777
|
}
|
|
730
778
|
|
|
779
|
+
/**
|
|
780
|
+
*
|
|
781
|
+
* @summary Request the redirect to defined provider
|
|
782
|
+
* @param {AuthApiRequestProviderRequest} requestParameters Request parameters.
|
|
783
|
+
* @param {*} [options] Override http request option.
|
|
784
|
+
* @throws {RequiredError}
|
|
785
|
+
* @memberof AuthApi
|
|
786
|
+
*/
|
|
787
|
+
public requestProvider(
|
|
788
|
+
requestParameters: AuthApiRequestProviderRequest,
|
|
789
|
+
options?: RawAxiosRequestConfig,
|
|
790
|
+
) {
|
|
791
|
+
return AuthApiFp(this.configuration)
|
|
792
|
+
.requestProvider(requestParameters.provider, options)
|
|
793
|
+
.then((request) => request(this.axios, this.basePath));
|
|
794
|
+
}
|
|
795
|
+
|
|
731
796
|
/**
|
|
732
797
|
*
|
|
733
798
|
* @summary Verify validity for an authentication token
|