@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,44 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Tivadar AI Backend API
|
|
5
|
+
* Unified REST API for Tivadar AI Voice Agents platform
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
import { NotificationFromJSON, NotificationToJSON, } from './Notification';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the OrganizationsOrganizationIdNotificationsGet200Response interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfOrganizationsOrganizationIdNotificationsGet200Response(value) {
|
|
19
|
+
return true;
|
|
20
|
+
}
|
|
21
|
+
export function OrganizationsOrganizationIdNotificationsGet200ResponseFromJSON(json) {
|
|
22
|
+
return OrganizationsOrganizationIdNotificationsGet200ResponseFromJSONTyped(json, false);
|
|
23
|
+
}
|
|
24
|
+
export function OrganizationsOrganizationIdNotificationsGet200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
25
|
+
if (json == null) {
|
|
26
|
+
return json;
|
|
27
|
+
}
|
|
28
|
+
return {
|
|
29
|
+
'notifications': json['notifications'] == null ? undefined : (json['notifications'].map(NotificationFromJSON)),
|
|
30
|
+
'unread_count': json['unread_count'] == null ? undefined : json['unread_count'],
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
export function OrganizationsOrganizationIdNotificationsGet200ResponseToJSON(json) {
|
|
34
|
+
return OrganizationsOrganizationIdNotificationsGet200ResponseToJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
export function OrganizationsOrganizationIdNotificationsGet200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
37
|
+
if (value == null) {
|
|
38
|
+
return value;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'notifications': value['notifications'] == null ? undefined : (value['notifications'].map(NotificationToJSON)),
|
|
42
|
+
'unread_count': value['unread_count'],
|
|
43
|
+
};
|
|
44
|
+
}
|
|
@@ -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/esm/models/index.js
CHANGED
|
@@ -36,12 +36,20 @@ export * from './LlmAgent';
|
|
|
36
36
|
export * from './LlmAgentInput';
|
|
37
37
|
export * from './LlmAgentUpdateInput';
|
|
38
38
|
export * from './Member';
|
|
39
|
+
export * from './Notification';
|
|
40
|
+
export * from './NotificationChannel';
|
|
41
|
+
export * from './NotificationCreate';
|
|
42
|
+
export * from './NotificationScope';
|
|
43
|
+
export * from './NotificationSeverity';
|
|
44
|
+
export * from './NotificationType';
|
|
45
|
+
export * from './NotificationUpdate';
|
|
39
46
|
export * from './Organization';
|
|
40
47
|
export * from './OrganizationCreate';
|
|
41
48
|
export * from './OrganizationUpdate';
|
|
42
49
|
export * from './OrganizationsOrganizationIdConversationsGet200Response';
|
|
43
50
|
export * from './OrganizationsOrganizationIdEmbeddingProvidersGet200ResponseInner';
|
|
44
51
|
export * from './OrganizationsOrganizationIdLlmProvidersGet200ResponseInner';
|
|
52
|
+
export * from './OrganizationsOrganizationIdNotificationsGet200Response';
|
|
45
53
|
export * from './OrganizationsOrganizationIdSipDispatchRulesPost200Response';
|
|
46
54
|
export * from './OrganizationsOrganizationIdVoiceAgentsBasicGet200ResponseInner';
|
|
47
55
|
export * from './OrganizationsOrganizationIdVoiceAgentsVoiceAgentIdSandboxTokenPostRequest';
|
|
@@ -0,0 +1,120 @@
|
|
|
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 { NotificationType } from './NotificationType';
|
|
14
|
+
import type { NotificationScope } from './NotificationScope';
|
|
15
|
+
import type { NotificationSeverity } from './NotificationSeverity';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface Notification
|
|
20
|
+
*/
|
|
21
|
+
export interface Notification {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof Notification
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {NotificationType}
|
|
31
|
+
* @memberof Notification
|
|
32
|
+
*/
|
|
33
|
+
type: NotificationType;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {NotificationSeverity}
|
|
37
|
+
* @memberof Notification
|
|
38
|
+
*/
|
|
39
|
+
severity: NotificationSeverity;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {NotificationChannel}
|
|
43
|
+
* @memberof Notification
|
|
44
|
+
*/
|
|
45
|
+
channel: NotificationChannel;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {NotificationScope}
|
|
49
|
+
* @memberof Notification
|
|
50
|
+
*/
|
|
51
|
+
scope: NotificationScope;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {string}
|
|
55
|
+
* @memberof Notification
|
|
56
|
+
*/
|
|
57
|
+
title: string;
|
|
58
|
+
/**
|
|
59
|
+
* Supports markdown formatting and embedded links
|
|
60
|
+
* @type {string}
|
|
61
|
+
* @memberof Notification
|
|
62
|
+
*/
|
|
63
|
+
content: string;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {string}
|
|
67
|
+
* @memberof Notification
|
|
68
|
+
*/
|
|
69
|
+
organization_id?: string | null;
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @type {string}
|
|
73
|
+
* @memberof Notification
|
|
74
|
+
*/
|
|
75
|
+
user_id?: string | null;
|
|
76
|
+
/**
|
|
77
|
+
*
|
|
78
|
+
* @type {string}
|
|
79
|
+
* @memberof Notification
|
|
80
|
+
*/
|
|
81
|
+
created_by?: string | null;
|
|
82
|
+
/**
|
|
83
|
+
*
|
|
84
|
+
* @type {Date}
|
|
85
|
+
* @memberof Notification
|
|
86
|
+
*/
|
|
87
|
+
expires_at?: Date | null;
|
|
88
|
+
/**
|
|
89
|
+
*
|
|
90
|
+
* @type {Date}
|
|
91
|
+
* @memberof Notification
|
|
92
|
+
*/
|
|
93
|
+
created_at: Date;
|
|
94
|
+
/**
|
|
95
|
+
*
|
|
96
|
+
* @type {Date}
|
|
97
|
+
* @memberof Notification
|
|
98
|
+
*/
|
|
99
|
+
updated_at: Date;
|
|
100
|
+
/**
|
|
101
|
+
* When the current user read this notification (present in list responses)
|
|
102
|
+
* @type {Date}
|
|
103
|
+
* @memberof Notification
|
|
104
|
+
*/
|
|
105
|
+
read_at?: Date | null;
|
|
106
|
+
/**
|
|
107
|
+
* When the current user dismissed this notification (present in list responses)
|
|
108
|
+
* @type {Date}
|
|
109
|
+
* @memberof Notification
|
|
110
|
+
*/
|
|
111
|
+
dismissed_at?: Date | null;
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* Check if a given object implements the Notification interface.
|
|
115
|
+
*/
|
|
116
|
+
export declare function instanceOfNotification(value: object): value is Notification;
|
|
117
|
+
export declare function NotificationFromJSON(json: any): Notification;
|
|
118
|
+
export declare function NotificationFromJSONTyped(json: any, ignoreDiscriminator: boolean): Notification;
|
|
119
|
+
export declare function NotificationToJSON(json: any): Notification;
|
|
120
|
+
export declare function NotificationToJSONTyped(value?: Notification | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,98 @@
|
|
|
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.instanceOfNotification = instanceOfNotification;
|
|
17
|
+
exports.NotificationFromJSON = NotificationFromJSON;
|
|
18
|
+
exports.NotificationFromJSONTyped = NotificationFromJSONTyped;
|
|
19
|
+
exports.NotificationToJSON = NotificationToJSON;
|
|
20
|
+
exports.NotificationToJSONTyped = NotificationToJSONTyped;
|
|
21
|
+
const NotificationChannel_1 = require("./NotificationChannel");
|
|
22
|
+
const NotificationType_1 = require("./NotificationType");
|
|
23
|
+
const NotificationScope_1 = require("./NotificationScope");
|
|
24
|
+
const NotificationSeverity_1 = require("./NotificationSeverity");
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the Notification interface.
|
|
27
|
+
*/
|
|
28
|
+
function instanceOfNotification(value) {
|
|
29
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('severity' in value) || value['severity'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('channel' in value) || value['channel'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('scope' in value) || value['scope'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('title' in value) || value['title'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
if (!('content' in value) || value['content'] === undefined)
|
|
42
|
+
return false;
|
|
43
|
+
if (!('created_at' in value) || value['created_at'] === undefined)
|
|
44
|
+
return false;
|
|
45
|
+
if (!('updated_at' in value) || value['updated_at'] === undefined)
|
|
46
|
+
return false;
|
|
47
|
+
return true;
|
|
48
|
+
}
|
|
49
|
+
function NotificationFromJSON(json) {
|
|
50
|
+
return NotificationFromJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
function NotificationFromJSONTyped(json, ignoreDiscriminator) {
|
|
53
|
+
if (json == null) {
|
|
54
|
+
return json;
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
'id': json['id'],
|
|
58
|
+
'type': (0, NotificationType_1.NotificationTypeFromJSON)(json['type']),
|
|
59
|
+
'severity': (0, NotificationSeverity_1.NotificationSeverityFromJSON)(json['severity']),
|
|
60
|
+
'channel': (0, NotificationChannel_1.NotificationChannelFromJSON)(json['channel']),
|
|
61
|
+
'scope': (0, NotificationScope_1.NotificationScopeFromJSON)(json['scope']),
|
|
62
|
+
'title': json['title'],
|
|
63
|
+
'content': json['content'],
|
|
64
|
+
'organization_id': json['organization_id'] == null ? undefined : json['organization_id'],
|
|
65
|
+
'user_id': json['user_id'] == null ? undefined : json['user_id'],
|
|
66
|
+
'created_by': json['created_by'] == null ? undefined : json['created_by'],
|
|
67
|
+
'expires_at': json['expires_at'] == null ? undefined : (new Date(json['expires_at'])),
|
|
68
|
+
'created_at': (new Date(json['created_at'])),
|
|
69
|
+
'updated_at': (new Date(json['updated_at'])),
|
|
70
|
+
'read_at': json['read_at'] == null ? undefined : (new Date(json['read_at'])),
|
|
71
|
+
'dismissed_at': json['dismissed_at'] == null ? undefined : (new Date(json['dismissed_at'])),
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
function NotificationToJSON(json) {
|
|
75
|
+
return NotificationToJSONTyped(json, false);
|
|
76
|
+
}
|
|
77
|
+
function NotificationToJSONTyped(value, ignoreDiscriminator = false) {
|
|
78
|
+
if (value == null) {
|
|
79
|
+
return value;
|
|
80
|
+
}
|
|
81
|
+
return {
|
|
82
|
+
'id': value['id'],
|
|
83
|
+
'type': (0, NotificationType_1.NotificationTypeToJSON)(value['type']),
|
|
84
|
+
'severity': (0, NotificationSeverity_1.NotificationSeverityToJSON)(value['severity']),
|
|
85
|
+
'channel': (0, NotificationChannel_1.NotificationChannelToJSON)(value['channel']),
|
|
86
|
+
'scope': (0, NotificationScope_1.NotificationScopeToJSON)(value['scope']),
|
|
87
|
+
'title': value['title'],
|
|
88
|
+
'content': value['content'],
|
|
89
|
+
'organization_id': value['organization_id'],
|
|
90
|
+
'user_id': value['user_id'],
|
|
91
|
+
'created_by': value['created_by'],
|
|
92
|
+
'expires_at': value['expires_at'] == null ? value['expires_at'] : value['expires_at'].toISOString(),
|
|
93
|
+
'created_at': value['created_at'].toISOString(),
|
|
94
|
+
'updated_at': value['updated_at'].toISOString(),
|
|
95
|
+
'read_at': value['read_at'] == null ? value['read_at'] : value['read_at'].toISOString(),
|
|
96
|
+
'dismissed_at': value['dismissed_at'] == null ? value['dismissed_at'] : value['dismissed_at'].toISOString(),
|
|
97
|
+
};
|
|
98
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
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
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
*/
|
|
16
|
+
export declare const NotificationChannel: {
|
|
17
|
+
readonly Email: "email";
|
|
18
|
+
readonly Ui: "ui";
|
|
19
|
+
readonly Both: "both";
|
|
20
|
+
};
|
|
21
|
+
export type NotificationChannel = typeof NotificationChannel[keyof typeof NotificationChannel];
|
|
22
|
+
export declare function instanceOfNotificationChannel(value: any): boolean;
|
|
23
|
+
export declare function NotificationChannelFromJSON(json: any): NotificationChannel;
|
|
24
|
+
export declare function NotificationChannelFromJSONTyped(json: any, ignoreDiscriminator: boolean): NotificationChannel;
|
|
25
|
+
export declare function NotificationChannelToJSON(value?: NotificationChannel | null): any;
|
|
26
|
+
export declare function NotificationChannelToJSONTyped(value: any, ignoreDiscriminator: boolean): NotificationChannel;
|
|
@@ -0,0 +1,52 @@
|
|
|
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.NotificationChannel = void 0;
|
|
17
|
+
exports.instanceOfNotificationChannel = instanceOfNotificationChannel;
|
|
18
|
+
exports.NotificationChannelFromJSON = NotificationChannelFromJSON;
|
|
19
|
+
exports.NotificationChannelFromJSONTyped = NotificationChannelFromJSONTyped;
|
|
20
|
+
exports.NotificationChannelToJSON = NotificationChannelToJSON;
|
|
21
|
+
exports.NotificationChannelToJSONTyped = NotificationChannelToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.NotificationChannel = {
|
|
27
|
+
Email: 'email',
|
|
28
|
+
Ui: 'ui',
|
|
29
|
+
Both: 'both'
|
|
30
|
+
};
|
|
31
|
+
function instanceOfNotificationChannel(value) {
|
|
32
|
+
for (const key in exports.NotificationChannel) {
|
|
33
|
+
if (Object.prototype.hasOwnProperty.call(exports.NotificationChannel, key)) {
|
|
34
|
+
if (exports.NotificationChannel[key] === value) {
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
return false;
|
|
40
|
+
}
|
|
41
|
+
function NotificationChannelFromJSON(json) {
|
|
42
|
+
return NotificationChannelFromJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function NotificationChannelFromJSONTyped(json, ignoreDiscriminator) {
|
|
45
|
+
return json;
|
|
46
|
+
}
|
|
47
|
+
function NotificationChannelToJSON(value) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
function NotificationChannelToJSONTyped(value, ignoreDiscriminator) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
@@ -0,0 +1,78 @@
|
|
|
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 { NotificationType } from './NotificationType';
|
|
14
|
+
import type { NotificationScope } from './NotificationScope';
|
|
15
|
+
import type { NotificationSeverity } from './NotificationSeverity';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface NotificationCreate
|
|
20
|
+
*/
|
|
21
|
+
export interface NotificationCreate {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {NotificationType}
|
|
25
|
+
* @memberof NotificationCreate
|
|
26
|
+
*/
|
|
27
|
+
type?: NotificationType;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {NotificationSeverity}
|
|
31
|
+
* @memberof NotificationCreate
|
|
32
|
+
*/
|
|
33
|
+
severity?: NotificationSeverity;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {NotificationChannel}
|
|
37
|
+
* @memberof NotificationCreate
|
|
38
|
+
*/
|
|
39
|
+
channel?: NotificationChannel;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {NotificationScope}
|
|
43
|
+
* @memberof NotificationCreate
|
|
44
|
+
*/
|
|
45
|
+
scope?: NotificationScope;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof NotificationCreate
|
|
50
|
+
*/
|
|
51
|
+
title: string;
|
|
52
|
+
/**
|
|
53
|
+
* Supports markdown formatting and embedded links
|
|
54
|
+
* @type {string}
|
|
55
|
+
* @memberof NotificationCreate
|
|
56
|
+
*/
|
|
57
|
+
content: string;
|
|
58
|
+
/**
|
|
59
|
+
* Required when scope is 'user'
|
|
60
|
+
* @type {string}
|
|
61
|
+
* @memberof NotificationCreate
|
|
62
|
+
*/
|
|
63
|
+
user_id?: string | null;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {Date}
|
|
67
|
+
* @memberof NotificationCreate
|
|
68
|
+
*/
|
|
69
|
+
expires_at?: Date | null;
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Check if a given object implements the NotificationCreate interface.
|
|
73
|
+
*/
|
|
74
|
+
export declare function instanceOfNotificationCreate(value: object): value is NotificationCreate;
|
|
75
|
+
export declare function NotificationCreateFromJSON(json: any): NotificationCreate;
|
|
76
|
+
export declare function NotificationCreateFromJSONTyped(json: any, ignoreDiscriminator: boolean): NotificationCreate;
|
|
77
|
+
export declare function NotificationCreateToJSON(json: any): NotificationCreate;
|
|
78
|
+
export declare function NotificationCreateToJSONTyped(value?: NotificationCreate | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,70 @@
|
|
|
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.instanceOfNotificationCreate = instanceOfNotificationCreate;
|
|
17
|
+
exports.NotificationCreateFromJSON = NotificationCreateFromJSON;
|
|
18
|
+
exports.NotificationCreateFromJSONTyped = NotificationCreateFromJSONTyped;
|
|
19
|
+
exports.NotificationCreateToJSON = NotificationCreateToJSON;
|
|
20
|
+
exports.NotificationCreateToJSONTyped = NotificationCreateToJSONTyped;
|
|
21
|
+
const NotificationChannel_1 = require("./NotificationChannel");
|
|
22
|
+
const NotificationType_1 = require("./NotificationType");
|
|
23
|
+
const NotificationScope_1 = require("./NotificationScope");
|
|
24
|
+
const NotificationSeverity_1 = require("./NotificationSeverity");
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the NotificationCreate interface.
|
|
27
|
+
*/
|
|
28
|
+
function instanceOfNotificationCreate(value) {
|
|
29
|
+
if (!('title' in value) || value['title'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('content' in value) || value['content'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
function NotificationCreateFromJSON(json) {
|
|
36
|
+
return NotificationCreateFromJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
function NotificationCreateFromJSONTyped(json, ignoreDiscriminator) {
|
|
39
|
+
if (json == null) {
|
|
40
|
+
return json;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'type': json['type'] == null ? undefined : (0, NotificationType_1.NotificationTypeFromJSON)(json['type']),
|
|
44
|
+
'severity': json['severity'] == null ? undefined : (0, NotificationSeverity_1.NotificationSeverityFromJSON)(json['severity']),
|
|
45
|
+
'channel': json['channel'] == null ? undefined : (0, NotificationChannel_1.NotificationChannelFromJSON)(json['channel']),
|
|
46
|
+
'scope': json['scope'] == null ? undefined : (0, NotificationScope_1.NotificationScopeFromJSON)(json['scope']),
|
|
47
|
+
'title': json['title'],
|
|
48
|
+
'content': json['content'],
|
|
49
|
+
'user_id': json['user_id'] == null ? undefined : json['user_id'],
|
|
50
|
+
'expires_at': json['expires_at'] == null ? undefined : (new Date(json['expires_at'])),
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
function NotificationCreateToJSON(json) {
|
|
54
|
+
return NotificationCreateToJSONTyped(json, false);
|
|
55
|
+
}
|
|
56
|
+
function NotificationCreateToJSONTyped(value, ignoreDiscriminator = false) {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
'type': (0, NotificationType_1.NotificationTypeToJSON)(value['type']),
|
|
62
|
+
'severity': (0, NotificationSeverity_1.NotificationSeverityToJSON)(value['severity']),
|
|
63
|
+
'channel': (0, NotificationChannel_1.NotificationChannelToJSON)(value['channel']),
|
|
64
|
+
'scope': (0, NotificationScope_1.NotificationScopeToJSON)(value['scope']),
|
|
65
|
+
'title': value['title'],
|
|
66
|
+
'content': value['content'],
|
|
67
|
+
'user_id': value['user_id'],
|
|
68
|
+
'expires_at': value['expires_at'] == null ? value['expires_at'] : value['expires_at'].toISOString(),
|
|
69
|
+
};
|
|
70
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
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
|
+
* 'global' targets all users, 'organization' targets org members, 'user' targets a specific user
|
|
14
|
+
* @export
|
|
15
|
+
*/
|
|
16
|
+
export declare const NotificationScope: {
|
|
17
|
+
readonly Global: "global";
|
|
18
|
+
readonly Organization: "organization";
|
|
19
|
+
readonly User: "user";
|
|
20
|
+
};
|
|
21
|
+
export type NotificationScope = typeof NotificationScope[keyof typeof NotificationScope];
|
|
22
|
+
export declare function instanceOfNotificationScope(value: any): boolean;
|
|
23
|
+
export declare function NotificationScopeFromJSON(json: any): NotificationScope;
|
|
24
|
+
export declare function NotificationScopeFromJSONTyped(json: any, ignoreDiscriminator: boolean): NotificationScope;
|
|
25
|
+
export declare function NotificationScopeToJSON(value?: NotificationScope | null): any;
|
|
26
|
+
export declare function NotificationScopeToJSONTyped(value: any, ignoreDiscriminator: boolean): NotificationScope;
|
|
@@ -0,0 +1,52 @@
|
|
|
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.NotificationScope = void 0;
|
|
17
|
+
exports.instanceOfNotificationScope = instanceOfNotificationScope;
|
|
18
|
+
exports.NotificationScopeFromJSON = NotificationScopeFromJSON;
|
|
19
|
+
exports.NotificationScopeFromJSONTyped = NotificationScopeFromJSONTyped;
|
|
20
|
+
exports.NotificationScopeToJSON = NotificationScopeToJSON;
|
|
21
|
+
exports.NotificationScopeToJSONTyped = NotificationScopeToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* 'global' targets all users, 'organization' targets org members, 'user' targets a specific user
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.NotificationScope = {
|
|
27
|
+
Global: 'global',
|
|
28
|
+
Organization: 'organization',
|
|
29
|
+
User: 'user'
|
|
30
|
+
};
|
|
31
|
+
function instanceOfNotificationScope(value) {
|
|
32
|
+
for (const key in exports.NotificationScope) {
|
|
33
|
+
if (Object.prototype.hasOwnProperty.call(exports.NotificationScope, key)) {
|
|
34
|
+
if (exports.NotificationScope[key] === value) {
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
return false;
|
|
40
|
+
}
|
|
41
|
+
function NotificationScopeFromJSON(json) {
|
|
42
|
+
return NotificationScopeFromJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function NotificationScopeFromJSONTyped(json, ignoreDiscriminator) {
|
|
45
|
+
return json;
|
|
46
|
+
}
|
|
47
|
+
function NotificationScopeToJSON(value) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
function NotificationScopeToJSONTyped(value, ignoreDiscriminator) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
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
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
*/
|
|
16
|
+
export declare const NotificationSeverity: {
|
|
17
|
+
readonly Danger: "danger";
|
|
18
|
+
readonly Warning: "warning";
|
|
19
|
+
readonly Info: "info";
|
|
20
|
+
readonly Notification: "notification";
|
|
21
|
+
};
|
|
22
|
+
export type NotificationSeverity = typeof NotificationSeverity[keyof typeof NotificationSeverity];
|
|
23
|
+
export declare function instanceOfNotificationSeverity(value: any): boolean;
|
|
24
|
+
export declare function NotificationSeverityFromJSON(json: any): NotificationSeverity;
|
|
25
|
+
export declare function NotificationSeverityFromJSONTyped(json: any, ignoreDiscriminator: boolean): NotificationSeverity;
|
|
26
|
+
export declare function NotificationSeverityToJSON(value?: NotificationSeverity | null): any;
|
|
27
|
+
export declare function NotificationSeverityToJSONTyped(value: any, ignoreDiscriminator: boolean): NotificationSeverity;
|