@l7mp/tivadar-ai-api-sdk 0.2.17 → 0.2.18

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 (36) hide show
  1. package/dist/api-client.d.ts +6 -0
  2. package/dist/api-client.js +6 -0
  3. package/dist/apis/LiveCallsApi.d.ts +45 -0
  4. package/dist/apis/LiveCallsApi.js +115 -0
  5. package/dist/apis/index.d.ts +1 -0
  6. package/dist/apis/index.js +1 -0
  7. package/dist/esm/api-client.d.ts +6 -0
  8. package/dist/esm/api-client.js +6 -0
  9. package/dist/esm/apis/LiveCallsApi.d.ts +45 -0
  10. package/dist/esm/apis/LiveCallsApi.js +111 -0
  11. package/dist/esm/apis/index.d.ts +1 -0
  12. package/dist/esm/apis/index.js +1 -0
  13. package/dist/esm/models/LiveCall.d.ts +57 -0
  14. package/dist/esm/models/LiveCall.js +50 -0
  15. package/dist/esm/models/LiveCallParticipant.d.ts +95 -0
  16. package/dist/esm/models/LiveCallParticipant.js +81 -0
  17. package/dist/esm/models/LiveCallToken.d.ts +44 -0
  18. package/dist/esm/models/LiveCallToken.js +45 -0
  19. package/dist/esm/models/index.d.ts +3 -0
  20. package/dist/esm/models/index.js +3 -0
  21. package/dist/models/LiveCall.d.ts +57 -0
  22. package/dist/models/LiveCall.js +57 -0
  23. package/dist/models/LiveCallParticipant.d.ts +95 -0
  24. package/dist/models/LiveCallParticipant.js +89 -0
  25. package/dist/models/LiveCallToken.d.ts +44 -0
  26. package/dist/models/LiveCallToken.js +52 -0
  27. package/dist/models/index.d.ts +3 -0
  28. package/dist/models/index.js +3 -0
  29. package/package.json +1 -1
  30. package/src/api-client.ts +12 -0
  31. package/src/apis/LiveCallsApi.ts +144 -0
  32. package/src/apis/index.ts +1 -0
  33. package/src/models/LiveCall.ts +105 -0
  34. package/src/models/LiveCallParticipant.ts +143 -0
  35. package/src/models/LiveCallToken.ts +81 -0
  36. package/src/models/index.ts +3 -0
@@ -0,0 +1,95 @@
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 LiveCallParticipant
16
+ */
17
+ export interface LiveCallParticipant {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof LiveCallParticipant
22
+ */
23
+ identity?: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof LiveCallParticipant
28
+ */
29
+ name?: string | null;
30
+ /**
31
+ * LiveKit participant kind.
32
+ * @type {string}
33
+ * @memberof LiveCallParticipant
34
+ */
35
+ kind?: LiveCallParticipantKindEnum;
36
+ /**
37
+ * Interpreted role — sip→caller, agent→agent, standard→operator.
38
+ * @type {string}
39
+ * @memberof LiveCallParticipant
40
+ */
41
+ role?: LiveCallParticipantRoleEnum;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof LiveCallParticipant
46
+ */
47
+ state?: LiveCallParticipantStateEnum;
48
+ /**
49
+ *
50
+ * @type {Date}
51
+ * @memberof LiveCallParticipant
52
+ */
53
+ joined_at?: Date | null;
54
+ }
55
+ /**
56
+ * @export
57
+ */
58
+ export declare const LiveCallParticipantKindEnum: {
59
+ readonly Standard: "standard";
60
+ readonly Sip: "sip";
61
+ readonly Agent: "agent";
62
+ readonly Ingress: "ingress";
63
+ readonly Egress: "egress";
64
+ readonly Unknown: "unknown";
65
+ };
66
+ export type LiveCallParticipantKindEnum = typeof LiveCallParticipantKindEnum[keyof typeof LiveCallParticipantKindEnum];
67
+ /**
68
+ * @export
69
+ */
70
+ export declare const LiveCallParticipantRoleEnum: {
71
+ readonly Caller: "caller";
72
+ readonly Agent: "agent";
73
+ readonly Operator: "operator";
74
+ readonly Other: "other";
75
+ };
76
+ export type LiveCallParticipantRoleEnum = typeof LiveCallParticipantRoleEnum[keyof typeof LiveCallParticipantRoleEnum];
77
+ /**
78
+ * @export
79
+ */
80
+ export declare const LiveCallParticipantStateEnum: {
81
+ readonly Joining: "joining";
82
+ readonly Joined: "joined";
83
+ readonly Active: "active";
84
+ readonly Disconnected: "disconnected";
85
+ readonly Unknown: "unknown";
86
+ };
87
+ export type LiveCallParticipantStateEnum = typeof LiveCallParticipantStateEnum[keyof typeof LiveCallParticipantStateEnum];
88
+ /**
89
+ * Check if a given object implements the LiveCallParticipant interface.
90
+ */
91
+ export declare function instanceOfLiveCallParticipant(value: object): value is LiveCallParticipant;
92
+ export declare function LiveCallParticipantFromJSON(json: any): LiveCallParticipant;
93
+ export declare function LiveCallParticipantFromJSONTyped(json: any, ignoreDiscriminator: boolean): LiveCallParticipant;
94
+ export declare function LiveCallParticipantToJSON(json: any): LiveCallParticipant;
95
+ export declare function LiveCallParticipantToJSONTyped(value?: LiveCallParticipant | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,81 @@
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
+ * @export
16
+ */
17
+ export const LiveCallParticipantKindEnum = {
18
+ Standard: 'standard',
19
+ Sip: 'sip',
20
+ Agent: 'agent',
21
+ Ingress: 'ingress',
22
+ Egress: 'egress',
23
+ Unknown: 'unknown'
24
+ };
25
+ /**
26
+ * @export
27
+ */
28
+ export const LiveCallParticipantRoleEnum = {
29
+ Caller: 'caller',
30
+ Agent: 'agent',
31
+ Operator: 'operator',
32
+ Other: 'other'
33
+ };
34
+ /**
35
+ * @export
36
+ */
37
+ export const LiveCallParticipantStateEnum = {
38
+ Joining: 'joining',
39
+ Joined: 'joined',
40
+ Active: 'active',
41
+ Disconnected: 'disconnected',
42
+ Unknown: 'unknown'
43
+ };
44
+ /**
45
+ * Check if a given object implements the LiveCallParticipant interface.
46
+ */
47
+ export function instanceOfLiveCallParticipant(value) {
48
+ return true;
49
+ }
50
+ export function LiveCallParticipantFromJSON(json) {
51
+ return LiveCallParticipantFromJSONTyped(json, false);
52
+ }
53
+ export function LiveCallParticipantFromJSONTyped(json, ignoreDiscriminator) {
54
+ if (json == null) {
55
+ return json;
56
+ }
57
+ return {
58
+ 'identity': json['identity'] == null ? undefined : json['identity'],
59
+ 'name': json['name'] == null ? undefined : json['name'],
60
+ 'kind': json['kind'] == null ? undefined : json['kind'],
61
+ 'role': json['role'] == null ? undefined : json['role'],
62
+ 'state': json['state'] == null ? undefined : json['state'],
63
+ 'joined_at': json['joined_at'] == null ? undefined : (new Date(json['joined_at'])),
64
+ };
65
+ }
66
+ export function LiveCallParticipantToJSON(json) {
67
+ return LiveCallParticipantToJSONTyped(json, false);
68
+ }
69
+ export function LiveCallParticipantToJSONTyped(value, ignoreDiscriminator = false) {
70
+ if (value == null) {
71
+ return value;
72
+ }
73
+ return {
74
+ 'identity': value['identity'],
75
+ 'name': value['name'],
76
+ 'kind': value['kind'],
77
+ 'role': value['role'],
78
+ 'state': value['state'],
79
+ 'joined_at': value['joined_at'] == null ? value['joined_at'] : value['joined_at'].toISOString(),
80
+ };
81
+ }
@@ -0,0 +1,44 @@
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 LiveCallToken
16
+ */
17
+ export interface LiveCallToken {
18
+ /**
19
+ * LiveKit access token with talk + listen + room-admin grants.
20
+ * @type {string}
21
+ * @memberof LiveCallToken
22
+ */
23
+ token?: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof LiveCallToken
28
+ */
29
+ room_name?: string;
30
+ /**
31
+ * LiveKit server URL to connect to.
32
+ * @type {string}
33
+ * @memberof LiveCallToken
34
+ */
35
+ url?: string;
36
+ }
37
+ /**
38
+ * Check if a given object implements the LiveCallToken interface.
39
+ */
40
+ export declare function instanceOfLiveCallToken(value: object): value is LiveCallToken;
41
+ export declare function LiveCallTokenFromJSON(json: any): LiveCallToken;
42
+ export declare function LiveCallTokenFromJSONTyped(json: any, ignoreDiscriminator: boolean): LiveCallToken;
43
+ export declare function LiveCallTokenToJSON(json: any): LiveCallToken;
44
+ export declare function LiveCallTokenToJSONTyped(value?: LiveCallToken | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,45 @@
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 LiveCallToken interface.
16
+ */
17
+ export function instanceOfLiveCallToken(value) {
18
+ return true;
19
+ }
20
+ export function LiveCallTokenFromJSON(json) {
21
+ return LiveCallTokenFromJSONTyped(json, false);
22
+ }
23
+ export function LiveCallTokenFromJSONTyped(json, ignoreDiscriminator) {
24
+ if (json == null) {
25
+ return json;
26
+ }
27
+ return {
28
+ 'token': json['token'] == null ? undefined : json['token'],
29
+ 'room_name': json['room_name'] == null ? undefined : json['room_name'],
30
+ 'url': json['url'] == null ? undefined : json['url'],
31
+ };
32
+ }
33
+ export function LiveCallTokenToJSON(json) {
34
+ return LiveCallTokenToJSONTyped(json, false);
35
+ }
36
+ export function LiveCallTokenToJSONTyped(value, ignoreDiscriminator = false) {
37
+ if (value == null) {
38
+ return value;
39
+ }
40
+ return {
41
+ 'token': value['token'],
42
+ 'room_name': value['room_name'],
43
+ 'url': value['url'],
44
+ };
45
+ }
@@ -48,6 +48,9 @@ export * from './InvitationAccept';
48
48
  export * from './InvitationCreate';
49
49
  export * from './InvitationResponse';
50
50
  export * from './LifecycleResponse';
51
+ export * from './LiveCall';
52
+ export * from './LiveCallParticipant';
53
+ export * from './LiveCallToken';
51
54
  export * from './LlmAgent';
52
55
  export * from './LlmAgentInput';
53
56
  export * from './LlmAgentUpdateInput';
@@ -50,6 +50,9 @@ export * from './InvitationAccept';
50
50
  export * from './InvitationCreate';
51
51
  export * from './InvitationResponse';
52
52
  export * from './LifecycleResponse';
53
+ export * from './LiveCall';
54
+ export * from './LiveCallParticipant';
55
+ export * from './LiveCallToken';
53
56
  export * from './LlmAgent';
54
57
  export * from './LlmAgentInput';
55
58
  export * from './LlmAgentUpdateInput';
@@ -0,0 +1,57 @@
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 { LiveCallParticipant } from './LiveCallParticipant';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface LiveCall
17
+ */
18
+ export interface LiveCall {
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof LiveCall
23
+ */
24
+ room_name?: string;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof LiveCall
29
+ */
30
+ room_sid?: string;
31
+ /**
32
+ *
33
+ * @type {Date}
34
+ * @memberof LiveCall
35
+ */
36
+ started_at?: Date | null;
37
+ /**
38
+ *
39
+ * @type {number}
40
+ * @memberof LiveCall
41
+ */
42
+ num_participants?: number;
43
+ /**
44
+ *
45
+ * @type {Array<LiveCallParticipant>}
46
+ * @memberof LiveCall
47
+ */
48
+ participants?: Array<LiveCallParticipant>;
49
+ }
50
+ /**
51
+ * Check if a given object implements the LiveCall interface.
52
+ */
53
+ export declare function instanceOfLiveCall(value: object): value is LiveCall;
54
+ export declare function LiveCallFromJSON(json: any): LiveCall;
55
+ export declare function LiveCallFromJSONTyped(json: any, ignoreDiscriminator: boolean): LiveCall;
56
+ export declare function LiveCallToJSON(json: any): LiveCall;
57
+ export declare function LiveCallToJSONTyped(value?: LiveCall | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,57 @@
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.instanceOfLiveCall = instanceOfLiveCall;
17
+ exports.LiveCallFromJSON = LiveCallFromJSON;
18
+ exports.LiveCallFromJSONTyped = LiveCallFromJSONTyped;
19
+ exports.LiveCallToJSON = LiveCallToJSON;
20
+ exports.LiveCallToJSONTyped = LiveCallToJSONTyped;
21
+ const LiveCallParticipant_1 = require("./LiveCallParticipant");
22
+ /**
23
+ * Check if a given object implements the LiveCall interface.
24
+ */
25
+ function instanceOfLiveCall(value) {
26
+ return true;
27
+ }
28
+ function LiveCallFromJSON(json) {
29
+ return LiveCallFromJSONTyped(json, false);
30
+ }
31
+ function LiveCallFromJSONTyped(json, ignoreDiscriminator) {
32
+ if (json == null) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'room_name': json['room_name'] == null ? undefined : json['room_name'],
37
+ 'room_sid': json['room_sid'] == null ? undefined : json['room_sid'],
38
+ 'started_at': json['started_at'] == null ? undefined : (new Date(json['started_at'])),
39
+ 'num_participants': json['num_participants'] == null ? undefined : json['num_participants'],
40
+ 'participants': json['participants'] == null ? undefined : (json['participants'].map(LiveCallParticipant_1.LiveCallParticipantFromJSON)),
41
+ };
42
+ }
43
+ function LiveCallToJSON(json) {
44
+ return LiveCallToJSONTyped(json, false);
45
+ }
46
+ function LiveCallToJSONTyped(value, ignoreDiscriminator = false) {
47
+ if (value == null) {
48
+ return value;
49
+ }
50
+ return {
51
+ 'room_name': value['room_name'],
52
+ 'room_sid': value['room_sid'],
53
+ 'started_at': value['started_at'] == null ? value['started_at'] : value['started_at'].toISOString(),
54
+ 'num_participants': value['num_participants'],
55
+ 'participants': value['participants'] == null ? undefined : (value['participants'].map(LiveCallParticipant_1.LiveCallParticipantToJSON)),
56
+ };
57
+ }
@@ -0,0 +1,95 @@
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 LiveCallParticipant
16
+ */
17
+ export interface LiveCallParticipant {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof LiveCallParticipant
22
+ */
23
+ identity?: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof LiveCallParticipant
28
+ */
29
+ name?: string | null;
30
+ /**
31
+ * LiveKit participant kind.
32
+ * @type {string}
33
+ * @memberof LiveCallParticipant
34
+ */
35
+ kind?: LiveCallParticipantKindEnum;
36
+ /**
37
+ * Interpreted role — sip→caller, agent→agent, standard→operator.
38
+ * @type {string}
39
+ * @memberof LiveCallParticipant
40
+ */
41
+ role?: LiveCallParticipantRoleEnum;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof LiveCallParticipant
46
+ */
47
+ state?: LiveCallParticipantStateEnum;
48
+ /**
49
+ *
50
+ * @type {Date}
51
+ * @memberof LiveCallParticipant
52
+ */
53
+ joined_at?: Date | null;
54
+ }
55
+ /**
56
+ * @export
57
+ */
58
+ export declare const LiveCallParticipantKindEnum: {
59
+ readonly Standard: "standard";
60
+ readonly Sip: "sip";
61
+ readonly Agent: "agent";
62
+ readonly Ingress: "ingress";
63
+ readonly Egress: "egress";
64
+ readonly Unknown: "unknown";
65
+ };
66
+ export type LiveCallParticipantKindEnum = typeof LiveCallParticipantKindEnum[keyof typeof LiveCallParticipantKindEnum];
67
+ /**
68
+ * @export
69
+ */
70
+ export declare const LiveCallParticipantRoleEnum: {
71
+ readonly Caller: "caller";
72
+ readonly Agent: "agent";
73
+ readonly Operator: "operator";
74
+ readonly Other: "other";
75
+ };
76
+ export type LiveCallParticipantRoleEnum = typeof LiveCallParticipantRoleEnum[keyof typeof LiveCallParticipantRoleEnum];
77
+ /**
78
+ * @export
79
+ */
80
+ export declare const LiveCallParticipantStateEnum: {
81
+ readonly Joining: "joining";
82
+ readonly Joined: "joined";
83
+ readonly Active: "active";
84
+ readonly Disconnected: "disconnected";
85
+ readonly Unknown: "unknown";
86
+ };
87
+ export type LiveCallParticipantStateEnum = typeof LiveCallParticipantStateEnum[keyof typeof LiveCallParticipantStateEnum];
88
+ /**
89
+ * Check if a given object implements the LiveCallParticipant interface.
90
+ */
91
+ export declare function instanceOfLiveCallParticipant(value: object): value is LiveCallParticipant;
92
+ export declare function LiveCallParticipantFromJSON(json: any): LiveCallParticipant;
93
+ export declare function LiveCallParticipantFromJSONTyped(json: any, ignoreDiscriminator: boolean): LiveCallParticipant;
94
+ export declare function LiveCallParticipantToJSON(json: any): LiveCallParticipant;
95
+ export declare function LiveCallParticipantToJSONTyped(value?: LiveCallParticipant | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,89 @@
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.LiveCallParticipantStateEnum = exports.LiveCallParticipantRoleEnum = exports.LiveCallParticipantKindEnum = void 0;
17
+ exports.instanceOfLiveCallParticipant = instanceOfLiveCallParticipant;
18
+ exports.LiveCallParticipantFromJSON = LiveCallParticipantFromJSON;
19
+ exports.LiveCallParticipantFromJSONTyped = LiveCallParticipantFromJSONTyped;
20
+ exports.LiveCallParticipantToJSON = LiveCallParticipantToJSON;
21
+ exports.LiveCallParticipantToJSONTyped = LiveCallParticipantToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.LiveCallParticipantKindEnum = {
26
+ Standard: 'standard',
27
+ Sip: 'sip',
28
+ Agent: 'agent',
29
+ Ingress: 'ingress',
30
+ Egress: 'egress',
31
+ Unknown: 'unknown'
32
+ };
33
+ /**
34
+ * @export
35
+ */
36
+ exports.LiveCallParticipantRoleEnum = {
37
+ Caller: 'caller',
38
+ Agent: 'agent',
39
+ Operator: 'operator',
40
+ Other: 'other'
41
+ };
42
+ /**
43
+ * @export
44
+ */
45
+ exports.LiveCallParticipantStateEnum = {
46
+ Joining: 'joining',
47
+ Joined: 'joined',
48
+ Active: 'active',
49
+ Disconnected: 'disconnected',
50
+ Unknown: 'unknown'
51
+ };
52
+ /**
53
+ * Check if a given object implements the LiveCallParticipant interface.
54
+ */
55
+ function instanceOfLiveCallParticipant(value) {
56
+ return true;
57
+ }
58
+ function LiveCallParticipantFromJSON(json) {
59
+ return LiveCallParticipantFromJSONTyped(json, false);
60
+ }
61
+ function LiveCallParticipantFromJSONTyped(json, ignoreDiscriminator) {
62
+ if (json == null) {
63
+ return json;
64
+ }
65
+ return {
66
+ 'identity': json['identity'] == null ? undefined : json['identity'],
67
+ 'name': json['name'] == null ? undefined : json['name'],
68
+ 'kind': json['kind'] == null ? undefined : json['kind'],
69
+ 'role': json['role'] == null ? undefined : json['role'],
70
+ 'state': json['state'] == null ? undefined : json['state'],
71
+ 'joined_at': json['joined_at'] == null ? undefined : (new Date(json['joined_at'])),
72
+ };
73
+ }
74
+ function LiveCallParticipantToJSON(json) {
75
+ return LiveCallParticipantToJSONTyped(json, false);
76
+ }
77
+ function LiveCallParticipantToJSONTyped(value, ignoreDiscriminator = false) {
78
+ if (value == null) {
79
+ return value;
80
+ }
81
+ return {
82
+ 'identity': value['identity'],
83
+ 'name': value['name'],
84
+ 'kind': value['kind'],
85
+ 'role': value['role'],
86
+ 'state': value['state'],
87
+ 'joined_at': value['joined_at'] == null ? value['joined_at'] : value['joined_at'].toISOString(),
88
+ };
89
+ }
@@ -0,0 +1,44 @@
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 LiveCallToken
16
+ */
17
+ export interface LiveCallToken {
18
+ /**
19
+ * LiveKit access token with talk + listen + room-admin grants.
20
+ * @type {string}
21
+ * @memberof LiveCallToken
22
+ */
23
+ token?: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof LiveCallToken
28
+ */
29
+ room_name?: string;
30
+ /**
31
+ * LiveKit server URL to connect to.
32
+ * @type {string}
33
+ * @memberof LiveCallToken
34
+ */
35
+ url?: string;
36
+ }
37
+ /**
38
+ * Check if a given object implements the LiveCallToken interface.
39
+ */
40
+ export declare function instanceOfLiveCallToken(value: object): value is LiveCallToken;
41
+ export declare function LiveCallTokenFromJSON(json: any): LiveCallToken;
42
+ export declare function LiveCallTokenFromJSONTyped(json: any, ignoreDiscriminator: boolean): LiveCallToken;
43
+ export declare function LiveCallTokenToJSON(json: any): LiveCallToken;
44
+ export declare function LiveCallTokenToJSONTyped(value?: LiveCallToken | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,52 @@
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.instanceOfLiveCallToken = instanceOfLiveCallToken;
17
+ exports.LiveCallTokenFromJSON = LiveCallTokenFromJSON;
18
+ exports.LiveCallTokenFromJSONTyped = LiveCallTokenFromJSONTyped;
19
+ exports.LiveCallTokenToJSON = LiveCallTokenToJSON;
20
+ exports.LiveCallTokenToJSONTyped = LiveCallTokenToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the LiveCallToken interface.
23
+ */
24
+ function instanceOfLiveCallToken(value) {
25
+ return true;
26
+ }
27
+ function LiveCallTokenFromJSON(json) {
28
+ return LiveCallTokenFromJSONTyped(json, false);
29
+ }
30
+ function LiveCallTokenFromJSONTyped(json, ignoreDiscriminator) {
31
+ if (json == null) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'token': json['token'] == null ? undefined : json['token'],
36
+ 'room_name': json['room_name'] == null ? undefined : json['room_name'],
37
+ 'url': json['url'] == null ? undefined : json['url'],
38
+ };
39
+ }
40
+ function LiveCallTokenToJSON(json) {
41
+ return LiveCallTokenToJSONTyped(json, false);
42
+ }
43
+ function LiveCallTokenToJSONTyped(value, ignoreDiscriminator = false) {
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ 'token': value['token'],
49
+ 'room_name': value['room_name'],
50
+ 'url': value['url'],
51
+ };
52
+ }