@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.
- package/dist/api-client.d.ts +14 -7
- package/dist/api-client.js +26 -6
- package/dist/apis/CalendarApi.d.ts +64 -48
- package/dist/apis/CalendarApi.js +152 -87
- package/dist/esm/api-client.d.ts +14 -7
- package/dist/esm/api-client.js +26 -6
- package/dist/esm/apis/CalendarApi.d.ts +64 -48
- package/dist/esm/apis/CalendarApi.js +153 -88
- package/dist/esm/models/Calendar.d.ts +6 -0
- package/dist/esm/models/Calendar.js +2 -0
- package/dist/esm/models/CalendarCreate.d.ts +32 -0
- package/dist/esm/models/CalendarCreate.js +43 -0
- package/dist/esm/models/CalendarEventCreate.d.ts +0 -6
- package/dist/esm/models/CalendarEventCreate.js +0 -4
- package/dist/esm/models/CalendarEventListResponse.d.ts +33 -0
- package/dist/esm/models/CalendarEventListResponse.js +44 -0
- package/dist/esm/models/CalendarEventUpdate.d.ts +0 -6
- package/dist/esm/models/CalendarEventUpdate.js +0 -2
- package/dist/esm/models/CalendarUpdate.d.ts +32 -0
- package/dist/esm/models/CalendarUpdate.js +41 -0
- package/dist/esm/models/index.d.ts +3 -2
- package/dist/esm/models/index.js +3 -2
- package/dist/models/Calendar.d.ts +6 -0
- package/dist/models/Calendar.js +2 -0
- package/dist/models/CalendarCreate.d.ts +32 -0
- package/dist/models/CalendarCreate.js +50 -0
- package/dist/models/CalendarEventCreate.d.ts +0 -6
- package/dist/models/CalendarEventCreate.js +0 -4
- package/dist/models/CalendarEventListResponse.d.ts +33 -0
- package/dist/models/CalendarEventListResponse.js +51 -0
- package/dist/models/CalendarEventUpdate.d.ts +0 -6
- package/dist/models/CalendarEventUpdate.js +0 -2
- package/dist/models/CalendarUpdate.d.ts +32 -0
- package/dist/models/CalendarUpdate.js +48 -0
- package/dist/models/index.d.ts +3 -2
- package/dist/models/index.js +3 -2
- package/package.json +2 -2
- package/src/api-client.ts +32 -12
- package/src/apis/CalendarApi.ts +227 -107
- package/src/models/Calendar.ts +8 -0
- package/src/models/CalendarCreate.ts +66 -0
- package/src/models/CalendarEventCreate.ts +0 -9
- package/src/models/CalendarEventListResponse.ts +74 -0
- package/src/models/CalendarEventUpdate.ts +0 -8
- package/src/models/CalendarUpdate.ts +65 -0
- package/src/models/index.ts +3 -2
|
@@ -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
|
+
}
|
|
@@ -1,12 +1,13 @@
|
|
|
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 './
|
|
7
|
+
export * from './CalendarEventListResponse';
|
|
7
8
|
export * from './CalendarEventUpdate';
|
|
8
9
|
export * from './CalendarListResponse';
|
|
9
|
-
export * from './
|
|
10
|
+
export * from './CalendarUpdate';
|
|
10
11
|
export * from './CancelSubscriptionRequest';
|
|
11
12
|
export * from './CancelSubscriptionResponse';
|
|
12
13
|
export * from './ChatAgent';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -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 './
|
|
9
|
+
export * from './CalendarEventListResponse';
|
|
9
10
|
export * from './CalendarEventUpdate';
|
|
10
11
|
export * from './CalendarListResponse';
|
|
11
|
-
export * from './
|
|
12
|
+
export * from './CalendarUpdate';
|
|
12
13
|
export * from './CancelSubscriptionRequest';
|
|
13
14
|
export * from './CancelSubscriptionResponse';
|
|
14
15
|
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}
|
package/dist/models/Calendar.js
CHANGED
|
@@ -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
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
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 './
|
|
7
|
+
export * from './CalendarEventListResponse';
|
|
7
8
|
export * from './CalendarEventUpdate';
|
|
8
9
|
export * from './CalendarListResponse';
|
|
9
|
-
export * from './
|
|
10
|
+
export * from './CalendarUpdate';
|
|
10
11
|
export * from './CancelSubscriptionRequest';
|
|
11
12
|
export * from './CancelSubscriptionResponse';
|
|
12
13
|
export * from './ChatAgent';
|
package/dist/models/index.js
CHANGED
|
@@ -19,12 +19,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
19
19
|
__exportStar(require("./BillingPortalRequest"), exports);
|
|
20
20
|
__exportStar(require("./BillingPortalResponse"), exports);
|
|
21
21
|
__exportStar(require("./Calendar"), exports);
|
|
22
|
+
__exportStar(require("./CalendarCreate"), exports);
|
|
22
23
|
__exportStar(require("./CalendarEvent"), exports);
|
|
23
24
|
__exportStar(require("./CalendarEventCreate"), exports);
|
|
24
|
-
__exportStar(require("./
|
|
25
|
+
__exportStar(require("./CalendarEventListResponse"), exports);
|
|
25
26
|
__exportStar(require("./CalendarEventUpdate"), exports);
|
|
26
27
|
__exportStar(require("./CalendarListResponse"), exports);
|
|
27
|
-
__exportStar(require("./
|
|
28
|
+
__exportStar(require("./CalendarUpdate"), exports);
|
|
28
29
|
__exportStar(require("./CancelSubscriptionRequest"), exports);
|
|
29
30
|
__exportStar(require("./CancelSubscriptionResponse"), exports);
|
|
30
31
|
__exportStar(require("./ChatAgent"), exports);
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@l7mp/tivadar-ai-api-sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.5",
|
|
4
4
|
"description": "TypeScript/JavaScript SDK for Tivadar AI Backend API",
|
|
5
5
|
"author": "L7mp Technologies",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
8
|
-
"url": "git+https://github.com/l7mp/tivadar-backend.git",
|
|
8
|
+
"url": "git+https://github.com/l7mp/tivadar-ai-backend.git",
|
|
9
9
|
"directory": "packages/tivadar-api-sdk"
|
|
10
10
|
},
|
|
11
11
|
"keywords": [
|