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

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 (91) 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/VoiceAgent.d.ts +12 -0
  34. package/dist/esm/models/VoiceAgent.js +4 -0
  35. package/dist/esm/models/VoiceAgentCreate.d.ts +12 -0
  36. package/dist/esm/models/VoiceAgentCreate.js +4 -0
  37. package/dist/esm/models/VoiceAgentMetadata.d.ts +8 -0
  38. package/dist/esm/models/VoiceAgentMetadata.js +2 -0
  39. package/dist/esm/models/VoiceAgentUpdate.d.ts +12 -0
  40. package/dist/esm/models/VoiceAgentUpdate.js +4 -0
  41. package/dist/esm/models/VoiceAgentWithSipTrunks.d.ts +12 -0
  42. package/dist/esm/models/VoiceAgentWithSipTrunks.js +4 -0
  43. package/dist/esm/models/index.d.ts +7 -0
  44. package/dist/esm/models/index.js +7 -0
  45. package/dist/models/AdminSubscriptionsListResponse.d.ts +39 -0
  46. package/dist/models/AdminSubscriptionsListResponse.js +55 -0
  47. package/dist/models/Call.d.ts +7 -0
  48. package/dist/models/Call.js +3 -0
  49. package/dist/models/CallFlag.d.ts +110 -0
  50. package/dist/models/CallFlag.js +97 -0
  51. package/dist/models/CallFlagCreate.d.ts +48 -0
  52. package/dist/models/CallFlagCreate.js +62 -0
  53. package/dist/models/CallFlagResolve.d.ts +32 -0
  54. package/dist/models/CallFlagResolve.js +48 -0
  55. package/dist/models/CallFlagUpdate.d.ts +48 -0
  56. package/dist/models/CallFlagUpdate.js +60 -0
  57. package/dist/models/CallFlagWithCall.d.ts +117 -0
  58. package/dist/models/CallFlagWithCall.js +100 -0
  59. package/dist/models/CallFlagWithCallAllOfCall.d.ts +56 -0
  60. package/dist/models/CallFlagWithCallAllOfCall.js +56 -0
  61. package/dist/models/VoiceAgent.d.ts +12 -0
  62. package/dist/models/VoiceAgent.js +4 -0
  63. package/dist/models/VoiceAgentCreate.d.ts +12 -0
  64. package/dist/models/VoiceAgentCreate.js +4 -0
  65. package/dist/models/VoiceAgentMetadata.d.ts +8 -0
  66. package/dist/models/VoiceAgentMetadata.js +2 -0
  67. package/dist/models/VoiceAgentUpdate.d.ts +12 -0
  68. package/dist/models/VoiceAgentUpdate.js +4 -0
  69. package/dist/models/VoiceAgentWithSipTrunks.d.ts +12 -0
  70. package/dist/models/VoiceAgentWithSipTrunks.js +4 -0
  71. package/dist/models/index.d.ts +7 -0
  72. package/dist/models/index.js +7 -0
  73. package/package.json +1 -1
  74. package/src/api-client.ts +29 -0
  75. package/src/apis/AdminSubscriptionsApi.ts +8 -4
  76. package/src/apis/CallFlagsApi.ts +546 -0
  77. package/src/apis/index.ts +1 -0
  78. package/src/models/AdminSubscriptionsListResponse.ts +83 -0
  79. package/src/models/Call.ts +16 -0
  80. package/src/models/CallFlag.ts +173 -0
  81. package/src/models/CallFlagCreate.ts +87 -0
  82. package/src/models/CallFlagResolve.ts +65 -0
  83. package/src/models/CallFlagUpdate.ts +86 -0
  84. package/src/models/CallFlagWithCall.ts +189 -0
  85. package/src/models/CallFlagWithCallAllOfCall.ts +97 -0
  86. package/src/models/VoiceAgent.ts +16 -0
  87. package/src/models/VoiceAgentCreate.ts +16 -0
  88. package/src/models/VoiceAgentMetadata.ts +8 -0
  89. package/src/models/VoiceAgentUpdate.ts +16 -0
  90. package/src/models/VoiceAgentWithSipTrunks.ts +16 -0
  91. package/src/models/index.ts +7 -0
@@ -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,48 @@
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 { SubscriptionStatusFromJSON, SubscriptionStatusToJSON, } from './SubscriptionStatus';
15
+ /**
16
+ * Check if a given object implements the AdminSubscriptionsListResponse interface.
17
+ */
18
+ export function instanceOfAdminSubscriptionsListResponse(value) {
19
+ if (!('items' in value) || value['items'] === undefined)
20
+ return false;
21
+ if (!('total' in value) || value['total'] === undefined)
22
+ return false;
23
+ return true;
24
+ }
25
+ export function AdminSubscriptionsListResponseFromJSON(json) {
26
+ return AdminSubscriptionsListResponseFromJSONTyped(json, false);
27
+ }
28
+ export function AdminSubscriptionsListResponseFromJSONTyped(json, ignoreDiscriminator) {
29
+ if (json == null) {
30
+ return json;
31
+ }
32
+ return {
33
+ 'items': (json['items'].map(SubscriptionStatusFromJSON)),
34
+ 'total': json['total'],
35
+ };
36
+ }
37
+ export function AdminSubscriptionsListResponseToJSON(json) {
38
+ return AdminSubscriptionsListResponseToJSONTyped(json, false);
39
+ }
40
+ export function AdminSubscriptionsListResponseToJSONTyped(value, ignoreDiscriminator = false) {
41
+ if (value == null) {
42
+ return value;
43
+ }
44
+ return {
45
+ 'items': (value['items'].map(SubscriptionStatusToJSON)),
46
+ 'total': value['total'],
47
+ };
48
+ }
@@ -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.
@@ -11,6 +11,7 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
+ import { CallFlagFromJSON, CallFlagToJSON, } from './CallFlag';
14
15
  /**
15
16
  * Check if a given object implements the Call interface.
16
17
  */
@@ -36,6 +37,7 @@ export function CallFromJSONTyped(json, ignoreDiscriminator) {
36
37
  'caller': json['caller'] == null ? undefined : json['caller'],
37
38
  'sandbox': json['sandbox'] == null ? undefined : json['sandbox'],
38
39
  'created_at': (new Date(json['created_at'])),
40
+ 'flags': json['flags'] == null ? undefined : (json['flags'].map(CallFlagFromJSON)),
39
41
  };
40
42
  }
41
43
  export function CallToJSON(json) {
@@ -53,5 +55,6 @@ export function CallToJSONTyped(value, ignoreDiscriminator = false) {
53
55
  'caller': value['caller'],
54
56
  'sandbox': value['sandbox'],
55
57
  'created_at': value['created_at'].toISOString(),
58
+ 'flags': value['flags'] == null ? undefined : (value['flags'].map(CallFlagToJSON)),
56
59
  };
57
60
  }
@@ -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;
@@ -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
+ * @export
16
+ */
17
+ export const CallFlagFlagTypeEnum = {
18
+ Error: 'error',
19
+ FollowUp: 'follow_up',
20
+ ManualReview: 'manual_review',
21
+ Other: 'other'
22
+ };
23
+ /**
24
+ * @export
25
+ */
26
+ export const CallFlagStatusEnum = {
27
+ Open: 'open',
28
+ Resolved: 'resolved'
29
+ };
30
+ /**
31
+ * Check if a given object implements the CallFlag interface.
32
+ */
33
+ export function instanceOfCallFlag(value) {
34
+ if (!('id' in value) || value['id'] === undefined)
35
+ return false;
36
+ if (!('call_id' in value) || value['call_id'] === undefined)
37
+ return false;
38
+ if (!('flag_type' in value) || value['flag_type'] === undefined)
39
+ return false;
40
+ if (!('status' in value) || value['status'] === undefined)
41
+ return false;
42
+ if (!('created_at' in value) || value['created_at'] === undefined)
43
+ return false;
44
+ if (!('updated_at' in value) || value['updated_at'] === undefined)
45
+ return false;
46
+ return true;
47
+ }
48
+ export function CallFlagFromJSON(json) {
49
+ return CallFlagFromJSONTyped(json, false);
50
+ }
51
+ export function CallFlagFromJSONTyped(json, ignoreDiscriminator) {
52
+ if (json == null) {
53
+ return json;
54
+ }
55
+ return {
56
+ 'id': json['id'],
57
+ 'call_id': json['call_id'],
58
+ 'flag_type': json['flag_type'],
59
+ 'reason': json['reason'] == null ? undefined : json['reason'],
60
+ 'status': json['status'],
61
+ 'flagged_by': json['flagged_by'] == null ? undefined : json['flagged_by'],
62
+ 'resolved_at': json['resolved_at'] == null ? undefined : (new Date(json['resolved_at'])),
63
+ 'resolved_by': json['resolved_by'] == null ? undefined : json['resolved_by'],
64
+ 'resolution_note': json['resolution_note'] == null ? undefined : json['resolution_note'],
65
+ 'created_at': (new Date(json['created_at'])),
66
+ 'updated_at': (new Date(json['updated_at'])),
67
+ };
68
+ }
69
+ export function CallFlagToJSON(json) {
70
+ return CallFlagToJSONTyped(json, false);
71
+ }
72
+ export function CallFlagToJSONTyped(value, ignoreDiscriminator = false) {
73
+ if (value == null) {
74
+ return value;
75
+ }
76
+ return {
77
+ 'id': value['id'],
78
+ 'call_id': value['call_id'],
79
+ 'flag_type': value['flag_type'],
80
+ 'reason': value['reason'],
81
+ 'status': value['status'],
82
+ 'flagged_by': value['flagged_by'],
83
+ 'resolved_at': value['resolved_at'] == null ? value['resolved_at'] : value['resolved_at'].toISOString(),
84
+ 'resolved_by': value['resolved_by'],
85
+ 'resolution_note': value['resolution_note'],
86
+ 'created_at': value['created_at'].toISOString(),
87
+ 'updated_at': value['updated_at'].toISOString(),
88
+ };
89
+ }
@@ -0,0 +1,48 @@
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 CallFlagCreate
16
+ */
17
+ export interface CallFlagCreate {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof CallFlagCreate
22
+ */
23
+ flag_type: CallFlagCreateFlagTypeEnum;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof CallFlagCreate
28
+ */
29
+ reason?: string | null;
30
+ }
31
+ /**
32
+ * @export
33
+ */
34
+ export declare const CallFlagCreateFlagTypeEnum: {
35
+ readonly Error: "error";
36
+ readonly FollowUp: "follow_up";
37
+ readonly ManualReview: "manual_review";
38
+ readonly Other: "other";
39
+ };
40
+ export type CallFlagCreateFlagTypeEnum = typeof CallFlagCreateFlagTypeEnum[keyof typeof CallFlagCreateFlagTypeEnum];
41
+ /**
42
+ * Check if a given object implements the CallFlagCreate interface.
43
+ */
44
+ export declare function instanceOfCallFlagCreate(value: object): value is CallFlagCreate;
45
+ export declare function CallFlagCreateFromJSON(json: any): CallFlagCreate;
46
+ export declare function CallFlagCreateFromJSONTyped(json: any, ignoreDiscriminator: boolean): CallFlagCreate;
47
+ export declare function CallFlagCreateToJSON(json: any): CallFlagCreate;
48
+ export declare function CallFlagCreateToJSONTyped(value?: CallFlagCreate | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,54 @@
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 CallFlagCreateFlagTypeEnum = {
18
+ Error: 'error',
19
+ FollowUp: 'follow_up',
20
+ ManualReview: 'manual_review',
21
+ Other: 'other'
22
+ };
23
+ /**
24
+ * Check if a given object implements the CallFlagCreate interface.
25
+ */
26
+ export function instanceOfCallFlagCreate(value) {
27
+ if (!('flag_type' in value) || value['flag_type'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ export function CallFlagCreateFromJSON(json) {
32
+ return CallFlagCreateFromJSONTyped(json, false);
33
+ }
34
+ export function CallFlagCreateFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'flag_type': json['flag_type'],
40
+ 'reason': json['reason'] == null ? undefined : json['reason'],
41
+ };
42
+ }
43
+ export function CallFlagCreateToJSON(json) {
44
+ return CallFlagCreateToJSONTyped(json, false);
45
+ }
46
+ export function CallFlagCreateToJSONTyped(value, ignoreDiscriminator = false) {
47
+ if (value == null) {
48
+ return value;
49
+ }
50
+ return {
51
+ 'flag_type': value['flag_type'],
52
+ 'reason': value['reason'],
53
+ };
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 CallFlagResolve
16
+ */
17
+ export interface CallFlagResolve {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof CallFlagResolve
22
+ */
23
+ resolution_note?: string | null;
24
+ }
25
+ /**
26
+ * Check if a given object implements the CallFlagResolve interface.
27
+ */
28
+ export declare function instanceOfCallFlagResolve(value: object): value is CallFlagResolve;
29
+ export declare function CallFlagResolveFromJSON(json: any): CallFlagResolve;
30
+ export declare function CallFlagResolveFromJSONTyped(json: any, ignoreDiscriminator: boolean): CallFlagResolve;
31
+ export declare function CallFlagResolveToJSON(json: any): CallFlagResolve;
32
+ export declare function CallFlagResolveToJSONTyped(value?: CallFlagResolve | 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 CallFlagResolve interface.
16
+ */
17
+ export function instanceOfCallFlagResolve(value) {
18
+ return true;
19
+ }
20
+ export function CallFlagResolveFromJSON(json) {
21
+ return CallFlagResolveFromJSONTyped(json, false);
22
+ }
23
+ export function CallFlagResolveFromJSONTyped(json, ignoreDiscriminator) {
24
+ if (json == null) {
25
+ return json;
26
+ }
27
+ return {
28
+ 'resolution_note': json['resolution_note'] == null ? undefined : json['resolution_note'],
29
+ };
30
+ }
31
+ export function CallFlagResolveToJSON(json) {
32
+ return CallFlagResolveToJSONTyped(json, false);
33
+ }
34
+ export function CallFlagResolveToJSONTyped(value, ignoreDiscriminator = false) {
35
+ if (value == null) {
36
+ return value;
37
+ }
38
+ return {
39
+ 'resolution_note': value['resolution_note'],
40
+ };
41
+ }
@@ -0,0 +1,48 @@
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 CallFlagUpdate
16
+ */
17
+ export interface CallFlagUpdate {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof CallFlagUpdate
22
+ */
23
+ flag_type?: CallFlagUpdateFlagTypeEnum;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof CallFlagUpdate
28
+ */
29
+ reason?: string | null;
30
+ }
31
+ /**
32
+ * @export
33
+ */
34
+ export declare const CallFlagUpdateFlagTypeEnum: {
35
+ readonly Error: "error";
36
+ readonly FollowUp: "follow_up";
37
+ readonly ManualReview: "manual_review";
38
+ readonly Other: "other";
39
+ };
40
+ export type CallFlagUpdateFlagTypeEnum = typeof CallFlagUpdateFlagTypeEnum[keyof typeof CallFlagUpdateFlagTypeEnum];
41
+ /**
42
+ * Check if a given object implements the CallFlagUpdate interface.
43
+ */
44
+ export declare function instanceOfCallFlagUpdate(value: object): value is CallFlagUpdate;
45
+ export declare function CallFlagUpdateFromJSON(json: any): CallFlagUpdate;
46
+ export declare function CallFlagUpdateFromJSONTyped(json: any, ignoreDiscriminator: boolean): CallFlagUpdate;
47
+ export declare function CallFlagUpdateToJSON(json: any): CallFlagUpdate;
48
+ export declare function CallFlagUpdateToJSONTyped(value?: CallFlagUpdate | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,52 @@
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 CallFlagUpdateFlagTypeEnum = {
18
+ Error: 'error',
19
+ FollowUp: 'follow_up',
20
+ ManualReview: 'manual_review',
21
+ Other: 'other'
22
+ };
23
+ /**
24
+ * Check if a given object implements the CallFlagUpdate interface.
25
+ */
26
+ export function instanceOfCallFlagUpdate(value) {
27
+ return true;
28
+ }
29
+ export function CallFlagUpdateFromJSON(json) {
30
+ return CallFlagUpdateFromJSONTyped(json, false);
31
+ }
32
+ export function CallFlagUpdateFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'flag_type': json['flag_type'] == null ? undefined : json['flag_type'],
38
+ 'reason': json['reason'] == null ? undefined : json['reason'],
39
+ };
40
+ }
41
+ export function CallFlagUpdateToJSON(json) {
42
+ return CallFlagUpdateToJSONTyped(json, false);
43
+ }
44
+ export function CallFlagUpdateToJSONTyped(value, ignoreDiscriminator = false) {
45
+ if (value == null) {
46
+ return value;
47
+ }
48
+ return {
49
+ 'flag_type': value['flag_type'],
50
+ 'reason': value['reason'],
51
+ };
52
+ }