@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,55 @@
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 Call interface.
16
+ */
17
+ export function instanceOfCall(value) {
18
+ if (!('id' in value) || value['id'] === undefined)
19
+ return false;
20
+ if (!('created_at' in value) || value['created_at'] === undefined)
21
+ return false;
22
+ return true;
23
+ }
24
+ export function CallFromJSON(json) {
25
+ return CallFromJSONTyped(json, false);
26
+ }
27
+ export function CallFromJSONTyped(json, ignoreDiscriminator) {
28
+ if (json == null) {
29
+ return json;
30
+ }
31
+ return {
32
+ 'id': json['id'],
33
+ 'voice_agent_id': json['voice_agent_id'] == null ? undefined : json['voice_agent_id'],
34
+ 'data': json['data'] == null ? undefined : json['data'],
35
+ 'caller': json['caller'] == null ? undefined : json['caller'],
36
+ 'sandbox': json['sandbox'] == null ? undefined : json['sandbox'],
37
+ 'created_at': (new Date(json['created_at'])),
38
+ };
39
+ }
40
+ export function CallToJSON(json) {
41
+ return CallToJSONTyped(json, false);
42
+ }
43
+ export function CallToJSONTyped(value, ignoreDiscriminator = false) {
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ 'id': value['id'],
49
+ 'voice_agent_id': value['voice_agent_id'],
50
+ 'data': value['data'],
51
+ 'caller': value['caller'],
52
+ 'sandbox': value['sandbox'],
53
+ 'created_at': value['created_at'].toISOString(),
54
+ };
55
+ }
@@ -0,0 +1,52 @@
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 CallCreate
16
+ */
17
+ export interface CallCreate {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof CallCreate
22
+ */
23
+ voice_agent_id?: string | null;
24
+ /**
25
+ *
26
+ * @type {{ [key: string]: any; }}
27
+ * @memberof CallCreate
28
+ */
29
+ data?: {
30
+ [key: string]: any;
31
+ } | null;
32
+ /**
33
+ *
34
+ * @type {string}
35
+ * @memberof CallCreate
36
+ */
37
+ caller?: string | null;
38
+ /**
39
+ *
40
+ * @type {boolean}
41
+ * @memberof CallCreate
42
+ */
43
+ sandbox?: boolean;
44
+ }
45
+ /**
46
+ * Check if a given object implements the CallCreate interface.
47
+ */
48
+ export declare function instanceOfCallCreate(value: object): value is CallCreate;
49
+ export declare function CallCreateFromJSON(json: any): CallCreate;
50
+ export declare function CallCreateFromJSONTyped(json: any, ignoreDiscriminator: boolean): CallCreate;
51
+ export declare function CallCreateToJSON(json: any): CallCreate;
52
+ export declare function CallCreateToJSONTyped(value?: CallCreate | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,47 @@
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 CallCreate interface.
16
+ */
17
+ export function instanceOfCallCreate(value) {
18
+ return true;
19
+ }
20
+ export function CallCreateFromJSON(json) {
21
+ return CallCreateFromJSONTyped(json, false);
22
+ }
23
+ export function CallCreateFromJSONTyped(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
+ 'data': json['data'] == null ? undefined : json['data'],
30
+ 'caller': json['caller'] == null ? undefined : json['caller'],
31
+ 'sandbox': json['sandbox'] == null ? undefined : json['sandbox'],
32
+ };
33
+ }
34
+ export function CallCreateToJSON(json) {
35
+ return CallCreateToJSONTyped(json, false);
36
+ }
37
+ export function CallCreateToJSONTyped(value, ignoreDiscriminator = false) {
38
+ if (value == null) {
39
+ return value;
40
+ }
41
+ return {
42
+ 'voice_agent_id': value['voice_agent_id'],
43
+ 'data': value['data'],
44
+ 'caller': value['caller'],
45
+ 'sandbox': value['sandbox'],
46
+ };
47
+ }
@@ -0,0 +1,52 @@
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 CallUpdate
16
+ */
17
+ export interface CallUpdate {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof CallUpdate
22
+ */
23
+ voice_agent_id?: string | null;
24
+ /**
25
+ *
26
+ * @type {{ [key: string]: any; }}
27
+ * @memberof CallUpdate
28
+ */
29
+ data?: {
30
+ [key: string]: any;
31
+ } | null;
32
+ /**
33
+ *
34
+ * @type {string}
35
+ * @memberof CallUpdate
36
+ */
37
+ caller?: string | null;
38
+ /**
39
+ *
40
+ * @type {boolean}
41
+ * @memberof CallUpdate
42
+ */
43
+ sandbox?: boolean | null;
44
+ }
45
+ /**
46
+ * Check if a given object implements the CallUpdate interface.
47
+ */
48
+ export declare function instanceOfCallUpdate(value: object): value is CallUpdate;
49
+ export declare function CallUpdateFromJSON(json: any): CallUpdate;
50
+ export declare function CallUpdateFromJSONTyped(json: any, ignoreDiscriminator: boolean): CallUpdate;
51
+ export declare function CallUpdateToJSON(json: any): CallUpdate;
52
+ export declare function CallUpdateToJSONTyped(value?: CallUpdate | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,47 @@
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 CallUpdate interface.
16
+ */
17
+ export function instanceOfCallUpdate(value) {
18
+ return true;
19
+ }
20
+ export function CallUpdateFromJSON(json) {
21
+ return CallUpdateFromJSONTyped(json, false);
22
+ }
23
+ export function CallUpdateFromJSONTyped(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
+ 'data': json['data'] == null ? undefined : json['data'],
30
+ 'caller': json['caller'] == null ? undefined : json['caller'],
31
+ 'sandbox': json['sandbox'] == null ? undefined : json['sandbox'],
32
+ };
33
+ }
34
+ export function CallUpdateToJSON(json) {
35
+ return CallUpdateToJSONTyped(json, false);
36
+ }
37
+ export function CallUpdateToJSONTyped(value, ignoreDiscriminator = false) {
38
+ if (value == null) {
39
+ return value;
40
+ }
41
+ return {
42
+ 'voice_agent_id': value['voice_agent_id'],
43
+ 'data': value['data'],
44
+ 'caller': value['caller'],
45
+ 'sandbox': value['sandbox'],
46
+ };
47
+ }
@@ -1,12 +1,16 @@
1
1
  export * from './BillingPortalRequest';
2
2
  export * from './BillingPortalResponse';
3
3
  export * from './Calendar';
4
+ export * from './CalendarCreate';
4
5
  export * from './CalendarEvent';
5
6
  export * from './CalendarEventCreate';
6
- export * from './CalendarEventResponse';
7
+ export * from './CalendarEventListResponse';
7
8
  export * from './CalendarEventUpdate';
8
9
  export * from './CalendarListResponse';
9
- export * from './CalendarWithAgent';
10
+ export * from './CalendarUpdate';
11
+ export * from './Call';
12
+ export * from './CallCreate';
13
+ export * from './CallUpdate';
10
14
  export * from './CancelSubscriptionRequest';
11
15
  export * from './CancelSubscriptionResponse';
12
16
  export * from './ChatAgent';
@@ -3,12 +3,16 @@
3
3
  export * from './BillingPortalRequest';
4
4
  export * from './BillingPortalResponse';
5
5
  export * from './Calendar';
6
+ export * from './CalendarCreate';
6
7
  export * from './CalendarEvent';
7
8
  export * from './CalendarEventCreate';
8
- export * from './CalendarEventResponse';
9
+ export * from './CalendarEventListResponse';
9
10
  export * from './CalendarEventUpdate';
10
11
  export * from './CalendarListResponse';
11
- export * from './CalendarWithAgent';
12
+ export * from './CalendarUpdate';
13
+ export * from './Call';
14
+ export * from './CallCreate';
15
+ export * from './CallUpdate';
12
16
  export * from './CancelSubscriptionRequest';
13
17
  export * from './CancelSubscriptionResponse';
14
18
  export * from './ChatAgent';
@@ -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}
@@ -46,6 +46,7 @@ function CalendarFromJSONTyped(json, ignoreDiscriminator) {
46
46
  'agent_id': json['agent_id'],
47
47
  'agent_name': json['agent_name'],
48
48
  'enabled': json['enabled'],
49
+ 'calendar_url': json['calendar_url'] == null ? undefined : json['calendar_url'],
49
50
  'created_at': (new Date(json['created_at'])),
50
51
  };
51
52
  }
@@ -61,6 +62,7 @@ function CalendarToJSONTyped(value, ignoreDiscriminator = false) {
61
62
  'agent_id': value['agent_id'],
62
63
  'agent_name': value['agent_name'],
63
64
  'enabled': value['enabled'],
65
+ 'calendar_url': value['calendar_url'],
64
66
  'created_at': value['created_at'].toISOString(),
65
67
  };
66
68
  }
@@ -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,50 @@
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.instanceOfCalendarCreate = instanceOfCalendarCreate;
17
+ exports.CalendarCreateFromJSON = CalendarCreateFromJSON;
18
+ exports.CalendarCreateFromJSONTyped = CalendarCreateFromJSONTyped;
19
+ exports.CalendarCreateToJSON = CalendarCreateToJSON;
20
+ exports.CalendarCreateToJSONTyped = CalendarCreateToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the CalendarCreate interface.
23
+ */
24
+ function instanceOfCalendarCreate(value) {
25
+ if (!('voice_agent_id' in value) || value['voice_agent_id'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ function CalendarCreateFromJSON(json) {
30
+ return CalendarCreateFromJSONTyped(json, false);
31
+ }
32
+ function CalendarCreateFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'voice_agent_id': json['voice_agent_id'],
38
+ };
39
+ }
40
+ function CalendarCreateToJSON(json) {
41
+ return CalendarCreateToJSONTyped(json, false);
42
+ }
43
+ function CalendarCreateToJSONTyped(value, ignoreDiscriminator = false) {
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ 'voice_agent_id': value['voice_agent_id'],
49
+ };
50
+ }
@@ -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.
@@ -28,8 +28,6 @@ function instanceOfCalendarEventCreate(value) {
28
28
  return false;
29
29
  if (!('end_time' in value) || value['end_time'] === undefined)
30
30
  return false;
31
- if (!('calendar_id' in value) || value['calendar_id'] === undefined)
32
- return false;
33
31
  return true;
34
32
  }
35
33
  function CalendarEventCreateFromJSON(json) {
@@ -44,7 +42,6 @@ function CalendarEventCreateFromJSONTyped(json, ignoreDiscriminator) {
44
42
  'description': json['description'] == null ? undefined : json['description'],
45
43
  'start_time': (new Date(json['start_time'])),
46
44
  'end_time': (new Date(json['end_time'])),
47
- 'calendar_id': json['calendar_id'],
48
45
  };
49
46
  }
50
47
  function CalendarEventCreateToJSON(json) {
@@ -59,6 +56,5 @@ function CalendarEventCreateToJSONTyped(value, ignoreDiscriminator = false) {
59
56
  'description': value['description'],
60
57
  'start_time': value['start_time'].toISOString(),
61
58
  'end_time': value['end_time'].toISOString(),
62
- 'calendar_id': value['calendar_id'],
63
59
  };
64
60
  }
@@ -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,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.instanceOfCalendarEventListResponse = instanceOfCalendarEventListResponse;
17
+ exports.CalendarEventListResponseFromJSON = CalendarEventListResponseFromJSON;
18
+ exports.CalendarEventListResponseFromJSONTyped = CalendarEventListResponseFromJSONTyped;
19
+ exports.CalendarEventListResponseToJSON = CalendarEventListResponseToJSON;
20
+ exports.CalendarEventListResponseToJSONTyped = CalendarEventListResponseToJSONTyped;
21
+ const CalendarEvent_1 = require("./CalendarEvent");
22
+ /**
23
+ * Check if a given object implements the CalendarEventListResponse interface.
24
+ */
25
+ function instanceOfCalendarEventListResponse(value) {
26
+ if (!('data' in value) || value['data'] === undefined)
27
+ return false;
28
+ return true;
29
+ }
30
+ function CalendarEventListResponseFromJSON(json) {
31
+ return CalendarEventListResponseFromJSONTyped(json, false);
32
+ }
33
+ function CalendarEventListResponseFromJSONTyped(json, ignoreDiscriminator) {
34
+ if (json == null) {
35
+ return json;
36
+ }
37
+ return {
38
+ 'data': (json['data'].map(CalendarEvent_1.CalendarEventFromJSON)),
39
+ };
40
+ }
41
+ function CalendarEventListResponseToJSON(json) {
42
+ return CalendarEventListResponseToJSONTyped(json, false);
43
+ }
44
+ function CalendarEventListResponseToJSONTyped(value, ignoreDiscriminator = false) {
45
+ if (value == null) {
46
+ return value;
47
+ }
48
+ return {
49
+ 'data': (value['data'].map(CalendarEvent_1.CalendarEventToJSON)),
50
+ };
51
+ }
@@ -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.
@@ -36,7 +36,6 @@ function CalendarEventUpdateFromJSONTyped(json, ignoreDiscriminator) {
36
36
  'description': json['description'] == null ? undefined : json['description'],
37
37
  'start_time': json['start_time'] == null ? undefined : (new Date(json['start_time'])),
38
38
  'end_time': json['end_time'] == null ? undefined : (new Date(json['end_time'])),
39
- 'calendar_id': json['calendar_id'] == null ? undefined : json['calendar_id'],
40
39
  };
41
40
  }
42
41
  function CalendarEventUpdateToJSON(json) {
@@ -51,6 +50,5 @@ function CalendarEventUpdateToJSONTyped(value, ignoreDiscriminator = false) {
51
50
  'description': value['description'],
52
51
  'start_time': value['start_time'] == null ? value['start_time'] : value['start_time'].toISOString(),
53
52
  'end_time': value['end_time'] == null ? value['end_time'] : value['end_time'].toISOString(),
54
- 'calendar_id': value['calendar_id'],
55
53
  };
56
54
  }
@@ -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,48 @@
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.instanceOfCalendarUpdate = instanceOfCalendarUpdate;
17
+ exports.CalendarUpdateFromJSON = CalendarUpdateFromJSON;
18
+ exports.CalendarUpdateFromJSONTyped = CalendarUpdateFromJSONTyped;
19
+ exports.CalendarUpdateToJSON = CalendarUpdateToJSON;
20
+ exports.CalendarUpdateToJSONTyped = CalendarUpdateToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the CalendarUpdate interface.
23
+ */
24
+ function instanceOfCalendarUpdate(value) {
25
+ return true;
26
+ }
27
+ function CalendarUpdateFromJSON(json) {
28
+ return CalendarUpdateFromJSONTyped(json, false);
29
+ }
30
+ function CalendarUpdateFromJSONTyped(json, ignoreDiscriminator) {
31
+ if (json == null) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'voice_agent_id': json['voice_agent_id'] == null ? undefined : json['voice_agent_id'],
36
+ };
37
+ }
38
+ function CalendarUpdateToJSON(json) {
39
+ return CalendarUpdateToJSONTyped(json, false);
40
+ }
41
+ function CalendarUpdateToJSONTyped(value, ignoreDiscriminator = false) {
42
+ if (value == null) {
43
+ return value;
44
+ }
45
+ return {
46
+ 'voice_agent_id': value['voice_agent_id'],
47
+ };
48
+ }