@sentdm/sentdm 0.7.2 → 0.14.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 +117 -0
- package/README.md +71 -34
- package/client.d.mts +49 -21
- package/client.d.mts.map +1 -1
- package/client.d.ts +49 -21
- package/client.d.ts.map +1 -1
- package/client.js +52 -38
- package/client.js.map +1 -1
- package/client.mjs +52 -38
- package/client.mjs.map +1 -1
- package/internal/tslib.js +17 -17
- package/internal/utils/log.d.mts.map +1 -1
- package/internal/utils/log.d.ts.map +1 -1
- package/internal/utils/log.js +0 -1
- package/internal/utils/log.js.map +1 -1
- package/internal/utils/log.mjs +0 -1
- package/internal/utils/log.mjs.map +1 -1
- package/internal/utils/query.d.mts +5 -0
- package/internal/utils/query.d.mts.map +1 -0
- package/internal/utils/query.d.ts +5 -0
- package/internal/utils/query.d.ts.map +1 -0
- package/internal/utils/query.js +23 -0
- package/internal/utils/query.js.map +1 -0
- package/internal/utils/query.mjs +20 -0
- package/internal/utils/query.mjs.map +1 -0
- package/internal/utils.d.mts +1 -0
- package/internal/utils.d.ts +1 -0
- package/internal/utils.js +1 -0
- package/internal/utils.js.map +1 -1
- package/internal/utils.mjs +1 -0
- package/package.json +7 -1
- package/resources/contacts.d.mts +243 -49
- package/resources/contacts.d.mts.map +1 -1
- package/resources/contacts.d.ts +243 -49
- package/resources/contacts.d.ts.map +1 -1
- package/resources/contacts.js +112 -15
- package/resources/contacts.js.map +1 -1
- package/resources/contacts.mjs +112 -15
- package/resources/contacts.mjs.map +1 -1
- package/resources/index.d.mts +8 -4
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +8 -4
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +11 -3
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +5 -1
- package/resources/index.mjs.map +1 -1
- package/resources/me.d.mts +269 -0
- package/resources/me.d.mts.map +1 -0
- package/resources/me.d.ts +269 -0
- package/resources/me.d.ts.map +1 -0
- package/resources/me.js +40 -0
- package/resources/me.js.map +1 -0
- package/resources/me.mjs +36 -0
- package/resources/me.mjs.map +1 -0
- package/resources/messages.d.mts +239 -133
- package/resources/messages.d.mts.map +1 -1
- package/resources/messages.d.ts +239 -133
- package/resources/messages.d.ts.map +1 -1
- package/resources/messages.js +42 -50
- package/resources/messages.js.map +1 -1
- package/resources/messages.mjs +42 -50
- package/resources/messages.mjs.map +1 -1
- package/resources/numbers.d.mts +70 -0
- package/resources/numbers.d.mts.map +1 -0
- package/resources/numbers.d.ts +70 -0
- package/resources/numbers.d.ts.map +1 -0
- package/resources/numbers.js +36 -0
- package/resources/numbers.js.map +1 -0
- package/resources/numbers.mjs +32 -0
- package/resources/numbers.mjs.map +1 -0
- package/resources/profiles/campaigns.d.mts +339 -0
- package/resources/profiles/campaigns.d.mts.map +1 -0
- package/resources/profiles/campaigns.d.ts +339 -0
- package/resources/profiles/campaigns.d.ts.map +1 -0
- package/resources/profiles/campaigns.js +148 -0
- package/resources/profiles/campaigns.js.map +1 -0
- package/resources/profiles/campaigns.mjs +144 -0
- package/resources/profiles/campaigns.mjs.map +1 -0
- package/resources/profiles/index.d.mts +3 -0
- package/resources/profiles/index.d.mts.map +1 -0
- package/resources/profiles/index.d.ts +3 -0
- package/resources/profiles/index.d.ts.map +1 -0
- package/resources/profiles/index.js +9 -0
- package/resources/profiles/index.js.map +1 -0
- package/resources/profiles/index.mjs +4 -0
- package/resources/profiles/index.mjs.map +1 -0
- package/resources/profiles/profiles.d.mts +967 -0
- package/resources/profiles/profiles.d.mts.map +1 -0
- package/resources/profiles/profiles.d.ts +967 -0
- package/resources/profiles/profiles.d.ts.map +1 -0
- package/resources/profiles/profiles.js +227 -0
- package/resources/profiles/profiles.js.map +1 -0
- package/resources/profiles/profiles.mjs +222 -0
- package/resources/profiles/profiles.mjs.map +1 -0
- package/resources/profiles.d.mts +2 -0
- package/resources/profiles.d.mts.map +1 -0
- package/resources/profiles.d.ts +2 -0
- package/resources/profiles.d.ts.map +1 -0
- package/resources/profiles.js +6 -0
- package/resources/profiles.js.map +1 -0
- package/resources/profiles.mjs +3 -0
- package/resources/profiles.mjs.map +1 -0
- package/resources/templates.d.mts +327 -191
- package/resources/templates.d.mts.map +1 -1
- package/resources/templates.d.ts +327 -191
- package/resources/templates.d.ts.map +1 -1
- package/resources/templates.js +80 -35
- package/resources/templates.js.map +1 -1
- package/resources/templates.mjs +80 -35
- package/resources/templates.mjs.map +1 -1
- package/resources/users.d.mts +251 -0
- package/resources/users.d.mts.map +1 -0
- package/resources/users.d.ts +251 -0
- package/resources/users.d.ts.map +1 -0
- package/resources/users.js +124 -0
- package/resources/users.js.map +1 -0
- package/resources/users.mjs +120 -0
- package/resources/users.mjs.map +1 -0
- package/resources/webhooks.d.mts +639 -0
- package/resources/webhooks.d.mts.map +1 -0
- package/resources/webhooks.d.ts +639 -0
- package/resources/webhooks.d.ts.map +1 -0
- package/resources/webhooks.js +237 -0
- package/resources/webhooks.js.map +1 -0
- package/resources/webhooks.mjs +233 -0
- package/resources/webhooks.mjs.map +1 -0
- package/src/client.ts +228 -80
- package/src/internal/utils/log.ts +0 -1
- package/src/internal/utils/query.ts +23 -0
- package/src/internal/utils.ts +1 -0
- package/src/resources/contacts.ts +335 -57
- package/src/resources/index.ts +81 -12
- package/src/resources/me.ts +333 -0
- package/src/resources/messages.ts +306 -147
- package/src/resources/numbers.ts +102 -0
- package/src/resources/profiles/campaigns.ts +501 -0
- package/src/resources/profiles/index.ts +38 -0
- package/src/resources/profiles/profiles.ts +1302 -0
- package/src/resources/profiles.ts +3 -0
- package/src/resources/templates.ts +424 -202
- package/src/resources/users.ts +366 -0
- package/src/resources/webhooks.ts +923 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.mts.map +1 -1
- package/version.d.ts +1 -1
- package/version.d.ts.map +1 -1
- package/version.js +1 -1
- package/version.js.map +1 -1
- package/version.mjs +1 -1
- package/version.mjs.map +1 -1
- package/resources/number-lookup.d.mts +0 -59
- package/resources/number-lookup.d.mts.map +0 -1
- package/resources/number-lookup.d.ts +0 -59
- package/resources/number-lookup.d.ts.map +0 -1
- package/resources/number-lookup.js +0 -17
- package/resources/number-lookup.js.map +0 -1
- package/resources/number-lookup.mjs +0 -13
- package/resources/number-lookup.mjs.map +0 -1
- package/src/resources/number-lookup.ts +0 -80
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.14.0'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.14.0";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.d.mts","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,
|
|
1
|
+
{"version":3,"file":"version.d.mts","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,WAAW,CAAC"}
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.14.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,
|
|
1
|
+
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,WAAW,CAAC"}
|
package/version.js
CHANGED
package/version.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":";;;AAAa,QAAA,OAAO,GAAG,
|
|
1
|
+
{"version":3,"file":"version.js","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":";;;AAAa,QAAA,OAAO,GAAG,QAAQ,CAAC,CAAC,2BAA2B"}
|
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.14.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|
package/version.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.mjs","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,OAAO,GAAG,
|
|
1
|
+
{"version":3,"file":"version.mjs","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,OAAO,GAAG,QAAQ,CAAC,CAAC,2BAA2B"}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { APIResource } from "../core/resource.mjs";
|
|
2
|
-
import { APIPromise } from "../core/api-promise.mjs";
|
|
3
|
-
import { RequestOptions } from "../internal/request-options.mjs";
|
|
4
|
-
export declare class NumberLookup extends APIResource {
|
|
5
|
-
/**
|
|
6
|
-
* Retrieves detailed information about a phone number including validation,
|
|
7
|
-
* formatting, country information, and available messaging channels. The customer
|
|
8
|
-
* ID is extracted from the authentication token.
|
|
9
|
-
*/
|
|
10
|
-
retrieve(query: NumberLookupRetrieveParams, options?: RequestOptions): APIPromise<NumberLookupRetrieveResponse>;
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* Response containing phone number lookup data
|
|
14
|
-
*/
|
|
15
|
-
export interface NumberLookupRetrieveResponse {
|
|
16
|
-
/**
|
|
17
|
-
* The country calling code (e.g., 1 for US/Canada)
|
|
18
|
-
*/
|
|
19
|
-
countryCode?: string;
|
|
20
|
-
/**
|
|
21
|
-
* The phone number formatted in E.164 standard (e.g., +1234567890)
|
|
22
|
-
*/
|
|
23
|
-
formatE164?: string;
|
|
24
|
-
/**
|
|
25
|
-
* The phone number formatted for international dialing (e.g., +1 234-567-890)
|
|
26
|
-
*/
|
|
27
|
-
formatInternational?: string;
|
|
28
|
-
/**
|
|
29
|
-
* The phone number formatted for national dialing (e.g., (234) 567-890)
|
|
30
|
-
*/
|
|
31
|
-
formatNational?: string;
|
|
32
|
-
/**
|
|
33
|
-
* The phone number formatted according to RFC 3966 (e.g., tel:+1-234-567-890)
|
|
34
|
-
*/
|
|
35
|
-
formatRfc?: string;
|
|
36
|
-
/**
|
|
37
|
-
* The type of phone number (e.g., mobile, fixed_line, voip)
|
|
38
|
-
*/
|
|
39
|
-
numberType?: string;
|
|
40
|
-
/**
|
|
41
|
-
* The phone number in its original format
|
|
42
|
-
*/
|
|
43
|
-
phoneNumber?: string;
|
|
44
|
-
/**
|
|
45
|
-
* The timezones associated with the phone number
|
|
46
|
-
*/
|
|
47
|
-
phoneTimezones?: string;
|
|
48
|
-
/**
|
|
49
|
-
* The ISO 3166-1 alpha-2 country code (e.g., US, CA, GB)
|
|
50
|
-
*/
|
|
51
|
-
regionCode?: string;
|
|
52
|
-
}
|
|
53
|
-
export interface NumberLookupRetrieveParams {
|
|
54
|
-
phoneNumber: string;
|
|
55
|
-
}
|
|
56
|
-
export declare namespace NumberLookup {
|
|
57
|
-
export { type NumberLookupRetrieveResponse as NumberLookupRetrieveResponse, type NumberLookupRetrieveParams as NumberLookupRetrieveParams, };
|
|
58
|
-
}
|
|
59
|
-
//# sourceMappingURL=number-lookup.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"number-lookup.d.mts","sourceRoot":"","sources":["../src/resources/number-lookup.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;;;OAIG;IACH,QAAQ,CACN,KAAK,EAAE,0BAA0B,EACjC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,4BAA4B,CAAC;CAG5C;AAED;;GAEG;AACH,MAAM,WAAW,4BAA4B;IAC3C;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAE7B;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,0BAA0B;IACzC,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EACL,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,0BAA0B,IAAI,0BAA0B,GAC9D,CAAC;CACH"}
|
|
@@ -1,59 +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
|
-
export declare class NumberLookup extends APIResource {
|
|
5
|
-
/**
|
|
6
|
-
* Retrieves detailed information about a phone number including validation,
|
|
7
|
-
* formatting, country information, and available messaging channels. The customer
|
|
8
|
-
* ID is extracted from the authentication token.
|
|
9
|
-
*/
|
|
10
|
-
retrieve(query: NumberLookupRetrieveParams, options?: RequestOptions): APIPromise<NumberLookupRetrieveResponse>;
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* Response containing phone number lookup data
|
|
14
|
-
*/
|
|
15
|
-
export interface NumberLookupRetrieveResponse {
|
|
16
|
-
/**
|
|
17
|
-
* The country calling code (e.g., 1 for US/Canada)
|
|
18
|
-
*/
|
|
19
|
-
countryCode?: string;
|
|
20
|
-
/**
|
|
21
|
-
* The phone number formatted in E.164 standard (e.g., +1234567890)
|
|
22
|
-
*/
|
|
23
|
-
formatE164?: string;
|
|
24
|
-
/**
|
|
25
|
-
* The phone number formatted for international dialing (e.g., +1 234-567-890)
|
|
26
|
-
*/
|
|
27
|
-
formatInternational?: string;
|
|
28
|
-
/**
|
|
29
|
-
* The phone number formatted for national dialing (e.g., (234) 567-890)
|
|
30
|
-
*/
|
|
31
|
-
formatNational?: string;
|
|
32
|
-
/**
|
|
33
|
-
* The phone number formatted according to RFC 3966 (e.g., tel:+1-234-567-890)
|
|
34
|
-
*/
|
|
35
|
-
formatRfc?: string;
|
|
36
|
-
/**
|
|
37
|
-
* The type of phone number (e.g., mobile, fixed_line, voip)
|
|
38
|
-
*/
|
|
39
|
-
numberType?: string;
|
|
40
|
-
/**
|
|
41
|
-
* The phone number in its original format
|
|
42
|
-
*/
|
|
43
|
-
phoneNumber?: string;
|
|
44
|
-
/**
|
|
45
|
-
* The timezones associated with the phone number
|
|
46
|
-
*/
|
|
47
|
-
phoneTimezones?: string;
|
|
48
|
-
/**
|
|
49
|
-
* The ISO 3166-1 alpha-2 country code (e.g., US, CA, GB)
|
|
50
|
-
*/
|
|
51
|
-
regionCode?: string;
|
|
52
|
-
}
|
|
53
|
-
export interface NumberLookupRetrieveParams {
|
|
54
|
-
phoneNumber: string;
|
|
55
|
-
}
|
|
56
|
-
export declare namespace NumberLookup {
|
|
57
|
-
export { type NumberLookupRetrieveResponse as NumberLookupRetrieveResponse, type NumberLookupRetrieveParams as NumberLookupRetrieveParams, };
|
|
58
|
-
}
|
|
59
|
-
//# sourceMappingURL=number-lookup.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"number-lookup.d.ts","sourceRoot":"","sources":["../src/resources/number-lookup.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;;;OAIG;IACH,QAAQ,CACN,KAAK,EAAE,0BAA0B,EACjC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,4BAA4B,CAAC;CAG5C;AAED;;GAEG;AACH,MAAM,WAAW,4BAA4B;IAC3C;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAE7B;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,0BAA0B;IACzC,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EACL,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,0BAA0B,IAAI,0BAA0B,GAC9D,CAAC;CACH"}
|
|
@@ -1,17 +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.NumberLookup = void 0;
|
|
5
|
-
const resource_1 = require("../core/resource.js");
|
|
6
|
-
class NumberLookup extends resource_1.APIResource {
|
|
7
|
-
/**
|
|
8
|
-
* Retrieves detailed information about a phone number including validation,
|
|
9
|
-
* formatting, country information, and available messaging channels. The customer
|
|
10
|
-
* ID is extracted from the authentication token.
|
|
11
|
-
*/
|
|
12
|
-
retrieve(query, options) {
|
|
13
|
-
return this._client.get('/v2/number-lookup', { query, ...options });
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
exports.NumberLookup = NumberLookup;
|
|
17
|
-
//# sourceMappingURL=number-lookup.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"number-lookup.js","sourceRoot":"","sources":["../src/resources/number-lookup.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAI/C,MAAa,YAAa,SAAQ,sBAAW;IAC3C;;;;OAIG;IACH,QAAQ,CACN,KAAiC,EACjC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,mBAAmB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtE,CAAC;CACF;AAZD,oCAYC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
import { APIResource } from "../core/resource.mjs";
|
|
3
|
-
export class NumberLookup extends APIResource {
|
|
4
|
-
/**
|
|
5
|
-
* Retrieves detailed information about a phone number including validation,
|
|
6
|
-
* formatting, country information, and available messaging channels. The customer
|
|
7
|
-
* ID is extracted from the authentication token.
|
|
8
|
-
*/
|
|
9
|
-
retrieve(query, options) {
|
|
10
|
-
return this._client.get('/v2/number-lookup', { query, ...options });
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
//# sourceMappingURL=number-lookup.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"number-lookup.mjs","sourceRoot":"","sources":["../src/resources/number-lookup.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAItB,MAAM,OAAO,YAAa,SAAQ,WAAW;IAC3C;;;;OAIG;IACH,QAAQ,CACN,KAAiC,EACjC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,mBAAmB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtE,CAAC;CACF"}
|
|
@@ -1,80 +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
|
-
export class NumberLookup extends APIResource {
|
|
8
|
-
/**
|
|
9
|
-
* Retrieves detailed information about a phone number including validation,
|
|
10
|
-
* formatting, country information, and available messaging channels. The customer
|
|
11
|
-
* ID is extracted from the authentication token.
|
|
12
|
-
*/
|
|
13
|
-
retrieve(
|
|
14
|
-
query: NumberLookupRetrieveParams,
|
|
15
|
-
options?: RequestOptions,
|
|
16
|
-
): APIPromise<NumberLookupRetrieveResponse> {
|
|
17
|
-
return this._client.get('/v2/number-lookup', { query, ...options });
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* Response containing phone number lookup data
|
|
23
|
-
*/
|
|
24
|
-
export interface NumberLookupRetrieveResponse {
|
|
25
|
-
/**
|
|
26
|
-
* The country calling code (e.g., 1 for US/Canada)
|
|
27
|
-
*/
|
|
28
|
-
countryCode?: string;
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* The phone number formatted in E.164 standard (e.g., +1234567890)
|
|
32
|
-
*/
|
|
33
|
-
formatE164?: string;
|
|
34
|
-
|
|
35
|
-
/**
|
|
36
|
-
* The phone number formatted for international dialing (e.g., +1 234-567-890)
|
|
37
|
-
*/
|
|
38
|
-
formatInternational?: string;
|
|
39
|
-
|
|
40
|
-
/**
|
|
41
|
-
* The phone number formatted for national dialing (e.g., (234) 567-890)
|
|
42
|
-
*/
|
|
43
|
-
formatNational?: string;
|
|
44
|
-
|
|
45
|
-
/**
|
|
46
|
-
* The phone number formatted according to RFC 3966 (e.g., tel:+1-234-567-890)
|
|
47
|
-
*/
|
|
48
|
-
formatRfc?: string;
|
|
49
|
-
|
|
50
|
-
/**
|
|
51
|
-
* The type of phone number (e.g., mobile, fixed_line, voip)
|
|
52
|
-
*/
|
|
53
|
-
numberType?: string;
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
* The phone number in its original format
|
|
57
|
-
*/
|
|
58
|
-
phoneNumber?: string;
|
|
59
|
-
|
|
60
|
-
/**
|
|
61
|
-
* The timezones associated with the phone number
|
|
62
|
-
*/
|
|
63
|
-
phoneTimezones?: string;
|
|
64
|
-
|
|
65
|
-
/**
|
|
66
|
-
* The ISO 3166-1 alpha-2 country code (e.g., US, CA, GB)
|
|
67
|
-
*/
|
|
68
|
-
regionCode?: string;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
export interface NumberLookupRetrieveParams {
|
|
72
|
-
phoneNumber: string;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
export declare namespace NumberLookup {
|
|
76
|
-
export {
|
|
77
|
-
type NumberLookupRetrieveResponse as NumberLookupRetrieveResponse,
|
|
78
|
-
type NumberLookupRetrieveParams as NumberLookupRetrieveParams,
|
|
79
|
-
};
|
|
80
|
-
}
|