Skip to content

Commit c4c7cd9

Browse files
committed
Release 0.0.2
1 parent aad13a7 commit c4c7cd9

File tree

120 files changed

+808
-908
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

120 files changed

+808
-908
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Instantiate and use the client with the following:
1818
```typescript
1919
import { GooeyClient } from "gooey";
2020

21-
const client = new GooeyClient({ apiKey: "YOUR_API_KEY" });
21+
const client = new GooeyClient({ apiKey: "YOUR_API_KEY", authorization: "YOUR_AUTHORIZATION" });
2222
await client.copilotIntegrations.videoBotsStreamCreate({
2323
integrationId: "integration_id",
2424
});

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "gooey",
3-
"version": "0.0.1",
3+
"version": "0.0.2",
44
"private": false,
55
"repository": "https://github.com/GooeyAI/typescript-sdk",
66
"main": "./index.js",

reference.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5229,3 +5229,43 @@ await client.misc.videoBotsBroadcast({
52295229
</dd>
52305230
</dl>
52315231
</details>
5232+
5233+
<details><summary><code>client.misc.<a href="/src/api/resources/misc/client/Client.ts">health</a>() -> unknown</code></summary>
5234+
<dl>
5235+
<dd>
5236+
5237+
#### 🔌 Usage
5238+
5239+
<dl>
5240+
<dd>
5241+
5242+
<dl>
5243+
<dd>
5244+
5245+
```typescript
5246+
await client.misc.health();
5247+
```
5248+
5249+
</dd>
5250+
</dl>
5251+
</dd>
5252+
</dl>
5253+
5254+
#### ⚙️ Parameters
5255+
5256+
<dl>
5257+
<dd>
5258+
5259+
<dl>
5260+
<dd>
5261+
5262+
**requestOptions:** `Misc.RequestOptions`
5263+
5264+
</dd>
5265+
</dl>
5266+
</dd>
5267+
</dl>
5268+
5269+
</dd>
5270+
</dl>
5271+
</details>

src/Client.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ export declare namespace GooeyClient {
4444
interface Options {
4545
environment?: core.Supplier<environments.GooeyEnvironment | string>;
4646
apiKey?: core.Supplier<core.BearerToken | undefined>;
47+
/** Override the Authorization header */
48+
authorization?: core.Supplier<string | undefined>;
4749
fetcher?: core.FetchFunction;
4850
}
4951

@@ -54,6 +56,8 @@ export declare namespace GooeyClient {
5456
maxRetries?: number;
5557
/** A hook to abort the request. */
5658
abortSignal?: AbortSignal;
59+
/** Override the Authorization header */
60+
authorization?: string | undefined;
5761
}
5862
}
5963

src/api/resources/aiAnimationGenerator/client/Client.ts

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ export declare namespace AiAnimationGenerator {
1313
interface Options {
1414
environment?: core.Supplier<environments.GooeyEnvironment | string>;
1515
apiKey?: core.Supplier<core.BearerToken | undefined>;
16+
/** Override the Authorization header */
17+
authorization?: core.Supplier<string | undefined>;
1618
fetcher?: core.FetchFunction;
1719
}
1820

@@ -23,6 +25,8 @@ export declare namespace AiAnimationGenerator {
2325
maxRetries?: number;
2426
/** A hook to abort the request. */
2527
abortSignal?: AbortSignal;
28+
/** Override the Authorization header */
29+
authorization?: string | undefined;
2630
}
2731
}
2832

@@ -60,9 +64,10 @@ export class AiAnimationGenerator {
6064
Authorization: await this._getAuthorizationHeader(),
6165
"X-Fern-Language": "JavaScript",
6266
"X-Fern-SDK-Name": "gooey",
63-
"X-Fern-SDK-Version": "0.0.1",
67+
"X-Fern-SDK-Version": "0.0.2",
6468
"X-Fern-Runtime": core.RUNTIME.type,
6569
"X-Fern-Runtime-Version": core.RUNTIME.version,
70+
...(await this._getCustomAuthorizationHeaders()),
6671
},
6772
contentType: "application/json",
6873
requestType: "json",
@@ -168,9 +173,10 @@ export class AiAnimationGenerator {
168173
Authorization: await this._getAuthorizationHeader(),
169174
"X-Fern-Language": "JavaScript",
170175
"X-Fern-SDK-Name": "gooey",
171-
"X-Fern-SDK-Version": "0.0.1",
176+
"X-Fern-SDK-Version": "0.0.2",
172177
"X-Fern-Runtime": core.RUNTIME.type,
173178
"X-Fern-Runtime-Version": core.RUNTIME.version,
179+
...(await this._getCustomAuthorizationHeaders()),
174180
},
175181
contentType: "application/json",
176182
requestType: "json",
@@ -266,9 +272,10 @@ export class AiAnimationGenerator {
266272
Authorization: await this._getAuthorizationHeader(),
267273
"X-Fern-Language": "JavaScript",
268274
"X-Fern-SDK-Name": "gooey",
269-
"X-Fern-SDK-Version": "0.0.1",
275+
"X-Fern-SDK-Version": "0.0.2",
270276
"X-Fern-Runtime": core.RUNTIME.type,
271277
"X-Fern-Runtime-Version": core.RUNTIME.version,
278+
...(await this._getCustomAuthorizationHeaders()),
272279
},
273280
contentType: "application/json",
274281
queryParameters: _queryParams,
@@ -344,4 +351,9 @@ export class AiAnimationGenerator {
344351

345352
return `Bearer ${bearer}`;
346353
}
354+
355+
protected async _getCustomAuthorizationHeaders() {
356+
const authorizationValue = await core.Supplier.get(this._options.authorization);
357+
return { Authorization: authorizationValue };
358+
}
347359
}

src/api/resources/aiArtQrCode/client/Client.ts

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ export declare namespace AiArtQrCode {
1313
interface Options {
1414
environment?: core.Supplier<environments.GooeyEnvironment | string>;
1515
apiKey?: core.Supplier<core.BearerToken | undefined>;
16+
/** Override the Authorization header */
17+
authorization?: core.Supplier<string | undefined>;
1618
fetcher?: core.FetchFunction;
1719
}
1820

@@ -23,6 +25,8 @@ export declare namespace AiArtQrCode {
2325
maxRetries?: number;
2426
/** A hook to abort the request. */
2527
abortSignal?: AbortSignal;
28+
/** Override the Authorization header */
29+
authorization?: string | undefined;
2630
}
2731
}
2832

@@ -57,9 +61,10 @@ export class AiArtQrCode {
5761
Authorization: await this._getAuthorizationHeader(),
5862
"X-Fern-Language": "JavaScript",
5963
"X-Fern-SDK-Name": "gooey",
60-
"X-Fern-SDK-Version": "0.0.1",
64+
"X-Fern-SDK-Version": "0.0.2",
6165
"X-Fern-Runtime": core.RUNTIME.type,
6266
"X-Fern-Runtime-Version": core.RUNTIME.version,
67+
...(await this._getCustomAuthorizationHeaders()),
6368
},
6469
contentType: "application/json",
6570
requestType: "json",
@@ -162,9 +167,10 @@ export class AiArtQrCode {
162167
Authorization: await this._getAuthorizationHeader(),
163168
"X-Fern-Language": "JavaScript",
164169
"X-Fern-SDK-Name": "gooey",
165-
"X-Fern-SDK-Version": "0.0.1",
170+
"X-Fern-SDK-Version": "0.0.2",
166171
"X-Fern-Runtime": core.RUNTIME.type,
167172
"X-Fern-Runtime-Version": core.RUNTIME.version,
173+
...(await this._getCustomAuthorizationHeaders()),
168174
},
169175
contentType: "application/json",
170176
requestType: "json",
@@ -260,9 +266,10 @@ export class AiArtQrCode {
260266
Authorization: await this._getAuthorizationHeader(),
261267
"X-Fern-Language": "JavaScript",
262268
"X-Fern-SDK-Name": "gooey",
263-
"X-Fern-SDK-Version": "0.0.1",
269+
"X-Fern-SDK-Version": "0.0.2",
264270
"X-Fern-Runtime": core.RUNTIME.type,
265271
"X-Fern-Runtime-Version": core.RUNTIME.version,
272+
...(await this._getCustomAuthorizationHeaders()),
266273
},
267274
contentType: "application/json",
268275
queryParameters: _queryParams,
@@ -338,4 +345,9 @@ export class AiArtQrCode {
338345

339346
return `Bearer ${bearer}`;
340347
}
348+
349+
protected async _getCustomAuthorizationHeaders() {
350+
const authorizationValue = await core.Supplier.get(this._options.authorization);
351+
return { Authorization: authorizationValue };
352+
}
341353
}

src/api/resources/aiBackgroundChanger/client/Client.ts

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ export declare namespace AiBackgroundChanger {
1313
interface Options {
1414
environment?: core.Supplier<environments.GooeyEnvironment | string>;
1515
apiKey?: core.Supplier<core.BearerToken | undefined>;
16+
/** Override the Authorization header */
17+
authorization?: core.Supplier<string | undefined>;
1618
fetcher?: core.FetchFunction;
1719
}
1820

@@ -23,6 +25,8 @@ export declare namespace AiBackgroundChanger {
2325
maxRetries?: number;
2426
/** A hook to abort the request. */
2527
abortSignal?: AbortSignal;
28+
/** Override the Authorization header */
29+
authorization?: string | undefined;
2630
}
2731
}
2832

@@ -57,9 +61,10 @@ export class AiBackgroundChanger {
5761
Authorization: await this._getAuthorizationHeader(),
5862
"X-Fern-Language": "JavaScript",
5963
"X-Fern-SDK-Name": "gooey",
60-
"X-Fern-SDK-Version": "0.0.1",
64+
"X-Fern-SDK-Version": "0.0.2",
6165
"X-Fern-Runtime": core.RUNTIME.type,
6266
"X-Fern-Runtime-Version": core.RUNTIME.version,
67+
...(await this._getCustomAuthorizationHeaders()),
6368
},
6469
contentType: "application/json",
6570
requestType: "json",
@@ -162,9 +167,10 @@ export class AiBackgroundChanger {
162167
Authorization: await this._getAuthorizationHeader(),
163168
"X-Fern-Language": "JavaScript",
164169
"X-Fern-SDK-Name": "gooey",
165-
"X-Fern-SDK-Version": "0.0.1",
170+
"X-Fern-SDK-Version": "0.0.2",
166171
"X-Fern-Runtime": core.RUNTIME.type,
167172
"X-Fern-Runtime-Version": core.RUNTIME.version,
173+
...(await this._getCustomAuthorizationHeaders()),
168174
},
169175
contentType: "application/json",
170176
requestType: "json",
@@ -260,9 +266,10 @@ export class AiBackgroundChanger {
260266
Authorization: await this._getAuthorizationHeader(),
261267
"X-Fern-Language": "JavaScript",
262268
"X-Fern-SDK-Name": "gooey",
263-
"X-Fern-SDK-Version": "0.0.1",
269+
"X-Fern-SDK-Version": "0.0.2",
264270
"X-Fern-Runtime": core.RUNTIME.type,
265271
"X-Fern-Runtime-Version": core.RUNTIME.version,
272+
...(await this._getCustomAuthorizationHeaders()),
266273
},
267274
contentType: "application/json",
268275
queryParameters: _queryParams,
@@ -338,4 +345,9 @@ export class AiBackgroundChanger {
338345

339346
return `Bearer ${bearer}`;
340347
}
348+
349+
protected async _getCustomAuthorizationHeaders() {
350+
const authorizationValue = await core.Supplier.get(this._options.authorization);
351+
return { Authorization: authorizationValue };
352+
}
341353
}

src/api/resources/aiGeneratedPhotoFromEmailProfileLookup/client/Client.ts

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ export declare namespace AiGeneratedPhotoFromEmailProfileLookup {
1313
interface Options {
1414
environment?: core.Supplier<environments.GooeyEnvironment | string>;
1515
apiKey?: core.Supplier<core.BearerToken | undefined>;
16+
/** Override the Authorization header */
17+
authorization?: core.Supplier<string | undefined>;
1618
fetcher?: core.FetchFunction;
1719
}
1820

@@ -23,6 +25,8 @@ export declare namespace AiGeneratedPhotoFromEmailProfileLookup {
2325
maxRetries?: number;
2426
/** A hook to abort the request. */
2527
abortSignal?: AbortSignal;
28+
/** Override the Authorization header */
29+
authorization?: string | undefined;
2630
}
2731
}
2832

@@ -58,9 +62,10 @@ export class AiGeneratedPhotoFromEmailProfileLookup {
5862
Authorization: await this._getAuthorizationHeader(),
5963
"X-Fern-Language": "JavaScript",
6064
"X-Fern-SDK-Name": "gooey",
61-
"X-Fern-SDK-Version": "0.0.1",
65+
"X-Fern-SDK-Version": "0.0.2",
6266
"X-Fern-Runtime": core.RUNTIME.type,
6367
"X-Fern-Runtime-Version": core.RUNTIME.version,
68+
...(await this._getCustomAuthorizationHeaders()),
6469
},
6570
contentType: "application/json",
6671
requestType: "json",
@@ -164,9 +169,10 @@ export class AiGeneratedPhotoFromEmailProfileLookup {
164169
Authorization: await this._getAuthorizationHeader(),
165170
"X-Fern-Language": "JavaScript",
166171
"X-Fern-SDK-Name": "gooey",
167-
"X-Fern-SDK-Version": "0.0.1",
172+
"X-Fern-SDK-Version": "0.0.2",
168173
"X-Fern-Runtime": core.RUNTIME.type,
169174
"X-Fern-Runtime-Version": core.RUNTIME.version,
175+
...(await this._getCustomAuthorizationHeaders()),
170176
},
171177
contentType: "application/json",
172178
requestType: "json",
@@ -262,9 +268,10 @@ export class AiGeneratedPhotoFromEmailProfileLookup {
262268
Authorization: await this._getAuthorizationHeader(),
263269
"X-Fern-Language": "JavaScript",
264270
"X-Fern-SDK-Name": "gooey",
265-
"X-Fern-SDK-Version": "0.0.1",
271+
"X-Fern-SDK-Version": "0.0.2",
266272
"X-Fern-Runtime": core.RUNTIME.type,
267273
"X-Fern-Runtime-Version": core.RUNTIME.version,
274+
...(await this._getCustomAuthorizationHeaders()),
268275
},
269276
contentType: "application/json",
270277
queryParameters: _queryParams,
@@ -340,4 +347,9 @@ export class AiGeneratedPhotoFromEmailProfileLookup {
340347

341348
return `Bearer ${bearer}`;
342349
}
350+
351+
protected async _getCustomAuthorizationHeaders() {
352+
const authorizationValue = await core.Supplier.get(this._options.authorization);
353+
return { Authorization: authorizationValue };
354+
}
343355
}

src/api/resources/aiImageWithAFace/client/Client.ts

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ export declare namespace AiImageWithAFace {
1313
interface Options {
1414
environment?: core.Supplier<environments.GooeyEnvironment | string>;
1515
apiKey?: core.Supplier<core.BearerToken | undefined>;
16+
/** Override the Authorization header */
17+
authorization?: core.Supplier<string | undefined>;
1618
fetcher?: core.FetchFunction;
1719
}
1820

@@ -23,6 +25,8 @@ export declare namespace AiImageWithAFace {
2325
maxRetries?: number;
2426
/** A hook to abort the request. */
2527
abortSignal?: AbortSignal;
28+
/** Override the Authorization header */
29+
authorization?: string | undefined;
2630
}
2731
}
2832

@@ -58,9 +62,10 @@ export class AiImageWithAFace {
5862
Authorization: await this._getAuthorizationHeader(),
5963
"X-Fern-Language": "JavaScript",
6064
"X-Fern-SDK-Name": "gooey",
61-
"X-Fern-SDK-Version": "0.0.1",
65+
"X-Fern-SDK-Version": "0.0.2",
6266
"X-Fern-Runtime": core.RUNTIME.type,
6367
"X-Fern-Runtime-Version": core.RUNTIME.version,
68+
...(await this._getCustomAuthorizationHeaders()),
6469
},
6570
contentType: "application/json",
6671
requestType: "json",
@@ -164,9 +169,10 @@ export class AiImageWithAFace {
164169
Authorization: await this._getAuthorizationHeader(),
165170
"X-Fern-Language": "JavaScript",
166171
"X-Fern-SDK-Name": "gooey",
167-
"X-Fern-SDK-Version": "0.0.1",
172+
"X-Fern-SDK-Version": "0.0.2",
168173
"X-Fern-Runtime": core.RUNTIME.type,
169174
"X-Fern-Runtime-Version": core.RUNTIME.version,
175+
...(await this._getCustomAuthorizationHeaders()),
170176
},
171177
contentType: "application/json",
172178
requestType: "json",
@@ -262,9 +268,10 @@ export class AiImageWithAFace {
262268
Authorization: await this._getAuthorizationHeader(),
263269
"X-Fern-Language": "JavaScript",
264270
"X-Fern-SDK-Name": "gooey",
265-
"X-Fern-SDK-Version": "0.0.1",
271+
"X-Fern-SDK-Version": "0.0.2",
266272
"X-Fern-Runtime": core.RUNTIME.type,
267273
"X-Fern-Runtime-Version": core.RUNTIME.version,
274+
...(await this._getCustomAuthorizationHeaders()),
268275
},
269276
contentType: "application/json",
270277
queryParameters: _queryParams,
@@ -340,4 +347,9 @@ export class AiImageWithAFace {
340347

341348
return `Bearer ${bearer}`;
342349
}
350+
351+
protected async _getCustomAuthorizationHeaders() {
352+
const authorizationValue = await core.Supplier.get(this._options.authorization);
353+
return { Authorization: authorizationValue };
354+
}
343355
}

0 commit comments

Comments
 (0)