@l7mp/tivadar-ai-api-sdk 0.2.2 → 0.2.4

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 (51) hide show
  1. package/dist/api-client.d.ts +8 -1
  2. package/dist/api-client.js +7 -0
  3. package/dist/apis/ProfileApi.d.ts +41 -0
  4. package/dist/apis/ProfileApi.js +112 -0
  5. package/dist/apis/RAGApi.d.ts +13 -0
  6. package/dist/apis/RAGApi.js +45 -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 +8 -1
  10. package/dist/esm/api-client.js +7 -0
  11. package/dist/esm/apis/ProfileApi.d.ts +41 -0
  12. package/dist/esm/apis/ProfileApi.js +108 -0
  13. package/dist/esm/apis/RAGApi.d.ts +13 -0
  14. package/dist/esm/apis/RAGApi.js +45 -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 +22 -0
  18. package/dist/esm/models/Notification.js +8 -0
  19. package/dist/esm/models/NotificationCreate.d.ts +22 -0
  20. package/dist/esm/models/NotificationCreate.js +6 -0
  21. package/dist/esm/models/NotificationUpdate.d.ts +22 -0
  22. package/dist/esm/models/NotificationUpdate.js +6 -0
  23. package/dist/esm/models/UserPreferences.d.ts +38 -0
  24. package/dist/esm/models/UserPreferences.js +45 -0
  25. package/dist/esm/models/UserPreferencesUpdate.d.ts +32 -0
  26. package/dist/esm/models/UserPreferencesUpdate.js +41 -0
  27. package/dist/esm/models/index.d.ts +2 -0
  28. package/dist/esm/models/index.js +2 -0
  29. package/dist/models/Notification.d.ts +22 -0
  30. package/dist/models/Notification.js +8 -0
  31. package/dist/models/NotificationCreate.d.ts +22 -0
  32. package/dist/models/NotificationCreate.js +6 -0
  33. package/dist/models/NotificationUpdate.d.ts +22 -0
  34. package/dist/models/NotificationUpdate.js +6 -0
  35. package/dist/models/UserPreferences.d.ts +38 -0
  36. package/dist/models/UserPreferences.js +52 -0
  37. package/dist/models/UserPreferencesUpdate.d.ts +32 -0
  38. package/dist/models/UserPreferencesUpdate.js +48 -0
  39. package/dist/models/index.d.ts +2 -0
  40. package/dist/models/index.js +2 -0
  41. package/package.json +1 -1
  42. package/src/api-client.ts +15 -0
  43. package/src/apis/ProfileApi.ts +142 -0
  44. package/src/apis/RAGApi.ts +67 -0
  45. package/src/apis/index.ts +1 -0
  46. package/src/models/Notification.ts +25 -1
  47. package/src/models/NotificationCreate.ts +24 -1
  48. package/src/models/NotificationUpdate.ts +24 -1
  49. package/src/models/UserPreferences.ts +75 -0
  50. package/src/models/UserPreferencesUpdate.ts +66 -0
  51. package/src/models/index.ts +2 -0
@@ -9,6 +9,7 @@ export * from './MembersApi';
9
9
  export * from './NotificationsApi';
10
10
  export * from './OrganizationsApi';
11
11
  export * from './PlaygroundApi';
12
+ export * from './ProfileApi';
12
13
  export * from './RAGApi';
13
14
  export * from './RecordingsApi';
14
15
  export * from './SIPApi';
@@ -11,6 +11,7 @@ export * from './MembersApi';
11
11
  export * from './NotificationsApi';
12
12
  export * from './OrganizationsApi';
13
13
  export * from './PlaygroundApi';
14
+ export * from './ProfileApi';
14
15
  export * from './RAGApi';
15
16
  export * from './RecordingsApi';
16
17
  export * from './SIPApi';
@@ -85,6 +85,28 @@ export interface Notification {
85
85
  * @memberof Notification
86
86
  */
87
87
  expires_at?: Date | null;
88
+ /**
89
+ * Whether an email should also be sent to recipients
90
+ * @type {boolean}
91
+ * @memberof Notification
92
+ */
93
+ send_email: boolean;
94
+ /**
95
+ * Localized notification title/content variants keyed by language tag (for example en, en-US, hu-HU)
96
+ * @type {{ [key: string]: { [key: string]: any; }; }}
97
+ * @memberof Notification
98
+ */
99
+ localized_content?: {
100
+ [key: string]: {
101
+ [key: string]: any;
102
+ };
103
+ } | null;
104
+ /**
105
+ * Fallback language key to use when recipient preferred language translation is missing
106
+ * @type {string}
107
+ * @memberof Notification
108
+ */
109
+ default_language?: string | null;
88
110
  /**
89
111
  *
90
112
  * @type {Date}
@@ -33,6 +33,8 @@ export function instanceOfNotification(value) {
33
33
  return false;
34
34
  if (!('content' in value) || value['content'] === undefined)
35
35
  return false;
36
+ if (!('send_email' in value) || value['send_email'] === undefined)
37
+ return false;
36
38
  if (!('created_at' in value) || value['created_at'] === undefined)
37
39
  return false;
38
40
  if (!('updated_at' in value) || value['updated_at'] === undefined)
@@ -58,6 +60,9 @@ export function NotificationFromJSONTyped(json, ignoreDiscriminator) {
58
60
  'user_id': json['user_id'] == null ? undefined : json['user_id'],
59
61
  'created_by': json['created_by'] == null ? undefined : json['created_by'],
60
62
  'expires_at': json['expires_at'] == null ? undefined : (new Date(json['expires_at'])),
63
+ 'send_email': json['send_email'],
64
+ 'localized_content': json['localized_content'] == null ? undefined : json['localized_content'],
65
+ 'default_language': json['default_language'] == null ? undefined : json['default_language'],
61
66
  'created_at': (new Date(json['created_at'])),
62
67
  'updated_at': (new Date(json['updated_at'])),
63
68
  'read_at': json['read_at'] == null ? undefined : (new Date(json['read_at'])),
@@ -83,6 +88,9 @@ export function NotificationToJSONTyped(value, ignoreDiscriminator = false) {
83
88
  'user_id': value['user_id'],
84
89
  'created_by': value['created_by'],
85
90
  'expires_at': value['expires_at'] == null ? value['expires_at'] : value['expires_at'].toISOString(),
91
+ 'send_email': value['send_email'],
92
+ 'localized_content': value['localized_content'],
93
+ 'default_language': value['default_language'],
86
94
  'created_at': value['created_at'].toISOString(),
87
95
  'updated_at': value['updated_at'].toISOString(),
88
96
  'read_at': value['read_at'] == null ? value['read_at'] : value['read_at'].toISOString(),
@@ -67,6 +67,28 @@ export interface NotificationCreate {
67
67
  * @memberof NotificationCreate
68
68
  */
69
69
  expires_at?: Date | null;
70
+ /**
71
+ *
72
+ * @type {boolean}
73
+ * @memberof NotificationCreate
74
+ */
75
+ send_email?: boolean;
76
+ /**
77
+ *
78
+ * @type {{ [key: string]: { [key: string]: any; }; }}
79
+ * @memberof NotificationCreate
80
+ */
81
+ localized_content?: {
82
+ [key: string]: {
83
+ [key: string]: any;
84
+ };
85
+ } | null;
86
+ /**
87
+ *
88
+ * @type {string}
89
+ * @memberof NotificationCreate
90
+ */
91
+ default_language?: string | null;
70
92
  }
71
93
  /**
72
94
  * Check if a given object implements the NotificationCreate interface.
@@ -41,6 +41,9 @@ export function NotificationCreateFromJSONTyped(json, ignoreDiscriminator) {
41
41
  'content': json['content'],
42
42
  'user_id': json['user_id'] == null ? undefined : json['user_id'],
43
43
  'expires_at': json['expires_at'] == null ? undefined : (new Date(json['expires_at'])),
44
+ 'send_email': json['send_email'] == null ? undefined : json['send_email'],
45
+ 'localized_content': json['localized_content'] == null ? undefined : json['localized_content'],
46
+ 'default_language': json['default_language'] == null ? undefined : json['default_language'],
44
47
  };
45
48
  }
46
49
  export function NotificationCreateToJSON(json) {
@@ -59,5 +62,8 @@ export function NotificationCreateToJSONTyped(value, ignoreDiscriminator = false
59
62
  'content': value['content'],
60
63
  'user_id': value['user_id'],
61
64
  'expires_at': value['expires_at'] == null ? value['expires_at'] : value['expires_at'].toISOString(),
65
+ 'send_email': value['send_email'],
66
+ 'localized_content': value['localized_content'],
67
+ 'default_language': value['default_language'],
62
68
  };
63
69
  }
@@ -47,6 +47,28 @@ export interface NotificationUpdate {
47
47
  * @memberof NotificationUpdate
48
48
  */
49
49
  expires_at?: Date | null;
50
+ /**
51
+ *
52
+ * @type {boolean}
53
+ * @memberof NotificationUpdate
54
+ */
55
+ send_email?: boolean;
56
+ /**
57
+ *
58
+ * @type {{ [key: string]: { [key: string]: any; }; }}
59
+ * @memberof NotificationUpdate
60
+ */
61
+ localized_content?: {
62
+ [key: string]: {
63
+ [key: string]: any;
64
+ };
65
+ } | null;
66
+ /**
67
+ *
68
+ * @type {string}
69
+ * @memberof NotificationUpdate
70
+ */
71
+ default_language?: string | null;
50
72
  }
51
73
  /**
52
74
  * Check if a given object implements the NotificationUpdate interface.
@@ -32,6 +32,9 @@ export function NotificationUpdateFromJSONTyped(json, ignoreDiscriminator) {
32
32
  'title': json['title'] == null ? undefined : json['title'],
33
33
  'content': json['content'] == null ? undefined : json['content'],
34
34
  'expires_at': json['expires_at'] == null ? undefined : (new Date(json['expires_at'])),
35
+ 'send_email': json['send_email'] == null ? undefined : json['send_email'],
36
+ 'localized_content': json['localized_content'] == null ? undefined : json['localized_content'],
37
+ 'default_language': json['default_language'] == null ? undefined : json['default_language'],
35
38
  };
36
39
  }
37
40
  export function NotificationUpdateToJSON(json) {
@@ -47,5 +50,8 @@ export function NotificationUpdateToJSONTyped(value, ignoreDiscriminator = false
47
50
  'title': value['title'],
48
51
  'content': value['content'],
49
52
  'expires_at': value['expires_at'] == null ? value['expires_at'] : value['expires_at'].toISOString(),
53
+ 'send_email': value['send_email'],
54
+ 'localized_content': value['localized_content'],
55
+ 'default_language': value['default_language'],
50
56
  };
51
57
  }
@@ -0,0 +1,38 @@
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
+ * @interface UserPreferences
16
+ */
17
+ export interface UserPreferences {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof UserPreferences
22
+ */
23
+ user_id: string;
24
+ /**
25
+ * User preferred locale in BCP-47 format (for example en, en-US, hu-HU)
26
+ * @type {string}
27
+ * @memberof UserPreferences
28
+ */
29
+ preferred_language?: string | null;
30
+ }
31
+ /**
32
+ * Check if a given object implements the UserPreferences interface.
33
+ */
34
+ export declare function instanceOfUserPreferences(value: object): value is UserPreferences;
35
+ export declare function UserPreferencesFromJSON(json: any): UserPreferences;
36
+ export declare function UserPreferencesFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserPreferences;
37
+ export declare function UserPreferencesToJSON(json: any): UserPreferences;
38
+ export declare function UserPreferencesToJSONTyped(value?: UserPreferences | null, ignoreDiscriminator?: boolean): any;
@@ -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
+ * Check if a given object implements the UserPreferences interface.
16
+ */
17
+ export function instanceOfUserPreferences(value) {
18
+ if (!('user_id' in value) || value['user_id'] === undefined)
19
+ return false;
20
+ return true;
21
+ }
22
+ export function UserPreferencesFromJSON(json) {
23
+ return UserPreferencesFromJSONTyped(json, false);
24
+ }
25
+ export function UserPreferencesFromJSONTyped(json, ignoreDiscriminator) {
26
+ if (json == null) {
27
+ return json;
28
+ }
29
+ return {
30
+ 'user_id': json['user_id'],
31
+ 'preferred_language': json['preferred_language'] == null ? undefined : json['preferred_language'],
32
+ };
33
+ }
34
+ export function UserPreferencesToJSON(json) {
35
+ return UserPreferencesToJSONTyped(json, false);
36
+ }
37
+ export function UserPreferencesToJSONTyped(value, ignoreDiscriminator = false) {
38
+ if (value == null) {
39
+ return value;
40
+ }
41
+ return {
42
+ 'user_id': value['user_id'],
43
+ 'preferred_language': value['preferred_language'],
44
+ };
45
+ }
@@ -0,0 +1,32 @@
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
+ * @interface UserPreferencesUpdate
16
+ */
17
+ export interface UserPreferencesUpdate {
18
+ /**
19
+ * User preferred locale in BCP-47 format, or null to unset
20
+ * @type {string}
21
+ * @memberof UserPreferencesUpdate
22
+ */
23
+ preferred_language?: string | null;
24
+ }
25
+ /**
26
+ * Check if a given object implements the UserPreferencesUpdate interface.
27
+ */
28
+ export declare function instanceOfUserPreferencesUpdate(value: object): value is UserPreferencesUpdate;
29
+ export declare function UserPreferencesUpdateFromJSON(json: any): UserPreferencesUpdate;
30
+ export declare function UserPreferencesUpdateFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserPreferencesUpdate;
31
+ export declare function UserPreferencesUpdateToJSON(json: any): UserPreferencesUpdate;
32
+ export declare function UserPreferencesUpdateToJSONTyped(value?: UserPreferencesUpdate | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,41 @@
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
+ * Check if a given object implements the UserPreferencesUpdate interface.
16
+ */
17
+ export function instanceOfUserPreferencesUpdate(value) {
18
+ return true;
19
+ }
20
+ export function UserPreferencesUpdateFromJSON(json) {
21
+ return UserPreferencesUpdateFromJSONTyped(json, false);
22
+ }
23
+ export function UserPreferencesUpdateFromJSONTyped(json, ignoreDiscriminator) {
24
+ if (json == null) {
25
+ return json;
26
+ }
27
+ return {
28
+ 'preferred_language': json['preferred_language'] == null ? undefined : json['preferred_language'],
29
+ };
30
+ }
31
+ export function UserPreferencesUpdateToJSON(json) {
32
+ return UserPreferencesUpdateToJSONTyped(json, false);
33
+ }
34
+ export function UserPreferencesUpdateToJSONTyped(value, ignoreDiscriminator = false) {
35
+ if (value == null) {
36
+ return value;
37
+ }
38
+ return {
39
+ 'preferred_language': value['preferred_language'],
40
+ };
41
+ }
@@ -83,6 +83,8 @@ export * from './TtsProviderVoice';
83
83
  export * from './UnpauseSubscriptionResponse';
84
84
  export * from './UpdatePlanRequest';
85
85
  export * from './UpdatePlanResponse';
86
+ export * from './UserPreferences';
87
+ export * from './UserPreferencesUpdate';
86
88
  export * from './VoiceAgent';
87
89
  export * from './VoiceAgentCreate';
88
90
  export * from './VoiceAgentMetadata';
@@ -85,6 +85,8 @@ export * from './TtsProviderVoice';
85
85
  export * from './UnpauseSubscriptionResponse';
86
86
  export * from './UpdatePlanRequest';
87
87
  export * from './UpdatePlanResponse';
88
+ export * from './UserPreferences';
89
+ export * from './UserPreferencesUpdate';
88
90
  export * from './VoiceAgent';
89
91
  export * from './VoiceAgentCreate';
90
92
  export * from './VoiceAgentMetadata';
@@ -85,6 +85,28 @@ export interface Notification {
85
85
  * @memberof Notification
86
86
  */
87
87
  expires_at?: Date | null;
88
+ /**
89
+ * Whether an email should also be sent to recipients
90
+ * @type {boolean}
91
+ * @memberof Notification
92
+ */
93
+ send_email: boolean;
94
+ /**
95
+ * Localized notification title/content variants keyed by language tag (for example en, en-US, hu-HU)
96
+ * @type {{ [key: string]: { [key: string]: any; }; }}
97
+ * @memberof Notification
98
+ */
99
+ localized_content?: {
100
+ [key: string]: {
101
+ [key: string]: any;
102
+ };
103
+ } | null;
104
+ /**
105
+ * Fallback language key to use when recipient preferred language translation is missing
106
+ * @type {string}
107
+ * @memberof Notification
108
+ */
109
+ default_language?: string | null;
88
110
  /**
89
111
  *
90
112
  * @type {Date}
@@ -40,6 +40,8 @@ function instanceOfNotification(value) {
40
40
  return false;
41
41
  if (!('content' in value) || value['content'] === undefined)
42
42
  return false;
43
+ if (!('send_email' in value) || value['send_email'] === undefined)
44
+ return false;
43
45
  if (!('created_at' in value) || value['created_at'] === undefined)
44
46
  return false;
45
47
  if (!('updated_at' in value) || value['updated_at'] === undefined)
@@ -65,6 +67,9 @@ function NotificationFromJSONTyped(json, ignoreDiscriminator) {
65
67
  'user_id': json['user_id'] == null ? undefined : json['user_id'],
66
68
  'created_by': json['created_by'] == null ? undefined : json['created_by'],
67
69
  'expires_at': json['expires_at'] == null ? undefined : (new Date(json['expires_at'])),
70
+ 'send_email': json['send_email'],
71
+ 'localized_content': json['localized_content'] == null ? undefined : json['localized_content'],
72
+ 'default_language': json['default_language'] == null ? undefined : json['default_language'],
68
73
  'created_at': (new Date(json['created_at'])),
69
74
  'updated_at': (new Date(json['updated_at'])),
70
75
  'read_at': json['read_at'] == null ? undefined : (new Date(json['read_at'])),
@@ -90,6 +95,9 @@ function NotificationToJSONTyped(value, ignoreDiscriminator = false) {
90
95
  'user_id': value['user_id'],
91
96
  'created_by': value['created_by'],
92
97
  'expires_at': value['expires_at'] == null ? value['expires_at'] : value['expires_at'].toISOString(),
98
+ 'send_email': value['send_email'],
99
+ 'localized_content': value['localized_content'],
100
+ 'default_language': value['default_language'],
93
101
  'created_at': value['created_at'].toISOString(),
94
102
  'updated_at': value['updated_at'].toISOString(),
95
103
  'read_at': value['read_at'] == null ? value['read_at'] : value['read_at'].toISOString(),
@@ -67,6 +67,28 @@ export interface NotificationCreate {
67
67
  * @memberof NotificationCreate
68
68
  */
69
69
  expires_at?: Date | null;
70
+ /**
71
+ *
72
+ * @type {boolean}
73
+ * @memberof NotificationCreate
74
+ */
75
+ send_email?: boolean;
76
+ /**
77
+ *
78
+ * @type {{ [key: string]: { [key: string]: any; }; }}
79
+ * @memberof NotificationCreate
80
+ */
81
+ localized_content?: {
82
+ [key: string]: {
83
+ [key: string]: any;
84
+ };
85
+ } | null;
86
+ /**
87
+ *
88
+ * @type {string}
89
+ * @memberof NotificationCreate
90
+ */
91
+ default_language?: string | null;
70
92
  }
71
93
  /**
72
94
  * Check if a given object implements the NotificationCreate interface.
@@ -48,6 +48,9 @@ function NotificationCreateFromJSONTyped(json, ignoreDiscriminator) {
48
48
  'content': json['content'],
49
49
  'user_id': json['user_id'] == null ? undefined : json['user_id'],
50
50
  'expires_at': json['expires_at'] == null ? undefined : (new Date(json['expires_at'])),
51
+ 'send_email': json['send_email'] == null ? undefined : json['send_email'],
52
+ 'localized_content': json['localized_content'] == null ? undefined : json['localized_content'],
53
+ 'default_language': json['default_language'] == null ? undefined : json['default_language'],
51
54
  };
52
55
  }
53
56
  function NotificationCreateToJSON(json) {
@@ -66,5 +69,8 @@ function NotificationCreateToJSONTyped(value, ignoreDiscriminator = false) {
66
69
  'content': value['content'],
67
70
  'user_id': value['user_id'],
68
71
  'expires_at': value['expires_at'] == null ? value['expires_at'] : value['expires_at'].toISOString(),
72
+ 'send_email': value['send_email'],
73
+ 'localized_content': value['localized_content'],
74
+ 'default_language': value['default_language'],
69
75
  };
70
76
  }
@@ -47,6 +47,28 @@ export interface NotificationUpdate {
47
47
  * @memberof NotificationUpdate
48
48
  */
49
49
  expires_at?: Date | null;
50
+ /**
51
+ *
52
+ * @type {boolean}
53
+ * @memberof NotificationUpdate
54
+ */
55
+ send_email?: boolean;
56
+ /**
57
+ *
58
+ * @type {{ [key: string]: { [key: string]: any; }; }}
59
+ * @memberof NotificationUpdate
60
+ */
61
+ localized_content?: {
62
+ [key: string]: {
63
+ [key: string]: any;
64
+ };
65
+ } | null;
66
+ /**
67
+ *
68
+ * @type {string}
69
+ * @memberof NotificationUpdate
70
+ */
71
+ default_language?: string | null;
50
72
  }
51
73
  /**
52
74
  * Check if a given object implements the NotificationUpdate interface.
@@ -39,6 +39,9 @@ function NotificationUpdateFromJSONTyped(json, ignoreDiscriminator) {
39
39
  'title': json['title'] == null ? undefined : json['title'],
40
40
  'content': json['content'] == null ? undefined : json['content'],
41
41
  'expires_at': json['expires_at'] == null ? undefined : (new Date(json['expires_at'])),
42
+ 'send_email': json['send_email'] == null ? undefined : json['send_email'],
43
+ 'localized_content': json['localized_content'] == null ? undefined : json['localized_content'],
44
+ 'default_language': json['default_language'] == null ? undefined : json['default_language'],
42
45
  };
43
46
  }
44
47
  function NotificationUpdateToJSON(json) {
@@ -54,5 +57,8 @@ function NotificationUpdateToJSONTyped(value, ignoreDiscriminator = false) {
54
57
  'title': value['title'],
55
58
  'content': value['content'],
56
59
  'expires_at': value['expires_at'] == null ? value['expires_at'] : value['expires_at'].toISOString(),
60
+ 'send_email': value['send_email'],
61
+ 'localized_content': value['localized_content'],
62
+ 'default_language': value['default_language'],
57
63
  };
58
64
  }
@@ -0,0 +1,38 @@
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
+ * @interface UserPreferences
16
+ */
17
+ export interface UserPreferences {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof UserPreferences
22
+ */
23
+ user_id: string;
24
+ /**
25
+ * User preferred locale in BCP-47 format (for example en, en-US, hu-HU)
26
+ * @type {string}
27
+ * @memberof UserPreferences
28
+ */
29
+ preferred_language?: string | null;
30
+ }
31
+ /**
32
+ * Check if a given object implements the UserPreferences interface.
33
+ */
34
+ export declare function instanceOfUserPreferences(value: object): value is UserPreferences;
35
+ export declare function UserPreferencesFromJSON(json: any): UserPreferences;
36
+ export declare function UserPreferencesFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserPreferences;
37
+ export declare function UserPreferencesToJSON(json: any): UserPreferences;
38
+ export declare function UserPreferencesToJSONTyped(value?: UserPreferences | null, ignoreDiscriminator?: boolean): any;
@@ -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.instanceOfUserPreferences = instanceOfUserPreferences;
17
+ exports.UserPreferencesFromJSON = UserPreferencesFromJSON;
18
+ exports.UserPreferencesFromJSONTyped = UserPreferencesFromJSONTyped;
19
+ exports.UserPreferencesToJSON = UserPreferencesToJSON;
20
+ exports.UserPreferencesToJSONTyped = UserPreferencesToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the UserPreferences interface.
23
+ */
24
+ function instanceOfUserPreferences(value) {
25
+ if (!('user_id' in value) || value['user_id'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ function UserPreferencesFromJSON(json) {
30
+ return UserPreferencesFromJSONTyped(json, false);
31
+ }
32
+ function UserPreferencesFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'user_id': json['user_id'],
38
+ 'preferred_language': json['preferred_language'] == null ? undefined : json['preferred_language'],
39
+ };
40
+ }
41
+ function UserPreferencesToJSON(json) {
42
+ return UserPreferencesToJSONTyped(json, false);
43
+ }
44
+ function UserPreferencesToJSONTyped(value, ignoreDiscriminator = false) {
45
+ if (value == null) {
46
+ return value;
47
+ }
48
+ return {
49
+ 'user_id': value['user_id'],
50
+ 'preferred_language': value['preferred_language'],
51
+ };
52
+ }
@@ -0,0 +1,32 @@
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
+ * @interface UserPreferencesUpdate
16
+ */
17
+ export interface UserPreferencesUpdate {
18
+ /**
19
+ * User preferred locale in BCP-47 format, or null to unset
20
+ * @type {string}
21
+ * @memberof UserPreferencesUpdate
22
+ */
23
+ preferred_language?: string | null;
24
+ }
25
+ /**
26
+ * Check if a given object implements the UserPreferencesUpdate interface.
27
+ */
28
+ export declare function instanceOfUserPreferencesUpdate(value: object): value is UserPreferencesUpdate;
29
+ export declare function UserPreferencesUpdateFromJSON(json: any): UserPreferencesUpdate;
30
+ export declare function UserPreferencesUpdateFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserPreferencesUpdate;
31
+ export declare function UserPreferencesUpdateToJSON(json: any): UserPreferencesUpdate;
32
+ export declare function UserPreferencesUpdateToJSONTyped(value?: UserPreferencesUpdate | null, ignoreDiscriminator?: boolean): any;