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

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 +9 -1
  2. package/dist/api-client.js +8 -0
  3. package/dist/apis/AdminPhoneNumbersApi.d.ts +26 -1
  4. package/dist/apis/AdminPhoneNumbersApi.js +81 -0
  5. package/dist/apis/OutboundCallsApi.d.ts +45 -0
  6. package/dist/apis/OutboundCallsApi.js +116 -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 +9 -1
  10. package/dist/esm/api-client.js +8 -0
  11. package/dist/esm/apis/AdminPhoneNumbersApi.d.ts +26 -1
  12. package/dist/esm/apis/AdminPhoneNumbersApi.js +82 -1
  13. package/dist/esm/apis/OutboundCallsApi.d.ts +45 -0
  14. package/dist/esm/apis/OutboundCallsApi.js +112 -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/AdminPhoneNumberAssignOutbound.d.ts +32 -0
  18. package/dist/esm/models/AdminPhoneNumberAssignOutbound.js +43 -0
  19. package/dist/esm/models/AdminPhoneNumberDetail.d.ts +30 -0
  20. package/dist/esm/models/AdminPhoneNumberDetail.js +10 -0
  21. package/dist/esm/models/AdminPhoneNumberUpdate.d.ts +18 -0
  22. package/dist/esm/models/AdminPhoneNumberUpdate.js +6 -0
  23. package/dist/esm/models/OutboundCall.d.ts +68 -0
  24. package/dist/esm/models/OutboundCall.js +53 -0
  25. package/dist/esm/models/OutboundCallRequest.d.ts +50 -0
  26. package/dist/esm/models/OutboundCallRequest.js +49 -0
  27. package/dist/esm/models/OutboundNumber.d.ts +38 -0
  28. package/dist/esm/models/OutboundNumber.js +43 -0
  29. package/dist/esm/models/PhoneNumber.d.ts +18 -0
  30. package/dist/esm/models/PhoneNumber.js +6 -0
  31. package/dist/esm/models/PhoneNumberCreate.d.ts +24 -0
  32. package/dist/esm/models/PhoneNumberCreate.js +8 -0
  33. package/dist/esm/models/index.d.ts +4 -0
  34. package/dist/esm/models/index.js +4 -0
  35. package/dist/models/AdminPhoneNumberAssignOutbound.d.ts +32 -0
  36. package/dist/models/AdminPhoneNumberAssignOutbound.js +50 -0
  37. package/dist/models/AdminPhoneNumberDetail.d.ts +30 -0
  38. package/dist/models/AdminPhoneNumberDetail.js +10 -0
  39. package/dist/models/AdminPhoneNumberUpdate.d.ts +18 -0
  40. package/dist/models/AdminPhoneNumberUpdate.js +6 -0
  41. package/dist/models/OutboundCall.d.ts +68 -0
  42. package/dist/models/OutboundCall.js +60 -0
  43. package/dist/models/OutboundCallRequest.d.ts +50 -0
  44. package/dist/models/OutboundCallRequest.js +56 -0
  45. package/dist/models/OutboundNumber.d.ts +38 -0
  46. package/dist/models/OutboundNumber.js +50 -0
  47. package/dist/models/PhoneNumber.d.ts +18 -0
  48. package/dist/models/PhoneNumber.js +6 -0
  49. package/dist/models/PhoneNumberCreate.d.ts +24 -0
  50. package/dist/models/PhoneNumberCreate.js +8 -0
  51. package/dist/models/index.d.ts +4 -0
  52. package/dist/models/index.js +4 -0
  53. package/package.json +1 -1
  54. package/src/api-client.ts +18 -0
  55. package/src/apis/AdminPhoneNumbersApi.ts +114 -0
  56. package/src/apis/OutboundCallsApi.ts +149 -0
  57. package/src/apis/index.ts +1 -0
  58. package/src/models/AdminPhoneNumberAssignOutbound.ts +66 -0
  59. package/src/models/AdminPhoneNumberDetail.ts +40 -0
  60. package/src/models/AdminPhoneNumberUpdate.ts +24 -0
  61. package/src/models/OutboundCall.ts +113 -0
  62. package/src/models/OutboundCallRequest.ts +90 -0
  63. package/src/models/OutboundNumber.ts +73 -0
  64. package/src/models/PhoneNumber.ts +24 -0
  65. package/src/models/PhoneNumberCreate.ts +32 -0
  66. package/src/models/index.ts +4 -0
@@ -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 OutboundCallRequest interface.
16
+ */
17
+ export function instanceOfOutboundCallRequest(value) {
18
+ if (!('voice_agent_id' in value) || value['voice_agent_id'] === undefined)
19
+ return false;
20
+ return true;
21
+ }
22
+ export function OutboundCallRequestFromJSON(json) {
23
+ return OutboundCallRequestFromJSONTyped(json, false);
24
+ }
25
+ export function OutboundCallRequestFromJSONTyped(json, ignoreDiscriminator) {
26
+ if (json == null) {
27
+ return json;
28
+ }
29
+ return {
30
+ 'voice_agent_id': json['voice_agent_id'],
31
+ 'phonebook_entry_id': json['phonebook_entry_id'] == null ? undefined : json['phonebook_entry_id'],
32
+ 'destination_number': json['destination_number'] == null ? undefined : json['destination_number'],
33
+ 'from_phone_number_id': json['from_phone_number_id'] == null ? undefined : json['from_phone_number_id'],
34
+ };
35
+ }
36
+ export function OutboundCallRequestToJSON(json) {
37
+ return OutboundCallRequestToJSONTyped(json, false);
38
+ }
39
+ export function OutboundCallRequestToJSONTyped(value, ignoreDiscriminator = false) {
40
+ if (value == null) {
41
+ return value;
42
+ }
43
+ return {
44
+ 'voice_agent_id': value['voice_agent_id'],
45
+ 'phonebook_entry_id': value['phonebook_entry_id'],
46
+ 'destination_number': value['destination_number'],
47
+ 'from_phone_number_id': value['from_phone_number_id'],
48
+ };
49
+ }
@@ -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
+ * An outbound-capable number assigned to the organization, usable as caller-ID.
14
+ * @export
15
+ * @interface OutboundNumber
16
+ */
17
+ export interface OutboundNumber {
18
+ /**
19
+ *
20
+ * @type {number}
21
+ * @memberof OutboundNumber
22
+ */
23
+ id?: number;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof OutboundNumber
28
+ */
29
+ number?: string;
30
+ }
31
+ /**
32
+ * Check if a given object implements the OutboundNumber interface.
33
+ */
34
+ export declare function instanceOfOutboundNumber(value: object): value is OutboundNumber;
35
+ export declare function OutboundNumberFromJSON(json: any): OutboundNumber;
36
+ export declare function OutboundNumberFromJSONTyped(json: any, ignoreDiscriminator: boolean): OutboundNumber;
37
+ export declare function OutboundNumberToJSON(json: any): OutboundNumber;
38
+ export declare function OutboundNumberToJSONTyped(value?: OutboundNumber | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,43 @@
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 OutboundNumber interface.
16
+ */
17
+ export function instanceOfOutboundNumber(value) {
18
+ return true;
19
+ }
20
+ export function OutboundNumberFromJSON(json) {
21
+ return OutboundNumberFromJSONTyped(json, false);
22
+ }
23
+ export function OutboundNumberFromJSONTyped(json, ignoreDiscriminator) {
24
+ if (json == null) {
25
+ return json;
26
+ }
27
+ return {
28
+ 'id': json['id'] == null ? undefined : json['id'],
29
+ 'number': json['number'] == null ? undefined : json['number'],
30
+ };
31
+ }
32
+ export function OutboundNumberToJSON(json) {
33
+ return OutboundNumberToJSONTyped(json, false);
34
+ }
35
+ export function OutboundNumberToJSONTyped(value, ignoreDiscriminator = false) {
36
+ if (value == null) {
37
+ return value;
38
+ }
39
+ return {
40
+ 'id': value['id'],
41
+ 'number': value['number'],
42
+ };
43
+ }
@@ -39,6 +39,24 @@ export interface PhoneNumber {
39
39
  * @memberof PhoneNumber
40
40
  */
41
41
  supports_call_redirect?: boolean;
42
+ /**
43
+ * Whether this number can place outbound calls (has an outbound trunk).
44
+ * @type {boolean}
45
+ * @memberof PhoneNumber
46
+ */
47
+ supports_outbound?: boolean;
48
+ /**
49
+ * Outbound SIP provider host/address (outbound numbers only).
50
+ * @type {string}
51
+ * @memberof PhoneNumber
52
+ */
53
+ sip_address?: string | null;
54
+ /**
55
+ * Whether the outbound trunk + credentials are configured. Secrets are never returned.
56
+ * @type {boolean}
57
+ * @memberof PhoneNumber
58
+ */
59
+ outbound_configured?: boolean;
42
60
  /**
43
61
  *
44
62
  * @type {Date}
@@ -29,6 +29,9 @@ export function PhoneNumberFromJSONTyped(json, ignoreDiscriminator) {
29
29
  'number': json['number'] == null ? undefined : json['number'],
30
30
  'sip_trunk_id': json['sip_trunk_id'] == null ? undefined : json['sip_trunk_id'],
31
31
  'supports_call_redirect': json['supports_call_redirect'] == null ? undefined : json['supports_call_redirect'],
32
+ 'supports_outbound': json['supports_outbound'] == null ? undefined : json['supports_outbound'],
33
+ 'sip_address': json['sip_address'] == null ? undefined : json['sip_address'],
34
+ 'outbound_configured': json['outbound_configured'] == null ? undefined : json['outbound_configured'],
32
35
  'created_at': json['created_at'] == null ? undefined : (new Date(json['created_at'])),
33
36
  };
34
37
  }
@@ -44,6 +47,9 @@ export function PhoneNumberToJSONTyped(value, ignoreDiscriminator = false) {
44
47
  'number': value['number'],
45
48
  'sip_trunk_id': value['sip_trunk_id'],
46
49
  'supports_call_redirect': value['supports_call_redirect'],
50
+ 'supports_outbound': value['supports_outbound'],
51
+ 'sip_address': value['sip_address'],
52
+ 'outbound_configured': value['outbound_configured'],
47
53
  'created_at': value['created_at'] == null ? value['created_at'] : value['created_at'].toISOString(),
48
54
  };
49
55
  }
@@ -27,6 +27,30 @@ export interface PhoneNumberCreate {
27
27
  * @memberof PhoneNumberCreate
28
28
  */
29
29
  supports_call_redirect?: boolean;
30
+ /**
31
+ * Whether this number can place outbound calls. When true, sip_address, auth_username and auth_password are required.
32
+ * @type {boolean}
33
+ * @memberof PhoneNumberCreate
34
+ */
35
+ supports_outbound?: boolean;
36
+ /**
37
+ * Outbound SIP provider host/address (required when supports_outbound is true).
38
+ * @type {string}
39
+ * @memberof PhoneNumberCreate
40
+ */
41
+ sip_address?: string;
42
+ /**
43
+ * Outbound SIP auth username (required when supports_outbound is true). Stored encrypted.
44
+ * @type {string}
45
+ * @memberof PhoneNumberCreate
46
+ */
47
+ auth_username?: string;
48
+ /**
49
+ * Outbound SIP auth password (required when supports_outbound is true). Stored encrypted, never returned.
50
+ * @type {string}
51
+ * @memberof PhoneNumberCreate
52
+ */
53
+ auth_password?: string;
30
54
  }
31
55
  /**
32
56
  * Check if a given object implements the PhoneNumberCreate interface.
@@ -29,6 +29,10 @@ export function PhoneNumberCreateFromJSONTyped(json, ignoreDiscriminator) {
29
29
  return {
30
30
  'number': json['number'],
31
31
  'supports_call_redirect': json['supports_call_redirect'] == null ? undefined : json['supports_call_redirect'],
32
+ 'supports_outbound': json['supports_outbound'] == null ? undefined : json['supports_outbound'],
33
+ 'sip_address': json['sip_address'] == null ? undefined : json['sip_address'],
34
+ 'auth_username': json['auth_username'] == null ? undefined : json['auth_username'],
35
+ 'auth_password': json['auth_password'] == null ? undefined : json['auth_password'],
32
36
  };
33
37
  }
34
38
  export function PhoneNumberCreateToJSON(json) {
@@ -41,5 +45,9 @@ export function PhoneNumberCreateToJSONTyped(value, ignoreDiscriminator = false)
41
45
  return {
42
46
  'number': value['number'],
43
47
  'supports_call_redirect': value['supports_call_redirect'],
48
+ 'supports_outbound': value['supports_outbound'],
49
+ 'sip_address': value['sip_address'],
50
+ 'auth_username': value['auth_username'],
51
+ 'auth_password': value['auth_password'],
44
52
  };
45
53
  }
@@ -1,6 +1,7 @@
1
1
  export * from './AdminDispatchRuleCreate';
2
2
  export * from './AdminGrantMinutesRequest';
3
3
  export * from './AdminPhoneNumberAssign';
4
+ export * from './AdminPhoneNumberAssignOutbound';
4
5
  export * from './AdminPhoneNumberDetail';
5
6
  export * from './AdminPhoneNumberUpdate';
6
7
  export * from './AdminPhoneNumbersListResponse';
@@ -69,6 +70,9 @@ export * from './OrganizationsOrganizationIdNotificationsGet200Response';
69
70
  export * from './OrganizationsOrganizationIdSipDispatchRulesPost200Response';
70
71
  export * from './OrganizationsOrganizationIdVoiceAgentsBasicGet200ResponseInner';
71
72
  export * from './OrganizationsOrganizationIdVoiceAgentsVoiceAgentIdSandboxTokenPostRequest';
73
+ export * from './OutboundCall';
74
+ export * from './OutboundCallRequest';
75
+ export * from './OutboundNumber';
72
76
  export * from './PauseSubscriptionRequest';
73
77
  export * from './PhoneNumber';
74
78
  export * from './PhoneNumberCreate';
@@ -3,6 +3,7 @@
3
3
  export * from './AdminDispatchRuleCreate';
4
4
  export * from './AdminGrantMinutesRequest';
5
5
  export * from './AdminPhoneNumberAssign';
6
+ export * from './AdminPhoneNumberAssignOutbound';
6
7
  export * from './AdminPhoneNumberDetail';
7
8
  export * from './AdminPhoneNumberUpdate';
8
9
  export * from './AdminPhoneNumbersListResponse';
@@ -71,6 +72,9 @@ export * from './OrganizationsOrganizationIdNotificationsGet200Response';
71
72
  export * from './OrganizationsOrganizationIdSipDispatchRulesPost200Response';
72
73
  export * from './OrganizationsOrganizationIdVoiceAgentsBasicGet200ResponseInner';
73
74
  export * from './OrganizationsOrganizationIdVoiceAgentsVoiceAgentIdSandboxTokenPostRequest';
75
+ export * from './OutboundCall';
76
+ export * from './OutboundCallRequest';
77
+ export * from './OutboundNumber';
74
78
  export * from './PauseSubscriptionRequest';
75
79
  export * from './PhoneNumber';
76
80
  export * from './PhoneNumberCreate';
@@ -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 AdminPhoneNumberAssignOutbound
16
+ */
17
+ export interface AdminPhoneNumberAssignOutbound {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof AdminPhoneNumberAssignOutbound
22
+ */
23
+ organization_id: string;
24
+ }
25
+ /**
26
+ * Check if a given object implements the AdminPhoneNumberAssignOutbound interface.
27
+ */
28
+ export declare function instanceOfAdminPhoneNumberAssignOutbound(value: object): value is AdminPhoneNumberAssignOutbound;
29
+ export declare function AdminPhoneNumberAssignOutboundFromJSON(json: any): AdminPhoneNumberAssignOutbound;
30
+ export declare function AdminPhoneNumberAssignOutboundFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminPhoneNumberAssignOutbound;
31
+ export declare function AdminPhoneNumberAssignOutboundToJSON(json: any): AdminPhoneNumberAssignOutbound;
32
+ export declare function AdminPhoneNumberAssignOutboundToJSONTyped(value?: AdminPhoneNumberAssignOutbound | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Tivadar AI Backend API
6
+ * Unified REST API for Tivadar AI Voice Agents platform
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfAdminPhoneNumberAssignOutbound = instanceOfAdminPhoneNumberAssignOutbound;
17
+ exports.AdminPhoneNumberAssignOutboundFromJSON = AdminPhoneNumberAssignOutboundFromJSON;
18
+ exports.AdminPhoneNumberAssignOutboundFromJSONTyped = AdminPhoneNumberAssignOutboundFromJSONTyped;
19
+ exports.AdminPhoneNumberAssignOutboundToJSON = AdminPhoneNumberAssignOutboundToJSON;
20
+ exports.AdminPhoneNumberAssignOutboundToJSONTyped = AdminPhoneNumberAssignOutboundToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the AdminPhoneNumberAssignOutbound interface.
23
+ */
24
+ function instanceOfAdminPhoneNumberAssignOutbound(value) {
25
+ if (!('organization_id' in value) || value['organization_id'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ function AdminPhoneNumberAssignOutboundFromJSON(json) {
30
+ return AdminPhoneNumberAssignOutboundFromJSONTyped(json, false);
31
+ }
32
+ function AdminPhoneNumberAssignOutboundFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'organization_id': json['organization_id'],
38
+ };
39
+ }
40
+ function AdminPhoneNumberAssignOutboundToJSON(json) {
41
+ return AdminPhoneNumberAssignOutboundToJSONTyped(json, false);
42
+ }
43
+ function AdminPhoneNumberAssignOutboundToJSONTyped(value, ignoreDiscriminator = false) {
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ 'organization_id': value['organization_id'],
49
+ };
50
+ }
@@ -33,6 +33,36 @@ export interface AdminPhoneNumberDetail {
33
33
  * @memberof AdminPhoneNumberDetail
34
34
  */
35
35
  supports_call_redirect?: boolean;
36
+ /**
37
+ *
38
+ * @type {boolean}
39
+ * @memberof AdminPhoneNumberDetail
40
+ */
41
+ supports_outbound?: boolean;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof AdminPhoneNumberDetail
46
+ */
47
+ sip_address?: string | null;
48
+ /**
49
+ *
50
+ * @type {boolean}
51
+ * @memberof AdminPhoneNumberDetail
52
+ */
53
+ outbound_configured?: boolean;
54
+ /**
55
+ *
56
+ * @type {string}
57
+ * @memberof AdminPhoneNumberDetail
58
+ */
59
+ outbound_organization_id?: string | null;
60
+ /**
61
+ *
62
+ * @type {string}
63
+ * @memberof AdminPhoneNumberDetail
64
+ */
65
+ outbound_organization_name?: string | null;
36
66
  /**
37
67
  *
38
68
  * @type {string}
@@ -43,6 +43,11 @@ function AdminPhoneNumberDetailFromJSONTyped(json, ignoreDiscriminator) {
43
43
  'id': json['id'] == null ? undefined : json['id'],
44
44
  'number': json['number'] == null ? undefined : json['number'],
45
45
  'supports_call_redirect': json['supports_call_redirect'] == null ? undefined : json['supports_call_redirect'],
46
+ 'supports_outbound': json['supports_outbound'] == null ? undefined : json['supports_outbound'],
47
+ 'sip_address': json['sip_address'] == null ? undefined : json['sip_address'],
48
+ 'outbound_configured': json['outbound_configured'] == null ? undefined : json['outbound_configured'],
49
+ 'outbound_organization_id': json['outbound_organization_id'] == null ? undefined : json['outbound_organization_id'],
50
+ 'outbound_organization_name': json['outbound_organization_name'] == null ? undefined : json['outbound_organization_name'],
46
51
  'status': json['status'] == null ? undefined : json['status'],
47
52
  'created_at': json['created_at'] == null ? undefined : (new Date(json['created_at'])),
48
53
  'sip_trunk_id': json['sip_trunk_id'] == null ? undefined : json['sip_trunk_id'],
@@ -64,6 +69,11 @@ function AdminPhoneNumberDetailToJSONTyped(value, ignoreDiscriminator = false) {
64
69
  'id': value['id'],
65
70
  'number': value['number'],
66
71
  'supports_call_redirect': value['supports_call_redirect'],
72
+ 'supports_outbound': value['supports_outbound'],
73
+ 'sip_address': value['sip_address'],
74
+ 'outbound_configured': value['outbound_configured'],
75
+ 'outbound_organization_id': value['outbound_organization_id'],
76
+ 'outbound_organization_name': value['outbound_organization_name'],
67
77
  'status': value['status'],
68
78
  'created_at': value['created_at'] == null ? value['created_at'] : value['created_at'].toISOString(),
69
79
  'sip_trunk_id': value['sip_trunk_id'],
@@ -27,6 +27,24 @@ export interface AdminPhoneNumberUpdate {
27
27
  * @memberof AdminPhoneNumberUpdate
28
28
  */
29
29
  supports_call_redirect?: boolean;
30
+ /**
31
+ * Update the outbound SIP address (outbound numbers only).
32
+ * @type {string}
33
+ * @memberof AdminPhoneNumberUpdate
34
+ */
35
+ sip_address?: string;
36
+ /**
37
+ * Update the outbound SIP auth username (re-encrypted).
38
+ * @type {string}
39
+ * @memberof AdminPhoneNumberUpdate
40
+ */
41
+ auth_username?: string;
42
+ /**
43
+ * Update the outbound SIP auth password (re-encrypted).
44
+ * @type {string}
45
+ * @memberof AdminPhoneNumberUpdate
46
+ */
47
+ auth_password?: string;
30
48
  }
31
49
  /**
32
50
  * Check if a given object implements the AdminPhoneNumberUpdate interface.
@@ -34,6 +34,9 @@ function AdminPhoneNumberUpdateFromJSONTyped(json, ignoreDiscriminator) {
34
34
  return {
35
35
  'number': json['number'] == null ? undefined : json['number'],
36
36
  'supports_call_redirect': json['supports_call_redirect'] == null ? undefined : json['supports_call_redirect'],
37
+ 'sip_address': json['sip_address'] == null ? undefined : json['sip_address'],
38
+ 'auth_username': json['auth_username'] == null ? undefined : json['auth_username'],
39
+ 'auth_password': json['auth_password'] == null ? undefined : json['auth_password'],
37
40
  };
38
41
  }
39
42
  function AdminPhoneNumberUpdateToJSON(json) {
@@ -46,5 +49,8 @@ function AdminPhoneNumberUpdateToJSONTyped(value, ignoreDiscriminator = false) {
46
49
  return {
47
50
  'number': value['number'],
48
51
  'supports_call_redirect': value['supports_call_redirect'],
52
+ 'sip_address': value['sip_address'],
53
+ 'auth_username': value['auth_username'],
54
+ 'auth_password': value['auth_password'],
49
55
  };
50
56
  }
@@ -0,0 +1,68 @@
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 OutboundCall
16
+ */
17
+ export interface OutboundCall {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof OutboundCall
22
+ */
23
+ call_id?: string | null;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof OutboundCall
28
+ */
29
+ room_name?: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof OutboundCall
34
+ */
35
+ destination?: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof OutboundCall
40
+ */
41
+ from_number?: string;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof OutboundCall
46
+ */
47
+ participant_identity?: string;
48
+ /**
49
+ *
50
+ * @type {string}
51
+ * @memberof OutboundCall
52
+ */
53
+ sip_participant_id?: string | null;
54
+ /**
55
+ *
56
+ * @type {boolean}
57
+ * @memberof OutboundCall
58
+ */
59
+ dispatched?: boolean;
60
+ }
61
+ /**
62
+ * Check if a given object implements the OutboundCall interface.
63
+ */
64
+ export declare function instanceOfOutboundCall(value: object): value is OutboundCall;
65
+ export declare function OutboundCallFromJSON(json: any): OutboundCall;
66
+ export declare function OutboundCallFromJSONTyped(json: any, ignoreDiscriminator: boolean): OutboundCall;
67
+ export declare function OutboundCallToJSON(json: any): OutboundCall;
68
+ export declare function OutboundCallToJSONTyped(value?: OutboundCall | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,60 @@
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.instanceOfOutboundCall = instanceOfOutboundCall;
17
+ exports.OutboundCallFromJSON = OutboundCallFromJSON;
18
+ exports.OutboundCallFromJSONTyped = OutboundCallFromJSONTyped;
19
+ exports.OutboundCallToJSON = OutboundCallToJSON;
20
+ exports.OutboundCallToJSONTyped = OutboundCallToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the OutboundCall interface.
23
+ */
24
+ function instanceOfOutboundCall(value) {
25
+ return true;
26
+ }
27
+ function OutboundCallFromJSON(json) {
28
+ return OutboundCallFromJSONTyped(json, false);
29
+ }
30
+ function OutboundCallFromJSONTyped(json, ignoreDiscriminator) {
31
+ if (json == null) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'call_id': json['call_id'] == null ? undefined : json['call_id'],
36
+ 'room_name': json['room_name'] == null ? undefined : json['room_name'],
37
+ 'destination': json['destination'] == null ? undefined : json['destination'],
38
+ 'from_number': json['from_number'] == null ? undefined : json['from_number'],
39
+ 'participant_identity': json['participant_identity'] == null ? undefined : json['participant_identity'],
40
+ 'sip_participant_id': json['sip_participant_id'] == null ? undefined : json['sip_participant_id'],
41
+ 'dispatched': json['dispatched'] == null ? undefined : json['dispatched'],
42
+ };
43
+ }
44
+ function OutboundCallToJSON(json) {
45
+ return OutboundCallToJSONTyped(json, false);
46
+ }
47
+ function OutboundCallToJSONTyped(value, ignoreDiscriminator = false) {
48
+ if (value == null) {
49
+ return value;
50
+ }
51
+ return {
52
+ 'call_id': value['call_id'],
53
+ 'room_name': value['room_name'],
54
+ 'destination': value['destination'],
55
+ 'from_number': value['from_number'],
56
+ 'participant_identity': value['participant_identity'],
57
+ 'sip_participant_id': value['sip_participant_id'],
58
+ 'dispatched': value['dispatched'],
59
+ };
60
+ }
@@ -0,0 +1,50 @@
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 OutboundCallRequest
16
+ */
17
+ export interface OutboundCallRequest {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof OutboundCallRequest
22
+ */
23
+ voice_agent_id: string;
24
+ /**
25
+ * Destination from a phonebook entry. Provide this OR destination_number.
26
+ * @type {string}
27
+ * @memberof OutboundCallRequest
28
+ */
29
+ phonebook_entry_id?: string;
30
+ /**
31
+ * Custom destination phone number. Provide this OR phonebook_entry_id.
32
+ * @type {string}
33
+ * @memberof OutboundCallRequest
34
+ */
35
+ destination_number?: string;
36
+ /**
37
+ * Which of the org's outbound-capable numbers to use as caller-ID (From). Omit to auto-select.
38
+ * @type {number}
39
+ * @memberof OutboundCallRequest
40
+ */
41
+ from_phone_number_id?: number;
42
+ }
43
+ /**
44
+ * Check if a given object implements the OutboundCallRequest interface.
45
+ */
46
+ export declare function instanceOfOutboundCallRequest(value: object): value is OutboundCallRequest;
47
+ export declare function OutboundCallRequestFromJSON(json: any): OutboundCallRequest;
48
+ export declare function OutboundCallRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): OutboundCallRequest;
49
+ export declare function OutboundCallRequestToJSON(json: any): OutboundCallRequest;
50
+ export declare function OutboundCallRequestToJSONTyped(value?: OutboundCallRequest | null, ignoreDiscriminator?: boolean): any;