@breign/client 1.0.178 → 1.0.179
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/ScheduledTasksApi.d.ts +78 -1
- package/dist/apis/ScheduledTasksApi.js +192 -0
- package/dist/models/ScheduledTaskCreateUio.d.ts +1 -1
- package/dist/models/ScheduledTaskRunTriggerUio.d.ts +37 -12
- package/dist/models/ScheduledTaskRunTriggerUio.js +21 -34
- package/dist/models/ScheduledTaskUio.d.ts +8 -1
- package/dist/models/ScheduledTaskUio.js +3 -0
- package/dist/models/TaskTriggerUio.d.ts +8 -1
- package/dist/models/TaskTriggerUio.js +4 -1
- package/dist/models/WebhookEndpointUio.d.ts +82 -0
- package/dist/models/WebhookEndpointUio.js +84 -0
- package/dist/models/WebhookEndpointUpdateUio.d.ts +46 -0
- package/dist/models/WebhookEndpointUpdateUio.js +58 -0
- package/dist/models/WebhookEventListUio.d.ts +33 -0
- package/dist/models/WebhookEventListUio.js +51 -0
- package/dist/models/WebhookEventUio.d.ts +87 -0
- package/dist/models/WebhookEventUio.js +87 -0
- package/dist/models/WebhookTestRequestUio.d.ts +38 -0
- package/dist/models/WebhookTestRequestUio.js +50 -0
- package/dist/models/WebhookTestResponseUio.d.ts +32 -0
- package/dist/models/WebhookTestResponseUio.js +50 -0
- package/dist/models/index.d.ts +6 -0
- package/dist/models/index.js +6 -0
- package/dist/openapi.json +481 -7
- package/package.json +1 -1
|
@@ -25,7 +25,8 @@ const TaskTriggerReplyUio_1 = require("./TaskTriggerReplyUio");
|
|
|
25
25
|
*/
|
|
26
26
|
exports.TaskTriggerUioTypeEnum = {
|
|
27
27
|
Schedule: 'schedule',
|
|
28
|
-
Event: 'event'
|
|
28
|
+
Event: 'event',
|
|
29
|
+
Webhook: 'webhook'
|
|
29
30
|
};
|
|
30
31
|
/**
|
|
31
32
|
* @export
|
|
@@ -59,6 +60,7 @@ function TaskTriggerUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
59
60
|
}
|
|
60
61
|
return {
|
|
61
62
|
'type': json['type'],
|
|
63
|
+
'runAsUserId': json['runAsUserId'] == null ? undefined : json['runAsUserId'],
|
|
62
64
|
'source': json['source'] == null ? undefined : json['source'],
|
|
63
65
|
'botAccountIds': json['botAccountIds'] == null ? undefined : json['botAccountIds'],
|
|
64
66
|
'kinds': json['kinds'] == null ? undefined : json['kinds'],
|
|
@@ -75,6 +77,7 @@ function TaskTriggerUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
75
77
|
}
|
|
76
78
|
return {
|
|
77
79
|
'type': value['type'],
|
|
80
|
+
'runAsUserId': value['runAsUserId'],
|
|
78
81
|
'source': value['source'],
|
|
79
82
|
'botAccountIds': value['botAccountIds'],
|
|
80
83
|
'kinds': value['kinds'],
|
|
@@ -0,0 +1,82 @@
|
|
|
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
|
+
* The public address of an automation triggered by a webhook. Callers POST to `url` with `Authorization: Bearer <secret>`, or sign the raw body with HMAC-SHA256 (`X-Breign-Signature: sha256=<hex>`; with `X-Breign-Timestamp: <unix seconds>` the signature covers `<timestamp>.<body>`). Optional headers: `Idempotency-Key`, `X-Breign-Thread`.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface WebhookEndpointUio
|
|
16
|
+
*/
|
|
17
|
+
export interface WebhookEndpointUio {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof WebhookEndpointUio
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof WebhookEndpointUio
|
|
28
|
+
*/
|
|
29
|
+
url: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof WebhookEndpointUio
|
|
34
|
+
*/
|
|
35
|
+
status: WebhookEndpointUioStatusEnum;
|
|
36
|
+
/**
|
|
37
|
+
* The organization member the conversations run as (user-scoped MCP tools, quotas, history).
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof WebhookEndpointUio
|
|
40
|
+
*/
|
|
41
|
+
runAsUserId: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {Date}
|
|
45
|
+
* @memberof WebhookEndpointUio
|
|
46
|
+
*/
|
|
47
|
+
lastEventAt: Date | null;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {Date}
|
|
51
|
+
* @memberof WebhookEndpointUio
|
|
52
|
+
*/
|
|
53
|
+
createdAt: Date;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {Date}
|
|
57
|
+
* @memberof WebhookEndpointUio
|
|
58
|
+
*/
|
|
59
|
+
updatedAt: Date;
|
|
60
|
+
/**
|
|
61
|
+
* Only returned when the endpoint is created and after a rotation.
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof WebhookEndpointUio
|
|
64
|
+
*/
|
|
65
|
+
secret?: string;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* @export
|
|
69
|
+
*/
|
|
70
|
+
export declare const WebhookEndpointUioStatusEnum: {
|
|
71
|
+
readonly Active: "active";
|
|
72
|
+
readonly Disabled: "disabled";
|
|
73
|
+
};
|
|
74
|
+
export type WebhookEndpointUioStatusEnum = typeof WebhookEndpointUioStatusEnum[keyof typeof WebhookEndpointUioStatusEnum];
|
|
75
|
+
/**
|
|
76
|
+
* Check if a given object implements the WebhookEndpointUio interface.
|
|
77
|
+
*/
|
|
78
|
+
export declare function instanceOfWebhookEndpointUio(value: object): value is WebhookEndpointUio;
|
|
79
|
+
export declare function WebhookEndpointUioFromJSON(json: any): WebhookEndpointUio;
|
|
80
|
+
export declare function WebhookEndpointUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): WebhookEndpointUio;
|
|
81
|
+
export declare function WebhookEndpointUioToJSON(json: any): WebhookEndpointUio;
|
|
82
|
+
export declare function WebhookEndpointUioToJSONTyped(value?: WebhookEndpointUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,84 @@
|
|
|
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.WebhookEndpointUioStatusEnum = void 0;
|
|
17
|
+
exports.instanceOfWebhookEndpointUio = instanceOfWebhookEndpointUio;
|
|
18
|
+
exports.WebhookEndpointUioFromJSON = WebhookEndpointUioFromJSON;
|
|
19
|
+
exports.WebhookEndpointUioFromJSONTyped = WebhookEndpointUioFromJSONTyped;
|
|
20
|
+
exports.WebhookEndpointUioToJSON = WebhookEndpointUioToJSON;
|
|
21
|
+
exports.WebhookEndpointUioToJSONTyped = WebhookEndpointUioToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.WebhookEndpointUioStatusEnum = {
|
|
26
|
+
Active: 'active',
|
|
27
|
+
Disabled: 'disabled'
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Check if a given object implements the WebhookEndpointUio interface.
|
|
31
|
+
*/
|
|
32
|
+
function instanceOfWebhookEndpointUio(value) {
|
|
33
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('url' in value) || value['url'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('runAsUserId' in value) || value['runAsUserId'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
if (!('lastEventAt' in value) || value['lastEventAt'] === undefined)
|
|
42
|
+
return false;
|
|
43
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
44
|
+
return false;
|
|
45
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined)
|
|
46
|
+
return false;
|
|
47
|
+
return true;
|
|
48
|
+
}
|
|
49
|
+
function WebhookEndpointUioFromJSON(json) {
|
|
50
|
+
return WebhookEndpointUioFromJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
function WebhookEndpointUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
53
|
+
if (json == null) {
|
|
54
|
+
return json;
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
'id': json['id'],
|
|
58
|
+
'url': json['url'],
|
|
59
|
+
'status': json['status'],
|
|
60
|
+
'runAsUserId': json['runAsUserId'],
|
|
61
|
+
'lastEventAt': (json['lastEventAt'] == null ? null : new Date(json['lastEventAt'])),
|
|
62
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
63
|
+
'updatedAt': (new Date(json['updatedAt'])),
|
|
64
|
+
'secret': json['secret'] == null ? undefined : json['secret'],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
function WebhookEndpointUioToJSON(json) {
|
|
68
|
+
return WebhookEndpointUioToJSONTyped(json, false);
|
|
69
|
+
}
|
|
70
|
+
function WebhookEndpointUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
71
|
+
if (value == null) {
|
|
72
|
+
return value;
|
|
73
|
+
}
|
|
74
|
+
return {
|
|
75
|
+
'id': value['id'],
|
|
76
|
+
'url': value['url'],
|
|
77
|
+
'status': value['status'],
|
|
78
|
+
'runAsUserId': value['runAsUserId'],
|
|
79
|
+
'lastEventAt': (value['lastEventAt'] == null ? null : value['lastEventAt'].toISOString()),
|
|
80
|
+
'createdAt': ((value['createdAt']).toISOString()),
|
|
81
|
+
'updatedAt': ((value['updatedAt']).toISOString()),
|
|
82
|
+
'secret': value['secret'],
|
|
83
|
+
};
|
|
84
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
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 WebhookEndpointUpdateUio
|
|
16
|
+
*/
|
|
17
|
+
export interface WebhookEndpointUpdateUio {
|
|
18
|
+
/**
|
|
19
|
+
* Another member than the caller requires an organization admin.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof WebhookEndpointUpdateUio
|
|
22
|
+
*/
|
|
23
|
+
runAsUserId?: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof WebhookEndpointUpdateUio
|
|
28
|
+
*/
|
|
29
|
+
status?: WebhookEndpointUpdateUioStatusEnum;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* @export
|
|
33
|
+
*/
|
|
34
|
+
export declare const WebhookEndpointUpdateUioStatusEnum: {
|
|
35
|
+
readonly Active: "active";
|
|
36
|
+
readonly Disabled: "disabled";
|
|
37
|
+
};
|
|
38
|
+
export type WebhookEndpointUpdateUioStatusEnum = typeof WebhookEndpointUpdateUioStatusEnum[keyof typeof WebhookEndpointUpdateUioStatusEnum];
|
|
39
|
+
/**
|
|
40
|
+
* Check if a given object implements the WebhookEndpointUpdateUio interface.
|
|
41
|
+
*/
|
|
42
|
+
export declare function instanceOfWebhookEndpointUpdateUio(value: object): value is WebhookEndpointUpdateUio;
|
|
43
|
+
export declare function WebhookEndpointUpdateUioFromJSON(json: any): WebhookEndpointUpdateUio;
|
|
44
|
+
export declare function WebhookEndpointUpdateUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): WebhookEndpointUpdateUio;
|
|
45
|
+
export declare function WebhookEndpointUpdateUioToJSON(json: any): WebhookEndpointUpdateUio;
|
|
46
|
+
export declare function WebhookEndpointUpdateUioToJSONTyped(value?: WebhookEndpointUpdateUio | 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.WebhookEndpointUpdateUioStatusEnum = void 0;
|
|
17
|
+
exports.instanceOfWebhookEndpointUpdateUio = instanceOfWebhookEndpointUpdateUio;
|
|
18
|
+
exports.WebhookEndpointUpdateUioFromJSON = WebhookEndpointUpdateUioFromJSON;
|
|
19
|
+
exports.WebhookEndpointUpdateUioFromJSONTyped = WebhookEndpointUpdateUioFromJSONTyped;
|
|
20
|
+
exports.WebhookEndpointUpdateUioToJSON = WebhookEndpointUpdateUioToJSON;
|
|
21
|
+
exports.WebhookEndpointUpdateUioToJSONTyped = WebhookEndpointUpdateUioToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.WebhookEndpointUpdateUioStatusEnum = {
|
|
26
|
+
Active: 'active',
|
|
27
|
+
Disabled: 'disabled'
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Check if a given object implements the WebhookEndpointUpdateUio interface.
|
|
31
|
+
*/
|
|
32
|
+
function instanceOfWebhookEndpointUpdateUio(value) {
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
function WebhookEndpointUpdateUioFromJSON(json) {
|
|
36
|
+
return WebhookEndpointUpdateUioFromJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
function WebhookEndpointUpdateUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
39
|
+
if (json == null) {
|
|
40
|
+
return json;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'runAsUserId': json['runAsUserId'] == null ? undefined : json['runAsUserId'],
|
|
44
|
+
'status': json['status'] == null ? undefined : json['status'],
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
function WebhookEndpointUpdateUioToJSON(json) {
|
|
48
|
+
return WebhookEndpointUpdateUioToJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
function WebhookEndpointUpdateUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
51
|
+
if (value == null) {
|
|
52
|
+
return value;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
'runAsUserId': value['runAsUserId'],
|
|
56
|
+
'status': value['status'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
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 { WebhookEventUio } from './WebhookEventUio';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface WebhookEventListUio
|
|
17
|
+
*/
|
|
18
|
+
export interface WebhookEventListUio {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<WebhookEventUio>}
|
|
22
|
+
* @memberof WebhookEventListUio
|
|
23
|
+
*/
|
|
24
|
+
events: Array<WebhookEventUio>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the WebhookEventListUio interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfWebhookEventListUio(value: object): value is WebhookEventListUio;
|
|
30
|
+
export declare function WebhookEventListUioFromJSON(json: any): WebhookEventListUio;
|
|
31
|
+
export declare function WebhookEventListUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): WebhookEventListUio;
|
|
32
|
+
export declare function WebhookEventListUioToJSON(json: any): WebhookEventListUio;
|
|
33
|
+
export declare function WebhookEventListUioToJSONTyped(value?: WebhookEventListUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* brain-client
|
|
6
|
+
* Api ands models for brain-app and brain-app
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.0.0-SNAPSHOT
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfWebhookEventListUio = instanceOfWebhookEventListUio;
|
|
17
|
+
exports.WebhookEventListUioFromJSON = WebhookEventListUioFromJSON;
|
|
18
|
+
exports.WebhookEventListUioFromJSONTyped = WebhookEventListUioFromJSONTyped;
|
|
19
|
+
exports.WebhookEventListUioToJSON = WebhookEventListUioToJSON;
|
|
20
|
+
exports.WebhookEventListUioToJSONTyped = WebhookEventListUioToJSONTyped;
|
|
21
|
+
const WebhookEventUio_1 = require("./WebhookEventUio");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the WebhookEventListUio interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfWebhookEventListUio(value) {
|
|
26
|
+
if (!('events' in value) || value['events'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
function WebhookEventListUioFromJSON(json) {
|
|
31
|
+
return WebhookEventListUioFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
function WebhookEventListUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if (json == null) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'events': (json['events'].map(WebhookEventUio_1.WebhookEventUioFromJSON)),
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function WebhookEventListUioToJSON(json) {
|
|
42
|
+
return WebhookEventListUioToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function WebhookEventListUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'events': (value['events'].map(WebhookEventUio_1.WebhookEventUioToJSON)),
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -0,0 +1,87 @@
|
|
|
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 { ExternalEventStatusUio } from './ExternalEventStatusUio';
|
|
13
|
+
/**
|
|
14
|
+
* A call received on the webhook, and where it is in the queue.
|
|
15
|
+
* @export
|
|
16
|
+
* @interface WebhookEventUio
|
|
17
|
+
*/
|
|
18
|
+
export interface WebhookEventUio {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof WebhookEventUio
|
|
23
|
+
*/
|
|
24
|
+
id: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {ExternalEventStatusUio}
|
|
28
|
+
* @memberof WebhookEventUio
|
|
29
|
+
*/
|
|
30
|
+
status: ExternalEventStatusUio;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {Date}
|
|
34
|
+
* @memberof WebhookEventUio
|
|
35
|
+
*/
|
|
36
|
+
receivedAt: Date;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {Date}
|
|
40
|
+
* @memberof WebhookEventUio
|
|
41
|
+
*/
|
|
42
|
+
finishedAt: Date | null;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {number}
|
|
46
|
+
* @memberof WebhookEventUio
|
|
47
|
+
*/
|
|
48
|
+
attempts: number;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof WebhookEventUio
|
|
53
|
+
*/
|
|
54
|
+
lastError: string | null;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {string}
|
|
58
|
+
* @memberof WebhookEventUio
|
|
59
|
+
*/
|
|
60
|
+
thread: string | null;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {string}
|
|
64
|
+
* @memberof WebhookEventUio
|
|
65
|
+
*/
|
|
66
|
+
contentType: string;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {string}
|
|
70
|
+
* @memberof WebhookEventUio
|
|
71
|
+
*/
|
|
72
|
+
runId: string | null;
|
|
73
|
+
/**
|
|
74
|
+
*
|
|
75
|
+
* @type {string}
|
|
76
|
+
* @memberof WebhookEventUio
|
|
77
|
+
*/
|
|
78
|
+
conversationId: string | null;
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* Check if a given object implements the WebhookEventUio interface.
|
|
82
|
+
*/
|
|
83
|
+
export declare function instanceOfWebhookEventUio(value: object): value is WebhookEventUio;
|
|
84
|
+
export declare function WebhookEventUioFromJSON(json: any): WebhookEventUio;
|
|
85
|
+
export declare function WebhookEventUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): WebhookEventUio;
|
|
86
|
+
export declare function WebhookEventUioToJSON(json: any): WebhookEventUio;
|
|
87
|
+
export declare function WebhookEventUioToJSONTyped(value?: WebhookEventUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,87 @@
|
|
|
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.instanceOfWebhookEventUio = instanceOfWebhookEventUio;
|
|
17
|
+
exports.WebhookEventUioFromJSON = WebhookEventUioFromJSON;
|
|
18
|
+
exports.WebhookEventUioFromJSONTyped = WebhookEventUioFromJSONTyped;
|
|
19
|
+
exports.WebhookEventUioToJSON = WebhookEventUioToJSON;
|
|
20
|
+
exports.WebhookEventUioToJSONTyped = WebhookEventUioToJSONTyped;
|
|
21
|
+
const ExternalEventStatusUio_1 = require("./ExternalEventStatusUio");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the WebhookEventUio interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfWebhookEventUio(value) {
|
|
26
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('receivedAt' in value) || value['receivedAt'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('finishedAt' in value) || value['finishedAt'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('attempts' in value) || value['attempts'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('lastError' in value) || value['lastError'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('thread' in value) || value['thread'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
if (!('contentType' in value) || value['contentType'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
if (!('runId' in value) || value['runId'] === undefined)
|
|
43
|
+
return false;
|
|
44
|
+
if (!('conversationId' in value) || value['conversationId'] === undefined)
|
|
45
|
+
return false;
|
|
46
|
+
return true;
|
|
47
|
+
}
|
|
48
|
+
function WebhookEventUioFromJSON(json) {
|
|
49
|
+
return WebhookEventUioFromJSONTyped(json, false);
|
|
50
|
+
}
|
|
51
|
+
function WebhookEventUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
52
|
+
if (json == null) {
|
|
53
|
+
return json;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
'id': json['id'],
|
|
57
|
+
'status': (0, ExternalEventStatusUio_1.ExternalEventStatusUioFromJSON)(json['status']),
|
|
58
|
+
'receivedAt': (new Date(json['receivedAt'])),
|
|
59
|
+
'finishedAt': (json['finishedAt'] == null ? null : new Date(json['finishedAt'])),
|
|
60
|
+
'attempts': json['attempts'],
|
|
61
|
+
'lastError': json['lastError'],
|
|
62
|
+
'thread': json['thread'],
|
|
63
|
+
'contentType': json['contentType'],
|
|
64
|
+
'runId': json['runId'],
|
|
65
|
+
'conversationId': json['conversationId'],
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
function WebhookEventUioToJSON(json) {
|
|
69
|
+
return WebhookEventUioToJSONTyped(json, false);
|
|
70
|
+
}
|
|
71
|
+
function WebhookEventUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
72
|
+
if (value == null) {
|
|
73
|
+
return value;
|
|
74
|
+
}
|
|
75
|
+
return {
|
|
76
|
+
'id': value['id'],
|
|
77
|
+
'status': (0, ExternalEventStatusUio_1.ExternalEventStatusUioToJSON)(value['status']),
|
|
78
|
+
'receivedAt': ((value['receivedAt']).toISOString()),
|
|
79
|
+
'finishedAt': (value['finishedAt'] == null ? null : value['finishedAt'].toISOString()),
|
|
80
|
+
'attempts': value['attempts'],
|
|
81
|
+
'lastError': value['lastError'],
|
|
82
|
+
'thread': value['thread'],
|
|
83
|
+
'contentType': value['contentType'],
|
|
84
|
+
'runId': value['runId'],
|
|
85
|
+
'conversationId': value['conversationId'],
|
|
86
|
+
};
|
|
87
|
+
}
|
|
@@ -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 WebhookTestRequestUio
|
|
16
|
+
*/
|
|
17
|
+
export interface WebhookTestRequestUio {
|
|
18
|
+
/**
|
|
19
|
+
* The JSON body of the test call (default `{"test": true}`).
|
|
20
|
+
* @type {any}
|
|
21
|
+
* @memberof WebhookTestRequestUio
|
|
22
|
+
*/
|
|
23
|
+
body?: any | null;
|
|
24
|
+
/**
|
|
25
|
+
* Sent as `X-Breign-Thread`.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof WebhookTestRequestUio
|
|
28
|
+
*/
|
|
29
|
+
thread?: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the WebhookTestRequestUio interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfWebhookTestRequestUio(value: object): value is WebhookTestRequestUio;
|
|
35
|
+
export declare function WebhookTestRequestUioFromJSON(json: any): WebhookTestRequestUio;
|
|
36
|
+
export declare function WebhookTestRequestUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): WebhookTestRequestUio;
|
|
37
|
+
export declare function WebhookTestRequestUioToJSON(json: any): WebhookTestRequestUio;
|
|
38
|
+
export declare function WebhookTestRequestUioToJSONTyped(value?: WebhookTestRequestUio | 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.instanceOfWebhookTestRequestUio = instanceOfWebhookTestRequestUio;
|
|
17
|
+
exports.WebhookTestRequestUioFromJSON = WebhookTestRequestUioFromJSON;
|
|
18
|
+
exports.WebhookTestRequestUioFromJSONTyped = WebhookTestRequestUioFromJSONTyped;
|
|
19
|
+
exports.WebhookTestRequestUioToJSON = WebhookTestRequestUioToJSON;
|
|
20
|
+
exports.WebhookTestRequestUioToJSONTyped = WebhookTestRequestUioToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the WebhookTestRequestUio interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfWebhookTestRequestUio(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function WebhookTestRequestUioFromJSON(json) {
|
|
28
|
+
return WebhookTestRequestUioFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function WebhookTestRequestUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'body': json['body'] == null ? undefined : json['body'],
|
|
36
|
+
'thread': json['thread'] == null ? undefined : json['thread'],
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function WebhookTestRequestUioToJSON(json) {
|
|
40
|
+
return WebhookTestRequestUioToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function WebhookTestRequestUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
43
|
+
if (value == null) {
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'body': value['body'],
|
|
48
|
+
'thread': value['thread'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -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 WebhookTestResponseUio
|
|
16
|
+
*/
|
|
17
|
+
export interface WebhookTestResponseUio {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof WebhookTestResponseUio
|
|
22
|
+
*/
|
|
23
|
+
eventId: string | null;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the WebhookTestResponseUio interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfWebhookTestResponseUio(value: object): value is WebhookTestResponseUio;
|
|
29
|
+
export declare function WebhookTestResponseUioFromJSON(json: any): WebhookTestResponseUio;
|
|
30
|
+
export declare function WebhookTestResponseUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): WebhookTestResponseUio;
|
|
31
|
+
export declare function WebhookTestResponseUioToJSON(json: any): WebhookTestResponseUio;
|
|
32
|
+
export declare function WebhookTestResponseUioToJSONTyped(value?: WebhookTestResponseUio | null, ignoreDiscriminator?: boolean): any;
|