contiguity 0.0.1

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.
Files changed (111) hide show
  1. package/LICENSE.md +8 -0
  2. package/README.md +1 -0
  3. package/dist/client/fetch.d.ts +30 -0
  4. package/dist/client/fetch.d.ts.map +1 -0
  5. package/dist/client/fetch.js +117 -0
  6. package/dist/contiguity.d.ts +81 -0
  7. package/dist/contiguity.d.ts.map +1 -0
  8. package/dist/contiguity.js +106 -0
  9. package/dist/index.d.ts +28 -0
  10. package/dist/index.d.ts.map +1 -0
  11. package/dist/index.js +12542 -0
  12. package/dist/services/domains/delete.d.ts +32 -0
  13. package/dist/services/domains/delete.d.ts.map +1 -0
  14. package/dist/services/domains/delete.js +43 -0
  15. package/dist/services/domains/get.d.ts +128 -0
  16. package/dist/services/domains/get.d.ts.map +1 -0
  17. package/dist/services/domains/get.js +95 -0
  18. package/dist/services/domains/index.d.ts +34 -0
  19. package/dist/services/domains/index.d.ts.map +1 -0
  20. package/dist/services/domains/index.js +37 -0
  21. package/dist/services/domains/list.d.ts +68 -0
  22. package/dist/services/domains/list.d.ts.map +1 -0
  23. package/dist/services/domains/list.js +52 -0
  24. package/dist/services/domains/register.d.ts +89 -0
  25. package/dist/services/domains/register.d.ts.map +1 -0
  26. package/dist/services/domains/register.js +73 -0
  27. package/dist/services/email/index.d.ts +17 -0
  28. package/dist/services/email/index.d.ts.map +1 -0
  29. package/dist/services/email/index.js +16 -0
  30. package/dist/services/email/send.d.ts +69 -0
  31. package/dist/services/email/send.d.ts.map +1 -0
  32. package/dist/services/email/send.js +84 -0
  33. package/dist/services/imessage/index.d.ts +24 -0
  34. package/dist/services/imessage/index.d.ts.map +1 -0
  35. package/dist/services/imessage/index.js +23 -0
  36. package/dist/services/imessage/send.d.ts +60 -0
  37. package/dist/services/imessage/send.d.ts.map +1 -0
  38. package/dist/services/imessage/send.js +66 -0
  39. package/dist/services/imessage/typing.d.ts +43 -0
  40. package/dist/services/imessage/typing.d.ts.map +1 -0
  41. package/dist/services/imessage/typing.js +55 -0
  42. package/dist/services/lease/available.d.ts +255 -0
  43. package/dist/services/lease/available.d.ts.map +1 -0
  44. package/dist/services/lease/available.js +109 -0
  45. package/dist/services/lease/create.d.ts +139 -0
  46. package/dist/services/lease/create.d.ts.map +1 -0
  47. package/dist/services/lease/create.js +84 -0
  48. package/dist/services/lease/details.d.ts +210 -0
  49. package/dist/services/lease/details.d.ts.map +1 -0
  50. package/dist/services/lease/details.js +71 -0
  51. package/dist/services/lease/get.d.ts +155 -0
  52. package/dist/services/lease/get.d.ts.map +1 -0
  53. package/dist/services/lease/get.js +74 -0
  54. package/dist/services/lease/index.d.ts +50 -0
  55. package/dist/services/lease/index.d.ts.map +1 -0
  56. package/dist/services/lease/index.js +51 -0
  57. package/dist/services/lease/leased.d.ts +308 -0
  58. package/dist/services/lease/leased.d.ts.map +1 -0
  59. package/dist/services/lease/leased.js +114 -0
  60. package/dist/services/lease/terminate.d.ts +81 -0
  61. package/dist/services/lease/terminate.d.ts.map +1 -0
  62. package/dist/services/lease/terminate.js +84 -0
  63. package/dist/services/otp/index.d.ts +28 -0
  64. package/dist/services/otp/index.d.ts.map +1 -0
  65. package/dist/services/otp/index.js +30 -0
  66. package/dist/services/otp/new.d.ts +29 -0
  67. package/dist/services/otp/new.d.ts.map +1 -0
  68. package/dist/services/otp/new.js +44 -0
  69. package/dist/services/otp/resend.d.ts +25 -0
  70. package/dist/services/otp/resend.d.ts.map +1 -0
  71. package/dist/services/otp/resend.js +37 -0
  72. package/dist/services/otp/verify.d.ts +27 -0
  73. package/dist/services/otp/verify.d.ts.map +1 -0
  74. package/dist/services/otp/verify.js +40 -0
  75. package/dist/services/text/index.d.ts +17 -0
  76. package/dist/services/text/index.d.ts.map +1 -0
  77. package/dist/services/text/index.js +16 -0
  78. package/dist/services/text/send.d.ts +28 -0
  79. package/dist/services/text/send.d.ts.map +1 -0
  80. package/dist/services/text/send.js +43 -0
  81. package/dist/services/whatsapp/index.d.ts +24 -0
  82. package/dist/services/whatsapp/index.d.ts.map +1 -0
  83. package/dist/services/whatsapp/index.js +23 -0
  84. package/dist/services/whatsapp/send.d.ts +60 -0
  85. package/dist/services/whatsapp/send.d.ts.map +1 -0
  86. package/dist/services/whatsapp/send.js +66 -0
  87. package/dist/services/whatsapp/typing.d.ts +43 -0
  88. package/dist/services/whatsapp/typing.d.ts.map +1 -0
  89. package/dist/services/whatsapp/typing.js +55 -0
  90. package/dist/types/base.d.ts +38 -0
  91. package/dist/types/base.d.ts.map +1 -0
  92. package/dist/types/base.js +32 -0
  93. package/dist/types/common.d.ts +56 -0
  94. package/dist/types/common.d.ts.map +1 -0
  95. package/dist/types/common.js +48 -0
  96. package/dist/types/error.d.ts +37 -0
  97. package/dist/types/error.d.ts.map +1 -0
  98. package/dist/types/error.js +54 -0
  99. package/dist/types/metadata.d.ts +10 -0
  100. package/dist/types/metadata.d.ts.map +1 -0
  101. package/dist/types/metadata.js +1 -0
  102. package/dist/types/response.d.ts +17 -0
  103. package/dist/types/response.d.ts.map +1 -0
  104. package/dist/types/response.js +17 -0
  105. package/dist/utils/parse.d.ts +8 -0
  106. package/dist/utils/parse.d.ts.map +1 -0
  107. package/dist/utils/parse.js +36 -0
  108. package/dist/utils/request.d.ts +6 -0
  109. package/dist/utils/request.d.ts.map +1 -0
  110. package/dist/utils/request.js +47 -0
  111. package/package.json +46 -0
package/LICENSE.md ADDED
@@ -0,0 +1,8 @@
1
+ Copyright 2025 Contiguity LLC
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4
+
5
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6
+
7
+ THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
8
+
package/README.md ADDED
@@ -0,0 +1 @@
1
+ npm i contiguity
@@ -0,0 +1,30 @@
1
+ import { z } from "zod";
2
+ export interface ContiguityClientOptions {
3
+ raw?: boolean;
4
+ debug?: boolean;
5
+ }
6
+ /**
7
+ * Contiguity API client with request functionality
8
+ */
9
+ export declare class ContiguityClient {
10
+ protected readonly token: string;
11
+ protected readonly raw: boolean;
12
+ constructor(token: string, options?: ContiguityClientOptions);
13
+ /**
14
+ * Make an authenticated request to the Contiguity API
15
+ */
16
+ request(endpoint: string, options?: RequestInit): Promise<any>;
17
+ /**
18
+ * Parse and normalize API responses to either raw or flattened format
19
+ * This method handles the complex logic of parsing different response formats
20
+ * from the Contiguity API and normalizing them consistently.
21
+ */
22
+ parse<T extends z.ZodType, R extends z.ZodType>({ response, schemas: { sdk, raw } }: {
23
+ response: any;
24
+ schemas: {
25
+ sdk: T;
26
+ raw: R;
27
+ };
28
+ }): any;
29
+ }
30
+ //# sourceMappingURL=fetch.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fetch.d.ts","sourceRoot":"","sources":["../../src/client/fetch.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAQxB,MAAM,WAAW,uBAAuB;IACpC,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,KAAK,CAAC,EAAE,OAAO,CAAC;CACnB;AAED;;GAEG;AACH,qBAAa,gBAAgB;IACzB,SAAS,CAAC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACjC,SAAS,CAAC,QAAQ,CAAC,GAAG,EAAE,OAAO,CAAC;gBAEpB,KAAK,EAAE,MAAM,EAAE,OAAO,GAAE,uBAA4B;IAahE;;OAEG;IACG,OAAO,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,GAAE,WAAgB,GAAG,OAAO,CAAC,GAAG,CAAC;IA4DxE;;;;OAIG;IACH,KAAK,CAAC,CAAC,SAAS,CAAC,CAAC,OAAO,EAAE,CAAC,SAAS,CAAC,CAAC,OAAO,EAAE,EAC5C,QAAQ,EACR,OAAO,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,EACxB,EAAE;QACC,QAAQ,EAAE,GAAG,CAAC;QACd,OAAO,EAAE;YAAE,GAAG,EAAE,CAAC,CAAC;YAAC,GAAG,EAAE,CAAC,CAAC;SAAE,CAAC;KAChC,GAAG,GAAG;CAkCV"}
@@ -0,0 +1,117 @@
1
+ import { ContiguityRawResponse } from "@/types/response";
2
+ import { ContiguityAPIError, ContiguityError } from "@/types/error";
3
+ // year | month | version (monthly)
4
+ const LATEST_API_VERSION = "v2025.8.20";
5
+ const BASE_URL = "http://localhost:8080";
6
+ /**
7
+ * Contiguity API client with request functionality
8
+ */
9
+ export class ContiguityClient {
10
+ token;
11
+ raw;
12
+ constructor(token, options = {}) {
13
+ if (!token || typeof token !== 'string') {
14
+ throw new Error('API token is required and must be a string');
15
+ }
16
+ if (token.trim().length === 0) {
17
+ throw new Error('API token cannot be empty');
18
+ }
19
+ this.token = token.trim();
20
+ this.raw = options.raw || false; // If true, return raw API responses
21
+ }
22
+ /**
23
+ * Make an authenticated request to the Contiguity API
24
+ */
25
+ async request(endpoint, options = {}) {
26
+ const url = `${BASE_URL}${endpoint}`;
27
+ const defaultHeaders = {
28
+ "Authorization": `Bearer ${this.token}`,
29
+ "Content-Type": "application/json",
30
+ "User-Agent": "@contiguity/javascript",
31
+ "X-Contiguity-API-Version": LATEST_API_VERSION,
32
+ };
33
+ const config = {
34
+ ...options,
35
+ headers: {
36
+ ...defaultHeaders,
37
+ ...options.headers,
38
+ },
39
+ };
40
+ try {
41
+ const response = await fetch(url, config);
42
+ const data = await response.json();
43
+ if (!response.ok) {
44
+ // Validate error response with Zod
45
+ const errorResult = ContiguityAPIError.safeParse(data);
46
+ if (errorResult.success) {
47
+ throw new ContiguityError(errorResult.data);
48
+ }
49
+ else {
50
+ // Fallback error handling
51
+ throw new ContiguityError({
52
+ data: {
53
+ status: response.status,
54
+ error: data?.error || `HTTP ${response.status}: ${response.statusText}`,
55
+ }
56
+ });
57
+ }
58
+ }
59
+ // Validate successful response with Zod using raw response schema
60
+ const result = ContiguityRawResponse.safeParse(data);
61
+ if (result.success) {
62
+ return result.data;
63
+ }
64
+ else {
65
+ throw new ContiguityError({
66
+ data: {
67
+ status: 500,
68
+ error: "Invalid response format from API",
69
+ }
70
+ });
71
+ }
72
+ }
73
+ catch (error) {
74
+ if (error instanceof ContiguityError) {
75
+ throw error;
76
+ }
77
+ // Network or other errors
78
+ throw ContiguityError.fromError(error);
79
+ }
80
+ }
81
+ /**
82
+ * Parse and normalize API responses to either raw or flattened format
83
+ * This method handles the complex logic of parsing different response formats
84
+ * from the Contiguity API and normalizing them consistently.
85
+ */
86
+ parse({ response, schemas: { sdk, raw } }) {
87
+ // Handle different response formats:
88
+ // 1. Already wrapped in response format (response.object === "response")
89
+ // 2. Direct data that needs wrapping
90
+ // 3. Fallback to raw parsing
91
+ const validatedResponse = response.object === "response"
92
+ ? raw.parse(response)
93
+ : sdk.safeParse(response).success
94
+ ? {
95
+ id: response.id || "unknown",
96
+ timestamp: response.timestamp || Date.now(),
97
+ api_version: response.api_version || "unknown",
98
+ object: response.object || "unknown",
99
+ data: sdk.parse(response),
100
+ }
101
+ : raw.parse(response);
102
+ if (this.raw) {
103
+ return validatedResponse;
104
+ }
105
+ // For flattened responses, we need to handle both formats
106
+ const rawData = raw.parse(validatedResponse);
107
+ return {
108
+ ...rawData.data,
109
+ metadata: {
110
+ id: rawData.id,
111
+ timestamp: rawData.timestamp,
112
+ api_version: rawData.api_version,
113
+ object: rawData.object,
114
+ },
115
+ };
116
+ }
117
+ }
@@ -0,0 +1,81 @@
1
+ import { TextService } from "@/services/text/index";
2
+ import { EmailService } from "@/services/email/index";
3
+ import { iMessageService } from "@/services/imessage/index";
4
+ import { WhatsAppService } from "@/services/whatsapp/index";
5
+ import { LeaseService } from "@/services/lease/index";
6
+ import { OTPService } from "@/services/otp/index";
7
+ import { DomainsService } from "@/services/domains/index";
8
+ /**
9
+ * Main Contiguity API client class
10
+ *
11
+ * @example
12
+ * ```typescript
13
+ * import { Contiguity } from '@contiguity/javascript';
14
+ *
15
+ * const contiguity = new Contiguity('your-api-token');
16
+ *
17
+ * // Send a text message
18
+ * const response = await contiguity.text.send({
19
+ * to: "+1234567890",
20
+ * message: "Hello from Contiguity!"
21
+ * });
22
+ *
23
+ * // Send an iMessage
24
+ * const imessageResponse = await contiguity.imessage.send({
25
+ * to: "+1234567890",
26
+ * message: "Hello via iMessage!"
27
+ * });
28
+ *
29
+ * // Send a WhatsApp message
30
+ * const whatsappResponse = await contiguity.whatsapp.send({
31
+ * to: "+1234567890",
32
+ * message: "Hello via WhatsApp!"
33
+ * });
34
+ *
35
+ * // Lease a phone number
36
+ * const availableNumbers = await contiguity.lease.available();
37
+ * const leaseResponse = await contiguity.lease.create({
38
+ * number: availableNumbers.numbers[0].id
39
+ * });
40
+ *
41
+ * // Send and verify OTP
42
+ * const otpResponse = await contiguity.otp.new({
43
+ * to: "+1234567890",
44
+ * language: "en",
45
+ * name: "MyApp"
46
+ * });
47
+ * const verification = await contiguity.otp.verify({
48
+ * otp_id: otpResponse.otp_id,
49
+ * otp: "123456"
50
+ * });
51
+ *
52
+ * // Manage email domains
53
+ * const domainsList = await contiguity.domains.list();
54
+ * const registerResponse = await contiguity.domains.register({
55
+ * domain: "example.com",
56
+ * region: "us-east-1"
57
+ * });
58
+ * ```
59
+ */
60
+ export declare class Contiguity {
61
+ private readonly token;
62
+ readonly text: TextService;
63
+ readonly email: EmailService;
64
+ readonly imessage: iMessageService;
65
+ readonly whatsapp: WhatsAppService;
66
+ readonly lease: LeaseService;
67
+ readonly otp: OTPService;
68
+ readonly domains: DomainsService;
69
+ /**
70
+ * Create a new Contiguity client instance
71
+ *
72
+ * @throws {ContiguitySDKError} When token is not provided or invalid
73
+ */
74
+ constructor(token: string);
75
+ /**
76
+ * Validate that the client is properly configured
77
+ * @returns True if the client is ready to use
78
+ */
79
+ ready(): boolean;
80
+ }
81
+ //# sourceMappingURL=contiguity.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"contiguity.d.ts","sourceRoot":"","sources":["../src/contiguity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACtD,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACtD,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAG1D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmDG;AACH,qBAAa,UAAU;IACnB,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAS;IAC/B,SAAgB,IAAI,EAAE,WAAW,CAAC;IAClC,SAAgB,KAAK,EAAE,YAAY,CAAC;IACpC,SAAgB,QAAQ,EAAE,eAAe,CAAC;IAC1C,SAAgB,QAAQ,EAAE,eAAe,CAAC;IAC1C,SAAgB,KAAK,EAAE,YAAY,CAAC;IACpC,SAAgB,GAAG,EAAE,UAAU,CAAC;IAChC,SAAgB,OAAO,EAAE,cAAc,CAAC;IAExC;;;;OAIG;gBACS,KAAK,EAAE,MAAM;IAyCzB;;;OAGG;IACH,KAAK,IAAI,OAAO;CAInB"}
@@ -0,0 +1,106 @@
1
+ import { TextService } from "@/services/text/index";
2
+ import { EmailService } from "@/services/email/index";
3
+ import { iMessageService } from "@/services/imessage/index";
4
+ import { WhatsAppService } from "@/services/whatsapp/index";
5
+ import { LeaseService } from "@/services/lease/index";
6
+ import { OTPService } from "@/services/otp/index";
7
+ import { DomainsService } from "@/services/domains/index";
8
+ import { ContiguitySDKError } from "@/types/error";
9
+ /**
10
+ * Main Contiguity API client class
11
+ *
12
+ * @example
13
+ * ```typescript
14
+ * import { Contiguity } from '@contiguity/javascript';
15
+ *
16
+ * const contiguity = new Contiguity('your-api-token');
17
+ *
18
+ * // Send a text message
19
+ * const response = await contiguity.text.send({
20
+ * to: "+1234567890",
21
+ * message: "Hello from Contiguity!"
22
+ * });
23
+ *
24
+ * // Send an iMessage
25
+ * const imessageResponse = await contiguity.imessage.send({
26
+ * to: "+1234567890",
27
+ * message: "Hello via iMessage!"
28
+ * });
29
+ *
30
+ * // Send a WhatsApp message
31
+ * const whatsappResponse = await contiguity.whatsapp.send({
32
+ * to: "+1234567890",
33
+ * message: "Hello via WhatsApp!"
34
+ * });
35
+ *
36
+ * // Lease a phone number
37
+ * const availableNumbers = await contiguity.lease.available();
38
+ * const leaseResponse = await contiguity.lease.create({
39
+ * number: availableNumbers.numbers[0].id
40
+ * });
41
+ *
42
+ * // Send and verify OTP
43
+ * const otpResponse = await contiguity.otp.new({
44
+ * to: "+1234567890",
45
+ * language: "en",
46
+ * name: "MyApp"
47
+ * });
48
+ * const verification = await contiguity.otp.verify({
49
+ * otp_id: otpResponse.otp_id,
50
+ * otp: "123456"
51
+ * });
52
+ *
53
+ * // Manage email domains
54
+ * const domainsList = await contiguity.domains.list();
55
+ * const registerResponse = await contiguity.domains.register({
56
+ * domain: "example.com",
57
+ * region: "us-east-1"
58
+ * });
59
+ * ```
60
+ */
61
+ export class Contiguity {
62
+ token;
63
+ text;
64
+ email;
65
+ imessage;
66
+ whatsapp;
67
+ lease;
68
+ otp;
69
+ domains;
70
+ /**
71
+ * Create a new Contiguity client instance
72
+ *
73
+ * @throws {ContiguitySDKError} When token is not provided or invalid
74
+ */
75
+ constructor(token) {
76
+ if (!token || typeof token !== 'string') {
77
+ throw new ContiguitySDKError('Contiguity API token is required and must be a string', 'invalid_token');
78
+ }
79
+ if (token.trim().length === 0) {
80
+ throw new ContiguitySDKError('Contiguity API token cannot be empty', 'empty_token');
81
+ }
82
+ if (!token.startsWith('contiguity_sk_')) {
83
+ throw new ContiguitySDKError('Contiguity tokens begin with "contiguity_sk_" – are you sure you entered the correct token?', 'invalid_token');
84
+ }
85
+ if (token.toUpperCase() === token && !token.startsWith('contiguity_sk_')) {
86
+ throw new ContiguitySDKError('Unfortunately, you cannot use API v1 keys with API v2. Please generate a new token at https://console.contiguity.com/dashboard/tokens', 'old_token');
87
+ }
88
+ this.token = token.trim();
89
+ // add new services here
90
+ this.text = new TextService(this.token);
91
+ this.email = new EmailService(this.token);
92
+ this.imessage = new iMessageService(this.token);
93
+ this.whatsapp = new WhatsAppService(this.token);
94
+ this.lease = new LeaseService(this.token);
95
+ this.otp = new OTPService(this.token);
96
+ this.domains = new DomainsService(this.token);
97
+ }
98
+ /**
99
+ * Validate that the client is properly configured
100
+ * @returns True if the client is ready to use
101
+ */
102
+ ready() {
103
+ const products = [this.text, this.email, this.imessage, this.whatsapp, this.lease, this.otp, this.domains];
104
+ return products.every(product => product !== undefined);
105
+ }
106
+ }
@@ -0,0 +1,28 @@
1
+ import { Contiguity } from "@/contiguity";
2
+ export { Contiguity };
3
+ export { ContiguityResponse, ContiguityRawResponse } from "@/types/response";
4
+ export { ContiguityAPIError, ContiguityError, ContiguitySDKError } from "@/types/error";
5
+ export type { ContiguityMetadata, WithMetadata } from "@/types/metadata";
6
+ export { createResponse, BaseResponseBuilder, type BaseResponse, type FlattenedResponse, type RawResponse } from "@/types/base";
7
+ export { E164PhoneNumber, MessageContent, OptionalSenderNumber, AttachmentList, SingleOrMultipleEmails, TypingAction, NumberStatus, LeaseStatus, BillingMethod, Currency, Carrier, MessageChannel, createFallbackSchema } from "@/types/common";
8
+ export { TextSendRequest, TextResponse } from "@/services/text/send";
9
+ export { EmailSendRequest, EmailResponse } from "@/services/email/send";
10
+ export { iMessageSendRequest, iMessageResponse } from "@/services/imessage/send";
11
+ export { iMessageTypingRequest, iMessageTypingResponse } from "@/services/imessage/typing";
12
+ export { WhatsAppSendRequest, WhatsAppResponse } from "@/services/whatsapp/send";
13
+ export { WhatsAppTypingRequest, WhatsAppTypingResponse } from "@/services/whatsapp/typing";
14
+ export { LeaseAvailableResponse, AvailableNumber, NumberCapabilities, NumberHealth, NumberLocation, NumberFormat, NumberData, NumberPricing } from "@/services/lease/available";
15
+ export { LeaseGetRequest, LeaseGetResponse } from "@/services/lease/get";
16
+ export { LeaseCreateRequest, LeaseCreateResponse, LeaseBillingPrice, LeaseBillingPeriod, LeaseBilling } from "@/services/lease/create";
17
+ export { LeaseLeasedResponse, LeasedNumber, LeasedBillingPeriod, LeasedBilling } from "@/services/lease/leased";
18
+ export { LeaseDetailsRequest, LeaseDetailsResponse } from "@/services/lease/details";
19
+ export { LeaseTerminateRequest, LeaseTerminateResponse } from "@/services/lease/terminate";
20
+ export { OTPNewRequest, OTPNewResponse } from "@/services/otp/new";
21
+ export { OTPVerifyRequest, OTPVerifyResponse } from "@/services/otp/verify";
22
+ export { OTPResendRequest, OTPResendResponse } from "@/services/otp/resend";
23
+ export { DomainsListResponse, DomainInfo } from "@/services/domains/list";
24
+ export { DomainsGetRequest, DomainsGetResponse, DNSRecord, DomainVerifications } from "@/services/domains/get";
25
+ export { DomainsRegisterRequest, DomainsRegisterResponse } from "@/services/domains/register";
26
+ export { DomainsDeleteRequest, DomainsDeleteResponse } from "@/services/domains/delete";
27
+ export default Contiguity;
28
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","s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