@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,81 @@
|
|
|
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
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { Notification } from './Notification';
|
|
17
|
+
import {
|
|
18
|
+
NotificationFromJSON,
|
|
19
|
+
NotificationFromJSONTyped,
|
|
20
|
+
NotificationToJSON,
|
|
21
|
+
NotificationToJSONTyped,
|
|
22
|
+
} from './Notification';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface OrganizationsOrganizationIdNotificationsGet200Response
|
|
28
|
+
*/
|
|
29
|
+
export interface OrganizationsOrganizationIdNotificationsGet200Response {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<Notification>}
|
|
33
|
+
* @memberof OrganizationsOrganizationIdNotificationsGet200Response
|
|
34
|
+
*/
|
|
35
|
+
notifications?: Array<Notification>;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof OrganizationsOrganizationIdNotificationsGet200Response
|
|
40
|
+
*/
|
|
41
|
+
unread_count?: number;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the OrganizationsOrganizationIdNotificationsGet200Response interface.
|
|
46
|
+
*/
|
|
47
|
+
export function instanceOfOrganizationsOrganizationIdNotificationsGet200Response(value: object): value is OrganizationsOrganizationIdNotificationsGet200Response {
|
|
48
|
+
return true;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function OrganizationsOrganizationIdNotificationsGet200ResponseFromJSON(json: any): OrganizationsOrganizationIdNotificationsGet200Response {
|
|
52
|
+
return OrganizationsOrganizationIdNotificationsGet200ResponseFromJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function OrganizationsOrganizationIdNotificationsGet200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrganizationsOrganizationIdNotificationsGet200Response {
|
|
56
|
+
if (json == null) {
|
|
57
|
+
return json;
|
|
58
|
+
}
|
|
59
|
+
return {
|
|
60
|
+
|
|
61
|
+
'notifications': json['notifications'] == null ? undefined : ((json['notifications'] as Array<any>).map(NotificationFromJSON)),
|
|
62
|
+
'unread_count': json['unread_count'] == null ? undefined : json['unread_count'],
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function OrganizationsOrganizationIdNotificationsGet200ResponseToJSON(json: any): OrganizationsOrganizationIdNotificationsGet200Response {
|
|
67
|
+
return OrganizationsOrganizationIdNotificationsGet200ResponseToJSONTyped(json, false);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function OrganizationsOrganizationIdNotificationsGet200ResponseToJSONTyped(value?: OrganizationsOrganizationIdNotificationsGet200Response | null, ignoreDiscriminator: boolean = false): any {
|
|
71
|
+
if (value == null) {
|
|
72
|
+
return value;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
return {
|
|
76
|
+
|
|
77
|
+
'notifications': value['notifications'] == null ? undefined : ((value['notifications'] as Array<any>).map(NotificationToJSON)),
|
|
78
|
+
'unread_count': value['unread_count'],
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
|
package/src/models/index.ts
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';
|