telnyx 6.72.0 → 6.73.0
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/CHANGELOG.md +8 -0
- package/client.d.mts +6 -0
- package/client.d.mts.map +1 -1
- package/client.d.ts +6 -0
- package/client.d.ts.map +1 -1
- package/client.js +6 -0
- package/client.js.map +1 -1
- package/client.mjs +6 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/index.d.mts +1 -0
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -0
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +4 -2
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -0
- package/resources/index.mjs.map +1 -1
- package/resources/sip-registration-status.d.mts +91 -0
- package/resources/sip-registration-status.d.mts.map +1 -0
- package/resources/sip-registration-status.d.ts +91 -0
- package/resources/sip-registration-status.d.ts.map +1 -0
- package/resources/sip-registration-status.js +20 -0
- package/resources/sip-registration-status.js.map +1 -0
- package/resources/sip-registration-status.mjs +16 -0
- package/resources/sip-registration-status.mjs.map +1 -0
- package/src/client.ts +16 -0
- package/src/resources/index.ts +5 -0
- package/src/resources/sip-registration-status.ts +123 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.mjs";
|
|
2
|
+
import { APIPromise } from "../core/api-promise.mjs";
|
|
3
|
+
import { RequestOptions } from "../internal/request-options.mjs";
|
|
4
|
+
/**
|
|
5
|
+
* Look up SIP registration status across credential types
|
|
6
|
+
*/
|
|
7
|
+
export declare class SipRegistrationStatus extends APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Returns the live SIP registration state of a connection or credential. Supports
|
|
10
|
+
* UAC third-party credentials, telephony credentials, and SIP credential
|
|
11
|
+
* connections.
|
|
12
|
+
*/
|
|
13
|
+
retrieve(query: SipRegistrationStatusRetrieveParams, options?: RequestOptions): APIPromise<SipRegistrationStatusRetrieveResponse>;
|
|
14
|
+
}
|
|
15
|
+
export interface SipRegistrationStatusRetrieveResponse {
|
|
16
|
+
/**
|
|
17
|
+
* Identifier of the resource.
|
|
18
|
+
*/
|
|
19
|
+
connection_id?: string;
|
|
20
|
+
/**
|
|
21
|
+
* Human-readable connection name.
|
|
22
|
+
*/
|
|
23
|
+
connection_name?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Outward-facing SIP settings used for registration. Password is redacted.
|
|
26
|
+
*/
|
|
27
|
+
external_uac_settings?: SipRegistrationStatusRetrieveResponse.ExternalUacSettings;
|
|
28
|
+
/**
|
|
29
|
+
* Internal routing target the connection delivers calls to.
|
|
30
|
+
*/
|
|
31
|
+
internal_uac_settings?: SipRegistrationStatusRetrieveResponse.InternalUacSettings;
|
|
32
|
+
/**
|
|
33
|
+
* SIP response from the last registration attempt.
|
|
34
|
+
*/
|
|
35
|
+
last_registration_response?: string;
|
|
36
|
+
/**
|
|
37
|
+
* Internal pairing state, e.g. ACTIVE or INACTIVE.
|
|
38
|
+
*/
|
|
39
|
+
pair_state?: string;
|
|
40
|
+
/**
|
|
41
|
+
* True if the endpoint is currently registered.
|
|
42
|
+
*/
|
|
43
|
+
registered?: boolean;
|
|
44
|
+
/**
|
|
45
|
+
* Owner of the resource.
|
|
46
|
+
*/
|
|
47
|
+
user_id?: string;
|
|
48
|
+
/**
|
|
49
|
+
* SIP username used for the registration.
|
|
50
|
+
*/
|
|
51
|
+
username?: string;
|
|
52
|
+
}
|
|
53
|
+
export declare namespace SipRegistrationStatusRetrieveResponse {
|
|
54
|
+
/**
|
|
55
|
+
* Outward-facing SIP settings used for registration. Password is redacted.
|
|
56
|
+
*/
|
|
57
|
+
interface ExternalUacSettings {
|
|
58
|
+
auth_username?: string;
|
|
59
|
+
expiration_sec?: number;
|
|
60
|
+
from_user?: string;
|
|
61
|
+
outbound_proxy?: string;
|
|
62
|
+
password?: string;
|
|
63
|
+
proxy?: string;
|
|
64
|
+
transport?: 'TCP' | 'UDP' | 'TLS';
|
|
65
|
+
username?: string;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Internal routing target the connection delivers calls to.
|
|
69
|
+
*/
|
|
70
|
+
interface InternalUacSettings {
|
|
71
|
+
destination_uri?: string;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
export interface SipRegistrationStatusRetrieveParams {
|
|
75
|
+
/**
|
|
76
|
+
* Identifier of the connection or credential to look up.
|
|
77
|
+
*/
|
|
78
|
+
connection_id: string;
|
|
79
|
+
/**
|
|
80
|
+
* The kind of credential to look up.
|
|
81
|
+
*/
|
|
82
|
+
credential_type: 'uac_external_credential' | 'telephony_credential' | 'sip_credential_connection';
|
|
83
|
+
/**
|
|
84
|
+
* Owner of the connection. Used to authorize the lookup.
|
|
85
|
+
*/
|
|
86
|
+
user_id: string;
|
|
87
|
+
}
|
|
88
|
+
export declare namespace SipRegistrationStatus {
|
|
89
|
+
export { type SipRegistrationStatusRetrieveResponse as SipRegistrationStatusRetrieveResponse, type SipRegistrationStatusRetrieveParams as SipRegistrationStatusRetrieveParams, };
|
|
90
|
+
}
|
|
91
|
+
//# sourceMappingURL=sip-registration-status.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sip-registration-status.d.mts","sourceRoot":"","sources":["../src/resources/sip-registration-status.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,gCAA4B;AACjD,OAAO,EAAE,cAAc,EAAE,wCAAoC;AAE7D;;GAEG;AACH,qBAAa,qBAAsB,SAAQ,WAAW;IACpD;;;;OAIG;IACH,QAAQ,CACN,KAAK,EAAE,mCAAmC,EAC1C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,qCAAqC,CAAC;CAGrD;AAED,MAAM,WAAW,qCAAqC;IACpD;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB;;OAEG;IACH,qBAAqB,CAAC,EAAE,qCAAqC,CAAC,mBAAmB,CAAC;IAElF;;OAEG;IACH,qBAAqB,CAAC,EAAE,qCAAqC,CAAC,mBAAmB,CAAC;IAElF;;OAEG;IACH,0BAA0B,CAAC,EAAE,MAAM,CAAC;IAEpC;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,yBAAiB,qCAAqC,CAAC;IACrD;;OAEG;IACH,UAAiB,mBAAmB;QAClC,aAAa,CAAC,EAAE,MAAM,CAAC;QAEvB,cAAc,CAAC,EAAE,MAAM,CAAC;QAExB,SAAS,CAAC,EAAE,MAAM,CAAC;QAEnB,cAAc,CAAC,EAAE,MAAM,CAAC;QAExB,QAAQ,CAAC,EAAE,MAAM,CAAC;QAElB,KAAK,CAAC,EAAE,MAAM,CAAC;QAEf,SAAS,CAAC,EAAE,KAAK,GAAG,KAAK,GAAG,KAAK,CAAC;QAElC,QAAQ,CAAC,EAAE,MAAM,CAAC;KACnB;IAED;;OAEG;IACH,UAAiB,mBAAmB;QAClC,eAAe,CAAC,EAAE,MAAM,CAAC;KAC1B;CACF;AAED,MAAM,WAAW,mCAAmC;IAClD;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,eAAe,EAAE,yBAAyB,GAAG,sBAAsB,GAAG,2BAA2B,CAAC;IAElG;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,CAAC,OAAO,WAAW,qBAAqB,CAAC;IAC7C,OAAO,EACL,KAAK,qCAAqC,IAAI,qCAAqC,EACnF,KAAK,mCAAmC,IAAI,mCAAmC,GAChF,CAAC;CACH"}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.js";
|
|
2
|
+
import { APIPromise } from "../core/api-promise.js";
|
|
3
|
+
import { RequestOptions } from "../internal/request-options.js";
|
|
4
|
+
/**
|
|
5
|
+
* Look up SIP registration status across credential types
|
|
6
|
+
*/
|
|
7
|
+
export declare class SipRegistrationStatus extends APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Returns the live SIP registration state of a connection or credential. Supports
|
|
10
|
+
* UAC third-party credentials, telephony credentials, and SIP credential
|
|
11
|
+
* connections.
|
|
12
|
+
*/
|
|
13
|
+
retrieve(query: SipRegistrationStatusRetrieveParams, options?: RequestOptions): APIPromise<SipRegistrationStatusRetrieveResponse>;
|
|
14
|
+
}
|
|
15
|
+
export interface SipRegistrationStatusRetrieveResponse {
|
|
16
|
+
/**
|
|
17
|
+
* Identifier of the resource.
|
|
18
|
+
*/
|
|
19
|
+
connection_id?: string;
|
|
20
|
+
/**
|
|
21
|
+
* Human-readable connection name.
|
|
22
|
+
*/
|
|
23
|
+
connection_name?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Outward-facing SIP settings used for registration. Password is redacted.
|
|
26
|
+
*/
|
|
27
|
+
external_uac_settings?: SipRegistrationStatusRetrieveResponse.ExternalUacSettings;
|
|
28
|
+
/**
|
|
29
|
+
* Internal routing target the connection delivers calls to.
|
|
30
|
+
*/
|
|
31
|
+
internal_uac_settings?: SipRegistrationStatusRetrieveResponse.InternalUacSettings;
|
|
32
|
+
/**
|
|
33
|
+
* SIP response from the last registration attempt.
|
|
34
|
+
*/
|
|
35
|
+
last_registration_response?: string;
|
|
36
|
+
/**
|
|
37
|
+
* Internal pairing state, e.g. ACTIVE or INACTIVE.
|
|
38
|
+
*/
|
|
39
|
+
pair_state?: string;
|
|
40
|
+
/**
|
|
41
|
+
* True if the endpoint is currently registered.
|
|
42
|
+
*/
|
|
43
|
+
registered?: boolean;
|
|
44
|
+
/**
|
|
45
|
+
* Owner of the resource.
|
|
46
|
+
*/
|
|
47
|
+
user_id?: string;
|
|
48
|
+
/**
|
|
49
|
+
* SIP username used for the registration.
|
|
50
|
+
*/
|
|
51
|
+
username?: string;
|
|
52
|
+
}
|
|
53
|
+
export declare namespace SipRegistrationStatusRetrieveResponse {
|
|
54
|
+
/**
|
|
55
|
+
* Outward-facing SIP settings used for registration. Password is redacted.
|
|
56
|
+
*/
|
|
57
|
+
interface ExternalUacSettings {
|
|
58
|
+
auth_username?: string;
|
|
59
|
+
expiration_sec?: number;
|
|
60
|
+
from_user?: string;
|
|
61
|
+
outbound_proxy?: string;
|
|
62
|
+
password?: string;
|
|
63
|
+
proxy?: string;
|
|
64
|
+
transport?: 'TCP' | 'UDP' | 'TLS';
|
|
65
|
+
username?: string;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Internal routing target the connection delivers calls to.
|
|
69
|
+
*/
|
|
70
|
+
interface InternalUacSettings {
|
|
71
|
+
destination_uri?: string;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
export interface SipRegistrationStatusRetrieveParams {
|
|
75
|
+
/**
|
|
76
|
+
* Identifier of the connection or credential to look up.
|
|
77
|
+
*/
|
|
78
|
+
connection_id: string;
|
|
79
|
+
/**
|
|
80
|
+
* The kind of credential to look up.
|
|
81
|
+
*/
|
|
82
|
+
credential_type: 'uac_external_credential' | 'telephony_credential' | 'sip_credential_connection';
|
|
83
|
+
/**
|
|
84
|
+
* Owner of the connection. Used to authorize the lookup.
|
|
85
|
+
*/
|
|
86
|
+
user_id: string;
|
|
87
|
+
}
|
|
88
|
+
export declare namespace SipRegistrationStatus {
|
|
89
|
+
export { type SipRegistrationStatusRetrieveResponse as SipRegistrationStatusRetrieveResponse, type SipRegistrationStatusRetrieveParams as SipRegistrationStatusRetrieveParams, };
|
|
90
|
+
}
|
|
91
|
+
//# sourceMappingURL=sip-registration-status.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sip-registration-status.d.ts","sourceRoot":"","sources":["../src/resources/sip-registration-status.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,+BAA4B;AACjD,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAE7D;;GAEG;AACH,qBAAa,qBAAsB,SAAQ,WAAW;IACpD;;;;OAIG;IACH,QAAQ,CACN,KAAK,EAAE,mCAAmC,EAC1C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,qCAAqC,CAAC;CAGrD;AAED,MAAM,WAAW,qCAAqC;IACpD;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB;;OAEG;IACH,qBAAqB,CAAC,EAAE,qCAAqC,CAAC,mBAAmB,CAAC;IAElF;;OAEG;IACH,qBAAqB,CAAC,EAAE,qCAAqC,CAAC,mBAAmB,CAAC;IAElF;;OAEG;IACH,0BAA0B,CAAC,EAAE,MAAM,CAAC;IAEpC;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,yBAAiB,qCAAqC,CAAC;IACrD;;OAEG;IACH,UAAiB,mBAAmB;QAClC,aAAa,CAAC,EAAE,MAAM,CAAC;QAEvB,cAAc,CAAC,EAAE,MAAM,CAAC;QAExB,SAAS,CAAC,EAAE,MAAM,CAAC;QAEnB,cAAc,CAAC,EAAE,MAAM,CAAC;QAExB,QAAQ,CAAC,EAAE,MAAM,CAAC;QAElB,KAAK,CAAC,EAAE,MAAM,CAAC;QAEf,SAAS,CAAC,EAAE,KAAK,GAAG,KAAK,GAAG,KAAK,CAAC;QAElC,QAAQ,CAAC,EAAE,MAAM,CAAC;KACnB;IAED;;OAEG;IACH,UAAiB,mBAAmB;QAClC,eAAe,CAAC,EAAE,MAAM,CAAC;KAC1B;CACF;AAED,MAAM,WAAW,mCAAmC;IAClD;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,eAAe,EAAE,yBAAyB,GAAG,sBAAsB,GAAG,2BAA2B,CAAC;IAElG;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,CAAC,OAAO,WAAW,qBAAqB,CAAC;IAC7C,OAAO,EACL,KAAK,qCAAqC,IAAI,qCAAqC,EACnF,KAAK,mCAAmC,IAAI,mCAAmC,GAChF,CAAC;CACH"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.SipRegistrationStatus = void 0;
|
|
5
|
+
const resource_1 = require("../core/resource.js");
|
|
6
|
+
/**
|
|
7
|
+
* Look up SIP registration status across credential types
|
|
8
|
+
*/
|
|
9
|
+
class SipRegistrationStatus extends resource_1.APIResource {
|
|
10
|
+
/**
|
|
11
|
+
* Returns the live SIP registration state of a connection or credential. Supports
|
|
12
|
+
* UAC third-party credentials, telephony credentials, and SIP credential
|
|
13
|
+
* connections.
|
|
14
|
+
*/
|
|
15
|
+
retrieve(query, options) {
|
|
16
|
+
return this._client.get('/sip_registration_status', { query, ...options });
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
exports.SipRegistrationStatus = SipRegistrationStatus;
|
|
20
|
+
//# sourceMappingURL=sip-registration-status.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sip-registration-status.js","sourceRoot":"","sources":["../src/resources/sip-registration-status.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAI/C;;GAEG;AACH,MAAa,qBAAsB,SAAQ,sBAAW;IACpD;;;;OAIG;IACH,QAAQ,CACN,KAA0C,EAC1C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,0BAA0B,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7E,CAAC;CACF;AAZD,sDAYC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../core/resource.mjs";
|
|
3
|
+
/**
|
|
4
|
+
* Look up SIP registration status across credential types
|
|
5
|
+
*/
|
|
6
|
+
export class SipRegistrationStatus extends APIResource {
|
|
7
|
+
/**
|
|
8
|
+
* Returns the live SIP registration state of a connection or credential. Supports
|
|
9
|
+
* UAC third-party credentials, telephony credentials, and SIP credential
|
|
10
|
+
* connections.
|
|
11
|
+
*/
|
|
12
|
+
retrieve(query, options) {
|
|
13
|
+
return this._client.get('/sip_registration_status', { query, ...options });
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=sip-registration-status.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sip-registration-status.mjs","sourceRoot":"","sources":["../src/resources/sip-registration-status.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAI/C;;GAEG;AACH,MAAM,OAAO,qBAAsB,SAAQ,WAAW;IACpD;;;;OAIG;IACH,QAAQ,CACN,KAA0C,EAC1C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,0BAA0B,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7E,CAAC;CACF"}
|
package/src/client.ts
CHANGED
|
@@ -811,6 +811,11 @@ import {
|
|
|
811
811
|
SimCardOrders,
|
|
812
812
|
SimCardOrdersDefaultFlatPagination,
|
|
813
813
|
} from './resources/sim-card-orders';
|
|
814
|
+
import {
|
|
815
|
+
SipRegistrationStatus,
|
|
816
|
+
SipRegistrationStatusRetrieveParams,
|
|
817
|
+
SipRegistrationStatusRetrieveResponse,
|
|
818
|
+
} from './resources/sip-registration-status';
|
|
814
819
|
import {
|
|
815
820
|
SiprecConnectorCreateParams,
|
|
816
821
|
SiprecConnectorCreateResponse,
|
|
@@ -2995,6 +3000,10 @@ export class Telnyx {
|
|
|
2995
3000
|
* Retrieve raw Voice SDK call report stats payloads for WebRTC call troubleshooting.
|
|
2996
3001
|
*/
|
|
2997
3002
|
voiceSDKCallReports: API.VoiceSDKCallReports = new API.VoiceSDKCallReports(this);
|
|
3003
|
+
/**
|
|
3004
|
+
* Look up SIP registration status across credential types
|
|
3005
|
+
*/
|
|
3006
|
+
sipRegistrationStatus: API.SipRegistrationStatus = new API.SipRegistrationStatus(this);
|
|
2998
3007
|
}
|
|
2999
3008
|
|
|
3000
3009
|
Telnyx.Legacy = Legacy;
|
|
@@ -3163,6 +3172,7 @@ Telnyx.TermsOfService = TermsOfService;
|
|
|
3163
3172
|
Telnyx.PronunciationDicts = PronunciationDicts;
|
|
3164
3173
|
Telnyx.UacConnections = UacConnections;
|
|
3165
3174
|
Telnyx.VoiceSDKCallReports = VoiceSDKCallReports;
|
|
3175
|
+
Telnyx.SipRegistrationStatus = SipRegistrationStatus;
|
|
3166
3176
|
|
|
3167
3177
|
export declare namespace Telnyx {
|
|
3168
3178
|
export type RequestOptions = Opts.RequestOptions;
|
|
@@ -4963,6 +4973,12 @@ export declare namespace Telnyx {
|
|
|
4963
4973
|
type VoiceSDKCallReportListParams as VoiceSDKCallReportListParams,
|
|
4964
4974
|
};
|
|
4965
4975
|
|
|
4976
|
+
export {
|
|
4977
|
+
SipRegistrationStatus as SipRegistrationStatus,
|
|
4978
|
+
type SipRegistrationStatusRetrieveResponse as SipRegistrationStatusRetrieveResponse,
|
|
4979
|
+
type SipRegistrationStatusRetrieveParams as SipRegistrationStatusRetrieveParams,
|
|
4980
|
+
};
|
|
4981
|
+
|
|
4966
4982
|
export type APIError = API.APIError;
|
|
4967
4983
|
export type AvailablePhoneNumbersMetadata = API.AvailablePhoneNumbersMetadata;
|
|
4968
4984
|
export type AzureVoiceSettings = API.AzureVoiceSettings;
|
package/src/resources/index.ts
CHANGED
|
@@ -1163,6 +1163,11 @@ export {
|
|
|
1163
1163
|
type SimCardListWirelessConnectivityLogsParams,
|
|
1164
1164
|
type SimCardListWirelessConnectivityLogsResponsesDefaultFlatPagination,
|
|
1165
1165
|
} from './sim-cards/sim-cards';
|
|
1166
|
+
export {
|
|
1167
|
+
SipRegistrationStatus,
|
|
1168
|
+
type SipRegistrationStatusRetrieveResponse,
|
|
1169
|
+
type SipRegistrationStatusRetrieveParams,
|
|
1170
|
+
} from './sip-registration-status';
|
|
1166
1171
|
export {
|
|
1167
1172
|
SiprecConnectors,
|
|
1168
1173
|
type SiprecConnectorCreateResponse,
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../core/resource';
|
|
4
|
+
import { APIPromise } from '../core/api-promise';
|
|
5
|
+
import { RequestOptions } from '../internal/request-options';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Look up SIP registration status across credential types
|
|
9
|
+
*/
|
|
10
|
+
export class SipRegistrationStatus extends APIResource {
|
|
11
|
+
/**
|
|
12
|
+
* Returns the live SIP registration state of a connection or credential. Supports
|
|
13
|
+
* UAC third-party credentials, telephony credentials, and SIP credential
|
|
14
|
+
* connections.
|
|
15
|
+
*/
|
|
16
|
+
retrieve(
|
|
17
|
+
query: SipRegistrationStatusRetrieveParams,
|
|
18
|
+
options?: RequestOptions,
|
|
19
|
+
): APIPromise<SipRegistrationStatusRetrieveResponse> {
|
|
20
|
+
return this._client.get('/sip_registration_status', { query, ...options });
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export interface SipRegistrationStatusRetrieveResponse {
|
|
25
|
+
/**
|
|
26
|
+
* Identifier of the resource.
|
|
27
|
+
*/
|
|
28
|
+
connection_id?: string;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Human-readable connection name.
|
|
32
|
+
*/
|
|
33
|
+
connection_name?: string;
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Outward-facing SIP settings used for registration. Password is redacted.
|
|
37
|
+
*/
|
|
38
|
+
external_uac_settings?: SipRegistrationStatusRetrieveResponse.ExternalUacSettings;
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Internal routing target the connection delivers calls to.
|
|
42
|
+
*/
|
|
43
|
+
internal_uac_settings?: SipRegistrationStatusRetrieveResponse.InternalUacSettings;
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* SIP response from the last registration attempt.
|
|
47
|
+
*/
|
|
48
|
+
last_registration_response?: string;
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Internal pairing state, e.g. ACTIVE or INACTIVE.
|
|
52
|
+
*/
|
|
53
|
+
pair_state?: string;
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* True if the endpoint is currently registered.
|
|
57
|
+
*/
|
|
58
|
+
registered?: boolean;
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Owner of the resource.
|
|
62
|
+
*/
|
|
63
|
+
user_id?: string;
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* SIP username used for the registration.
|
|
67
|
+
*/
|
|
68
|
+
username?: string;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export namespace SipRegistrationStatusRetrieveResponse {
|
|
72
|
+
/**
|
|
73
|
+
* Outward-facing SIP settings used for registration. Password is redacted.
|
|
74
|
+
*/
|
|
75
|
+
export interface ExternalUacSettings {
|
|
76
|
+
auth_username?: string;
|
|
77
|
+
|
|
78
|
+
expiration_sec?: number;
|
|
79
|
+
|
|
80
|
+
from_user?: string;
|
|
81
|
+
|
|
82
|
+
outbound_proxy?: string;
|
|
83
|
+
|
|
84
|
+
password?: string;
|
|
85
|
+
|
|
86
|
+
proxy?: string;
|
|
87
|
+
|
|
88
|
+
transport?: 'TCP' | 'UDP' | 'TLS';
|
|
89
|
+
|
|
90
|
+
username?: string;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* Internal routing target the connection delivers calls to.
|
|
95
|
+
*/
|
|
96
|
+
export interface InternalUacSettings {
|
|
97
|
+
destination_uri?: string;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export interface SipRegistrationStatusRetrieveParams {
|
|
102
|
+
/**
|
|
103
|
+
* Identifier of the connection or credential to look up.
|
|
104
|
+
*/
|
|
105
|
+
connection_id: string;
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* The kind of credential to look up.
|
|
109
|
+
*/
|
|
110
|
+
credential_type: 'uac_external_credential' | 'telephony_credential' | 'sip_credential_connection';
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* Owner of the connection. Used to authorize the lookup.
|
|
114
|
+
*/
|
|
115
|
+
user_id: string;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
export declare namespace SipRegistrationStatus {
|
|
119
|
+
export {
|
|
120
|
+
type SipRegistrationStatusRetrieveResponse as SipRegistrationStatusRetrieveResponse,
|
|
121
|
+
type SipRegistrationStatusRetrieveParams as SipRegistrationStatusRetrieveParams,
|
|
122
|
+
};
|
|
123
|
+
}
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '6.
|
|
1
|
+
export const VERSION = '6.73.0'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "6.
|
|
1
|
+
export declare const VERSION = "6.73.0";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "6.
|
|
1
|
+
export declare const VERSION = "6.73.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '6.
|
|
1
|
+
export const VERSION = '6.73.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|