Skip to content

Commit

Permalink
Release 0.0.1-beta1
Browse files Browse the repository at this point in the history
  • Loading branch information
fern-api[bot] committed Aug 1, 2024
1 parent c4c7cd9 commit 3fbefb5
Show file tree
Hide file tree
Showing 120 changed files with 914 additions and 814 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Instantiate and use the client with the following:
```typescript
import { GooeyClient } from "gooey";

const client = new GooeyClient({ apiKey: "YOUR_API_KEY", authorization: "YOUR_AUTHORIZATION" });
const client = new GooeyClient({ apiKey: "YOUR_API_KEY" });
await client.copilotIntegrations.videoBotsStreamCreate({
integrationId: "integration_id",
});
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "gooey",
"version": "0.0.2",
"version": "0.0.1-beta1",
"private": false,
"repository": "https://github.com/GooeyAI/typescript-sdk",
"main": "./index.js",
Expand Down
40 changes: 0 additions & 40 deletions reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -5229,43 +5229,3 @@ await client.misc.videoBotsBroadcast({
</dd>
</dl>
</details>

<details><summary><code>client.misc.<a href="/src/api/resources/misc/client/Client.ts">health</a>() -> unknown</code></summary>
<dl>
<dd>

#### 🔌 Usage

<dl>
<dd>

<dl>
<dd>

```typescript
await client.misc.health();
```

</dd>
</dl>
</dd>
</dl>

#### ⚙️ Parameters

<dl>
<dd>

<dl>
<dd>

**requestOptions:** `Misc.RequestOptions`

</dd>
</dl>
</dd>
</dl>

</dd>
</dl>
</details>
4 changes: 0 additions & 4 deletions src/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,6 @@ export declare namespace GooeyClient {
interface Options {
environment?: core.Supplier<environments.GooeyEnvironment | string>;
apiKey?: core.Supplier<core.BearerToken | undefined>;
/** Override the Authorization header */
authorization?: core.Supplier<string | undefined>;
fetcher?: core.FetchFunction;
}

Expand All @@ -56,8 +54,6 @@ export declare namespace GooeyClient {
maxRetries?: number;
/** A hook to abort the request. */
abortSignal?: AbortSignal;
/** Override the Authorization header */
authorization?: string | undefined;
}
}

Expand Down
18 changes: 3 additions & 15 deletions src/api/resources/aiAnimationGenerator/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ export declare namespace AiAnimationGenerator {
interface Options {
environment?: core.Supplier<environments.GooeyEnvironment | string>;
apiKey?: core.Supplier<core.BearerToken | undefined>;
/** Override the Authorization header */
authorization?: core.Supplier<string | undefined>;
fetcher?: core.FetchFunction;
}

Expand All @@ -25,8 +23,6 @@ export declare namespace AiAnimationGenerator {
maxRetries?: number;
/** A hook to abort the request. */
abortSignal?: AbortSignal;
/** Override the Authorization header */
authorization?: string | undefined;
}
}

Expand Down Expand Up @@ -64,10 +60,9 @@ export class AiAnimationGenerator {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "gooey",
"X-Fern-SDK-Version": "0.0.2",
"X-Fern-SDK-Version": "0.0.1-beta1",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
},
contentType: "application/json",
requestType: "json",
Expand Down Expand Up @@ -173,10 +168,9 @@ export class AiAnimationGenerator {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "gooey",
"X-Fern-SDK-Version": "0.0.2",
"X-Fern-SDK-Version": "0.0.1-beta1",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
},
contentType: "application/json",
requestType: "json",
Expand Down Expand Up @@ -272,10 +266,9 @@ export class AiAnimationGenerator {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "gooey",
"X-Fern-SDK-Version": "0.0.2",
"X-Fern-SDK-Version": "0.0.1-beta1",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
},
contentType: "application/json",
queryParameters: _queryParams,
Expand Down Expand Up @@ -351,9 +344,4 @@ export class AiAnimationGenerator {

return `Bearer ${bearer}`;
}

protected async _getCustomAuthorizationHeaders() {
const authorizationValue = await core.Supplier.get(this._options.authorization);
return { Authorization: authorizationValue };
}
}
18 changes: 3 additions & 15 deletions src/api/resources/aiArtQrCode/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ export declare namespace AiArtQrCode {
interface Options {
environment?: core.Supplier<environments.GooeyEnvironment | string>;
apiKey?: core.Supplier<core.BearerToken | undefined>;
/** Override the Authorization header */
authorization?: core.Supplier<string | undefined>;
fetcher?: core.FetchFunction;
}

Expand All @@ -25,8 +23,6 @@ export declare namespace AiArtQrCode {
maxRetries?: number;
/** A hook to abort the request. */
abortSignal?: AbortSignal;
/** Override the Authorization header */
authorization?: string | undefined;
}
}

Expand Down Expand Up @@ -61,10 +57,9 @@ export class AiArtQrCode {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "gooey",
"X-Fern-SDK-Version": "0.0.2",
"X-Fern-SDK-Version": "0.0.1-beta1",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
},
contentType: "application/json",
requestType: "json",
Expand Down Expand Up @@ -167,10 +162,9 @@ export class AiArtQrCode {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "gooey",
"X-Fern-SDK-Version": "0.0.2",
"X-Fern-SDK-Version": "0.0.1-beta1",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
},
contentType: "application/json",
requestType: "json",
Expand Down Expand Up @@ -266,10 +260,9 @@ export class AiArtQrCode {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "gooey",
"X-Fern-SDK-Version": "0.0.2",
"X-Fern-SDK-Version": "0.0.1-beta1",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
},
contentType: "application/json",
queryParameters: _queryParams,
Expand Down Expand Up @@ -345,9 +338,4 @@ export class AiArtQrCode {

return `Bearer ${bearer}`;
}

protected async _getCustomAuthorizationHeaders() {
const authorizationValue = await core.Supplier.get(this._options.authorization);
return { Authorization: authorizationValue };
}
}
18 changes: 3 additions & 15 deletions src/api/resources/aiBackgroundChanger/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ export declare namespace AiBackgroundChanger {
interface Options {
environment?: core.Supplier<environments.GooeyEnvironment | string>;
apiKey?: core.Supplier<core.BearerToken | undefined>;
/** Override the Authorization header */
authorization?: core.Supplier<string | undefined>;
fetcher?: core.FetchFunction;
}

Expand All @@ -25,8 +23,6 @@ export declare namespace AiBackgroundChanger {
maxRetries?: number;
/** A hook to abort the request. */
abortSignal?: AbortSignal;
/** Override the Authorization header */
authorization?: string | undefined;
}
}

Expand Down Expand Up @@ -61,10 +57,9 @@ export class AiBackgroundChanger {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "gooey",
"X-Fern-SDK-Version": "0.0.2",
"X-Fern-SDK-Version": "0.0.1-beta1",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
},
contentType: "application/json",
requestType: "json",
Expand Down Expand Up @@ -167,10 +162,9 @@ export class AiBackgroundChanger {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "gooey",
"X-Fern-SDK-Version": "0.0.2",
"X-Fern-SDK-Version": "0.0.1-beta1",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
},
contentType: "application/json",
requestType: "json",
Expand Down Expand Up @@ -266,10 +260,9 @@ export class AiBackgroundChanger {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "gooey",
"X-Fern-SDK-Version": "0.0.2",
"X-Fern-SDK-Version": "0.0.1-beta1",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
},
contentType: "application/json",
queryParameters: _queryParams,
Expand Down Expand Up @@ -345,9 +338,4 @@ export class AiBackgroundChanger {

return `Bearer ${bearer}`;
}

protected async _getCustomAuthorizationHeaders() {
const authorizationValue = await core.Supplier.get(this._options.authorization);
return { Authorization: authorizationValue };
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ export declare namespace AiGeneratedPhotoFromEmailProfileLookup {
interface Options {
environment?: core.Supplier<environments.GooeyEnvironment | string>;
apiKey?: core.Supplier<core.BearerToken | undefined>;
/** Override the Authorization header */
authorization?: core.Supplier<string | undefined>;
fetcher?: core.FetchFunction;
}

Expand All @@ -25,8 +23,6 @@ export declare namespace AiGeneratedPhotoFromEmailProfileLookup {
maxRetries?: number;
/** A hook to abort the request. */
abortSignal?: AbortSignal;
/** Override the Authorization header */
authorization?: string | undefined;
}
}

Expand Down Expand Up @@ -62,10 +58,9 @@ export class AiGeneratedPhotoFromEmailProfileLookup {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "gooey",
"X-Fern-SDK-Version": "0.0.2",
"X-Fern-SDK-Version": "0.0.1-beta1",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
},
contentType: "application/json",
requestType: "json",
Expand Down Expand Up @@ -169,10 +164,9 @@ export class AiGeneratedPhotoFromEmailProfileLookup {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "gooey",
"X-Fern-SDK-Version": "0.0.2",
"X-Fern-SDK-Version": "0.0.1-beta1",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
},
contentType: "application/json",
requestType: "json",
Expand Down Expand Up @@ -268,10 +262,9 @@ export class AiGeneratedPhotoFromEmailProfileLookup {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "gooey",
"X-Fern-SDK-Version": "0.0.2",
"X-Fern-SDK-Version": "0.0.1-beta1",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
},
contentType: "application/json",
queryParameters: _queryParams,
Expand Down Expand Up @@ -347,9 +340,4 @@ export class AiGeneratedPhotoFromEmailProfileLookup {

return `Bearer ${bearer}`;
}

protected async _getCustomAuthorizationHeaders() {
const authorizationValue = await core.Supplier.get(this._options.authorization);
return { Authorization: authorizationValue };
}
}
18 changes: 3 additions & 15 deletions src/api/resources/aiImageWithAFace/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ export declare namespace AiImageWithAFace {
interface Options {
environment?: core.Supplier<environments.GooeyEnvironment | string>;
apiKey?: core.Supplier<core.BearerToken | undefined>;
/** Override the Authorization header */
authorization?: core.Supplier<string | undefined>;
fetcher?: core.FetchFunction;
}

Expand All @@ -25,8 +23,6 @@ export declare namespace AiImageWithAFace {
maxRetries?: number;
/** A hook to abort the request. */
abortSignal?: AbortSignal;
/** Override the Authorization header */
authorization?: string | undefined;
}
}

Expand Down Expand Up @@ -62,10 +58,9 @@ export class AiImageWithAFace {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "gooey",
"X-Fern-SDK-Version": "0.0.2",
"X-Fern-SDK-Version": "0.0.1-beta1",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
},
contentType: "application/json",
requestType: "json",
Expand Down Expand Up @@ -169,10 +164,9 @@ export class AiImageWithAFace {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "gooey",
"X-Fern-SDK-Version": "0.0.2",
"X-Fern-SDK-Version": "0.0.1-beta1",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
},
contentType: "application/json",
requestType: "json",
Expand Down Expand Up @@ -268,10 +262,9 @@ export class AiImageWithAFace {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "gooey",
"X-Fern-SDK-Version": "0.0.2",
"X-Fern-SDK-Version": "0.0.1-beta1",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
},
contentType: "application/json",
queryParameters: _queryParams,
Expand Down Expand Up @@ -347,9 +340,4 @@ export class AiImageWithAFace {

return `Bearer ${bearer}`;
}

protected async _getCustomAuthorizationHeaders() {
const authorizationValue = await core.Supplier.get(this._options.authorization);
return { Authorization: authorizationValue };
}
}
Loading

0 comments on commit 3fbefb5

Please sign in to comment.