@l7mp/tivadar-ai-api-sdk 0.1.10 → 0.2.2
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/Call.d.ts +8 -0
- package/dist/esm/models/Call.js +2 -0
- package/dist/esm/models/CallCreate.d.ts +8 -0
- package/dist/esm/models/CallCreate.js +2 -0
- package/dist/esm/models/CallUpdate.d.ts +8 -0
- package/dist/esm/models/CallUpdate.js +2 -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/Call.d.ts +8 -0
- package/dist/models/Call.js +2 -0
- package/dist/models/CallCreate.d.ts +8 -0
- package/dist/models/CallCreate.js +2 -0
- package/dist/models/CallUpdate.d.ts +8 -0
- package/dist/models/CallUpdate.js +2 -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/Call.ts +8 -1
- package/src/models/CallCreate.ts +8 -1
- package/src/models/CallUpdate.ts +8 -1
- 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,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,51 @@
|
|
|
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 { NotificationChannelFromJSON, NotificationChannelToJSON, } from './NotificationChannel';
|
|
15
|
+
import { NotificationSeverityFromJSON, NotificationSeverityToJSON, } from './NotificationSeverity';
|
|
16
|
+
/**
|
|
17
|
+
* Check if a given object implements the NotificationUpdate interface.
|
|
18
|
+
*/
|
|
19
|
+
export function instanceOfNotificationUpdate(value) {
|
|
20
|
+
return true;
|
|
21
|
+
}
|
|
22
|
+
export function NotificationUpdateFromJSON(json) {
|
|
23
|
+
return NotificationUpdateFromJSONTyped(json, false);
|
|
24
|
+
}
|
|
25
|
+
export function NotificationUpdateFromJSONTyped(json, ignoreDiscriminator) {
|
|
26
|
+
if (json == null) {
|
|
27
|
+
return json;
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
'severity': json['severity'] == null ? undefined : NotificationSeverityFromJSON(json['severity']),
|
|
31
|
+
'channel': json['channel'] == null ? undefined : NotificationChannelFromJSON(json['channel']),
|
|
32
|
+
'title': json['title'] == null ? undefined : json['title'],
|
|
33
|
+
'content': json['content'] == null ? undefined : json['content'],
|
|
34
|
+
'expires_at': json['expires_at'] == null ? undefined : (new Date(json['expires_at'])),
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
export function NotificationUpdateToJSON(json) {
|
|
38
|
+
return NotificationUpdateToJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
export function NotificationUpdateToJSONTyped(value, ignoreDiscriminator = false) {
|
|
41
|
+
if (value == null) {
|
|
42
|
+
return value;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'severity': NotificationSeverityToJSON(value['severity']),
|
|
46
|
+
'channel': NotificationChannelToJSON(value['channel']),
|
|
47
|
+
'title': value['title'],
|
|
48
|
+
'content': value['content'],
|
|
49
|
+
'expires_at': value['expires_at'] == null ? value['expires_at'] : value['expires_at'].toISOString(),
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -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,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';
|
package/dist/models/Call.d.ts
CHANGED
package/dist/models/Call.js
CHANGED
|
@@ -39,6 +39,7 @@ function CallFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
39
39
|
'id': json['id'],
|
|
40
40
|
'voice_agent_id': json['voice_agent_id'] == null ? undefined : json['voice_agent_id'],
|
|
41
41
|
'data': json['data'] == null ? undefined : json['data'],
|
|
42
|
+
'metadata': json['metadata'] == null ? undefined : json['metadata'],
|
|
42
43
|
'caller': json['caller'] == null ? undefined : json['caller'],
|
|
43
44
|
'sandbox': json['sandbox'] == null ? undefined : json['sandbox'],
|
|
44
45
|
'created_at': (new Date(json['created_at'])),
|
|
@@ -55,6 +56,7 @@ function CallToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
55
56
|
'id': value['id'],
|
|
56
57
|
'voice_agent_id': value['voice_agent_id'],
|
|
57
58
|
'data': value['data'],
|
|
59
|
+
'metadata': value['metadata'],
|
|
58
60
|
'caller': value['caller'],
|
|
59
61
|
'sandbox': value['sandbox'],
|
|
60
62
|
'created_at': value['created_at'].toISOString(),
|
|
@@ -34,6 +34,7 @@ function CallCreateFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
34
34
|
return {
|
|
35
35
|
'voice_agent_id': json['voice_agent_id'] == null ? undefined : json['voice_agent_id'],
|
|
36
36
|
'data': json['data'] == null ? undefined : json['data'],
|
|
37
|
+
'metadata': json['metadata'] == null ? undefined : json['metadata'],
|
|
37
38
|
'caller': json['caller'] == null ? undefined : json['caller'],
|
|
38
39
|
'sandbox': json['sandbox'] == null ? undefined : json['sandbox'],
|
|
39
40
|
};
|
|
@@ -48,6 +49,7 @@ function CallCreateToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
48
49
|
return {
|
|
49
50
|
'voice_agent_id': value['voice_agent_id'],
|
|
50
51
|
'data': value['data'],
|
|
52
|
+
'metadata': value['metadata'],
|
|
51
53
|
'caller': value['caller'],
|
|
52
54
|
'sandbox': value['sandbox'],
|
|
53
55
|
};
|
|
@@ -34,6 +34,7 @@ function CallUpdateFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
34
34
|
return {
|
|
35
35
|
'voice_agent_id': json['voice_agent_id'] == null ? undefined : json['voice_agent_id'],
|
|
36
36
|
'data': json['data'] == null ? undefined : json['data'],
|
|
37
|
+
'metadata': json['metadata'] == null ? undefined : json['metadata'],
|
|
37
38
|
'caller': json['caller'] == null ? undefined : json['caller'],
|
|
38
39
|
'sandbox': json['sandbox'] == null ? undefined : json['sandbox'],
|
|
39
40
|
};
|
|
@@ -48,6 +49,7 @@ function CallUpdateToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
48
49
|
return {
|
|
49
50
|
'voice_agent_id': value['voice_agent_id'],
|
|
50
51
|
'data': value['data'],
|
|
52
|
+
'metadata': value['metadata'],
|
|
51
53
|
'caller': value['caller'],
|
|
52
54
|
'sandbox': value['sandbox'],
|
|
53
55
|
};
|
|
@@ -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
|
+
}
|