@l7mp/tivadar-ai-api-sdk 0.2.10 → 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 (186) hide show
  1. package/dist/api-client.d.ts +46 -4
  2. package/dist/api-client.js +33 -3
  3. package/dist/apis/AdminSubscriptionsApi.d.ts +82 -0
  4. package/dist/apis/AdminSubscriptionsApi.js +243 -0
  5. package/dist/apis/CallFlagsApi.d.ts +133 -0
  6. package/dist/apis/CallFlagsApi.js +376 -0
  7. package/dist/apis/SubscriptionApi.d.ts +54 -75
  8. package/dist/apis/SubscriptionApi.js +95 -114
  9. package/dist/apis/VoiceUsageApi.d.ts +31 -0
  10. package/dist/apis/VoiceUsageApi.js +73 -0
  11. package/dist/apis/index.d.ts +3 -0
  12. package/dist/apis/index.js +3 -0
  13. package/dist/esm/api-client.d.ts +46 -4
  14. package/dist/esm/api-client.js +33 -3
  15. package/dist/esm/apis/AdminSubscriptionsApi.d.ts +82 -0
  16. package/dist/esm/apis/AdminSubscriptionsApi.js +239 -0
  17. package/dist/esm/apis/CallFlagsApi.d.ts +133 -0
  18. package/dist/esm/apis/CallFlagsApi.js +372 -0
  19. package/dist/esm/apis/SubscriptionApi.d.ts +54 -75
  20. package/dist/esm/apis/SubscriptionApi.js +96 -115
  21. package/dist/esm/apis/VoiceUsageApi.d.ts +31 -0
  22. package/dist/esm/apis/VoiceUsageApi.js +69 -0
  23. package/dist/esm/apis/index.d.ts +3 -0
  24. package/dist/esm/apis/index.js +3 -0
  25. package/dist/esm/models/AdminGrantMinutesRequest.d.ts +38 -0
  26. package/dist/esm/models/AdminGrantMinutesRequest.js +45 -0
  27. package/dist/esm/models/AdminSetSubscriptionRequest.d.ts +86 -0
  28. package/dist/esm/models/AdminSetSubscriptionRequest.js +71 -0
  29. package/dist/esm/models/AdminSubscriptionsListResponse.d.ts +39 -0
  30. package/dist/esm/models/AdminSubscriptionsListResponse.js +48 -0
  31. package/dist/esm/models/BillingPortalRequest.d.ts +1 -1
  32. package/dist/esm/models/BillingPortalResponse.d.ts +1 -1
  33. package/dist/esm/models/Call.d.ts +7 -0
  34. package/dist/esm/models/Call.js +3 -0
  35. package/dist/esm/models/CallFlag.d.ts +110 -0
  36. package/dist/esm/models/CallFlag.js +89 -0
  37. package/dist/esm/models/CallFlagCreate.d.ts +48 -0
  38. package/dist/esm/models/CallFlagCreate.js +54 -0
  39. package/dist/esm/models/CallFlagResolve.d.ts +32 -0
  40. package/dist/esm/models/CallFlagResolve.js +41 -0
  41. package/dist/esm/models/CallFlagUpdate.d.ts +48 -0
  42. package/dist/esm/models/CallFlagUpdate.js +52 -0
  43. package/dist/esm/models/CallFlagWithCall.d.ts +117 -0
  44. package/dist/esm/models/CallFlagWithCall.js +92 -0
  45. package/dist/esm/models/CallFlagWithCallAllOfCall.d.ts +56 -0
  46. package/dist/esm/models/CallFlagWithCallAllOfCall.js +49 -0
  47. package/dist/esm/models/CancelSubscriptionRequest.d.ts +2 -2
  48. package/dist/esm/models/CheckoutSessionResponse.d.ts +2 -2
  49. package/dist/esm/models/CreateCheckoutSessionRequest.d.ts +21 -7
  50. package/dist/esm/models/CreateCheckoutSessionRequest.js +18 -5
  51. package/dist/esm/models/CurrentPeriodUsage.d.ts +59 -0
  52. package/dist/esm/models/CurrentPeriodUsage.js +62 -0
  53. package/dist/esm/models/LifecycleResponse.d.ts +50 -0
  54. package/dist/esm/models/LifecycleResponse.js +51 -0
  55. package/dist/esm/models/PauseSubscriptionRequest.d.ts +1 -1
  56. package/dist/esm/models/PlanCatalogEntry.d.ts +90 -0
  57. package/dist/esm/models/PlanCatalogEntry.js +73 -0
  58. package/dist/esm/models/PlanCatalogEntryOverageInner.d.ts +44 -0
  59. package/dist/esm/models/PlanCatalogEntryOverageInner.js +45 -0
  60. package/dist/esm/models/PlanCatalogPrice.d.ts +58 -0
  61. package/dist/esm/models/PlanCatalogPrice.js +60 -0
  62. package/dist/esm/models/SubscriptionPlanSummary.d.ts +83 -0
  63. package/dist/esm/models/SubscriptionPlanSummary.js +70 -0
  64. package/dist/esm/models/SubscriptionPlanSummaryOverageRate.d.ts +38 -0
  65. package/dist/esm/models/SubscriptionPlanSummaryOverageRate.js +43 -0
  66. package/dist/esm/models/SubscriptionStatus.d.ts +103 -10
  67. package/dist/esm/models/SubscriptionStatus.js +58 -9
  68. package/dist/esm/models/SubscriptionUsageSummary.d.ts +56 -0
  69. package/dist/esm/models/SubscriptionUsageSummary.js +57 -0
  70. package/dist/esm/models/UpdatePlanRequest.d.ts +13 -5
  71. package/dist/esm/models/UpdatePlanRequest.js +12 -3
  72. package/dist/esm/models/UsageBreakdownByAgent.d.ts +44 -0
  73. package/dist/esm/models/UsageBreakdownByAgent.js +49 -0
  74. package/dist/esm/models/UsageBreakdownByDay.d.ts +44 -0
  75. package/dist/esm/models/UsageBreakdownByDay.js +51 -0
  76. package/dist/esm/models/UsageHistoryResponse.d.ts +39 -0
  77. package/dist/esm/models/UsageHistoryResponse.js +48 -0
  78. package/dist/esm/models/UsageRecordDto.d.ts +80 -0
  79. package/dist/esm/models/UsageRecordDto.js +65 -0
  80. package/dist/esm/models/VoiceUsageReportRequest.d.ts +62 -0
  81. package/dist/esm/models/VoiceUsageReportRequest.js +57 -0
  82. package/dist/esm/models/VoiceUsageReportResponse.d.ts +51 -0
  83. package/dist/esm/models/VoiceUsageReportResponse.js +52 -0
  84. package/dist/esm/models/index.d.ts +23 -13
  85. package/dist/esm/models/index.js +23 -13
  86. package/dist/models/AdminGrantMinutesRequest.d.ts +38 -0
  87. package/dist/models/AdminGrantMinutesRequest.js +52 -0
  88. package/dist/models/AdminSetSubscriptionRequest.d.ts +86 -0
  89. package/dist/models/AdminSetSubscriptionRequest.js +79 -0
  90. package/dist/models/AdminSubscriptionsListResponse.d.ts +39 -0
  91. package/dist/models/AdminSubscriptionsListResponse.js +55 -0
  92. package/dist/models/BillingPortalRequest.d.ts +1 -1
  93. package/dist/models/BillingPortalResponse.d.ts +1 -1
  94. package/dist/models/Call.d.ts +7 -0
  95. package/dist/models/Call.js +3 -0
  96. package/dist/models/CallFlag.d.ts +110 -0
  97. package/dist/models/CallFlag.js +97 -0
  98. package/dist/models/CallFlagCreate.d.ts +48 -0
  99. package/dist/models/CallFlagCreate.js +62 -0
  100. package/dist/models/CallFlagResolve.d.ts +32 -0
  101. package/dist/models/CallFlagResolve.js +48 -0
  102. package/dist/models/CallFlagUpdate.d.ts +48 -0
  103. package/dist/models/CallFlagUpdate.js +60 -0
  104. package/dist/models/CallFlagWithCall.d.ts +117 -0
  105. package/dist/models/CallFlagWithCall.js +100 -0
  106. package/dist/models/CallFlagWithCallAllOfCall.d.ts +56 -0
  107. package/dist/models/CallFlagWithCallAllOfCall.js +56 -0
  108. package/dist/models/CancelSubscriptionRequest.d.ts +2 -2
  109. package/dist/models/CheckoutSessionResponse.d.ts +2 -2
  110. package/dist/models/CreateCheckoutSessionRequest.d.ts +21 -7
  111. package/dist/models/CreateCheckoutSessionRequest.js +19 -5
  112. package/dist/models/CurrentPeriodUsage.d.ts +59 -0
  113. package/dist/models/CurrentPeriodUsage.js +69 -0
  114. package/dist/models/LifecycleResponse.d.ts +50 -0
  115. package/dist/models/LifecycleResponse.js +58 -0
  116. package/dist/models/PauseSubscriptionRequest.d.ts +1 -1
  117. package/dist/models/PlanCatalogEntry.d.ts +90 -0
  118. package/dist/models/PlanCatalogEntry.js +80 -0
  119. package/dist/models/PlanCatalogEntryOverageInner.d.ts +44 -0
  120. package/dist/models/PlanCatalogEntryOverageInner.js +52 -0
  121. package/dist/models/PlanCatalogPrice.d.ts +58 -0
  122. package/dist/models/PlanCatalogPrice.js +68 -0
  123. package/dist/models/SubscriptionPlanSummary.d.ts +83 -0
  124. package/dist/models/SubscriptionPlanSummary.js +77 -0
  125. package/dist/models/SubscriptionPlanSummaryOverageRate.d.ts +38 -0
  126. package/dist/models/SubscriptionPlanSummaryOverageRate.js +50 -0
  127. package/dist/models/SubscriptionStatus.d.ts +103 -10
  128. package/dist/models/SubscriptionStatus.js +59 -9
  129. package/dist/models/SubscriptionUsageSummary.d.ts +56 -0
  130. package/dist/models/SubscriptionUsageSummary.js +64 -0
  131. package/dist/models/UpdatePlanRequest.d.ts +13 -5
  132. package/dist/models/UpdatePlanRequest.js +13 -3
  133. package/dist/models/UsageBreakdownByAgent.d.ts +44 -0
  134. package/dist/models/UsageBreakdownByAgent.js +56 -0
  135. package/dist/models/UsageBreakdownByDay.d.ts +44 -0
  136. package/dist/models/UsageBreakdownByDay.js +58 -0
  137. package/dist/models/UsageHistoryResponse.d.ts +39 -0
  138. package/dist/models/UsageHistoryResponse.js +55 -0
  139. package/dist/models/UsageRecordDto.d.ts +80 -0
  140. package/dist/models/UsageRecordDto.js +72 -0
  141. package/dist/models/VoiceUsageReportRequest.d.ts +62 -0
  142. package/dist/models/VoiceUsageReportRequest.js +64 -0
  143. package/dist/models/VoiceUsageReportResponse.d.ts +51 -0
  144. package/dist/models/VoiceUsageReportResponse.js +59 -0
  145. package/dist/models/index.d.ts +23 -13
  146. package/dist/models/index.js +23 -13
  147. package/package.json +1 -1
  148. package/src/api-client.ts +71 -6
  149. package/src/apis/AdminSubscriptionsApi.ts +331 -0
  150. package/src/apis/CallFlagsApi.ts +546 -0
  151. package/src/apis/SubscriptionApi.ts +130 -162
  152. package/src/apis/VoiceUsageApi.ts +86 -0
  153. package/src/apis/index.ts +3 -0
  154. package/src/models/AdminGrantMinutesRequest.ts +74 -0
  155. package/src/models/AdminSetSubscriptionRequest.ts +136 -0
  156. package/src/models/AdminSubscriptionsListResponse.ts +83 -0
  157. package/src/models/BillingPortalRequest.ts +1 -1
  158. package/src/models/BillingPortalResponse.ts +1 -1
  159. package/src/models/Call.ts +16 -0
  160. package/src/models/CallFlag.ts +173 -0
  161. package/src/models/CallFlagCreate.ts +87 -0
  162. package/src/models/CallFlagResolve.ts +65 -0
  163. package/src/models/CallFlagUpdate.ts +86 -0
  164. package/src/models/CallFlagWithCall.ts +189 -0
  165. package/src/models/CallFlagWithCallAllOfCall.ts +97 -0
  166. package/src/models/CancelSubscriptionRequest.ts +2 -2
  167. package/src/models/CheckoutSessionResponse.ts +2 -2
  168. package/src/models/CreateCheckoutSessionRequest.ts +33 -12
  169. package/src/models/CurrentPeriodUsage.ts +124 -0
  170. package/src/models/LifecycleResponse.ts +91 -0
  171. package/src/models/PauseSubscriptionRequest.ts +1 -1
  172. package/src/models/PlanCatalogEntry.ts +158 -0
  173. package/src/models/PlanCatalogEntryOverageInner.ts +81 -0
  174. package/src/models/PlanCatalogPrice.ts +103 -0
  175. package/src/models/SubscriptionPlanSummary.ts +143 -0
  176. package/src/models/SubscriptionPlanSummaryOverageRate.ts +73 -0
  177. package/src/models/SubscriptionStatus.ts +150 -32
  178. package/src/models/SubscriptionUsageSummary.ts +101 -0
  179. package/src/models/UpdatePlanRequest.ts +20 -8
  180. package/src/models/UsageBreakdownByAgent.ts +83 -0
  181. package/src/models/UsageBreakdownByDay.ts +84 -0
  182. package/src/models/UsageHistoryResponse.ts +83 -0
  183. package/src/models/UsageRecordDto.ts +133 -0
  184. package/src/models/VoiceUsageReportRequest.ts +108 -0
  185. package/src/models/VoiceUsageReportResponse.ts +99 -0
  186. package/src/models/index.ts +23 -13
@@ -0,0 +1,38 @@
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 AdminGrantMinutesRequest
16
+ */
17
+ export interface AdminGrantMinutesRequest {
18
+ /**
19
+ * Positive to grant (credit), negative to deduct.
20
+ * @type {number}
21
+ * @memberof AdminGrantMinutesRequest
22
+ */
23
+ minutes: number;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof AdminGrantMinutesRequest
28
+ */
29
+ note?: string;
30
+ }
31
+ /**
32
+ * Check if a given object implements the AdminGrantMinutesRequest interface.
33
+ */
34
+ export declare function instanceOfAdminGrantMinutesRequest(value: object): value is AdminGrantMinutesRequest;
35
+ export declare function AdminGrantMinutesRequestFromJSON(json: any): AdminGrantMinutesRequest;
36
+ export declare function AdminGrantMinutesRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminGrantMinutesRequest;
37
+ export declare function AdminGrantMinutesRequestToJSON(json: any): AdminGrantMinutesRequest;
38
+ export declare function AdminGrantMinutesRequestToJSONTyped(value?: AdminGrantMinutesRequest | 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 AdminGrantMinutesRequest interface.
16
+ */
17
+ export function instanceOfAdminGrantMinutesRequest(value) {
18
+ if (!('minutes' in value) || value['minutes'] === undefined)
19
+ return false;
20
+ return true;
21
+ }
22
+ export function AdminGrantMinutesRequestFromJSON(json) {
23
+ return AdminGrantMinutesRequestFromJSONTyped(json, false);
24
+ }
25
+ export function AdminGrantMinutesRequestFromJSONTyped(json, ignoreDiscriminator) {
26
+ if (json == null) {
27
+ return json;
28
+ }
29
+ return {
30
+ 'minutes': json['minutes'],
31
+ 'note': json['note'] == null ? undefined : json['note'],
32
+ };
33
+ }
34
+ export function AdminGrantMinutesRequestToJSON(json) {
35
+ return AdminGrantMinutesRequestToJSONTyped(json, false);
36
+ }
37
+ export function AdminGrantMinutesRequestToJSONTyped(value, ignoreDiscriminator = false) {
38
+ if (value == null) {
39
+ return value;
40
+ }
41
+ return {
42
+ 'minutes': value['minutes'],
43
+ 'note': value['note'],
44
+ };
45
+ }
@@ -0,0 +1,86 @@
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 AdminSetSubscriptionRequest
16
+ */
17
+ export interface AdminSetSubscriptionRequest {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof AdminSetSubscriptionRequest
22
+ */
23
+ planSlug: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof AdminSetSubscriptionRequest
28
+ */
29
+ status?: AdminSetSubscriptionRequestStatusEnum;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof AdminSetSubscriptionRequest
34
+ */
35
+ billingInterval?: AdminSetSubscriptionRequestBillingIntervalEnum | null;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof AdminSetSubscriptionRequest
40
+ */
41
+ currency?: string;
42
+ /**
43
+ *
44
+ * @type {Date}
45
+ * @memberof AdminSetSubscriptionRequest
46
+ */
47
+ currentPeriodStart?: Date;
48
+ /**
49
+ *
50
+ * @type {Date}
51
+ * @memberof AdminSetSubscriptionRequest
52
+ */
53
+ currentPeriodEnd?: Date;
54
+ /**
55
+ * Stored on the audit event for context.
56
+ * @type {string}
57
+ * @memberof AdminSetSubscriptionRequest
58
+ */
59
+ note?: string;
60
+ }
61
+ /**
62
+ * @export
63
+ */
64
+ export declare const AdminSetSubscriptionRequestStatusEnum: {
65
+ readonly Active: "active";
66
+ readonly Trialing: "trialing";
67
+ readonly Paused: "paused";
68
+ readonly Canceled: "canceled";
69
+ };
70
+ export type AdminSetSubscriptionRequestStatusEnum = typeof AdminSetSubscriptionRequestStatusEnum[keyof typeof AdminSetSubscriptionRequestStatusEnum];
71
+ /**
72
+ * @export
73
+ */
74
+ export declare const AdminSetSubscriptionRequestBillingIntervalEnum: {
75
+ readonly Monthly: "monthly";
76
+ readonly Yearly: "yearly";
77
+ };
78
+ export type AdminSetSubscriptionRequestBillingIntervalEnum = typeof AdminSetSubscriptionRequestBillingIntervalEnum[keyof typeof AdminSetSubscriptionRequestBillingIntervalEnum];
79
+ /**
80
+ * Check if a given object implements the AdminSetSubscriptionRequest interface.
81
+ */
82
+ export declare function instanceOfAdminSetSubscriptionRequest(value: object): value is AdminSetSubscriptionRequest;
83
+ export declare function AdminSetSubscriptionRequestFromJSON(json: any): AdminSetSubscriptionRequest;
84
+ export declare function AdminSetSubscriptionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminSetSubscriptionRequest;
85
+ export declare function AdminSetSubscriptionRequestToJSON(json: any): AdminSetSubscriptionRequest;
86
+ export declare function AdminSetSubscriptionRequestToJSONTyped(value?: AdminSetSubscriptionRequest | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,71 @@
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 AdminSetSubscriptionRequestStatusEnum = {
18
+ Active: 'active',
19
+ Trialing: 'trialing',
20
+ Paused: 'paused',
21
+ Canceled: 'canceled'
22
+ };
23
+ /**
24
+ * @export
25
+ */
26
+ export const AdminSetSubscriptionRequestBillingIntervalEnum = {
27
+ Monthly: 'monthly',
28
+ Yearly: 'yearly'
29
+ };
30
+ /**
31
+ * Check if a given object implements the AdminSetSubscriptionRequest interface.
32
+ */
33
+ export function instanceOfAdminSetSubscriptionRequest(value) {
34
+ if (!('planSlug' in value) || value['planSlug'] === undefined)
35
+ return false;
36
+ return true;
37
+ }
38
+ export function AdminSetSubscriptionRequestFromJSON(json) {
39
+ return AdminSetSubscriptionRequestFromJSONTyped(json, false);
40
+ }
41
+ export function AdminSetSubscriptionRequestFromJSONTyped(json, ignoreDiscriminator) {
42
+ if (json == null) {
43
+ return json;
44
+ }
45
+ return {
46
+ 'planSlug': json['planSlug'],
47
+ 'status': json['status'] == null ? undefined : json['status'],
48
+ 'billingInterval': json['billingInterval'] == null ? undefined : json['billingInterval'],
49
+ 'currency': json['currency'] == null ? undefined : json['currency'],
50
+ 'currentPeriodStart': json['currentPeriodStart'] == null ? undefined : (new Date(json['currentPeriodStart'])),
51
+ 'currentPeriodEnd': json['currentPeriodEnd'] == null ? undefined : (new Date(json['currentPeriodEnd'])),
52
+ 'note': json['note'] == null ? undefined : json['note'],
53
+ };
54
+ }
55
+ export function AdminSetSubscriptionRequestToJSON(json) {
56
+ return AdminSetSubscriptionRequestToJSONTyped(json, false);
57
+ }
58
+ export function AdminSetSubscriptionRequestToJSONTyped(value, ignoreDiscriminator = false) {
59
+ if (value == null) {
60
+ return value;
61
+ }
62
+ return {
63
+ 'planSlug': value['planSlug'],
64
+ 'status': value['status'],
65
+ 'billingInterval': value['billingInterval'],
66
+ 'currency': value['currency'],
67
+ 'currentPeriodStart': value['currentPeriodStart'] == null ? value['currentPeriodStart'] : value['currentPeriodStart'].toISOString(),
68
+ 'currentPeriodEnd': value['currentPeriodEnd'] == null ? value['currentPeriodEnd'] : value['currentPeriodEnd'].toISOString(),
69
+ 'note': value['note'],
70
+ };
71
+ }
@@ -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
+ }
@@ -16,7 +16,7 @@
16
16
  */
17
17
  export interface BillingPortalRequest {
18
18
  /**
19
- * URL to redirect customer after leaving the portal
19
+ *
20
20
  * @type {string}
21
21
  * @memberof BillingPortalRequest
22
22
  */
@@ -16,7 +16,7 @@
16
16
  */
17
17
  export interface BillingPortalResponse {
18
18
  /**
19
- * Stripe Billing Portal URL
19
+ *
20
20
  * @type {string}
21
21
  * @memberof BillingPortalResponse
22
22
  */
@@ -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;