telnyx 7.19.0 → 7.20.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 +7 -0
- package/README.md +90 -0
- package/client.d.mts +0 -6
- package/client.d.mts.map +1 -1
- package/client.d.ts +0 -6
- package/client.d.ts.map +1 -1
- package/client.js +0 -6
- package/client.js.map +1 -1
- package/client.mjs +0 -6
- package/client.mjs.map +1 -1
- package/package.json +3 -5
- package/resources/ai/assistants/assistants.d.mts +9 -0
- package/resources/ai/assistants/assistants.d.mts.map +1 -1
- package/resources/ai/assistants/assistants.d.ts +9 -0
- package/resources/ai/assistants/assistants.d.ts.map +1 -1
- package/resources/ai/assistants/assistants.js.map +1 -1
- package/resources/ai/assistants/assistants.mjs.map +1 -1
- package/resources/calls/actions.d.mts +8 -0
- package/resources/calls/actions.d.mts.map +1 -1
- package/resources/calls/actions.d.ts +8 -0
- package/resources/calls/actions.d.ts.map +1 -1
- package/resources/calls/calls.d.mts +8 -0
- package/resources/calls/calls.d.mts.map +1 -1
- package/resources/calls/calls.d.ts +8 -0
- package/resources/calls/calls.d.ts.map +1 -1
- package/resources/calls/calls.js.map +1 -1
- package/resources/calls/calls.mjs.map +1 -1
- package/resources/credential-connections/actions.d.mts +9 -9
- package/resources/credential-connections/actions.d.mts.map +1 -1
- package/resources/credential-connections/actions.d.ts +9 -9
- package/resources/credential-connections/actions.d.ts.map +1 -1
- package/resources/credential-connections/actions.js +3 -3
- package/resources/credential-connections/actions.mjs +3 -3
- package/resources/index.d.mts +0 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +0 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +2 -4
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +0 -1
- package/resources/index.mjs.map +1 -1
- package/resources/uac-connections/actions.d.mts +9 -9
- package/resources/uac-connections/actions.d.mts.map +1 -1
- package/resources/uac-connections/actions.d.ts +9 -9
- package/resources/uac-connections/actions.d.ts.map +1 -1
- package/resources/uac-connections/actions.js +3 -3
- package/resources/uac-connections/actions.mjs +3 -3
- package/src/client.ts +0 -16
- package/src/resources/ai/assistants/assistants.ts +10 -0
- package/src/resources/calls/actions.ts +9 -0
- package/src/resources/calls/calls.ts +9 -0
- package/src/resources/credential-connections/actions.ts +9 -9
- package/src/resources/index.ts +0 -5
- package/src/resources/uac-connections/actions.ts +9 -9
- 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
- package/resources/sip-registration-status.d.mts +0 -142
- package/resources/sip-registration-status.d.mts.map +0 -1
- package/resources/sip-registration-status.d.ts +0 -142
- package/resources/sip-registration-status.d.ts.map +0 -1
- package/resources/sip-registration-status.js +0 -32
- package/resources/sip-registration-status.js.map +0 -1
- package/resources/sip-registration-status.mjs +0 -28
- package/resources/sip-registration-status.mjs.map +0 -1
- package/src/resources/sip-registration-status.ts +0 -181
|
@@ -1,142 +0,0 @@
|
|
|
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
|
-
* UAC connection operations
|
|
6
|
-
*/
|
|
7
|
-
export declare class SipRegistrationStatus extends APIResource {
|
|
8
|
-
/**
|
|
9
|
-
* Returns the live SIP registration status for a Telnyx endpoint: whether it is
|
|
10
|
-
* currently registered, when the current registration expires, and the last
|
|
11
|
-
* response Telnyx received from the registrar.
|
|
12
|
-
*
|
|
13
|
-
* The endpoint supports three credential types, selected with the
|
|
14
|
-
* `credential_type` query parameter. Each type is keyed by a different identifier:
|
|
15
|
-
*
|
|
16
|
-
* | `credential_type` | Keyed by | Use case |
|
|
17
|
-
* | --------------------------- | --------------- | -------------------------------------------------------------------------- |
|
|
18
|
-
* | `uac_external_credential` | `connection_id` | A UAC (SIP attach) connection that registers to an external PBX. |
|
|
19
|
-
* | `telephony_credential` | `username` | An ephemeral, one-time-use telephony credential. |
|
|
20
|
-
* | `sip_credential_connection` | `username` | A traditional SIP credential connection that registers directly to Telnyx. |
|
|
21
|
-
*
|
|
22
|
-
* The authenticated account is taken from your API key; you can only read the
|
|
23
|
-
* registration status of connections and credentials your account owns.
|
|
24
|
-
*/
|
|
25
|
-
retrieve(query: SipRegistrationStatusRetrieveParams, options?: RequestOptions): APIPromise<SipRegistrationStatusRetrieveResponse>;
|
|
26
|
-
}
|
|
27
|
-
export interface SipRegistrationStatusRetrieveResponse {
|
|
28
|
-
/**
|
|
29
|
-
* Identifier of the connection associated with the credential.
|
|
30
|
-
*/
|
|
31
|
-
connection_id?: string;
|
|
32
|
-
/**
|
|
33
|
-
* Human-readable connection name.
|
|
34
|
-
*/
|
|
35
|
-
connection_name?: string;
|
|
36
|
-
/**
|
|
37
|
-
* The credential type that was looked up.
|
|
38
|
-
*/
|
|
39
|
-
credential_type?: 'uac_external_credential' | 'telephony_credential' | 'sip_credential_connection';
|
|
40
|
-
/**
|
|
41
|
-
* SIP username used for the registration.
|
|
42
|
-
*/
|
|
43
|
-
credential_username?: string;
|
|
44
|
-
/**
|
|
45
|
-
* SIP response from the last registration attempt.
|
|
46
|
-
*/
|
|
47
|
-
last_registration_response?: string | null;
|
|
48
|
-
/**
|
|
49
|
-
* True if the endpoint is currently registered.
|
|
50
|
-
*/
|
|
51
|
-
registered?: boolean;
|
|
52
|
-
/**
|
|
53
|
-
* Detailed registration information reported by the registrar. The populated
|
|
54
|
-
* fields depend on `credential_type`: UAC external credentials report
|
|
55
|
-
* `auth_retries`, `uptime`, `next_action_at`, `failures`, and `sip_uri_user_host`;
|
|
56
|
-
* telephony credentials and SIP credential connections report `ua_ip`, `ua_port`,
|
|
57
|
-
* `transport`, and `last_modified`. All types report `expires`.
|
|
58
|
-
*/
|
|
59
|
-
sip_registration_details?: SipRegistrationStatusRetrieveResponse.SipRegistrationDetails;
|
|
60
|
-
/**
|
|
61
|
-
* Human-readable registration status derived from the registrar state.
|
|
62
|
-
*/
|
|
63
|
-
sip_registration_status?: 'unregistering' | 'connection_disabled' | 'standby' | 'failed' | 'trying' | 'registered' | 'unknown';
|
|
64
|
-
}
|
|
65
|
-
export declare namespace SipRegistrationStatusRetrieveResponse {
|
|
66
|
-
/**
|
|
67
|
-
* Detailed registration information reported by the registrar. The populated
|
|
68
|
-
* fields depend on `credential_type`: UAC external credentials report
|
|
69
|
-
* `auth_retries`, `uptime`, `next_action_at`, `failures`, and `sip_uri_user_host`;
|
|
70
|
-
* telephony credentials and SIP credential connections report `ua_ip`, `ua_port`,
|
|
71
|
-
* `transport`, and `last_modified`. All types report `expires`.
|
|
72
|
-
*/
|
|
73
|
-
interface SipRegistrationDetails {
|
|
74
|
-
/**
|
|
75
|
-
* Number of authentication retries on the last attempt (uac_external_credential).
|
|
76
|
-
*/
|
|
77
|
-
auth_retries?: number;
|
|
78
|
-
/**
|
|
79
|
-
* Unix timestamp when the current registration expires.
|
|
80
|
-
*/
|
|
81
|
-
expires?: number;
|
|
82
|
-
/**
|
|
83
|
-
* Count of consecutive registration failures (uac_external_credential).
|
|
84
|
-
*/
|
|
85
|
-
failures?: number;
|
|
86
|
-
/**
|
|
87
|
-
* Timestamp when the registration was last modified (telephony_credential and
|
|
88
|
-
* sip_credential_connection).
|
|
89
|
-
*/
|
|
90
|
-
last_modified?: string;
|
|
91
|
-
/**
|
|
92
|
-
* Unix timestamp of the next scheduled registration action
|
|
93
|
-
* (uac_external_credential).
|
|
94
|
-
*/
|
|
95
|
-
next_action_at?: number;
|
|
96
|
-
/**
|
|
97
|
-
* SIP URI user@host of the registered contact (uac_external_credential).
|
|
98
|
-
*/
|
|
99
|
-
sip_uri_user_host?: string;
|
|
100
|
-
/**
|
|
101
|
-
* Transport used for the registration, e.g. UDP/TCP/TLS (telephony_credential and
|
|
102
|
-
* sip_credential_connection).
|
|
103
|
-
*/
|
|
104
|
-
transport?: string;
|
|
105
|
-
/**
|
|
106
|
-
* IP address of the registered user agent (telephony_credential and
|
|
107
|
-
* sip_credential_connection).
|
|
108
|
-
*/
|
|
109
|
-
ua_ip?: string;
|
|
110
|
-
/**
|
|
111
|
-
* Port of the registered user agent (telephony_credential and
|
|
112
|
-
* sip_credential_connection).
|
|
113
|
-
*/
|
|
114
|
-
ua_port?: number;
|
|
115
|
-
/**
|
|
116
|
-
* Registration uptime reported by the registrar (uac_external_credential).
|
|
117
|
-
*/
|
|
118
|
-
uptime?: number;
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
export interface SipRegistrationStatusRetrieveParams {
|
|
122
|
-
/**
|
|
123
|
-
* The kind of credential to look up. `uac_external_credential` is keyed by
|
|
124
|
-
* `connection_id`; `telephony_credential` and `sip_credential_connection` are
|
|
125
|
-
* keyed by `username`.
|
|
126
|
-
*/
|
|
127
|
-
credential_type: 'uac_external_credential' | 'telephony_credential' | 'sip_credential_connection';
|
|
128
|
-
/**
|
|
129
|
-
* Identifier of the UAC connection to look up. Required when `credential_type` is
|
|
130
|
-
* `uac_external_credential`.
|
|
131
|
-
*/
|
|
132
|
-
connection_id?: string;
|
|
133
|
-
/**
|
|
134
|
-
* SIP username to look up. Required when `credential_type` is
|
|
135
|
-
* `telephony_credential` or `sip_credential_connection`.
|
|
136
|
-
*/
|
|
137
|
-
username?: string;
|
|
138
|
-
}
|
|
139
|
-
export declare namespace SipRegistrationStatus {
|
|
140
|
-
export { type SipRegistrationStatusRetrieveResponse as SipRegistrationStatusRetrieveResponse, type SipRegistrationStatusRetrieveParams as SipRegistrationStatusRetrieveParams, };
|
|
141
|
-
}
|
|
142
|
-
//# sourceMappingURL=sip-registration-status.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
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;;;;;;;;;;;;;;;;OAgBG;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,eAAe,CAAC,EAAE,yBAAyB,GAAG,sBAAsB,GAAG,2BAA2B,CAAC;IAEnG;;OAEG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAE7B;;OAEG;IACH,0BAA0B,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE3C;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB;;;;;;OAMG;IACH,wBAAwB,CAAC,EAAE,qCAAqC,CAAC,sBAAsB,CAAC;IAExF;;OAEG;IACH,uBAAuB,CAAC,EACpB,eAAe,GACf,qBAAqB,GACrB,SAAS,GACT,QAAQ,GACR,QAAQ,GACR,YAAY,GACZ,SAAS,CAAC;CACf;AAED,yBAAiB,qCAAqC,CAAC;IACrD;;;;;;OAMG;IACH,UAAiB,sBAAsB;QACrC;;WAEG;QACH,YAAY,CAAC,EAAE,MAAM,CAAC;QAEtB;;WAEG;QACH,OAAO,CAAC,EAAE,MAAM,CAAC;QAEjB;;WAEG;QACH,QAAQ,CAAC,EAAE,MAAM,CAAC;QAElB;;;WAGG;QACH,aAAa,CAAC,EAAE,MAAM,CAAC;QAEvB;;;WAGG;QACH,cAAc,CAAC,EAAE,MAAM,CAAC;QAExB;;WAEG;QACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;QAE3B;;;WAGG;QACH,SAAS,CAAC,EAAE,MAAM,CAAC;QAEnB;;;WAGG;QACH,KAAK,CAAC,EAAE,MAAM,CAAC;QAEf;;;WAGG;QACH,OAAO,CAAC,EAAE,MAAM,CAAC;QAEjB;;WAEG;QACH,MAAM,CAAC,EAAE,MAAM,CAAC;KACjB;CACF;AAED,MAAM,WAAW,mCAAmC;IAClD;;;;OAIG;IACH,eAAe,EAAE,yBAAyB,GAAG,sBAAsB,GAAG,2BAA2B,CAAC;IAElG;;;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,CAAC,OAAO,WAAW,qBAAqB,CAAC;IAC7C,OAAO,EACL,KAAK,qCAAqC,IAAI,qCAAqC,EACnF,KAAK,mCAAmC,IAAI,mCAAmC,GAChF,CAAC;CACH"}
|
|
@@ -1,32 +0,0 @@
|
|
|
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
|
-
* UAC connection operations
|
|
8
|
-
*/
|
|
9
|
-
class SipRegistrationStatus extends resource_1.APIResource {
|
|
10
|
-
/**
|
|
11
|
-
* Returns the live SIP registration status for a Telnyx endpoint: whether it is
|
|
12
|
-
* currently registered, when the current registration expires, and the last
|
|
13
|
-
* response Telnyx received from the registrar.
|
|
14
|
-
*
|
|
15
|
-
* The endpoint supports three credential types, selected with the
|
|
16
|
-
* `credential_type` query parameter. Each type is keyed by a different identifier:
|
|
17
|
-
*
|
|
18
|
-
* | `credential_type` | Keyed by | Use case |
|
|
19
|
-
* | --------------------------- | --------------- | -------------------------------------------------------------------------- |
|
|
20
|
-
* | `uac_external_credential` | `connection_id` | A UAC (SIP attach) connection that registers to an external PBX. |
|
|
21
|
-
* | `telephony_credential` | `username` | An ephemeral, one-time-use telephony credential. |
|
|
22
|
-
* | `sip_credential_connection` | `username` | A traditional SIP credential connection that registers directly to Telnyx. |
|
|
23
|
-
*
|
|
24
|
-
* The authenticated account is taken from your API key; you can only read the
|
|
25
|
-
* registration status of connections and credentials your account owns.
|
|
26
|
-
*/
|
|
27
|
-
retrieve(query, options) {
|
|
28
|
-
return this._client.get('/sip_registration_status', { query, ...options });
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
exports.SipRegistrationStatus = SipRegistrationStatus;
|
|
32
|
-
//# sourceMappingURL=sip-registration-status.js.map
|
|
@@ -1 +0,0 @@
|
|
|
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;;;;;;;;;;;;;;;;OAgBG;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;AAxBD,sDAwBC"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
import { APIResource } from "../core/resource.mjs";
|
|
3
|
-
/**
|
|
4
|
-
* UAC connection operations
|
|
5
|
-
*/
|
|
6
|
-
export class SipRegistrationStatus extends APIResource {
|
|
7
|
-
/**
|
|
8
|
-
* Returns the live SIP registration status for a Telnyx endpoint: whether it is
|
|
9
|
-
* currently registered, when the current registration expires, and the last
|
|
10
|
-
* response Telnyx received from the registrar.
|
|
11
|
-
*
|
|
12
|
-
* The endpoint supports three credential types, selected with the
|
|
13
|
-
* `credential_type` query parameter. Each type is keyed by a different identifier:
|
|
14
|
-
*
|
|
15
|
-
* | `credential_type` | Keyed by | Use case |
|
|
16
|
-
* | --------------------------- | --------------- | -------------------------------------------------------------------------- |
|
|
17
|
-
* | `uac_external_credential` | `connection_id` | A UAC (SIP attach) connection that registers to an external PBX. |
|
|
18
|
-
* | `telephony_credential` | `username` | An ephemeral, one-time-use telephony credential. |
|
|
19
|
-
* | `sip_credential_connection` | `username` | A traditional SIP credential connection that registers directly to Telnyx. |
|
|
20
|
-
*
|
|
21
|
-
* The authenticated account is taken from your API key; you can only read the
|
|
22
|
-
* registration status of connections and credentials your account owns.
|
|
23
|
-
*/
|
|
24
|
-
retrieve(query, options) {
|
|
25
|
-
return this._client.get('/sip_registration_status', { query, ...options });
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
//# sourceMappingURL=sip-registration-status.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
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;;;;;;;;;;;;;;;;OAgBG;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"}
|
|
@@ -1,181 +0,0 @@
|
|
|
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
|
-
* UAC connection operations
|
|
9
|
-
*/
|
|
10
|
-
export class SipRegistrationStatus extends APIResource {
|
|
11
|
-
/**
|
|
12
|
-
* Returns the live SIP registration status for a Telnyx endpoint: whether it is
|
|
13
|
-
* currently registered, when the current registration expires, and the last
|
|
14
|
-
* response Telnyx received from the registrar.
|
|
15
|
-
*
|
|
16
|
-
* The endpoint supports three credential types, selected with the
|
|
17
|
-
* `credential_type` query parameter. Each type is keyed by a different identifier:
|
|
18
|
-
*
|
|
19
|
-
* | `credential_type` | Keyed by | Use case |
|
|
20
|
-
* | --------------------------- | --------------- | -------------------------------------------------------------------------- |
|
|
21
|
-
* | `uac_external_credential` | `connection_id` | A UAC (SIP attach) connection that registers to an external PBX. |
|
|
22
|
-
* | `telephony_credential` | `username` | An ephemeral, one-time-use telephony credential. |
|
|
23
|
-
* | `sip_credential_connection` | `username` | A traditional SIP credential connection that registers directly to Telnyx. |
|
|
24
|
-
*
|
|
25
|
-
* The authenticated account is taken from your API key; you can only read the
|
|
26
|
-
* registration status of connections and credentials your account owns.
|
|
27
|
-
*/
|
|
28
|
-
retrieve(
|
|
29
|
-
query: SipRegistrationStatusRetrieveParams,
|
|
30
|
-
options?: RequestOptions,
|
|
31
|
-
): APIPromise<SipRegistrationStatusRetrieveResponse> {
|
|
32
|
-
return this._client.get('/sip_registration_status', { query, ...options });
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
export interface SipRegistrationStatusRetrieveResponse {
|
|
37
|
-
/**
|
|
38
|
-
* Identifier of the connection associated with the credential.
|
|
39
|
-
*/
|
|
40
|
-
connection_id?: string;
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
* Human-readable connection name.
|
|
44
|
-
*/
|
|
45
|
-
connection_name?: string;
|
|
46
|
-
|
|
47
|
-
/**
|
|
48
|
-
* The credential type that was looked up.
|
|
49
|
-
*/
|
|
50
|
-
credential_type?: 'uac_external_credential' | 'telephony_credential' | 'sip_credential_connection';
|
|
51
|
-
|
|
52
|
-
/**
|
|
53
|
-
* SIP username used for the registration.
|
|
54
|
-
*/
|
|
55
|
-
credential_username?: string;
|
|
56
|
-
|
|
57
|
-
/**
|
|
58
|
-
* SIP response from the last registration attempt.
|
|
59
|
-
*/
|
|
60
|
-
last_registration_response?: string | null;
|
|
61
|
-
|
|
62
|
-
/**
|
|
63
|
-
* True if the endpoint is currently registered.
|
|
64
|
-
*/
|
|
65
|
-
registered?: boolean;
|
|
66
|
-
|
|
67
|
-
/**
|
|
68
|
-
* Detailed registration information reported by the registrar. The populated
|
|
69
|
-
* fields depend on `credential_type`: UAC external credentials report
|
|
70
|
-
* `auth_retries`, `uptime`, `next_action_at`, `failures`, and `sip_uri_user_host`;
|
|
71
|
-
* telephony credentials and SIP credential connections report `ua_ip`, `ua_port`,
|
|
72
|
-
* `transport`, and `last_modified`. All types report `expires`.
|
|
73
|
-
*/
|
|
74
|
-
sip_registration_details?: SipRegistrationStatusRetrieveResponse.SipRegistrationDetails;
|
|
75
|
-
|
|
76
|
-
/**
|
|
77
|
-
* Human-readable registration status derived from the registrar state.
|
|
78
|
-
*/
|
|
79
|
-
sip_registration_status?:
|
|
80
|
-
| 'unregistering'
|
|
81
|
-
| 'connection_disabled'
|
|
82
|
-
| 'standby'
|
|
83
|
-
| 'failed'
|
|
84
|
-
| 'trying'
|
|
85
|
-
| 'registered'
|
|
86
|
-
| 'unknown';
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
export namespace SipRegistrationStatusRetrieveResponse {
|
|
90
|
-
/**
|
|
91
|
-
* Detailed registration information reported by the registrar. The populated
|
|
92
|
-
* fields depend on `credential_type`: UAC external credentials report
|
|
93
|
-
* `auth_retries`, `uptime`, `next_action_at`, `failures`, and `sip_uri_user_host`;
|
|
94
|
-
* telephony credentials and SIP credential connections report `ua_ip`, `ua_port`,
|
|
95
|
-
* `transport`, and `last_modified`. All types report `expires`.
|
|
96
|
-
*/
|
|
97
|
-
export interface SipRegistrationDetails {
|
|
98
|
-
/**
|
|
99
|
-
* Number of authentication retries on the last attempt (uac_external_credential).
|
|
100
|
-
*/
|
|
101
|
-
auth_retries?: number;
|
|
102
|
-
|
|
103
|
-
/**
|
|
104
|
-
* Unix timestamp when the current registration expires.
|
|
105
|
-
*/
|
|
106
|
-
expires?: number;
|
|
107
|
-
|
|
108
|
-
/**
|
|
109
|
-
* Count of consecutive registration failures (uac_external_credential).
|
|
110
|
-
*/
|
|
111
|
-
failures?: number;
|
|
112
|
-
|
|
113
|
-
/**
|
|
114
|
-
* Timestamp when the registration was last modified (telephony_credential and
|
|
115
|
-
* sip_credential_connection).
|
|
116
|
-
*/
|
|
117
|
-
last_modified?: string;
|
|
118
|
-
|
|
119
|
-
/**
|
|
120
|
-
* Unix timestamp of the next scheduled registration action
|
|
121
|
-
* (uac_external_credential).
|
|
122
|
-
*/
|
|
123
|
-
next_action_at?: number;
|
|
124
|
-
|
|
125
|
-
/**
|
|
126
|
-
* SIP URI user@host of the registered contact (uac_external_credential).
|
|
127
|
-
*/
|
|
128
|
-
sip_uri_user_host?: string;
|
|
129
|
-
|
|
130
|
-
/**
|
|
131
|
-
* Transport used for the registration, e.g. UDP/TCP/TLS (telephony_credential and
|
|
132
|
-
* sip_credential_connection).
|
|
133
|
-
*/
|
|
134
|
-
transport?: string;
|
|
135
|
-
|
|
136
|
-
/**
|
|
137
|
-
* IP address of the registered user agent (telephony_credential and
|
|
138
|
-
* sip_credential_connection).
|
|
139
|
-
*/
|
|
140
|
-
ua_ip?: string;
|
|
141
|
-
|
|
142
|
-
/**
|
|
143
|
-
* Port of the registered user agent (telephony_credential and
|
|
144
|
-
* sip_credential_connection).
|
|
145
|
-
*/
|
|
146
|
-
ua_port?: number;
|
|
147
|
-
|
|
148
|
-
/**
|
|
149
|
-
* Registration uptime reported by the registrar (uac_external_credential).
|
|
150
|
-
*/
|
|
151
|
-
uptime?: number;
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
export interface SipRegistrationStatusRetrieveParams {
|
|
156
|
-
/**
|
|
157
|
-
* The kind of credential to look up. `uac_external_credential` is keyed by
|
|
158
|
-
* `connection_id`; `telephony_credential` and `sip_credential_connection` are
|
|
159
|
-
* keyed by `username`.
|
|
160
|
-
*/
|
|
161
|
-
credential_type: 'uac_external_credential' | 'telephony_credential' | 'sip_credential_connection';
|
|
162
|
-
|
|
163
|
-
/**
|
|
164
|
-
* Identifier of the UAC connection to look up. Required when `credential_type` is
|
|
165
|
-
* `uac_external_credential`.
|
|
166
|
-
*/
|
|
167
|
-
connection_id?: string;
|
|
168
|
-
|
|
169
|
-
/**
|
|
170
|
-
* SIP username to look up. Required when `credential_type` is
|
|
171
|
-
* `telephony_credential` or `sip_credential_connection`.
|
|
172
|
-
*/
|
|
173
|
-
username?: string;
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
export declare namespace SipRegistrationStatus {
|
|
177
|
-
export {
|
|
178
|
-
type SipRegistrationStatusRetrieveResponse as SipRegistrationStatusRetrieveResponse,
|
|
179
|
-
type SipRegistrationStatusRetrieveParams as SipRegistrationStatusRetrieveParams,
|
|
180
|
-
};
|
|
181
|
-
}
|