Skip to content

Commit

Permalink
Release 0.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
fern-api[bot] committed Aug 1, 2024
1 parent aad13a7 commit c4c7cd9
Show file tree
Hide file tree
Showing 120 changed files with 808 additions and 908 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" });
const client = new GooeyClient({ apiKey: "YOUR_API_KEY", authorization: "YOUR_AUTHORIZATION" });
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.1",
"version": "0.0.2",
"private": false,
"repository": "https://github.com/GooeyAI/typescript-sdk",
"main": "./index.js",
Expand Down
40 changes: 40 additions & 0 deletions reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -5229,3 +5229,43 @@ 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: 4 additions & 0 deletions src/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ 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 @@ -54,6 +56,8 @@ 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: 15 additions & 3 deletions src/api/resources/aiAnimationGenerator/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ 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 @@ -23,6 +25,8 @@ 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 @@ -60,9 +64,10 @@ export class AiAnimationGenerator {
Authorization: await this._getAuthorizationHeader(),

Check failure on line 64 in src/api/resources/aiAnimationGenerator/client/Client.ts

View workflow job for this annotation

GitHub Actions / compile

'Authorization' is specified more than once, so this usage will be overwritten.

Check failure on line 64 in src/api/resources/aiAnimationGenerator/client/Client.ts

View workflow job for this annotation

GitHub Actions / compile

'Authorization' is specified more than once, so this usage will be overwritten.
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "gooey",
"X-Fern-SDK-Version": "0.0.1",
"X-Fern-SDK-Version": "0.0.2",
"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 @@ -168,9 +173,10 @@ export class AiAnimationGenerator {
Authorization: await this._getAuthorizationHeader(),

Check failure on line 173 in src/api/resources/aiAnimationGenerator/client/Client.ts

View workflow job for this annotation

GitHub Actions / compile

'Authorization' is specified more than once, so this usage will be overwritten.

Check failure on line 173 in src/api/resources/aiAnimationGenerator/client/Client.ts

View workflow job for this annotation

GitHub Actions / compile

'Authorization' is specified more than once, so this usage will be overwritten.
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "gooey",
"X-Fern-SDK-Version": "0.0.1",
"X-Fern-SDK-Version": "0.0.2",
"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,9 +272,10 @@ export class AiAnimationGenerator {
Authorization: await this._getAuthorizationHeader(),

Check failure on line 272 in src/api/resources/aiAnimationGenerator/client/Client.ts

View workflow job for this annotation

GitHub Actions / compile

'Authorization' is specified more than once, so this usage will be overwritten.

Check failure on line 272 in src/api/resources/aiAnimationGenerator/client/Client.ts

View workflow job for this annotation

GitHub Actions / compile

'Authorization' is specified more than once, so this usage will be overwritten.
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "gooey",
"X-Fern-SDK-Version": "0.0.1",
"X-Fern-SDK-Version": "0.0.2",
"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 @@ -344,4 +351,9 @@ export class AiAnimationGenerator {

return `Bearer ${bearer}`;
}

protected async _getCustomAuthorizationHeaders() {
const authorizationValue = await core.Supplier.get(this._options.authorization);
return { Authorization: authorizationValue };
}
}
18 changes: 15 additions & 3 deletions src/api/resources/aiArtQrCode/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ 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 @@ -23,6 +25,8 @@ 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 @@ -57,9 +61,10 @@ export class AiArtQrCode {
Authorization: await this._getAuthorizationHeader(),

Check failure on line 61 in src/api/resources/aiArtQrCode/client/Client.ts

View workflow job for this annotation

GitHub Actions / compile

'Authorization' is specified more than once, so this usage will be overwritten.

Check failure on line 61 in src/api/resources/aiArtQrCode/client/Client.ts

View workflow job for this annotation

GitHub Actions / compile

'Authorization' is specified more than once, so this usage will be overwritten.
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "gooey",
"X-Fern-SDK-Version": "0.0.1",
"X-Fern-SDK-Version": "0.0.2",
"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 @@ -162,9 +167,10 @@ export class AiArtQrCode {
Authorization: await this._getAuthorizationHeader(),

Check failure on line 167 in src/api/resources/aiArtQrCode/client/Client.ts

View workflow job for this annotation

GitHub Actions / compile

'Authorization' is specified more than once, so this usage will be overwritten.

Check failure on line 167 in src/api/resources/aiArtQrCode/client/Client.ts

View workflow job for this annotation

GitHub Actions / compile

'Authorization' is specified more than once, so this usage will be overwritten.
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "gooey",
"X-Fern-SDK-Version": "0.0.1",
"X-Fern-SDK-Version": "0.0.2",
"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 @@ -260,9 +266,10 @@ export class AiArtQrCode {
Authorization: await this._getAuthorizationHeader(),

Check failure on line 266 in src/api/resources/aiArtQrCode/client/Client.ts

View workflow job for this annotation

GitHub Actions / compile

'Authorization' is specified more than once, so this usage will be overwritten.

Check failure on line 266 in src/api/resources/aiArtQrCode/client/Client.ts

View workflow job for this annotation

GitHub Actions / compile

'Authorization' is specified more than once, so this usage will be overwritten.
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "gooey",
"X-Fern-SDK-Version": "0.0.1",
"X-Fern-SDK-Version": "0.0.2",
"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 @@ -338,4 +345,9 @@ export class AiArtQrCode {

return `Bearer ${bearer}`;
}

protected async _getCustomAuthorizationHeaders() {
const authorizationValue = await core.Supplier.get(this._options.authorization);
return { Authorization: authorizationValue };
}
}
18 changes: 15 additions & 3 deletions src/api/resources/aiBackgroundChanger/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ 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 @@ -23,6 +25,8 @@ 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 @@ -57,9 +61,10 @@ export class AiBackgroundChanger {
Authorization: await this._getAuthorizationHeader(),

Check failure on line 61 in src/api/resources/aiBackgroundChanger/client/Client.ts

View workflow job for this annotation

GitHub Actions / compile

'Authorization' is specified more than once, so this usage will be overwritten.

Check failure on line 61 in src/api/resources/aiBackgroundChanger/client/Client.ts

View workflow job for this annotation

GitHub Actions / compile

'Authorization' is specified more than once, so this usage will be overwritten.
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "gooey",
"X-Fern-SDK-Version": "0.0.1",
"X-Fern-SDK-Version": "0.0.2",
"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 @@ -162,9 +167,10 @@ export class AiBackgroundChanger {
Authorization: await this._getAuthorizationHeader(),

Check failure on line 167 in src/api/resources/aiBackgroundChanger/client/Client.ts

View workflow job for this annotation

GitHub Actions / compile

'Authorization' is specified more than once, so this usage will be overwritten.

Check failure on line 167 in src/api/resources/aiBackgroundChanger/client/Client.ts

View workflow job for this annotation

GitHub Actions / compile

'Authorization' is specified more than once, so this usage will be overwritten.
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "gooey",
"X-Fern-SDK-Version": "0.0.1",
"X-Fern-SDK-Version": "0.0.2",
"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 @@ -260,9 +266,10 @@ export class AiBackgroundChanger {
Authorization: await this._getAuthorizationHeader(),

Check failure on line 266 in src/api/resources/aiBackgroundChanger/client/Client.ts

View workflow job for this annotation

GitHub Actions / compile

'Authorization' is specified more than once, so this usage will be overwritten.

Check failure on line 266 in src/api/resources/aiBackgroundChanger/client/Client.ts

View workflow job for this annotation

GitHub Actions / compile

'Authorization' is specified more than once, so this usage will be overwritten.
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "gooey",
"X-Fern-SDK-Version": "0.0.1",
"X-Fern-SDK-Version": "0.0.2",
"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 @@ -338,4 +345,9 @@ 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,6 +13,8 @@ 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 @@ -23,6 +25,8 @@ 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 @@ -58,9 +62,10 @@ export class AiGeneratedPhotoFromEmailProfileLookup {
Authorization: await this._getAuthorizationHeader(),

Check failure on line 62 in src/api/resources/aiGeneratedPhotoFromEmailProfileLookup/client/Client.ts

View workflow job for this annotation

GitHub Actions / compile

'Authorization' is specified more than once, so this usage will be overwritten.

Check failure on line 62 in src/api/resources/aiGeneratedPhotoFromEmailProfileLookup/client/Client.ts

View workflow job for this annotation

GitHub Actions / compile

'Authorization' is specified more than once, so this usage will be overwritten.
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "gooey",
"X-Fern-SDK-Version": "0.0.1",
"X-Fern-SDK-Version": "0.0.2",
"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 @@ -164,9 +169,10 @@ export class AiGeneratedPhotoFromEmailProfileLookup {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "gooey",
"X-Fern-SDK-Version": "0.0.1",
"X-Fern-SDK-Version": "0.0.2",
"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 @@ -262,9 +268,10 @@ export class AiGeneratedPhotoFromEmailProfileLookup {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "gooey",
"X-Fern-SDK-Version": "0.0.1",
"X-Fern-SDK-Version": "0.0.2",
"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 @@ -340,4 +347,9 @@ export class AiGeneratedPhotoFromEmailProfileLookup {

return `Bearer ${bearer}`;
}

protected async _getCustomAuthorizationHeaders() {
const authorizationValue = await core.Supplier.get(this._options.authorization);
return { Authorization: authorizationValue };
}
}
18 changes: 15 additions & 3 deletions src/api/resources/aiImageWithAFace/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ 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 @@ -23,6 +25,8 @@ 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 @@ -58,9 +62,10 @@ export class AiImageWithAFace {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "gooey",
"X-Fern-SDK-Version": "0.0.1",
"X-Fern-SDK-Version": "0.0.2",
"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 @@ -164,9 +169,10 @@ export class AiImageWithAFace {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "gooey",
"X-Fern-SDK-Version": "0.0.1",
"X-Fern-SDK-Version": "0.0.2",
"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 @@ -262,9 +268,10 @@ export class AiImageWithAFace {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "gooey",
"X-Fern-SDK-Version": "0.0.1",
"X-Fern-SDK-Version": "0.0.2",
"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 @@ -340,4 +347,9 @@ 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 c4c7cd9

Please sign in to comment.