Skip to content

Commit

Permalink
Release 6.0.0-alpha.5
Browse files Browse the repository at this point in the history
  • Loading branch information
fern-api[bot] committed Sep 11, 2024
1 parent 33ed6f2 commit a48a326
Show file tree
Hide file tree
Showing 32 changed files with 236 additions and 236 deletions.
16 changes: 8 additions & 8 deletions .mock/definition/api.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
name: api
display-name: Abound API - v4
error-discrimination:
strategy: status-code
base-path: /v4
default-environment: Sandbox
environments:
Production: https://production-api.withabound.com
Sandbox: https://sandbox-api.withabound.com
auth: BearerAuthScheme
auth-schemes:
BearerAuthScheme:
scheme: bearer
token:
name: sampleKey
default-environment: Production
environments:
Production: https://production-api.withabound.com
Sandbox: https://sandbox-api.withabound.com
error-discrimination:
strategy: status-code
base-path: /v4
name: apiKey
2 changes: 1 addition & 1 deletion .mock/fern.config.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"organization" : "abound",
"version" : "0.41.0-rc1"
"version" : "0.41.9"
}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Instantiate and use the client with the following:
```typescript
import { AboundClient, Abound } from "@withabound/node-sdk";

const client = new AboundClient({ sampleKey: "YOUR_SAMPLE_KEY" });
const client = new AboundClient({ apiKey: "YOUR_API_KEY" });
await client.form1099Nec.create({
body: {
filingYear: 2023,
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": "@withabound/node-sdk",
"version": "6.0.0-alpha.4",
"version": "6.0.0-alpha.5",
"private": false,
"repository": "https://github.com/withabound/abound-node",
"main": "./index.js",
Expand Down
2 changes: 1 addition & 1 deletion src/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import { Users } from "./api/resources/users/client/Client";
export declare namespace AboundClient {
interface Options {
environment?: core.Supplier<environments.AboundEnvironment | string>;
sampleKey: core.Supplier<core.BearerToken>;
apiKey: core.Supplier<core.BearerToken>;
fetcher?: core.FetchFunction;
}

Expand Down
10 changes: 5 additions & 5 deletions src/api/resources/accessTokens/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import * as errors from "../../../../errors/index";
export declare namespace AccessTokens {
interface Options {
environment?: core.Supplier<environments.AboundEnvironment | string>;
sampleKey: core.Supplier<core.BearerToken>;
apiKey: core.Supplier<core.BearerToken>;
fetcher?: core.FetchFunction;
}

Expand Down Expand Up @@ -51,16 +51,16 @@ export class AccessTokens {
const { "Idempotency-Key": idempotencyKey, ..._body } = request;
const _response = await (this._options.fetcher ?? core.fetcher)({
url: urlJoin(
(await core.Supplier.get(this._options.environment)) ?? environments.AboundEnvironment.Production,
(await core.Supplier.get(this._options.environment)) ?? environments.AboundEnvironment.Sandbox,
"/v4/access-tokens"
),
method: "POST",
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@withabound/node-sdk",
"X-Fern-SDK-Version": "6.0.0-alpha.4",
"User-Agent": "@withabound/node-sdk/6.0.0-alpha.4",
"X-Fern-SDK-Version": "6.0.0-alpha.5",
"User-Agent": "@withabound/node-sdk/6.0.0-alpha.5",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
"Idempotency-Key": idempotencyKey != null ? idempotencyKey : undefined,
Expand Down Expand Up @@ -116,6 +116,6 @@ export class AccessTokens {
}

protected async _getAuthorizationHeader(): Promise<string> {
return `Bearer ${await core.Supplier.get(this._options.sampleKey)}`;
return `Bearer ${await core.Supplier.get(this._options.apiKey)}`;
}
}
10 changes: 5 additions & 5 deletions src/api/resources/electronicDeliveryConsents/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import * as errors from "../../../../errors/index";
export declare namespace ElectronicDeliveryConsents {
interface Options {
environment?: core.Supplier<environments.AboundEnvironment | string>;
sampleKey: core.Supplier<core.BearerToken>;
apiKey: core.Supplier<core.BearerToken>;
fetcher?: core.FetchFunction;
}

Expand Down Expand Up @@ -70,16 +70,16 @@ export class ElectronicDeliveryConsents {

const _response = await (this._options.fetcher ?? core.fetcher)({
url: urlJoin(
(await core.Supplier.get(this._options.environment)) ?? environments.AboundEnvironment.Production,
(await core.Supplier.get(this._options.environment)) ?? environments.AboundEnvironment.Sandbox,
"/v4/electronic-delivery-consents"
),
method: "GET",
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@withabound/node-sdk",
"X-Fern-SDK-Version": "6.0.0-alpha.4",
"User-Agent": "@withabound/node-sdk/6.0.0-alpha.4",
"X-Fern-SDK-Version": "6.0.0-alpha.5",
"User-Agent": "@withabound/node-sdk/6.0.0-alpha.5",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -134,6 +134,6 @@ export class ElectronicDeliveryConsents {
}

protected async _getAuthorizationHeader(): Promise<string> {
return `Bearer ${await core.Supplier.get(this._options.sampleKey)}`;
return `Bearer ${await core.Supplier.get(this._options.apiKey)}`;
}
}
52 changes: 26 additions & 26 deletions src/api/resources/form1099Int/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import * as errors from "../../../../errors/index";
export declare namespace Form1099Int {
interface Options {
environment?: core.Supplier<environments.AboundEnvironment | string>;
sampleKey: core.Supplier<core.BearerToken>;
apiKey: core.Supplier<core.BearerToken>;
fetcher?: core.FetchFunction;
}

Expand Down Expand Up @@ -74,16 +74,16 @@ export class Form1099Int {

const _response = await (this._options.fetcher ?? core.fetcher)({
url: urlJoin(
(await core.Supplier.get(this._options.environment)) ?? environments.AboundEnvironment.Production,
(await core.Supplier.get(this._options.environment)) ?? environments.AboundEnvironment.Sandbox,
"/v4/documents/1099-int"
),
method: "GET",
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@withabound/node-sdk",
"X-Fern-SDK-Version": "6.0.0-alpha.4",
"User-Agent": "@withabound/node-sdk/6.0.0-alpha.4",
"X-Fern-SDK-Version": "6.0.0-alpha.5",
"User-Agent": "@withabound/node-sdk/6.0.0-alpha.5",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -205,16 +205,16 @@ export class Form1099Int {
const { "Idempotency-Key": idempotencyKey, body: _body } = request;
const _response = await (this._options.fetcher ?? core.fetcher)({
url: urlJoin(
(await core.Supplier.get(this._options.environment)) ?? environments.AboundEnvironment.Production,
(await core.Supplier.get(this._options.environment)) ?? environments.AboundEnvironment.Sandbox,
"/v4/documents/1099-int"
),
method: "POST",
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@withabound/node-sdk",
"X-Fern-SDK-Version": "6.0.0-alpha.4",
"User-Agent": "@withabound/node-sdk/6.0.0-alpha.4",
"X-Fern-SDK-Version": "6.0.0-alpha.5",
"User-Agent": "@withabound/node-sdk/6.0.0-alpha.5",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
"Idempotency-Key": idempotencyKey != null ? idempotencyKey : undefined,
Expand Down Expand Up @@ -313,16 +313,16 @@ export class Form1099Int {
const { "Idempotency-Key": idempotencyKey, body: _body } = request;
const _response = await (this._options.fetcher ?? core.fetcher)({
url: urlJoin(
(await core.Supplier.get(this._options.environment)) ?? environments.AboundEnvironment.Production,
(await core.Supplier.get(this._options.environment)) ?? environments.AboundEnvironment.Sandbox,
`/v4/documents/1099-int/${encodeURIComponent(documentId)}/mail`
),
method: "POST",
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@withabound/node-sdk",
"X-Fern-SDK-Version": "6.0.0-alpha.4",
"User-Agent": "@withabound/node-sdk/6.0.0-alpha.4",
"X-Fern-SDK-Version": "6.0.0-alpha.5",
"User-Agent": "@withabound/node-sdk/6.0.0-alpha.5",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
"Idempotency-Key": idempotencyKey != null ? idempotencyKey : undefined,
Expand Down Expand Up @@ -400,16 +400,16 @@ export class Form1099Int {
const { "Idempotency-Key": idempotencyKey } = request;
const _response = await (this._options.fetcher ?? core.fetcher)({
url: urlJoin(
(await core.Supplier.get(this._options.environment)) ?? environments.AboundEnvironment.Production,
(await core.Supplier.get(this._options.environment)) ?? environments.AboundEnvironment.Sandbox,
`/v4/documents/1099-int/${encodeURIComponent(documentId)}/file`
),
method: "POST",
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@withabound/node-sdk",
"X-Fern-SDK-Version": "6.0.0-alpha.4",
"User-Agent": "@withabound/node-sdk/6.0.0-alpha.4",
"X-Fern-SDK-Version": "6.0.0-alpha.5",
"User-Agent": "@withabound/node-sdk/6.0.0-alpha.5",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
"Idempotency-Key": idempotencyKey != null ? idempotencyKey : undefined,
Expand Down Expand Up @@ -520,16 +520,16 @@ export class Form1099Int {
const { "Idempotency-Key": idempotencyKey, body: _body } = request;
const _response = await (this._options.fetcher ?? core.fetcher)({
url: urlJoin(
(await core.Supplier.get(this._options.environment)) ?? environments.AboundEnvironment.Production,
(await core.Supplier.get(this._options.environment)) ?? environments.AboundEnvironment.Sandbox,
`/v4/documents/1099-int/${encodeURIComponent(documentId)}/correct`
),
method: "POST",
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@withabound/node-sdk",
"X-Fern-SDK-Version": "6.0.0-alpha.4",
"User-Agent": "@withabound/node-sdk/6.0.0-alpha.4",
"X-Fern-SDK-Version": "6.0.0-alpha.5",
"User-Agent": "@withabound/node-sdk/6.0.0-alpha.5",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
"Idempotency-Key": idempotencyKey != null ? idempotencyKey : undefined,
Expand Down Expand Up @@ -607,16 +607,16 @@ export class Form1099Int {
const { "Idempotency-Key": idempotencyKey } = request;
const _response = await (this._options.fetcher ?? core.fetcher)({
url: urlJoin(
(await core.Supplier.get(this._options.environment)) ?? environments.AboundEnvironment.Production,
(await core.Supplier.get(this._options.environment)) ?? environments.AboundEnvironment.Sandbox,
`/v4/documents/1099-int/${encodeURIComponent(documentId)}/void`
),
method: "POST",
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@withabound/node-sdk",
"X-Fern-SDK-Version": "6.0.0-alpha.4",
"User-Agent": "@withabound/node-sdk/6.0.0-alpha.4",
"X-Fern-SDK-Version": "6.0.0-alpha.5",
"User-Agent": "@withabound/node-sdk/6.0.0-alpha.5",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
"Idempotency-Key": idempotencyKey != null ? idempotencyKey : undefined,
Expand Down Expand Up @@ -690,16 +690,16 @@ export class Form1099Int {
): Promise<Abound.Form1099IntSchema> {
const _response = await (this._options.fetcher ?? core.fetcher)({
url: urlJoin(
(await core.Supplier.get(this._options.environment)) ?? environments.AboundEnvironment.Production,
(await core.Supplier.get(this._options.environment)) ?? environments.AboundEnvironment.Sandbox,
`/v4/documents/1099-int/${encodeURIComponent(documentId)}`
),
method: "GET",
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@withabound/node-sdk",
"X-Fern-SDK-Version": "6.0.0-alpha.4",
"User-Agent": "@withabound/node-sdk/6.0.0-alpha.4",
"X-Fern-SDK-Version": "6.0.0-alpha.5",
"User-Agent": "@withabound/node-sdk/6.0.0-alpha.5",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -772,16 +772,16 @@ export class Form1099Int {
): Promise<Abound.types.OkSchema> {
const _response = await (this._options.fetcher ?? core.fetcher)({
url: urlJoin(
(await core.Supplier.get(this._options.environment)) ?? environments.AboundEnvironment.Production,
(await core.Supplier.get(this._options.environment)) ?? environments.AboundEnvironment.Sandbox,
`/v4/documents/1099-int/${encodeURIComponent(documentId)}`
),
method: "DELETE",
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@withabound/node-sdk",
"X-Fern-SDK-Version": "6.0.0-alpha.4",
"User-Agent": "@withabound/node-sdk/6.0.0-alpha.4",
"X-Fern-SDK-Version": "6.0.0-alpha.5",
"User-Agent": "@withabound/node-sdk/6.0.0-alpha.5",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -835,6 +835,6 @@ export class Form1099Int {
}

protected async _getAuthorizationHeader(): Promise<string> {
return `Bearer ${await core.Supplier.get(this._options.sampleKey)}`;
return `Bearer ${await core.Supplier.get(this._options.apiKey)}`;
}
}
Loading

0 comments on commit a48a326

Please sign in to comment.