11# Sent Dm TypeScript API Library
22
3- [ ![ NPM version] ( < https://img.shields.io/npm/v/sentdm .svg?label=npm%20(stable) > )] ( https://npmjs.org/package/sentdm ) ![ npm bundle size] ( https://img.shields.io/bundlephobia/minzip/sentdm )
3+ [ ![ NPM version] ( < https://img.shields.io/npm/v/sent-dm .svg?label=npm%20(stable) > )] ( https://npmjs.org/package/sent-dm ) ![ npm bundle size] ( https://img.shields.io/bundlephobia/minzip/sent-dm )
44
55This library provides convenient access to the Sent Dm REST API from server-side TypeScript or JavaScript.
66
@@ -11,7 +11,7 @@ It is generated with [Stainless](https://www.stainless.com/).
1111## Installation
1212
1313``` sh
14- npm install sentdm
14+ npm install sent-dm
1515```
1616
1717## Usage
@@ -20,7 +20,7 @@ The full API of this library can be found in [api.md](api.md).
2020
2121<!-- prettier-ignore -->
2222``` js
23- import SentDm from ' sentdm ' ;
23+ import SentDm from ' sent-dm ' ;
2424
2525const client = new SentDm ({
2626 apiKey: process .env [' SENT_DM_API_KEY' ], // This is the default and can be omitted
@@ -40,7 +40,7 @@ This library includes TypeScript definitions for all request params and response
4040
4141<!-- prettier-ignore -->
4242``` ts
43- import SentDm from ' sentdm ' ;
43+ import SentDm from ' sent-dm ' ;
4444
4545const client = new SentDm ({
4646 apiKey: process .env [' SENT_DM_API_KEY' ], // This is the default and can be omitted
@@ -194,7 +194,7 @@ The log level can be configured in two ways:
1941942 . Using the ` logLevel ` client option (overrides the environment variable if set)
195195
196196``` ts
197- import SentDm from ' sentdm ' ;
197+ import SentDm from ' sent-dm ' ;
198198
199199const client = new SentDm ({
200200 logLevel: ' debug' , // Show all log messages
@@ -222,7 +222,7 @@ When providing a custom logger, the `logLevel` option still controls which messa
222222below the configured level will not be sent to your logger.
223223
224224``` ts
225- import SentDm from ' sentdm ' ;
225+ import SentDm from ' sent-dm ' ;
226226import pino from ' pino' ;
227227
228228const logger = pino ();
@@ -291,7 +291,7 @@ globalThis.fetch = fetch;
291291Or pass it to the client:
292292
293293``` ts
294- import SentDm from ' sentdm ' ;
294+ import SentDm from ' sent-dm ' ;
295295import fetch from ' my-fetch' ;
296296
297297const client = new SentDm ({ fetch });
@@ -302,7 +302,7 @@ const client = new SentDm({ fetch });
302302If you want to set custom ` fetch ` options without overriding the ` fetch ` function, you can provide a ` fetchOptions ` object when instantiating the client or making a request. (Request-specific options override client options.)
303303
304304``` ts
305- import SentDm from ' sentdm ' ;
305+ import SentDm from ' sent-dm ' ;
306306
307307const client = new SentDm ({
308308 fetchOptions: {
@@ -319,7 +319,7 @@ options to requests:
319319<img src =" https://raw.githubusercontent.com/stainless-api/sdk-assets/refs/heads/main/node.svg " align =" top " width =" 18 " height =" 21 " > ** Node** <sup >[[ docs] ( https://github.com/nodejs/undici/blob/main/docs/docs/api/ProxyAgent.md#example---proxyagent-with-fetch )] </sup >
320320
321321``` ts
322- import SentDm from ' sentdm ' ;
322+ import SentDm from ' sent-dm ' ;
323323import * as undici from ' undici' ;
324324
325325const proxyAgent = new undici .ProxyAgent (' http://localhost:8888' );
@@ -333,7 +333,7 @@ const client = new SentDm({
333333<img src =" https://raw.githubusercontent.com/stainless-api/sdk-assets/refs/heads/main/bun.svg " align =" top " width =" 18 " height =" 21 " > ** Bun** <sup >[[ docs] ( https://bun.sh/guides/http/proxy )] </sup >
334334
335335``` ts
336- import SentDm from ' sentdm ' ;
336+ import SentDm from ' sent-dm ' ;
337337
338338const client = new SentDm ({
339339 fetchOptions: {
@@ -345,7 +345,7 @@ const client = new SentDm({
345345<img src =" https://raw.githubusercontent.com/stainless-api/sdk-assets/refs/heads/main/deno.svg " align =" top " width =" 18 " height =" 21 " > ** Deno** <sup >[[ docs] ( https://docs.deno.com/api/deno/~/Deno.createHttpClient )] </sup >
346346
347347``` ts
348- import SentDm from ' npm:sentdm ' ;
348+ import SentDm from ' npm:sent-dm ' ;
349349
350350const httpClient = Deno .createHttpClient ({ proxy: { url: ' http://localhost:8888' } });
351351const client = new SentDm ({
0 commit comments