@breign/client 1.0.180 → 1.0.181
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/SupportApi.d.ts +59 -0
- package/dist/apis/SupportApi.js +154 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/models/SupportRequestAcceptedUio.d.ts +38 -0
- package/dist/models/SupportRequestAcceptedUio.js +54 -0
- package/dist/models/SupportRequestAttachmentUio.d.ts +44 -0
- package/dist/models/SupportRequestAttachmentUio.js +58 -0
- package/dist/models/SupportRequestCreateUio.d.ts +85 -0
- package/dist/models/SupportRequestCreateUio.js +90 -0
- package/dist/models/SupportSettingsUio.d.ts +44 -0
- package/dist/models/SupportSettingsUio.js +58 -0
- package/dist/models/index.d.ts +4 -0
- package/dist/models/index.js +4 -0
- package/dist/openapi.json +225 -0
- package/package.json +1 -1
|
@@ -0,0 +1,59 @@
|
|
|
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 * as runtime from '../runtime';
|
|
13
|
+
import type { SupportRequestAcceptedUio, SupportRequestCreateUio, SupportSettingsUio } from '../models/index';
|
|
14
|
+
export interface CreateOrganizationSupportRequestRequest {
|
|
15
|
+
organizationId: string;
|
|
16
|
+
supportRequestCreateUio: SupportRequestCreateUio;
|
|
17
|
+
}
|
|
18
|
+
export interface GetOrganizationSupportSettingsRequest {
|
|
19
|
+
organizationId: string;
|
|
20
|
+
}
|
|
21
|
+
export interface UpdateOrganizationSupportSettingsRequest {
|
|
22
|
+
organizationId: string;
|
|
23
|
+
supportSettingsUio: SupportSettingsUio;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
*/
|
|
28
|
+
export declare class SupportApi extends runtime.BaseAPI {
|
|
29
|
+
/**
|
|
30
|
+
* Au nom de l\'utilisateur connecté, membre de l\'organisation : la demande, avec son identité et son organisation, est mise en file sur l\'automatisation du formulaire, comme un appel de son webhook.
|
|
31
|
+
* Send a support request from the support page form
|
|
32
|
+
*/
|
|
33
|
+
createOrganizationSupportRequestRaw(requestParameters: CreateOrganizationSupportRequestRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SupportRequestAcceptedUio>>;
|
|
34
|
+
/**
|
|
35
|
+
* Au nom de l\'utilisateur connecté, membre de l\'organisation : la demande, avec son identité et son organisation, est mise en file sur l\'automatisation du formulaire, comme un appel de son webhook.
|
|
36
|
+
* Send a support request from the support page form
|
|
37
|
+
*/
|
|
38
|
+
createOrganizationSupportRequest(organizationId: string, supportRequestCreateUio: SupportRequestCreateUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SupportRequestAcceptedUio>;
|
|
39
|
+
/**
|
|
40
|
+
* Lisibles par les membres de l\'organisation, pour afficher la page Support.
|
|
41
|
+
* Get the support page settings of an organization
|
|
42
|
+
*/
|
|
43
|
+
getOrganizationSupportSettingsRaw(requestParameters: GetOrganizationSupportSettingsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SupportSettingsUio>>;
|
|
44
|
+
/**
|
|
45
|
+
* Lisibles par les membres de l\'organisation, pour afficher la page Support.
|
|
46
|
+
* Get the support page settings of an organization
|
|
47
|
+
*/
|
|
48
|
+
getOrganizationSupportSettings(organizationId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SupportSettingsUio>;
|
|
49
|
+
/**
|
|
50
|
+
* Réservé aux superadmins.
|
|
51
|
+
* Update the support page settings of an organization
|
|
52
|
+
*/
|
|
53
|
+
updateOrganizationSupportSettingsRaw(requestParameters: UpdateOrganizationSupportSettingsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SupportSettingsUio>>;
|
|
54
|
+
/**
|
|
55
|
+
* Réservé aux superadmins.
|
|
56
|
+
* Update the support page settings of an organization
|
|
57
|
+
*/
|
|
58
|
+
updateOrganizationSupportSettings(organizationId: string, supportSettingsUio: SupportSettingsUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SupportSettingsUio>;
|
|
59
|
+
}
|
|
@@ -0,0 +1,154 @@
|
|
|
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
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
16
|
+
if (k2 === undefined) k2 = k;
|
|
17
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
18
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
19
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
20
|
+
}
|
|
21
|
+
Object.defineProperty(o, k2, desc);
|
|
22
|
+
}) : (function(o, m, k, k2) {
|
|
23
|
+
if (k2 === undefined) k2 = k;
|
|
24
|
+
o[k2] = m[k];
|
|
25
|
+
}));
|
|
26
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
27
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
28
|
+
}) : function(o, v) {
|
|
29
|
+
o["default"] = v;
|
|
30
|
+
});
|
|
31
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
32
|
+
var ownKeys = function(o) {
|
|
33
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
34
|
+
var ar = [];
|
|
35
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
36
|
+
return ar;
|
|
37
|
+
};
|
|
38
|
+
return ownKeys(o);
|
|
39
|
+
};
|
|
40
|
+
return function (mod) {
|
|
41
|
+
if (mod && mod.__esModule) return mod;
|
|
42
|
+
var result = {};
|
|
43
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
44
|
+
__setModuleDefault(result, mod);
|
|
45
|
+
return result;
|
|
46
|
+
};
|
|
47
|
+
})();
|
|
48
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
49
|
+
exports.SupportApi = void 0;
|
|
50
|
+
const runtime = __importStar(require("../runtime"));
|
|
51
|
+
const index_1 = require("../models/index");
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
*/
|
|
55
|
+
class SupportApi extends runtime.BaseAPI {
|
|
56
|
+
/**
|
|
57
|
+
* Au nom de l\'utilisateur connecté, membre de l\'organisation : la demande, avec son identité et son organisation, est mise en file sur l\'automatisation du formulaire, comme un appel de son webhook.
|
|
58
|
+
* Send a support request from the support page form
|
|
59
|
+
*/
|
|
60
|
+
async createOrganizationSupportRequestRaw(requestParameters, initOverrides) {
|
|
61
|
+
if (requestParameters['organizationId'] == null) {
|
|
62
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling createOrganizationSupportRequest().');
|
|
63
|
+
}
|
|
64
|
+
if (requestParameters['supportRequestCreateUio'] == null) {
|
|
65
|
+
throw new runtime.RequiredError('supportRequestCreateUio', 'Required parameter "supportRequestCreateUio" was null or undefined when calling createOrganizationSupportRequest().');
|
|
66
|
+
}
|
|
67
|
+
const queryParameters = {};
|
|
68
|
+
const headerParameters = {};
|
|
69
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
70
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
71
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
72
|
+
}
|
|
73
|
+
const response = await this.request({
|
|
74
|
+
path: `/organizations/{organizationId}/support-requests`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))),
|
|
75
|
+
method: 'POST',
|
|
76
|
+
headers: headerParameters,
|
|
77
|
+
query: queryParameters,
|
|
78
|
+
body: (0, index_1.SupportRequestCreateUioToJSON)(requestParameters['supportRequestCreateUio']),
|
|
79
|
+
}, initOverrides);
|
|
80
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.SupportRequestAcceptedUioFromJSON)(jsonValue));
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* Au nom de l\'utilisateur connecté, membre de l\'organisation : la demande, avec son identité et son organisation, est mise en file sur l\'automatisation du formulaire, comme un appel de son webhook.
|
|
84
|
+
* Send a support request from the support page form
|
|
85
|
+
*/
|
|
86
|
+
async createOrganizationSupportRequest(organizationId, supportRequestCreateUio, initOverrides) {
|
|
87
|
+
const response = await this.createOrganizationSupportRequestRaw({ organizationId: organizationId, supportRequestCreateUio: supportRequestCreateUio }, initOverrides);
|
|
88
|
+
return await response.value();
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* Lisibles par les membres de l\'organisation, pour afficher la page Support.
|
|
92
|
+
* Get the support page settings of an organization
|
|
93
|
+
*/
|
|
94
|
+
async getOrganizationSupportSettingsRaw(requestParameters, initOverrides) {
|
|
95
|
+
if (requestParameters['organizationId'] == null) {
|
|
96
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling getOrganizationSupportSettings().');
|
|
97
|
+
}
|
|
98
|
+
const queryParameters = {};
|
|
99
|
+
const headerParameters = {};
|
|
100
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
101
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
102
|
+
}
|
|
103
|
+
const response = await this.request({
|
|
104
|
+
path: `/organizations/{organizationId}/support-settings`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))),
|
|
105
|
+
method: 'GET',
|
|
106
|
+
headers: headerParameters,
|
|
107
|
+
query: queryParameters,
|
|
108
|
+
}, initOverrides);
|
|
109
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.SupportSettingsUioFromJSON)(jsonValue));
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* Lisibles par les membres de l\'organisation, pour afficher la page Support.
|
|
113
|
+
* Get the support page settings of an organization
|
|
114
|
+
*/
|
|
115
|
+
async getOrganizationSupportSettings(organizationId, initOverrides) {
|
|
116
|
+
const response = await this.getOrganizationSupportSettingsRaw({ organizationId: organizationId }, initOverrides);
|
|
117
|
+
return await response.value();
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* Réservé aux superadmins.
|
|
121
|
+
* Update the support page settings of an organization
|
|
122
|
+
*/
|
|
123
|
+
async updateOrganizationSupportSettingsRaw(requestParameters, initOverrides) {
|
|
124
|
+
if (requestParameters['organizationId'] == null) {
|
|
125
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling updateOrganizationSupportSettings().');
|
|
126
|
+
}
|
|
127
|
+
if (requestParameters['supportSettingsUio'] == null) {
|
|
128
|
+
throw new runtime.RequiredError('supportSettingsUio', 'Required parameter "supportSettingsUio" was null or undefined when calling updateOrganizationSupportSettings().');
|
|
129
|
+
}
|
|
130
|
+
const queryParameters = {};
|
|
131
|
+
const headerParameters = {};
|
|
132
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
133
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
134
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
135
|
+
}
|
|
136
|
+
const response = await this.request({
|
|
137
|
+
path: `/organizations/{organizationId}/support-settings`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))),
|
|
138
|
+
method: 'PUT',
|
|
139
|
+
headers: headerParameters,
|
|
140
|
+
query: queryParameters,
|
|
141
|
+
body: (0, index_1.SupportSettingsUioToJSON)(requestParameters['supportSettingsUio']),
|
|
142
|
+
}, initOverrides);
|
|
143
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.SupportSettingsUioFromJSON)(jsonValue));
|
|
144
|
+
}
|
|
145
|
+
/**
|
|
146
|
+
* Réservé aux superadmins.
|
|
147
|
+
* Update the support page settings of an organization
|
|
148
|
+
*/
|
|
149
|
+
async updateOrganizationSupportSettings(organizationId, supportSettingsUio, initOverrides) {
|
|
150
|
+
const response = await this.updateOrganizationSupportSettingsRaw({ organizationId: organizationId, supportSettingsUio: supportSettingsUio }, initOverrides);
|
|
151
|
+
return await response.value();
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
exports.SupportApi = SupportApi;
|
package/dist/apis/index.d.ts
CHANGED
|
@@ -27,6 +27,7 @@ export * from './PromptsApi';
|
|
|
27
27
|
export * from './RemotesApi';
|
|
28
28
|
export * from './ScheduledTasksApi';
|
|
29
29
|
export * from './SkillsApi';
|
|
30
|
+
export * from './SupportApi';
|
|
30
31
|
export * from './TicketsApi';
|
|
31
32
|
export * from './ToolsApi';
|
|
32
33
|
export * from './UsersApi';
|
package/dist/apis/index.js
CHANGED
|
@@ -45,6 +45,7 @@ __exportStar(require("./PromptsApi"), exports);
|
|
|
45
45
|
__exportStar(require("./RemotesApi"), exports);
|
|
46
46
|
__exportStar(require("./ScheduledTasksApi"), exports);
|
|
47
47
|
__exportStar(require("./SkillsApi"), exports);
|
|
48
|
+
__exportStar(require("./SupportApi"), exports);
|
|
48
49
|
__exportStar(require("./TicketsApi"), exports);
|
|
49
50
|
__exportStar(require("./ToolsApi"), exports);
|
|
50
51
|
__exportStar(require("./UsersApi"), exports);
|
|
@@ -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
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface SupportRequestAcceptedUio
|
|
16
|
+
*/
|
|
17
|
+
export interface SupportRequestAcceptedUio {
|
|
18
|
+
/**
|
|
19
|
+
* L'événement mis en file sur l'automatisation, référence de la demande.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof SupportRequestAcceptedUio
|
|
22
|
+
*/
|
|
23
|
+
eventId: string | null;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {boolean}
|
|
27
|
+
* @memberof SupportRequestAcceptedUio
|
|
28
|
+
*/
|
|
29
|
+
duplicate: boolean;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the SupportRequestAcceptedUio interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfSupportRequestAcceptedUio(value: object): value is SupportRequestAcceptedUio;
|
|
35
|
+
export declare function SupportRequestAcceptedUioFromJSON(json: any): SupportRequestAcceptedUio;
|
|
36
|
+
export declare function SupportRequestAcceptedUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupportRequestAcceptedUio;
|
|
37
|
+
export declare function SupportRequestAcceptedUioToJSON(json: any): SupportRequestAcceptedUio;
|
|
38
|
+
export declare function SupportRequestAcceptedUioToJSONTyped(value?: SupportRequestAcceptedUio | 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.instanceOfSupportRequestAcceptedUio = instanceOfSupportRequestAcceptedUio;
|
|
17
|
+
exports.SupportRequestAcceptedUioFromJSON = SupportRequestAcceptedUioFromJSON;
|
|
18
|
+
exports.SupportRequestAcceptedUioFromJSONTyped = SupportRequestAcceptedUioFromJSONTyped;
|
|
19
|
+
exports.SupportRequestAcceptedUioToJSON = SupportRequestAcceptedUioToJSON;
|
|
20
|
+
exports.SupportRequestAcceptedUioToJSONTyped = SupportRequestAcceptedUioToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the SupportRequestAcceptedUio interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfSupportRequestAcceptedUio(value) {
|
|
25
|
+
if (!('eventId' in value) || value['eventId'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('duplicate' in value) || value['duplicate'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function SupportRequestAcceptedUioFromJSON(json) {
|
|
32
|
+
return SupportRequestAcceptedUioFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function SupportRequestAcceptedUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'eventId': json['eventId'],
|
|
40
|
+
'duplicate': json['duplicate'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function SupportRequestAcceptedUioToJSON(json) {
|
|
44
|
+
return SupportRequestAcceptedUioToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function SupportRequestAcceptedUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'eventId': value['eventId'],
|
|
52
|
+
'duplicate': value['duplicate'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
@@ -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
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface SupportRequestAttachmentUio
|
|
16
|
+
*/
|
|
17
|
+
export interface SupportRequestAttachmentUio {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof SupportRequestAttachmentUio
|
|
22
|
+
*/
|
|
23
|
+
name: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof SupportRequestAttachmentUio
|
|
28
|
+
*/
|
|
29
|
+
contentType: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof SupportRequestAttachmentUio
|
|
34
|
+
*/
|
|
35
|
+
contentBase64: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the SupportRequestAttachmentUio interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfSupportRequestAttachmentUio(value: object): value is SupportRequestAttachmentUio;
|
|
41
|
+
export declare function SupportRequestAttachmentUioFromJSON(json: any): SupportRequestAttachmentUio;
|
|
42
|
+
export declare function SupportRequestAttachmentUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupportRequestAttachmentUio;
|
|
43
|
+
export declare function SupportRequestAttachmentUioToJSON(json: any): SupportRequestAttachmentUio;
|
|
44
|
+
export declare function SupportRequestAttachmentUioToJSONTyped(value?: SupportRequestAttachmentUio | 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.instanceOfSupportRequestAttachmentUio = instanceOfSupportRequestAttachmentUio;
|
|
17
|
+
exports.SupportRequestAttachmentUioFromJSON = SupportRequestAttachmentUioFromJSON;
|
|
18
|
+
exports.SupportRequestAttachmentUioFromJSONTyped = SupportRequestAttachmentUioFromJSONTyped;
|
|
19
|
+
exports.SupportRequestAttachmentUioToJSON = SupportRequestAttachmentUioToJSON;
|
|
20
|
+
exports.SupportRequestAttachmentUioToJSONTyped = SupportRequestAttachmentUioToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the SupportRequestAttachmentUio interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfSupportRequestAttachmentUio(value) {
|
|
25
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('contentType' in value) || value['contentType'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('contentBase64' in value) || value['contentBase64'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
function SupportRequestAttachmentUioFromJSON(json) {
|
|
34
|
+
return SupportRequestAttachmentUioFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
function SupportRequestAttachmentUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'name': json['name'],
|
|
42
|
+
'contentType': json['contentType'],
|
|
43
|
+
'contentBase64': json['contentBase64'],
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
function SupportRequestAttachmentUioToJSON(json) {
|
|
47
|
+
return SupportRequestAttachmentUioToJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
function SupportRequestAttachmentUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
50
|
+
if (value == null) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'name': value['name'],
|
|
55
|
+
'contentType': value['contentType'],
|
|
56
|
+
'contentBase64': value['contentBase64'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
@@ -0,0 +1,85 @@
|
|
|
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 { SupportRequestAttachmentUio } from './SupportRequestAttachmentUio';
|
|
13
|
+
/**
|
|
14
|
+
* Une demande de support ; le demandeur et son organisation sont ajoutés par l'API.
|
|
15
|
+
* @export
|
|
16
|
+
* @interface SupportRequestCreateUio
|
|
17
|
+
*/
|
|
18
|
+
export interface SupportRequestCreateUio {
|
|
19
|
+
/**
|
|
20
|
+
* Tirée par le formulaire. Un second envoi avec la même clé ne crée rien de plus.
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof SupportRequestCreateUio
|
|
23
|
+
*/
|
|
24
|
+
requestId: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof SupportRequestCreateUio
|
|
29
|
+
*/
|
|
30
|
+
category: SupportRequestCreateUioCategoryEnum;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof SupportRequestCreateUio
|
|
35
|
+
*/
|
|
36
|
+
subject: string;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof SupportRequestCreateUio
|
|
41
|
+
*/
|
|
42
|
+
description: string;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof SupportRequestCreateUio
|
|
47
|
+
*/
|
|
48
|
+
urgency: SupportRequestCreateUioUrgencyEnum;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {Array<SupportRequestAttachmentUio>}
|
|
52
|
+
* @memberof SupportRequestCreateUio
|
|
53
|
+
*/
|
|
54
|
+
attachments?: Array<SupportRequestAttachmentUio>;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* @export
|
|
58
|
+
*/
|
|
59
|
+
export declare const SupportRequestCreateUioCategoryEnum: {
|
|
60
|
+
readonly Question: "question";
|
|
61
|
+
readonly Bug: "bug";
|
|
62
|
+
readonly Account: "account";
|
|
63
|
+
readonly Billing: "billing";
|
|
64
|
+
readonly Feature: "feature";
|
|
65
|
+
readonly Other: "other";
|
|
66
|
+
};
|
|
67
|
+
export type SupportRequestCreateUioCategoryEnum = typeof SupportRequestCreateUioCategoryEnum[keyof typeof SupportRequestCreateUioCategoryEnum];
|
|
68
|
+
/**
|
|
69
|
+
* @export
|
|
70
|
+
*/
|
|
71
|
+
export declare const SupportRequestCreateUioUrgencyEnum: {
|
|
72
|
+
readonly Low: "low";
|
|
73
|
+
readonly Normal: "normal";
|
|
74
|
+
readonly High: "high";
|
|
75
|
+
readonly Critical: "critical";
|
|
76
|
+
};
|
|
77
|
+
export type SupportRequestCreateUioUrgencyEnum = typeof SupportRequestCreateUioUrgencyEnum[keyof typeof SupportRequestCreateUioUrgencyEnum];
|
|
78
|
+
/**
|
|
79
|
+
* Check if a given object implements the SupportRequestCreateUio interface.
|
|
80
|
+
*/
|
|
81
|
+
export declare function instanceOfSupportRequestCreateUio(value: object): value is SupportRequestCreateUio;
|
|
82
|
+
export declare function SupportRequestCreateUioFromJSON(json: any): SupportRequestCreateUio;
|
|
83
|
+
export declare function SupportRequestCreateUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupportRequestCreateUio;
|
|
84
|
+
export declare function SupportRequestCreateUioToJSON(json: any): SupportRequestCreateUio;
|
|
85
|
+
export declare function SupportRequestCreateUioToJSONTyped(value?: SupportRequestCreateUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,90 @@
|
|
|
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.SupportRequestCreateUioUrgencyEnum = exports.SupportRequestCreateUioCategoryEnum = void 0;
|
|
17
|
+
exports.instanceOfSupportRequestCreateUio = instanceOfSupportRequestCreateUio;
|
|
18
|
+
exports.SupportRequestCreateUioFromJSON = SupportRequestCreateUioFromJSON;
|
|
19
|
+
exports.SupportRequestCreateUioFromJSONTyped = SupportRequestCreateUioFromJSONTyped;
|
|
20
|
+
exports.SupportRequestCreateUioToJSON = SupportRequestCreateUioToJSON;
|
|
21
|
+
exports.SupportRequestCreateUioToJSONTyped = SupportRequestCreateUioToJSONTyped;
|
|
22
|
+
const SupportRequestAttachmentUio_1 = require("./SupportRequestAttachmentUio");
|
|
23
|
+
/**
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.SupportRequestCreateUioCategoryEnum = {
|
|
27
|
+
Question: 'question',
|
|
28
|
+
Bug: 'bug',
|
|
29
|
+
Account: 'account',
|
|
30
|
+
Billing: 'billing',
|
|
31
|
+
Feature: 'feature',
|
|
32
|
+
Other: 'other'
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* @export
|
|
36
|
+
*/
|
|
37
|
+
exports.SupportRequestCreateUioUrgencyEnum = {
|
|
38
|
+
Low: 'low',
|
|
39
|
+
Normal: 'normal',
|
|
40
|
+
High: 'high',
|
|
41
|
+
Critical: 'critical'
|
|
42
|
+
};
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the SupportRequestCreateUio interface.
|
|
45
|
+
*/
|
|
46
|
+
function instanceOfSupportRequestCreateUio(value) {
|
|
47
|
+
if (!('requestId' in value) || value['requestId'] === undefined)
|
|
48
|
+
return false;
|
|
49
|
+
if (!('category' in value) || value['category'] === undefined)
|
|
50
|
+
return false;
|
|
51
|
+
if (!('subject' in value) || value['subject'] === undefined)
|
|
52
|
+
return false;
|
|
53
|
+
if (!('description' in value) || value['description'] === undefined)
|
|
54
|
+
return false;
|
|
55
|
+
if (!('urgency' in value) || value['urgency'] === undefined)
|
|
56
|
+
return false;
|
|
57
|
+
return true;
|
|
58
|
+
}
|
|
59
|
+
function SupportRequestCreateUioFromJSON(json) {
|
|
60
|
+
return SupportRequestCreateUioFromJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
function SupportRequestCreateUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
63
|
+
if (json == null) {
|
|
64
|
+
return json;
|
|
65
|
+
}
|
|
66
|
+
return {
|
|
67
|
+
'requestId': json['requestId'],
|
|
68
|
+
'category': json['category'],
|
|
69
|
+
'subject': json['subject'],
|
|
70
|
+
'description': json['description'],
|
|
71
|
+
'urgency': json['urgency'],
|
|
72
|
+
'attachments': json['attachments'] == null ? undefined : (json['attachments'].map(SupportRequestAttachmentUio_1.SupportRequestAttachmentUioFromJSON)),
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
function SupportRequestCreateUioToJSON(json) {
|
|
76
|
+
return SupportRequestCreateUioToJSONTyped(json, false);
|
|
77
|
+
}
|
|
78
|
+
function SupportRequestCreateUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
79
|
+
if (value == null) {
|
|
80
|
+
return value;
|
|
81
|
+
}
|
|
82
|
+
return {
|
|
83
|
+
'requestId': value['requestId'],
|
|
84
|
+
'category': value['category'],
|
|
85
|
+
'subject': value['subject'],
|
|
86
|
+
'description': value['description'],
|
|
87
|
+
'urgency': value['urgency'],
|
|
88
|
+
'attachments': value['attachments'] == null ? undefined : (value['attachments'].map(SupportRequestAttachmentUio_1.SupportRequestAttachmentUioToJSON)),
|
|
89
|
+
};
|
|
90
|
+
}
|
|
@@ -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
|
+
* La page Support d'une organisation. Réglée par les superadmins ; lue par les membres pour afficher la page.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface SupportSettingsUio
|
|
16
|
+
*/
|
|
17
|
+
export interface SupportSettingsUio {
|
|
18
|
+
/**
|
|
19
|
+
* La page et son lien dans la barre latérale ne s'affichent que si elle est activée.
|
|
20
|
+
* @type {boolean}
|
|
21
|
+
* @memberof SupportSettingsUio
|
|
22
|
+
*/
|
|
23
|
+
enabled: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* Agent d'accueil de l'onglet Chat, de l'organisation. Null, pas d'onglet Chat.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof SupportSettingsUio
|
|
28
|
+
*/
|
|
29
|
+
chatAgentId: string | null;
|
|
30
|
+
/**
|
|
31
|
+
* Automatisation déclenchée par webhook, de l'organisation, qui reçoit les demandes du formulaire. Null, pas d'onglet Formulaire.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof SupportSettingsUio
|
|
34
|
+
*/
|
|
35
|
+
formAutomationId: string | null;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the SupportSettingsUio interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfSupportSettingsUio(value: object): value is SupportSettingsUio;
|
|
41
|
+
export declare function SupportSettingsUioFromJSON(json: any): SupportSettingsUio;
|
|
42
|
+
export declare function SupportSettingsUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupportSettingsUio;
|
|
43
|
+
export declare function SupportSettingsUioToJSON(json: any): SupportSettingsUio;
|
|
44
|
+
export declare function SupportSettingsUioToJSONTyped(value?: SupportSettingsUio | 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.instanceOfSupportSettingsUio = instanceOfSupportSettingsUio;
|
|
17
|
+
exports.SupportSettingsUioFromJSON = SupportSettingsUioFromJSON;
|
|
18
|
+
exports.SupportSettingsUioFromJSONTyped = SupportSettingsUioFromJSONTyped;
|
|
19
|
+
exports.SupportSettingsUioToJSON = SupportSettingsUioToJSON;
|
|
20
|
+
exports.SupportSettingsUioToJSONTyped = SupportSettingsUioToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the SupportSettingsUio interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfSupportSettingsUio(value) {
|
|
25
|
+
if (!('enabled' in value) || value['enabled'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('chatAgentId' in value) || value['chatAgentId'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('formAutomationId' in value) || value['formAutomationId'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
function SupportSettingsUioFromJSON(json) {
|
|
34
|
+
return SupportSettingsUioFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
function SupportSettingsUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'enabled': json['enabled'],
|
|
42
|
+
'chatAgentId': json['chatAgentId'],
|
|
43
|
+
'formAutomationId': json['formAutomationId'],
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
function SupportSettingsUioToJSON(json) {
|
|
47
|
+
return SupportSettingsUioToJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
function SupportSettingsUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
50
|
+
if (value == null) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'enabled': value['enabled'],
|
|
55
|
+
'chatAgentId': value['chatAgentId'],
|
|
56
|
+
'formAutomationId': value['formAutomationId'],
|
|
57
|
+
};
|
|
58
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -556,6 +556,10 @@ export * from './SubscriptionAdditionalMetricUio';
|
|
|
556
556
|
export * from './SubscriptionInteractionsMetricUio';
|
|
557
557
|
export * from './SubscriptionMetricUio';
|
|
558
558
|
export * from './SuggestionUio';
|
|
559
|
+
export * from './SupportRequestAcceptedUio';
|
|
560
|
+
export * from './SupportRequestAttachmentUio';
|
|
561
|
+
export * from './SupportRequestCreateUio';
|
|
562
|
+
export * from './SupportSettingsUio';
|
|
559
563
|
export * from './SyncKnowledgeSiteScrapping200ResponseUio';
|
|
560
564
|
export * from './SyncKnowledgeSiteScrappingRequestUio';
|
|
561
565
|
export * from './TTSRequestUio';
|
package/dist/models/index.js
CHANGED
|
@@ -574,6 +574,10 @@ __exportStar(require("./SubscriptionAdditionalMetricUio"), exports);
|
|
|
574
574
|
__exportStar(require("./SubscriptionInteractionsMetricUio"), exports);
|
|
575
575
|
__exportStar(require("./SubscriptionMetricUio"), exports);
|
|
576
576
|
__exportStar(require("./SuggestionUio"), exports);
|
|
577
|
+
__exportStar(require("./SupportRequestAcceptedUio"), exports);
|
|
578
|
+
__exportStar(require("./SupportRequestAttachmentUio"), exports);
|
|
579
|
+
__exportStar(require("./SupportRequestCreateUio"), exports);
|
|
580
|
+
__exportStar(require("./SupportSettingsUio"), exports);
|
|
577
581
|
__exportStar(require("./SyncKnowledgeSiteScrapping200ResponseUio"), exports);
|
|
578
582
|
__exportStar(require("./SyncKnowledgeSiteScrappingRequestUio"), exports);
|
|
579
583
|
__exportStar(require("./TTSRequestUio"), exports);
|
package/dist/openapi.json
CHANGED
|
@@ -99,6 +99,9 @@
|
|
|
99
99
|
}, {
|
|
100
100
|
"description" : "Actions and mentions waiting for the current user",
|
|
101
101
|
"name" : "inbox"
|
|
102
|
+
}, {
|
|
103
|
+
"description" : "Support page of an organization, its settings and the requests sent from it",
|
|
104
|
+
"name" : "support"
|
|
102
105
|
} ],
|
|
103
106
|
"paths" : {
|
|
104
107
|
"/health" : {
|
|
@@ -19182,6 +19185,141 @@
|
|
|
19182
19185
|
"tags" : [ "execution-nodes" ]
|
|
19183
19186
|
}
|
|
19184
19187
|
},
|
|
19188
|
+
"/organizations/{organizationId}/support-settings" : {
|
|
19189
|
+
"get" : {
|
|
19190
|
+
"description" : "Lisibles par les membres de l'organisation, pour afficher la page Support.",
|
|
19191
|
+
"operationId" : "getOrganizationSupportSettings",
|
|
19192
|
+
"parameters" : [ {
|
|
19193
|
+
"description" : "ID of the organization",
|
|
19194
|
+
"in" : "path",
|
|
19195
|
+
"name" : "organizationId",
|
|
19196
|
+
"required" : true,
|
|
19197
|
+
"schema" : {
|
|
19198
|
+
"type" : "string"
|
|
19199
|
+
}
|
|
19200
|
+
} ],
|
|
19201
|
+
"responses" : {
|
|
19202
|
+
"200" : {
|
|
19203
|
+
"content" : {
|
|
19204
|
+
"application/json" : {
|
|
19205
|
+
"schema" : {
|
|
19206
|
+
"$ref" : "#/components/schemas/SupportSettings"
|
|
19207
|
+
}
|
|
19208
|
+
}
|
|
19209
|
+
},
|
|
19210
|
+
"description" : "OK"
|
|
19211
|
+
},
|
|
19212
|
+
"401" : {
|
|
19213
|
+
"description" : "Unauthenticated"
|
|
19214
|
+
},
|
|
19215
|
+
"403" : {
|
|
19216
|
+
"description" : "Not a member of the organization"
|
|
19217
|
+
}
|
|
19218
|
+
},
|
|
19219
|
+
"summary" : "Get the support page settings of an organization",
|
|
19220
|
+
"tags" : [ "support" ]
|
|
19221
|
+
},
|
|
19222
|
+
"put" : {
|
|
19223
|
+
"description" : "Réservé aux superadmins.",
|
|
19224
|
+
"operationId" : "updateOrganizationSupportSettings",
|
|
19225
|
+
"parameters" : [ {
|
|
19226
|
+
"description" : "ID of the organization",
|
|
19227
|
+
"in" : "path",
|
|
19228
|
+
"name" : "organizationId",
|
|
19229
|
+
"required" : true,
|
|
19230
|
+
"schema" : {
|
|
19231
|
+
"type" : "string"
|
|
19232
|
+
}
|
|
19233
|
+
} ],
|
|
19234
|
+
"requestBody" : {
|
|
19235
|
+
"content" : {
|
|
19236
|
+
"application/json" : {
|
|
19237
|
+
"schema" : {
|
|
19238
|
+
"$ref" : "#/components/schemas/SupportSettings"
|
|
19239
|
+
}
|
|
19240
|
+
}
|
|
19241
|
+
},
|
|
19242
|
+
"required" : true
|
|
19243
|
+
},
|
|
19244
|
+
"responses" : {
|
|
19245
|
+
"200" : {
|
|
19246
|
+
"content" : {
|
|
19247
|
+
"application/json" : {
|
|
19248
|
+
"schema" : {
|
|
19249
|
+
"$ref" : "#/components/schemas/SupportSettings"
|
|
19250
|
+
}
|
|
19251
|
+
}
|
|
19252
|
+
},
|
|
19253
|
+
"description" : "OK"
|
|
19254
|
+
},
|
|
19255
|
+
"400" : {
|
|
19256
|
+
"description" : "Unknown agent or automation"
|
|
19257
|
+
},
|
|
19258
|
+
"401" : {
|
|
19259
|
+
"description" : "Unauthenticated"
|
|
19260
|
+
},
|
|
19261
|
+
"403" : {
|
|
19262
|
+
"description" : "Not a superadmin"
|
|
19263
|
+
}
|
|
19264
|
+
},
|
|
19265
|
+
"summary" : "Update the support page settings of an organization",
|
|
19266
|
+
"tags" : [ "support" ]
|
|
19267
|
+
}
|
|
19268
|
+
},
|
|
19269
|
+
"/organizations/{organizationId}/support-requests" : {
|
|
19270
|
+
"post" : {
|
|
19271
|
+
"description" : "Au nom de l'utilisateur connecté, membre de l'organisation : la demande, avec son identité et son organisation, est mise en file sur l'automatisation du formulaire, comme un appel de son webhook.",
|
|
19272
|
+
"operationId" : "createOrganizationSupportRequest",
|
|
19273
|
+
"parameters" : [ {
|
|
19274
|
+
"description" : "ID of the organization",
|
|
19275
|
+
"in" : "path",
|
|
19276
|
+
"name" : "organizationId",
|
|
19277
|
+
"required" : true,
|
|
19278
|
+
"schema" : {
|
|
19279
|
+
"type" : "string"
|
|
19280
|
+
}
|
|
19281
|
+
} ],
|
|
19282
|
+
"requestBody" : {
|
|
19283
|
+
"content" : {
|
|
19284
|
+
"application/json" : {
|
|
19285
|
+
"schema" : {
|
|
19286
|
+
"$ref" : "#/components/schemas/SupportRequestCreate"
|
|
19287
|
+
}
|
|
19288
|
+
}
|
|
19289
|
+
},
|
|
19290
|
+
"required" : true
|
|
19291
|
+
},
|
|
19292
|
+
"responses" : {
|
|
19293
|
+
"202" : {
|
|
19294
|
+
"content" : {
|
|
19295
|
+
"application/json" : {
|
|
19296
|
+
"schema" : {
|
|
19297
|
+
"$ref" : "#/components/schemas/SupportRequestAccepted"
|
|
19298
|
+
}
|
|
19299
|
+
}
|
|
19300
|
+
},
|
|
19301
|
+
"description" : "Accepted"
|
|
19302
|
+
},
|
|
19303
|
+
"400" : {
|
|
19304
|
+
"description" : "Invalid request or attachments too large"
|
|
19305
|
+
},
|
|
19306
|
+
"401" : {
|
|
19307
|
+
"description" : "Unauthenticated"
|
|
19308
|
+
},
|
|
19309
|
+
"403" : {
|
|
19310
|
+
"description" : "Not a member of the organization"
|
|
19311
|
+
},
|
|
19312
|
+
"404" : {
|
|
19313
|
+
"description" : "Support form not enabled for this organization"
|
|
19314
|
+
},
|
|
19315
|
+
"429" : {
|
|
19316
|
+
"description" : "Too many requests"
|
|
19317
|
+
}
|
|
19318
|
+
},
|
|
19319
|
+
"summary" : "Send a support request from the support page form",
|
|
19320
|
+
"tags" : [ "support" ]
|
|
19321
|
+
}
|
|
19322
|
+
},
|
|
19185
19323
|
"/execution-nodes/{nodeId}/sessions/{sessionId}" : {
|
|
19186
19324
|
"get" : {
|
|
19187
19325
|
"operationId" : "getExecutionNodeSession",
|
|
@@ -32179,6 +32317,93 @@
|
|
|
32179
32317
|
"enum" : [ "members", "admins", "none" ],
|
|
32180
32318
|
"type" : "string"
|
|
32181
32319
|
},
|
|
32320
|
+
"SupportSettings" : {
|
|
32321
|
+
"description" : "La page Support d'une organisation. Réglée par les superadmins ; lue par les membres pour afficher la page.",
|
|
32322
|
+
"properties" : {
|
|
32323
|
+
"enabled" : {
|
|
32324
|
+
"description" : "La page et son lien dans la barre latérale ne s'affichent que si elle est activée.",
|
|
32325
|
+
"type" : "boolean"
|
|
32326
|
+
},
|
|
32327
|
+
"chatAgentId" : {
|
|
32328
|
+
"description" : "Agent d'accueil de l'onglet Chat, de l'organisation. Null, pas d'onglet Chat.",
|
|
32329
|
+
"nullable" : true,
|
|
32330
|
+
"type" : "string"
|
|
32331
|
+
},
|
|
32332
|
+
"formAutomationId" : {
|
|
32333
|
+
"description" : "Automatisation déclenchée par webhook, de l'organisation, qui reçoit les demandes du formulaire. Null, pas d'onglet Formulaire.",
|
|
32334
|
+
"nullable" : true,
|
|
32335
|
+
"type" : "string"
|
|
32336
|
+
}
|
|
32337
|
+
},
|
|
32338
|
+
"required" : [ "chatAgentId", "enabled", "formAutomationId" ],
|
|
32339
|
+
"type" : "object"
|
|
32340
|
+
},
|
|
32341
|
+
"SupportRequestCreate" : {
|
|
32342
|
+
"description" : "Une demande de support ; le demandeur et son organisation sont ajoutés par l'API.",
|
|
32343
|
+
"properties" : {
|
|
32344
|
+
"requestId" : {
|
|
32345
|
+
"description" : "Tirée par le formulaire. Un second envoi avec la même clé ne crée rien de plus.",
|
|
32346
|
+
"format" : "uuid",
|
|
32347
|
+
"type" : "string"
|
|
32348
|
+
},
|
|
32349
|
+
"category" : {
|
|
32350
|
+
"enum" : [ "question", "bug", "account", "billing", "feature", "other" ],
|
|
32351
|
+
"type" : "string"
|
|
32352
|
+
},
|
|
32353
|
+
"subject" : {
|
|
32354
|
+
"maxLength" : 150,
|
|
32355
|
+
"type" : "string"
|
|
32356
|
+
},
|
|
32357
|
+
"description" : {
|
|
32358
|
+
"maxLength" : 5000,
|
|
32359
|
+
"type" : "string"
|
|
32360
|
+
},
|
|
32361
|
+
"urgency" : {
|
|
32362
|
+
"enum" : [ "low", "normal", "high", "critical" ],
|
|
32363
|
+
"type" : "string"
|
|
32364
|
+
},
|
|
32365
|
+
"attachments" : {
|
|
32366
|
+
"items" : {
|
|
32367
|
+
"$ref" : "#/components/schemas/SupportRequestAttachment"
|
|
32368
|
+
},
|
|
32369
|
+
"maxItems" : 3,
|
|
32370
|
+
"type" : "array"
|
|
32371
|
+
}
|
|
32372
|
+
},
|
|
32373
|
+
"required" : [ "category", "description", "requestId", "subject", "urgency" ],
|
|
32374
|
+
"type" : "object"
|
|
32375
|
+
},
|
|
32376
|
+
"SupportRequestAttachment" : {
|
|
32377
|
+
"properties" : {
|
|
32378
|
+
"name" : {
|
|
32379
|
+
"maxLength" : 255,
|
|
32380
|
+
"type" : "string"
|
|
32381
|
+
},
|
|
32382
|
+
"contentType" : {
|
|
32383
|
+
"maxLength" : 255,
|
|
32384
|
+
"type" : "string"
|
|
32385
|
+
},
|
|
32386
|
+
"contentBase64" : {
|
|
32387
|
+
"type" : "string"
|
|
32388
|
+
}
|
|
32389
|
+
},
|
|
32390
|
+
"required" : [ "contentBase64", "contentType", "name" ],
|
|
32391
|
+
"type" : "object"
|
|
32392
|
+
},
|
|
32393
|
+
"SupportRequestAccepted" : {
|
|
32394
|
+
"properties" : {
|
|
32395
|
+
"eventId" : {
|
|
32396
|
+
"description" : "L'événement mis en file sur l'automatisation, référence de la demande.",
|
|
32397
|
+
"nullable" : true,
|
|
32398
|
+
"type" : "string"
|
|
32399
|
+
},
|
|
32400
|
+
"duplicate" : {
|
|
32401
|
+
"type" : "boolean"
|
|
32402
|
+
}
|
|
32403
|
+
},
|
|
32404
|
+
"required" : [ "duplicate", "eventId" ],
|
|
32405
|
+
"type" : "object"
|
|
32406
|
+
},
|
|
32182
32407
|
"NodeSessionDetail" : {
|
|
32183
32408
|
"allOf" : [ {
|
|
32184
32409
|
"$ref" : "#/components/schemas/NodeSession"
|