@@ -8,7 +8,7 @@ import * as API from './resources/index';
88
99export interface ClientOptions {
1010 /**
11- * API Key for accessing the Sent DM Core API
11+ * API key used for authenticating requests.
1212 */
1313 apiKey ?: string | undefined ;
1414
@@ -81,7 +81,7 @@ export class Sent extends Core.APIClient {
8181 * API Client for interfacing with the Sent API.
8282 *
8383 * @param {string | undefined } [opts.apiKey=process.env['X_API_KEY'] ?? undefined]
84- * @param {string } [opts.baseURL=process.env['SENT_BASE_URL'] ?? https://sent.dm] - Override the default base URL for the API.
84+ * @param {string } [opts.baseURL=process.env['SENT_BASE_URL'] ?? https://api. sent.dm] - Override the default base URL for the API.
8585 * @param {number } [opts.timeout=1 minute] - The maximum amount of time (in milliseconds) the client will wait for a response before timing out.
8686 * @param {number } [opts.httpAgent] - An HTTP agent used to manage HTTP(s) connections.
8787 * @param {Core.Fetch } [opts.fetch] - Specify a custom `fetch` function implementation.
@@ -103,7 +103,7 @@ export class Sent extends Core.APIClient {
103103 const options : ClientOptions = {
104104 apiKey,
105105 ...opts ,
106- baseURL : baseURL || `https://sent.dm` ,
106+ baseURL : baseURL || `https://api. sent.dm` ,
107107 } ;
108108
109109 super ( {
@@ -119,7 +119,6 @@ export class Sent extends Core.APIClient {
119119 this . apiKey = apiKey ;
120120 }
121121
122- contact : API . Contact = new API . Contact ( this ) ;
123122 contacts : API . Contacts = new API . Contacts ( this ) ;
124123 messages : API . Messages = new API . Messages ( this ) ;
125124 sms : API . SMS = new API . SMS ( this ) ;
@@ -185,9 +184,8 @@ export import fileFromPath = Uploads.fileFromPath;
185184export namespace Sent {
186185 export import RequestOptions = Core . RequestOptions ;
187186
188- export import Contact = API . Contact ;
189-
190187 export import Contacts = API . Contacts ;
188+ export import SentDmServicesContractsDataContactDto = API . SentDmServicesContractsDataContactDto ;
191189 export import ContactListResponse = API . ContactListResponse ;
192190 export import ContactListParams = API . ContactListParams ;
193191
@@ -219,8 +217,6 @@ export namespace Sent {
219217 export import SentDmServicesContractsDataCustomerDto = API . SentDmServicesContractsDataCustomerDto ;
220218 export import CustomerDeleteResponse = API . CustomerDeleteResponse ;
221219 export import CustomerUpdateParams = API . CustomerUpdateParams ;
222-
223- export import SentDmServicesContractsDataContactDto = API . SentDmServicesContractsDataContactDto ;
224220}
225221
226222export default Sent ;
0 commit comments