contiguity 0.0.3 → 0.0.4
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/client/fetch.d.ts +5 -10
- package/dist/client/fetch.d.ts.map +1 -1
- package/dist/client/fetch.js +13 -45
- package/dist/contiguity.d.ts +1 -1
- package/dist/contiguity.js +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +66 -185
- package/dist/services/domains/delete.d.ts +0 -4
- package/dist/services/domains/delete.d.ts.map +1 -1
- package/dist/services/domains/delete.js +1 -7
- package/dist/services/domains/get.d.ts +0 -30
- package/dist/services/domains/get.d.ts.map +1 -1
- package/dist/services/domains/get.js +1 -7
- package/dist/services/domains/list.d.ts +0 -32
- package/dist/services/domains/list.d.ts.map +1 -1
- package/dist/services/domains/list.js +1 -11
- package/dist/services/domains/register.d.ts +0 -22
- package/dist/services/domains/register.d.ts.map +1 -1
- package/dist/services/domains/register.js +1 -7
- package/dist/services/email/send.d.ts +0 -3
- package/dist/services/email/send.d.ts.map +1 -1
- package/dist/services/email/send.js +1 -7
- package/dist/services/imessage/send.d.ts +0 -3
- package/dist/services/imessage/send.d.ts.map +1 -1
- package/dist/services/imessage/send.js +1 -7
- package/dist/services/imessage/typing.d.ts +0 -3
- package/dist/services/imessage/typing.d.ts.map +1 -1
- package/dist/services/imessage/typing.js +1 -7
- package/dist/services/lease/available.d.ts +0 -62
- package/dist/services/lease/available.d.ts.map +1 -1
- package/dist/services/lease/available.js +1 -7
- package/dist/services/lease/create.d.ts +0 -31
- package/dist/services/lease/create.d.ts.map +1 -1
- package/dist/services/lease/create.js +1 -7
- package/dist/services/lease/details.d.ts +0 -77
- package/dist/services/lease/details.d.ts.map +1 -1
- package/dist/services/lease/details.js +1 -7
- package/dist/services/lease/get.d.ts +0 -59
- package/dist/services/lease/get.d.ts.map +1 -1
- package/dist/services/lease/get.js +1 -7
- package/dist/services/lease/leased.d.ts +0 -80
- package/dist/services/lease/leased.d.ts.map +1 -1
- package/dist/services/lease/leased.js +1 -7
- package/dist/services/lease/terminate.d.ts +0 -10
- package/dist/services/lease/terminate.d.ts.map +1 -1
- package/dist/services/lease/terminate.js +1 -7
- package/dist/services/otp/index.d.ts +8 -3
- package/dist/services/otp/index.d.ts.map +1 -1
- package/dist/services/otp/index.js +9 -2
- package/dist/services/otp/resend.d.ts +0 -3
- package/dist/services/otp/resend.d.ts.map +1 -1
- package/dist/services/otp/resend.js +1 -7
- package/dist/services/otp/send.d.ts +26 -0
- package/dist/services/otp/send.d.ts.map +1 -0
- package/dist/services/otp/send.js +38 -0
- package/dist/services/otp/verify.d.ts +0 -3
- package/dist/services/otp/verify.d.ts.map +1 -1
- package/dist/services/otp/verify.js +1 -7
- package/dist/services/text/send.d.ts +0 -3
- package/dist/services/text/send.d.ts.map +1 -1
- package/dist/services/text/send.js +1 -7
- package/dist/services/whatsapp/send.d.ts +0 -3
- package/dist/services/whatsapp/send.d.ts.map +1 -1
- package/dist/services/whatsapp/send.js +1 -7
- package/dist/services/whatsapp/typing.d.ts +0 -3
- package/dist/services/whatsapp/typing.d.ts.map +1 -1
- package/dist/services/whatsapp/typing.js +1 -7
- package/dist/types/base.d.ts +2 -23
- package/dist/types/base.d.ts.map +1 -1
- package/dist/types/base.js +3 -15
- package/dist/types/response.d.ts +0 -7
- package/dist/types/response.d.ts.map +1 -1
- package/dist/types/response.js +0 -7
- package/package.json +1 -1
|
@@ -17,38 +17,6 @@ export declare const DomainsListResponse: z.ZodObject<{
|
|
|
17
17
|
sending_allowed: z.ZodBoolean;
|
|
18
18
|
}, z.core.$strip>>;
|
|
19
19
|
}, z.core.$strip>;
|
|
20
|
-
export declare const DomainsListResponseFlattened: z.ZodObject<{
|
|
21
|
-
metadata: z.ZodObject<{
|
|
22
|
-
id: z.ZodString;
|
|
23
|
-
timestamp: z.ZodNumber;
|
|
24
|
-
api_version: z.ZodString;
|
|
25
|
-
object: z.ZodString;
|
|
26
|
-
}, z.core.$strip>;
|
|
27
|
-
domains: z.ZodArray<z.ZodObject<{
|
|
28
|
-
domain: z.ZodString;
|
|
29
|
-
status: z.ZodString;
|
|
30
|
-
created_at: z.ZodNumber;
|
|
31
|
-
id: z.ZodString;
|
|
32
|
-
region: z.ZodString;
|
|
33
|
-
sending_allowed: z.ZodBoolean;
|
|
34
|
-
}, z.core.$strip>>;
|
|
35
|
-
}, z.core.$strip>;
|
|
36
|
-
export declare const DomainsListResponseRaw: z.ZodObject<{
|
|
37
|
-
id: z.ZodString;
|
|
38
|
-
timestamp: z.ZodNumber;
|
|
39
|
-
api_version: z.ZodString;
|
|
40
|
-
object: z.ZodString;
|
|
41
|
-
data: z.ZodObject<{
|
|
42
|
-
domains: z.ZodArray<z.ZodObject<{
|
|
43
|
-
domain: z.ZodString;
|
|
44
|
-
status: z.ZodString;
|
|
45
|
-
created_at: z.ZodNumber;
|
|
46
|
-
id: z.ZodString;
|
|
47
|
-
region: z.ZodString;
|
|
48
|
-
sending_allowed: z.ZodBoolean;
|
|
49
|
-
}, z.core.$strip>>;
|
|
50
|
-
}, z.core.$strip>;
|
|
51
|
-
}, z.core.$strip>;
|
|
52
20
|
export type DomainsListResponse = z.infer<typeof DomainsListResponse>;
|
|
53
21
|
export type DomainInfo = z.infer<typeof DomainInfo>;
|
|
54
22
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../src/services/domains/list.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../src/services/domains/list.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,UAAU;;;;;;;iBAarB,CAAC;AAEH,eAAO,MAAM,mBAAmB;;;;;;;;;iBAG9B,CAAC;AAIH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AACtE,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC;AAEpD;;;;;;;;;;;;GAYG;AACH,wBAAsB,YAAY,CAAC,IAAI,EAAE,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,CAS1D"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import { ContiguityResponse, ContiguityRawResponse } from "@/types/response";
|
|
3
2
|
// Domain object schema based on OpenAPI spec
|
|
4
3
|
export const DomainInfo = z.object({
|
|
5
4
|
/** The domain name */
|
|
@@ -19,12 +18,6 @@ export const DomainsListResponse = z.object({
|
|
|
19
18
|
/** List of user's domains */
|
|
20
19
|
domains: z.array(DomainInfo),
|
|
21
20
|
});
|
|
22
|
-
export const DomainsListResponseFlattened = ContiguityResponse.extend({
|
|
23
|
-
domains: z.array(DomainInfo),
|
|
24
|
-
});
|
|
25
|
-
export const DomainsListResponseRaw = ContiguityRawResponse.extend({
|
|
26
|
-
data: DomainsListResponse,
|
|
27
|
-
});
|
|
28
21
|
/**
|
|
29
22
|
* Lists all domains owned by the user
|
|
30
23
|
*
|
|
@@ -44,9 +37,6 @@ export async function _domainsList() {
|
|
|
44
37
|
});
|
|
45
38
|
return this.parse({
|
|
46
39
|
response,
|
|
47
|
-
|
|
48
|
-
sdk: DomainsListResponse,
|
|
49
|
-
raw: DomainsListResponseRaw
|
|
50
|
-
}
|
|
40
|
+
schema: DomainsListResponse
|
|
51
41
|
});
|
|
52
42
|
}
|
|
@@ -26,28 +26,6 @@ export declare const DomainsRegisterResponse: z.ZodObject<{
|
|
|
26
26
|
region: z.ZodString;
|
|
27
27
|
created_at: z.ZodNumber;
|
|
28
28
|
}, z.core.$strip>;
|
|
29
|
-
export declare const DomainsRegisterResponseBuilder: import("@/types/base").BaseResponseBuilder<z.ZodObject<{
|
|
30
|
-
records: z.ZodArray<z.ZodObject<{
|
|
31
|
-
MX: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
32
|
-
name: z.ZodString;
|
|
33
|
-
value: z.ZodString;
|
|
34
|
-
purpose: z.ZodString;
|
|
35
|
-
}, z.core.$strip>>>;
|
|
36
|
-
TXT: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
37
|
-
name: z.ZodString;
|
|
38
|
-
value: z.ZodString;
|
|
39
|
-
purpose: z.ZodString;
|
|
40
|
-
}, z.core.$strip>>>;
|
|
41
|
-
CNAME: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
42
|
-
name: z.ZodString;
|
|
43
|
-
value: z.ZodString;
|
|
44
|
-
purpose: z.ZodString;
|
|
45
|
-
}, z.core.$strip>>>;
|
|
46
|
-
}, z.core.$strip>>;
|
|
47
|
-
status: z.ZodString;
|
|
48
|
-
region: z.ZodString;
|
|
49
|
-
created_at: z.ZodNumber;
|
|
50
|
-
}, z.core.$strip>>;
|
|
51
29
|
export type DomainsRegisterParams = z.infer<typeof DomainsRegisterRequest>;
|
|
52
30
|
export type DomainsRegisterResponse = z.infer<typeof DomainsRegisterResponse>;
|
|
53
31
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"register.d.ts","sourceRoot":"","sources":["../../../src/services/domains/register.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"register.d.ts","sourceRoot":"","sources":["../../../src/services/domains/register.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,sBAAsB;;;;iBAOjC,CAAC;AAEH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;iBASlC,CAAC;AAKH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAC3E,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAE9E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,wBAAsB,gBAAgB,CAAC,IAAI,EAAE,GAAG,EAAE,MAAM,EAAE,qBAAqB,GAAG,OAAO,CAAC,GAAG,CAAC,CAa7F"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import { createResponse } from "@/types/base";
|
|
3
2
|
import { DNSRecords } from "./get";
|
|
4
3
|
export const DomainsRegisterRequest = z.object({
|
|
5
4
|
/** Domain name to register */
|
|
@@ -19,8 +18,6 @@ export const DomainsRegisterResponse = z.object({
|
|
|
19
18
|
/** Domain creation timestamp */
|
|
20
19
|
created_at: z.number(),
|
|
21
20
|
});
|
|
22
|
-
// Using the new base response builder
|
|
23
|
-
export const DomainsRegisterResponseBuilder = createResponse(DomainsRegisterResponse);
|
|
24
21
|
/**
|
|
25
22
|
* Registers a domain for email sending
|
|
26
23
|
*
|
|
@@ -65,9 +62,6 @@ export async function _domainsRegister(params) {
|
|
|
65
62
|
});
|
|
66
63
|
return this.parse({
|
|
67
64
|
response,
|
|
68
|
-
|
|
69
|
-
sdk: DomainsRegisterResponse,
|
|
70
|
-
raw: DomainsRegisterResponseBuilder.raw
|
|
71
|
-
}
|
|
65
|
+
schema: DomainsRegisterResponse
|
|
72
66
|
});
|
|
73
67
|
}
|
|
@@ -18,9 +18,6 @@ export declare const EmailSendRequest: z.ZodObject<{
|
|
|
18
18
|
export declare const EmailResponse: z.ZodObject<{
|
|
19
19
|
email_id: z.ZodString;
|
|
20
20
|
}, z.core.$strip>;
|
|
21
|
-
export declare const EmailSendResponse: import("@/types/base").BaseResponseBuilder<z.ZodObject<{
|
|
22
|
-
email_id: z.ZodString;
|
|
23
|
-
}, z.core.$strip>>;
|
|
24
21
|
export type EmailBodyParams = {
|
|
25
22
|
text?: string;
|
|
26
23
|
html?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"send.d.ts","sourceRoot":"","sources":["../../../src/services/email/send.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"send.d.ts","sourceRoot":"","sources":["../../../src/services/email/send.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;iBA8B3B,CAAA;AAEF,eAAO,MAAM,aAAa;;iBAExB,CAAA;AAIF,MAAM,MAAM,eAAe,GAAG;IAC7B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAC/D,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AAElE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,wBAAsB,UAAU,CAAC,IAAI,EAAE,GAAG,EAAE,MAAM,EAAE,eAAe,GAAG,OAAO,CAAC,GAAG,CAAC,CAWjF"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import { createResponse } from "@/types/base";
|
|
3
2
|
import { SingleOrMultipleEmails } from "@/types/common";
|
|
4
3
|
export const EmailSendRequest = z.object({
|
|
5
4
|
/** Recipient email address(es). Can be a string or array of up to 10 addresses */
|
|
@@ -32,8 +31,6 @@ export const EmailSendRequest = z.object({
|
|
|
32
31
|
export const EmailResponse = z.object({
|
|
33
32
|
email_id: z.string(),
|
|
34
33
|
});
|
|
35
|
-
// Using the new base response builder
|
|
36
|
-
export const EmailSendResponse = createResponse(EmailResponse);
|
|
37
34
|
/**
|
|
38
35
|
* Sends an email
|
|
39
36
|
*
|
|
@@ -76,9 +73,6 @@ export async function _emailSend(params) {
|
|
|
76
73
|
});
|
|
77
74
|
return this.parse({
|
|
78
75
|
response,
|
|
79
|
-
|
|
80
|
-
sdk: EmailResponse,
|
|
81
|
-
raw: EmailSendResponse.raw
|
|
82
|
-
}
|
|
76
|
+
schema: EmailResponse
|
|
83
77
|
});
|
|
84
78
|
}
|
|
@@ -16,9 +16,6 @@ export declare const iMessageSendRequest: z.ZodObject<{
|
|
|
16
16
|
export declare const iMessageResponse: z.ZodObject<{
|
|
17
17
|
message_id: z.ZodString;
|
|
18
18
|
}, z.core.$strip>;
|
|
19
|
-
export declare const iMessageSendResponse: import("@/types/base").BaseResponseBuilder<z.ZodObject<{
|
|
20
|
-
message_id: z.ZodString;
|
|
21
|
-
}, z.core.$strip>>;
|
|
22
19
|
export type iMessageFallbackParams = {
|
|
23
20
|
when: ("imessage_unsupported" | "imessage_fails")[];
|
|
24
21
|
from?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"send.d.ts","sourceRoot":"","sources":["../../../src/services/imessage/send.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"send.d.ts","sourceRoot":"","sources":["../../../src/services/imessage/send.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;iBAW9B,CAAA;AAEF,eAAO,MAAM,gBAAgB;;iBAG3B,CAAA;AAKF,MAAM,MAAM,sBAAsB,GAAG;IACpC,IAAI,EAAE,CAAC,sBAAsB,GAAG,gBAAgB,CAAC,EAAE,CAAC;IACpD,IAAI,CAAC,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AACrE,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAEpE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,wBAAsB,aAAa,CAAC,IAAI,EAAE,GAAG,EAAE,MAAM,EAAE,kBAAkB,GAAG,OAAO,CAAC,GAAG,CAAC,CAWvF"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import { createResponse } from "@/types/base";
|
|
3
2
|
import { E164PhoneNumber, OptionalSenderNumber, MessageContent, AttachmentList, createFallbackSchema } from "@/types/common";
|
|
4
3
|
export const iMessageSendRequest = z.object({
|
|
5
4
|
/** Recipient's iMessage address. Must be in E.164 format */
|
|
@@ -17,8 +16,6 @@ export const iMessageResponse = z.object({
|
|
|
17
16
|
/** The message's ID. Use it to refer to this message in the future, when checking the status of the message or finding it in the Console */
|
|
18
17
|
message_id: z.string(),
|
|
19
18
|
});
|
|
20
|
-
// Using the new base response builder - this replaces the manual Flattened/Raw definitions
|
|
21
|
-
export const iMessageSendResponse = createResponse(iMessageResponse);
|
|
22
19
|
/**
|
|
23
20
|
* Sends an iMessage
|
|
24
21
|
*
|
|
@@ -58,9 +55,6 @@ export async function _iMessageSend(params) {
|
|
|
58
55
|
});
|
|
59
56
|
return this.parse({
|
|
60
57
|
response,
|
|
61
|
-
|
|
62
|
-
sdk: iMessageResponse,
|
|
63
|
-
raw: iMessageSendResponse.raw
|
|
64
|
-
}
|
|
58
|
+
schema: iMessageResponse
|
|
65
59
|
});
|
|
66
60
|
}
|
|
@@ -10,9 +10,6 @@ export declare const iMessageTypingRequest: z.ZodObject<{
|
|
|
10
10
|
export declare const iMessageTypingResponse: z.ZodObject<{
|
|
11
11
|
status: z.ZodString;
|
|
12
12
|
}, z.core.$strip>;
|
|
13
|
-
export declare const iMessageTypingResponseBuilder: import("@/types/base").BaseResponseBuilder<z.ZodObject<{
|
|
14
|
-
status: z.ZodString;
|
|
15
|
-
}, z.core.$strip>>;
|
|
16
13
|
export type iMessageTypingParams = z.infer<typeof iMessageTypingRequest>;
|
|
17
14
|
export type iMessageTypingResponseType = z.infer<typeof iMessageTypingResponse>;
|
|
18
15
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typing.d.ts","sourceRoot":"","sources":["../../../src/services/imessage/typing.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"typing.d.ts","sourceRoot":"","sources":["../../../src/services/imessage/typing.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,qBAAqB;;;;;;;iBAOhC,CAAA;AAEF,eAAO,MAAM,sBAAsB;;iBAGjC,CAAA;AAKF,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AACzE,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAEhF;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAsB,eAAe,CAAC,IAAI,EAAE,GAAG,EAAE,MAAM,EAAE,oBAAoB,GAAG,OAAO,CAAC,GAAG,CAAC,CAW3F"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import { createResponse } from "@/types/base";
|
|
3
2
|
import { E164PhoneNumber, OptionalSenderNumber, TypingAction } from "@/types/common";
|
|
4
3
|
export const iMessageTypingRequest = z.object({
|
|
5
4
|
/** Recipient's iMessage address. Must be in E.164 format */
|
|
@@ -13,8 +12,6 @@ export const iMessageTypingResponse = z.object({
|
|
|
13
12
|
/** Status of the typing indicator */
|
|
14
13
|
status: z.string(),
|
|
15
14
|
});
|
|
16
|
-
// Using the new base response builder
|
|
17
|
-
export const iMessageTypingResponseBuilder = createResponse(iMessageTypingResponse);
|
|
18
15
|
/**
|
|
19
16
|
* Start or stop sending typing indicators over iMessage
|
|
20
17
|
*
|
|
@@ -47,9 +44,6 @@ export async function _iMessageTyping(params) {
|
|
|
47
44
|
});
|
|
48
45
|
return this.parse({
|
|
49
46
|
response,
|
|
50
|
-
|
|
51
|
-
sdk: iMessageTypingResponse,
|
|
52
|
-
raw: iMessageTypingResponseBuilder.raw
|
|
53
|
-
}
|
|
47
|
+
schema: iMessageTypingResponse
|
|
54
48
|
});
|
|
55
49
|
}
|
|
@@ -162,68 +162,6 @@ export declare const LeaseAvailableResponse: z.ZodObject<{
|
|
|
162
162
|
}, z.core.$strip>;
|
|
163
163
|
}, z.core.$strip>>;
|
|
164
164
|
}, z.core.$strip>;
|
|
165
|
-
export declare const LeaseAvailableResponseBuilder: import("@/types/base").BaseResponseBuilder<z.ZodObject<{
|
|
166
|
-
available: z.ZodNumber;
|
|
167
|
-
numbers: z.ZodArray<z.ZodObject<{
|
|
168
|
-
id: z.ZodString;
|
|
169
|
-
status: z.ZodEnum<{
|
|
170
|
-
available: "available";
|
|
171
|
-
"g-available": "g-available";
|
|
172
|
-
leased: "leased";
|
|
173
|
-
unavailable: "unavailable";
|
|
174
|
-
}>;
|
|
175
|
-
number: z.ZodObject<{
|
|
176
|
-
e164: z.ZodString;
|
|
177
|
-
formatted: z.ZodString;
|
|
178
|
-
}, z.core.$strip>;
|
|
179
|
-
location: z.ZodObject<{
|
|
180
|
-
country: z.ZodString;
|
|
181
|
-
region: z.ZodString;
|
|
182
|
-
city: z.ZodString;
|
|
183
|
-
}, z.core.$strip>;
|
|
184
|
-
carrier: z.ZodEnum<{
|
|
185
|
-
"T-Mobile": "T-Mobile";
|
|
186
|
-
"AT&T": "AT&T";
|
|
187
|
-
Verizon: "Verizon";
|
|
188
|
-
Contiguity: "Contiguity";
|
|
189
|
-
"International Partner": "International Partner";
|
|
190
|
-
}>;
|
|
191
|
-
capabilities: z.ZodObject<{
|
|
192
|
-
intl_sms: z.ZodBoolean;
|
|
193
|
-
channels: z.ZodArray<z.ZodEnum<{
|
|
194
|
-
sms: "sms";
|
|
195
|
-
mms: "mms";
|
|
196
|
-
rcs: "rcs";
|
|
197
|
-
imessage: "imessage";
|
|
198
|
-
whatsapp: "whatsapp";
|
|
199
|
-
}>>;
|
|
200
|
-
}, z.core.$strip>;
|
|
201
|
-
health: z.ZodObject<{
|
|
202
|
-
reputation: z.ZodNumber;
|
|
203
|
-
previous_owners: z.ZodNumber;
|
|
204
|
-
}, z.core.$strip>;
|
|
205
|
-
data: z.ZodObject<{
|
|
206
|
-
requirements: z.ZodArray<z.ZodEnum<{
|
|
207
|
-
imessage_entitlement_required: "imessage_entitlement_required";
|
|
208
|
-
whatsapp_entitlement_required: "whatsapp_entitlement_required";
|
|
209
|
-
enterprise_plan_required: "enterprise_plan_required";
|
|
210
|
-
}>>;
|
|
211
|
-
e911_capable: z.ZodBoolean;
|
|
212
|
-
}, z.core.$strip>;
|
|
213
|
-
created_at: z.ZodNumber;
|
|
214
|
-
pricing: z.ZodObject<{
|
|
215
|
-
currency: z.ZodEnum<{
|
|
216
|
-
USD: "USD";
|
|
217
|
-
EUR: "EUR";
|
|
218
|
-
GBP: "GBP";
|
|
219
|
-
CAD: "CAD";
|
|
220
|
-
AUD: "AUD";
|
|
221
|
-
}>;
|
|
222
|
-
upfront_fee: z.ZodNumber;
|
|
223
|
-
monthly_rate: z.ZodNumber;
|
|
224
|
-
}, z.core.$strip>;
|
|
225
|
-
}, z.core.$strip>>;
|
|
226
|
-
}, z.core.$strip>>;
|
|
227
165
|
export type LeaseAvailableResponseType = z.infer<typeof LeaseAvailableResponse>;
|
|
228
166
|
export type AvailableNumberType = z.infer<typeof AvailableNumber>;
|
|
229
167
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"available.d.ts","sourceRoot":"","sources":["../../../src/services/lease/available.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"available.d.ts","sourceRoot":"","sources":["../../../src/services/lease/available.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,kBAAkB;;;;;;;;;iBAK7B,CAAC;AAEH,eAAO,MAAM,YAAY;;;iBAKvB,CAAC;AAEH,eAAO,MAAM,cAAc;;;;iBAOzB,CAAC;AAEH,eAAO,MAAM,YAAY;;;iBAKvB,CAAC;AAEH,eAAO,MAAM,UAAU;;;;;;;iBAKrB,CAAC;AAEH,eAAO,MAAM,aAAa;;;;;;;;;;iBAOxB,CAAC;AAEH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAqB1B,CAAC;AAEH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAKjC,CAAC;AAKH,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAChF,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAElE;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAsB,eAAe,CAAC,IAAI,EAAE,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,CAS7D"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import { createResponse } from "@/types/base";
|
|
3
2
|
export const NumberCapabilities = z.object({
|
|
4
3
|
/** International SMS support (generally only T-Mobile numbers support this) */
|
|
5
4
|
intl_sms: z.boolean(),
|
|
@@ -68,8 +67,6 @@ export const LeaseAvailableResponse = z.object({
|
|
|
68
67
|
/** Available numbers */
|
|
69
68
|
numbers: z.array(AvailableNumber)
|
|
70
69
|
});
|
|
71
|
-
// Using the new base response builder
|
|
72
|
-
export const LeaseAvailableResponseBuilder = createResponse(LeaseAvailableResponse);
|
|
73
70
|
/**
|
|
74
71
|
* Gets all phone numbers available for lease
|
|
75
72
|
*
|
|
@@ -101,9 +98,6 @@ export async function _leaseAvailable() {
|
|
|
101
98
|
});
|
|
102
99
|
return this.parse({
|
|
103
100
|
response,
|
|
104
|
-
|
|
105
|
-
sdk: LeaseAvailableResponse,
|
|
106
|
-
raw: LeaseAvailableResponseBuilder.raw
|
|
107
|
-
}
|
|
101
|
+
schema: LeaseAvailableResponse
|
|
108
102
|
});
|
|
109
103
|
}
|
|
@@ -74,37 +74,6 @@ export declare const LeaseCreateResponse: z.ZodObject<{
|
|
|
74
74
|
}, z.core.$strip>;
|
|
75
75
|
}, z.core.$strip>;
|
|
76
76
|
}, z.core.$strip>;
|
|
77
|
-
export declare const LeaseCreateResponseBuilder: import("@/types/base").BaseResponseBuilder<z.ZodObject<{
|
|
78
|
-
lease_id: z.ZodString;
|
|
79
|
-
number: z.ZodString;
|
|
80
|
-
status: z.ZodEnum<{
|
|
81
|
-
active: "active";
|
|
82
|
-
expired: "expired";
|
|
83
|
-
terminated: "terminated";
|
|
84
|
-
}>;
|
|
85
|
-
billing: z.ZodObject<{
|
|
86
|
-
method: z.ZodEnum<{
|
|
87
|
-
monthly: "monthly";
|
|
88
|
-
service_contract: "service_contract";
|
|
89
|
-
goodwill: "goodwill";
|
|
90
|
-
}>;
|
|
91
|
-
price: z.ZodObject<{
|
|
92
|
-
currency: z.ZodEnum<{
|
|
93
|
-
USD: "USD";
|
|
94
|
-
EUR: "EUR";
|
|
95
|
-
GBP: "GBP";
|
|
96
|
-
CAD: "CAD";
|
|
97
|
-
AUD: "AUD";
|
|
98
|
-
}>;
|
|
99
|
-
monthly_rate: z.ZodNumber;
|
|
100
|
-
upfront_fee: z.ZodNumber;
|
|
101
|
-
}, z.core.$strip>;
|
|
102
|
-
period: z.ZodObject<{
|
|
103
|
-
start: z.ZodNumber;
|
|
104
|
-
end: z.ZodNull;
|
|
105
|
-
}, z.core.$strip>;
|
|
106
|
-
}, z.core.$strip>;
|
|
107
|
-
}, z.core.$strip>>;
|
|
108
77
|
export type LeaseCreateParams = z.infer<typeof LeaseCreateRequest>;
|
|
109
78
|
export type LeaseCreateResponseType = z.infer<typeof LeaseCreateResponse>;
|
|
110
79
|
export type LeaseBillingType = z.infer<typeof LeaseBilling>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create.d.ts","sourceRoot":"","sources":["../../../src/services/lease/create.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"create.d.ts","sourceRoot":"","sources":["../../../src/services/lease/create.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,kBAAkB;;;;;;iBAK7B,CAAC;AAEH,eAAO,MAAM,iBAAiB;;;;;;;;;;iBAO5B,CAAC;AAEH,eAAO,MAAM,kBAAkB;;;iBAK7B,CAAC;AAEH,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;iBAOvB,CAAC;AAEH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAS9B,CAAC;AAKH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AACnE,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAC1E,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AAE5D;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,wBAAsB,YAAY,CAAC,IAAI,EAAE,GAAG,EAAE,MAAM,EAAE,iBAAiB,GAAG,OAAO,CAAC,GAAG,CAAC,CAarF"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import { createResponse } from "@/types/base";
|
|
3
2
|
export const LeaseCreateRequest = z.object({
|
|
4
3
|
/** Phone number in E.164 format to lease */
|
|
5
4
|
number: z.string().regex(/^\+[1-9]\d{1,14}$/, "Phone number must be in E.164 format"),
|
|
@@ -38,8 +37,6 @@ export const LeaseCreateResponse = z.object({
|
|
|
38
37
|
/** Lease billing information */
|
|
39
38
|
billing: LeaseBilling
|
|
40
39
|
});
|
|
41
|
-
// Using the new base response builder
|
|
42
|
-
export const LeaseCreateResponseBuilder = createResponse(LeaseCreateResponse);
|
|
43
40
|
/**
|
|
44
41
|
* Leases a specific phone number
|
|
45
42
|
*
|
|
@@ -76,9 +73,6 @@ export async function _leaseCreate(params) {
|
|
|
76
73
|
});
|
|
77
74
|
return this.parse({
|
|
78
75
|
response,
|
|
79
|
-
|
|
80
|
-
sdk: LeaseCreateResponse,
|
|
81
|
-
raw: LeaseCreateResponseBuilder.raw
|
|
82
|
-
}
|
|
76
|
+
schema: LeaseCreateResponse
|
|
83
77
|
});
|
|
84
78
|
}
|
|
@@ -79,83 +79,6 @@ export declare const LeaseDetailsResponse: z.ZodObject<{
|
|
|
79
79
|
}, z.core.$strip>;
|
|
80
80
|
}, z.core.$strip>;
|
|
81
81
|
}, z.core.$strip>;
|
|
82
|
-
export declare const LeaseDetailsResponseBuilder: import("@/types/base").BaseResponseBuilder<z.ZodObject<{
|
|
83
|
-
id: z.ZodString;
|
|
84
|
-
status: z.ZodEnum<{
|
|
85
|
-
available: "available";
|
|
86
|
-
"g-available": "g-available";
|
|
87
|
-
leased: "leased";
|
|
88
|
-
unavailable: "unavailable";
|
|
89
|
-
}>;
|
|
90
|
-
number: z.ZodObject<{
|
|
91
|
-
e164: z.ZodString;
|
|
92
|
-
formatted: z.ZodString;
|
|
93
|
-
}, z.core.$strip>;
|
|
94
|
-
location: z.ZodObject<{
|
|
95
|
-
country: z.ZodString;
|
|
96
|
-
region: z.ZodString;
|
|
97
|
-
city: z.ZodString;
|
|
98
|
-
}, z.core.$strip>;
|
|
99
|
-
carrier: z.ZodEnum<{
|
|
100
|
-
"T-Mobile": "T-Mobile";
|
|
101
|
-
"AT&T": "AT&T";
|
|
102
|
-
Verizon: "Verizon";
|
|
103
|
-
Contiguity: "Contiguity";
|
|
104
|
-
"International Partner": "International Partner";
|
|
105
|
-
Twilio: "Twilio";
|
|
106
|
-
}>;
|
|
107
|
-
capabilities: z.ZodObject<{
|
|
108
|
-
intl_sms: z.ZodBoolean;
|
|
109
|
-
channels: z.ZodArray<z.ZodEnum<{
|
|
110
|
-
sms: "sms";
|
|
111
|
-
mms: "mms";
|
|
112
|
-
rcs: "rcs";
|
|
113
|
-
imessage: "imessage";
|
|
114
|
-
whatsapp: "whatsapp";
|
|
115
|
-
}>>;
|
|
116
|
-
}, z.core.$strip>;
|
|
117
|
-
health: z.ZodObject<{
|
|
118
|
-
reputation: z.ZodNumber;
|
|
119
|
-
previous_owners: z.ZodNumber;
|
|
120
|
-
}, z.core.$strip>;
|
|
121
|
-
data: z.ZodObject<{
|
|
122
|
-
requirements: z.ZodArray<z.ZodEnum<{
|
|
123
|
-
imessage_entitlement_required: "imessage_entitlement_required";
|
|
124
|
-
whatsapp_entitlement_required: "whatsapp_entitlement_required";
|
|
125
|
-
enterprise_plan_required: "enterprise_plan_required";
|
|
126
|
-
}>>;
|
|
127
|
-
e911_capable: z.ZodBoolean;
|
|
128
|
-
}, z.core.$strip>;
|
|
129
|
-
created_at: z.ZodNumber;
|
|
130
|
-
pricing: z.ZodObject<{
|
|
131
|
-
currency: z.ZodEnum<{
|
|
132
|
-
USD: "USD";
|
|
133
|
-
EUR: "EUR";
|
|
134
|
-
GBP: "GBP";
|
|
135
|
-
CAD: "CAD";
|
|
136
|
-
AUD: "AUD";
|
|
137
|
-
}>;
|
|
138
|
-
upfront_fee: z.ZodNumber;
|
|
139
|
-
monthly_rate: z.ZodNumber;
|
|
140
|
-
}, z.core.$strip>;
|
|
141
|
-
lease_id: z.ZodString;
|
|
142
|
-
lease_status: z.ZodEnum<{
|
|
143
|
-
active: "active";
|
|
144
|
-
expired: "expired";
|
|
145
|
-
terminated: "terminated";
|
|
146
|
-
}>;
|
|
147
|
-
billing: z.ZodObject<{
|
|
148
|
-
method: z.ZodEnum<{
|
|
149
|
-
monthly: "monthly";
|
|
150
|
-
service_contract: "service_contract";
|
|
151
|
-
goodwill: "goodwill";
|
|
152
|
-
}>;
|
|
153
|
-
period: z.ZodObject<{
|
|
154
|
-
start: z.ZodNumber;
|
|
155
|
-
end: z.ZodNullable<z.ZodNumber>;
|
|
156
|
-
}, z.core.$strip>;
|
|
157
|
-
}, z.core.$strip>;
|
|
158
|
-
}, z.core.$strip>>;
|
|
159
82
|
export type LeaseDetailsParams = z.infer<typeof LeaseDetailsRequest>;
|
|
160
83
|
export type LeaseDetailsResponseType = z.infer<typeof LeaseDetailsResponse>;
|
|
161
84
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"details.d.ts","sourceRoot":"","sources":["../../../src/services/lease/details.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"details.d.ts","sourceRoot":"","sources":["../../../src/services/lease/details.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,mBAAmB;;iBAG9B,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAAe,CAAC;AAKjD,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AACrE,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAE5E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+CG;AACH,wBAAsB,aAAa,CAAC,IAAI,EAAE,GAAG,EAAE,MAAM,EAAE,kBAAkB,GAAG,OAAO,CAAC,GAAG,CAAC,CAUvF"}
|
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import { createResponse } from "@/types/base";
|
|
3
2
|
import { LeasedNumber } from "@/services/lease/leased";
|
|
4
3
|
export const LeaseDetailsRequest = z.object({
|
|
5
4
|
/** Phone number in E.164 format to get lease details for */
|
|
6
5
|
number: z.string().regex(/^\+[1-9]\d{1,14}$/, "Phone number must be in E.164 format"),
|
|
7
6
|
});
|
|
8
7
|
export const LeaseDetailsResponse = LeasedNumber;
|
|
9
|
-
// Using the new base response builder
|
|
10
|
-
export const LeaseDetailsResponseBuilder = createResponse(LeaseDetailsResponse);
|
|
11
8
|
/**
|
|
12
9
|
* Gets information about a specific leased number
|
|
13
10
|
*
|
|
@@ -63,9 +60,6 @@ export async function _leaseDetails(params) {
|
|
|
63
60
|
});
|
|
64
61
|
return this.parse({
|
|
65
62
|
response,
|
|
66
|
-
|
|
67
|
-
sdk: LeaseDetailsResponse,
|
|
68
|
-
raw: LeaseDetailsResponseBuilder.raw
|
|
69
|
-
}
|
|
63
|
+
schema: LeaseDetailsResponse
|
|
70
64
|
});
|
|
71
65
|
}
|
|
@@ -61,65 +61,6 @@ export declare const LeaseGetResponse: z.ZodObject<{
|
|
|
61
61
|
monthly_rate: z.ZodNumber;
|
|
62
62
|
}, z.core.$strip>;
|
|
63
63
|
}, z.core.$strip>;
|
|
64
|
-
export declare const LeaseGetResponseBuilder: import("@/types/base").BaseResponseBuilder<z.ZodObject<{
|
|
65
|
-
id: z.ZodString;
|
|
66
|
-
status: z.ZodEnum<{
|
|
67
|
-
available: "available";
|
|
68
|
-
"g-available": "g-available";
|
|
69
|
-
leased: "leased";
|
|
70
|
-
unavailable: "unavailable";
|
|
71
|
-
}>;
|
|
72
|
-
number: z.ZodObject<{
|
|
73
|
-
e164: z.ZodString;
|
|
74
|
-
formatted: z.ZodString;
|
|
75
|
-
}, z.core.$strip>;
|
|
76
|
-
location: z.ZodObject<{
|
|
77
|
-
country: z.ZodString;
|
|
78
|
-
region: z.ZodString;
|
|
79
|
-
city: z.ZodString;
|
|
80
|
-
}, z.core.$strip>;
|
|
81
|
-
carrier: z.ZodEnum<{
|
|
82
|
-
"T-Mobile": "T-Mobile";
|
|
83
|
-
"AT&T": "AT&T";
|
|
84
|
-
Verizon: "Verizon";
|
|
85
|
-
Contiguity: "Contiguity";
|
|
86
|
-
"International Partner": "International Partner";
|
|
87
|
-
}>;
|
|
88
|
-
capabilities: z.ZodObject<{
|
|
89
|
-
intl_sms: z.ZodBoolean;
|
|
90
|
-
channels: z.ZodArray<z.ZodEnum<{
|
|
91
|
-
sms: "sms";
|
|
92
|
-
mms: "mms";
|
|
93
|
-
rcs: "rcs";
|
|
94
|
-
imessage: "imessage";
|
|
95
|
-
whatsapp: "whatsapp";
|
|
96
|
-
}>>;
|
|
97
|
-
}, z.core.$strip>;
|
|
98
|
-
health: z.ZodObject<{
|
|
99
|
-
reputation: z.ZodNumber;
|
|
100
|
-
previous_owners: z.ZodNumber;
|
|
101
|
-
}, z.core.$strip>;
|
|
102
|
-
data: z.ZodObject<{
|
|
103
|
-
requirements: z.ZodArray<z.ZodEnum<{
|
|
104
|
-
imessage_entitlement_required: "imessage_entitlement_required";
|
|
105
|
-
whatsapp_entitlement_required: "whatsapp_entitlement_required";
|
|
106
|
-
enterprise_plan_required: "enterprise_plan_required";
|
|
107
|
-
}>>;
|
|
108
|
-
e911_capable: z.ZodBoolean;
|
|
109
|
-
}, z.core.$strip>;
|
|
110
|
-
created_at: z.ZodNumber;
|
|
111
|
-
pricing: z.ZodObject<{
|
|
112
|
-
currency: z.ZodEnum<{
|
|
113
|
-
USD: "USD";
|
|
114
|
-
EUR: "EUR";
|
|
115
|
-
GBP: "GBP";
|
|
116
|
-
CAD: "CAD";
|
|
117
|
-
AUD: "AUD";
|
|
118
|
-
}>;
|
|
119
|
-
upfront_fee: z.ZodNumber;
|
|
120
|
-
monthly_rate: z.ZodNumber;
|
|
121
|
-
}, z.core.$strip>;
|
|
122
|
-
}, z.core.$strip>>;
|
|
123
64
|
export type LeaseGetParams = z.infer<typeof LeaseGetRequest>;
|
|
124
65
|
export type LeaseGetResponseType = z.infer<typeof LeaseGetResponse>;
|
|
125
66
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get.d.ts","sourceRoot":"","sources":["../../../src/services/lease/get.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"get.d.ts","sourceRoot":"","sources":["../../../src/services/lease/get.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAWxB,eAAO,MAAM,eAAe;;iBAG1B,CAAC;AAEH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAqB3B,CAAC;AAKH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAC7D,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAEpE;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,wBAAsB,SAAS,CAAC,IAAI,EAAE,GAAG,EAAE,MAAM,EAAE,cAAc,GAAG,OAAO,CAAC,GAAG,CAAC,CAU/E"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import { createResponse } from "@/types/base";
|
|
3
2
|
import { E164PhoneNumber, NumberStatus, Carrier } from "@/types/common";
|
|
4
3
|
import { NumberCapabilities, NumberHealth, NumberLocation, NumberFormat, NumberData, NumberPricing } from "@/services/lease/available";
|
|
5
4
|
export const LeaseGetRequest = z.object({
|
|
@@ -28,8 +27,6 @@ export const LeaseGetResponse = z.object({
|
|
|
28
27
|
/** Pricing information */
|
|
29
28
|
pricing: NumberPricing
|
|
30
29
|
});
|
|
31
|
-
// Using the new base response builder
|
|
32
|
-
export const LeaseGetResponseBuilder = createResponse(LeaseGetResponse);
|
|
33
30
|
/**
|
|
34
31
|
* Gets information about a specific number available for lease
|
|
35
32
|
*
|
|
@@ -66,9 +63,6 @@ export async function _leaseGet(params) {
|
|
|
66
63
|
});
|
|
67
64
|
return this.parse({
|
|
68
65
|
response,
|
|
69
|
-
|
|
70
|
-
sdk: LeaseGetResponse,
|
|
71
|
-
raw: LeaseGetResponseBuilder.raw
|
|
72
|
-
}
|
|
66
|
+
schema: LeaseGetResponse
|
|
73
67
|
});
|
|
74
68
|
}
|