@l7mp/tivadar-ai-api-sdk 0.1.4 → 0.1.6

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 (71) hide show
  1. package/dist/api-client.d.ts +23 -7
  2. package/dist/api-client.js +35 -6
  3. package/dist/apis/CalendarApi.d.ts +64 -48
  4. package/dist/apis/CalendarApi.js +152 -87
  5. package/dist/apis/CallsApi.d.ts +92 -0
  6. package/dist/apis/CallsApi.js +256 -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 +23 -7
  10. package/dist/esm/api-client.js +35 -6
  11. package/dist/esm/apis/CalendarApi.d.ts +64 -48
  12. package/dist/esm/apis/CalendarApi.js +153 -88
  13. package/dist/esm/apis/CallsApi.d.ts +92 -0
  14. package/dist/esm/apis/CallsApi.js +252 -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/Calendar.d.ts +6 -0
  18. package/dist/esm/models/Calendar.js +2 -0
  19. package/dist/esm/models/CalendarCreate.d.ts +32 -0
  20. package/dist/esm/models/CalendarCreate.js +43 -0
  21. package/dist/esm/models/CalendarEventCreate.d.ts +0 -6
  22. package/dist/esm/models/CalendarEventCreate.js +0 -4
  23. package/dist/esm/models/CalendarEventListResponse.d.ts +33 -0
  24. package/dist/esm/models/CalendarEventListResponse.js +44 -0
  25. package/dist/esm/models/CalendarEventUpdate.d.ts +0 -6
  26. package/dist/esm/models/CalendarEventUpdate.js +0 -2
  27. package/dist/esm/models/CalendarUpdate.d.ts +32 -0
  28. package/dist/esm/models/CalendarUpdate.js +41 -0
  29. package/dist/esm/models/Call.d.ts +64 -0
  30. package/dist/esm/models/Call.js +55 -0
  31. package/dist/esm/models/CallCreate.d.ts +52 -0
  32. package/dist/esm/models/CallCreate.js +47 -0
  33. package/dist/esm/models/CallUpdate.d.ts +52 -0
  34. package/dist/esm/models/CallUpdate.js +47 -0
  35. package/dist/esm/models/index.d.ts +6 -2
  36. package/dist/esm/models/index.js +6 -2
  37. package/dist/models/Calendar.d.ts +6 -0
  38. package/dist/models/Calendar.js +2 -0
  39. package/dist/models/CalendarCreate.d.ts +32 -0
  40. package/dist/models/CalendarCreate.js +50 -0
  41. package/dist/models/CalendarEventCreate.d.ts +0 -6
  42. package/dist/models/CalendarEventCreate.js +0 -4
  43. package/dist/models/CalendarEventListResponse.d.ts +33 -0
  44. package/dist/models/CalendarEventListResponse.js +51 -0
  45. package/dist/models/CalendarEventUpdate.d.ts +0 -6
  46. package/dist/models/CalendarEventUpdate.js +0 -2
  47. package/dist/models/CalendarUpdate.d.ts +32 -0
  48. package/dist/models/CalendarUpdate.js +48 -0
  49. package/dist/models/Call.d.ts +64 -0
  50. package/dist/models/Call.js +62 -0
  51. package/dist/models/CallCreate.d.ts +52 -0
  52. package/dist/models/CallCreate.js +54 -0
  53. package/dist/models/CallUpdate.d.ts +52 -0
  54. package/dist/models/CallUpdate.js +54 -0
  55. package/dist/models/index.d.ts +6 -2
  56. package/dist/models/index.js +6 -2
  57. package/package.json +2 -3
  58. package/src/api-client.ts +52 -12
  59. package/src/apis/CalendarApi.ts +227 -107
  60. package/src/apis/CallsApi.ts +352 -0
  61. package/src/apis/index.ts +1 -0
  62. package/src/models/Calendar.ts +8 -0
  63. package/src/models/CalendarCreate.ts +66 -0
  64. package/src/models/CalendarEventCreate.ts +0 -9
  65. package/src/models/CalendarEventListResponse.ts +74 -0
  66. package/src/models/CalendarEventUpdate.ts +0 -8
  67. package/src/models/CalendarUpdate.ts +65 -0
  68. package/src/models/Call.ts +107 -0
  69. package/src/models/CallCreate.ts +89 -0
  70. package/src/models/CallUpdate.ts +89 -0
  71. package/src/models/index.ts +6 -2
@@ -0,0 +1,252 @@
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
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
15
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
16
+ return new (P || (P = Promise))(function (resolve, reject) {
17
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
18
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
19
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
20
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
21
+ });
22
+ };
23
+ import * as runtime from '../runtime';
24
+ import { CallFromJSON, CallCreateToJSON, CallUpdateToJSON, } from '../models/index';
25
+ /**
26
+ *
27
+ */
28
+ export class CallsApi extends runtime.BaseAPI {
29
+ /**
30
+ * Delete a call
31
+ */
32
+ organizationsOrganizationIdCallsCallIdDeleteRaw(requestParameters, initOverrides) {
33
+ return __awaiter(this, void 0, void 0, function* () {
34
+ if (requestParameters['organizationId'] == null) {
35
+ throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling organizationsOrganizationIdCallsCallIdDelete().');
36
+ }
37
+ if (requestParameters['callId'] == null) {
38
+ throw new runtime.RequiredError('callId', 'Required parameter "callId" was null or undefined when calling organizationsOrganizationIdCallsCallIdDelete().');
39
+ }
40
+ const queryParameters = {};
41
+ const headerParameters = {};
42
+ if (this.configuration && this.configuration.accessToken) {
43
+ const token = this.configuration.accessToken;
44
+ const tokenString = yield token("bearerAuth", []);
45
+ if (tokenString) {
46
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
47
+ }
48
+ }
49
+ let urlPath = `/organizations/{organizationId}/calls/{callId}`;
50
+ urlPath = urlPath.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId'])));
51
+ urlPath = urlPath.replace(`{${"callId"}}`, encodeURIComponent(String(requestParameters['callId'])));
52
+ const response = yield this.request({
53
+ path: urlPath,
54
+ method: 'DELETE',
55
+ headers: headerParameters,
56
+ query: queryParameters,
57
+ }, initOverrides);
58
+ return new runtime.VoidApiResponse(response);
59
+ });
60
+ }
61
+ /**
62
+ * Delete a call
63
+ */
64
+ organizationsOrganizationIdCallsCallIdDelete(requestParameters, initOverrides) {
65
+ return __awaiter(this, void 0, void 0, function* () {
66
+ yield this.organizationsOrganizationIdCallsCallIdDeleteRaw(requestParameters, initOverrides);
67
+ });
68
+ }
69
+ /**
70
+ * Get a call by ID
71
+ */
72
+ organizationsOrganizationIdCallsCallIdGetRaw(requestParameters, initOverrides) {
73
+ return __awaiter(this, void 0, void 0, function* () {
74
+ if (requestParameters['organizationId'] == null) {
75
+ throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling organizationsOrganizationIdCallsCallIdGet().');
76
+ }
77
+ if (requestParameters['callId'] == null) {
78
+ throw new runtime.RequiredError('callId', 'Required parameter "callId" was null or undefined when calling organizationsOrganizationIdCallsCallIdGet().');
79
+ }
80
+ const queryParameters = {};
81
+ const headerParameters = {};
82
+ if (this.configuration && this.configuration.accessToken) {
83
+ const token = this.configuration.accessToken;
84
+ const tokenString = yield token("bearerAuth", []);
85
+ if (tokenString) {
86
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
87
+ }
88
+ }
89
+ let urlPath = `/organizations/{organizationId}/calls/{callId}`;
90
+ urlPath = urlPath.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId'])));
91
+ urlPath = urlPath.replace(`{${"callId"}}`, encodeURIComponent(String(requestParameters['callId'])));
92
+ const response = yield this.request({
93
+ path: urlPath,
94
+ method: 'GET',
95
+ headers: headerParameters,
96
+ query: queryParameters,
97
+ }, initOverrides);
98
+ return new runtime.JSONApiResponse(response, (jsonValue) => CallFromJSON(jsonValue));
99
+ });
100
+ }
101
+ /**
102
+ * Get a call by ID
103
+ */
104
+ organizationsOrganizationIdCallsCallIdGet(requestParameters, initOverrides) {
105
+ return __awaiter(this, void 0, void 0, function* () {
106
+ const response = yield this.organizationsOrganizationIdCallsCallIdGetRaw(requestParameters, initOverrides);
107
+ return yield response.value();
108
+ });
109
+ }
110
+ /**
111
+ * Partial update — only provided fields are modified.
112
+ * Update a call
113
+ */
114
+ organizationsOrganizationIdCallsCallIdPutRaw(requestParameters, initOverrides) {
115
+ return __awaiter(this, void 0, void 0, function* () {
116
+ if (requestParameters['organizationId'] == null) {
117
+ throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling organizationsOrganizationIdCallsCallIdPut().');
118
+ }
119
+ if (requestParameters['callId'] == null) {
120
+ throw new runtime.RequiredError('callId', 'Required parameter "callId" was null or undefined when calling organizationsOrganizationIdCallsCallIdPut().');
121
+ }
122
+ if (requestParameters['callUpdate'] == null) {
123
+ throw new runtime.RequiredError('callUpdate', 'Required parameter "callUpdate" was null or undefined when calling organizationsOrganizationIdCallsCallIdPut().');
124
+ }
125
+ const queryParameters = {};
126
+ const headerParameters = {};
127
+ headerParameters['Content-Type'] = 'application/json';
128
+ if (this.configuration && this.configuration.accessToken) {
129
+ const token = this.configuration.accessToken;
130
+ const tokenString = yield token("bearerAuth", []);
131
+ if (tokenString) {
132
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
133
+ }
134
+ }
135
+ let urlPath = `/organizations/{organizationId}/calls/{callId}`;
136
+ urlPath = urlPath.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId'])));
137
+ urlPath = urlPath.replace(`{${"callId"}}`, encodeURIComponent(String(requestParameters['callId'])));
138
+ const response = yield this.request({
139
+ path: urlPath,
140
+ method: 'PUT',
141
+ headers: headerParameters,
142
+ query: queryParameters,
143
+ body: CallUpdateToJSON(requestParameters['callUpdate']),
144
+ }, initOverrides);
145
+ return new runtime.JSONApiResponse(response, (jsonValue) => CallFromJSON(jsonValue));
146
+ });
147
+ }
148
+ /**
149
+ * Partial update — only provided fields are modified.
150
+ * Update a call
151
+ */
152
+ organizationsOrganizationIdCallsCallIdPut(requestParameters, initOverrides) {
153
+ return __awaiter(this, void 0, void 0, function* () {
154
+ const response = yield this.organizationsOrganizationIdCallsCallIdPutRaw(requestParameters, initOverrides);
155
+ return yield response.value();
156
+ });
157
+ }
158
+ /**
159
+ * Returns calls scoped to the organization via their associated voice agent. Calls without a voice_agent_id are not returned.
160
+ * List calls for an organization
161
+ */
162
+ organizationsOrganizationIdCallsGetRaw(requestParameters, initOverrides) {
163
+ return __awaiter(this, void 0, void 0, function* () {
164
+ if (requestParameters['organizationId'] == null) {
165
+ throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling organizationsOrganizationIdCallsGet().');
166
+ }
167
+ const queryParameters = {};
168
+ if (requestParameters['voiceAgentId'] != null) {
169
+ queryParameters['voice_agent_id'] = requestParameters['voiceAgentId'];
170
+ }
171
+ if (requestParameters['sandbox'] != null) {
172
+ queryParameters['sandbox'] = requestParameters['sandbox'];
173
+ }
174
+ const headerParameters = {};
175
+ if (this.configuration && this.configuration.accessToken) {
176
+ const token = this.configuration.accessToken;
177
+ const tokenString = yield token("bearerAuth", []);
178
+ if (tokenString) {
179
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
180
+ }
181
+ }
182
+ let urlPath = `/organizations/{organizationId}/calls`;
183
+ urlPath = urlPath.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId'])));
184
+ const response = yield this.request({
185
+ path: urlPath,
186
+ method: 'GET',
187
+ headers: headerParameters,
188
+ query: queryParameters,
189
+ }, initOverrides);
190
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(CallFromJSON));
191
+ });
192
+ }
193
+ /**
194
+ * Returns calls scoped to the organization via their associated voice agent. Calls without a voice_agent_id are not returned.
195
+ * List calls for an organization
196
+ */
197
+ organizationsOrganizationIdCallsGet(requestParameters, initOverrides) {
198
+ return __awaiter(this, void 0, void 0, function* () {
199
+ const response = yield this.organizationsOrganizationIdCallsGetRaw(requestParameters, initOverrides);
200
+ return yield response.value();
201
+ });
202
+ }
203
+ /**
204
+ * Create a new call record
205
+ */
206
+ organizationsOrganizationIdCallsPostRaw(requestParameters, initOverrides) {
207
+ return __awaiter(this, void 0, void 0, function* () {
208
+ if (requestParameters['organizationId'] == null) {
209
+ throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling organizationsOrganizationIdCallsPost().');
210
+ }
211
+ if (requestParameters['callCreate'] == null) {
212
+ throw new runtime.RequiredError('callCreate', 'Required parameter "callCreate" was null or undefined when calling organizationsOrganizationIdCallsPost().');
213
+ }
214
+ const queryParameters = {};
215
+ const headerParameters = {};
216
+ headerParameters['Content-Type'] = 'application/json';
217
+ if (this.configuration && this.configuration.accessToken) {
218
+ const token = this.configuration.accessToken;
219
+ const tokenString = yield token("bearerAuth", []);
220
+ if (tokenString) {
221
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
222
+ }
223
+ }
224
+ let urlPath = `/organizations/{organizationId}/calls`;
225
+ urlPath = urlPath.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId'])));
226
+ const response = yield this.request({
227
+ path: urlPath,
228
+ method: 'POST',
229
+ headers: headerParameters,
230
+ query: queryParameters,
231
+ body: CallCreateToJSON(requestParameters['callCreate']),
232
+ }, initOverrides);
233
+ return new runtime.JSONApiResponse(response, (jsonValue) => CallFromJSON(jsonValue));
234
+ });
235
+ }
236
+ /**
237
+ * Create a new call record
238
+ */
239
+ organizationsOrganizationIdCallsPost(requestParameters, initOverrides) {
240
+ return __awaiter(this, void 0, void 0, function* () {
241
+ const response = yield this.organizationsOrganizationIdCallsPostRaw(requestParameters, initOverrides);
242
+ return yield response.value();
243
+ });
244
+ }
245
+ }
246
+ /**
247
+ * @export
248
+ */
249
+ export const OrganizationsOrganizationIdCallsGetSandboxEnum = {
250
+ True: 'true',
251
+ False: 'false'
252
+ };
@@ -1,4 +1,5 @@
1
1
  export * from './CalendarApi';
2
+ export * from './CallsApi';
2
3
  export * from './ChatAgentsApi';
3
4
  export * from './EmbeddingProvidersApi';
4
5
  export * from './HistoryApi';
@@ -1,6 +1,7 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  export * from './CalendarApi';
4
+ export * from './CallsApi';
4
5
  export * from './ChatAgentsApi';
5
6
  export * from './EmbeddingProvidersApi';
6
7
  export * from './HistoryApi';
@@ -39,6 +39,12 @@ export interface Calendar {
39
39
  * @memberof Calendar
40
40
  */
41
41
  enabled: boolean;
42
+ /**
43
+ * Public iCal URL for this calendar (null if CALENDAR_PUBLISHER_BASE_URL is not configured)
44
+ * @type {string}
45
+ * @memberof Calendar
46
+ */
47
+ calendar_url?: string | null;
42
48
  /**
43
49
  *
44
50
  * @type {Date}
@@ -39,6 +39,7 @@ export function CalendarFromJSONTyped(json, ignoreDiscriminator) {
39
39
  'agent_id': json['agent_id'],
40
40
  'agent_name': json['agent_name'],
41
41
  'enabled': json['enabled'],
42
+ 'calendar_url': json['calendar_url'] == null ? undefined : json['calendar_url'],
42
43
  'created_at': (new Date(json['created_at'])),
43
44
  };
44
45
  }
@@ -54,6 +55,7 @@ export function CalendarToJSONTyped(value, ignoreDiscriminator = false) {
54
55
  'agent_id': value['agent_id'],
55
56
  'agent_name': value['agent_name'],
56
57
  'enabled': value['enabled'],
58
+ 'calendar_url': value['calendar_url'],
57
59
  'created_at': value['created_at'].toISOString(),
58
60
  };
59
61
  }
@@ -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 CalendarCreate
16
+ */
17
+ export interface CalendarCreate {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof CalendarCreate
22
+ */
23
+ voice_agent_id: string;
24
+ }
25
+ /**
26
+ * Check if a given object implements the CalendarCreate interface.
27
+ */
28
+ export declare function instanceOfCalendarCreate(value: object): value is CalendarCreate;
29
+ export declare function CalendarCreateFromJSON(json: any): CalendarCreate;
30
+ export declare function CalendarCreateFromJSONTyped(json: any, ignoreDiscriminator: boolean): CalendarCreate;
31
+ export declare function CalendarCreateToJSON(json: any): CalendarCreate;
32
+ export declare function CalendarCreateToJSONTyped(value?: CalendarCreate | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,43 @@
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 CalendarCreate interface.
16
+ */
17
+ export function instanceOfCalendarCreate(value) {
18
+ if (!('voice_agent_id' in value) || value['voice_agent_id'] === undefined)
19
+ return false;
20
+ return true;
21
+ }
22
+ export function CalendarCreateFromJSON(json) {
23
+ return CalendarCreateFromJSONTyped(json, false);
24
+ }
25
+ export function CalendarCreateFromJSONTyped(json, ignoreDiscriminator) {
26
+ if (json == null) {
27
+ return json;
28
+ }
29
+ return {
30
+ 'voice_agent_id': json['voice_agent_id'],
31
+ };
32
+ }
33
+ export function CalendarCreateToJSON(json) {
34
+ return CalendarCreateToJSONTyped(json, false);
35
+ }
36
+ export function CalendarCreateToJSONTyped(value, ignoreDiscriminator = false) {
37
+ if (value == null) {
38
+ return value;
39
+ }
40
+ return {
41
+ 'voice_agent_id': value['voice_agent_id'],
42
+ };
43
+ }
@@ -39,12 +39,6 @@ export interface CalendarEventCreate {
39
39
  * @memberof CalendarEventCreate
40
40
  */
41
41
  end_time: Date;
42
- /**
43
- *
44
- * @type {string}
45
- * @memberof CalendarEventCreate
46
- */
47
- calendar_id: string;
48
42
  }
49
43
  /**
50
44
  * Check if a given object implements the CalendarEventCreate interface.
@@ -21,8 +21,6 @@ export function instanceOfCalendarEventCreate(value) {
21
21
  return false;
22
22
  if (!('end_time' in value) || value['end_time'] === undefined)
23
23
  return false;
24
- if (!('calendar_id' in value) || value['calendar_id'] === undefined)
25
- return false;
26
24
  return true;
27
25
  }
28
26
  export function CalendarEventCreateFromJSON(json) {
@@ -37,7 +35,6 @@ export function CalendarEventCreateFromJSONTyped(json, ignoreDiscriminator) {
37
35
  'description': json['description'] == null ? undefined : json['description'],
38
36
  'start_time': (new Date(json['start_time'])),
39
37
  'end_time': (new Date(json['end_time'])),
40
- 'calendar_id': json['calendar_id'],
41
38
  };
42
39
  }
43
40
  export function CalendarEventCreateToJSON(json) {
@@ -52,6 +49,5 @@ export function CalendarEventCreateToJSONTyped(value, ignoreDiscriminator = fals
52
49
  'description': value['description'],
53
50
  'start_time': value['start_time'].toISOString(),
54
51
  'end_time': value['end_time'].toISOString(),
55
- 'calendar_id': value['calendar_id'],
56
52
  };
57
53
  }
@@ -0,0 +1,33 @@
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 { CalendarEvent } from './CalendarEvent';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface CalendarEventListResponse
17
+ */
18
+ export interface CalendarEventListResponse {
19
+ /**
20
+ *
21
+ * @type {Array<CalendarEvent>}
22
+ * @memberof CalendarEventListResponse
23
+ */
24
+ data: Array<CalendarEvent>;
25
+ }
26
+ /**
27
+ * Check if a given object implements the CalendarEventListResponse interface.
28
+ */
29
+ export declare function instanceOfCalendarEventListResponse(value: object): value is CalendarEventListResponse;
30
+ export declare function CalendarEventListResponseFromJSON(json: any): CalendarEventListResponse;
31
+ export declare function CalendarEventListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CalendarEventListResponse;
32
+ export declare function CalendarEventListResponseToJSON(json: any): CalendarEventListResponse;
33
+ export declare function CalendarEventListResponseToJSONTyped(value?: CalendarEventListResponse | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,44 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Tivadar AI Backend API
5
+ * Unified REST API for Tivadar AI Voice Agents platform
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ import { CalendarEventFromJSON, CalendarEventToJSON, } from './CalendarEvent';
15
+ /**
16
+ * Check if a given object implements the CalendarEventListResponse interface.
17
+ */
18
+ export function instanceOfCalendarEventListResponse(value) {
19
+ if (!('data' in value) || value['data'] === undefined)
20
+ return false;
21
+ return true;
22
+ }
23
+ export function CalendarEventListResponseFromJSON(json) {
24
+ return CalendarEventListResponseFromJSONTyped(json, false);
25
+ }
26
+ export function CalendarEventListResponseFromJSONTyped(json, ignoreDiscriminator) {
27
+ if (json == null) {
28
+ return json;
29
+ }
30
+ return {
31
+ 'data': (json['data'].map(CalendarEventFromJSON)),
32
+ };
33
+ }
34
+ export function CalendarEventListResponseToJSON(json) {
35
+ return CalendarEventListResponseToJSONTyped(json, false);
36
+ }
37
+ export function CalendarEventListResponseToJSONTyped(value, ignoreDiscriminator = false) {
38
+ if (value == null) {
39
+ return value;
40
+ }
41
+ return {
42
+ 'data': (value['data'].map(CalendarEventToJSON)),
43
+ };
44
+ }
@@ -39,12 +39,6 @@ export interface CalendarEventUpdate {
39
39
  * @memberof CalendarEventUpdate
40
40
  */
41
41
  end_time?: Date;
42
- /**
43
- *
44
- * @type {string}
45
- * @memberof CalendarEventUpdate
46
- */
47
- calendar_id?: string;
48
42
  }
49
43
  /**
50
44
  * Check if a given object implements the CalendarEventUpdate interface.
@@ -29,7 +29,6 @@ export function CalendarEventUpdateFromJSONTyped(json, ignoreDiscriminator) {
29
29
  'description': json['description'] == null ? undefined : json['description'],
30
30
  'start_time': json['start_time'] == null ? undefined : (new Date(json['start_time'])),
31
31
  'end_time': json['end_time'] == null ? undefined : (new Date(json['end_time'])),
32
- 'calendar_id': json['calendar_id'] == null ? undefined : json['calendar_id'],
33
32
  };
34
33
  }
35
34
  export function CalendarEventUpdateToJSON(json) {
@@ -44,6 +43,5 @@ export function CalendarEventUpdateToJSONTyped(value, ignoreDiscriminator = fals
44
43
  'description': value['description'],
45
44
  'start_time': value['start_time'] == null ? value['start_time'] : value['start_time'].toISOString(),
46
45
  'end_time': value['end_time'] == null ? value['end_time'] : value['end_time'].toISOString(),
47
- 'calendar_id': value['calendar_id'],
48
46
  };
49
47
  }
@@ -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 CalendarUpdate
16
+ */
17
+ export interface CalendarUpdate {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof CalendarUpdate
22
+ */
23
+ voice_agent_id?: string;
24
+ }
25
+ /**
26
+ * Check if a given object implements the CalendarUpdate interface.
27
+ */
28
+ export declare function instanceOfCalendarUpdate(value: object): value is CalendarUpdate;
29
+ export declare function CalendarUpdateFromJSON(json: any): CalendarUpdate;
30
+ export declare function CalendarUpdateFromJSONTyped(json: any, ignoreDiscriminator: boolean): CalendarUpdate;
31
+ export declare function CalendarUpdateToJSON(json: any): CalendarUpdate;
32
+ export declare function CalendarUpdateToJSONTyped(value?: CalendarUpdate | 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 CalendarUpdate interface.
16
+ */
17
+ export function instanceOfCalendarUpdate(value) {
18
+ return true;
19
+ }
20
+ export function CalendarUpdateFromJSON(json) {
21
+ return CalendarUpdateFromJSONTyped(json, false);
22
+ }
23
+ export function CalendarUpdateFromJSONTyped(json, ignoreDiscriminator) {
24
+ if (json == null) {
25
+ return json;
26
+ }
27
+ return {
28
+ 'voice_agent_id': json['voice_agent_id'] == null ? undefined : json['voice_agent_id'],
29
+ };
30
+ }
31
+ export function CalendarUpdateToJSON(json) {
32
+ return CalendarUpdateToJSONTyped(json, false);
33
+ }
34
+ export function CalendarUpdateToJSONTyped(value, ignoreDiscriminator = false) {
35
+ if (value == null) {
36
+ return value;
37
+ }
38
+ return {
39
+ 'voice_agent_id': value['voice_agent_id'],
40
+ };
41
+ }
@@ -0,0 +1,64 @@
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 Call
16
+ */
17
+ export interface Call {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof Call
22
+ */
23
+ id: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof Call
28
+ */
29
+ voice_agent_id?: string | null;
30
+ /**
31
+ *
32
+ * @type {{ [key: string]: any; }}
33
+ * @memberof Call
34
+ */
35
+ data?: {
36
+ [key: string]: any;
37
+ } | null;
38
+ /**
39
+ *
40
+ * @type {string}
41
+ * @memberof Call
42
+ */
43
+ caller?: string | null;
44
+ /**
45
+ *
46
+ * @type {boolean}
47
+ * @memberof Call
48
+ */
49
+ sandbox?: boolean | null;
50
+ /**
51
+ *
52
+ * @type {Date}
53
+ * @memberof Call
54
+ */
55
+ created_at: Date;
56
+ }
57
+ /**
58
+ * Check if a given object implements the Call interface.
59
+ */
60
+ export declare function instanceOfCall(value: object): value is Call;
61
+ export declare function CallFromJSON(json: any): Call;
62
+ export declare function CallFromJSONTyped(json: any, ignoreDiscriminator: boolean): Call;
63
+ export declare function CallToJSON(json: any): Call;
64
+ export declare function CallToJSONTyped(value?: Call | null, ignoreDiscriminator?: boolean): any;