@l7mp/tivadar-ai-api-sdk 0.1.9 → 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.
Files changed (66) hide show
  1. package/dist/api-client.d.ts +16 -1
  2. package/dist/api-client.js +9 -0
  3. package/dist/apis/NotificationsApi.d.ts +133 -0
  4. package/dist/apis/NotificationsApi.js +360 -0
  5. package/dist/apis/SIPApi.d.ts +13 -0
  6. package/dist/apis/SIPApi.js +39 -0
  7. package/dist/apis/index.d.ts +1 -0
  8. package/dist/apis/index.js +1 -0
  9. package/dist/esm/api-client.d.ts +16 -1
  10. package/dist/esm/api-client.js +9 -0
  11. package/dist/esm/apis/NotificationsApi.d.ts +133 -0
  12. package/dist/esm/apis/NotificationsApi.js +356 -0
  13. package/dist/esm/apis/SIPApi.d.ts +13 -0
  14. package/dist/esm/apis/SIPApi.js +39 -0
  15. package/dist/esm/apis/index.d.ts +1 -0
  16. package/dist/esm/apis/index.js +1 -0
  17. package/dist/esm/models/Notification.d.ts +120 -0
  18. package/dist/esm/models/Notification.js +91 -0
  19. package/dist/esm/models/NotificationChannel.d.ts +26 -0
  20. package/dist/esm/models/NotificationChannel.js +44 -0
  21. package/dist/esm/models/NotificationCreate.d.ts +78 -0
  22. package/dist/esm/models/NotificationCreate.js +63 -0
  23. package/dist/esm/models/NotificationScope.d.ts +26 -0
  24. package/dist/esm/models/NotificationScope.js +44 -0
  25. package/dist/esm/models/NotificationSeverity.d.ts +27 -0
  26. package/dist/esm/models/NotificationSeverity.js +45 -0
  27. package/dist/esm/models/NotificationType.d.ts +25 -0
  28. package/dist/esm/models/NotificationType.js +43 -0
  29. package/dist/esm/models/NotificationUpdate.d.ts +58 -0
  30. package/dist/esm/models/NotificationUpdate.js +51 -0
  31. package/dist/esm/models/OrganizationsOrganizationIdNotificationsGet200Response.d.ts +39 -0
  32. package/dist/esm/models/OrganizationsOrganizationIdNotificationsGet200Response.js +44 -0
  33. package/dist/esm/models/index.d.ts +8 -0
  34. package/dist/esm/models/index.js +8 -0
  35. package/dist/models/Notification.d.ts +120 -0
  36. package/dist/models/Notification.js +98 -0
  37. package/dist/models/NotificationChannel.d.ts +26 -0
  38. package/dist/models/NotificationChannel.js +52 -0
  39. package/dist/models/NotificationCreate.d.ts +78 -0
  40. package/dist/models/NotificationCreate.js +70 -0
  41. package/dist/models/NotificationScope.d.ts +26 -0
  42. package/dist/models/NotificationScope.js +52 -0
  43. package/dist/models/NotificationSeverity.d.ts +27 -0
  44. package/dist/models/NotificationSeverity.js +53 -0
  45. package/dist/models/NotificationType.d.ts +25 -0
  46. package/dist/models/NotificationType.js +51 -0
  47. package/dist/models/NotificationUpdate.d.ts +58 -0
  48. package/dist/models/NotificationUpdate.js +58 -0
  49. package/dist/models/OrganizationsOrganizationIdNotificationsGet200Response.d.ts +39 -0
  50. package/dist/models/OrganizationsOrganizationIdNotificationsGet200Response.js +51 -0
  51. package/dist/models/index.d.ts +8 -0
  52. package/dist/models/index.js +8 -0
  53. package/package.json +1 -1
  54. package/src/api-client.ts +23 -0
  55. package/src/apis/NotificationsApi.ts +509 -0
  56. package/src/apis/SIPApi.ts +51 -0
  57. package/src/apis/index.ts +1 -0
  58. package/src/models/Notification.ts +217 -0
  59. package/src/models/NotificationChannel.ts +54 -0
  60. package/src/models/NotificationCreate.ts +154 -0
  61. package/src/models/NotificationScope.ts +54 -0
  62. package/src/models/NotificationSeverity.ts +55 -0
  63. package/src/models/NotificationType.ts +53 -0
  64. package/src/models/NotificationUpdate.ts +114 -0
  65. package/src/models/OrganizationsOrganizationIdNotificationsGet200Response.ts +81 -0
  66. package/src/models/index.ts +8 -0
@@ -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;
@@ -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
+ }
@@ -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';
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@l7mp/tivadar-ai-api-sdk",
3
- "version": "0.1.9",
3
+ "version": "0.2.1",
4
4
  "description": "TypeScript/JavaScript SDK for Tivadar AI Backend API",
5
5
  "author": "L7mp Technologies",
6
6
  "repository": {