phonic 0.32.18 → 0.32.19
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.
- package/dist/cjs/BaseClient.js +2 -2
- package/dist/cjs/api/resources/agents/client/Client.d.ts +1 -0
- package/dist/cjs/api/resources/agents/client/Client.js +1 -0
- package/dist/cjs/api/resources/agents/client/requests/AgentsAddCustomPhoneNumberRequest.d.ts +11 -0
- package/dist/cjs/api/resources/agents/client/requests/AgentsAddCustomPhoneNumberRequest.js +7 -0
- package/dist/cjs/api/resources/conversations/client/requests/ConversationsSipOutboundCallRequest.d.ts +10 -0
- package/dist/cjs/api/resources/conversations/client/requests/ConversationsSipOutboundCallRequest.js +7 -0
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.mjs +2 -2
- package/dist/esm/api/resources/agents/client/Client.d.mts +1 -0
- package/dist/esm/api/resources/agents/client/Client.mjs +1 -0
- package/dist/esm/api/resources/agents/client/requests/AgentsAddCustomPhoneNumberRequest.d.mts +11 -0
- package/dist/esm/api/resources/agents/client/requests/AgentsAddCustomPhoneNumberRequest.mjs +7 -0
- package/dist/esm/api/resources/conversations/client/requests/ConversationsSipOutboundCallRequest.d.mts +10 -0
- package/dist/esm/api/resources/conversations/client/requests/ConversationsSipOutboundCallRequest.mjs +7 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +1 -0
package/dist/cjs/BaseClient.js
CHANGED
|
@@ -43,8 +43,8 @@ function normalizeClientOptions(options) {
|
|
|
43
43
|
const headers = (0, headers_js_1.mergeHeaders)({
|
|
44
44
|
"X-Fern-Language": "JavaScript",
|
|
45
45
|
"X-Fern-SDK-Name": "phonic",
|
|
46
|
-
"X-Fern-SDK-Version": "0.32.
|
|
47
|
-
"User-Agent": "phonic/0.32.
|
|
46
|
+
"X-Fern-SDK-Version": "0.32.19",
|
|
47
|
+
"User-Agent": "phonic/0.32.19",
|
|
48
48
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
49
49
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
50
50
|
}, options === null || options === void 0 ? void 0 : options.headers);
|
package/dist/cjs/api/resources/agents/client/requests/AgentsAddCustomPhoneNumberRequest.d.ts
CHANGED
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
* timeout_ms: 7000
|
|
15
15
|
* },
|
|
16
16
|
* sip: {
|
|
17
|
+
* transport: "tls",
|
|
17
18
|
* media_encryption: "required"
|
|
18
19
|
* }
|
|
19
20
|
* }
|
|
@@ -50,10 +51,20 @@ export declare namespace AgentsAddCustomPhoneNumberRequest {
|
|
|
50
51
|
* SIP trunk settings for this phone number, applied to both its inbound trunk and the trunk created for each outbound call. Set at creation; remove and re-add the number to change them.
|
|
51
52
|
*/
|
|
52
53
|
interface Sip {
|
|
54
|
+
/** SIP signaling transport used for calls on this phone number. The SIP address must not carry a `;transport=` parameter; set it here instead. */
|
|
55
|
+
transport?: Sip.Transport | undefined;
|
|
53
56
|
/** Whether media (SRTP) encryption is used on calls on this phone number. */
|
|
54
57
|
media_encryption?: Sip.MediaEncryption | undefined;
|
|
55
58
|
}
|
|
56
59
|
namespace Sip {
|
|
60
|
+
/** SIP signaling transport used for calls on this phone number. The SIP address must not carry a `;transport=` parameter; set it here instead. */
|
|
61
|
+
const Transport: {
|
|
62
|
+
readonly Auto: "auto";
|
|
63
|
+
readonly Udp: "udp";
|
|
64
|
+
readonly Tcp: "tcp";
|
|
65
|
+
readonly Tls: "tls";
|
|
66
|
+
};
|
|
67
|
+
type Transport = (typeof Transport)[keyof typeof Transport];
|
|
57
68
|
/** Whether media (SRTP) encryption is used on calls on this phone number. */
|
|
58
69
|
const MediaEncryption: {
|
|
59
70
|
readonly Disabled: "disabled";
|
|
@@ -6,6 +6,13 @@ var AgentsAddCustomPhoneNumberRequest;
|
|
|
6
6
|
(function (AgentsAddCustomPhoneNumberRequest) {
|
|
7
7
|
let Sip;
|
|
8
8
|
(function (Sip) {
|
|
9
|
+
/** SIP signaling transport used for calls on this phone number. The SIP address must not carry a `;transport=` parameter; set it here instead. */
|
|
10
|
+
Sip.Transport = {
|
|
11
|
+
Auto: "auto",
|
|
12
|
+
Udp: "udp",
|
|
13
|
+
Tcp: "tcp",
|
|
14
|
+
Tls: "tls",
|
|
15
|
+
};
|
|
9
16
|
/** Whether media (SRTP) encryption is used on calls on this phone number. */
|
|
10
17
|
Sip.MediaEncryption = {
|
|
11
18
|
Disabled: "disabled",
|
|
@@ -29,10 +29,20 @@ export declare namespace ConversationsSipOutboundCallRequest {
|
|
|
29
29
|
* SIP trunk settings for the outbound trunk created for this call.
|
|
30
30
|
*/
|
|
31
31
|
interface Sip {
|
|
32
|
+
/** SIP signaling transport used for this call. The SIP address must not carry a `;transport=` parameter; set it here instead. */
|
|
33
|
+
transport?: Sip.Transport | undefined;
|
|
32
34
|
/** Whether media (SRTP) encryption is used on this call. */
|
|
33
35
|
media_encryption?: Sip.MediaEncryption | undefined;
|
|
34
36
|
}
|
|
35
37
|
namespace Sip {
|
|
38
|
+
/** SIP signaling transport used for this call. The SIP address must not carry a `;transport=` parameter; set it here instead. */
|
|
39
|
+
const Transport: {
|
|
40
|
+
readonly Auto: "auto";
|
|
41
|
+
readonly Udp: "udp";
|
|
42
|
+
readonly Tcp: "tcp";
|
|
43
|
+
readonly Tls: "tls";
|
|
44
|
+
};
|
|
45
|
+
type Transport = (typeof Transport)[keyof typeof Transport];
|
|
36
46
|
/** Whether media (SRTP) encryption is used on this call. */
|
|
37
47
|
const MediaEncryption: {
|
|
38
48
|
readonly Disabled: "disabled";
|
package/dist/cjs/api/resources/conversations/client/requests/ConversationsSipOutboundCallRequest.js
CHANGED
|
@@ -6,6 +6,13 @@ var ConversationsSipOutboundCallRequest;
|
|
|
6
6
|
(function (ConversationsSipOutboundCallRequest) {
|
|
7
7
|
let Sip;
|
|
8
8
|
(function (Sip) {
|
|
9
|
+
/** SIP signaling transport used for this call. The SIP address must not carry a `;transport=` parameter; set it here instead. */
|
|
10
|
+
Sip.Transport = {
|
|
11
|
+
Auto: "auto",
|
|
12
|
+
Udp: "udp",
|
|
13
|
+
Tcp: "tcp",
|
|
14
|
+
Tls: "tls",
|
|
15
|
+
};
|
|
9
16
|
/** Whether media (SRTP) encryption is used on this call. */
|
|
10
17
|
Sip.MediaEncryption = {
|
|
11
18
|
Disabled: "disabled",
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.32.
|
|
1
|
+
export declare const SDK_VERSION = "0.32.19";
|
package/dist/cjs/version.js
CHANGED
package/dist/esm/BaseClient.mjs
CHANGED
|
@@ -6,8 +6,8 @@ export function normalizeClientOptions(options) {
|
|
|
6
6
|
const headers = mergeHeaders({
|
|
7
7
|
"X-Fern-Language": "JavaScript",
|
|
8
8
|
"X-Fern-SDK-Name": "phonic",
|
|
9
|
-
"X-Fern-SDK-Version": "0.32.
|
|
10
|
-
"User-Agent": "phonic/0.32.
|
|
9
|
+
"X-Fern-SDK-Version": "0.32.19",
|
|
10
|
+
"User-Agent": "phonic/0.32.19",
|
|
11
11
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
12
12
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
13
13
|
}, options === null || options === void 0 ? void 0 : options.headers);
|
package/dist/esm/api/resources/agents/client/requests/AgentsAddCustomPhoneNumberRequest.d.mts
CHANGED
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
* timeout_ms: 7000
|
|
15
15
|
* },
|
|
16
16
|
* sip: {
|
|
17
|
+
* transport: "tls",
|
|
17
18
|
* media_encryption: "required"
|
|
18
19
|
* }
|
|
19
20
|
* }
|
|
@@ -50,10 +51,20 @@ export declare namespace AgentsAddCustomPhoneNumberRequest {
|
|
|
50
51
|
* SIP trunk settings for this phone number, applied to both its inbound trunk and the trunk created for each outbound call. Set at creation; remove and re-add the number to change them.
|
|
51
52
|
*/
|
|
52
53
|
interface Sip {
|
|
54
|
+
/** SIP signaling transport used for calls on this phone number. The SIP address must not carry a `;transport=` parameter; set it here instead. */
|
|
55
|
+
transport?: Sip.Transport | undefined;
|
|
53
56
|
/** Whether media (SRTP) encryption is used on calls on this phone number. */
|
|
54
57
|
media_encryption?: Sip.MediaEncryption | undefined;
|
|
55
58
|
}
|
|
56
59
|
namespace Sip {
|
|
60
|
+
/** SIP signaling transport used for calls on this phone number. The SIP address must not carry a `;transport=` parameter; set it here instead. */
|
|
61
|
+
const Transport: {
|
|
62
|
+
readonly Auto: "auto";
|
|
63
|
+
readonly Udp: "udp";
|
|
64
|
+
readonly Tcp: "tcp";
|
|
65
|
+
readonly Tls: "tls";
|
|
66
|
+
};
|
|
67
|
+
type Transport = (typeof Transport)[keyof typeof Transport];
|
|
57
68
|
/** Whether media (SRTP) encryption is used on calls on this phone number. */
|
|
58
69
|
const MediaEncryption: {
|
|
59
70
|
readonly Disabled: "disabled";
|
|
@@ -3,6 +3,13 @@ export var AgentsAddCustomPhoneNumberRequest;
|
|
|
3
3
|
(function (AgentsAddCustomPhoneNumberRequest) {
|
|
4
4
|
let Sip;
|
|
5
5
|
(function (Sip) {
|
|
6
|
+
/** SIP signaling transport used for calls on this phone number. The SIP address must not carry a `;transport=` parameter; set it here instead. */
|
|
7
|
+
Sip.Transport = {
|
|
8
|
+
Auto: "auto",
|
|
9
|
+
Udp: "udp",
|
|
10
|
+
Tcp: "tcp",
|
|
11
|
+
Tls: "tls",
|
|
12
|
+
};
|
|
6
13
|
/** Whether media (SRTP) encryption is used on calls on this phone number. */
|
|
7
14
|
Sip.MediaEncryption = {
|
|
8
15
|
Disabled: "disabled",
|
|
@@ -29,10 +29,20 @@ export declare namespace ConversationsSipOutboundCallRequest {
|
|
|
29
29
|
* SIP trunk settings for the outbound trunk created for this call.
|
|
30
30
|
*/
|
|
31
31
|
interface Sip {
|
|
32
|
+
/** SIP signaling transport used for this call. The SIP address must not carry a `;transport=` parameter; set it here instead. */
|
|
33
|
+
transport?: Sip.Transport | undefined;
|
|
32
34
|
/** Whether media (SRTP) encryption is used on this call. */
|
|
33
35
|
media_encryption?: Sip.MediaEncryption | undefined;
|
|
34
36
|
}
|
|
35
37
|
namespace Sip {
|
|
38
|
+
/** SIP signaling transport used for this call. The SIP address must not carry a `;transport=` parameter; set it here instead. */
|
|
39
|
+
const Transport: {
|
|
40
|
+
readonly Auto: "auto";
|
|
41
|
+
readonly Udp: "udp";
|
|
42
|
+
readonly Tcp: "tcp";
|
|
43
|
+
readonly Tls: "tls";
|
|
44
|
+
};
|
|
45
|
+
type Transport = (typeof Transport)[keyof typeof Transport];
|
|
36
46
|
/** Whether media (SRTP) encryption is used on this call. */
|
|
37
47
|
const MediaEncryption: {
|
|
38
48
|
readonly Disabled: "disabled";
|
package/dist/esm/api/resources/conversations/client/requests/ConversationsSipOutboundCallRequest.mjs
CHANGED
|
@@ -3,6 +3,13 @@ export var ConversationsSipOutboundCallRequest;
|
|
|
3
3
|
(function (ConversationsSipOutboundCallRequest) {
|
|
4
4
|
let Sip;
|
|
5
5
|
(function (Sip) {
|
|
6
|
+
/** SIP signaling transport used for this call. The SIP address must not carry a `;transport=` parameter; set it here instead. */
|
|
7
|
+
Sip.Transport = {
|
|
8
|
+
Auto: "auto",
|
|
9
|
+
Udp: "udp",
|
|
10
|
+
Tcp: "tcp",
|
|
11
|
+
Tls: "tls",
|
|
12
|
+
};
|
|
6
13
|
/** Whether media (SRTP) encryption is used on this call. */
|
|
7
14
|
Sip.MediaEncryption = {
|
|
8
15
|
Disabled: "disabled",
|
package/dist/esm/version.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.32.
|
|
1
|
+
export declare const SDK_VERSION = "0.32.19";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "0.32.
|
|
1
|
+
export const SDK_VERSION = "0.32.19";
|
package/package.json
CHANGED