@l7mp/tivadar-ai-api-sdk 0.1.10 → 0.2.1
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/api-client.d.ts +15 -1
- package/dist/api-client.js +8 -0
- package/dist/apis/NotificationsApi.d.ts +133 -0
- package/dist/apis/NotificationsApi.js +360 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/esm/api-client.d.ts +15 -1
- package/dist/esm/api-client.js +8 -0
- package/dist/esm/apis/NotificationsApi.d.ts +133 -0
- package/dist/esm/apis/NotificationsApi.js +356 -0
- package/dist/esm/apis/index.d.ts +1 -0
- package/dist/esm/apis/index.js +1 -0
- package/dist/esm/models/Notification.d.ts +120 -0
- package/dist/esm/models/Notification.js +91 -0
- package/dist/esm/models/NotificationChannel.d.ts +26 -0
- package/dist/esm/models/NotificationChannel.js +44 -0
- package/dist/esm/models/NotificationCreate.d.ts +78 -0
- package/dist/esm/models/NotificationCreate.js +63 -0
- package/dist/esm/models/NotificationScope.d.ts +26 -0
- package/dist/esm/models/NotificationScope.js +44 -0
- package/dist/esm/models/NotificationSeverity.d.ts +27 -0
- package/dist/esm/models/NotificationSeverity.js +45 -0
- package/dist/esm/models/NotificationType.d.ts +25 -0
- package/dist/esm/models/NotificationType.js +43 -0
- package/dist/esm/models/NotificationUpdate.d.ts +58 -0
- package/dist/esm/models/NotificationUpdate.js +51 -0
- package/dist/esm/models/OrganizationsOrganizationIdNotificationsGet200Response.d.ts +39 -0
- package/dist/esm/models/OrganizationsOrganizationIdNotificationsGet200Response.js +44 -0
- package/dist/esm/models/index.d.ts +8 -0
- package/dist/esm/models/index.js +8 -0
- package/dist/models/Notification.d.ts +120 -0
- package/dist/models/Notification.js +98 -0
- package/dist/models/NotificationChannel.d.ts +26 -0
- package/dist/models/NotificationChannel.js +52 -0
- package/dist/models/NotificationCreate.d.ts +78 -0
- package/dist/models/NotificationCreate.js +70 -0
- package/dist/models/NotificationScope.d.ts +26 -0
- package/dist/models/NotificationScope.js +52 -0
- package/dist/models/NotificationSeverity.d.ts +27 -0
- package/dist/models/NotificationSeverity.js +53 -0
- package/dist/models/NotificationType.d.ts +25 -0
- package/dist/models/NotificationType.js +51 -0
- package/dist/models/NotificationUpdate.d.ts +58 -0
- package/dist/models/NotificationUpdate.js +58 -0
- package/dist/models/OrganizationsOrganizationIdNotificationsGet200Response.d.ts +39 -0
- package/dist/models/OrganizationsOrganizationIdNotificationsGet200Response.js +51 -0
- package/dist/models/index.d.ts +8 -0
- package/dist/models/index.js +8 -0
- package/package.json +1 -1
- package/src/api-client.ts +21 -0
- package/src/apis/NotificationsApi.ts +509 -0
- package/src/apis/index.ts +1 -0
- package/src/models/Notification.ts +217 -0
- package/src/models/NotificationChannel.ts +54 -0
- package/src/models/NotificationCreate.ts +154 -0
- package/src/models/NotificationScope.ts +54 -0
- package/src/models/NotificationSeverity.ts +55 -0
- package/src/models/NotificationType.ts +53 -0
- package/src/models/NotificationUpdate.ts +114 -0
- package/src/models/OrganizationsOrganizationIdNotificationsGet200Response.ts +81 -0
- package/src/models/index.ts +8 -0
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Tivadar AI Backend API
|
|
6
|
+
* Unified REST API for Tivadar AI Voice Agents platform
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
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.NotificationSeverity = void 0;
|
|
17
|
+
exports.instanceOfNotificationSeverity = instanceOfNotificationSeverity;
|
|
18
|
+
exports.NotificationSeverityFromJSON = NotificationSeverityFromJSON;
|
|
19
|
+
exports.NotificationSeverityFromJSONTyped = NotificationSeverityFromJSONTyped;
|
|
20
|
+
exports.NotificationSeverityToJSON = NotificationSeverityToJSON;
|
|
21
|
+
exports.NotificationSeverityToJSONTyped = NotificationSeverityToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.NotificationSeverity = {
|
|
27
|
+
Danger: 'danger',
|
|
28
|
+
Warning: 'warning',
|
|
29
|
+
Info: 'info',
|
|
30
|
+
Notification: 'notification'
|
|
31
|
+
};
|
|
32
|
+
function instanceOfNotificationSeverity(value) {
|
|
33
|
+
for (const key in exports.NotificationSeverity) {
|
|
34
|
+
if (Object.prototype.hasOwnProperty.call(exports.NotificationSeverity, key)) {
|
|
35
|
+
if (exports.NotificationSeverity[key] === value) {
|
|
36
|
+
return true;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
return false;
|
|
41
|
+
}
|
|
42
|
+
function NotificationSeverityFromJSON(json) {
|
|
43
|
+
return NotificationSeverityFromJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
function NotificationSeverityFromJSONTyped(json, ignoreDiscriminator) {
|
|
46
|
+
return json;
|
|
47
|
+
}
|
|
48
|
+
function NotificationSeverityToJSON(value) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
function NotificationSeverityToJSONTyped(value, ignoreDiscriminator) {
|
|
52
|
+
return value;
|
|
53
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Tivadar AI Backend API
|
|
3
|
+
* Unified REST API for Tivadar AI Voice Agents platform
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
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
|
+
* 'announcement' for admin-created, 'system' for automatic notifications
|
|
14
|
+
* @export
|
|
15
|
+
*/
|
|
16
|
+
export declare const NotificationType: {
|
|
17
|
+
readonly Announcement: "announcement";
|
|
18
|
+
readonly System: "system";
|
|
19
|
+
};
|
|
20
|
+
export type NotificationType = typeof NotificationType[keyof typeof NotificationType];
|
|
21
|
+
export declare function instanceOfNotificationType(value: any): boolean;
|
|
22
|
+
export declare function NotificationTypeFromJSON(json: any): NotificationType;
|
|
23
|
+
export declare function NotificationTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): NotificationType;
|
|
24
|
+
export declare function NotificationTypeToJSON(value?: NotificationType | null): any;
|
|
25
|
+
export declare function NotificationTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): NotificationType;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Tivadar AI Backend API
|
|
6
|
+
* Unified REST API for Tivadar AI Voice Agents platform
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
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.NotificationType = void 0;
|
|
17
|
+
exports.instanceOfNotificationType = instanceOfNotificationType;
|
|
18
|
+
exports.NotificationTypeFromJSON = NotificationTypeFromJSON;
|
|
19
|
+
exports.NotificationTypeFromJSONTyped = NotificationTypeFromJSONTyped;
|
|
20
|
+
exports.NotificationTypeToJSON = NotificationTypeToJSON;
|
|
21
|
+
exports.NotificationTypeToJSONTyped = NotificationTypeToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* 'announcement' for admin-created, 'system' for automatic notifications
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.NotificationType = {
|
|
27
|
+
Announcement: 'announcement',
|
|
28
|
+
System: 'system'
|
|
29
|
+
};
|
|
30
|
+
function instanceOfNotificationType(value) {
|
|
31
|
+
for (const key in exports.NotificationType) {
|
|
32
|
+
if (Object.prototype.hasOwnProperty.call(exports.NotificationType, key)) {
|
|
33
|
+
if (exports.NotificationType[key] === value) {
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
return false;
|
|
39
|
+
}
|
|
40
|
+
function NotificationTypeFromJSON(json) {
|
|
41
|
+
return NotificationTypeFromJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function NotificationTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
function NotificationTypeToJSON(value) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
function NotificationTypeToJSONTyped(value, ignoreDiscriminator) {
|
|
50
|
+
return value;
|
|
51
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Tivadar AI Backend API
|
|
3
|
+
* Unified REST API for Tivadar AI Voice Agents platform
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
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 { NotificationChannel } from './NotificationChannel';
|
|
13
|
+
import type { NotificationSeverity } from './NotificationSeverity';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface NotificationUpdate
|
|
18
|
+
*/
|
|
19
|
+
export interface NotificationUpdate {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {NotificationSeverity}
|
|
23
|
+
* @memberof NotificationUpdate
|
|
24
|
+
*/
|
|
25
|
+
severity?: NotificationSeverity;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {NotificationChannel}
|
|
29
|
+
* @memberof NotificationUpdate
|
|
30
|
+
*/
|
|
31
|
+
channel?: NotificationChannel;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof NotificationUpdate
|
|
36
|
+
*/
|
|
37
|
+
title?: string;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof NotificationUpdate
|
|
42
|
+
*/
|
|
43
|
+
content?: string;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {Date}
|
|
47
|
+
* @memberof NotificationUpdate
|
|
48
|
+
*/
|
|
49
|
+
expires_at?: Date | null;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Check if a given object implements the NotificationUpdate interface.
|
|
53
|
+
*/
|
|
54
|
+
export declare function instanceOfNotificationUpdate(value: object): value is NotificationUpdate;
|
|
55
|
+
export declare function NotificationUpdateFromJSON(json: any): NotificationUpdate;
|
|
56
|
+
export declare function NotificationUpdateFromJSONTyped(json: any, ignoreDiscriminator: boolean): NotificationUpdate;
|
|
57
|
+
export declare function NotificationUpdateToJSON(json: any): NotificationUpdate;
|
|
58
|
+
export declare function NotificationUpdateToJSONTyped(value?: NotificationUpdate | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Tivadar AI Backend API
|
|
6
|
+
* Unified REST API for Tivadar AI Voice Agents platform
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
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.instanceOfNotificationUpdate = instanceOfNotificationUpdate;
|
|
17
|
+
exports.NotificationUpdateFromJSON = NotificationUpdateFromJSON;
|
|
18
|
+
exports.NotificationUpdateFromJSONTyped = NotificationUpdateFromJSONTyped;
|
|
19
|
+
exports.NotificationUpdateToJSON = NotificationUpdateToJSON;
|
|
20
|
+
exports.NotificationUpdateToJSONTyped = NotificationUpdateToJSONTyped;
|
|
21
|
+
const NotificationChannel_1 = require("./NotificationChannel");
|
|
22
|
+
const NotificationSeverity_1 = require("./NotificationSeverity");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the NotificationUpdate interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfNotificationUpdate(value) {
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function NotificationUpdateFromJSON(json) {
|
|
30
|
+
return NotificationUpdateFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function NotificationUpdateFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'severity': json['severity'] == null ? undefined : (0, NotificationSeverity_1.NotificationSeverityFromJSON)(json['severity']),
|
|
38
|
+
'channel': json['channel'] == null ? undefined : (0, NotificationChannel_1.NotificationChannelFromJSON)(json['channel']),
|
|
39
|
+
'title': json['title'] == null ? undefined : json['title'],
|
|
40
|
+
'content': json['content'] == null ? undefined : json['content'],
|
|
41
|
+
'expires_at': json['expires_at'] == null ? undefined : (new Date(json['expires_at'])),
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
function NotificationUpdateToJSON(json) {
|
|
45
|
+
return NotificationUpdateToJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
function NotificationUpdateToJSONTyped(value, ignoreDiscriminator = false) {
|
|
48
|
+
if (value == null) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'severity': (0, NotificationSeverity_1.NotificationSeverityToJSON)(value['severity']),
|
|
53
|
+
'channel': (0, NotificationChannel_1.NotificationChannelToJSON)(value['channel']),
|
|
54
|
+
'title': value['title'],
|
|
55
|
+
'content': value['content'],
|
|
56
|
+
'expires_at': value['expires_at'] == null ? value['expires_at'] : value['expires_at'].toISOString(),
|
|
57
|
+
};
|
|
58
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Tivadar AI Backend API
|
|
3
|
+
* Unified REST API for Tivadar AI Voice Agents platform
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
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 { Notification } from './Notification';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface OrganizationsOrganizationIdNotificationsGet200Response
|
|
17
|
+
*/
|
|
18
|
+
export interface OrganizationsOrganizationIdNotificationsGet200Response {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<Notification>}
|
|
22
|
+
* @memberof OrganizationsOrganizationIdNotificationsGet200Response
|
|
23
|
+
*/
|
|
24
|
+
notifications?: Array<Notification>;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof OrganizationsOrganizationIdNotificationsGet200Response
|
|
29
|
+
*/
|
|
30
|
+
unread_count?: number;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the OrganizationsOrganizationIdNotificationsGet200Response interface.
|
|
34
|
+
*/
|
|
35
|
+
export declare function instanceOfOrganizationsOrganizationIdNotificationsGet200Response(value: object): value is OrganizationsOrganizationIdNotificationsGet200Response;
|
|
36
|
+
export declare function OrganizationsOrganizationIdNotificationsGet200ResponseFromJSON(json: any): OrganizationsOrganizationIdNotificationsGet200Response;
|
|
37
|
+
export declare function OrganizationsOrganizationIdNotificationsGet200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrganizationsOrganizationIdNotificationsGet200Response;
|
|
38
|
+
export declare function OrganizationsOrganizationIdNotificationsGet200ResponseToJSON(json: any): OrganizationsOrganizationIdNotificationsGet200Response;
|
|
39
|
+
export declare function OrganizationsOrganizationIdNotificationsGet200ResponseToJSONTyped(value?: OrganizationsOrganizationIdNotificationsGet200Response | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Tivadar AI Backend API
|
|
6
|
+
* Unified REST API for Tivadar AI Voice Agents platform
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
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.instanceOfOrganizationsOrganizationIdNotificationsGet200Response = instanceOfOrganizationsOrganizationIdNotificationsGet200Response;
|
|
17
|
+
exports.OrganizationsOrganizationIdNotificationsGet200ResponseFromJSON = OrganizationsOrganizationIdNotificationsGet200ResponseFromJSON;
|
|
18
|
+
exports.OrganizationsOrganizationIdNotificationsGet200ResponseFromJSONTyped = OrganizationsOrganizationIdNotificationsGet200ResponseFromJSONTyped;
|
|
19
|
+
exports.OrganizationsOrganizationIdNotificationsGet200ResponseToJSON = OrganizationsOrganizationIdNotificationsGet200ResponseToJSON;
|
|
20
|
+
exports.OrganizationsOrganizationIdNotificationsGet200ResponseToJSONTyped = OrganizationsOrganizationIdNotificationsGet200ResponseToJSONTyped;
|
|
21
|
+
const Notification_1 = require("./Notification");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the OrganizationsOrganizationIdNotificationsGet200Response interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfOrganizationsOrganizationIdNotificationsGet200Response(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function OrganizationsOrganizationIdNotificationsGet200ResponseFromJSON(json) {
|
|
29
|
+
return OrganizationsOrganizationIdNotificationsGet200ResponseFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function OrganizationsOrganizationIdNotificationsGet200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'notifications': json['notifications'] == null ? undefined : (json['notifications'].map(Notification_1.NotificationFromJSON)),
|
|
37
|
+
'unread_count': json['unread_count'] == null ? undefined : json['unread_count'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function OrganizationsOrganizationIdNotificationsGet200ResponseToJSON(json) {
|
|
41
|
+
return OrganizationsOrganizationIdNotificationsGet200ResponseToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function OrganizationsOrganizationIdNotificationsGet200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'notifications': value['notifications'] == null ? undefined : (value['notifications'].map(Notification_1.NotificationToJSON)),
|
|
49
|
+
'unread_count': value['unread_count'],
|
|
50
|
+
};
|
|
51
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -34,12 +34,20 @@ export * from './LlmAgent';
|
|
|
34
34
|
export * from './LlmAgentInput';
|
|
35
35
|
export * from './LlmAgentUpdateInput';
|
|
36
36
|
export * from './Member';
|
|
37
|
+
export * from './Notification';
|
|
38
|
+
export * from './NotificationChannel';
|
|
39
|
+
export * from './NotificationCreate';
|
|
40
|
+
export * from './NotificationScope';
|
|
41
|
+
export * from './NotificationSeverity';
|
|
42
|
+
export * from './NotificationType';
|
|
43
|
+
export * from './NotificationUpdate';
|
|
37
44
|
export * from './Organization';
|
|
38
45
|
export * from './OrganizationCreate';
|
|
39
46
|
export * from './OrganizationUpdate';
|
|
40
47
|
export * from './OrganizationsOrganizationIdConversationsGet200Response';
|
|
41
48
|
export * from './OrganizationsOrganizationIdEmbeddingProvidersGet200ResponseInner';
|
|
42
49
|
export * from './OrganizationsOrganizationIdLlmProvidersGet200ResponseInner';
|
|
50
|
+
export * from './OrganizationsOrganizationIdNotificationsGet200Response';
|
|
43
51
|
export * from './OrganizationsOrganizationIdSipDispatchRulesPost200Response';
|
|
44
52
|
export * from './OrganizationsOrganizationIdVoiceAgentsBasicGet200ResponseInner';
|
|
45
53
|
export * from './OrganizationsOrganizationIdVoiceAgentsVoiceAgentIdSandboxTokenPostRequest';
|
package/dist/models/index.js
CHANGED
|
@@ -52,12 +52,20 @@ __exportStar(require("./LlmAgent"), exports);
|
|
|
52
52
|
__exportStar(require("./LlmAgentInput"), exports);
|
|
53
53
|
__exportStar(require("./LlmAgentUpdateInput"), exports);
|
|
54
54
|
__exportStar(require("./Member"), exports);
|
|
55
|
+
__exportStar(require("./Notification"), exports);
|
|
56
|
+
__exportStar(require("./NotificationChannel"), exports);
|
|
57
|
+
__exportStar(require("./NotificationCreate"), exports);
|
|
58
|
+
__exportStar(require("./NotificationScope"), exports);
|
|
59
|
+
__exportStar(require("./NotificationSeverity"), exports);
|
|
60
|
+
__exportStar(require("./NotificationType"), exports);
|
|
61
|
+
__exportStar(require("./NotificationUpdate"), exports);
|
|
55
62
|
__exportStar(require("./Organization"), exports);
|
|
56
63
|
__exportStar(require("./OrganizationCreate"), exports);
|
|
57
64
|
__exportStar(require("./OrganizationUpdate"), exports);
|
|
58
65
|
__exportStar(require("./OrganizationsOrganizationIdConversationsGet200Response"), exports);
|
|
59
66
|
__exportStar(require("./OrganizationsOrganizationIdEmbeddingProvidersGet200ResponseInner"), exports);
|
|
60
67
|
__exportStar(require("./OrganizationsOrganizationIdLlmProvidersGet200ResponseInner"), exports);
|
|
68
|
+
__exportStar(require("./OrganizationsOrganizationIdNotificationsGet200Response"), exports);
|
|
61
69
|
__exportStar(require("./OrganizationsOrganizationIdSipDispatchRulesPost200Response"), exports);
|
|
62
70
|
__exportStar(require("./OrganizationsOrganizationIdVoiceAgentsBasicGet200ResponseInner"), exports);
|
|
63
71
|
__exportStar(require("./OrganizationsOrganizationIdVoiceAgentsVoiceAgentIdSandboxTokenPostRequest"), exports);
|
package/package.json
CHANGED
package/src/api-client.ts
CHANGED
|
@@ -4,6 +4,7 @@ import { ChatAgentsApi } from "./apis/ChatAgentsApi";
|
|
|
4
4
|
import { HistoryApi } from "./apis/HistoryApi";
|
|
5
5
|
import { InvitationsApi } from "./apis/InvitationsApi";
|
|
6
6
|
import { MembersApi } from "./apis/MembersApi";
|
|
7
|
+
import { NotificationsApi, type OrganizationsOrganizationIdNotificationsGetIncludeDismissedEnum, type OrganizationsOrganizationIdNotificationsGetIncludeExpiredEnum } from "./apis/NotificationsApi";
|
|
7
8
|
import { OrganizationsApi } from "./apis/OrganizationsApi";
|
|
8
9
|
import { PlaygroundApi } from "./apis/PlaygroundApi";
|
|
9
10
|
import { RAGApi, type OrganizationsOrganizationIdRagRagConfigNameDocumentsGetStatusEnum } from "./apis/RAGApi";
|
|
@@ -20,6 +21,10 @@ import { Configuration } from "./runtime";
|
|
|
20
21
|
import type {
|
|
21
22
|
CallCreate,
|
|
22
23
|
CallUpdate,
|
|
24
|
+
Notification,
|
|
25
|
+
NotificationScope,
|
|
26
|
+
NotificationSeverity,
|
|
27
|
+
NotificationType,
|
|
23
28
|
VoiceAgentCreate,
|
|
24
29
|
VoiceAgentUpdate,
|
|
25
30
|
ChatAgentCreate,
|
|
@@ -41,6 +46,7 @@ import type {
|
|
|
41
46
|
UpdatePlanRequest,
|
|
42
47
|
PauseSubscriptionRequest,
|
|
43
48
|
BillingPortalRequest,
|
|
49
|
+
OrganizationsOrganizationIdNotificationsGet200Response,
|
|
44
50
|
} from "./models";
|
|
45
51
|
|
|
46
52
|
export interface ApiClientConfig {
|
|
@@ -157,6 +163,12 @@ export class Api {
|
|
|
157
163
|
public readonly ttsProviders: {
|
|
158
164
|
list: (organizationId: string, options?: RequestInit) => ReturnType<TTSProvidersApi["organizationsOrganizationIdTtsProvidersGet"]>;
|
|
159
165
|
};
|
|
166
|
+
public readonly notifications: {
|
|
167
|
+
list: (organizationId: string, filters?: { type?: NotificationType; severity?: NotificationSeverity; scope?: NotificationScope; include_dismissed?: OrganizationsOrganizationIdNotificationsGetIncludeDismissedEnum; include_expired?: OrganizationsOrganizationIdNotificationsGetIncludeExpiredEnum }, options?: RequestInit) => ReturnType<NotificationsApi["organizationsOrganizationIdNotificationsGet"]>;
|
|
168
|
+
get: (organizationId: string, notificationId: string, options?: RequestInit) => ReturnType<NotificationsApi["organizationsOrganizationIdNotificationsNotificationIdGet"]>;
|
|
169
|
+
read: (organizationId: string, notificationId: string, options?: RequestInit) => ReturnType<NotificationsApi["organizationsOrganizationIdNotificationsNotificationIdReadPost"]>;
|
|
170
|
+
dismiss: (organizationId: string, notificationId: string, options?: RequestInit) => ReturnType<NotificationsApi["organizationsOrganizationIdNotificationsNotificationIdDismissPost"]>;
|
|
171
|
+
};
|
|
160
172
|
public readonly embeddingProviders: {
|
|
161
173
|
list: (organizationId: string, options?: RequestInit) => ReturnType<EmbeddingProvidersApi["organizationsOrganizationIdEmbeddingProvidersGet"]>;
|
|
162
174
|
};
|
|
@@ -173,6 +185,7 @@ export class Api {
|
|
|
173
185
|
private readonly ragApi: RAGApi;
|
|
174
186
|
private readonly recordingsApi: RecordingsApi;
|
|
175
187
|
private readonly sipApi: SIPApi;
|
|
188
|
+
private readonly notificationsApi: NotificationsApi;
|
|
176
189
|
private readonly subscriptionApi: SubscriptionApi;
|
|
177
190
|
private readonly embeddingProvidersApi: EmbeddingProvidersApi;
|
|
178
191
|
private readonly llmProvidersApi: LLMProvidersApi;
|
|
@@ -210,6 +223,7 @@ export class Api {
|
|
|
210
223
|
this.ragApi = new RAGApi(configuration);
|
|
211
224
|
this.recordingsApi = new RecordingsApi(configuration);
|
|
212
225
|
this.sipApi = new SIPApi(configuration);
|
|
226
|
+
this.notificationsApi = new NotificationsApi(configuration);
|
|
213
227
|
this.subscriptionApi = new SubscriptionApi(configuration);
|
|
214
228
|
this.embeddingProvidersApi = new EmbeddingProvidersApi(configuration);
|
|
215
229
|
this.llmProvidersApi = new LLMProvidersApi(configuration);
|
|
@@ -314,6 +328,13 @@ export class Api {
|
|
|
314
328
|
deletePhoneNumber: (phoneNumberId, options) => this.sipApi.phoneNumbersPhoneNumberIdDelete({ phoneNumberId }, options),
|
|
315
329
|
};
|
|
316
330
|
|
|
331
|
+
this.notifications = {
|
|
332
|
+
list: (organizationId, filters, options) => this.notificationsApi.organizationsOrganizationIdNotificationsGet({ organizationId, type: filters?.type, severity: filters?.severity, scope: filters?.scope, includeDismissed: filters?.include_dismissed, includeExpired: filters?.include_expired }, options),
|
|
333
|
+
get: (organizationId, notificationId, options) => this.notificationsApi.organizationsOrganizationIdNotificationsNotificationIdGet({ organizationId, notificationId }, options),
|
|
334
|
+
read: (organizationId, notificationId, options) => this.notificationsApi.organizationsOrganizationIdNotificationsNotificationIdReadPost({ organizationId, notificationId }, options),
|
|
335
|
+
dismiss: (organizationId, notificationId, options) => this.notificationsApi.organizationsOrganizationIdNotificationsNotificationIdDismissPost({ organizationId, notificationId }, options),
|
|
336
|
+
};
|
|
337
|
+
|
|
317
338
|
this.subscription = {
|
|
318
339
|
getStatus: (organizationId, options) => this.subscriptionApi.organizationsOrganizationIdSubscriptionGet({ organizationId }, options),
|
|
319
340
|
getDetails: (organizationId, options) => this.subscriptionApi.organizationsOrganizationIdSubscriptionDetailsGet({ organizationId }, options),
|