From a48a326440c308354931c6d3da90fb0ab1bd0b37 Mon Sep 17 00:00:00 2001 From: fern-api <115122769+fern-api[bot]@users.noreply.github.com> Date: Wed, 11 Sep 2024 18:34:21 +0000 Subject: [PATCH] Release 6.0.0-alpha.5 --- .mock/definition/api.yml | 16 +++--- .mock/fern.config.json | 2 +- README.md | 2 +- package.json | 2 +- src/Client.ts | 2 +- .../resources/accessTokens/client/Client.ts | 10 ++-- .../client/Client.ts | 10 ++-- .../resources/form1099Int/client/Client.ts | 52 +++++++++---------- src/api/resources/form1099K/client/Client.ts | 52 +++++++++---------- .../resources/form1099Misc/client/Client.ts | 52 +++++++++---------- .../resources/form1099Nec/client/Client.ts | 52 +++++++++---------- src/api/resources/formW8Ben/client/Client.ts | 22 ++++---- src/api/resources/formW8BenE/client/Client.ts | 22 ++++---- src/api/resources/formW9/client/Client.ts | 22 ++++---- src/api/resources/mailings/client/Client.ts | 28 +++++----- .../resources/taxTreaties/client/Client.ts | 10 ++-- .../tinVerifications/client/Client.ts | 22 ++++---- src/api/resources/users/client/Client.ts | 28 +++++----- tests/wire/accessTokens.test.ts | 2 +- tests/wire/electronicDeliveryConsents.test.ts | 2 +- tests/wire/form1099Int.test.ts | 2 +- tests/wire/form1099K.test.ts | 2 +- tests/wire/form1099Misc.test.ts | 2 +- tests/wire/form1099Nec.test.ts | 2 +- tests/wire/formW8Ben.test.ts | 2 +- tests/wire/formW8BenE.test.ts | 2 +- tests/wire/formW9.test.ts | 2 +- tests/wire/mailings.test.ts | 2 +- tests/wire/taxTreaties.test.ts | 2 +- tests/wire/tinVerifications.test.ts | 2 +- tests/wire/users.test.ts | 2 +- yarn.lock | 40 +++++++------- 32 files changed, 236 insertions(+), 236 deletions(-) diff --git a/.mock/definition/api.yml b/.mock/definition/api.yml index cf695c5..905b6ac 100644 --- a/.mock/definition/api.yml +++ b/.mock/definition/api.yml @@ -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 diff --git a/.mock/fern.config.json b/.mock/fern.config.json index 4596541..e7895dc 100644 --- a/.mock/fern.config.json +++ b/.mock/fern.config.json @@ -1,4 +1,4 @@ { "organization" : "abound", - "version" : "0.41.0-rc1" + "version" : "0.41.9" } \ No newline at end of file diff --git a/README.md b/README.md index 96962aa..1109c50 100644 --- a/README.md +++ b/README.md @@ -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, diff --git a/package.json b/package.json index 6dec581..09bd0dd 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/Client.ts b/src/Client.ts index 239f1ad..d328778 100644 --- a/src/Client.ts +++ b/src/Client.ts @@ -21,7 +21,7 @@ import { Users } from "./api/resources/users/client/Client"; export declare namespace AboundClient { interface Options { environment?: core.Supplier; - sampleKey: core.Supplier; + apiKey: core.Supplier; fetcher?: core.FetchFunction; } diff --git a/src/api/resources/accessTokens/client/Client.ts b/src/api/resources/accessTokens/client/Client.ts index 9c0cbdc..263811a 100644 --- a/src/api/resources/accessTokens/client/Client.ts +++ b/src/api/resources/accessTokens/client/Client.ts @@ -11,7 +11,7 @@ import * as errors from "../../../../errors/index"; export declare namespace AccessTokens { interface Options { environment?: core.Supplier; - sampleKey: core.Supplier; + apiKey: core.Supplier; fetcher?: core.FetchFunction; } @@ -51,7 +51,7 @@ 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", @@ -59,8 +59,8 @@ export class AccessTokens { 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, @@ -116,6 +116,6 @@ export class AccessTokens { } protected async _getAuthorizationHeader(): Promise { - return `Bearer ${await core.Supplier.get(this._options.sampleKey)}`; + return `Bearer ${await core.Supplier.get(this._options.apiKey)}`; } } diff --git a/src/api/resources/electronicDeliveryConsents/client/Client.ts b/src/api/resources/electronicDeliveryConsents/client/Client.ts index eede384..ba42f87 100644 --- a/src/api/resources/electronicDeliveryConsents/client/Client.ts +++ b/src/api/resources/electronicDeliveryConsents/client/Client.ts @@ -11,7 +11,7 @@ import * as errors from "../../../../errors/index"; export declare namespace ElectronicDeliveryConsents { interface Options { environment?: core.Supplier; - sampleKey: core.Supplier; + apiKey: core.Supplier; fetcher?: core.FetchFunction; } @@ -70,7 +70,7 @@ 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", @@ -78,8 +78,8 @@ export class ElectronicDeliveryConsents { 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, }, @@ -134,6 +134,6 @@ export class ElectronicDeliveryConsents { } protected async _getAuthorizationHeader(): Promise { - return `Bearer ${await core.Supplier.get(this._options.sampleKey)}`; + return `Bearer ${await core.Supplier.get(this._options.apiKey)}`; } } diff --git a/src/api/resources/form1099Int/client/Client.ts b/src/api/resources/form1099Int/client/Client.ts index 41e5992..2f6e270 100644 --- a/src/api/resources/form1099Int/client/Client.ts +++ b/src/api/resources/form1099Int/client/Client.ts @@ -11,7 +11,7 @@ import * as errors from "../../../../errors/index"; export declare namespace Form1099Int { interface Options { environment?: core.Supplier; - sampleKey: core.Supplier; + apiKey: core.Supplier; fetcher?: core.FetchFunction; } @@ -74,7 +74,7 @@ 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", @@ -82,8 +82,8 @@ export class Form1099Int { 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, }, @@ -205,7 +205,7 @@ 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", @@ -213,8 +213,8 @@ export class Form1099Int { 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, @@ -313,7 +313,7 @@ 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", @@ -321,8 +321,8 @@ export class Form1099Int { 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, @@ -400,7 +400,7 @@ 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", @@ -408,8 +408,8 @@ export class Form1099Int { 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, @@ -520,7 +520,7 @@ 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", @@ -528,8 +528,8 @@ export class Form1099Int { 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, @@ -607,7 +607,7 @@ 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", @@ -615,8 +615,8 @@ export class Form1099Int { 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, @@ -690,7 +690,7 @@ export class Form1099Int { ): Promise { 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", @@ -698,8 +698,8 @@ export class Form1099Int { 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, }, @@ -772,7 +772,7 @@ export class Form1099Int { ): Promise { 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", @@ -780,8 +780,8 @@ export class Form1099Int { 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, }, @@ -835,6 +835,6 @@ export class Form1099Int { } protected async _getAuthorizationHeader(): Promise { - return `Bearer ${await core.Supplier.get(this._options.sampleKey)}`; + return `Bearer ${await core.Supplier.get(this._options.apiKey)}`; } } diff --git a/src/api/resources/form1099K/client/Client.ts b/src/api/resources/form1099K/client/Client.ts index 8d1c3c5..9ae675f 100644 --- a/src/api/resources/form1099K/client/Client.ts +++ b/src/api/resources/form1099K/client/Client.ts @@ -11,7 +11,7 @@ import * as errors from "../../../../errors/index"; export declare namespace Form1099K { interface Options { environment?: core.Supplier; - sampleKey: core.Supplier; + apiKey: core.Supplier; fetcher?: core.FetchFunction; } @@ -74,7 +74,7 @@ export class Form1099K { 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-k" ), method: "GET", @@ -82,8 +82,8 @@ export class Form1099K { 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, }, @@ -213,7 +213,7 @@ export class Form1099K { 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-k" ), method: "POST", @@ -221,8 +221,8 @@ export class Form1099K { 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, @@ -321,7 +321,7 @@ export class Form1099K { 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-k/${encodeURIComponent(documentId)}/mail` ), method: "POST", @@ -329,8 +329,8 @@ export class Form1099K { 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, @@ -408,7 +408,7 @@ export class Form1099K { 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-k/${encodeURIComponent(documentId)}/file` ), method: "POST", @@ -416,8 +416,8 @@ export class Form1099K { 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, @@ -536,7 +536,7 @@ export class Form1099K { 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-k/${encodeURIComponent(documentId)}/correct` ), method: "POST", @@ -544,8 +544,8 @@ export class Form1099K { 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, @@ -623,7 +623,7 @@ export class Form1099K { 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-k/${encodeURIComponent(documentId)}/void` ), method: "POST", @@ -631,8 +631,8 @@ export class Form1099K { 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, @@ -706,7 +706,7 @@ export class Form1099K { ): Promise { 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-k/${encodeURIComponent(documentId)}` ), method: "GET", @@ -714,8 +714,8 @@ export class Form1099K { 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, }, @@ -788,7 +788,7 @@ export class Form1099K { ): Promise { 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-k/${encodeURIComponent(documentId)}` ), method: "DELETE", @@ -796,8 +796,8 @@ export class Form1099K { 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, }, @@ -851,6 +851,6 @@ export class Form1099K { } protected async _getAuthorizationHeader(): Promise { - return `Bearer ${await core.Supplier.get(this._options.sampleKey)}`; + return `Bearer ${await core.Supplier.get(this._options.apiKey)}`; } } diff --git a/src/api/resources/form1099Misc/client/Client.ts b/src/api/resources/form1099Misc/client/Client.ts index 5312cd8..56fb3f4 100644 --- a/src/api/resources/form1099Misc/client/Client.ts +++ b/src/api/resources/form1099Misc/client/Client.ts @@ -11,7 +11,7 @@ import * as errors from "../../../../errors/index"; export declare namespace Form1099Misc { interface Options { environment?: core.Supplier; - sampleKey: core.Supplier; + apiKey: core.Supplier; fetcher?: core.FetchFunction; } @@ -74,7 +74,7 @@ export class Form1099Misc { 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-misc" ), method: "GET", @@ -82,8 +82,8 @@ export class Form1099Misc { 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, }, @@ -206,7 +206,7 @@ export class Form1099Misc { 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-misc" ), method: "POST", @@ -214,8 +214,8 @@ export class Form1099Misc { 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, @@ -314,7 +314,7 @@ export class Form1099Misc { 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-misc/${encodeURIComponent(documentId)}/mail` ), method: "POST", @@ -322,8 +322,8 @@ export class Form1099Misc { 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, @@ -401,7 +401,7 @@ export class Form1099Misc { 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-misc/${encodeURIComponent(documentId)}/file` ), method: "POST", @@ -409,8 +409,8 @@ export class Form1099Misc { 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, @@ -522,7 +522,7 @@ export class Form1099Misc { 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-misc/${encodeURIComponent(documentId)}/correct` ), method: "POST", @@ -530,8 +530,8 @@ export class Form1099Misc { 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, @@ -609,7 +609,7 @@ export class Form1099Misc { 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-misc/${encodeURIComponent(documentId)}/void` ), method: "POST", @@ -617,8 +617,8 @@ export class Form1099Misc { 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, @@ -692,7 +692,7 @@ export class Form1099Misc { ): Promise { 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-misc/${encodeURIComponent(documentId)}` ), method: "GET", @@ -700,8 +700,8 @@ export class Form1099Misc { 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, }, @@ -774,7 +774,7 @@ export class Form1099Misc { ): Promise { 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-misc/${encodeURIComponent(documentId)}` ), method: "DELETE", @@ -782,8 +782,8 @@ export class Form1099Misc { 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, }, @@ -837,6 +837,6 @@ export class Form1099Misc { } protected async _getAuthorizationHeader(): Promise { - return `Bearer ${await core.Supplier.get(this._options.sampleKey)}`; + return `Bearer ${await core.Supplier.get(this._options.apiKey)}`; } } diff --git a/src/api/resources/form1099Nec/client/Client.ts b/src/api/resources/form1099Nec/client/Client.ts index 4a47de8..917de2d 100644 --- a/src/api/resources/form1099Nec/client/Client.ts +++ b/src/api/resources/form1099Nec/client/Client.ts @@ -11,7 +11,7 @@ import * as errors from "../../../../errors/index"; export declare namespace Form1099Nec { interface Options { environment?: core.Supplier; - sampleKey: core.Supplier; + apiKey: core.Supplier; fetcher?: core.FetchFunction; } @@ -74,7 +74,7 @@ export class Form1099Nec { 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-nec" ), method: "GET", @@ -82,8 +82,8 @@ export class Form1099Nec { 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, }, @@ -194,7 +194,7 @@ export class Form1099Nec { 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-nec" ), method: "POST", @@ -202,8 +202,8 @@ export class Form1099Nec { 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, @@ -302,7 +302,7 @@ export class Form1099Nec { 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-nec/${encodeURIComponent(documentId)}/mail` ), method: "POST", @@ -310,8 +310,8 @@ export class Form1099Nec { 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, @@ -389,7 +389,7 @@ export class Form1099Nec { 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-nec/${encodeURIComponent(documentId)}/file` ), method: "POST", @@ -397,8 +397,8 @@ export class Form1099Nec { 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, @@ -496,7 +496,7 @@ export class Form1099Nec { 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-nec/${encodeURIComponent(documentId)}/correct` ), method: "POST", @@ -504,8 +504,8 @@ export class Form1099Nec { 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, @@ -583,7 +583,7 @@ export class Form1099Nec { 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-nec/${encodeURIComponent(documentId)}/void` ), method: "POST", @@ -591,8 +591,8 @@ export class Form1099Nec { 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, @@ -666,7 +666,7 @@ export class Form1099Nec { ): Promise { 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-nec/${encodeURIComponent(documentId)}` ), method: "GET", @@ -674,8 +674,8 @@ export class Form1099Nec { 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, }, @@ -748,7 +748,7 @@ export class Form1099Nec { ): Promise { 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-nec/${encodeURIComponent(documentId)}` ), method: "DELETE", @@ -756,8 +756,8 @@ export class Form1099Nec { 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, }, @@ -811,6 +811,6 @@ export class Form1099Nec { } protected async _getAuthorizationHeader(): Promise { - return `Bearer ${await core.Supplier.get(this._options.sampleKey)}`; + return `Bearer ${await core.Supplier.get(this._options.apiKey)}`; } } diff --git a/src/api/resources/formW8Ben/client/Client.ts b/src/api/resources/formW8Ben/client/Client.ts index 4c10415..f795a27 100644 --- a/src/api/resources/formW8Ben/client/Client.ts +++ b/src/api/resources/formW8Ben/client/Client.ts @@ -11,7 +11,7 @@ import * as errors from "../../../../errors/index"; export declare namespace FormW8Ben { interface Options { environment?: core.Supplier; - sampleKey: core.Supplier; + apiKey: core.Supplier; fetcher?: core.FetchFunction; } @@ -66,7 +66,7 @@ export class FormW8Ben { 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/w-8ben" ), method: "GET", @@ -74,8 +74,8 @@ export class FormW8Ben { 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, }, @@ -185,7 +185,7 @@ export class FormW8Ben { ): Promise { 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/w-8ben" ), method: "POST", @@ -193,8 +193,8 @@ export class FormW8Ben { 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, }, @@ -268,7 +268,7 @@ export class FormW8Ben { ): Promise { 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/w-8ben/${encodeURIComponent(documentId)}` ), method: "GET", @@ -276,8 +276,8 @@ export class FormW8Ben { 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, }, @@ -331,6 +331,6 @@ export class FormW8Ben { } protected async _getAuthorizationHeader(): Promise { - return `Bearer ${await core.Supplier.get(this._options.sampleKey)}`; + return `Bearer ${await core.Supplier.get(this._options.apiKey)}`; } } diff --git a/src/api/resources/formW8BenE/client/Client.ts b/src/api/resources/formW8BenE/client/Client.ts index d667b1b..c952be4 100644 --- a/src/api/resources/formW8BenE/client/Client.ts +++ b/src/api/resources/formW8BenE/client/Client.ts @@ -11,7 +11,7 @@ import * as errors from "../../../../errors/index"; export declare namespace FormW8BenE { interface Options { environment?: core.Supplier; - sampleKey: core.Supplier; + apiKey: core.Supplier; fetcher?: core.FetchFunction; } @@ -66,7 +66,7 @@ export class FormW8BenE { 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/w-8ben-e" ), method: "GET", @@ -74,8 +74,8 @@ export class FormW8BenE { 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, }, @@ -185,7 +185,7 @@ export class FormW8BenE { ): Promise { 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/w-8ben-e" ), method: "POST", @@ -193,8 +193,8 @@ export class FormW8BenE { 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, }, @@ -268,7 +268,7 @@ export class FormW8BenE { ): Promise { 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/w-8ben-e/${encodeURIComponent(documentId)}` ), method: "GET", @@ -276,8 +276,8 @@ export class FormW8BenE { 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, }, @@ -331,6 +331,6 @@ export class FormW8BenE { } protected async _getAuthorizationHeader(): Promise { - return `Bearer ${await core.Supplier.get(this._options.sampleKey)}`; + return `Bearer ${await core.Supplier.get(this._options.apiKey)}`; } } diff --git a/src/api/resources/formW9/client/Client.ts b/src/api/resources/formW9/client/Client.ts index 3125a9a..758140e 100644 --- a/src/api/resources/formW9/client/Client.ts +++ b/src/api/resources/formW9/client/Client.ts @@ -11,7 +11,7 @@ import * as errors from "../../../../errors/index"; export declare namespace FormW9 { interface Options { environment?: core.Supplier; - sampleKey: core.Supplier; + apiKey: core.Supplier; fetcher?: core.FetchFunction; } @@ -66,7 +66,7 @@ export class FormW9 { 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/w-9" ), method: "GET", @@ -74,8 +74,8 @@ export class FormW9 { 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, }, @@ -174,7 +174,7 @@ export class FormW9 { 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/w-9" ), method: "POST", @@ -182,8 +182,8 @@ export class FormW9 { 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, @@ -258,7 +258,7 @@ export class FormW9 { ): Promise { 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/w-9/${encodeURIComponent(documentId)}` ), method: "GET", @@ -266,8 +266,8 @@ export class FormW9 { 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, }, @@ -321,6 +321,6 @@ export class FormW9 { } protected async _getAuthorizationHeader(): Promise { - return `Bearer ${await core.Supplier.get(this._options.sampleKey)}`; + return `Bearer ${await core.Supplier.get(this._options.apiKey)}`; } } diff --git a/src/api/resources/mailings/client/Client.ts b/src/api/resources/mailings/client/Client.ts index f319d21..1b8586d 100644 --- a/src/api/resources/mailings/client/Client.ts +++ b/src/api/resources/mailings/client/Client.ts @@ -11,7 +11,7 @@ import * as errors from "../../../../errors/index"; export declare namespace Mailings { interface Options { environment?: core.Supplier; - sampleKey: core.Supplier; + apiKey: core.Supplier; fetcher?: core.FetchFunction; } @@ -62,7 +62,7 @@ export class Mailings { 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/mailings" ), method: "GET", @@ -70,8 +70,8 @@ export class Mailings { 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, }, @@ -145,7 +145,7 @@ export class Mailings { ): Promise { 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/mailings/${encodeURIComponent(mailingId)}` ), method: "GET", @@ -153,8 +153,8 @@ export class Mailings { 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, }, @@ -251,7 +251,7 @@ export class Mailings { 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/mailings/${encodeURIComponent(mailingId)}` ), method: "PUT", @@ -259,8 +259,8 @@ export class Mailings { 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, @@ -335,7 +335,7 @@ export class Mailings { ): Promise { 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/mailings/${encodeURIComponent(mailingId)}` ), method: "DELETE", @@ -343,8 +343,8 @@ export class Mailings { 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, }, @@ -398,6 +398,6 @@ export class Mailings { } protected async _getAuthorizationHeader(): Promise { - return `Bearer ${await core.Supplier.get(this._options.sampleKey)}`; + return `Bearer ${await core.Supplier.get(this._options.apiKey)}`; } } diff --git a/src/api/resources/taxTreaties/client/Client.ts b/src/api/resources/taxTreaties/client/Client.ts index e90a798..e2f04c0 100644 --- a/src/api/resources/taxTreaties/client/Client.ts +++ b/src/api/resources/taxTreaties/client/Client.ts @@ -11,7 +11,7 @@ import * as errors from "../../../../errors/index"; export declare namespace TaxTreaties { interface Options { environment?: core.Supplier; - sampleKey: core.Supplier; + apiKey: core.Supplier; fetcher?: core.FetchFunction; } @@ -54,7 +54,7 @@ export class TaxTreaties { 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/tax-treaties" ), method: "GET", @@ -62,8 +62,8 @@ export class TaxTreaties { 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, }, @@ -118,6 +118,6 @@ export class TaxTreaties { } protected async _getAuthorizationHeader(): Promise { - return `Bearer ${await core.Supplier.get(this._options.sampleKey)}`; + return `Bearer ${await core.Supplier.get(this._options.apiKey)}`; } } diff --git a/src/api/resources/tinVerifications/client/Client.ts b/src/api/resources/tinVerifications/client/Client.ts index d5f08ae..e47650e 100644 --- a/src/api/resources/tinVerifications/client/Client.ts +++ b/src/api/resources/tinVerifications/client/Client.ts @@ -11,7 +11,7 @@ import * as errors from "../../../../errors/index"; export declare namespace TinVerifications { interface Options { environment?: core.Supplier; - sampleKey: core.Supplier; + apiKey: core.Supplier; fetcher?: core.FetchFunction; } @@ -66,7 +66,7 @@ export class TinVerifications { 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/tin-verifications" ), method: "GET", @@ -74,8 +74,8 @@ export class TinVerifications { 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, }, @@ -155,7 +155,7 @@ export class TinVerifications { 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/tin-verifications" ), method: "POST", @@ -163,8 +163,8 @@ export class TinVerifications { 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, @@ -239,7 +239,7 @@ export class TinVerifications { ): Promise { 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/tin-verifications/${encodeURIComponent(tinVerificationId)}` ), method: "GET", @@ -247,8 +247,8 @@ export class TinVerifications { 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, }, @@ -302,6 +302,6 @@ export class TinVerifications { } protected async _getAuthorizationHeader(): Promise { - return `Bearer ${await core.Supplier.get(this._options.sampleKey)}`; + return `Bearer ${await core.Supplier.get(this._options.apiKey)}`; } } diff --git a/src/api/resources/users/client/Client.ts b/src/api/resources/users/client/Client.ts index 49093dc..44d2fdc 100644 --- a/src/api/resources/users/client/Client.ts +++ b/src/api/resources/users/client/Client.ts @@ -11,7 +11,7 @@ import * as errors from "../../../../errors/index"; export declare namespace Users { interface Options { environment?: core.Supplier; - sampleKey: core.Supplier; + apiKey: core.Supplier; fetcher?: core.FetchFunction; } @@ -62,7 +62,7 @@ export class Users { 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/users" ), method: "GET", @@ -70,8 +70,8 @@ export class Users { 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, }, @@ -151,7 +151,7 @@ export class Users { 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/users" ), method: "POST", @@ -159,8 +159,8 @@ export class Users { 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, @@ -237,7 +237,7 @@ export class Users { ): Promise { 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/users/${encodeURIComponent(userId)}` ), method: "GET", @@ -245,8 +245,8 @@ export class Users { 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, }, @@ -323,7 +323,7 @@ export class Users { ): Promise { 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/users/${encodeURIComponent(userId)}` ), method: "PUT", @@ -331,8 +331,8 @@ export class Users { 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, }, @@ -385,6 +385,6 @@ export class Users { } protected async _getAuthorizationHeader(): Promise { - return `Bearer ${await core.Supplier.get(this._options.sampleKey)}`; + return `Bearer ${await core.Supplier.get(this._options.apiKey)}`; } } diff --git a/tests/wire/accessTokens.test.ts b/tests/wire/accessTokens.test.ts index 6a3f852..533206f 100644 --- a/tests/wire/accessTokens.test.ts +++ b/tests/wire/accessTokens.test.ts @@ -6,7 +6,7 @@ import { AboundClient } from "../../src/Client"; const client = new AboundClient({ environment: process.env.TESTS_BASE_URL || "test", - sampleKey: process.env.TESTS_AUTH || "test", + apiKey: process.env.TESTS_AUTH || "test", }); describe("AccessTokens", () => { diff --git a/tests/wire/electronicDeliveryConsents.test.ts b/tests/wire/electronicDeliveryConsents.test.ts index 6b878b1..4a139e7 100644 --- a/tests/wire/electronicDeliveryConsents.test.ts +++ b/tests/wire/electronicDeliveryConsents.test.ts @@ -6,7 +6,7 @@ import { AboundClient } from "../../src/Client"; const client = new AboundClient({ environment: process.env.TESTS_BASE_URL || "test", - sampleKey: process.env.TESTS_AUTH || "test", + apiKey: process.env.TESTS_AUTH || "test", }); describe("ElectronicDeliveryConsents", () => { diff --git a/tests/wire/form1099Int.test.ts b/tests/wire/form1099Int.test.ts index 10fc0ef..af63203 100644 --- a/tests/wire/form1099Int.test.ts +++ b/tests/wire/form1099Int.test.ts @@ -7,7 +7,7 @@ import { AboundClient } from "../../src/Client"; const client = new AboundClient({ environment: process.env.TESTS_BASE_URL || "test", - sampleKey: process.env.TESTS_AUTH || "test", + apiKey: process.env.TESTS_AUTH || "test", }); describe("Form1099Int", () => { diff --git a/tests/wire/form1099K.test.ts b/tests/wire/form1099K.test.ts index 8f395a0..374e7e5 100644 --- a/tests/wire/form1099K.test.ts +++ b/tests/wire/form1099K.test.ts @@ -7,7 +7,7 @@ import { AboundClient } from "../../src/Client"; const client = new AboundClient({ environment: process.env.TESTS_BASE_URL || "test", - sampleKey: process.env.TESTS_AUTH || "test", + apiKey: process.env.TESTS_AUTH || "test", }); describe("Form1099K", () => { diff --git a/tests/wire/form1099Misc.test.ts b/tests/wire/form1099Misc.test.ts index 2dedeb0..fda5b87 100644 --- a/tests/wire/form1099Misc.test.ts +++ b/tests/wire/form1099Misc.test.ts @@ -7,7 +7,7 @@ import { AboundClient } from "../../src/Client"; const client = new AboundClient({ environment: process.env.TESTS_BASE_URL || "test", - sampleKey: process.env.TESTS_AUTH || "test", + apiKey: process.env.TESTS_AUTH || "test", }); describe("Form1099Misc", () => { diff --git a/tests/wire/form1099Nec.test.ts b/tests/wire/form1099Nec.test.ts index ce2e0f8..dd65f1d 100644 --- a/tests/wire/form1099Nec.test.ts +++ b/tests/wire/form1099Nec.test.ts @@ -7,7 +7,7 @@ import { AboundClient } from "../../src/Client"; const client = new AboundClient({ environment: process.env.TESTS_BASE_URL || "test", - sampleKey: process.env.TESTS_AUTH || "test", + apiKey: process.env.TESTS_AUTH || "test", }); describe("Form1099Nec", () => { diff --git a/tests/wire/formW8Ben.test.ts b/tests/wire/formW8Ben.test.ts index 45147bf..9eaec02 100644 --- a/tests/wire/formW8Ben.test.ts +++ b/tests/wire/formW8Ben.test.ts @@ -7,7 +7,7 @@ import { AboundClient } from "../../src/Client"; const client = new AboundClient({ environment: process.env.TESTS_BASE_URL || "test", - sampleKey: process.env.TESTS_AUTH || "test", + apiKey: process.env.TESTS_AUTH || "test", }); describe("FormW8Ben", () => { diff --git a/tests/wire/formW8BenE.test.ts b/tests/wire/formW8BenE.test.ts index 08dc5e3..eff810f 100644 --- a/tests/wire/formW8BenE.test.ts +++ b/tests/wire/formW8BenE.test.ts @@ -7,7 +7,7 @@ import { AboundClient } from "../../src/Client"; const client = new AboundClient({ environment: process.env.TESTS_BASE_URL || "test", - sampleKey: process.env.TESTS_AUTH || "test", + apiKey: process.env.TESTS_AUTH || "test", }); describe("FormW8BenE", () => { diff --git a/tests/wire/formW9.test.ts b/tests/wire/formW9.test.ts index 9688603..8daa24e 100644 --- a/tests/wire/formW9.test.ts +++ b/tests/wire/formW9.test.ts @@ -7,7 +7,7 @@ import { AboundClient } from "../../src/Client"; const client = new AboundClient({ environment: process.env.TESTS_BASE_URL || "test", - sampleKey: process.env.TESTS_AUTH || "test", + apiKey: process.env.TESTS_AUTH || "test", }); describe("FormW9", () => { diff --git a/tests/wire/mailings.test.ts b/tests/wire/mailings.test.ts index 201a4a3..0e5a1c3 100644 --- a/tests/wire/mailings.test.ts +++ b/tests/wire/mailings.test.ts @@ -6,7 +6,7 @@ import { AboundClient } from "../../src/Client"; const client = new AboundClient({ environment: process.env.TESTS_BASE_URL || "test", - sampleKey: process.env.TESTS_AUTH || "test", + apiKey: process.env.TESTS_AUTH || "test", }); describe("Mailings", () => { diff --git a/tests/wire/taxTreaties.test.ts b/tests/wire/taxTreaties.test.ts index 48f15ba..77998a2 100644 --- a/tests/wire/taxTreaties.test.ts +++ b/tests/wire/taxTreaties.test.ts @@ -6,7 +6,7 @@ import { AboundClient } from "../../src/Client"; const client = new AboundClient({ environment: process.env.TESTS_BASE_URL || "test", - sampleKey: process.env.TESTS_AUTH || "test", + apiKey: process.env.TESTS_AUTH || "test", }); describe("TaxTreaties", () => { diff --git a/tests/wire/tinVerifications.test.ts b/tests/wire/tinVerifications.test.ts index b3bb17d..5018519 100644 --- a/tests/wire/tinVerifications.test.ts +++ b/tests/wire/tinVerifications.test.ts @@ -6,7 +6,7 @@ import { AboundClient } from "../../src/Client"; const client = new AboundClient({ environment: process.env.TESTS_BASE_URL || "test", - sampleKey: process.env.TESTS_AUTH || "test", + apiKey: process.env.TESTS_AUTH || "test", }); describe("TinVerifications", () => { diff --git a/tests/wire/users.test.ts b/tests/wire/users.test.ts index 6dc740f..ce5b61b 100644 --- a/tests/wire/users.test.ts +++ b/tests/wire/users.test.ts @@ -6,7 +6,7 @@ import { AboundClient } from "../../src/Client"; const client = new AboundClient({ environment: process.env.TESTS_BASE_URL || "test", - sampleKey: process.env.TESTS_AUTH || "test", + apiKey: process.env.TESTS_AUTH || "test", }); describe("Users", () => { diff --git a/yarn.lock b/yarn.lock index c334b79..e7f68cb 100644 --- a/yarn.lock +++ b/yarn.lock @@ -704,9 +704,9 @@ acorn-globals@^7.0.0: acorn-walk "^8.0.2" acorn-walk@^8.0.2: - version "8.3.3" - resolved "https://registry.yarnpkg.com/acorn-walk/-/acorn-walk-8.3.3.tgz#9caeac29eefaa0c41e3d4c65137de4d6f34df43e" - integrity sha512-MxXdReSRhGO7VlFe1bRG/oI7/mdLV9B9JJT0N8vZOhF7gFRR5l3M8W9G8JxmKV+JC5mGqJ0QvqfSOLsCPa4nUw== + version "8.3.4" + resolved "https://registry.yarnpkg.com/acorn-walk/-/acorn-walk-8.3.4.tgz#794dd169c3977edf4ba4ea47583587c5866236b7" + integrity sha512-ueEepnujpqee2o5aIYnvHU6C0A42MNdsIDeqy5BydrkuC5R1ZuUFnm27EeFJGoEHJQgn3uleRvmTXaJgfXbt4g== dependencies: acorn "^8.11.0" @@ -912,9 +912,9 @@ camelcase@^6.2.0: integrity sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA== caniuse-lite@^1.0.30001646: - version "1.0.30001655" - resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001655.tgz#0ce881f5a19a2dcfda2ecd927df4d5c1684b982f" - integrity sha512-jRGVy3iSGO5Uutn2owlb5gR6qsGngTw9ZTb4ali9f3glshcNmJ2noam4Mo9zia5P9Dk3jNNydy7vQjuE5dQmfg== + version "1.0.30001660" + resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001660.tgz#31218de3463fabb44d0b7607b652e56edf2e2355" + integrity sha512-GacvNTTuATm26qC74pt+ad1fW15mlQ/zuTzzY1ZoIzECTP8HURDfF43kNxPgf7H1jmelCBQTTbBNxdSXOA7Bqg== chalk@^2.4.2: version "2.4.2" @@ -944,9 +944,9 @@ ci-info@^3.2.0: integrity sha512-NIxF55hv4nSqQswkAeiOi1r83xy8JldOFDTWiug55KBu9Jnblncd2U6ViHmYgHf01TPZS77NJBhBMKdWj9HQMQ== cjs-module-lexer@^1.0.0: - version "1.4.0" - resolved "https://registry.yarnpkg.com/cjs-module-lexer/-/cjs-module-lexer-1.4.0.tgz#677de7ed7efff67cc40c9bf1897fea79d41b5215" - integrity sha512-N1NGmowPlGBLsOZLPvm48StN04V4YvQRL0i6b7ctrVY3epjP/ct7hFLOItz6pDIvRjwpfPxi52a2UWV2ziir8g== + version "1.4.1" + resolved "https://registry.yarnpkg.com/cjs-module-lexer/-/cjs-module-lexer-1.4.1.tgz#707413784dbb3a72aa11c2f2b042a0bef4004170" + integrity sha512-cuSVIHi9/9E/+821Qjdvngor+xpnlwnuwIyZOaLmHBVdXL+gP+I6QQB9VkO7RI77YIcTV+S1W9AreJ5eN63JBA== cliui@^8.0.1: version "8.0.1" @@ -1062,11 +1062,11 @@ data-urls@^3.0.2: whatwg-url "^11.0.0" debug@4, debug@^4.1.0, debug@^4.1.1, debug@^4.3.1: - version "4.3.6" - resolved "https://registry.yarnpkg.com/debug/-/debug-4.3.6.tgz#2ab2c38fbaffebf8aa95fdfe6d88438c7a13c52b" - integrity sha512-O/09Bd4Z1fBrU4VzkhFqVgpPzaGbw6Sm9FEkBT1A/YBXQFGuuSxa1dN2nxgxS34JmKXqYx8CZAwEVoJFImUXIg== + version "4.3.7" + resolved "https://registry.yarnpkg.com/debug/-/debug-4.3.7.tgz#87945b4151a011d76d95a198d7111c865c360a52" + integrity sha512-Er2nc/H7RrMXZBFCEim6TCmMk02Z8vLC2Rbi1KEBggpo0fS6l0S1nnapwmIi3yW/+GOJap1Krg4w0Hg80oCqgQ== dependencies: - ms "2.1.2" + ms "^2.1.3" decimal.js@^10.4.2: version "10.4.3" @@ -1115,9 +1115,9 @@ domexception@^4.0.0: webidl-conversions "^7.0.0" electron-to-chromium@^1.5.4: - version "1.5.13" - resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.5.13.tgz#1abf0410c5344b2b829b7247e031f02810d442e6" - integrity sha512-lbBcvtIJ4J6sS4tb5TLp1b4LyfCdMkwStzXPyAgVgTRAsep4bvrAGaBOP7ZJtQMNJpSQ9SqG4brWOroNaQtm7Q== + version "1.5.19" + resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.5.19.tgz#aeaa0a076f3f0f0e8db2c57fd10158508f00725a" + integrity sha512-kpLJJi3zxTR1U828P+LIUDZ5ohixyo68/IcYOHLqnbTPr/wdgn4i1ECvmALN9E16JPA6cvCG5UG79gVwVdEK5w== emittery@^0.13.1: version "0.13.1" @@ -2107,10 +2107,10 @@ minimatch@^3.0.4, minimatch@^3.1.1: dependencies: brace-expansion "^1.1.7" -ms@2.1.2: - version "2.1.2" - resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.2.tgz#d09d1f357b443f493382a8eb3ccd183872ae6009" - integrity sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w== +ms@^2.1.3: + version "2.1.3" + resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.3.tgz#574c8138ce1d2b5861f0b44579dbadd60c6615b2" + integrity sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA== natural-compare@^1.4.0: version "1.4.0"