@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
@@ -19,6 +19,9 @@ export interface OrganizationsOrganizationIdSipDispatchRulesPostRequest {
19
19
  organizationId: string;
20
20
  dispatchRuleCreate: DispatchRuleCreate;
21
21
  }
22
+ export interface OrganizationsOrganizationIdSipPhoneNumbersAssignPostRequest {
23
+ organizationId: string;
24
+ }
22
25
  export interface OrganizationsOrganizationIdSipTrunksGetRequest {
23
26
  organizationId: string;
24
27
  }
@@ -59,6 +62,16 @@ export declare class SIPApi extends runtime.BaseAPI {
59
62
  * Create a dispatch rule (assign agent to trunk)
60
63
  */
61
64
  organizationsOrganizationIdSipDispatchRulesPost(requestParameters: OrganizationsOrganizationIdSipDispatchRulesPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<OrganizationsOrganizationIdSipDispatchRulesPost200Response>;
65
+ /**
66
+ * Automatically picks the first available (unassigned) phone number from the pool, creates a SIP trunk, and assigns it to the organization.
67
+ * Assign an available phone number to the organization
68
+ */
69
+ organizationsOrganizationIdSipPhoneNumbersAssignPostRaw(requestParameters: OrganizationsOrganizationIdSipPhoneNumbersAssignPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SipTrunkWithAgent>>;
70
+ /**
71
+ * Automatically picks the first available (unassigned) phone number from the pool, creates a SIP trunk, and assigns it to the organization.
72
+ * Assign an available phone number to the organization
73
+ */
74
+ organizationsOrganizationIdSipPhoneNumbersAssignPost(requestParameters: OrganizationsOrganizationIdSipPhoneNumbersAssignPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SipTrunkWithAgent>;
62
75
  /**
63
76
  * List all SIP trunks for an organization
64
77
  */
@@ -108,6 +108,45 @@ export class SIPApi extends runtime.BaseAPI {
108
108
  return yield response.value();
109
109
  });
110
110
  }
111
+ /**
112
+ * Automatically picks the first available (unassigned) phone number from the pool, creates a SIP trunk, and assigns it to the organization.
113
+ * Assign an available phone number to the organization
114
+ */
115
+ organizationsOrganizationIdSipPhoneNumbersAssignPostRaw(requestParameters, initOverrides) {
116
+ return __awaiter(this, void 0, void 0, function* () {
117
+ if (requestParameters['organizationId'] == null) {
118
+ throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling organizationsOrganizationIdSipPhoneNumbersAssignPost().');
119
+ }
120
+ const queryParameters = {};
121
+ const headerParameters = {};
122
+ if (this.configuration && this.configuration.accessToken) {
123
+ const token = this.configuration.accessToken;
124
+ const tokenString = yield token("bearerAuth", []);
125
+ if (tokenString) {
126
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
127
+ }
128
+ }
129
+ let urlPath = `/organizations/{organizationId}/sip/phone-numbers/assign`;
130
+ urlPath = urlPath.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId'])));
131
+ const response = yield this.request({
132
+ path: urlPath,
133
+ method: 'POST',
134
+ headers: headerParameters,
135
+ query: queryParameters,
136
+ }, initOverrides);
137
+ return new runtime.JSONApiResponse(response, (jsonValue) => SipTrunkWithAgentFromJSON(jsonValue));
138
+ });
139
+ }
140
+ /**
141
+ * Automatically picks the first available (unassigned) phone number from the pool, creates a SIP trunk, and assigns it to the organization.
142
+ * Assign an available phone number to the organization
143
+ */
144
+ organizationsOrganizationIdSipPhoneNumbersAssignPost(requestParameters, initOverrides) {
145
+ return __awaiter(this, void 0, void 0, function* () {
146
+ const response = yield this.organizationsOrganizationIdSipPhoneNumbersAssignPostRaw(requestParameters, initOverrides);
147
+ return yield response.value();
148
+ });
149
+ }
111
150
  /**
112
151
  * List all SIP trunks for an organization
113
152
  */
@@ -6,6 +6,7 @@ export * from './HistoryApi';
6
6
  export * from './InvitationsApi';
7
7
  export * from './LLMProvidersApi';
8
8
  export * from './MembersApi';
9
+ export * from './NotificationsApi';
9
10
  export * from './OrganizationsApi';
10
11
  export * from './PlaygroundApi';
11
12
  export * from './RAGApi';
@@ -8,6 +8,7 @@ export * from './HistoryApi';
8
8
  export * from './InvitationsApi';
9
9
  export * from './LLMProvidersApi';
10
10
  export * from './MembersApi';
11
+ export * from './NotificationsApi';
11
12
  export * from './OrganizationsApi';
12
13
  export * from './PlaygroundApi';
13
14
  export * from './RAGApi';
@@ -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,91 @@
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 { NotificationTypeFromJSON, NotificationTypeToJSON, } from './NotificationType';
16
+ import { NotificationScopeFromJSON, NotificationScopeToJSON, } from './NotificationScope';
17
+ import { NotificationSeverityFromJSON, NotificationSeverityToJSON, } from './NotificationSeverity';
18
+ /**
19
+ * Check if a given object implements the Notification interface.
20
+ */
21
+ export function instanceOfNotification(value) {
22
+ if (!('id' in value) || value['id'] === undefined)
23
+ return false;
24
+ if (!('type' in value) || value['type'] === undefined)
25
+ return false;
26
+ if (!('severity' in value) || value['severity'] === undefined)
27
+ return false;
28
+ if (!('channel' in value) || value['channel'] === undefined)
29
+ return false;
30
+ if (!('scope' in value) || value['scope'] === undefined)
31
+ return false;
32
+ if (!('title' in value) || value['title'] === undefined)
33
+ return false;
34
+ if (!('content' in value) || value['content'] === undefined)
35
+ return false;
36
+ if (!('created_at' in value) || value['created_at'] === undefined)
37
+ return false;
38
+ if (!('updated_at' in value) || value['updated_at'] === undefined)
39
+ return false;
40
+ return true;
41
+ }
42
+ export function NotificationFromJSON(json) {
43
+ return NotificationFromJSONTyped(json, false);
44
+ }
45
+ export function NotificationFromJSONTyped(json, ignoreDiscriminator) {
46
+ if (json == null) {
47
+ return json;
48
+ }
49
+ return {
50
+ 'id': json['id'],
51
+ 'type': NotificationTypeFromJSON(json['type']),
52
+ 'severity': NotificationSeverityFromJSON(json['severity']),
53
+ 'channel': NotificationChannelFromJSON(json['channel']),
54
+ 'scope': NotificationScopeFromJSON(json['scope']),
55
+ 'title': json['title'],
56
+ 'content': json['content'],
57
+ 'organization_id': json['organization_id'] == null ? undefined : json['organization_id'],
58
+ 'user_id': json['user_id'] == null ? undefined : json['user_id'],
59
+ 'created_by': json['created_by'] == null ? undefined : json['created_by'],
60
+ 'expires_at': json['expires_at'] == null ? undefined : (new Date(json['expires_at'])),
61
+ 'created_at': (new Date(json['created_at'])),
62
+ 'updated_at': (new Date(json['updated_at'])),
63
+ 'read_at': json['read_at'] == null ? undefined : (new Date(json['read_at'])),
64
+ 'dismissed_at': json['dismissed_at'] == null ? undefined : (new Date(json['dismissed_at'])),
65
+ };
66
+ }
67
+ export function NotificationToJSON(json) {
68
+ return NotificationToJSONTyped(json, false);
69
+ }
70
+ export function NotificationToJSONTyped(value, ignoreDiscriminator = false) {
71
+ if (value == null) {
72
+ return value;
73
+ }
74
+ return {
75
+ 'id': value['id'],
76
+ 'type': NotificationTypeToJSON(value['type']),
77
+ 'severity': NotificationSeverityToJSON(value['severity']),
78
+ 'channel': NotificationChannelToJSON(value['channel']),
79
+ 'scope': NotificationScopeToJSON(value['scope']),
80
+ 'title': value['title'],
81
+ 'content': value['content'],
82
+ 'organization_id': value['organization_id'],
83
+ 'user_id': value['user_id'],
84
+ 'created_by': value['created_by'],
85
+ 'expires_at': value['expires_at'] == null ? value['expires_at'] : value['expires_at'].toISOString(),
86
+ 'created_at': value['created_at'].toISOString(),
87
+ 'updated_at': value['updated_at'].toISOString(),
88
+ 'read_at': value['read_at'] == null ? value['read_at'] : value['read_at'].toISOString(),
89
+ 'dismissed_at': value['dismissed_at'] == null ? value['dismissed_at'] : value['dismissed_at'].toISOString(),
90
+ };
91
+ }
@@ -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,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
+ /**
15
+ *
16
+ * @export
17
+ */
18
+ export const NotificationChannel = {
19
+ Email: 'email',
20
+ Ui: 'ui',
21
+ Both: 'both'
22
+ };
23
+ export function instanceOfNotificationChannel(value) {
24
+ for (const key in NotificationChannel) {
25
+ if (Object.prototype.hasOwnProperty.call(NotificationChannel, key)) {
26
+ if (NotificationChannel[key] === value) {
27
+ return true;
28
+ }
29
+ }
30
+ }
31
+ return false;
32
+ }
33
+ export function NotificationChannelFromJSON(json) {
34
+ return NotificationChannelFromJSONTyped(json, false);
35
+ }
36
+ export function NotificationChannelFromJSONTyped(json, ignoreDiscriminator) {
37
+ return json;
38
+ }
39
+ export function NotificationChannelToJSON(value) {
40
+ return value;
41
+ }
42
+ export function NotificationChannelToJSONTyped(value, ignoreDiscriminator) {
43
+ return value;
44
+ }
@@ -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,63 @@
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 { NotificationTypeFromJSON, NotificationTypeToJSON, } from './NotificationType';
16
+ import { NotificationScopeFromJSON, NotificationScopeToJSON, } from './NotificationScope';
17
+ import { NotificationSeverityFromJSON, NotificationSeverityToJSON, } from './NotificationSeverity';
18
+ /**
19
+ * Check if a given object implements the NotificationCreate interface.
20
+ */
21
+ export function instanceOfNotificationCreate(value) {
22
+ if (!('title' in value) || value['title'] === undefined)
23
+ return false;
24
+ if (!('content' in value) || value['content'] === undefined)
25
+ return false;
26
+ return true;
27
+ }
28
+ export function NotificationCreateFromJSON(json) {
29
+ return NotificationCreateFromJSONTyped(json, false);
30
+ }
31
+ export function NotificationCreateFromJSONTyped(json, ignoreDiscriminator) {
32
+ if (json == null) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'type': json['type'] == null ? undefined : NotificationTypeFromJSON(json['type']),
37
+ 'severity': json['severity'] == null ? undefined : NotificationSeverityFromJSON(json['severity']),
38
+ 'channel': json['channel'] == null ? undefined : NotificationChannelFromJSON(json['channel']),
39
+ 'scope': json['scope'] == null ? undefined : NotificationScopeFromJSON(json['scope']),
40
+ 'title': json['title'],
41
+ 'content': json['content'],
42
+ 'user_id': json['user_id'] == null ? undefined : json['user_id'],
43
+ 'expires_at': json['expires_at'] == null ? undefined : (new Date(json['expires_at'])),
44
+ };
45
+ }
46
+ export function NotificationCreateToJSON(json) {
47
+ return NotificationCreateToJSONTyped(json, false);
48
+ }
49
+ export function NotificationCreateToJSONTyped(value, ignoreDiscriminator = false) {
50
+ if (value == null) {
51
+ return value;
52
+ }
53
+ return {
54
+ 'type': NotificationTypeToJSON(value['type']),
55
+ 'severity': NotificationSeverityToJSON(value['severity']),
56
+ 'channel': NotificationChannelToJSON(value['channel']),
57
+ 'scope': NotificationScopeToJSON(value['scope']),
58
+ 'title': value['title'],
59
+ 'content': value['content'],
60
+ 'user_id': value['user_id'],
61
+ 'expires_at': value['expires_at'] == null ? value['expires_at'] : value['expires_at'].toISOString(),
62
+ };
63
+ }
@@ -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,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
+ /**
15
+ * 'global' targets all users, 'organization' targets org members, 'user' targets a specific user
16
+ * @export
17
+ */
18
+ export const NotificationScope = {
19
+ Global: 'global',
20
+ Organization: 'organization',
21
+ User: 'user'
22
+ };
23
+ export function instanceOfNotificationScope(value) {
24
+ for (const key in NotificationScope) {
25
+ if (Object.prototype.hasOwnProperty.call(NotificationScope, key)) {
26
+ if (NotificationScope[key] === value) {
27
+ return true;
28
+ }
29
+ }
30
+ }
31
+ return false;
32
+ }
33
+ export function NotificationScopeFromJSON(json) {
34
+ return NotificationScopeFromJSONTyped(json, false);
35
+ }
36
+ export function NotificationScopeFromJSONTyped(json, ignoreDiscriminator) {
37
+ return json;
38
+ }
39
+ export function NotificationScopeToJSON(value) {
40
+ return value;
41
+ }
42
+ export function NotificationScopeToJSONTyped(value, ignoreDiscriminator) {
43
+ return value;
44
+ }
@@ -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,45 @@
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
+ *
16
+ * @export
17
+ */
18
+ export const NotificationSeverity = {
19
+ Danger: 'danger',
20
+ Warning: 'warning',
21
+ Info: 'info',
22
+ Notification: 'notification'
23
+ };
24
+ export function instanceOfNotificationSeverity(value) {
25
+ for (const key in NotificationSeverity) {
26
+ if (Object.prototype.hasOwnProperty.call(NotificationSeverity, key)) {
27
+ if (NotificationSeverity[key] === value) {
28
+ return true;
29
+ }
30
+ }
31
+ }
32
+ return false;
33
+ }
34
+ export function NotificationSeverityFromJSON(json) {
35
+ return NotificationSeverityFromJSONTyped(json, false);
36
+ }
37
+ export function NotificationSeverityFromJSONTyped(json, ignoreDiscriminator) {
38
+ return json;
39
+ }
40
+ export function NotificationSeverityToJSON(value) {
41
+ return value;
42
+ }
43
+ export function NotificationSeverityToJSONTyped(value, ignoreDiscriminator) {
44
+ return value;
45
+ }