Skip to content

Commit 3abd202

Browse files
committed
Release 0.0.1
1 parent a3c0a89 commit 3abd202

File tree

5 files changed

+21
-21
lines changed

5 files changed

+21
-21
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Speechifyinc TypeScript Library
22

33
[![fern shield](https://img.shields.io/badge/%F0%9F%8C%BF-Built%20with%20Fern-brightgreen)](https://buildwithfern.com?utm_source=github&utm_medium=github&utm_campaign=readme&utm_source=https%3A%2F%2Fgithub.com%2Fspeechifyinc%2Fspeechify-api-sdk-typescript)
4-
[![npm shield](https://img.shields.io/npm/v/speechify-api)](https://www.npmjs.com/package/speechify-api)
4+
[![npm shield](https://img.shields.io/npm/v/@speechify/api)](https://www.npmjs.com/package/@speechify/api)
55

66
The Speechifyinc TypeScript library provides convenient access to the Speechifyinc API from TypeScript.
77

@@ -12,7 +12,7 @@ API reference documentation is available [here](https://docs.sws.speechify.com/a
1212
## Installation
1313

1414
```sh
15-
npm i -s speechify-api
15+
npm i -s @speechify/api
1616
```
1717

1818
## Reference
@@ -24,7 +24,7 @@ A full reference for this library is available [here](./reference.md).
2424
Instantiate and use the client with the following:
2525

2626
```typescript
27-
import { SpeechifyClient } from "speechify-api";
27+
import { SpeechifyClient } from "@speechify/api";
2828

2929
const client = new SpeechifyClient({ token: "YOUR_TOKEN" });
3030
await client.tts.audio.speech({
@@ -39,7 +39,7 @@ The SDK exports all request and response types as TypeScript interfaces. Simply
3939
following namespace:
4040

4141
```typescript
42-
import { Speechify } from "speechify-api";
42+
import { Speechify } from "@speechify/api";
4343

4444
const request: Speechify.GetSpeechRequest = {
4545
...
@@ -52,7 +52,7 @@ When the API returns a non-success status code (4xx or 5xx response), a subclass
5252
will be thrown.
5353

5454
```typescript
55-
import { SpeechifyError } from "speechify-api";
55+
import { SpeechifyError } from "@speechify/api";
5656

5757
try {
5858
await client.tts.audio.speech(...);
@@ -139,7 +139,7 @@ The SDK provides a way for your to customize the underlying HTTP client / Fetch
139139
unsupported environment, this provides a way for you to break glass and ensure the SDK works.
140140

141141
```typescript
142-
import { SpeechifyClient } from "speechify-api";
142+
import { SpeechifyClient } from "@speechify/api";
143143

144144
const client = new SpeechifyClient({
145145
...

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "speechify-api",
2+
"name": "@speechify/api",
33
"version": "0.0.1",
44
"private": false,
55
"repository": "https://github.com/speechifyinc/speechify-api-sdk-typescript",

src/api/resources/tts/resources/audio/client/Client.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,9 @@ export class Audio {
6565
headers: {
6666
Authorization: await this._getAuthorizationHeader(),
6767
"X-Fern-Language": "JavaScript",
68-
"X-Fern-SDK-Name": "speechify-api",
68+
"X-Fern-SDK-Name": "@speechify/api",
6969
"X-Fern-SDK-Version": "0.0.1",
70-
"User-Agent": "speechify-api/0.0.1",
70+
"User-Agent": "@speechify/api/0.0.1",
7171
"X-Fern-Runtime": core.RUNTIME.type,
7272
"X-Fern-Runtime-Version": core.RUNTIME.version,
7373
...requestOptions?.headers,
@@ -145,9 +145,9 @@ export class Audio {
145145
headers: {
146146
Authorization: await this._getAuthorizationHeader(),
147147
"X-Fern-Language": "JavaScript",
148-
"X-Fern-SDK-Name": "speechify-api",
148+
"X-Fern-SDK-Name": "@speechify/api",
149149
"X-Fern-SDK-Version": "0.0.1",
150-
"User-Agent": "speechify-api/0.0.1",
150+
"User-Agent": "@speechify/api/0.0.1",
151151
"X-Fern-Runtime": core.RUNTIME.type,
152152
"X-Fern-Runtime-Version": core.RUNTIME.version,
153153
Accept: serializers.tts.AudioStreamRequestAccept.jsonOrThrow(accept, {

src/api/resources/tts/resources/auth/client/Client.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@ export class Auth {
5858
headers: {
5959
Authorization: await this._getAuthorizationHeader(),
6060
"X-Fern-Language": "JavaScript",
61-
"X-Fern-SDK-Name": "speechify-api",
61+
"X-Fern-SDK-Name": "@speechify/api",
6262
"X-Fern-SDK-Version": "0.0.1",
63-
"User-Agent": "speechify-api/0.0.1",
63+
"User-Agent": "@speechify/api/0.0.1",
6464
"X-Fern-Runtime": core.RUNTIME.type,
6565
"X-Fern-Runtime-Version": core.RUNTIME.version,
6666
...requestOptions?.headers,

src/api/resources/tts/resources/voices/client/Client.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,9 @@ export class Voices {
5757
headers: {
5858
Authorization: await this._getAuthorizationHeader(),
5959
"X-Fern-Language": "JavaScript",
60-
"X-Fern-SDK-Name": "speechify-api",
60+
"X-Fern-SDK-Name": "@speechify/api",
6161
"X-Fern-SDK-Version": "0.0.1",
62-
"User-Agent": "speechify-api/0.0.1",
62+
"User-Agent": "@speechify/api/0.0.1",
6363
"X-Fern-Runtime": core.RUNTIME.type,
6464
"X-Fern-Runtime-Version": core.RUNTIME.version,
6565
...requestOptions?.headers,
@@ -159,9 +159,9 @@ export class Voices {
159159
headers: {
160160
Authorization: await this._getAuthorizationHeader(),
161161
"X-Fern-Language": "JavaScript",
162-
"X-Fern-SDK-Name": "speechify-api",
162+
"X-Fern-SDK-Name": "@speechify/api",
163163
"X-Fern-SDK-Version": "0.0.1",
164-
"User-Agent": "speechify-api/0.0.1",
164+
"User-Agent": "@speechify/api/0.0.1",
165165
"X-Fern-Runtime": core.RUNTIME.type,
166166
"X-Fern-Runtime-Version": core.RUNTIME.version,
167167
..._maybeEncodedRequest.headers,
@@ -240,9 +240,9 @@ export class Voices {
240240
headers: {
241241
Authorization: await this._getAuthorizationHeader(),
242242
"X-Fern-Language": "JavaScript",
243-
"X-Fern-SDK-Name": "speechify-api",
243+
"X-Fern-SDK-Name": "@speechify/api",
244244
"X-Fern-SDK-Version": "0.0.1",
245-
"User-Agent": "speechify-api/0.0.1",
245+
"User-Agent": "@speechify/api/0.0.1",
246246
"X-Fern-Runtime": core.RUNTIME.type,
247247
"X-Fern-Runtime-Version": core.RUNTIME.version,
248248
...requestOptions?.headers,
@@ -307,9 +307,9 @@ export class Voices {
307307
headers: {
308308
Authorization: await this._getAuthorizationHeader(),
309309
"X-Fern-Language": "JavaScript",
310-
"X-Fern-SDK-Name": "speechify-api",
310+
"X-Fern-SDK-Name": "@speechify/api",
311311
"X-Fern-SDK-Version": "0.0.1",
312-
"User-Agent": "speechify-api/0.0.1",
312+
"User-Agent": "@speechify/api/0.0.1",
313313
"X-Fern-Runtime": core.RUNTIME.type,
314314
"X-Fern-Runtime-Version": core.RUNTIME.version,
315315
...requestOptions?.headers,

0 commit comments

Comments
 (0)