@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,107 @@
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 Call
20
+ */
21
+ export interface Call {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof Call
26
+ */
27
+ id: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof Call
32
+ */
33
+ voice_agent_id?: string | null;
34
+ /**
35
+ *
36
+ * @type {{ [key: string]: any; }}
37
+ * @memberof Call
38
+ */
39
+ data?: { [key: string]: any; } | null;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof Call
44
+ */
45
+ caller?: string | null;
46
+ /**
47
+ *
48
+ * @type {boolean}
49
+ * @memberof Call
50
+ */
51
+ sandbox?: boolean | null;
52
+ /**
53
+ *
54
+ * @type {Date}
55
+ * @memberof Call
56
+ */
57
+ created_at: Date;
58
+ }
59
+
60
+ /**
61
+ * Check if a given object implements the Call interface.
62
+ */
63
+ export function instanceOfCall(value: object): value is Call {
64
+ if (!('id' in value) || value['id'] === undefined) return false;
65
+ if (!('created_at' in value) || value['created_at'] === undefined) return false;
66
+ return true;
67
+ }
68
+
69
+ export function CallFromJSON(json: any): Call {
70
+ return CallFromJSONTyped(json, false);
71
+ }
72
+
73
+ export function CallFromJSONTyped(json: any, ignoreDiscriminator: boolean): Call {
74
+ if (json == null) {
75
+ return json;
76
+ }
77
+ return {
78
+
79
+ 'id': json['id'],
80
+ 'voice_agent_id': json['voice_agent_id'] == null ? undefined : json['voice_agent_id'],
81
+ 'data': json['data'] == null ? undefined : json['data'],
82
+ 'caller': json['caller'] == null ? undefined : json['caller'],
83
+ 'sandbox': json['sandbox'] == null ? undefined : json['sandbox'],
84
+ 'created_at': (new Date(json['created_at'])),
85
+ };
86
+ }
87
+
88
+ export function CallToJSON(json: any): Call {
89
+ return CallToJSONTyped(json, false);
90
+ }
91
+
92
+ export function CallToJSONTyped(value?: Call | null, ignoreDiscriminator: boolean = false): any {
93
+ if (value == null) {
94
+ return value;
95
+ }
96
+
97
+ return {
98
+
99
+ 'id': value['id'],
100
+ 'voice_agent_id': value['voice_agent_id'],
101
+ 'data': value['data'],
102
+ 'caller': value['caller'],
103
+ 'sandbox': value['sandbox'],
104
+ 'created_at': value['created_at'].toISOString(),
105
+ };
106
+ }
107
+
@@ -0,0 +1,89 @@
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 CallCreate
20
+ */
21
+ export interface CallCreate {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof CallCreate
26
+ */
27
+ voice_agent_id?: string | null;
28
+ /**
29
+ *
30
+ * @type {{ [key: string]: any; }}
31
+ * @memberof CallCreate
32
+ */
33
+ data?: { [key: string]: any; } | null;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof CallCreate
38
+ */
39
+ caller?: string | null;
40
+ /**
41
+ *
42
+ * @type {boolean}
43
+ * @memberof CallCreate
44
+ */
45
+ sandbox?: boolean;
46
+ }
47
+
48
+ /**
49
+ * Check if a given object implements the CallCreate interface.
50
+ */
51
+ export function instanceOfCallCreate(value: object): value is CallCreate {
52
+ return true;
53
+ }
54
+
55
+ export function CallCreateFromJSON(json: any): CallCreate {
56
+ return CallCreateFromJSONTyped(json, false);
57
+ }
58
+
59
+ export function CallCreateFromJSONTyped(json: any, ignoreDiscriminator: boolean): CallCreate {
60
+ if (json == null) {
61
+ return json;
62
+ }
63
+ return {
64
+
65
+ 'voice_agent_id': json['voice_agent_id'] == null ? undefined : json['voice_agent_id'],
66
+ 'data': json['data'] == null ? undefined : json['data'],
67
+ 'caller': json['caller'] == null ? undefined : json['caller'],
68
+ 'sandbox': json['sandbox'] == null ? undefined : json['sandbox'],
69
+ };
70
+ }
71
+
72
+ export function CallCreateToJSON(json: any): CallCreate {
73
+ return CallCreateToJSONTyped(json, false);
74
+ }
75
+
76
+ export function CallCreateToJSONTyped(value?: CallCreate | null, ignoreDiscriminator: boolean = false): any {
77
+ if (value == null) {
78
+ return value;
79
+ }
80
+
81
+ return {
82
+
83
+ 'voice_agent_id': value['voice_agent_id'],
84
+ 'data': value['data'],
85
+ 'caller': value['caller'],
86
+ 'sandbox': value['sandbox'],
87
+ };
88
+ }
89
+
@@ -0,0 +1,89 @@
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 CallUpdate
20
+ */
21
+ export interface CallUpdate {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof CallUpdate
26
+ */
27
+ voice_agent_id?: string | null;
28
+ /**
29
+ *
30
+ * @type {{ [key: string]: any; }}
31
+ * @memberof CallUpdate
32
+ */
33
+ data?: { [key: string]: any; } | null;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof CallUpdate
38
+ */
39
+ caller?: string | null;
40
+ /**
41
+ *
42
+ * @type {boolean}
43
+ * @memberof CallUpdate
44
+ */
45
+ sandbox?: boolean | null;
46
+ }
47
+
48
+ /**
49
+ * Check if a given object implements the CallUpdate interface.
50
+ */
51
+ export function instanceOfCallUpdate(value: object): value is CallUpdate {
52
+ return true;
53
+ }
54
+
55
+ export function CallUpdateFromJSON(json: any): CallUpdate {
56
+ return CallUpdateFromJSONTyped(json, false);
57
+ }
58
+
59
+ export function CallUpdateFromJSONTyped(json: any, ignoreDiscriminator: boolean): CallUpdate {
60
+ if (json == null) {
61
+ return json;
62
+ }
63
+ return {
64
+
65
+ 'voice_agent_id': json['voice_agent_id'] == null ? undefined : json['voice_agent_id'],
66
+ 'data': json['data'] == null ? undefined : json['data'],
67
+ 'caller': json['caller'] == null ? undefined : json['caller'],
68
+ 'sandbox': json['sandbox'] == null ? undefined : json['sandbox'],
69
+ };
70
+ }
71
+
72
+ export function CallUpdateToJSON(json: any): CallUpdate {
73
+ return CallUpdateToJSONTyped(json, false);
74
+ }
75
+
76
+ export function CallUpdateToJSONTyped(value?: CallUpdate | null, ignoreDiscriminator: boolean = false): any {
77
+ if (value == null) {
78
+ return value;
79
+ }
80
+
81
+ return {
82
+
83
+ 'voice_agent_id': value['voice_agent_id'],
84
+ 'data': value['data'],
85
+ 'caller': value['caller'],
86
+ 'sandbox': value['sandbox'],
87
+ };
88
+ }
89
+
@@ -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';