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

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 (46) hide show
  1. package/dist/api-client.d.ts +14 -7
  2. package/dist/api-client.js +26 -6
  3. package/dist/apis/CalendarApi.d.ts +64 -48
  4. package/dist/apis/CalendarApi.js +152 -87
  5. package/dist/esm/api-client.d.ts +14 -7
  6. package/dist/esm/api-client.js +26 -6
  7. package/dist/esm/apis/CalendarApi.d.ts +64 -48
  8. package/dist/esm/apis/CalendarApi.js +153 -88
  9. package/dist/esm/models/Calendar.d.ts +6 -0
  10. package/dist/esm/models/Calendar.js +2 -0
  11. package/dist/esm/models/CalendarCreate.d.ts +32 -0
  12. package/dist/esm/models/CalendarCreate.js +43 -0
  13. package/dist/esm/models/CalendarEventCreate.d.ts +0 -6
  14. package/dist/esm/models/CalendarEventCreate.js +0 -4
  15. package/dist/esm/models/CalendarEventListResponse.d.ts +33 -0
  16. package/dist/esm/models/CalendarEventListResponse.js +44 -0
  17. package/dist/esm/models/CalendarEventUpdate.d.ts +0 -6
  18. package/dist/esm/models/CalendarEventUpdate.js +0 -2
  19. package/dist/esm/models/CalendarUpdate.d.ts +32 -0
  20. package/dist/esm/models/CalendarUpdate.js +41 -0
  21. package/dist/esm/models/index.d.ts +3 -2
  22. package/dist/esm/models/index.js +3 -2
  23. package/dist/models/Calendar.d.ts +6 -0
  24. package/dist/models/Calendar.js +2 -0
  25. package/dist/models/CalendarCreate.d.ts +32 -0
  26. package/dist/models/CalendarCreate.js +50 -0
  27. package/dist/models/CalendarEventCreate.d.ts +0 -6
  28. package/dist/models/CalendarEventCreate.js +0 -4
  29. package/dist/models/CalendarEventListResponse.d.ts +33 -0
  30. package/dist/models/CalendarEventListResponse.js +51 -0
  31. package/dist/models/CalendarEventUpdate.d.ts +0 -6
  32. package/dist/models/CalendarEventUpdate.js +0 -2
  33. package/dist/models/CalendarUpdate.d.ts +32 -0
  34. package/dist/models/CalendarUpdate.js +48 -0
  35. package/dist/models/index.d.ts +3 -2
  36. package/dist/models/index.js +3 -2
  37. package/package.json +2 -2
  38. package/src/api-client.ts +32 -12
  39. package/src/apis/CalendarApi.ts +227 -107
  40. package/src/models/Calendar.ts +8 -0
  41. package/src/models/CalendarCreate.ts +66 -0
  42. package/src/models/CalendarEventCreate.ts +0 -9
  43. package/src/models/CalendarEventListResponse.ts +74 -0
  44. package/src/models/CalendarEventUpdate.ts +0 -8
  45. package/src/models/CalendarUpdate.ts +65 -0
  46. package/src/models/index.ts +3 -2
@@ -43,6 +43,12 @@ export interface Calendar {
43
43
  * @memberof Calendar
44
44
  */
45
45
  enabled: boolean;
46
+ /**
47
+ * Public iCal URL for this calendar (null if CALENDAR_PUBLISHER_BASE_URL is not configured)
48
+ * @type {string}
49
+ * @memberof Calendar
50
+ */
51
+ calendar_url?: string | null;
46
52
  /**
47
53
  *
48
54
  * @type {Date}
@@ -77,6 +83,7 @@ export function CalendarFromJSONTyped(json: any, ignoreDiscriminator: boolean):
77
83
  'agent_id': json['agent_id'],
78
84
  'agent_name': json['agent_name'],
79
85
  'enabled': json['enabled'],
86
+ 'calendar_url': json['calendar_url'] == null ? undefined : json['calendar_url'],
80
87
  'created_at': (new Date(json['created_at'])),
81
88
  };
82
89
  }
@@ -96,6 +103,7 @@ export function CalendarToJSONTyped(value?: Calendar | null, ignoreDiscriminator
96
103
  'agent_id': value['agent_id'],
97
104
  'agent_name': value['agent_name'],
98
105
  'enabled': value['enabled'],
106
+ 'calendar_url': value['calendar_url'],
99
107
  'created_at': value['created_at'].toISOString(),
100
108
  };
101
109
  }
@@ -0,0 +1,66 @@
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
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface CalendarCreate
20
+ */
21
+ export interface CalendarCreate {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof CalendarCreate
26
+ */
27
+ voice_agent_id: string;
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the CalendarCreate interface.
32
+ */
33
+ export function instanceOfCalendarCreate(value: object): value is CalendarCreate {
34
+ if (!('voice_agent_id' in value) || value['voice_agent_id'] === undefined) return false;
35
+ return true;
36
+ }
37
+
38
+ export function CalendarCreateFromJSON(json: any): CalendarCreate {
39
+ return CalendarCreateFromJSONTyped(json, false);
40
+ }
41
+
42
+ export function CalendarCreateFromJSONTyped(json: any, ignoreDiscriminator: boolean): CalendarCreate {
43
+ if (json == null) {
44
+ return json;
45
+ }
46
+ return {
47
+
48
+ 'voice_agent_id': json['voice_agent_id'],
49
+ };
50
+ }
51
+
52
+ export function CalendarCreateToJSON(json: any): CalendarCreate {
53
+ return CalendarCreateToJSONTyped(json, false);
54
+ }
55
+
56
+ export function CalendarCreateToJSONTyped(value?: CalendarCreate | null, ignoreDiscriminator: boolean = false): any {
57
+ if (value == null) {
58
+ return value;
59
+ }
60
+
61
+ return {
62
+
63
+ 'voice_agent_id': value['voice_agent_id'],
64
+ };
65
+ }
66
+
@@ -43,12 +43,6 @@ export interface CalendarEventCreate {
43
43
  * @memberof CalendarEventCreate
44
44
  */
45
45
  end_time: Date;
46
- /**
47
- *
48
- * @type {string}
49
- * @memberof CalendarEventCreate
50
- */
51
- calendar_id: string;
52
46
  }
53
47
 
54
48
  /**
@@ -58,7 +52,6 @@ export function instanceOfCalendarEventCreate(value: object): value is CalendarE
58
52
  if (!('name' in value) || value['name'] === undefined) return false;
59
53
  if (!('start_time' in value) || value['start_time'] === undefined) return false;
60
54
  if (!('end_time' in value) || value['end_time'] === undefined) return false;
61
- if (!('calendar_id' in value) || value['calendar_id'] === undefined) return false;
62
55
  return true;
63
56
  }
64
57
 
@@ -76,7 +69,6 @@ export function CalendarEventCreateFromJSONTyped(json: any, ignoreDiscriminator:
76
69
  'description': json['description'] == null ? undefined : json['description'],
77
70
  'start_time': (new Date(json['start_time'])),
78
71
  'end_time': (new Date(json['end_time'])),
79
- 'calendar_id': json['calendar_id'],
80
72
  };
81
73
  }
82
74
 
@@ -95,7 +87,6 @@ export function CalendarEventCreateToJSONTyped(value?: CalendarEventCreate | nul
95
87
  'description': value['description'],
96
88
  'start_time': value['start_time'].toISOString(),
97
89
  'end_time': value['end_time'].toISOString(),
98
- 'calendar_id': value['calendar_id'],
99
90
  };
100
91
  }
101
92
 
@@ -0,0 +1,74 @@
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
+ import { mapValues } from '../runtime';
16
+ import type { CalendarEvent } from './CalendarEvent';
17
+ import {
18
+ CalendarEventFromJSON,
19
+ CalendarEventFromJSONTyped,
20
+ CalendarEventToJSON,
21
+ CalendarEventToJSONTyped,
22
+ } from './CalendarEvent';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface CalendarEventListResponse
28
+ */
29
+ export interface CalendarEventListResponse {
30
+ /**
31
+ *
32
+ * @type {Array<CalendarEvent>}
33
+ * @memberof CalendarEventListResponse
34
+ */
35
+ data: Array<CalendarEvent>;
36
+ }
37
+
38
+ /**
39
+ * Check if a given object implements the CalendarEventListResponse interface.
40
+ */
41
+ export function instanceOfCalendarEventListResponse(value: object): value is CalendarEventListResponse {
42
+ if (!('data' in value) || value['data'] === undefined) return false;
43
+ return true;
44
+ }
45
+
46
+ export function CalendarEventListResponseFromJSON(json: any): CalendarEventListResponse {
47
+ return CalendarEventListResponseFromJSONTyped(json, false);
48
+ }
49
+
50
+ export function CalendarEventListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CalendarEventListResponse {
51
+ if (json == null) {
52
+ return json;
53
+ }
54
+ return {
55
+
56
+ 'data': ((json['data'] as Array<any>).map(CalendarEventFromJSON)),
57
+ };
58
+ }
59
+
60
+ export function CalendarEventListResponseToJSON(json: any): CalendarEventListResponse {
61
+ return CalendarEventListResponseToJSONTyped(json, false);
62
+ }
63
+
64
+ export function CalendarEventListResponseToJSONTyped(value?: CalendarEventListResponse | null, ignoreDiscriminator: boolean = false): any {
65
+ if (value == null) {
66
+ return value;
67
+ }
68
+
69
+ return {
70
+
71
+ 'data': ((value['data'] as Array<any>).map(CalendarEventToJSON)),
72
+ };
73
+ }
74
+
@@ -43,12 +43,6 @@ export interface CalendarEventUpdate {
43
43
  * @memberof CalendarEventUpdate
44
44
  */
45
45
  end_time?: Date;
46
- /**
47
- *
48
- * @type {string}
49
- * @memberof CalendarEventUpdate
50
- */
51
- calendar_id?: string;
52
46
  }
53
47
 
54
48
  /**
@@ -72,7 +66,6 @@ export function CalendarEventUpdateFromJSONTyped(json: any, ignoreDiscriminator:
72
66
  'description': json['description'] == null ? undefined : json['description'],
73
67
  'start_time': json['start_time'] == null ? undefined : (new Date(json['start_time'])),
74
68
  'end_time': json['end_time'] == null ? undefined : (new Date(json['end_time'])),
75
- 'calendar_id': json['calendar_id'] == null ? undefined : json['calendar_id'],
76
69
  };
77
70
  }
78
71
 
@@ -91,7 +84,6 @@ export function CalendarEventUpdateToJSONTyped(value?: CalendarEventUpdate | nul
91
84
  'description': value['description'],
92
85
  'start_time': value['start_time'] == null ? value['start_time'] : value['start_time'].toISOString(),
93
86
  'end_time': value['end_time'] == null ? value['end_time'] : value['end_time'].toISOString(),
94
- 'calendar_id': value['calendar_id'],
95
87
  };
96
88
  }
97
89
 
@@ -0,0 +1,65 @@
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
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface CalendarUpdate
20
+ */
21
+ export interface CalendarUpdate {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof CalendarUpdate
26
+ */
27
+ voice_agent_id?: string;
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the CalendarUpdate interface.
32
+ */
33
+ export function instanceOfCalendarUpdate(value: object): value is CalendarUpdate {
34
+ return true;
35
+ }
36
+
37
+ export function CalendarUpdateFromJSON(json: any): CalendarUpdate {
38
+ return CalendarUpdateFromJSONTyped(json, false);
39
+ }
40
+
41
+ export function CalendarUpdateFromJSONTyped(json: any, ignoreDiscriminator: boolean): CalendarUpdate {
42
+ if (json == null) {
43
+ return json;
44
+ }
45
+ return {
46
+
47
+ 'voice_agent_id': json['voice_agent_id'] == null ? undefined : json['voice_agent_id'],
48
+ };
49
+ }
50
+
51
+ export function CalendarUpdateToJSON(json: any): CalendarUpdate {
52
+ return CalendarUpdateToJSONTyped(json, false);
53
+ }
54
+
55
+ export function CalendarUpdateToJSONTyped(value?: CalendarUpdate | null, ignoreDiscriminator: boolean = false): any {
56
+ if (value == null) {
57
+ return value;
58
+ }
59
+
60
+ return {
61
+
62
+ 'voice_agent_id': value['voice_agent_id'],
63
+ };
64
+ }
65
+
@@ -3,12 +3,13 @@
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';
12
13
  export * from './CancelSubscriptionRequest';
13
14
  export * from './CancelSubscriptionResponse';
14
15
  export * from './ChatAgent';