@breign/client 1.0.184 → 1.0.185
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/apis/OauthProviderApi.d.ts +155 -0
- package/dist/apis/OauthProviderApi.js +388 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/models/OAuthAuthorizationConsentRequestUio.d.ts +44 -0
- package/dist/models/OAuthAuthorizationConsentRequestUio.js +56 -0
- package/dist/models/OAuthAuthorizationRedirectUio.d.ts +32 -0
- package/dist/models/OAuthAuthorizationRedirectUio.js +50 -0
- package/dist/models/OAuthAuthorizationResumeClientUio.d.ts +50 -0
- package/dist/models/OAuthAuthorizationResumeClientUio.js +62 -0
- package/dist/models/OAuthAuthorizationResumeOrganizationUio.d.ts +38 -0
- package/dist/models/OAuthAuthorizationResumeOrganizationUio.js +54 -0
- package/dist/models/OAuthAuthorizationResumeRequestUio.d.ts +32 -0
- package/dist/models/OAuthAuthorizationResumeRequestUio.js +50 -0
- package/dist/models/OAuthAuthorizationResumeUio.d.ts +72 -0
- package/dist/models/OAuthAuthorizationResumeUio.js +70 -0
- package/dist/models/OAuthClientCreateUio.d.ts +77 -0
- package/dist/models/OAuthClientCreateUio.js +75 -0
- package/dist/models/OAuthClientTypeUio.d.ts +25 -0
- package/dist/models/OAuthClientTypeUio.js +51 -0
- package/dist/models/OAuthClientUio.d.ts +95 -0
- package/dist/models/OAuthClientUio.js +95 -0
- package/dist/models/OAuthClientUpdateUio.d.ts +62 -0
- package/dist/models/OAuthClientUpdateUio.js +58 -0
- package/dist/models/OAuthClientWithSecretUio.d.ts +101 -0
- package/dist/models/OAuthClientWithSecretUio.js +99 -0
- package/dist/models/OAuthConsentUio.d.ts +68 -0
- package/dist/models/OAuthConsentUio.js +74 -0
- package/dist/models/OAuthProviderInfoUio.d.ts +44 -0
- package/dist/models/OAuthProviderInfoUio.js +58 -0
- package/dist/models/index.d.ts +13 -0
- package/dist/models/index.js +13 -0
- package/dist/openapi.json +750 -0
- package/package.json +1 -1
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* brain-client
|
|
3
|
+
* Api ands models for brain-app and brain-app
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.0.0-SNAPSHOT
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* `confidential` : application avec serveur, qui garde un secret. `public` : SPA, mobile ou desktop, sans secret, PKCE obligatoire.
|
|
14
|
+
* @export
|
|
15
|
+
*/
|
|
16
|
+
export declare const OAuthClientTypeUio: {
|
|
17
|
+
readonly Confidential: "confidential";
|
|
18
|
+
readonly Public: "public";
|
|
19
|
+
};
|
|
20
|
+
export type OAuthClientTypeUio = typeof OAuthClientTypeUio[keyof typeof OAuthClientTypeUio];
|
|
21
|
+
export declare function instanceOfOAuthClientTypeUio(value: any): boolean;
|
|
22
|
+
export declare function OAuthClientTypeUioFromJSON(json: any): OAuthClientTypeUio;
|
|
23
|
+
export declare function OAuthClientTypeUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): OAuthClientTypeUio;
|
|
24
|
+
export declare function OAuthClientTypeUioToJSON(value?: OAuthClientTypeUio | null): any;
|
|
25
|
+
export declare function OAuthClientTypeUioToJSONTyped(value: any, ignoreDiscriminator: boolean): OAuthClientTypeUio;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* brain-client
|
|
6
|
+
* Api ands models for brain-app and brain-app
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.0.0-SNAPSHOT
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.OAuthClientTypeUio = void 0;
|
|
17
|
+
exports.instanceOfOAuthClientTypeUio = instanceOfOAuthClientTypeUio;
|
|
18
|
+
exports.OAuthClientTypeUioFromJSON = OAuthClientTypeUioFromJSON;
|
|
19
|
+
exports.OAuthClientTypeUioFromJSONTyped = OAuthClientTypeUioFromJSONTyped;
|
|
20
|
+
exports.OAuthClientTypeUioToJSON = OAuthClientTypeUioToJSON;
|
|
21
|
+
exports.OAuthClientTypeUioToJSONTyped = OAuthClientTypeUioToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* `confidential` : application avec serveur, qui garde un secret. `public` : SPA, mobile ou desktop, sans secret, PKCE obligatoire.
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.OAuthClientTypeUio = {
|
|
27
|
+
Confidential: 'confidential',
|
|
28
|
+
Public: 'public'
|
|
29
|
+
};
|
|
30
|
+
function instanceOfOAuthClientTypeUio(value) {
|
|
31
|
+
for (const key in exports.OAuthClientTypeUio) {
|
|
32
|
+
if (Object.prototype.hasOwnProperty.call(exports.OAuthClientTypeUio, key)) {
|
|
33
|
+
if (exports.OAuthClientTypeUio[key] === value) {
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
return false;
|
|
39
|
+
}
|
|
40
|
+
function OAuthClientTypeUioFromJSON(json) {
|
|
41
|
+
return OAuthClientTypeUioFromJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function OAuthClientTypeUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
function OAuthClientTypeUioToJSON(value) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
function OAuthClientTypeUioToJSONTyped(value, ignoreDiscriminator) {
|
|
50
|
+
return value;
|
|
51
|
+
}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* brain-client
|
|
3
|
+
* Api ands models for brain-app and brain-app
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.0.0-SNAPSHOT
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { OAuthClientTypeUio } from './OAuthClientTypeUio';
|
|
13
|
+
/**
|
|
14
|
+
* Une application tierce autorisée à connecter les utilisateurs de l'organisation.
|
|
15
|
+
* @export
|
|
16
|
+
* @interface OAuthClientUio
|
|
17
|
+
*/
|
|
18
|
+
export interface OAuthClientUio {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof OAuthClientUio
|
|
23
|
+
*/
|
|
24
|
+
clientId: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof OAuthClientUio
|
|
29
|
+
*/
|
|
30
|
+
name: string | null;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {OAuthClientTypeUio}
|
|
34
|
+
* @memberof OAuthClientUio
|
|
35
|
+
*/
|
|
36
|
+
type: OAuthClientTypeUio;
|
|
37
|
+
/**
|
|
38
|
+
* `native` pour une appli mobile ou desktop (retour en loopback ou schéma privé).
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof OAuthClientUio
|
|
41
|
+
*/
|
|
42
|
+
applicationType: OAuthClientUioApplicationTypeEnum;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {Array<string>}
|
|
46
|
+
* @memberof OAuthClientUio
|
|
47
|
+
*/
|
|
48
|
+
redirectUris: Array<string>;
|
|
49
|
+
/**
|
|
50
|
+
* Site de l'application, affiché sur l'écran de consentement.
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof OAuthClientUio
|
|
53
|
+
*/
|
|
54
|
+
uri: string | null;
|
|
55
|
+
/**
|
|
56
|
+
* Logo de l'application, affiché sur l'écran de consentement.
|
|
57
|
+
* @type {string}
|
|
58
|
+
* @memberof OAuthClientUio
|
|
59
|
+
*/
|
|
60
|
+
icon: string | null;
|
|
61
|
+
/**
|
|
62
|
+
* Application de confiance, les utilisateurs ne voient pas l'écran de consentement.
|
|
63
|
+
* @type {boolean}
|
|
64
|
+
* @memberof OAuthClientUio
|
|
65
|
+
*/
|
|
66
|
+
skipConsent: boolean;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {boolean}
|
|
70
|
+
* @memberof OAuthClientUio
|
|
71
|
+
*/
|
|
72
|
+
disabled: boolean;
|
|
73
|
+
/**
|
|
74
|
+
*
|
|
75
|
+
* @type {Date}
|
|
76
|
+
* @memberof OAuthClientUio
|
|
77
|
+
*/
|
|
78
|
+
createdAt: Date | null;
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* @export
|
|
82
|
+
*/
|
|
83
|
+
export declare const OAuthClientUioApplicationTypeEnum: {
|
|
84
|
+
readonly Web: "web";
|
|
85
|
+
readonly Native: "native";
|
|
86
|
+
};
|
|
87
|
+
export type OAuthClientUioApplicationTypeEnum = typeof OAuthClientUioApplicationTypeEnum[keyof typeof OAuthClientUioApplicationTypeEnum];
|
|
88
|
+
/**
|
|
89
|
+
* Check if a given object implements the OAuthClientUio interface.
|
|
90
|
+
*/
|
|
91
|
+
export declare function instanceOfOAuthClientUio(value: object): value is OAuthClientUio;
|
|
92
|
+
export declare function OAuthClientUioFromJSON(json: any): OAuthClientUio;
|
|
93
|
+
export declare function OAuthClientUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): OAuthClientUio;
|
|
94
|
+
export declare function OAuthClientUioToJSON(json: any): OAuthClientUio;
|
|
95
|
+
export declare function OAuthClientUioToJSONTyped(value?: OAuthClientUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* brain-client
|
|
6
|
+
* Api ands models for brain-app and brain-app
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.0.0-SNAPSHOT
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.OAuthClientUioApplicationTypeEnum = void 0;
|
|
17
|
+
exports.instanceOfOAuthClientUio = instanceOfOAuthClientUio;
|
|
18
|
+
exports.OAuthClientUioFromJSON = OAuthClientUioFromJSON;
|
|
19
|
+
exports.OAuthClientUioFromJSONTyped = OAuthClientUioFromJSONTyped;
|
|
20
|
+
exports.OAuthClientUioToJSON = OAuthClientUioToJSON;
|
|
21
|
+
exports.OAuthClientUioToJSONTyped = OAuthClientUioToJSONTyped;
|
|
22
|
+
const OAuthClientTypeUio_1 = require("./OAuthClientTypeUio");
|
|
23
|
+
/**
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.OAuthClientUioApplicationTypeEnum = {
|
|
27
|
+
Web: 'web',
|
|
28
|
+
Native: 'native'
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the OAuthClientUio interface.
|
|
32
|
+
*/
|
|
33
|
+
function instanceOfOAuthClientUio(value) {
|
|
34
|
+
if (!('clientId' in value) || value['clientId'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
if (!('applicationType' in value) || value['applicationType'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
if (!('redirectUris' in value) || value['redirectUris'] === undefined)
|
|
43
|
+
return false;
|
|
44
|
+
if (!('uri' in value) || value['uri'] === undefined)
|
|
45
|
+
return false;
|
|
46
|
+
if (!('icon' in value) || value['icon'] === undefined)
|
|
47
|
+
return false;
|
|
48
|
+
if (!('skipConsent' in value) || value['skipConsent'] === undefined)
|
|
49
|
+
return false;
|
|
50
|
+
if (!('disabled' in value) || value['disabled'] === undefined)
|
|
51
|
+
return false;
|
|
52
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
53
|
+
return false;
|
|
54
|
+
return true;
|
|
55
|
+
}
|
|
56
|
+
function OAuthClientUioFromJSON(json) {
|
|
57
|
+
return OAuthClientUioFromJSONTyped(json, false);
|
|
58
|
+
}
|
|
59
|
+
function OAuthClientUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
60
|
+
if (json == null) {
|
|
61
|
+
return json;
|
|
62
|
+
}
|
|
63
|
+
return {
|
|
64
|
+
'clientId': json['clientId'],
|
|
65
|
+
'name': json['name'],
|
|
66
|
+
'type': (0, OAuthClientTypeUio_1.OAuthClientTypeUioFromJSON)(json['type']),
|
|
67
|
+
'applicationType': json['applicationType'],
|
|
68
|
+
'redirectUris': json['redirectUris'],
|
|
69
|
+
'uri': json['uri'],
|
|
70
|
+
'icon': json['icon'],
|
|
71
|
+
'skipConsent': json['skipConsent'],
|
|
72
|
+
'disabled': json['disabled'],
|
|
73
|
+
'createdAt': (json['createdAt'] == null ? null : new Date(json['createdAt'])),
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
function OAuthClientUioToJSON(json) {
|
|
77
|
+
return OAuthClientUioToJSONTyped(json, false);
|
|
78
|
+
}
|
|
79
|
+
function OAuthClientUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
80
|
+
if (value == null) {
|
|
81
|
+
return value;
|
|
82
|
+
}
|
|
83
|
+
return {
|
|
84
|
+
'clientId': value['clientId'],
|
|
85
|
+
'name': value['name'],
|
|
86
|
+
'type': (0, OAuthClientTypeUio_1.OAuthClientTypeUioToJSON)(value['type']),
|
|
87
|
+
'applicationType': value['applicationType'],
|
|
88
|
+
'redirectUris': value['redirectUris'],
|
|
89
|
+
'uri': value['uri'],
|
|
90
|
+
'icon': value['icon'],
|
|
91
|
+
'skipConsent': value['skipConsent'],
|
|
92
|
+
'disabled': value['disabled'],
|
|
93
|
+
'createdAt': (value['createdAt'] == null ? null : value['createdAt'].toISOString()),
|
|
94
|
+
};
|
|
95
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* brain-client
|
|
3
|
+
* Api ands models for brain-app and brain-app
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.0.0-SNAPSHOT
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface OAuthClientUpdateUio
|
|
16
|
+
*/
|
|
17
|
+
export interface OAuthClientUpdateUio {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof OAuthClientUpdateUio
|
|
22
|
+
*/
|
|
23
|
+
name?: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {Array<string>}
|
|
27
|
+
* @memberof OAuthClientUpdateUio
|
|
28
|
+
*/
|
|
29
|
+
redirectUris?: Array<string>;
|
|
30
|
+
/**
|
|
31
|
+
* URL du site, ou chaîne vide pour l'effacer.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof OAuthClientUpdateUio
|
|
34
|
+
*/
|
|
35
|
+
uri?: string;
|
|
36
|
+
/**
|
|
37
|
+
* URL du logo, ou chaîne vide pour l'effacer.
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof OAuthClientUpdateUio
|
|
40
|
+
*/
|
|
41
|
+
icon?: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {boolean}
|
|
45
|
+
* @memberof OAuthClientUpdateUio
|
|
46
|
+
*/
|
|
47
|
+
skipConsent?: boolean;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {boolean}
|
|
51
|
+
* @memberof OAuthClientUpdateUio
|
|
52
|
+
*/
|
|
53
|
+
disabled?: boolean;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Check if a given object implements the OAuthClientUpdateUio interface.
|
|
57
|
+
*/
|
|
58
|
+
export declare function instanceOfOAuthClientUpdateUio(value: object): value is OAuthClientUpdateUio;
|
|
59
|
+
export declare function OAuthClientUpdateUioFromJSON(json: any): OAuthClientUpdateUio;
|
|
60
|
+
export declare function OAuthClientUpdateUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): OAuthClientUpdateUio;
|
|
61
|
+
export declare function OAuthClientUpdateUioToJSON(json: any): OAuthClientUpdateUio;
|
|
62
|
+
export declare function OAuthClientUpdateUioToJSONTyped(value?: OAuthClientUpdateUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* brain-client
|
|
6
|
+
* Api ands models for brain-app and brain-app
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.0.0-SNAPSHOT
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfOAuthClientUpdateUio = instanceOfOAuthClientUpdateUio;
|
|
17
|
+
exports.OAuthClientUpdateUioFromJSON = OAuthClientUpdateUioFromJSON;
|
|
18
|
+
exports.OAuthClientUpdateUioFromJSONTyped = OAuthClientUpdateUioFromJSONTyped;
|
|
19
|
+
exports.OAuthClientUpdateUioToJSON = OAuthClientUpdateUioToJSON;
|
|
20
|
+
exports.OAuthClientUpdateUioToJSONTyped = OAuthClientUpdateUioToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the OAuthClientUpdateUio interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfOAuthClientUpdateUio(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function OAuthClientUpdateUioFromJSON(json) {
|
|
28
|
+
return OAuthClientUpdateUioFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function OAuthClientUpdateUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
36
|
+
'redirectUris': json['redirectUris'] == null ? undefined : json['redirectUris'],
|
|
37
|
+
'uri': json['uri'] == null ? undefined : json['uri'],
|
|
38
|
+
'icon': json['icon'] == null ? undefined : json['icon'],
|
|
39
|
+
'skipConsent': json['skipConsent'] == null ? undefined : json['skipConsent'],
|
|
40
|
+
'disabled': json['disabled'] == null ? undefined : json['disabled'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function OAuthClientUpdateUioToJSON(json) {
|
|
44
|
+
return OAuthClientUpdateUioToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function OAuthClientUpdateUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'name': value['name'],
|
|
52
|
+
'redirectUris': value['redirectUris'],
|
|
53
|
+
'uri': value['uri'],
|
|
54
|
+
'icon': value['icon'],
|
|
55
|
+
'skipConsent': value['skipConsent'],
|
|
56
|
+
'disabled': value['disabled'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* brain-client
|
|
3
|
+
* Api ands models for brain-app and brain-app
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.0.0-SNAPSHOT
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { OAuthClientTypeUio } from './OAuthClientTypeUio';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface OAuthClientWithSecretUio
|
|
17
|
+
*/
|
|
18
|
+
export interface OAuthClientWithSecretUio {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof OAuthClientWithSecretUio
|
|
23
|
+
*/
|
|
24
|
+
clientId: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof OAuthClientWithSecretUio
|
|
29
|
+
*/
|
|
30
|
+
name: string | null;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {OAuthClientTypeUio}
|
|
34
|
+
* @memberof OAuthClientWithSecretUio
|
|
35
|
+
*/
|
|
36
|
+
type: OAuthClientTypeUio;
|
|
37
|
+
/**
|
|
38
|
+
* `native` pour une appli mobile ou desktop (retour en loopback ou schéma privé).
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof OAuthClientWithSecretUio
|
|
41
|
+
*/
|
|
42
|
+
applicationType: OAuthClientWithSecretUioApplicationTypeEnum;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {Array<string>}
|
|
46
|
+
* @memberof OAuthClientWithSecretUio
|
|
47
|
+
*/
|
|
48
|
+
redirectUris: Array<string>;
|
|
49
|
+
/**
|
|
50
|
+
* Site de l'application, affiché sur l'écran de consentement.
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof OAuthClientWithSecretUio
|
|
53
|
+
*/
|
|
54
|
+
uri: string | null;
|
|
55
|
+
/**
|
|
56
|
+
* Logo de l'application, affiché sur l'écran de consentement.
|
|
57
|
+
* @type {string}
|
|
58
|
+
* @memberof OAuthClientWithSecretUio
|
|
59
|
+
*/
|
|
60
|
+
icon: string | null;
|
|
61
|
+
/**
|
|
62
|
+
* Application de confiance, les utilisateurs ne voient pas l'écran de consentement.
|
|
63
|
+
* @type {boolean}
|
|
64
|
+
* @memberof OAuthClientWithSecretUio
|
|
65
|
+
*/
|
|
66
|
+
skipConsent: boolean;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {boolean}
|
|
70
|
+
* @memberof OAuthClientWithSecretUio
|
|
71
|
+
*/
|
|
72
|
+
disabled: boolean;
|
|
73
|
+
/**
|
|
74
|
+
*
|
|
75
|
+
* @type {Date}
|
|
76
|
+
* @memberof OAuthClientWithSecretUio
|
|
77
|
+
*/
|
|
78
|
+
createdAt: Date | null;
|
|
79
|
+
/**
|
|
80
|
+
* Le secret d'un client confidentiel, affiché une seule fois (création, rotation). Null pour un client public.
|
|
81
|
+
* @type {string}
|
|
82
|
+
* @memberof OAuthClientWithSecretUio
|
|
83
|
+
*/
|
|
84
|
+
clientSecret: string | null;
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* @export
|
|
88
|
+
*/
|
|
89
|
+
export declare const OAuthClientWithSecretUioApplicationTypeEnum: {
|
|
90
|
+
readonly Web: "web";
|
|
91
|
+
readonly Native: "native";
|
|
92
|
+
};
|
|
93
|
+
export type OAuthClientWithSecretUioApplicationTypeEnum = typeof OAuthClientWithSecretUioApplicationTypeEnum[keyof typeof OAuthClientWithSecretUioApplicationTypeEnum];
|
|
94
|
+
/**
|
|
95
|
+
* Check if a given object implements the OAuthClientWithSecretUio interface.
|
|
96
|
+
*/
|
|
97
|
+
export declare function instanceOfOAuthClientWithSecretUio(value: object): value is OAuthClientWithSecretUio;
|
|
98
|
+
export declare function OAuthClientWithSecretUioFromJSON(json: any): OAuthClientWithSecretUio;
|
|
99
|
+
export declare function OAuthClientWithSecretUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): OAuthClientWithSecretUio;
|
|
100
|
+
export declare function OAuthClientWithSecretUioToJSON(json: any): OAuthClientWithSecretUio;
|
|
101
|
+
export declare function OAuthClientWithSecretUioToJSONTyped(value?: OAuthClientWithSecretUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* brain-client
|
|
6
|
+
* Api ands models for brain-app and brain-app
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.0.0-SNAPSHOT
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.OAuthClientWithSecretUioApplicationTypeEnum = void 0;
|
|
17
|
+
exports.instanceOfOAuthClientWithSecretUio = instanceOfOAuthClientWithSecretUio;
|
|
18
|
+
exports.OAuthClientWithSecretUioFromJSON = OAuthClientWithSecretUioFromJSON;
|
|
19
|
+
exports.OAuthClientWithSecretUioFromJSONTyped = OAuthClientWithSecretUioFromJSONTyped;
|
|
20
|
+
exports.OAuthClientWithSecretUioToJSON = OAuthClientWithSecretUioToJSON;
|
|
21
|
+
exports.OAuthClientWithSecretUioToJSONTyped = OAuthClientWithSecretUioToJSONTyped;
|
|
22
|
+
const OAuthClientTypeUio_1 = require("./OAuthClientTypeUio");
|
|
23
|
+
/**
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.OAuthClientWithSecretUioApplicationTypeEnum = {
|
|
27
|
+
Web: 'web',
|
|
28
|
+
Native: 'native'
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the OAuthClientWithSecretUio interface.
|
|
32
|
+
*/
|
|
33
|
+
function instanceOfOAuthClientWithSecretUio(value) {
|
|
34
|
+
if (!('clientId' in value) || value['clientId'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
if (!('applicationType' in value) || value['applicationType'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
if (!('redirectUris' in value) || value['redirectUris'] === undefined)
|
|
43
|
+
return false;
|
|
44
|
+
if (!('uri' in value) || value['uri'] === undefined)
|
|
45
|
+
return false;
|
|
46
|
+
if (!('icon' in value) || value['icon'] === undefined)
|
|
47
|
+
return false;
|
|
48
|
+
if (!('skipConsent' in value) || value['skipConsent'] === undefined)
|
|
49
|
+
return false;
|
|
50
|
+
if (!('disabled' in value) || value['disabled'] === undefined)
|
|
51
|
+
return false;
|
|
52
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
53
|
+
return false;
|
|
54
|
+
if (!('clientSecret' in value) || value['clientSecret'] === undefined)
|
|
55
|
+
return false;
|
|
56
|
+
return true;
|
|
57
|
+
}
|
|
58
|
+
function OAuthClientWithSecretUioFromJSON(json) {
|
|
59
|
+
return OAuthClientWithSecretUioFromJSONTyped(json, false);
|
|
60
|
+
}
|
|
61
|
+
function OAuthClientWithSecretUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
62
|
+
if (json == null) {
|
|
63
|
+
return json;
|
|
64
|
+
}
|
|
65
|
+
return {
|
|
66
|
+
'clientId': json['clientId'],
|
|
67
|
+
'name': json['name'],
|
|
68
|
+
'type': (0, OAuthClientTypeUio_1.OAuthClientTypeUioFromJSON)(json['type']),
|
|
69
|
+
'applicationType': json['applicationType'],
|
|
70
|
+
'redirectUris': json['redirectUris'],
|
|
71
|
+
'uri': json['uri'],
|
|
72
|
+
'icon': json['icon'],
|
|
73
|
+
'skipConsent': json['skipConsent'],
|
|
74
|
+
'disabled': json['disabled'],
|
|
75
|
+
'createdAt': (json['createdAt'] == null ? null : new Date(json['createdAt'])),
|
|
76
|
+
'clientSecret': json['clientSecret'],
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
function OAuthClientWithSecretUioToJSON(json) {
|
|
80
|
+
return OAuthClientWithSecretUioToJSONTyped(json, false);
|
|
81
|
+
}
|
|
82
|
+
function OAuthClientWithSecretUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
83
|
+
if (value == null) {
|
|
84
|
+
return value;
|
|
85
|
+
}
|
|
86
|
+
return {
|
|
87
|
+
'clientId': value['clientId'],
|
|
88
|
+
'name': value['name'],
|
|
89
|
+
'type': (0, OAuthClientTypeUio_1.OAuthClientTypeUioToJSON)(value['type']),
|
|
90
|
+
'applicationType': value['applicationType'],
|
|
91
|
+
'redirectUris': value['redirectUris'],
|
|
92
|
+
'uri': value['uri'],
|
|
93
|
+
'icon': value['icon'],
|
|
94
|
+
'skipConsent': value['skipConsent'],
|
|
95
|
+
'disabled': value['disabled'],
|
|
96
|
+
'createdAt': (value['createdAt'] == null ? null : value['createdAt'].toISOString()),
|
|
97
|
+
'clientSecret': value['clientSecret'],
|
|
98
|
+
};
|
|
99
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* brain-client
|
|
3
|
+
* Api ands models for brain-app and brain-app
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.0.0-SNAPSHOT
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* Une application que l'utilisateur a autorisée.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface OAuthConsentUio
|
|
16
|
+
*/
|
|
17
|
+
export interface OAuthConsentUio {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof OAuthConsentUio
|
|
22
|
+
*/
|
|
23
|
+
clientId: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof OAuthConsentUio
|
|
28
|
+
*/
|
|
29
|
+
clientName: string | null;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof OAuthConsentUio
|
|
34
|
+
*/
|
|
35
|
+
clientIcon: string | null;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof OAuthConsentUio
|
|
40
|
+
*/
|
|
41
|
+
clientUri: string | null;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {Array<string>}
|
|
45
|
+
* @memberof OAuthConsentUio
|
|
46
|
+
*/
|
|
47
|
+
scopes: Array<string>;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {Date}
|
|
51
|
+
* @memberof OAuthConsentUio
|
|
52
|
+
*/
|
|
53
|
+
createdAt: Date | null;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {Date}
|
|
57
|
+
* @memberof OAuthConsentUio
|
|
58
|
+
*/
|
|
59
|
+
updatedAt: Date | null;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Check if a given object implements the OAuthConsentUio interface.
|
|
63
|
+
*/
|
|
64
|
+
export declare function instanceOfOAuthConsentUio(value: object): value is OAuthConsentUio;
|
|
65
|
+
export declare function OAuthConsentUioFromJSON(json: any): OAuthConsentUio;
|
|
66
|
+
export declare function OAuthConsentUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): OAuthConsentUio;
|
|
67
|
+
export declare function OAuthConsentUioToJSON(json: any): OAuthConsentUio;
|
|
68
|
+
export declare function OAuthConsentUioToJSONTyped(value?: OAuthConsentUio | null, ignoreDiscriminator?: boolean): any;
|