@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.
Files changed (34) hide show
  1. package/dist/apis/OauthProviderApi.d.ts +155 -0
  2. package/dist/apis/OauthProviderApi.js +388 -0
  3. package/dist/apis/index.d.ts +1 -0
  4. package/dist/apis/index.js +1 -0
  5. package/dist/models/OAuthAuthorizationConsentRequestUio.d.ts +44 -0
  6. package/dist/models/OAuthAuthorizationConsentRequestUio.js +56 -0
  7. package/dist/models/OAuthAuthorizationRedirectUio.d.ts +32 -0
  8. package/dist/models/OAuthAuthorizationRedirectUio.js +50 -0
  9. package/dist/models/OAuthAuthorizationResumeClientUio.d.ts +50 -0
  10. package/dist/models/OAuthAuthorizationResumeClientUio.js +62 -0
  11. package/dist/models/OAuthAuthorizationResumeOrganizationUio.d.ts +38 -0
  12. package/dist/models/OAuthAuthorizationResumeOrganizationUio.js +54 -0
  13. package/dist/models/OAuthAuthorizationResumeRequestUio.d.ts +32 -0
  14. package/dist/models/OAuthAuthorizationResumeRequestUio.js +50 -0
  15. package/dist/models/OAuthAuthorizationResumeUio.d.ts +72 -0
  16. package/dist/models/OAuthAuthorizationResumeUio.js +70 -0
  17. package/dist/models/OAuthClientCreateUio.d.ts +77 -0
  18. package/dist/models/OAuthClientCreateUio.js +75 -0
  19. package/dist/models/OAuthClientTypeUio.d.ts +25 -0
  20. package/dist/models/OAuthClientTypeUio.js +51 -0
  21. package/dist/models/OAuthClientUio.d.ts +95 -0
  22. package/dist/models/OAuthClientUio.js +95 -0
  23. package/dist/models/OAuthClientUpdateUio.d.ts +62 -0
  24. package/dist/models/OAuthClientUpdateUio.js +58 -0
  25. package/dist/models/OAuthClientWithSecretUio.d.ts +101 -0
  26. package/dist/models/OAuthClientWithSecretUio.js +99 -0
  27. package/dist/models/OAuthConsentUio.d.ts +68 -0
  28. package/dist/models/OAuthConsentUio.js +74 -0
  29. package/dist/models/OAuthProviderInfoUio.d.ts +44 -0
  30. package/dist/models/OAuthProviderInfoUio.js +58 -0
  31. package/dist/models/index.d.ts +13 -0
  32. package/dist/models/index.js +13 -0
  33. package/dist/openapi.json +750 -0
  34. package/package.json +1 -1
@@ -0,0 +1,32 @@
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 OAuthAuthorizationRedirectUio
16
+ */
17
+ export interface OAuthAuthorizationRedirectUio {
18
+ /**
19
+ * Où envoyer le navigateur : l'adresse de retour de l'application, avec le code ou l'erreur.
20
+ * @type {string}
21
+ * @memberof OAuthAuthorizationRedirectUio
22
+ */
23
+ redirectUrl: string;
24
+ }
25
+ /**
26
+ * Check if a given object implements the OAuthAuthorizationRedirectUio interface.
27
+ */
28
+ export declare function instanceOfOAuthAuthorizationRedirectUio(value: object): value is OAuthAuthorizationRedirectUio;
29
+ export declare function OAuthAuthorizationRedirectUioFromJSON(json: any): OAuthAuthorizationRedirectUio;
30
+ export declare function OAuthAuthorizationRedirectUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): OAuthAuthorizationRedirectUio;
31
+ export declare function OAuthAuthorizationRedirectUioToJSON(json: any): OAuthAuthorizationRedirectUio;
32
+ export declare function OAuthAuthorizationRedirectUioToJSONTyped(value?: OAuthAuthorizationRedirectUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,50 @@
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.instanceOfOAuthAuthorizationRedirectUio = instanceOfOAuthAuthorizationRedirectUio;
17
+ exports.OAuthAuthorizationRedirectUioFromJSON = OAuthAuthorizationRedirectUioFromJSON;
18
+ exports.OAuthAuthorizationRedirectUioFromJSONTyped = OAuthAuthorizationRedirectUioFromJSONTyped;
19
+ exports.OAuthAuthorizationRedirectUioToJSON = OAuthAuthorizationRedirectUioToJSON;
20
+ exports.OAuthAuthorizationRedirectUioToJSONTyped = OAuthAuthorizationRedirectUioToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the OAuthAuthorizationRedirectUio interface.
23
+ */
24
+ function instanceOfOAuthAuthorizationRedirectUio(value) {
25
+ if (!('redirectUrl' in value) || value['redirectUrl'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ function OAuthAuthorizationRedirectUioFromJSON(json) {
30
+ return OAuthAuthorizationRedirectUioFromJSONTyped(json, false);
31
+ }
32
+ function OAuthAuthorizationRedirectUioFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'redirectUrl': json['redirectUrl'],
38
+ };
39
+ }
40
+ function OAuthAuthorizationRedirectUioToJSON(json) {
41
+ return OAuthAuthorizationRedirectUioToJSONTyped(json, false);
42
+ }
43
+ function OAuthAuthorizationRedirectUioToJSONTyped(value, ignoreDiscriminator = false) {
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ 'redirectUrl': value['redirectUrl'],
49
+ };
50
+ }
@@ -0,0 +1,50 @@
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
+ * Présent quand `status` vaut `consent_required`.
14
+ * @export
15
+ * @interface OAuthAuthorizationResumeClientUio
16
+ */
17
+ export interface OAuthAuthorizationResumeClientUio {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof OAuthAuthorizationResumeClientUio
22
+ */
23
+ clientId: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof OAuthAuthorizationResumeClientUio
28
+ */
29
+ name: string | null;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof OAuthAuthorizationResumeClientUio
34
+ */
35
+ uri: string | null;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof OAuthAuthorizationResumeClientUio
40
+ */
41
+ icon: string | null;
42
+ }
43
+ /**
44
+ * Check if a given object implements the OAuthAuthorizationResumeClientUio interface.
45
+ */
46
+ export declare function instanceOfOAuthAuthorizationResumeClientUio(value: object): value is OAuthAuthorizationResumeClientUio;
47
+ export declare function OAuthAuthorizationResumeClientUioFromJSON(json: any): OAuthAuthorizationResumeClientUio;
48
+ export declare function OAuthAuthorizationResumeClientUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): OAuthAuthorizationResumeClientUio;
49
+ export declare function OAuthAuthorizationResumeClientUioToJSON(json: any): OAuthAuthorizationResumeClientUio;
50
+ export declare function OAuthAuthorizationResumeClientUioToJSONTyped(value?: OAuthAuthorizationResumeClientUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,62 @@
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.instanceOfOAuthAuthorizationResumeClientUio = instanceOfOAuthAuthorizationResumeClientUio;
17
+ exports.OAuthAuthorizationResumeClientUioFromJSON = OAuthAuthorizationResumeClientUioFromJSON;
18
+ exports.OAuthAuthorizationResumeClientUioFromJSONTyped = OAuthAuthorizationResumeClientUioFromJSONTyped;
19
+ exports.OAuthAuthorizationResumeClientUioToJSON = OAuthAuthorizationResumeClientUioToJSON;
20
+ exports.OAuthAuthorizationResumeClientUioToJSONTyped = OAuthAuthorizationResumeClientUioToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the OAuthAuthorizationResumeClientUio interface.
23
+ */
24
+ function instanceOfOAuthAuthorizationResumeClientUio(value) {
25
+ if (!('clientId' in value) || value['clientId'] === undefined)
26
+ return false;
27
+ if (!('name' in value) || value['name'] === undefined)
28
+ return false;
29
+ if (!('uri' in value) || value['uri'] === undefined)
30
+ return false;
31
+ if (!('icon' in value) || value['icon'] === undefined)
32
+ return false;
33
+ return true;
34
+ }
35
+ function OAuthAuthorizationResumeClientUioFromJSON(json) {
36
+ return OAuthAuthorizationResumeClientUioFromJSONTyped(json, false);
37
+ }
38
+ function OAuthAuthorizationResumeClientUioFromJSONTyped(json, ignoreDiscriminator) {
39
+ if (json == null) {
40
+ return json;
41
+ }
42
+ return {
43
+ 'clientId': json['clientId'],
44
+ 'name': json['name'],
45
+ 'uri': json['uri'],
46
+ 'icon': json['icon'],
47
+ };
48
+ }
49
+ function OAuthAuthorizationResumeClientUioToJSON(json) {
50
+ return OAuthAuthorizationResumeClientUioToJSONTyped(json, false);
51
+ }
52
+ function OAuthAuthorizationResumeClientUioToJSONTyped(value, ignoreDiscriminator = false) {
53
+ if (value == null) {
54
+ return value;
55
+ }
56
+ return {
57
+ 'clientId': value['clientId'],
58
+ 'name': value['name'],
59
+ 'uri': value['uri'],
60
+ 'icon': value['icon'],
61
+ };
62
+ }
@@ -0,0 +1,38 @@
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
+ * Présent quand `status` vaut `consent_required`.
14
+ * @export
15
+ * @interface OAuthAuthorizationResumeOrganizationUio
16
+ */
17
+ export interface OAuthAuthorizationResumeOrganizationUio {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof OAuthAuthorizationResumeOrganizationUio
22
+ */
23
+ id: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof OAuthAuthorizationResumeOrganizationUio
28
+ */
29
+ name: string | null;
30
+ }
31
+ /**
32
+ * Check if a given object implements the OAuthAuthorizationResumeOrganizationUio interface.
33
+ */
34
+ export declare function instanceOfOAuthAuthorizationResumeOrganizationUio(value: object): value is OAuthAuthorizationResumeOrganizationUio;
35
+ export declare function OAuthAuthorizationResumeOrganizationUioFromJSON(json: any): OAuthAuthorizationResumeOrganizationUio;
36
+ export declare function OAuthAuthorizationResumeOrganizationUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): OAuthAuthorizationResumeOrganizationUio;
37
+ export declare function OAuthAuthorizationResumeOrganizationUioToJSON(json: any): OAuthAuthorizationResumeOrganizationUio;
38
+ export declare function OAuthAuthorizationResumeOrganizationUioToJSONTyped(value?: OAuthAuthorizationResumeOrganizationUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,54 @@
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.instanceOfOAuthAuthorizationResumeOrganizationUio = instanceOfOAuthAuthorizationResumeOrganizationUio;
17
+ exports.OAuthAuthorizationResumeOrganizationUioFromJSON = OAuthAuthorizationResumeOrganizationUioFromJSON;
18
+ exports.OAuthAuthorizationResumeOrganizationUioFromJSONTyped = OAuthAuthorizationResumeOrganizationUioFromJSONTyped;
19
+ exports.OAuthAuthorizationResumeOrganizationUioToJSON = OAuthAuthorizationResumeOrganizationUioToJSON;
20
+ exports.OAuthAuthorizationResumeOrganizationUioToJSONTyped = OAuthAuthorizationResumeOrganizationUioToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the OAuthAuthorizationResumeOrganizationUio interface.
23
+ */
24
+ function instanceOfOAuthAuthorizationResumeOrganizationUio(value) {
25
+ if (!('id' in value) || value['id'] === undefined)
26
+ return false;
27
+ if (!('name' in value) || value['name'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ function OAuthAuthorizationResumeOrganizationUioFromJSON(json) {
32
+ return OAuthAuthorizationResumeOrganizationUioFromJSONTyped(json, false);
33
+ }
34
+ function OAuthAuthorizationResumeOrganizationUioFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'id': json['id'],
40
+ 'name': json['name'],
41
+ };
42
+ }
43
+ function OAuthAuthorizationResumeOrganizationUioToJSON(json) {
44
+ return OAuthAuthorizationResumeOrganizationUioToJSONTyped(json, false);
45
+ }
46
+ function OAuthAuthorizationResumeOrganizationUioToJSONTyped(value, ignoreDiscriminator = false) {
47
+ if (value == null) {
48
+ return value;
49
+ }
50
+ return {
51
+ 'id': value['id'],
52
+ 'name': value['name'],
53
+ };
54
+ }
@@ -0,0 +1,32 @@
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 OAuthAuthorizationResumeRequestUio
16
+ */
17
+ export interface OAuthAuthorizationResumeRequestUio {
18
+ /**
19
+ * La requête d'autorisation signée, telle que le fournisseur l'a passée à la page `/oauth/authorize` de breign-app (sa query string, sans le `?`).
20
+ * @type {string}
21
+ * @memberof OAuthAuthorizationResumeRequestUio
22
+ */
23
+ oauthQuery: string;
24
+ }
25
+ /**
26
+ * Check if a given object implements the OAuthAuthorizationResumeRequestUio interface.
27
+ */
28
+ export declare function instanceOfOAuthAuthorizationResumeRequestUio(value: object): value is OAuthAuthorizationResumeRequestUio;
29
+ export declare function OAuthAuthorizationResumeRequestUioFromJSON(json: any): OAuthAuthorizationResumeRequestUio;
30
+ export declare function OAuthAuthorizationResumeRequestUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): OAuthAuthorizationResumeRequestUio;
31
+ export declare function OAuthAuthorizationResumeRequestUioToJSON(json: any): OAuthAuthorizationResumeRequestUio;
32
+ export declare function OAuthAuthorizationResumeRequestUioToJSONTyped(value?: OAuthAuthorizationResumeRequestUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,50 @@
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.instanceOfOAuthAuthorizationResumeRequestUio = instanceOfOAuthAuthorizationResumeRequestUio;
17
+ exports.OAuthAuthorizationResumeRequestUioFromJSON = OAuthAuthorizationResumeRequestUioFromJSON;
18
+ exports.OAuthAuthorizationResumeRequestUioFromJSONTyped = OAuthAuthorizationResumeRequestUioFromJSONTyped;
19
+ exports.OAuthAuthorizationResumeRequestUioToJSON = OAuthAuthorizationResumeRequestUioToJSON;
20
+ exports.OAuthAuthorizationResumeRequestUioToJSONTyped = OAuthAuthorizationResumeRequestUioToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the OAuthAuthorizationResumeRequestUio interface.
23
+ */
24
+ function instanceOfOAuthAuthorizationResumeRequestUio(value) {
25
+ if (!('oauthQuery' in value) || value['oauthQuery'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ function OAuthAuthorizationResumeRequestUioFromJSON(json) {
30
+ return OAuthAuthorizationResumeRequestUioFromJSONTyped(json, false);
31
+ }
32
+ function OAuthAuthorizationResumeRequestUioFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'oauthQuery': json['oauthQuery'],
38
+ };
39
+ }
40
+ function OAuthAuthorizationResumeRequestUioToJSON(json) {
41
+ return OAuthAuthorizationResumeRequestUioToJSONTyped(json, false);
42
+ }
43
+ function OAuthAuthorizationResumeRequestUioToJSONTyped(value, ignoreDiscriminator = false) {
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ 'oauthQuery': value['oauthQuery'],
49
+ };
50
+ }
@@ -0,0 +1,72 @@
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 { OAuthAuthorizationResumeOrganizationUio } from './OAuthAuthorizationResumeOrganizationUio';
13
+ import type { OAuthAuthorizationResumeClientUio } from './OAuthAuthorizationResumeClientUio';
14
+ /**
15
+ * `redirect` : l'utilisateur a déjà consenti (ou le client s'en dispense), envoyer le navigateur sur `redirectUrl`. `consent_required` : afficher l'écran de consentement.
16
+ * @export
17
+ * @interface OAuthAuthorizationResumeUio
18
+ */
19
+ export interface OAuthAuthorizationResumeUio {
20
+ /**
21
+ *
22
+ * @type {string}
23
+ * @memberof OAuthAuthorizationResumeUio
24
+ */
25
+ status: OAuthAuthorizationResumeUioStatusEnum;
26
+ /**
27
+ * Présent quand `status` vaut `redirect`.
28
+ * @type {string}
29
+ * @memberof OAuthAuthorizationResumeUio
30
+ */
31
+ redirectUrl?: string;
32
+ /**
33
+ *
34
+ * @type {OAuthAuthorizationResumeClientUio}
35
+ * @memberof OAuthAuthorizationResumeUio
36
+ */
37
+ client?: OAuthAuthorizationResumeClientUio;
38
+ /**
39
+ *
40
+ * @type {OAuthAuthorizationResumeOrganizationUio}
41
+ * @memberof OAuthAuthorizationResumeUio
42
+ */
43
+ organization?: OAuthAuthorizationResumeOrganizationUio;
44
+ /**
45
+ * Scopes demandés par l'application. Présent quand `status` vaut `consent_required`.
46
+ * @type {Array<string>}
47
+ * @memberof OAuthAuthorizationResumeUio
48
+ */
49
+ scopes?: Array<string>;
50
+ /**
51
+ * La requête signée à renvoyer à `consent` avec la réponse de l'utilisateur. Présent quand `status` vaut `consent_required` ; elle peut différer de celle passée à `resume`.
52
+ * @type {string}
53
+ * @memberof OAuthAuthorizationResumeUio
54
+ */
55
+ oauthQuery?: string;
56
+ }
57
+ /**
58
+ * @export
59
+ */
60
+ export declare const OAuthAuthorizationResumeUioStatusEnum: {
61
+ readonly Redirect: "redirect";
62
+ readonly ConsentRequired: "consent_required";
63
+ };
64
+ export type OAuthAuthorizationResumeUioStatusEnum = typeof OAuthAuthorizationResumeUioStatusEnum[keyof typeof OAuthAuthorizationResumeUioStatusEnum];
65
+ /**
66
+ * Check if a given object implements the OAuthAuthorizationResumeUio interface.
67
+ */
68
+ export declare function instanceOfOAuthAuthorizationResumeUio(value: object): value is OAuthAuthorizationResumeUio;
69
+ export declare function OAuthAuthorizationResumeUioFromJSON(json: any): OAuthAuthorizationResumeUio;
70
+ export declare function OAuthAuthorizationResumeUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): OAuthAuthorizationResumeUio;
71
+ export declare function OAuthAuthorizationResumeUioToJSON(json: any): OAuthAuthorizationResumeUio;
72
+ export declare function OAuthAuthorizationResumeUioToJSONTyped(value?: OAuthAuthorizationResumeUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,70 @@
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.OAuthAuthorizationResumeUioStatusEnum = void 0;
17
+ exports.instanceOfOAuthAuthorizationResumeUio = instanceOfOAuthAuthorizationResumeUio;
18
+ exports.OAuthAuthorizationResumeUioFromJSON = OAuthAuthorizationResumeUioFromJSON;
19
+ exports.OAuthAuthorizationResumeUioFromJSONTyped = OAuthAuthorizationResumeUioFromJSONTyped;
20
+ exports.OAuthAuthorizationResumeUioToJSON = OAuthAuthorizationResumeUioToJSON;
21
+ exports.OAuthAuthorizationResumeUioToJSONTyped = OAuthAuthorizationResumeUioToJSONTyped;
22
+ const OAuthAuthorizationResumeOrganizationUio_1 = require("./OAuthAuthorizationResumeOrganizationUio");
23
+ const OAuthAuthorizationResumeClientUio_1 = require("./OAuthAuthorizationResumeClientUio");
24
+ /**
25
+ * @export
26
+ */
27
+ exports.OAuthAuthorizationResumeUioStatusEnum = {
28
+ Redirect: 'redirect',
29
+ ConsentRequired: 'consent_required'
30
+ };
31
+ /**
32
+ * Check if a given object implements the OAuthAuthorizationResumeUio interface.
33
+ */
34
+ function instanceOfOAuthAuthorizationResumeUio(value) {
35
+ if (!('status' in value) || value['status'] === undefined)
36
+ return false;
37
+ return true;
38
+ }
39
+ function OAuthAuthorizationResumeUioFromJSON(json) {
40
+ return OAuthAuthorizationResumeUioFromJSONTyped(json, false);
41
+ }
42
+ function OAuthAuthorizationResumeUioFromJSONTyped(json, ignoreDiscriminator) {
43
+ if (json == null) {
44
+ return json;
45
+ }
46
+ return {
47
+ 'status': json['status'],
48
+ 'redirectUrl': json['redirectUrl'] == null ? undefined : json['redirectUrl'],
49
+ 'client': json['client'] == null ? undefined : (0, OAuthAuthorizationResumeClientUio_1.OAuthAuthorizationResumeClientUioFromJSON)(json['client']),
50
+ 'organization': json['organization'] == null ? undefined : (0, OAuthAuthorizationResumeOrganizationUio_1.OAuthAuthorizationResumeOrganizationUioFromJSON)(json['organization']),
51
+ 'scopes': json['scopes'] == null ? undefined : json['scopes'],
52
+ 'oauthQuery': json['oauthQuery'] == null ? undefined : json['oauthQuery'],
53
+ };
54
+ }
55
+ function OAuthAuthorizationResumeUioToJSON(json) {
56
+ return OAuthAuthorizationResumeUioToJSONTyped(json, false);
57
+ }
58
+ function OAuthAuthorizationResumeUioToJSONTyped(value, ignoreDiscriminator = false) {
59
+ if (value == null) {
60
+ return value;
61
+ }
62
+ return {
63
+ 'status': value['status'],
64
+ 'redirectUrl': value['redirectUrl'],
65
+ 'client': (0, OAuthAuthorizationResumeClientUio_1.OAuthAuthorizationResumeClientUioToJSON)(value['client']),
66
+ 'organization': (0, OAuthAuthorizationResumeOrganizationUio_1.OAuthAuthorizationResumeOrganizationUioToJSON)(value['organization']),
67
+ 'scopes': value['scopes'],
68
+ 'oauthQuery': value['oauthQuery'],
69
+ };
70
+ }
@@ -0,0 +1,77 @@
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 OAuthClientCreateUio
17
+ */
18
+ export interface OAuthClientCreateUio {
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof OAuthClientCreateUio
23
+ */
24
+ name: string;
25
+ /**
26
+ *
27
+ * @type {OAuthClientTypeUio}
28
+ * @memberof OAuthClientCreateUio
29
+ */
30
+ type: OAuthClientTypeUio;
31
+ /**
32
+ *
33
+ * @type {string}
34
+ * @memberof OAuthClientCreateUio
35
+ */
36
+ applicationType?: OAuthClientCreateUioApplicationTypeEnum;
37
+ /**
38
+ *
39
+ * @type {Array<string>}
40
+ * @memberof OAuthClientCreateUio
41
+ */
42
+ redirectUris: Array<string>;
43
+ /**
44
+ *
45
+ * @type {string}
46
+ * @memberof OAuthClientCreateUio
47
+ */
48
+ uri?: string;
49
+ /**
50
+ *
51
+ * @type {string}
52
+ * @memberof OAuthClientCreateUio
53
+ */
54
+ icon?: string;
55
+ /**
56
+ *
57
+ * @type {boolean}
58
+ * @memberof OAuthClientCreateUio
59
+ */
60
+ skipConsent?: boolean;
61
+ }
62
+ /**
63
+ * @export
64
+ */
65
+ export declare const OAuthClientCreateUioApplicationTypeEnum: {
66
+ readonly Web: "web";
67
+ readonly Native: "native";
68
+ };
69
+ export type OAuthClientCreateUioApplicationTypeEnum = typeof OAuthClientCreateUioApplicationTypeEnum[keyof typeof OAuthClientCreateUioApplicationTypeEnum];
70
+ /**
71
+ * Check if a given object implements the OAuthClientCreateUio interface.
72
+ */
73
+ export declare function instanceOfOAuthClientCreateUio(value: object): value is OAuthClientCreateUio;
74
+ export declare function OAuthClientCreateUioFromJSON(json: any): OAuthClientCreateUio;
75
+ export declare function OAuthClientCreateUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): OAuthClientCreateUio;
76
+ export declare function OAuthClientCreateUioToJSON(json: any): OAuthClientCreateUio;
77
+ export declare function OAuthClientCreateUioToJSONTyped(value?: OAuthClientCreateUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,75 @@
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.OAuthClientCreateUioApplicationTypeEnum = void 0;
17
+ exports.instanceOfOAuthClientCreateUio = instanceOfOAuthClientCreateUio;
18
+ exports.OAuthClientCreateUioFromJSON = OAuthClientCreateUioFromJSON;
19
+ exports.OAuthClientCreateUioFromJSONTyped = OAuthClientCreateUioFromJSONTyped;
20
+ exports.OAuthClientCreateUioToJSON = OAuthClientCreateUioToJSON;
21
+ exports.OAuthClientCreateUioToJSONTyped = OAuthClientCreateUioToJSONTyped;
22
+ const OAuthClientTypeUio_1 = require("./OAuthClientTypeUio");
23
+ /**
24
+ * @export
25
+ */
26
+ exports.OAuthClientCreateUioApplicationTypeEnum = {
27
+ Web: 'web',
28
+ Native: 'native'
29
+ };
30
+ /**
31
+ * Check if a given object implements the OAuthClientCreateUio interface.
32
+ */
33
+ function instanceOfOAuthClientCreateUio(value) {
34
+ if (!('name' in value) || value['name'] === undefined)
35
+ return false;
36
+ if (!('type' in value) || value['type'] === undefined)
37
+ return false;
38
+ if (!('redirectUris' in value) || value['redirectUris'] === undefined)
39
+ return false;
40
+ return true;
41
+ }
42
+ function OAuthClientCreateUioFromJSON(json) {
43
+ return OAuthClientCreateUioFromJSONTyped(json, false);
44
+ }
45
+ function OAuthClientCreateUioFromJSONTyped(json, ignoreDiscriminator) {
46
+ if (json == null) {
47
+ return json;
48
+ }
49
+ return {
50
+ 'name': json['name'],
51
+ 'type': (0, OAuthClientTypeUio_1.OAuthClientTypeUioFromJSON)(json['type']),
52
+ 'applicationType': json['applicationType'] == null ? undefined : json['applicationType'],
53
+ 'redirectUris': json['redirectUris'],
54
+ 'uri': json['uri'] == null ? undefined : json['uri'],
55
+ 'icon': json['icon'] == null ? undefined : json['icon'],
56
+ 'skipConsent': json['skipConsent'] == null ? undefined : json['skipConsent'],
57
+ };
58
+ }
59
+ function OAuthClientCreateUioToJSON(json) {
60
+ return OAuthClientCreateUioToJSONTyped(json, false);
61
+ }
62
+ function OAuthClientCreateUioToJSONTyped(value, ignoreDiscriminator = false) {
63
+ if (value == null) {
64
+ return value;
65
+ }
66
+ return {
67
+ 'name': value['name'],
68
+ 'type': (0, OAuthClientTypeUio_1.OAuthClientTypeUioToJSON)(value['type']),
69
+ 'applicationType': value['applicationType'],
70
+ 'redirectUris': value['redirectUris'],
71
+ 'uri': value['uri'],
72
+ 'icon': value['icon'],
73
+ 'skipConsent': value['skipConsent'],
74
+ };
75
+ }