@breign/client 1.0.183 → 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 (45) hide show
  1. package/dist/apis/OauthProviderApi.d.ts +155 -0
  2. package/dist/apis/OauthProviderApi.js +388 -0
  3. package/dist/apis/TicketsApi.d.ts +16 -1
  4. package/dist/apis/TicketsApi.js +37 -0
  5. package/dist/apis/index.d.ts +1 -0
  6. package/dist/apis/index.js +1 -0
  7. package/dist/models/InboxItemKindUio.d.ts +2 -1
  8. package/dist/models/InboxItemKindUio.js +2 -1
  9. package/dist/models/OAuthAuthorizationConsentRequestUio.d.ts +44 -0
  10. package/dist/models/OAuthAuthorizationConsentRequestUio.js +56 -0
  11. package/dist/models/OAuthAuthorizationRedirectUio.d.ts +32 -0
  12. package/dist/models/OAuthAuthorizationRedirectUio.js +50 -0
  13. package/dist/models/OAuthAuthorizationResumeClientUio.d.ts +50 -0
  14. package/dist/models/OAuthAuthorizationResumeClientUio.js +62 -0
  15. package/dist/models/OAuthAuthorizationResumeOrganizationUio.d.ts +38 -0
  16. package/dist/models/OAuthAuthorizationResumeOrganizationUio.js +54 -0
  17. package/dist/models/OAuthAuthorizationResumeRequestUio.d.ts +32 -0
  18. package/dist/models/OAuthAuthorizationResumeRequestUio.js +50 -0
  19. package/dist/models/OAuthAuthorizationResumeUio.d.ts +72 -0
  20. package/dist/models/OAuthAuthorizationResumeUio.js +70 -0
  21. package/dist/models/OAuthClientCreateUio.d.ts +77 -0
  22. package/dist/models/OAuthClientCreateUio.js +75 -0
  23. package/dist/models/OAuthClientTypeUio.d.ts +25 -0
  24. package/dist/models/OAuthClientTypeUio.js +51 -0
  25. package/dist/models/OAuthClientUio.d.ts +95 -0
  26. package/dist/models/OAuthClientUio.js +95 -0
  27. package/dist/models/OAuthClientUpdateUio.d.ts +62 -0
  28. package/dist/models/OAuthClientUpdateUio.js +58 -0
  29. package/dist/models/OAuthClientWithSecretUio.d.ts +101 -0
  30. package/dist/models/OAuthClientWithSecretUio.js +99 -0
  31. package/dist/models/OAuthConsentUio.d.ts +68 -0
  32. package/dist/models/OAuthConsentUio.js +74 -0
  33. package/dist/models/OAuthProviderInfoUio.d.ts +44 -0
  34. package/dist/models/OAuthProviderInfoUio.js +58 -0
  35. package/dist/models/TicketApprovalDecisionUio.d.ts +26 -0
  36. package/dist/models/TicketApprovalDecisionUio.js +52 -0
  37. package/dist/models/TicketApprovalRequestUio.d.ts +39 -0
  38. package/dist/models/TicketApprovalRequestUio.js +53 -0
  39. package/dist/models/TicketEventKindUio.d.ts +2 -1
  40. package/dist/models/TicketEventKindUio.js +2 -1
  41. package/dist/models/TicketEventUio.d.ts +1 -1
  42. package/dist/models/index.d.ts +15 -0
  43. package/dist/models/index.js +15 -0
  44. package/dist/openapi.json +835 -5
  45. package/package.json +1 -1
@@ -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;
@@ -0,0 +1,74 @@
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.instanceOfOAuthConsentUio = instanceOfOAuthConsentUio;
17
+ exports.OAuthConsentUioFromJSON = OAuthConsentUioFromJSON;
18
+ exports.OAuthConsentUioFromJSONTyped = OAuthConsentUioFromJSONTyped;
19
+ exports.OAuthConsentUioToJSON = OAuthConsentUioToJSON;
20
+ exports.OAuthConsentUioToJSONTyped = OAuthConsentUioToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the OAuthConsentUio interface.
23
+ */
24
+ function instanceOfOAuthConsentUio(value) {
25
+ if (!('clientId' in value) || value['clientId'] === undefined)
26
+ return false;
27
+ if (!('clientName' in value) || value['clientName'] === undefined)
28
+ return false;
29
+ if (!('clientIcon' in value) || value['clientIcon'] === undefined)
30
+ return false;
31
+ if (!('clientUri' in value) || value['clientUri'] === undefined)
32
+ return false;
33
+ if (!('scopes' in value) || value['scopes'] === undefined)
34
+ return false;
35
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
36
+ return false;
37
+ if (!('updatedAt' in value) || value['updatedAt'] === undefined)
38
+ return false;
39
+ return true;
40
+ }
41
+ function OAuthConsentUioFromJSON(json) {
42
+ return OAuthConsentUioFromJSONTyped(json, false);
43
+ }
44
+ function OAuthConsentUioFromJSONTyped(json, ignoreDiscriminator) {
45
+ if (json == null) {
46
+ return json;
47
+ }
48
+ return {
49
+ 'clientId': json['clientId'],
50
+ 'clientName': json['clientName'],
51
+ 'clientIcon': json['clientIcon'],
52
+ 'clientUri': json['clientUri'],
53
+ 'scopes': json['scopes'],
54
+ 'createdAt': (json['createdAt'] == null ? null : new Date(json['createdAt'])),
55
+ 'updatedAt': (json['updatedAt'] == null ? null : new Date(json['updatedAt'])),
56
+ };
57
+ }
58
+ function OAuthConsentUioToJSON(json) {
59
+ return OAuthConsentUioToJSONTyped(json, false);
60
+ }
61
+ function OAuthConsentUioToJSONTyped(value, ignoreDiscriminator = false) {
62
+ if (value == null) {
63
+ return value;
64
+ }
65
+ return {
66
+ 'clientId': value['clientId'],
67
+ 'clientName': value['clientName'],
68
+ 'clientIcon': value['clientIcon'],
69
+ 'clientUri': value['clientUri'],
70
+ 'scopes': value['scopes'],
71
+ 'createdAt': (value['createdAt'] == null ? null : value['createdAt'].toISOString()),
72
+ 'updatedAt': (value['updatedAt'] == null ? null : value['updatedAt'].toISOString()),
73
+ };
74
+ }
@@ -0,0 +1,44 @@
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
+ * Le fournisseur OAuth de la plateforme. Répond 404 quand il est désactivé.
14
+ * @export
15
+ * @interface OAuthProviderInfoUio
16
+ */
17
+ export interface OAuthProviderInfoUio {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof OAuthProviderInfoUio
22
+ */
23
+ issuer: string;
24
+ /**
25
+ * La valeur exacte que les applications passent en `resource`.
26
+ * @type {string}
27
+ * @memberof OAuthProviderInfoUio
28
+ */
29
+ resource: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof OAuthProviderInfoUio
34
+ */
35
+ discoveryUrl: string;
36
+ }
37
+ /**
38
+ * Check if a given object implements the OAuthProviderInfoUio interface.
39
+ */
40
+ export declare function instanceOfOAuthProviderInfoUio(value: object): value is OAuthProviderInfoUio;
41
+ export declare function OAuthProviderInfoUioFromJSON(json: any): OAuthProviderInfoUio;
42
+ export declare function OAuthProviderInfoUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): OAuthProviderInfoUio;
43
+ export declare function OAuthProviderInfoUioToJSON(json: any): OAuthProviderInfoUio;
44
+ export declare function OAuthProviderInfoUioToJSONTyped(value?: OAuthProviderInfoUio | 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.instanceOfOAuthProviderInfoUio = instanceOfOAuthProviderInfoUio;
17
+ exports.OAuthProviderInfoUioFromJSON = OAuthProviderInfoUioFromJSON;
18
+ exports.OAuthProviderInfoUioFromJSONTyped = OAuthProviderInfoUioFromJSONTyped;
19
+ exports.OAuthProviderInfoUioToJSON = OAuthProviderInfoUioToJSON;
20
+ exports.OAuthProviderInfoUioToJSONTyped = OAuthProviderInfoUioToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the OAuthProviderInfoUio interface.
23
+ */
24
+ function instanceOfOAuthProviderInfoUio(value) {
25
+ if (!('issuer' in value) || value['issuer'] === undefined)
26
+ return false;
27
+ if (!('resource' in value) || value['resource'] === undefined)
28
+ return false;
29
+ if (!('discoveryUrl' in value) || value['discoveryUrl'] === undefined)
30
+ return false;
31
+ return true;
32
+ }
33
+ function OAuthProviderInfoUioFromJSON(json) {
34
+ return OAuthProviderInfoUioFromJSONTyped(json, false);
35
+ }
36
+ function OAuthProviderInfoUioFromJSONTyped(json, ignoreDiscriminator) {
37
+ if (json == null) {
38
+ return json;
39
+ }
40
+ return {
41
+ 'issuer': json['issuer'],
42
+ 'resource': json['resource'],
43
+ 'discoveryUrl': json['discoveryUrl'],
44
+ };
45
+ }
46
+ function OAuthProviderInfoUioToJSON(json) {
47
+ return OAuthProviderInfoUioToJSONTyped(json, false);
48
+ }
49
+ function OAuthProviderInfoUioToJSONTyped(value, ignoreDiscriminator = false) {
50
+ if (value == null) {
51
+ return value;
52
+ }
53
+ return {
54
+ 'issuer': value['issuer'],
55
+ 'resource': value['resource'],
56
+ 'discoveryUrl': value['discoveryUrl'],
57
+ };
58
+ }
@@ -0,0 +1,26 @@
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
+ * approve = l'agent peut agir ; changes = il corrige puis redemande (commentaire requis) ; reject = il renonce.
14
+ * @export
15
+ */
16
+ export declare const TicketApprovalDecisionUio: {
17
+ readonly Approve: "approve";
18
+ readonly Changes: "changes";
19
+ readonly Reject: "reject";
20
+ };
21
+ export type TicketApprovalDecisionUio = typeof TicketApprovalDecisionUio[keyof typeof TicketApprovalDecisionUio];
22
+ export declare function instanceOfTicketApprovalDecisionUio(value: any): boolean;
23
+ export declare function TicketApprovalDecisionUioFromJSON(json: any): TicketApprovalDecisionUio;
24
+ export declare function TicketApprovalDecisionUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): TicketApprovalDecisionUio;
25
+ export declare function TicketApprovalDecisionUioToJSON(value?: TicketApprovalDecisionUio | null): any;
26
+ export declare function TicketApprovalDecisionUioToJSONTyped(value: any, ignoreDiscriminator: boolean): TicketApprovalDecisionUio;
@@ -0,0 +1,52 @@
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.TicketApprovalDecisionUio = void 0;
17
+ exports.instanceOfTicketApprovalDecisionUio = instanceOfTicketApprovalDecisionUio;
18
+ exports.TicketApprovalDecisionUioFromJSON = TicketApprovalDecisionUioFromJSON;
19
+ exports.TicketApprovalDecisionUioFromJSONTyped = TicketApprovalDecisionUioFromJSONTyped;
20
+ exports.TicketApprovalDecisionUioToJSON = TicketApprovalDecisionUioToJSON;
21
+ exports.TicketApprovalDecisionUioToJSONTyped = TicketApprovalDecisionUioToJSONTyped;
22
+ /**
23
+ * approve = l'agent peut agir ; changes = il corrige puis redemande (commentaire requis) ; reject = il renonce.
24
+ * @export
25
+ */
26
+ exports.TicketApprovalDecisionUio = {
27
+ Approve: 'approve',
28
+ Changes: 'changes',
29
+ Reject: 'reject'
30
+ };
31
+ function instanceOfTicketApprovalDecisionUio(value) {
32
+ for (const key in exports.TicketApprovalDecisionUio) {
33
+ if (Object.prototype.hasOwnProperty.call(exports.TicketApprovalDecisionUio, key)) {
34
+ if (exports.TicketApprovalDecisionUio[key] === value) {
35
+ return true;
36
+ }
37
+ }
38
+ }
39
+ return false;
40
+ }
41
+ function TicketApprovalDecisionUioFromJSON(json) {
42
+ return TicketApprovalDecisionUioFromJSONTyped(json, false);
43
+ }
44
+ function TicketApprovalDecisionUioFromJSONTyped(json, ignoreDiscriminator) {
45
+ return json;
46
+ }
47
+ function TicketApprovalDecisionUioToJSON(value) {
48
+ return value;
49
+ }
50
+ function TicketApprovalDecisionUioToJSONTyped(value, ignoreDiscriminator) {
51
+ return value;
52
+ }
@@ -0,0 +1,39 @@
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 { TicketApprovalDecisionUio } from './TicketApprovalDecisionUio';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface TicketApprovalRequestUio
17
+ */
18
+ export interface TicketApprovalRequestUio {
19
+ /**
20
+ *
21
+ * @type {TicketApprovalDecisionUio}
22
+ * @memberof TicketApprovalRequestUio
23
+ */
24
+ decision: TicketApprovalDecisionUio;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof TicketApprovalRequestUio
29
+ */
30
+ comment?: string;
31
+ }
32
+ /**
33
+ * Check if a given object implements the TicketApprovalRequestUio interface.
34
+ */
35
+ export declare function instanceOfTicketApprovalRequestUio(value: object): value is TicketApprovalRequestUio;
36
+ export declare function TicketApprovalRequestUioFromJSON(json: any): TicketApprovalRequestUio;
37
+ export declare function TicketApprovalRequestUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): TicketApprovalRequestUio;
38
+ export declare function TicketApprovalRequestUioToJSON(json: any): TicketApprovalRequestUio;
39
+ export declare function TicketApprovalRequestUioToJSONTyped(value?: TicketApprovalRequestUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,53 @@
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.instanceOfTicketApprovalRequestUio = instanceOfTicketApprovalRequestUio;
17
+ exports.TicketApprovalRequestUioFromJSON = TicketApprovalRequestUioFromJSON;
18
+ exports.TicketApprovalRequestUioFromJSONTyped = TicketApprovalRequestUioFromJSONTyped;
19
+ exports.TicketApprovalRequestUioToJSON = TicketApprovalRequestUioToJSON;
20
+ exports.TicketApprovalRequestUioToJSONTyped = TicketApprovalRequestUioToJSONTyped;
21
+ const TicketApprovalDecisionUio_1 = require("./TicketApprovalDecisionUio");
22
+ /**
23
+ * Check if a given object implements the TicketApprovalRequestUio interface.
24
+ */
25
+ function instanceOfTicketApprovalRequestUio(value) {
26
+ if (!('decision' in value) || value['decision'] === undefined)
27
+ return false;
28
+ return true;
29
+ }
30
+ function TicketApprovalRequestUioFromJSON(json) {
31
+ return TicketApprovalRequestUioFromJSONTyped(json, false);
32
+ }
33
+ function TicketApprovalRequestUioFromJSONTyped(json, ignoreDiscriminator) {
34
+ if (json == null) {
35
+ return json;
36
+ }
37
+ return {
38
+ 'decision': (0, TicketApprovalDecisionUio_1.TicketApprovalDecisionUioFromJSON)(json['decision']),
39
+ 'comment': json['comment'] == null ? undefined : json['comment'],
40
+ };
41
+ }
42
+ function TicketApprovalRequestUioToJSON(json) {
43
+ return TicketApprovalRequestUioToJSONTyped(json, false);
44
+ }
45
+ function TicketApprovalRequestUioToJSONTyped(value, ignoreDiscriminator = false) {
46
+ if (value == null) {
47
+ return value;
48
+ }
49
+ return {
50
+ 'decision': (0, TicketApprovalDecisionUio_1.TicketApprovalDecisionUioToJSON)(value['decision']),
51
+ 'comment': value['comment'],
52
+ };
53
+ }
@@ -10,13 +10,14 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  /**
13
- * comment et report sont écrits par un humain ou un agent ; question porte une question d'agent à un humain ; event est une trace système (création, statut, assignation…).
13
+ * comment et report sont écrits par un humain ou un agent ; question porte une question d'agent à un humain ; approval une demande d'approbation d'un agent ; event est une trace système (création, statut, assignation…).
14
14
  * @export
15
15
  */
16
16
  export declare const TicketEventKindUio: {
17
17
  readonly Comment: "comment";
18
18
  readonly Report: "report";
19
19
  readonly Question: "question";
20
+ readonly Approval: "approval";
20
21
  readonly Event: "event";
21
22
  };
22
23
  export type TicketEventKindUio = typeof TicketEventKindUio[keyof typeof TicketEventKindUio];
@@ -20,13 +20,14 @@ exports.TicketEventKindUioFromJSONTyped = TicketEventKindUioFromJSONTyped;
20
20
  exports.TicketEventKindUioToJSON = TicketEventKindUioToJSON;
21
21
  exports.TicketEventKindUioToJSONTyped = TicketEventKindUioToJSONTyped;
22
22
  /**
23
- * comment et report sont écrits par un humain ou un agent ; question porte une question d'agent à un humain ; event est une trace système (création, statut, assignation…).
23
+ * comment et report sont écrits par un humain ou un agent ; question porte une question d'agent à un humain ; approval une demande d'approbation d'un agent ; event est une trace système (création, statut, assignation…).
24
24
  * @export
25
25
  */
26
26
  exports.TicketEventKindUio = {
27
27
  Comment: 'comment',
28
28
  Report: 'report',
29
29
  Question: 'question',
30
+ Approval: 'approval',
30
31
  Event: 'event'
31
32
  };
32
33
  function instanceOfTicketEventKindUio(value) {
@@ -48,7 +48,7 @@ export interface TicketEventUio {
48
48
  */
49
49
  body: string | null;
50
50
  /**
51
- * Détails selon le type : pour event, { action, from?, to?, member? } ; pour report, { title } ; pour question, { humanRequest: TicketQuestion } ; mentions dans { mentions: MemberRef[] }.
51
+ * Détails selon le type : pour event, { action, from?, to?, member? } ; pour report, { title } ; pour question, { humanRequest: TicketQuestion } ; pour approval, { approval: TicketApproval } ; mentions dans { mentions: MemberRef[] }.
52
52
  * @type {{ [key: string]: any; }}
53
53
  * @memberof TicketEventUio
54
54
  */
@@ -456,6 +456,19 @@ export * from './NodeSessionProgressUio';
456
456
  export * from './NodeSessionStateUio';
457
457
  export * from './NodeSessionUio';
458
458
  export * from './NodeTurnCancelResultUio';
459
+ export * from './OAuthAuthorizationConsentRequestUio';
460
+ export * from './OAuthAuthorizationRedirectUio';
461
+ export * from './OAuthAuthorizationResumeClientUio';
462
+ export * from './OAuthAuthorizationResumeOrganizationUio';
463
+ export * from './OAuthAuthorizationResumeRequestUio';
464
+ export * from './OAuthAuthorizationResumeUio';
465
+ export * from './OAuthClientCreateUio';
466
+ export * from './OAuthClientTypeUio';
467
+ export * from './OAuthClientUio';
468
+ export * from './OAuthClientUpdateUio';
469
+ export * from './OAuthClientWithSecretUio';
470
+ export * from './OAuthConsentUio';
471
+ export * from './OAuthProviderInfoUio';
459
472
  export * from './OcrModeUio';
460
473
  export * from './OpenAiChatCompletionRequestStreamOptionsUio';
461
474
  export * from './OpenAiChatCompletionRequestUio';
@@ -585,6 +598,8 @@ export * from './TicketAgentExecutionUio';
585
598
  export * from './TicketAgentPlanUio';
586
599
  export * from './TicketAgentRunStatusUio';
587
600
  export * from './TicketAgentUsageUio';
601
+ export * from './TicketApprovalDecisionUio';
602
+ export * from './TicketApprovalRequestUio';
588
603
  export * from './TicketArtifactDownloadUrlUio';
589
604
  export * from './TicketArtifactSourceUio';
590
605
  export * from './TicketArtifactStatusUio';
@@ -474,6 +474,19 @@ __exportStar(require("./NodeSessionProgressUio"), exports);
474
474
  __exportStar(require("./NodeSessionStateUio"), exports);
475
475
  __exportStar(require("./NodeSessionUio"), exports);
476
476
  __exportStar(require("./NodeTurnCancelResultUio"), exports);
477
+ __exportStar(require("./OAuthAuthorizationConsentRequestUio"), exports);
478
+ __exportStar(require("./OAuthAuthorizationRedirectUio"), exports);
479
+ __exportStar(require("./OAuthAuthorizationResumeClientUio"), exports);
480
+ __exportStar(require("./OAuthAuthorizationResumeOrganizationUio"), exports);
481
+ __exportStar(require("./OAuthAuthorizationResumeRequestUio"), exports);
482
+ __exportStar(require("./OAuthAuthorizationResumeUio"), exports);
483
+ __exportStar(require("./OAuthClientCreateUio"), exports);
484
+ __exportStar(require("./OAuthClientTypeUio"), exports);
485
+ __exportStar(require("./OAuthClientUio"), exports);
486
+ __exportStar(require("./OAuthClientUpdateUio"), exports);
487
+ __exportStar(require("./OAuthClientWithSecretUio"), exports);
488
+ __exportStar(require("./OAuthConsentUio"), exports);
489
+ __exportStar(require("./OAuthProviderInfoUio"), exports);
477
490
  __exportStar(require("./OcrModeUio"), exports);
478
491
  __exportStar(require("./OpenAiChatCompletionRequestStreamOptionsUio"), exports);
479
492
  __exportStar(require("./OpenAiChatCompletionRequestUio"), exports);
@@ -603,6 +616,8 @@ __exportStar(require("./TicketAgentExecutionUio"), exports);
603
616
  __exportStar(require("./TicketAgentPlanUio"), exports);
604
617
  __exportStar(require("./TicketAgentRunStatusUio"), exports);
605
618
  __exportStar(require("./TicketAgentUsageUio"), exports);
619
+ __exportStar(require("./TicketApprovalDecisionUio"), exports);
620
+ __exportStar(require("./TicketApprovalRequestUio"), exports);
606
621
  __exportStar(require("./TicketArtifactDownloadUrlUio"), exports);
607
622
  __exportStar(require("./TicketArtifactSourceUio"), exports);
608
623
  __exportStar(require("./TicketArtifactStatusUio"), exports);