@emilgroup/auth-sdk-node 1.1.0 → 1.3.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/.openapi-generator/FILES +3 -0
- package/README.md +2 -2
- package/api/default-api.ts +124 -0
- package/api.ts +2 -0
- package/base.ts +1 -0
- package/models/index.ts +2 -0
- package/models/inline-response200.ts +48 -0
- package/models/inline-response503.ts +48 -0
- package/package.json +1 -1
- package/dist/api/authservice-api.d.ts +0 -613
- package/dist/api/authservice-api.js +0 -1069
- package/dist/api.d.ts +0 -12
- package/dist/api.js +0 -30
- package/dist/base.d.ts +0 -77
- package/dist/base.js +0 -393
- package/dist/common.d.ts +0 -92
- package/dist/common.js +0 -277
- package/dist/configuration.d.ts +0 -90
- package/dist/configuration.js +0 -44
- package/dist/index.d.ts +0 -15
- package/dist/index.js +0 -36
- package/dist/models/create-org-and-user-request-dto.d.ts +0 -84
- package/dist/models/create-org-and-user-request-dto.js +0 -15
- package/dist/models/create-org-and-user-response-class.d.ts +0 -32
- package/dist/models/create-org-and-user-response-class.js +0 -15
- package/dist/models/create-user-request-dto.d.ts +0 -54
- package/dist/models/create-user-request-dto.js +0 -15
- package/dist/models/create-user-response-class.d.ts +0 -25
- package/dist/models/create-user-response-class.js +0 -15
- package/dist/models/custom-schema-class.d.ts +0 -66
- package/dist/models/custom-schema-class.js +0 -15
- package/dist/models/forgot-password-request-dto.d.ts +0 -24
- package/dist/models/forgot-password-request-dto.js +0 -15
- package/dist/models/get-samllogin-link-request-dto.d.ts +0 -24
- package/dist/models/get-samllogin-link-request-dto.js +0 -15
- package/dist/models/index.d.ts +0 -19
- package/dist/models/index.js +0 -35
- package/dist/models/login-by-samlrequest-dto.d.ts +0 -30
- package/dist/models/login-by-samlrequest-dto.js +0 -15
- package/dist/models/login-class.d.ts +0 -30
- package/dist/models/login-class.js +0 -15
- package/dist/models/login-request-dto.d.ts +0 -30
- package/dist/models/login-request-dto.js +0 -15
- package/dist/models/logout-request-dto.d.ts +0 -24
- package/dist/models/logout-request-dto.js +0 -15
- package/dist/models/org-invitation-class.d.ts +0 -109
- package/dist/models/org-invitation-class.js +0 -15
- package/dist/models/organization-class.d.ts +0 -114
- package/dist/models/organization-class.js +0 -15
- package/dist/models/refresh-token-dto.d.ts +0 -24
- package/dist/models/refresh-token-dto.js +0 -15
- package/dist/models/reset-password-request-dto.d.ts +0 -36
- package/dist/models/reset-password-request-dto.js +0 -15
- package/dist/models/role-class.d.ts +0 -54
- package/dist/models/role-class.js +0 -15
- package/dist/models/user-class.d.ts +0 -85
- package/dist/models/user-class.js +0 -15
- package/dist/models/verify-org-invitation-request-dto.d.ts +0 -24
- package/dist/models/verify-org-invitation-request-dto.js +0 -15
- package/dist/models/verify-org-invitation-response-class.d.ts +0 -32
- package/dist/models/verify-org-invitation-response-class.js +0 -15
package/.openapi-generator/FILES
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
README.md
|
|
5
5
|
api.ts
|
|
6
6
|
api/authservice-api.ts
|
|
7
|
+
api/default-api.ts
|
|
7
8
|
base.ts
|
|
8
9
|
common.ts
|
|
9
10
|
configuration.ts
|
|
@@ -17,6 +18,8 @@ models/custom-schema-class.ts
|
|
|
17
18
|
models/forgot-password-request-dto.ts
|
|
18
19
|
models/get-samllogin-link-request-dto.ts
|
|
19
20
|
models/index.ts
|
|
21
|
+
models/inline-response200.ts
|
|
22
|
+
models/inline-response503.ts
|
|
20
23
|
models/login-by-samlrequest-dto.ts
|
|
21
24
|
models/login-class.ts
|
|
22
25
|
models/login-request-dto.ts
|
package/README.md
CHANGED
|
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
|
|
|
17
17
|
Navigate to the folder of your consuming project and run one of the following commands:
|
|
18
18
|
|
|
19
19
|
```
|
|
20
|
-
npm install @emilgroup/auth-sdk-node@1.
|
|
20
|
+
npm install @emilgroup/auth-sdk-node@1.3.0 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/auth-sdk-node@1.
|
|
24
|
+
yarn add @emilgroup/auth-sdk-node@1.3.0
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import ``.
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* EMIL AuthService
|
|
5
|
+
* The EMIL AuthService API description
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
17
|
+
import { Configuration } from '../configuration';
|
|
18
|
+
// Some imports not used depending on template conditions
|
|
19
|
+
// @ts-ignore
|
|
20
|
+
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
|
21
|
+
// @ts-ignore
|
|
22
|
+
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
|
|
23
|
+
// @ts-ignore
|
|
24
|
+
import { InlineResponse200 } from '../models';
|
|
25
|
+
// @ts-ignore
|
|
26
|
+
import { InlineResponse503 } from '../models';
|
|
27
|
+
// URLSearchParams not necessarily used
|
|
28
|
+
// @ts-ignore
|
|
29
|
+
import { URL, URLSearchParams } from 'url';
|
|
30
|
+
const FormData = require('form-data');
|
|
31
|
+
/**
|
|
32
|
+
* DefaultApi - axios parameter creator
|
|
33
|
+
* @export
|
|
34
|
+
*/
|
|
35
|
+
export const DefaultApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
36
|
+
return {
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @param {*} [options] Override http request option.
|
|
40
|
+
* @throws {RequiredError}
|
|
41
|
+
*/
|
|
42
|
+
check: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
43
|
+
const localVarPath = `/authservice/health`;
|
|
44
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
45
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
46
|
+
let baseOptions;
|
|
47
|
+
let baseAccessToken;
|
|
48
|
+
if (configuration) {
|
|
49
|
+
baseOptions = configuration.baseOptions;
|
|
50
|
+
baseAccessToken = configuration.accessToken;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
54
|
+
const localVarHeaderParameter = {} as any;
|
|
55
|
+
const localVarQueryParameter = {} as any;
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
60
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
61
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
62
|
+
|
|
63
|
+
return {
|
|
64
|
+
url: toPathString(localVarUrlObj),
|
|
65
|
+
options: localVarRequestOptions,
|
|
66
|
+
};
|
|
67
|
+
},
|
|
68
|
+
}
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* DefaultApi - functional programming interface
|
|
73
|
+
* @export
|
|
74
|
+
*/
|
|
75
|
+
export const DefaultApiFp = function(configuration?: Configuration) {
|
|
76
|
+
const localVarAxiosParamCreator = DefaultApiAxiosParamCreator(configuration)
|
|
77
|
+
return {
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
* @param {*} [options] Override http request option.
|
|
81
|
+
* @throws {RequiredError}
|
|
82
|
+
*/
|
|
83
|
+
async check(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InlineResponse200>> {
|
|
84
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.check(options);
|
|
85
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
86
|
+
},
|
|
87
|
+
}
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* DefaultApi - factory interface
|
|
92
|
+
* @export
|
|
93
|
+
*/
|
|
94
|
+
export const DefaultApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
95
|
+
const localVarFp = DefaultApiFp(configuration)
|
|
96
|
+
return {
|
|
97
|
+
/**
|
|
98
|
+
*
|
|
99
|
+
* @param {*} [options] Override http request option.
|
|
100
|
+
* @throws {RequiredError}
|
|
101
|
+
*/
|
|
102
|
+
check(options?: any): AxiosPromise<InlineResponse200> {
|
|
103
|
+
return localVarFp.check(options).then((request) => request(axios, basePath));
|
|
104
|
+
},
|
|
105
|
+
};
|
|
106
|
+
};
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* DefaultApi - object-oriented interface
|
|
110
|
+
* @export
|
|
111
|
+
* @class DefaultApi
|
|
112
|
+
* @extends {BaseAPI}
|
|
113
|
+
*/
|
|
114
|
+
export class DefaultApi extends BaseAPI {
|
|
115
|
+
/**
|
|
116
|
+
*
|
|
117
|
+
* @param {*} [options] Override http request option.
|
|
118
|
+
* @throws {RequiredError}
|
|
119
|
+
* @memberof DefaultApi
|
|
120
|
+
*/
|
|
121
|
+
public check(options?: AxiosRequestConfig) {
|
|
122
|
+
return DefaultApiFp(this.configuration).check(options).then((request) => request(this.axios, this.basePath));
|
|
123
|
+
}
|
|
124
|
+
}
|
package/api.ts
CHANGED
|
@@ -25,7 +25,9 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
|
|
|
25
25
|
// @ts-ignore
|
|
26
26
|
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from './base';
|
|
27
27
|
import { AuthserviceApi } from './api';
|
|
28
|
+
import { DefaultApi } from './api';
|
|
28
29
|
|
|
29
30
|
|
|
30
31
|
export * from './api/authservice-api';
|
|
32
|
+
export * from './api/default-api';
|
|
31
33
|
|
package/base.ts
CHANGED
package/models/index.ts
CHANGED
|
@@ -5,6 +5,8 @@ export * from './create-user-response-class';
|
|
|
5
5
|
export * from './custom-schema-class';
|
|
6
6
|
export * from './forgot-password-request-dto';
|
|
7
7
|
export * from './get-samllogin-link-request-dto';
|
|
8
|
+
export * from './inline-response200';
|
|
9
|
+
export * from './inline-response503';
|
|
8
10
|
export * from './login-by-samlrequest-dto';
|
|
9
11
|
export * from './login-class';
|
|
10
12
|
export * from './login-request-dto';
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* EMIL AuthService
|
|
5
|
+
* The EMIL AuthService API description
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
* @interface InlineResponse200
|
|
21
|
+
*/
|
|
22
|
+
export interface InlineResponse200 {
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof InlineResponse200
|
|
27
|
+
*/
|
|
28
|
+
'status'?: string;
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {{ [key: string]: { [key: string]: string; }; }}
|
|
32
|
+
* @memberof InlineResponse200
|
|
33
|
+
*/
|
|
34
|
+
'info'?: { [key: string]: { [key: string]: string; }; } | null;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {{ [key: string]: { [key: string]: string; }; }}
|
|
38
|
+
* @memberof InlineResponse200
|
|
39
|
+
*/
|
|
40
|
+
'error'?: { [key: string]: { [key: string]: string; }; } | null;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {{ [key: string]: { [key: string]: string; }; }}
|
|
44
|
+
* @memberof InlineResponse200
|
|
45
|
+
*/
|
|
46
|
+
'details'?: { [key: string]: { [key: string]: string; }; };
|
|
47
|
+
}
|
|
48
|
+
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* EMIL AuthService
|
|
5
|
+
* The EMIL AuthService API description
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
* @interface InlineResponse503
|
|
21
|
+
*/
|
|
22
|
+
export interface InlineResponse503 {
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof InlineResponse503
|
|
27
|
+
*/
|
|
28
|
+
'status'?: string;
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {{ [key: string]: { [key: string]: string; }; }}
|
|
32
|
+
* @memberof InlineResponse503
|
|
33
|
+
*/
|
|
34
|
+
'info'?: { [key: string]: { [key: string]: string; }; } | null;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {{ [key: string]: { [key: string]: string; }; }}
|
|
38
|
+
* @memberof InlineResponse503
|
|
39
|
+
*/
|
|
40
|
+
'error'?: { [key: string]: { [key: string]: string; }; } | null;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {{ [key: string]: { [key: string]: string; }; }}
|
|
44
|
+
* @memberof InlineResponse503
|
|
45
|
+
*/
|
|
46
|
+
'details'?: { [key: string]: { [key: string]: string; }; };
|
|
47
|
+
}
|
|
48
|
+
|