@l7mp/tivadar-ai-api-sdk 0.2.11 → 0.2.12

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 (66) hide show
  1. package/dist/api-client.d.ts +18 -1
  2. package/dist/api-client.js +11 -0
  3. package/dist/apis/AdminSubscriptionsApi.d.ts +3 -3
  4. package/dist/apis/AdminSubscriptionsApi.js +3 -2
  5. package/dist/apis/CallFlagsApi.d.ts +133 -0
  6. package/dist/apis/CallFlagsApi.js +376 -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 +18 -1
  10. package/dist/esm/api-client.js +11 -0
  11. package/dist/esm/apis/AdminSubscriptionsApi.d.ts +3 -3
  12. package/dist/esm/apis/AdminSubscriptionsApi.js +4 -3
  13. package/dist/esm/apis/CallFlagsApi.d.ts +133 -0
  14. package/dist/esm/apis/CallFlagsApi.js +372 -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/AdminSubscriptionsListResponse.d.ts +39 -0
  18. package/dist/esm/models/AdminSubscriptionsListResponse.js +48 -0
  19. package/dist/esm/models/Call.d.ts +7 -0
  20. package/dist/esm/models/Call.js +3 -0
  21. package/dist/esm/models/CallFlag.d.ts +110 -0
  22. package/dist/esm/models/CallFlag.js +89 -0
  23. package/dist/esm/models/CallFlagCreate.d.ts +48 -0
  24. package/dist/esm/models/CallFlagCreate.js +54 -0
  25. package/dist/esm/models/CallFlagResolve.d.ts +32 -0
  26. package/dist/esm/models/CallFlagResolve.js +41 -0
  27. package/dist/esm/models/CallFlagUpdate.d.ts +48 -0
  28. package/dist/esm/models/CallFlagUpdate.js +52 -0
  29. package/dist/esm/models/CallFlagWithCall.d.ts +117 -0
  30. package/dist/esm/models/CallFlagWithCall.js +92 -0
  31. package/dist/esm/models/CallFlagWithCallAllOfCall.d.ts +56 -0
  32. package/dist/esm/models/CallFlagWithCallAllOfCall.js +49 -0
  33. package/dist/esm/models/index.d.ts +7 -0
  34. package/dist/esm/models/index.js +7 -0
  35. package/dist/models/AdminSubscriptionsListResponse.d.ts +39 -0
  36. package/dist/models/AdminSubscriptionsListResponse.js +55 -0
  37. package/dist/models/Call.d.ts +7 -0
  38. package/dist/models/Call.js +3 -0
  39. package/dist/models/CallFlag.d.ts +110 -0
  40. package/dist/models/CallFlag.js +97 -0
  41. package/dist/models/CallFlagCreate.d.ts +48 -0
  42. package/dist/models/CallFlagCreate.js +62 -0
  43. package/dist/models/CallFlagResolve.d.ts +32 -0
  44. package/dist/models/CallFlagResolve.js +48 -0
  45. package/dist/models/CallFlagUpdate.d.ts +48 -0
  46. package/dist/models/CallFlagUpdate.js +60 -0
  47. package/dist/models/CallFlagWithCall.d.ts +117 -0
  48. package/dist/models/CallFlagWithCall.js +100 -0
  49. package/dist/models/CallFlagWithCallAllOfCall.d.ts +56 -0
  50. package/dist/models/CallFlagWithCallAllOfCall.js +56 -0
  51. package/dist/models/index.d.ts +7 -0
  52. package/dist/models/index.js +7 -0
  53. package/package.json +1 -1
  54. package/src/api-client.ts +29 -0
  55. package/src/apis/AdminSubscriptionsApi.ts +8 -4
  56. package/src/apis/CallFlagsApi.ts +546 -0
  57. package/src/apis/index.ts +1 -0
  58. package/src/models/AdminSubscriptionsListResponse.ts +83 -0
  59. package/src/models/Call.ts +16 -0
  60. package/src/models/CallFlag.ts +173 -0
  61. package/src/models/CallFlagCreate.ts +87 -0
  62. package/src/models/CallFlagResolve.ts +65 -0
  63. package/src/models/CallFlagUpdate.ts +86 -0
  64. package/src/models/CallFlagWithCall.ts +189 -0
  65. package/src/models/CallFlagWithCallAllOfCall.ts +97 -0
  66. package/src/models/index.ts +7 -0
@@ -0,0 +1,117 @@
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 { CallFlagWithCallAllOfCall } from './CallFlagWithCallAllOfCall';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface CallFlagWithCall
17
+ */
18
+ export interface CallFlagWithCall {
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof CallFlagWithCall
23
+ */
24
+ id: string;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof CallFlagWithCall
29
+ */
30
+ call_id: string;
31
+ /**
32
+ *
33
+ * @type {string}
34
+ * @memberof CallFlagWithCall
35
+ */
36
+ flag_type: CallFlagWithCallFlagTypeEnum;
37
+ /**
38
+ * Free-text description of why the call was flagged
39
+ * @type {string}
40
+ * @memberof CallFlagWithCall
41
+ */
42
+ reason?: string | null;
43
+ /**
44
+ * Derived from resolved_at (open when null, otherwise resolved)
45
+ * @type {string}
46
+ * @memberof CallFlagWithCall
47
+ */
48
+ status: CallFlagWithCallStatusEnum;
49
+ /**
50
+ * User id of whoever raised the flag
51
+ * @type {string}
52
+ * @memberof CallFlagWithCall
53
+ */
54
+ flagged_by?: string | null;
55
+ /**
56
+ *
57
+ * @type {Date}
58
+ * @memberof CallFlagWithCall
59
+ */
60
+ resolved_at?: Date | null;
61
+ /**
62
+ *
63
+ * @type {string}
64
+ * @memberof CallFlagWithCall
65
+ */
66
+ resolved_by?: string | null;
67
+ /**
68
+ *
69
+ * @type {string}
70
+ * @memberof CallFlagWithCall
71
+ */
72
+ resolution_note?: string | null;
73
+ /**
74
+ *
75
+ * @type {Date}
76
+ * @memberof CallFlagWithCall
77
+ */
78
+ created_at: Date;
79
+ /**
80
+ *
81
+ * @type {Date}
82
+ * @memberof CallFlagWithCall
83
+ */
84
+ updated_at: Date;
85
+ /**
86
+ *
87
+ * @type {CallFlagWithCallAllOfCall}
88
+ * @memberof CallFlagWithCall
89
+ */
90
+ call?: CallFlagWithCallAllOfCall | null;
91
+ }
92
+ /**
93
+ * @export
94
+ */
95
+ export declare const CallFlagWithCallFlagTypeEnum: {
96
+ readonly Error: "error";
97
+ readonly FollowUp: "follow_up";
98
+ readonly ManualReview: "manual_review";
99
+ readonly Other: "other";
100
+ };
101
+ export type CallFlagWithCallFlagTypeEnum = typeof CallFlagWithCallFlagTypeEnum[keyof typeof CallFlagWithCallFlagTypeEnum];
102
+ /**
103
+ * @export
104
+ */
105
+ export declare const CallFlagWithCallStatusEnum: {
106
+ readonly Open: "open";
107
+ readonly Resolved: "resolved";
108
+ };
109
+ export type CallFlagWithCallStatusEnum = typeof CallFlagWithCallStatusEnum[keyof typeof CallFlagWithCallStatusEnum];
110
+ /**
111
+ * Check if a given object implements the CallFlagWithCall interface.
112
+ */
113
+ export declare function instanceOfCallFlagWithCall(value: object): value is CallFlagWithCall;
114
+ export declare function CallFlagWithCallFromJSON(json: any): CallFlagWithCall;
115
+ export declare function CallFlagWithCallFromJSONTyped(json: any, ignoreDiscriminator: boolean): CallFlagWithCall;
116
+ export declare function CallFlagWithCallToJSON(json: any): CallFlagWithCall;
117
+ export declare function CallFlagWithCallToJSONTyped(value?: CallFlagWithCall | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,92 @@
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 { CallFlagWithCallAllOfCallFromJSON, CallFlagWithCallAllOfCallToJSON, } from './CallFlagWithCallAllOfCall';
15
+ /**
16
+ * @export
17
+ */
18
+ export const CallFlagWithCallFlagTypeEnum = {
19
+ Error: 'error',
20
+ FollowUp: 'follow_up',
21
+ ManualReview: 'manual_review',
22
+ Other: 'other'
23
+ };
24
+ /**
25
+ * @export
26
+ */
27
+ export const CallFlagWithCallStatusEnum = {
28
+ Open: 'open',
29
+ Resolved: 'resolved'
30
+ };
31
+ /**
32
+ * Check if a given object implements the CallFlagWithCall interface.
33
+ */
34
+ export function instanceOfCallFlagWithCall(value) {
35
+ if (!('id' in value) || value['id'] === undefined)
36
+ return false;
37
+ if (!('call_id' in value) || value['call_id'] === undefined)
38
+ return false;
39
+ if (!('flag_type' in value) || value['flag_type'] === undefined)
40
+ return false;
41
+ if (!('status' in value) || value['status'] === undefined)
42
+ return false;
43
+ if (!('created_at' in value) || value['created_at'] === undefined)
44
+ return false;
45
+ if (!('updated_at' in value) || value['updated_at'] === undefined)
46
+ return false;
47
+ return true;
48
+ }
49
+ export function CallFlagWithCallFromJSON(json) {
50
+ return CallFlagWithCallFromJSONTyped(json, false);
51
+ }
52
+ export function CallFlagWithCallFromJSONTyped(json, ignoreDiscriminator) {
53
+ if (json == null) {
54
+ return json;
55
+ }
56
+ return {
57
+ 'id': json['id'],
58
+ 'call_id': json['call_id'],
59
+ 'flag_type': json['flag_type'],
60
+ 'reason': json['reason'] == null ? undefined : json['reason'],
61
+ 'status': json['status'],
62
+ 'flagged_by': json['flagged_by'] == null ? undefined : json['flagged_by'],
63
+ 'resolved_at': json['resolved_at'] == null ? undefined : (new Date(json['resolved_at'])),
64
+ 'resolved_by': json['resolved_by'] == null ? undefined : json['resolved_by'],
65
+ 'resolution_note': json['resolution_note'] == null ? undefined : json['resolution_note'],
66
+ 'created_at': (new Date(json['created_at'])),
67
+ 'updated_at': (new Date(json['updated_at'])),
68
+ 'call': json['call'] == null ? undefined : CallFlagWithCallAllOfCallFromJSON(json['call']),
69
+ };
70
+ }
71
+ export function CallFlagWithCallToJSON(json) {
72
+ return CallFlagWithCallToJSONTyped(json, false);
73
+ }
74
+ export function CallFlagWithCallToJSONTyped(value, ignoreDiscriminator = false) {
75
+ if (value == null) {
76
+ return value;
77
+ }
78
+ return {
79
+ 'id': value['id'],
80
+ 'call_id': value['call_id'],
81
+ 'flag_type': value['flag_type'],
82
+ 'reason': value['reason'],
83
+ 'status': value['status'],
84
+ 'flagged_by': value['flagged_by'],
85
+ 'resolved_at': value['resolved_at'] == null ? value['resolved_at'] : value['resolved_at'].toISOString(),
86
+ 'resolved_by': value['resolved_by'],
87
+ 'resolution_note': value['resolution_note'],
88
+ 'created_at': value['created_at'].toISOString(),
89
+ 'updated_at': value['updated_at'].toISOString(),
90
+ 'call': CallFlagWithCallAllOfCallToJSON(value['call']),
91
+ };
92
+ }
@@ -0,0 +1,56 @@
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 CallFlagWithCallAllOfCall
16
+ */
17
+ export interface CallFlagWithCallAllOfCall {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof CallFlagWithCallAllOfCall
22
+ */
23
+ id?: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof CallFlagWithCallAllOfCall
28
+ */
29
+ voice_agent_id?: string | null;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof CallFlagWithCallAllOfCall
34
+ */
35
+ caller?: string | null;
36
+ /**
37
+ *
38
+ * @type {boolean}
39
+ * @memberof CallFlagWithCallAllOfCall
40
+ */
41
+ sandbox?: boolean | null;
42
+ /**
43
+ *
44
+ * @type {Date}
45
+ * @memberof CallFlagWithCallAllOfCall
46
+ */
47
+ created_at?: Date;
48
+ }
49
+ /**
50
+ * Check if a given object implements the CallFlagWithCallAllOfCall interface.
51
+ */
52
+ export declare function instanceOfCallFlagWithCallAllOfCall(value: object): value is CallFlagWithCallAllOfCall;
53
+ export declare function CallFlagWithCallAllOfCallFromJSON(json: any): CallFlagWithCallAllOfCall;
54
+ export declare function CallFlagWithCallAllOfCallFromJSONTyped(json: any, ignoreDiscriminator: boolean): CallFlagWithCallAllOfCall;
55
+ export declare function CallFlagWithCallAllOfCallToJSON(json: any): CallFlagWithCallAllOfCall;
56
+ export declare function CallFlagWithCallAllOfCallToJSONTyped(value?: CallFlagWithCallAllOfCall | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,49 @@
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 CallFlagWithCallAllOfCall interface.
16
+ */
17
+ export function instanceOfCallFlagWithCallAllOfCall(value) {
18
+ return true;
19
+ }
20
+ export function CallFlagWithCallAllOfCallFromJSON(json) {
21
+ return CallFlagWithCallAllOfCallFromJSONTyped(json, false);
22
+ }
23
+ export function CallFlagWithCallAllOfCallFromJSONTyped(json, ignoreDiscriminator) {
24
+ if (json == null) {
25
+ return json;
26
+ }
27
+ return {
28
+ 'id': json['id'] == null ? undefined : json['id'],
29
+ 'voice_agent_id': json['voice_agent_id'] == null ? undefined : json['voice_agent_id'],
30
+ 'caller': json['caller'] == null ? undefined : json['caller'],
31
+ 'sandbox': json['sandbox'] == null ? undefined : json['sandbox'],
32
+ 'created_at': json['created_at'] == null ? undefined : (new Date(json['created_at'])),
33
+ };
34
+ }
35
+ export function CallFlagWithCallAllOfCallToJSON(json) {
36
+ return CallFlagWithCallAllOfCallToJSONTyped(json, false);
37
+ }
38
+ export function CallFlagWithCallAllOfCallToJSONTyped(value, ignoreDiscriminator = false) {
39
+ if (value == null) {
40
+ return value;
41
+ }
42
+ return {
43
+ 'id': value['id'],
44
+ 'voice_agent_id': value['voice_agent_id'],
45
+ 'caller': value['caller'],
46
+ 'sandbox': value['sandbox'],
47
+ 'created_at': value['created_at'] == null ? value['created_at'] : value['created_at'].toISOString(),
48
+ };
49
+ }
@@ -1,5 +1,6 @@
1
1
  export * from './AdminGrantMinutesRequest';
2
2
  export * from './AdminSetSubscriptionRequest';
3
+ export * from './AdminSubscriptionsListResponse';
3
4
  export * from './AgentTool';
4
5
  export * from './AgentToolUpsert';
5
6
  export * from './BillingPortalRequest';
@@ -16,6 +17,12 @@ export * from './CalendarMetadataBookingConstraints';
16
17
  export * from './CalendarUpdate';
17
18
  export * from './Call';
18
19
  export * from './CallCreate';
20
+ export * from './CallFlag';
21
+ export * from './CallFlagCreate';
22
+ export * from './CallFlagResolve';
23
+ export * from './CallFlagUpdate';
24
+ export * from './CallFlagWithCall';
25
+ export * from './CallFlagWithCallAllOfCall';
19
26
  export * from './CallUpdate';
20
27
  export * from './CancelSubscriptionRequest';
21
28
  export * from './ChatAgent';
@@ -2,6 +2,7 @@
2
2
  /* eslint-disable */
3
3
  export * from './AdminGrantMinutesRequest';
4
4
  export * from './AdminSetSubscriptionRequest';
5
+ export * from './AdminSubscriptionsListResponse';
5
6
  export * from './AgentTool';
6
7
  export * from './AgentToolUpsert';
7
8
  export * from './BillingPortalRequest';
@@ -18,6 +19,12 @@ export * from './CalendarMetadataBookingConstraints';
18
19
  export * from './CalendarUpdate';
19
20
  export * from './Call';
20
21
  export * from './CallCreate';
22
+ export * from './CallFlag';
23
+ export * from './CallFlagCreate';
24
+ export * from './CallFlagResolve';
25
+ export * from './CallFlagUpdate';
26
+ export * from './CallFlagWithCall';
27
+ export * from './CallFlagWithCallAllOfCall';
21
28
  export * from './CallUpdate';
22
29
  export * from './CancelSubscriptionRequest';
23
30
  export * from './ChatAgent';
@@ -0,0 +1,39 @@
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 { SubscriptionStatus } from './SubscriptionStatus';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface AdminSubscriptionsListResponse
17
+ */
18
+ export interface AdminSubscriptionsListResponse {
19
+ /**
20
+ *
21
+ * @type {Array<SubscriptionStatus>}
22
+ * @memberof AdminSubscriptionsListResponse
23
+ */
24
+ items: Array<SubscriptionStatus>;
25
+ /**
26
+ *
27
+ * @type {number}
28
+ * @memberof AdminSubscriptionsListResponse
29
+ */
30
+ total: number;
31
+ }
32
+ /**
33
+ * Check if a given object implements the AdminSubscriptionsListResponse interface.
34
+ */
35
+ export declare function instanceOfAdminSubscriptionsListResponse(value: object): value is AdminSubscriptionsListResponse;
36
+ export declare function AdminSubscriptionsListResponseFromJSON(json: any): AdminSubscriptionsListResponse;
37
+ export declare function AdminSubscriptionsListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminSubscriptionsListResponse;
38
+ export declare function AdminSubscriptionsListResponseToJSON(json: any): AdminSubscriptionsListResponse;
39
+ export declare function AdminSubscriptionsListResponseToJSONTyped(value?: AdminSubscriptionsListResponse | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,55 @@
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.instanceOfAdminSubscriptionsListResponse = instanceOfAdminSubscriptionsListResponse;
17
+ exports.AdminSubscriptionsListResponseFromJSON = AdminSubscriptionsListResponseFromJSON;
18
+ exports.AdminSubscriptionsListResponseFromJSONTyped = AdminSubscriptionsListResponseFromJSONTyped;
19
+ exports.AdminSubscriptionsListResponseToJSON = AdminSubscriptionsListResponseToJSON;
20
+ exports.AdminSubscriptionsListResponseToJSONTyped = AdminSubscriptionsListResponseToJSONTyped;
21
+ const SubscriptionStatus_1 = require("./SubscriptionStatus");
22
+ /**
23
+ * Check if a given object implements the AdminSubscriptionsListResponse interface.
24
+ */
25
+ function instanceOfAdminSubscriptionsListResponse(value) {
26
+ if (!('items' in value) || value['items'] === undefined)
27
+ return false;
28
+ if (!('total' in value) || value['total'] === undefined)
29
+ return false;
30
+ return true;
31
+ }
32
+ function AdminSubscriptionsListResponseFromJSON(json) {
33
+ return AdminSubscriptionsListResponseFromJSONTyped(json, false);
34
+ }
35
+ function AdminSubscriptionsListResponseFromJSONTyped(json, ignoreDiscriminator) {
36
+ if (json == null) {
37
+ return json;
38
+ }
39
+ return {
40
+ 'items': (json['items'].map(SubscriptionStatus_1.SubscriptionStatusFromJSON)),
41
+ 'total': json['total'],
42
+ };
43
+ }
44
+ function AdminSubscriptionsListResponseToJSON(json) {
45
+ return AdminSubscriptionsListResponseToJSONTyped(json, false);
46
+ }
47
+ function AdminSubscriptionsListResponseToJSONTyped(value, ignoreDiscriminator = false) {
48
+ if (value == null) {
49
+ return value;
50
+ }
51
+ return {
52
+ 'items': (value['items'].map(SubscriptionStatus_1.SubscriptionStatusToJSON)),
53
+ 'total': value['total'],
54
+ };
55
+ }
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { CallFlag } from './CallFlag';
12
13
  /**
13
14
  *
14
15
  * @export
@@ -61,6 +62,12 @@ export interface Call {
61
62
  * @memberof Call
62
63
  */
63
64
  created_at: Date;
65
+ /**
66
+ * Flags raised on this call (empty when none)
67
+ * @type {Array<CallFlag>}
68
+ * @memberof Call
69
+ */
70
+ flags?: Array<CallFlag>;
64
71
  }
65
72
  /**
66
73
  * Check if a given object implements the Call interface.
@@ -18,6 +18,7 @@ exports.CallFromJSON = CallFromJSON;
18
18
  exports.CallFromJSONTyped = CallFromJSONTyped;
19
19
  exports.CallToJSON = CallToJSON;
20
20
  exports.CallToJSONTyped = CallToJSONTyped;
21
+ const CallFlag_1 = require("./CallFlag");
21
22
  /**
22
23
  * Check if a given object implements the Call interface.
23
24
  */
@@ -43,6 +44,7 @@ function CallFromJSONTyped(json, ignoreDiscriminator) {
43
44
  'caller': json['caller'] == null ? undefined : json['caller'],
44
45
  'sandbox': json['sandbox'] == null ? undefined : json['sandbox'],
45
46
  'created_at': (new Date(json['created_at'])),
47
+ 'flags': json['flags'] == null ? undefined : (json['flags'].map(CallFlag_1.CallFlagFromJSON)),
46
48
  };
47
49
  }
48
50
  function CallToJSON(json) {
@@ -60,5 +62,6 @@ function CallToJSONTyped(value, ignoreDiscriminator = false) {
60
62
  'caller': value['caller'],
61
63
  'sandbox': value['sandbox'],
62
64
  'created_at': value['created_at'].toISOString(),
65
+ 'flags': value['flags'] == null ? undefined : (value['flags'].map(CallFlag_1.CallFlagToJSON)),
63
66
  };
64
67
  }
@@ -0,0 +1,110 @@
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 CallFlag
16
+ */
17
+ export interface CallFlag {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof CallFlag
22
+ */
23
+ id: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof CallFlag
28
+ */
29
+ call_id: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof CallFlag
34
+ */
35
+ flag_type: CallFlagFlagTypeEnum;
36
+ /**
37
+ * Free-text description of why the call was flagged
38
+ * @type {string}
39
+ * @memberof CallFlag
40
+ */
41
+ reason?: string | null;
42
+ /**
43
+ * Derived from resolved_at (open when null, otherwise resolved)
44
+ * @type {string}
45
+ * @memberof CallFlag
46
+ */
47
+ status: CallFlagStatusEnum;
48
+ /**
49
+ * User id of whoever raised the flag
50
+ * @type {string}
51
+ * @memberof CallFlag
52
+ */
53
+ flagged_by?: string | null;
54
+ /**
55
+ *
56
+ * @type {Date}
57
+ * @memberof CallFlag
58
+ */
59
+ resolved_at?: Date | null;
60
+ /**
61
+ *
62
+ * @type {string}
63
+ * @memberof CallFlag
64
+ */
65
+ resolved_by?: string | null;
66
+ /**
67
+ *
68
+ * @type {string}
69
+ * @memberof CallFlag
70
+ */
71
+ resolution_note?: string | null;
72
+ /**
73
+ *
74
+ * @type {Date}
75
+ * @memberof CallFlag
76
+ */
77
+ created_at: Date;
78
+ /**
79
+ *
80
+ * @type {Date}
81
+ * @memberof CallFlag
82
+ */
83
+ updated_at: Date;
84
+ }
85
+ /**
86
+ * @export
87
+ */
88
+ export declare const CallFlagFlagTypeEnum: {
89
+ readonly Error: "error";
90
+ readonly FollowUp: "follow_up";
91
+ readonly ManualReview: "manual_review";
92
+ readonly Other: "other";
93
+ };
94
+ export type CallFlagFlagTypeEnum = typeof CallFlagFlagTypeEnum[keyof typeof CallFlagFlagTypeEnum];
95
+ /**
96
+ * @export
97
+ */
98
+ export declare const CallFlagStatusEnum: {
99
+ readonly Open: "open";
100
+ readonly Resolved: "resolved";
101
+ };
102
+ export type CallFlagStatusEnum = typeof CallFlagStatusEnum[keyof typeof CallFlagStatusEnum];
103
+ /**
104
+ * Check if a given object implements the CallFlag interface.
105
+ */
106
+ export declare function instanceOfCallFlag(value: object): value is CallFlag;
107
+ export declare function CallFlagFromJSON(json: any): CallFlag;
108
+ export declare function CallFlagFromJSONTyped(json: any, ignoreDiscriminator: boolean): CallFlag;
109
+ export declare function CallFlagToJSON(json: any): CallFlag;
110
+ export declare function CallFlagToJSONTyped(value?: CallFlag | null, ignoreDiscriminator?: boolean): any;