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.
@@ -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.18",
47
- "User-Agent": "phonic/0.32.18",
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);
@@ -255,6 +255,7 @@ export declare class AgentsClient {
255
255
  * timeout_ms: 7000
256
256
  * },
257
257
  * sip: {
258
+ * transport: "tls",
258
259
  * media_encryption: "required"
259
260
  * }
260
261
  * })
@@ -578,6 +578,7 @@ class AgentsClient {
578
578
  * timeout_ms: 7000
579
579
  * },
580
580
  * sip: {
581
+ * transport: "tls",
581
582
  * media_encryption: "required"
582
583
  * }
583
584
  * })
@@ -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";
@@ -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",
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.32.18";
1
+ export declare const SDK_VERSION = "0.32.19";
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "0.32.18";
4
+ exports.SDK_VERSION = "0.32.19";
@@ -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.18",
10
- "User-Agent": "phonic/0.32.18",
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);
@@ -255,6 +255,7 @@ export declare class AgentsClient {
255
255
  * timeout_ms: 7000
256
256
  * },
257
257
  * sip: {
258
+ * transport: "tls",
258
259
  * media_encryption: "required"
259
260
  * }
260
261
  * })
@@ -542,6 +542,7 @@ export class AgentsClient {
542
542
  * timeout_ms: 7000
543
543
  * },
544
544
  * sip: {
545
+ * transport: "tls",
545
546
  * media_encryption: "required"
546
547
  * }
547
548
  * })
@@ -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";
@@ -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",
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.32.18";
1
+ export declare const SDK_VERSION = "0.32.19";
@@ -1 +1 @@
1
- export const SDK_VERSION = "0.32.18";
1
+ export const SDK_VERSION = "0.32.19";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "phonic",
3
- "version": "0.32.18",
3
+ "version": "0.32.19",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",
package/reference.md CHANGED
@@ -570,6 +570,7 @@ await client.agents.addCustomPhoneNumber("nameOrId", {
570
570
  timeout_ms: 7000
571
571
  },
572
572
  sip: {
573
+ transport: "tls",
573
574
  media_encryption: "required"
574
575
  }
575
576
  });