diff --git a/README.md b/README.md index 0459028..055b9c0 100644 --- a/README.md +++ b/README.md @@ -70,18 +70,6 @@ try { ## Advanced -### Additional Headers - -If you would like to send additional headers as part of the request, use the `headers` request option. - -```typescript -const response = await client.products.create(..., { - headers: { - 'X-Custom-Header': 'custom value' - } -}); -``` - ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long diff --git a/package.json b/package.json index ea3adfc..80a8f54 100644 --- a/package.json +++ b/package.json @@ -26,6 +26,7 @@ "@types/qs": "6.9.8", "@types/node-fetch": "2.6.9", "@types/readable-stream": "^4.0.15", + "fetch-mock-jest": "^1.5.1", "webpack": "^5.94.0", "ts-loader": "^9.3.1", "jest": "29.7.0", diff --git a/src/Client.ts b/src/Client.ts index 9dc3642..674a81d 100644 --- a/src/Client.ts +++ b/src/Client.ts @@ -68,8 +68,6 @@ export declare namespace MoniteClient { moniteVersion?: string; /** Override the x-monite-entity-id header */ moniteEntityId?: string | undefined; - /** Additional headers to include in the request. */ - headers?: Record; } } diff --git a/src/api/resources/accessTokens/client/Client.ts b/src/api/resources/accessTokens/client/Client.ts index be57d8e..2340ed7 100644 --- a/src/api/resources/accessTokens/client/Client.ts +++ b/src/api/resources/accessTokens/client/Client.ts @@ -30,8 +30,6 @@ export declare namespace AccessTokens { moniteVersion?: string; /** Override the x-monite-entity-id header */ moniteEntityId?: string | undefined; - /** Additional headers to include in the request. */ - headers?: Record; } } @@ -77,7 +75,6 @@ export class AccessTokens { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -111,7 +108,7 @@ export class AccessTokens { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError("Timeout exceeded when calling POST /auth/revoke."); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -159,7 +156,6 @@ export class AccessTokens { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -195,7 +191,7 @@ export class AccessTokens { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError("Timeout exceeded when calling POST /auth/token."); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, diff --git a/src/api/resources/accounting/client/Client.ts b/src/api/resources/accounting/client/Client.ts index e528b90..fbcfcf7 100644 --- a/src/api/resources/accounting/client/Client.ts +++ b/src/api/resources/accounting/client/Client.ts @@ -33,8 +33,6 @@ export declare namespace Accounting { moniteVersion?: string; /** Override the x-monite-entity-id header */ moniteEntityId?: string | undefined; - /** Additional headers to include in the request. */ - headers?: Record; } } diff --git a/src/api/resources/accounting/resources/connections/client/Client.ts b/src/api/resources/accounting/resources/connections/client/Client.ts index 86a0bdc..2746f10 100644 --- a/src/api/resources/accounting/resources/connections/client/Client.ts +++ b/src/api/resources/accounting/resources/connections/client/Client.ts @@ -30,8 +30,6 @@ export declare namespace Connections { moniteVersion?: string; /** Override the x-monite-entity-id header */ moniteEntityId?: string | undefined; - /** Additional headers to include in the request. */ - headers?: Record; } } @@ -69,7 +67,6 @@ export class Connections { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -102,7 +99,7 @@ export class Connections { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError("Timeout exceeded when calling GET /accounting_connections."); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -145,7 +142,6 @@ export class Connections { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -179,7 +175,7 @@ export class Connections { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError("Timeout exceeded when calling POST /accounting_connections."); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -222,7 +218,6 @@ export class Connections { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -255,9 +250,7 @@ export class Connections { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling GET /accounting_connections/{connection_id}." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -300,7 +293,6 @@ export class Connections { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -333,9 +325,7 @@ export class Connections { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling POST /accounting_connections/{connection_id}/disconnect." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -376,7 +366,6 @@ export class Connections { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -409,9 +398,7 @@ export class Connections { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling POST /accounting_connections/{connection_id}/sync." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, diff --git a/src/api/resources/accounting/resources/ledgerAccounts/client/Client.ts b/src/api/resources/accounting/resources/ledgerAccounts/client/Client.ts index bb7961e..24aad51 100644 --- a/src/api/resources/accounting/resources/ledgerAccounts/client/Client.ts +++ b/src/api/resources/accounting/resources/ledgerAccounts/client/Client.ts @@ -30,8 +30,6 @@ export declare namespace LedgerAccounts { moniteVersion?: string; /** Override the x-monite-entity-id header */ moniteEntityId?: string | undefined; - /** Additional headers to include in the request. */ - headers?: Record; } } @@ -91,7 +89,6 @@ export class LedgerAccounts { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", queryParameters: _queryParams, @@ -125,7 +122,7 @@ export class LedgerAccounts { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError("Timeout exceeded when calling GET /ledger_accounts."); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -168,7 +165,6 @@ export class LedgerAccounts { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -201,9 +197,7 @@ export class LedgerAccounts { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling GET /ledger_accounts/{ledger_account_id}." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, diff --git a/src/api/resources/accounting/resources/payables/client/Client.ts b/src/api/resources/accounting/resources/payables/client/Client.ts index 29986d0..5f137fa 100644 --- a/src/api/resources/accounting/resources/payables/client/Client.ts +++ b/src/api/resources/accounting/resources/payables/client/Client.ts @@ -30,8 +30,6 @@ export declare namespace Payables { moniteVersion?: string; /** Override the x-monite-entity-id header */ moniteEntityId?: string | undefined; - /** Additional headers to include in the request. */ - headers?: Record; } } @@ -87,7 +85,6 @@ export class Payables { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", queryParameters: _queryParams, @@ -121,7 +118,7 @@ export class Payables { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError("Timeout exceeded when calling GET /accounting/payables."); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -164,7 +161,6 @@ export class Payables { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -197,9 +193,7 @@ export class Payables { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling GET /accounting/payables/{payable_id}." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, diff --git a/src/api/resources/accounting/resources/receivables/client/Client.ts b/src/api/resources/accounting/resources/receivables/client/Client.ts index 6b9a0e8..f5e7c84 100644 --- a/src/api/resources/accounting/resources/receivables/client/Client.ts +++ b/src/api/resources/accounting/resources/receivables/client/Client.ts @@ -30,8 +30,6 @@ export declare namespace Receivables { moniteVersion?: string; /** Override the x-monite-entity-id header */ moniteEntityId?: string | undefined; - /** Additional headers to include in the request. */ - headers?: Record; } } @@ -87,7 +85,6 @@ export class Receivables { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", queryParameters: _queryParams, @@ -121,7 +118,7 @@ export class Receivables { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError("Timeout exceeded when calling GET /accounting/receivables."); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -164,7 +161,6 @@ export class Receivables { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -197,9 +193,7 @@ export class Receivables { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling GET /accounting/receivables/{invoice_id}." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, diff --git a/src/api/resources/accounting/resources/syncedRecords/client/Client.ts b/src/api/resources/accounting/resources/syncedRecords/client/Client.ts index 783ca9a..c0aba57 100644 --- a/src/api/resources/accounting/resources/syncedRecords/client/Client.ts +++ b/src/api/resources/accounting/resources/syncedRecords/client/Client.ts @@ -30,8 +30,6 @@ export declare namespace SyncedRecords { moniteVersion?: string; /** Override the x-monite-entity-id header */ moniteEntityId?: string | undefined; - /** Additional headers to include in the request. */ - headers?: Record; } } @@ -154,7 +152,6 @@ export class SyncedRecords { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", queryParameters: _queryParams, @@ -188,7 +185,7 @@ export class SyncedRecords { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError("Timeout exceeded when calling GET /accounting_synced_records."); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -231,7 +228,6 @@ export class SyncedRecords { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -264,9 +260,7 @@ export class SyncedRecords { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling GET /accounting_synced_records/{synced_record_id}." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -309,7 +303,6 @@ export class SyncedRecords { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -342,9 +335,7 @@ export class SyncedRecords { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling POST /accounting_synced_records/{synced_record_id}/push." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, diff --git a/src/api/resources/accounting/resources/taxRates/client/Client.ts b/src/api/resources/accounting/resources/taxRates/client/Client.ts index 68bc16c..7c59bb0 100644 --- a/src/api/resources/accounting/resources/taxRates/client/Client.ts +++ b/src/api/resources/accounting/resources/taxRates/client/Client.ts @@ -30,8 +30,6 @@ export declare namespace TaxRates { moniteVersion?: string; /** Override the x-monite-entity-id header */ moniteEntityId?: string | undefined; - /** Additional headers to include in the request. */ - headers?: Record; } } @@ -91,7 +89,6 @@ export class TaxRates { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", queryParameters: _queryParams, @@ -125,7 +122,7 @@ export class TaxRates { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError("Timeout exceeded when calling GET /accounting_tax_rates."); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -168,7 +165,6 @@ export class TaxRates { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -201,9 +197,7 @@ export class TaxRates { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling GET /accounting_tax_rates/{tax_rate_id}." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, diff --git a/src/api/resources/analytics/client/Client.ts b/src/api/resources/analytics/client/Client.ts index cd00877..3ea55c1 100644 --- a/src/api/resources/analytics/client/Client.ts +++ b/src/api/resources/analytics/client/Client.ts @@ -30,8 +30,6 @@ export declare namespace Analytics { moniteVersion?: string; /** Override the x-monite-entity-id header */ moniteEntityId?: string | undefined; - /** Additional headers to include in the request. */ - headers?: Record; } } @@ -297,7 +295,6 @@ export class Analytics { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", queryParameters: _queryParams, @@ -335,7 +332,7 @@ export class Analytics { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError("Timeout exceeded when calling GET /analytics/payables."); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, diff --git a/src/api/resources/approvalPolicies/client/Client.ts b/src/api/resources/approvalPolicies/client/Client.ts index 3862a30..615b8a8 100644 --- a/src/api/resources/approvalPolicies/client/Client.ts +++ b/src/api/resources/approvalPolicies/client/Client.ts @@ -31,8 +31,6 @@ export declare namespace ApprovalPolicies { moniteVersion?: string; /** Override the x-monite-entity-id header */ moniteEntityId?: string | undefined; - /** Additional headers to include in the request. */ - headers?: Record; } } @@ -187,7 +185,6 @@ export class ApprovalPolicies { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", queryParameters: _queryParams, @@ -225,7 +222,7 @@ export class ApprovalPolicies { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError("Timeout exceeded when calling GET /approval_policies."); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -275,7 +272,6 @@ export class ApprovalPolicies { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -315,7 +311,7 @@ export class ApprovalPolicies { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError("Timeout exceeded when calling POST /approval_policies."); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -361,7 +357,6 @@ export class ApprovalPolicies { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -400,9 +395,7 @@ export class ApprovalPolicies { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling GET /approval_policies/{approval_policy_id}." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -445,7 +438,6 @@ export class ApprovalPolicies { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -484,9 +476,7 @@ export class ApprovalPolicies { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling DELETE /approval_policies/{approval_policy_id}." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -535,7 +525,6 @@ export class ApprovalPolicies { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -577,9 +566,7 @@ export class ApprovalPolicies { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling PATCH /approval_policies/{approval_policy_id}." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, diff --git a/src/api/resources/approvalPolicies/resources/processes/client/Client.ts b/src/api/resources/approvalPolicies/resources/processes/client/Client.ts index c56520b..4b04d46 100644 --- a/src/api/resources/approvalPolicies/resources/processes/client/Client.ts +++ b/src/api/resources/approvalPolicies/resources/processes/client/Client.ts @@ -30,8 +30,6 @@ export declare namespace Processes { moniteVersion?: string; /** Override the x-monite-entity-id header */ moniteEntityId?: string | undefined; - /** Additional headers to include in the request. */ - headers?: Record; } } @@ -76,7 +74,6 @@ export class Processes { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -115,9 +112,7 @@ export class Processes { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling GET /approval_policies/{approval_policy_id}/processes." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -165,7 +160,6 @@ export class Processes { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -204,9 +198,7 @@ export class Processes { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling GET /approval_policies/{approval_policy_id}/processes/{process_id}." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -256,7 +248,6 @@ export class Processes { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -295,9 +286,7 @@ export class Processes { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling POST /approval_policies/{approval_policy_id}/processes/{process_id}/cancel." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -347,7 +336,6 @@ export class Processes { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -386,9 +374,7 @@ export class Processes { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling GET /approval_policies/{approval_policy_id}/processes/{process_id}/steps." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, diff --git a/src/api/resources/approvalRequests/client/Client.ts b/src/api/resources/approvalRequests/client/Client.ts index 63d28e5..1102e7e 100644 --- a/src/api/resources/approvalRequests/client/Client.ts +++ b/src/api/resources/approvalRequests/client/Client.ts @@ -30,8 +30,6 @@ export declare namespace ApprovalRequests { moniteVersion?: string; /** Override the x-monite-entity-id header */ moniteEntityId?: string | undefined; - /** Additional headers to include in the request. */ - headers?: Record; } } @@ -195,7 +193,6 @@ export class ApprovalRequests { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", queryParameters: _queryParams, @@ -237,7 +234,7 @@ export class ApprovalRequests { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError("Timeout exceeded when calling GET /approval_requests."); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -288,7 +285,6 @@ export class ApprovalRequests { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -332,7 +328,7 @@ export class ApprovalRequests { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError("Timeout exceeded when calling POST /approval_requests."); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -378,7 +374,6 @@ export class ApprovalRequests { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -421,9 +416,7 @@ export class ApprovalRequests { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling GET /approval_requests/{approval_request_id}." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -469,7 +462,6 @@ export class ApprovalRequests { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -512,9 +504,7 @@ export class ApprovalRequests { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling POST /approval_requests/{approval_request_id}/approve." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -560,7 +550,6 @@ export class ApprovalRequests { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -603,9 +592,7 @@ export class ApprovalRequests { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling POST /approval_requests/{approval_request_id}/cancel." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -651,7 +638,6 @@ export class ApprovalRequests { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -694,9 +680,7 @@ export class ApprovalRequests { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling POST /approval_requests/{approval_request_id}/reject." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, diff --git a/src/api/resources/auditLogs/client/Client.ts b/src/api/resources/auditLogs/client/Client.ts index 565e24a..2c29205 100644 --- a/src/api/resources/auditLogs/client/Client.ts +++ b/src/api/resources/auditLogs/client/Client.ts @@ -30,8 +30,6 @@ export declare namespace AuditLogs { moniteVersion?: string; /** Override the x-monite-entity-id header */ moniteEntityId?: string | undefined; - /** Additional headers to include in the request. */ - headers?: Record; } } @@ -134,7 +132,6 @@ export class AuditLogs { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", queryParameters: _queryParams, @@ -168,7 +165,7 @@ export class AuditLogs { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError("Timeout exceeded when calling GET /audit_logs."); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -206,7 +203,6 @@ export class AuditLogs { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -239,7 +235,7 @@ export class AuditLogs { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError("Timeout exceeded when calling GET /audit_logs/{log_id}."); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, diff --git a/src/api/resources/batchPayments/client/Client.ts b/src/api/resources/batchPayments/client/Client.ts index b5d8647..c5a54c0 100644 --- a/src/api/resources/batchPayments/client/Client.ts +++ b/src/api/resources/batchPayments/client/Client.ts @@ -30,8 +30,6 @@ export declare namespace BatchPayments { moniteVersion?: string; /** Override the x-monite-entity-id header */ moniteEntityId?: string | undefined; - /** Additional headers to include in the request. */ - headers?: Record; } } @@ -83,7 +81,6 @@ export class BatchPayments { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -117,7 +114,7 @@ export class BatchPayments { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError("Timeout exceeded when calling POST /batch_payments."); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -158,7 +155,6 @@ export class BatchPayments { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -191,9 +187,7 @@ export class BatchPayments { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling GET /batch_payments/{batch_payment_id}." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, diff --git a/src/api/resources/comments/client/Client.ts b/src/api/resources/comments/client/Client.ts index 7c51ab0..06f9550 100644 --- a/src/api/resources/comments/client/Client.ts +++ b/src/api/resources/comments/client/Client.ts @@ -30,8 +30,6 @@ export declare namespace Comments { moniteVersion?: string; /** Override the x-monite-entity-id header */ moniteEntityId?: string | undefined; - /** Additional headers to include in the request. */ - headers?: Record; } } @@ -126,7 +124,6 @@ export class Comments { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", queryParameters: _queryParams, @@ -166,7 +163,7 @@ export class Comments { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError("Timeout exceeded when calling GET /comments."); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -217,7 +214,6 @@ export class Comments { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -259,7 +255,7 @@ export class Comments { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError("Timeout exceeded when calling POST /comments."); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -303,7 +299,6 @@ export class Comments { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -344,7 +339,7 @@ export class Comments { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError("Timeout exceeded when calling GET /comments/{comment_id}."); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -388,7 +383,6 @@ export class Comments { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -429,7 +423,7 @@ export class Comments { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError("Timeout exceeded when calling DELETE /comments/{comment_id}."); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -478,7 +472,6 @@ export class Comments { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -520,7 +513,7 @@ export class Comments { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError("Timeout exceeded when calling PATCH /comments/{comment_id}."); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, diff --git a/src/api/resources/counterparts/client/Client.ts b/src/api/resources/counterparts/client/Client.ts index 49fe619..5ba93c2 100644 --- a/src/api/resources/counterparts/client/Client.ts +++ b/src/api/resources/counterparts/client/Client.ts @@ -34,8 +34,6 @@ export declare namespace Counterparts { moniteVersion?: string; /** Override the x-monite-entity-id header */ moniteEntityId?: string | undefined; - /** Additional headers to include in the request. */ - headers?: Record; } } @@ -244,7 +242,6 @@ export class Counterparts { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", queryParameters: _queryParams, @@ -280,7 +277,7 @@ export class Counterparts { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError("Timeout exceeded when calling GET /counterparts."); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -335,7 +332,6 @@ export class Counterparts { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -369,7 +365,7 @@ export class Counterparts { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError("Timeout exceeded when calling POST /counterparts."); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -411,7 +407,6 @@ export class Counterparts { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -446,9 +441,7 @@ export class Counterparts { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling GET /counterparts/{counterpart_id}." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -487,7 +480,6 @@ export class Counterparts { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -522,9 +514,7 @@ export class Counterparts { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling DELETE /counterparts/{counterpart_id}." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -570,7 +560,6 @@ export class Counterparts { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -606,9 +595,7 @@ export class Counterparts { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling PATCH /counterparts/{counterpart_id}." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -649,7 +636,6 @@ export class Counterparts { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -682,9 +668,7 @@ export class Counterparts { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling GET /counterparts/{counterpart_id}/partner_metadata." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -731,7 +715,6 @@ export class Counterparts { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -765,9 +748,7 @@ export class Counterparts { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling PUT /counterparts/{counterpart_id}/partner_metadata." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, diff --git a/src/api/resources/counterparts/resources/addresses/client/Client.ts b/src/api/resources/counterparts/resources/addresses/client/Client.ts index 8bc8861..8955872 100644 --- a/src/api/resources/counterparts/resources/addresses/client/Client.ts +++ b/src/api/resources/counterparts/resources/addresses/client/Client.ts @@ -30,8 +30,6 @@ export declare namespace Addresses { moniteVersion?: string; /** Override the x-monite-entity-id header */ moniteEntityId?: string | undefined; - /** Additional headers to include in the request. */ - headers?: Record; } } @@ -72,7 +70,6 @@ export class Addresses { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -107,9 +104,7 @@ export class Addresses { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling GET /counterparts/{counterpart_id}/addresses." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -158,7 +153,6 @@ export class Addresses { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -194,9 +188,7 @@ export class Addresses { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling POST /counterparts/{counterpart_id}/addresses." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -240,7 +232,6 @@ export class Addresses { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -275,9 +266,7 @@ export class Addresses { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling GET /counterparts/{counterpart_id}/addresses/{address_id}." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -321,7 +310,6 @@ export class Addresses { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -356,9 +344,7 @@ export class Addresses { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling DELETE /counterparts/{counterpart_id}/addresses/{address_id}." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -404,7 +390,6 @@ export class Addresses { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -440,9 +425,7 @@ export class Addresses { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling PATCH /counterparts/{counterpart_id}/addresses/{address_id}." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, diff --git a/src/api/resources/counterparts/resources/bankAccounts/client/Client.ts b/src/api/resources/counterparts/resources/bankAccounts/client/Client.ts index 06ff11b..1757384 100644 --- a/src/api/resources/counterparts/resources/bankAccounts/client/Client.ts +++ b/src/api/resources/counterparts/resources/bankAccounts/client/Client.ts @@ -30,8 +30,6 @@ export declare namespace BankAccounts { moniteVersion?: string; /** Override the x-monite-entity-id header */ moniteEntityId?: string | undefined; - /** Additional headers to include in the request. */ - headers?: Record; } } @@ -71,7 +69,6 @@ export class BankAccounts { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -104,9 +101,7 @@ export class BankAccounts { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling GET /counterparts/{counterpart_id}/bank_accounts." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -153,7 +148,6 @@ export class BankAccounts { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -189,9 +183,7 @@ export class BankAccounts { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling POST /counterparts/{counterpart_id}/bank_accounts." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -235,7 +227,6 @@ export class BankAccounts { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -270,9 +261,7 @@ export class BankAccounts { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling GET /counterparts/{counterpart_id}/bank_accounts/{bank_account_id}." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -316,7 +305,6 @@ export class BankAccounts { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -351,9 +339,7 @@ export class BankAccounts { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling DELETE /counterparts/{counterpart_id}/bank_accounts/{bank_account_id}." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -399,7 +385,6 @@ export class BankAccounts { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -435,9 +420,7 @@ export class BankAccounts { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling PATCH /counterparts/{counterpart_id}/bank_accounts/{bank_account_id}." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -482,7 +465,6 @@ export class BankAccounts { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -515,9 +497,7 @@ export class BankAccounts { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling POST /counterparts/{counterpart_id}/bank_accounts/{bank_account_id}/make_default." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, diff --git a/src/api/resources/counterparts/resources/contacts/client/Client.ts b/src/api/resources/counterparts/resources/contacts/client/Client.ts index c9e1f3a..9abaf05 100644 --- a/src/api/resources/counterparts/resources/contacts/client/Client.ts +++ b/src/api/resources/counterparts/resources/contacts/client/Client.ts @@ -30,8 +30,6 @@ export declare namespace Contacts { moniteVersion?: string; /** Override the x-monite-entity-id header */ moniteEntityId?: string | undefined; - /** Additional headers to include in the request. */ - headers?: Record; } } @@ -71,7 +69,6 @@ export class Contacts { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -104,9 +101,7 @@ export class Contacts { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling GET /counterparts/{counterpart_id}/contacts." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -159,7 +154,6 @@ export class Contacts { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -195,9 +189,7 @@ export class Contacts { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling POST /counterparts/{counterpart_id}/contacts." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -241,7 +233,6 @@ export class Contacts { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -276,9 +267,7 @@ export class Contacts { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling GET /counterparts/{counterpart_id}/contacts/{contact_id}." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -322,7 +311,6 @@ export class Contacts { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -357,9 +345,7 @@ export class Contacts { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling DELETE /counterparts/{counterpart_id}/contacts/{contact_id}." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -405,7 +391,6 @@ export class Contacts { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -441,9 +426,7 @@ export class Contacts { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling PATCH /counterparts/{counterpart_id}/contacts/{contact_id}." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -489,7 +472,6 @@ export class Contacts { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -524,9 +506,7 @@ export class Contacts { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling POST /counterparts/{counterpart_id}/contacts/{contact_id}/make_default." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, diff --git a/src/api/resources/counterparts/resources/vatIds/client/Client.ts b/src/api/resources/counterparts/resources/vatIds/client/Client.ts index b5a74a7..3e93554 100644 --- a/src/api/resources/counterparts/resources/vatIds/client/Client.ts +++ b/src/api/resources/counterparts/resources/vatIds/client/Client.ts @@ -30,8 +30,6 @@ export declare namespace VatIds { moniteVersion?: string; /** Override the x-monite-entity-id header */ moniteEntityId?: string | undefined; - /** Additional headers to include in the request. */ - headers?: Record; } } @@ -71,7 +69,6 @@ export class VatIds { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -104,9 +101,7 @@ export class VatIds { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling GET /counterparts/{counterpart_id}/vat_ids." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -152,7 +147,6 @@ export class VatIds { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -188,9 +182,7 @@ export class VatIds { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling POST /counterparts/{counterpart_id}/vat_ids." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -234,7 +226,6 @@ export class VatIds { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -269,9 +260,7 @@ export class VatIds { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling GET /counterparts/{counterpart_id}/vat_ids/{vat_id}." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -315,7 +304,6 @@ export class VatIds { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -350,9 +338,7 @@ export class VatIds { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling DELETE /counterparts/{counterpart_id}/vat_ids/{vat_id}." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -398,7 +384,6 @@ export class VatIds { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -434,9 +419,7 @@ export class VatIds { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling PATCH /counterparts/{counterpart_id}/vat_ids/{vat_id}." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, diff --git a/src/api/resources/creditNotes/client/Client.ts b/src/api/resources/creditNotes/client/Client.ts index 6d1ef3d..bf4a2d8 100644 --- a/src/api/resources/creditNotes/client/Client.ts +++ b/src/api/resources/creditNotes/client/Client.ts @@ -30,8 +30,6 @@ export declare namespace CreditNotes { moniteVersion?: string; /** Override the x-monite-entity-id header */ moniteEntityId?: string | undefined; - /** Additional headers to include in the request. */ - headers?: Record; } } @@ -246,7 +244,6 @@ export class CreditNotes { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", queryParameters: _queryParams, @@ -288,7 +285,7 @@ export class CreditNotes { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError("Timeout exceeded when calling GET /payable_credit_notes."); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -337,7 +334,6 @@ export class CreditNotes { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -377,7 +373,7 @@ export class CreditNotes { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError("Timeout exceeded when calling POST /payable_credit_notes."); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -421,7 +417,6 @@ export class CreditNotes { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -460,9 +455,7 @@ export class CreditNotes { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling GET /payable_credit_notes/{credit_note_id}." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -507,7 +500,6 @@ export class CreditNotes { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -548,9 +540,7 @@ export class CreditNotes { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling DELETE /payable_credit_notes/{credit_note_id}." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -596,7 +586,6 @@ export class CreditNotes { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -636,9 +625,7 @@ export class CreditNotes { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling PATCH /payable_credit_notes/{credit_note_id}." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -685,7 +672,6 @@ export class CreditNotes { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -726,9 +712,7 @@ export class CreditNotes { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling POST /payable_credit_notes/{credit_note_id}/approve." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -775,7 +759,6 @@ export class CreditNotes { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -816,9 +799,7 @@ export class CreditNotes { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling POST /payable_credit_notes/{credit_note_id}/cancel." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -1087,7 +1068,6 @@ export class CreditNotes { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", queryParameters: _queryParams, @@ -1127,9 +1107,7 @@ export class CreditNotes { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling GET /payable_credit_notes/{credit_note_id}/line_items." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -1175,7 +1153,6 @@ export class CreditNotes { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -1215,9 +1192,7 @@ export class CreditNotes { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling POST /payable_credit_notes/{credit_note_id}/line_items." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -1265,7 +1240,6 @@ export class CreditNotes { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -1305,9 +1279,7 @@ export class CreditNotes { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling PUT /payable_credit_notes/{credit_note_id}/line_items." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -1353,7 +1325,6 @@ export class CreditNotes { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -1392,9 +1363,7 @@ export class CreditNotes { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling GET /payable_credit_notes/{credit_note_id}/line_items/{line_item_id}." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -1440,7 +1409,6 @@ export class CreditNotes { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -1479,9 +1447,7 @@ export class CreditNotes { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling DELETE /payable_credit_notes/{credit_note_id}/line_items/{line_item_id}." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -1529,7 +1495,6 @@ export class CreditNotes { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -1569,9 +1534,7 @@ export class CreditNotes { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling PATCH /payable_credit_notes/{credit_note_id}/line_items/{line_item_id}." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -1618,7 +1581,6 @@ export class CreditNotes { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -1659,9 +1621,7 @@ export class CreditNotes { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling POST /payable_credit_notes/{credit_note_id}/reject." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -1708,7 +1668,6 @@ export class CreditNotes { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -1749,9 +1708,7 @@ export class CreditNotes { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling POST /payable_credit_notes/{credit_note_id}/submit_for_approval." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, diff --git a/src/api/resources/dataExports/client/Client.ts b/src/api/resources/dataExports/client/Client.ts index 934290f..d11ba2f 100644 --- a/src/api/resources/dataExports/client/Client.ts +++ b/src/api/resources/dataExports/client/Client.ts @@ -31,8 +31,6 @@ export declare namespace DataExports { moniteVersion?: string; /** Override the x-monite-entity-id header */ moniteEntityId?: string | undefined; - /** Additional headers to include in the request. */ - headers?: Record; } } @@ -124,7 +122,6 @@ export class DataExports { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", queryParameters: _queryParams, @@ -166,7 +163,7 @@ export class DataExports { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError("Timeout exceeded when calling GET /data_exports."); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -220,7 +217,6 @@ export class DataExports { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -264,7 +260,7 @@ export class DataExports { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError("Timeout exceeded when calling POST /data_exports."); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -303,7 +299,6 @@ export class DataExports { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -336,9 +331,7 @@ export class DataExports { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling GET /data_exports/supported_formats." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -383,7 +376,6 @@ export class DataExports { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -424,9 +416,7 @@ export class DataExports { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling GET /data_exports/{document_export_id}." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, diff --git a/src/api/resources/dataExports/resources/extraData/client/Client.ts b/src/api/resources/dataExports/resources/extraData/client/Client.ts index 9039ef9..25e1981 100644 --- a/src/api/resources/dataExports/resources/extraData/client/Client.ts +++ b/src/api/resources/dataExports/resources/extraData/client/Client.ts @@ -30,8 +30,6 @@ export declare namespace ExtraData { moniteVersion?: string; /** Override the x-monite-entity-id header */ moniteEntityId?: string | undefined; - /** Additional headers to include in the request. */ - headers?: Record; } } @@ -151,7 +149,6 @@ export class ExtraData { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", queryParameters: _queryParams, @@ -189,7 +186,7 @@ export class ExtraData { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError("Timeout exceeded when calling GET /data_exports/extra_data."); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -237,7 +234,6 @@ export class ExtraData { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -277,7 +273,7 @@ export class ExtraData { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError("Timeout exceeded when calling POST /data_exports/extra_data."); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -321,7 +317,6 @@ export class ExtraData { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -360,9 +355,7 @@ export class ExtraData { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling GET /data_exports/extra_data/{extra_data_id}." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -406,7 +399,6 @@ export class ExtraData { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -445,9 +437,7 @@ export class ExtraData { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling DELETE /data_exports/extra_data/{extra_data_id}." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -494,7 +484,6 @@ export class ExtraData { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -536,9 +525,7 @@ export class ExtraData { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling PATCH /data_exports/extra_data/{extra_data_id}." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, diff --git a/src/api/resources/entities/client/Client.ts b/src/api/resources/entities/client/Client.ts index 9395d48..191bb8a 100644 --- a/src/api/resources/entities/client/Client.ts +++ b/src/api/resources/entities/client/Client.ts @@ -37,8 +37,6 @@ export declare namespace Entities { moniteVersion?: string; /** Override the x-monite-entity-id header */ moniteEntityId?: string | undefined; - /** Additional headers to include in the request. */ - headers?: Record; } } @@ -173,7 +171,6 @@ export class Entities { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", queryParameters: _queryParams, @@ -215,7 +212,7 @@ export class Entities { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError("Timeout exceeded when calling GET /entities."); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -268,7 +265,6 @@ export class Entities { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -304,7 +300,7 @@ export class Entities { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError("Timeout exceeded when calling POST /entities."); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -344,7 +340,6 @@ export class Entities { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -379,7 +374,7 @@ export class Entities { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError("Timeout exceeded when calling GET /entities/me."); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -423,7 +418,6 @@ export class Entities { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -459,7 +453,7 @@ export class Entities { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError("Timeout exceeded when calling PATCH /entities/me."); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -500,7 +494,6 @@ export class Entities { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -535,7 +528,7 @@ export class Entities { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError("Timeout exceeded when calling GET /entities/{entity_id}."); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -581,7 +574,6 @@ export class Entities { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -617,7 +609,7 @@ export class Entities { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError("Timeout exceeded when calling PATCH /entities/{entity_id}."); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -667,7 +659,6 @@ export class Entities { "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ..._maybeEncodedRequest.headers, - ...requestOptions?.headers, }, requestType: "file", duplex: _maybeEncodedRequest.duplex, @@ -703,7 +694,7 @@ export class Entities { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError("Timeout exceeded when calling PUT /entities/{entity_id}/logo."); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -742,7 +733,6 @@ export class Entities { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -777,7 +767,7 @@ export class Entities { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError("Timeout exceeded when calling DELETE /entities/{entity_id}/logo."); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -820,7 +810,6 @@ export class Entities { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -853,9 +842,7 @@ export class Entities { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling GET /entities/{entity_id}/partner_metadata." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -904,7 +891,6 @@ export class Entities { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -938,9 +924,7 @@ export class Entities { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling PUT /entities/{entity_id}/partner_metadata." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -984,7 +968,6 @@ export class Entities { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -1019,9 +1002,7 @@ export class Entities { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling GET /entities/{entity_id}/settings." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -1067,7 +1048,6 @@ export class Entities { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -1103,9 +1083,7 @@ export class Entities { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling PATCH /entities/{entity_id}/settings." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -1148,7 +1126,6 @@ export class Entities { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -1182,7 +1159,7 @@ export class Entities { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError("Timeout exceeded when calling POST /onboarding_documents."); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -1223,7 +1200,6 @@ export class Entities { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -1256,7 +1232,7 @@ export class Entities { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError("Timeout exceeded when calling GET /onboarding_requirements."); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, diff --git a/src/api/resources/entities/resources/bankAccounts/client/Client.ts b/src/api/resources/entities/resources/bankAccounts/client/Client.ts index d6ee378..e68ad58 100644 --- a/src/api/resources/entities/resources/bankAccounts/client/Client.ts +++ b/src/api/resources/entities/resources/bankAccounts/client/Client.ts @@ -30,8 +30,6 @@ export declare namespace BankAccounts { moniteVersion?: string; /** Override the x-monite-entity-id header */ moniteEntityId?: string | undefined; - /** Additional headers to include in the request. */ - headers?: Record; } } @@ -72,7 +70,6 @@ export class BankAccounts { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -107,7 +104,7 @@ export class BankAccounts { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError("Timeout exceeded when calling GET /bank_accounts."); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -164,7 +161,6 @@ export class BankAccounts { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -200,7 +196,7 @@ export class BankAccounts { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError("Timeout exceeded when calling POST /bank_accounts."); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -261,7 +257,6 @@ export class BankAccounts { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -295,9 +290,7 @@ export class BankAccounts { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling POST /bank_accounts/complete_verification." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -347,7 +340,6 @@ export class BankAccounts { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -381,9 +373,7 @@ export class BankAccounts { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling POST /bank_accounts/start_verification." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -428,7 +418,6 @@ export class BankAccounts { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -465,9 +454,7 @@ export class BankAccounts { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling GET /bank_accounts/{bank_account_id}." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -509,7 +496,6 @@ export class BankAccounts { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -546,9 +532,7 @@ export class BankAccounts { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling DELETE /bank_accounts/{bank_account_id}." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -595,7 +579,6 @@ export class BankAccounts { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -633,9 +616,7 @@ export class BankAccounts { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling PATCH /bank_accounts/{bank_account_id}." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -680,7 +661,6 @@ export class BankAccounts { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -714,9 +694,7 @@ export class BankAccounts { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling POST /bank_accounts/{bank_account_id}/complete_verification." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -761,7 +739,6 @@ export class BankAccounts { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -798,9 +775,7 @@ export class BankAccounts { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling POST /bank_accounts/{bank_account_id}/make_default." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -849,7 +824,6 @@ export class BankAccounts { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -883,9 +857,7 @@ export class BankAccounts { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling POST /bank_accounts/{bank_account_id}/refresh_verification." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -926,7 +898,6 @@ export class BankAccounts { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -959,9 +930,7 @@ export class BankAccounts { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling GET /bank_accounts/{bank_account_id}/verifications." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, diff --git a/src/api/resources/entities/resources/onboardingData/client/Client.ts b/src/api/resources/entities/resources/onboardingData/client/Client.ts index 59d8f00..bc7b00b 100644 --- a/src/api/resources/entities/resources/onboardingData/client/Client.ts +++ b/src/api/resources/entities/resources/onboardingData/client/Client.ts @@ -30,8 +30,6 @@ export declare namespace OnboardingData { moniteVersion?: string; /** Override the x-monite-entity-id header */ moniteEntityId?: string | undefined; - /** Additional headers to include in the request. */ - headers?: Record; } } @@ -73,7 +71,6 @@ export class OnboardingData { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -110,9 +107,7 @@ export class OnboardingData { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling GET /entities/{entity_id}/onboarding_data." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -157,7 +152,6 @@ export class OnboardingData { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -195,9 +189,7 @@ export class OnboardingData { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling PATCH /entities/{entity_id}/onboarding_data." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, diff --git a/src/api/resources/entities/resources/paymentMethods/client/Client.ts b/src/api/resources/entities/resources/paymentMethods/client/Client.ts index 897cacc..e6cf798 100644 --- a/src/api/resources/entities/resources/paymentMethods/client/Client.ts +++ b/src/api/resources/entities/resources/paymentMethods/client/Client.ts @@ -30,8 +30,6 @@ export declare namespace PaymentMethods { moniteVersion?: string; /** Override the x-monite-entity-id header */ moniteEntityId?: string | undefined; - /** Additional headers to include in the request. */ - headers?: Record; } } @@ -73,7 +71,6 @@ export class PaymentMethods { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -106,9 +103,7 @@ export class PaymentMethods { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling GET /entities/{entity_id}/payment_methods." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -153,7 +148,6 @@ export class PaymentMethods { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -187,9 +181,7 @@ export class PaymentMethods { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling PUT /entities/{entity_id}/payment_methods." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, diff --git a/src/api/resources/entities/resources/persons/client/Client.ts b/src/api/resources/entities/resources/persons/client/Client.ts index d2984f1..e5daf90 100644 --- a/src/api/resources/entities/resources/persons/client/Client.ts +++ b/src/api/resources/entities/resources/persons/client/Client.ts @@ -30,8 +30,6 @@ export declare namespace Persons { moniteVersion?: string; /** Override the x-monite-entity-id header */ moniteEntityId?: string | undefined; - /** Additional headers to include in the request. */ - headers?: Record; } } @@ -67,7 +65,6 @@ export class Persons { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -100,7 +97,7 @@ export class Persons { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError("Timeout exceeded when calling GET /persons."); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -147,7 +144,6 @@ export class Persons { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -183,7 +179,7 @@ export class Persons { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError("Timeout exceeded when calling POST /persons."); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -222,7 +218,6 @@ export class Persons { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -257,7 +252,7 @@ export class Persons { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError("Timeout exceeded when calling GET /persons/{person_id}."); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -297,7 +292,6 @@ export class Persons { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -334,7 +328,7 @@ export class Persons { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError("Timeout exceeded when calling DELETE /persons/{person_id}."); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -379,7 +373,6 @@ export class Persons { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -417,7 +410,7 @@ export class Persons { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError("Timeout exceeded when calling PATCH /persons/{person_id}."); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -462,7 +455,6 @@ export class Persons { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -496,9 +488,7 @@ export class Persons { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling POST /persons/{person_id}/onboarding_documents." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, diff --git a/src/api/resources/entities/resources/vatIds/client/Client.ts b/src/api/resources/entities/resources/vatIds/client/Client.ts index 11bfc3b..67618f3 100644 --- a/src/api/resources/entities/resources/vatIds/client/Client.ts +++ b/src/api/resources/entities/resources/vatIds/client/Client.ts @@ -30,8 +30,6 @@ export declare namespace VatIds { moniteVersion?: string; /** Override the x-monite-entity-id header */ moniteEntityId?: string | undefined; - /** Additional headers to include in the request. */ - headers?: Record; } } @@ -71,7 +69,6 @@ export class VatIds { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -104,7 +101,7 @@ export class VatIds { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError("Timeout exceeded when calling GET /entities/{entity_id}/vat_ids."); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -151,7 +148,6 @@ export class VatIds { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -187,9 +183,7 @@ export class VatIds { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling POST /entities/{entity_id}/vat_ids." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -233,7 +227,6 @@ export class VatIds { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -268,9 +261,7 @@ export class VatIds { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling GET /entities/{entity_id}/vat_ids/{id}." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -310,7 +301,6 @@ export class VatIds { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -345,9 +335,7 @@ export class VatIds { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling DELETE /entities/{entity_id}/vat_ids/{id}." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -393,7 +381,6 @@ export class VatIds { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -429,9 +416,7 @@ export class VatIds { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling PATCH /entities/{entity_id}/vat_ids/{id}." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, diff --git a/src/api/resources/entityUsers/client/Client.ts b/src/api/resources/entityUsers/client/Client.ts index 1ad3b20..abd297d 100644 --- a/src/api/resources/entityUsers/client/Client.ts +++ b/src/api/resources/entityUsers/client/Client.ts @@ -30,8 +30,6 @@ export declare namespace EntityUsers { moniteVersion?: string; /** Override the x-monite-entity-id header */ moniteEntityId?: string | undefined; - /** Additional headers to include in the request. */ - headers?: Record; } } @@ -172,7 +170,6 @@ export class EntityUsers { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", queryParameters: _queryParams, @@ -214,7 +211,7 @@ export class EntityUsers { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError("Timeout exceeded when calling GET /entity_users."); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -261,7 +258,6 @@ export class EntityUsers { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -297,7 +293,7 @@ export class EntityUsers { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError("Timeout exceeded when calling POST /entity_users."); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -337,7 +333,6 @@ export class EntityUsers { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -372,7 +367,7 @@ export class EntityUsers { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError("Timeout exceeded when calling GET /entity_users/me."); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -416,7 +411,6 @@ export class EntityUsers { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -452,7 +446,7 @@ export class EntityUsers { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError("Timeout exceeded when calling PATCH /entity_users/me."); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -492,7 +486,6 @@ export class EntityUsers { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -527,7 +520,7 @@ export class EntityUsers { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError("Timeout exceeded when calling GET /entity_users/my_entity."); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -571,7 +564,6 @@ export class EntityUsers { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -607,7 +599,7 @@ export class EntityUsers { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError("Timeout exceeded when calling PATCH /entity_users/my_entity."); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -646,7 +638,6 @@ export class EntityUsers { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -679,7 +670,7 @@ export class EntityUsers { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError("Timeout exceeded when calling GET /entity_users/my_role."); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -723,7 +714,6 @@ export class EntityUsers { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -758,9 +748,7 @@ export class EntityUsers { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling GET /entity_users/{entity_user_id}." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -799,7 +787,6 @@ export class EntityUsers { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -834,9 +821,7 @@ export class EntityUsers { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling DELETE /entity_users/{entity_user_id}." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -882,7 +867,6 @@ export class EntityUsers { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -918,9 +902,7 @@ export class EntityUsers { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling PATCH /entity_users/{entity_user_id}." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, diff --git a/src/api/resources/events/client/Client.ts b/src/api/resources/events/client/Client.ts index 124d635..ab6d25b 100644 --- a/src/api/resources/events/client/Client.ts +++ b/src/api/resources/events/client/Client.ts @@ -30,8 +30,6 @@ export declare namespace Events { moniteVersion?: string; /** Override the x-monite-entity-id header */ moniteEntityId?: string | undefined; - /** Additional headers to include in the request. */ - headers?: Record; } } @@ -125,7 +123,6 @@ export class Events { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", queryParameters: _queryParams, @@ -159,7 +156,7 @@ export class Events { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError("Timeout exceeded when calling GET /events."); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -199,7 +196,6 @@ export class Events { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -232,7 +228,7 @@ export class Events { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError("Timeout exceeded when calling GET /events/{event_id}."); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, diff --git a/src/api/resources/files/client/Client.ts b/src/api/resources/files/client/Client.ts index b9071d7..1f69f63 100644 --- a/src/api/resources/files/client/Client.ts +++ b/src/api/resources/files/client/Client.ts @@ -32,8 +32,6 @@ export declare namespace Files { moniteVersion?: string; /** Override the x-monite-entity-id header */ moniteEntityId?: string | undefined; - /** Additional headers to include in the request. */ - headers?: Record; } } @@ -85,7 +83,6 @@ export class Files { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", queryParameters: _queryParams, @@ -119,7 +116,7 @@ export class Files { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError("Timeout exceeded when calling GET /files."); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -169,7 +166,6 @@ export class Files { "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ..._maybeEncodedRequest.headers, - ...requestOptions?.headers, }, requestType: "file", duplex: _maybeEncodedRequest.duplex, @@ -203,7 +199,7 @@ export class Files { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError("Timeout exceeded when calling POST /files."); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -241,7 +237,6 @@ export class Files { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -274,7 +269,7 @@ export class Files { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError("Timeout exceeded when calling GET /files/{file_id}."); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -312,7 +307,6 @@ export class Files { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -345,7 +339,7 @@ export class Files { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError("Timeout exceeded when calling DELETE /files/{file_id}."); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, diff --git a/src/api/resources/financing/client/Client.ts b/src/api/resources/financing/client/Client.ts index f748c56..d95539b 100644 --- a/src/api/resources/financing/client/Client.ts +++ b/src/api/resources/financing/client/Client.ts @@ -30,8 +30,6 @@ export declare namespace Financing { moniteVersion?: string; /** Override the x-monite-entity-id header */ moniteEntityId?: string | undefined; - /** Additional headers to include in the request. */ - headers?: Record; } } @@ -237,7 +235,6 @@ export class Financing { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", queryParameters: _queryParams, @@ -271,7 +268,7 @@ export class Financing { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError("Timeout exceeded when calling GET /financing_invoices."); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -319,7 +316,6 @@ export class Financing { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -353,7 +349,7 @@ export class Financing { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError("Timeout exceeded when calling POST /financing_invoices."); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -394,7 +390,6 @@ export class Financing { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -427,7 +422,7 @@ export class Financing { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError("Timeout exceeded when calling GET /financing_offers."); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -468,7 +463,6 @@ export class Financing { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -501,7 +495,7 @@ export class Financing { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError("Timeout exceeded when calling POST /financing_tokens."); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, diff --git a/src/api/resources/mailTemplates/client/Client.ts b/src/api/resources/mailTemplates/client/Client.ts index 1b23201..2a7213d 100644 --- a/src/api/resources/mailTemplates/client/Client.ts +++ b/src/api/resources/mailTemplates/client/Client.ts @@ -30,8 +30,6 @@ export declare namespace MailTemplates { moniteVersion?: string; /** Override the x-monite-entity-id header */ moniteEntityId?: string | undefined; - /** Additional headers to include in the request. */ - headers?: Record; } } @@ -144,7 +142,6 @@ export class MailTemplates { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", queryParameters: _queryParams, @@ -178,7 +175,7 @@ export class MailTemplates { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError("Timeout exceeded when calling GET /mail_templates."); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -226,7 +223,6 @@ export class MailTemplates { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -260,7 +256,7 @@ export class MailTemplates { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError("Timeout exceeded when calling POST /mail_templates."); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -308,7 +304,6 @@ export class MailTemplates { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -342,7 +337,7 @@ export class MailTemplates { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError("Timeout exceeded when calling POST /mail_templates/preview."); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -381,7 +376,6 @@ export class MailTemplates { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -414,7 +408,7 @@ export class MailTemplates { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError("Timeout exceeded when calling GET /mail_templates/system."); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -457,7 +451,6 @@ export class MailTemplates { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -490,7 +483,7 @@ export class MailTemplates { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError("Timeout exceeded when calling GET /mail_templates/{template_id}."); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -530,7 +523,6 @@ export class MailTemplates { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -563,9 +555,7 @@ export class MailTemplates { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling DELETE /mail_templates/{template_id}." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -610,7 +600,6 @@ export class MailTemplates { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -644,9 +633,7 @@ export class MailTemplates { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling PATCH /mail_templates/{template_id}." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -689,7 +676,6 @@ export class MailTemplates { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -722,9 +708,7 @@ export class MailTemplates { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling POST /mail_templates/{template_id}/make_default." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, diff --git a/src/api/resources/mailboxDomains/client/Client.ts b/src/api/resources/mailboxDomains/client/Client.ts index ea15aed..24c46c8 100644 --- a/src/api/resources/mailboxDomains/client/Client.ts +++ b/src/api/resources/mailboxDomains/client/Client.ts @@ -30,8 +30,6 @@ export declare namespace MailboxDomains { moniteVersion?: string; /** Override the x-monite-entity-id header */ moniteEntityId?: string | undefined; - /** Additional headers to include in the request. */ - headers?: Record; } } @@ -69,7 +67,6 @@ export class MailboxDomains { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -102,7 +99,7 @@ export class MailboxDomains { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError("Timeout exceeded when calling GET /mailbox_domains."); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -147,7 +144,6 @@ export class MailboxDomains { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -181,7 +177,7 @@ export class MailboxDomains { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError("Timeout exceeded when calling POST /mailbox_domains."); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -225,7 +221,6 @@ export class MailboxDomains { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -266,9 +261,7 @@ export class MailboxDomains { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling DELETE /mailbox_domains/{domain_id}." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -316,7 +309,6 @@ export class MailboxDomains { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -359,9 +351,7 @@ export class MailboxDomains { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling POST /mailbox_domains/{domain_id}/verify." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, diff --git a/src/api/resources/mailboxes/client/Client.ts b/src/api/resources/mailboxes/client/Client.ts index d3ed5e1..a5dc225 100644 --- a/src/api/resources/mailboxes/client/Client.ts +++ b/src/api/resources/mailboxes/client/Client.ts @@ -30,8 +30,6 @@ export declare namespace Mailboxes { moniteVersion?: string; /** Override the x-monite-entity-id header */ moniteEntityId?: string | undefined; - /** Additional headers to include in the request. */ - headers?: Record; } } @@ -69,7 +67,6 @@ export class Mailboxes { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -102,7 +99,7 @@ export class Mailboxes { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError("Timeout exceeded when calling GET /mailboxes."); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -149,7 +146,6 @@ export class Mailboxes { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -183,7 +179,7 @@ export class Mailboxes { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError("Timeout exceeded when calling POST /mailboxes."); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -228,7 +224,6 @@ export class Mailboxes { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -262,7 +257,7 @@ export class Mailboxes { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError("Timeout exceeded when calling POST /mailboxes/search."); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -306,7 +301,6 @@ export class Mailboxes { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -347,7 +341,7 @@ export class Mailboxes { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError("Timeout exceeded when calling DELETE /mailboxes/{mailbox_id}."); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, diff --git a/src/api/resources/measureUnits/client/Client.ts b/src/api/resources/measureUnits/client/Client.ts index 0ee4e19..7bdd68d 100644 --- a/src/api/resources/measureUnits/client/Client.ts +++ b/src/api/resources/measureUnits/client/Client.ts @@ -30,8 +30,6 @@ export declare namespace MeasureUnits { moniteVersion?: string; /** Override the x-monite-entity-id header */ moniteEntityId?: string | undefined; - /** Additional headers to include in the request. */ - headers?: Record; } } @@ -70,7 +68,6 @@ export class MeasureUnits { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -109,7 +106,7 @@ export class MeasureUnits { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError("Timeout exceeded when calling GET /measure_units."); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -155,7 +152,6 @@ export class MeasureUnits { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -195,7 +191,7 @@ export class MeasureUnits { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError("Timeout exceeded when calling POST /measure_units."); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -237,7 +233,6 @@ export class MeasureUnits { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -278,7 +273,7 @@ export class MeasureUnits { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError("Timeout exceeded when calling GET /measure_units/{unit_id}."); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -320,7 +315,6 @@ export class MeasureUnits { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -361,7 +355,7 @@ export class MeasureUnits { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError("Timeout exceeded when calling DELETE /measure_units/{unit_id}."); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -408,7 +402,6 @@ export class MeasureUnits { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -450,7 +443,7 @@ export class MeasureUnits { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError("Timeout exceeded when calling PATCH /measure_units/{unit_id}."); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, diff --git a/src/api/resources/onboardingLinks/client/Client.ts b/src/api/resources/onboardingLinks/client/Client.ts index 3d42350..2d4d3a3 100644 --- a/src/api/resources/onboardingLinks/client/Client.ts +++ b/src/api/resources/onboardingLinks/client/Client.ts @@ -30,8 +30,6 @@ export declare namespace OnboardingLinks { moniteVersion?: string; /** Override the x-monite-entity-id header */ moniteEntityId?: string | undefined; - /** Additional headers to include in the request. */ - headers?: Record; } } @@ -75,7 +73,6 @@ export class OnboardingLinks { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -109,7 +106,7 @@ export class OnboardingLinks { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError("Timeout exceeded when calling POST /onboarding_links."); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, diff --git a/src/api/resources/overdueReminders/client/Client.ts b/src/api/resources/overdueReminders/client/Client.ts index 8965344..69f98bd 100644 --- a/src/api/resources/overdueReminders/client/Client.ts +++ b/src/api/resources/overdueReminders/client/Client.ts @@ -30,8 +30,6 @@ export declare namespace OverdueReminders { moniteVersion?: string; /** Override the x-monite-entity-id header */ moniteEntityId?: string | undefined; - /** Additional headers to include in the request. */ - headers?: Record; } } @@ -69,7 +67,6 @@ export class OverdueReminders { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -106,7 +103,7 @@ export class OverdueReminders { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError("Timeout exceeded when calling GET /overdue_reminders."); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -152,7 +149,6 @@ export class OverdueReminders { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -192,7 +188,7 @@ export class OverdueReminders { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError("Timeout exceeded when calling POST /overdue_reminders."); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -236,7 +232,6 @@ export class OverdueReminders { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -275,9 +270,7 @@ export class OverdueReminders { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling GET /overdue_reminders/{overdue_reminder_id}." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -322,7 +315,6 @@ export class OverdueReminders { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -363,9 +355,7 @@ export class OverdueReminders { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling DELETE /overdue_reminders/{overdue_reminder_id}." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -412,7 +402,6 @@ export class OverdueReminders { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -454,9 +443,7 @@ export class OverdueReminders { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling PATCH /overdue_reminders/{overdue_reminder_id}." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, diff --git a/src/api/resources/partnerSettings/client/Client.ts b/src/api/resources/partnerSettings/client/Client.ts index 48d35e3..67e21b6 100644 --- a/src/api/resources/partnerSettings/client/Client.ts +++ b/src/api/resources/partnerSettings/client/Client.ts @@ -30,8 +30,6 @@ export declare namespace PartnerSettings { moniteVersion?: string; /** Override the x-monite-entity-id header */ moniteEntityId?: string | undefined; - /** Additional headers to include in the request. */ - headers?: Record; } } @@ -70,7 +68,6 @@ export class PartnerSettings { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -105,7 +102,7 @@ export class PartnerSettings { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError("Timeout exceeded when calling GET /settings."); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -149,7 +146,6 @@ export class PartnerSettings { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -185,7 +181,7 @@ export class PartnerSettings { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError("Timeout exceeded when calling PATCH /settings."); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, diff --git a/src/api/resources/payables/client/Client.ts b/src/api/resources/payables/client/Client.ts index ec39e53..4dfbb11 100644 --- a/src/api/resources/payables/client/Client.ts +++ b/src/api/resources/payables/client/Client.ts @@ -33,8 +33,6 @@ export declare namespace Payables { moniteVersion?: string; /** Override the x-monite-entity-id header */ moniteEntityId?: string | undefined; - /** Additional headers to include in the request. */ - headers?: Record; } } @@ -333,7 +331,6 @@ export class Payables { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", queryParameters: _queryParams, @@ -375,7 +372,7 @@ export class Payables { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError("Timeout exceeded when calling GET /payables."); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -427,7 +424,6 @@ export class Payables { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -467,7 +463,7 @@ export class Payables { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError("Timeout exceeded when calling POST /payables."); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -719,7 +715,6 @@ export class Payables { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", queryParameters: _queryParams, @@ -757,7 +752,7 @@ export class Payables { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError("Timeout exceeded when calling GET /payables/analytics."); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -808,7 +803,6 @@ export class Payables { "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ..._maybeEncodedRequest.headers, - ...requestOptions?.headers, }, requestType: "file", duplex: _maybeEncodedRequest.duplex, @@ -850,7 +844,7 @@ export class Payables { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError("Timeout exceeded when calling POST /payables/upload_from_file."); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -892,7 +886,6 @@ export class Payables { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -931,7 +924,7 @@ export class Payables { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError("Timeout exceeded when calling GET /payables/validations."); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -979,7 +972,6 @@ export class Payables { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -1019,7 +1011,7 @@ export class Payables { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError("Timeout exceeded when calling PUT /payables/validations."); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -1063,7 +1055,6 @@ export class Payables { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -1102,7 +1093,7 @@ export class Payables { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError("Timeout exceeded when calling POST /payables/validations/reset."); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -1144,7 +1135,6 @@ export class Payables { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -1179,7 +1169,7 @@ export class Payables { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError("Timeout exceeded when calling GET /payables/variables."); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -1226,7 +1216,6 @@ export class Payables { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -1267,7 +1256,7 @@ export class Payables { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError("Timeout exceeded when calling GET /payables/{payable_id}."); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -1311,7 +1300,6 @@ export class Payables { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -1352,7 +1340,7 @@ export class Payables { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError("Timeout exceeded when calling DELETE /payables/{payable_id}."); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -1401,7 +1389,6 @@ export class Payables { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -1443,7 +1430,7 @@ export class Payables { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError("Timeout exceeded when calling PATCH /payables/{payable_id}."); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -1491,7 +1478,6 @@ export class Payables { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -1534,9 +1520,7 @@ export class Payables { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling POST /payables/{payable_id}/approve_payment_operation." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -1589,7 +1573,6 @@ export class Payables { "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ..._maybeEncodedRequest.headers, - ...requestOptions?.headers, }, requestType: "file", duplex: _maybeEncodedRequest.duplex, @@ -1631,9 +1614,7 @@ export class Payables { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling POST /payables/{payable_id}/attach_file." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -1681,7 +1662,6 @@ export class Payables { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -1724,9 +1704,7 @@ export class Payables { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling POST /payables/{payable_id}/cancel." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -1798,7 +1776,6 @@ export class Payables { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -1842,9 +1819,7 @@ export class Payables { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling POST /payables/{payable_id}/mark_as_paid." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -1920,7 +1895,6 @@ export class Payables { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -1964,9 +1938,7 @@ export class Payables { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling POST /payables/{payable_id}/mark_as_partially_paid." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -2014,7 +1986,6 @@ export class Payables { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -2057,9 +2028,7 @@ export class Payables { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling POST /payables/{payable_id}/reject." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -2107,7 +2076,6 @@ export class Payables { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -2150,9 +2118,7 @@ export class Payables { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling POST /payables/{payable_id}/reopen." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -2200,7 +2166,6 @@ export class Payables { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -2243,9 +2208,7 @@ export class Payables { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling POST /payables/{payable_id}/submit_for_approval." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -2292,7 +2255,6 @@ export class Payables { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -2333,9 +2295,7 @@ export class Payables { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling POST /payables/{payable_id}/validate." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, diff --git a/src/api/resources/payables/resources/lineItems/client/Client.ts b/src/api/resources/payables/resources/lineItems/client/Client.ts index e0a8ee1..7fd8097 100644 --- a/src/api/resources/payables/resources/lineItems/client/Client.ts +++ b/src/api/resources/payables/resources/lineItems/client/Client.ts @@ -30,8 +30,6 @@ export declare namespace LineItems { moniteVersion?: string; /** Override the x-monite-entity-id header */ moniteEntityId?: string | undefined; - /** Additional headers to include in the request. */ - headers?: Record; } } @@ -114,7 +112,6 @@ export class LineItems { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", queryParameters: _queryParams, @@ -156,9 +153,7 @@ export class LineItems { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling GET /payables/{payable_id}/line_items." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -220,7 +215,6 @@ export class LineItems { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -264,9 +258,7 @@ export class LineItems { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling POST /payables/{payable_id}/line_items." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -327,7 +319,6 @@ export class LineItems { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -373,9 +364,7 @@ export class LineItems { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling PUT /payables/{payable_id}/line_items." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -433,7 +422,6 @@ export class LineItems { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -476,9 +464,7 @@ export class LineItems { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling GET /payables/{payable_id}/line_items/{line_item_id}." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -535,7 +521,6 @@ export class LineItems { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -576,9 +561,7 @@ export class LineItems { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling DELETE /payables/{payable_id}/line_items/{line_item_id}." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -638,7 +621,6 @@ export class LineItems { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -682,9 +664,7 @@ export class LineItems { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling PATCH /payables/{payable_id}/line_items/{line_item_id}." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, diff --git a/src/api/resources/paymentIntents/client/Client.ts b/src/api/resources/paymentIntents/client/Client.ts index 789af4e..f1e1d81 100644 --- a/src/api/resources/paymentIntents/client/Client.ts +++ b/src/api/resources/paymentIntents/client/Client.ts @@ -30,8 +30,6 @@ export declare namespace PaymentIntents { moniteVersion?: string; /** Override the x-monite-entity-id header */ moniteEntityId?: string | undefined; - /** Additional headers to include in the request. */ - headers?: Record; } } @@ -93,7 +91,6 @@ export class PaymentIntents { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", queryParameters: _queryParams, @@ -127,7 +124,7 @@ export class PaymentIntents { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError("Timeout exceeded when calling GET /payment_intents."); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -168,7 +165,6 @@ export class PaymentIntents { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -201,9 +197,7 @@ export class PaymentIntents { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling GET /payment_intents/{payment_intent_id}." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -248,7 +242,6 @@ export class PaymentIntents { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -282,9 +275,7 @@ export class PaymentIntents { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling PATCH /payment_intents/{payment_intent_id}." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -325,7 +316,6 @@ export class PaymentIntents { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -358,9 +348,7 @@ export class PaymentIntents { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling GET /payment_intents/{payment_intent_id}/history." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, diff --git a/src/api/resources/paymentLinks/client/Client.ts b/src/api/resources/paymentLinks/client/Client.ts index 89c871f..8e4849e 100644 --- a/src/api/resources/paymentLinks/client/Client.ts +++ b/src/api/resources/paymentLinks/client/Client.ts @@ -30,8 +30,6 @@ export declare namespace PaymentLinks { moniteVersion?: string; /** Override the x-monite-entity-id header */ moniteEntityId?: string | undefined; - /** Additional headers to include in the request. */ - headers?: Record; } } @@ -77,7 +75,6 @@ export class PaymentLinks { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -111,7 +108,7 @@ export class PaymentLinks { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError("Timeout exceeded when calling POST /payment_links."); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -152,7 +149,6 @@ export class PaymentLinks { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -185,9 +181,7 @@ export class PaymentLinks { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling GET /payment_links/{payment_link_id}." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -228,7 +222,6 @@ export class PaymentLinks { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -261,9 +254,7 @@ export class PaymentLinks { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling POST /payment_links/{payment_link_id}/expire." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, diff --git a/src/api/resources/paymentRecords/client/Client.ts b/src/api/resources/paymentRecords/client/Client.ts index f4313cf..8e89e59 100644 --- a/src/api/resources/paymentRecords/client/Client.ts +++ b/src/api/resources/paymentRecords/client/Client.ts @@ -30,8 +30,6 @@ export declare namespace PaymentRecords { moniteVersion?: string; /** Override the x-monite-entity-id header */ moniteEntityId?: string | undefined; - /** Additional headers to include in the request. */ - headers?: Record; } } @@ -104,7 +102,6 @@ export class PaymentRecords { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", queryParameters: _queryParams, @@ -138,7 +135,7 @@ export class PaymentRecords { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError("Timeout exceeded when calling GET /payment_records."); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -188,7 +185,6 @@ export class PaymentRecords { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -222,7 +218,7 @@ export class PaymentRecords { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError("Timeout exceeded when calling POST /payment_records."); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -263,7 +259,6 @@ export class PaymentRecords { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -296,9 +291,7 @@ export class PaymentRecords { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling GET /payment_records/{payment_record_id}." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, diff --git a/src/api/resources/paymentReminders/client/Client.ts b/src/api/resources/paymentReminders/client/Client.ts index b645e4b..64c441d 100644 --- a/src/api/resources/paymentReminders/client/Client.ts +++ b/src/api/resources/paymentReminders/client/Client.ts @@ -30,8 +30,6 @@ export declare namespace PaymentReminders { moniteVersion?: string; /** Override the x-monite-entity-id header */ moniteEntityId?: string | undefined; - /** Additional headers to include in the request. */ - headers?: Record; } } @@ -69,7 +67,6 @@ export class PaymentReminders { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -106,7 +103,7 @@ export class PaymentReminders { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError("Timeout exceeded when calling GET /payment_reminders."); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -152,7 +149,6 @@ export class PaymentReminders { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -192,7 +188,7 @@ export class PaymentReminders { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError("Timeout exceeded when calling POST /payment_reminders."); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -236,7 +232,6 @@ export class PaymentReminders { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -275,9 +270,7 @@ export class PaymentReminders { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling GET /payment_reminders/{payment_reminder_id}." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -322,7 +315,6 @@ export class PaymentReminders { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -363,9 +355,7 @@ export class PaymentReminders { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling DELETE /payment_reminders/{payment_reminder_id}." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -412,7 +402,6 @@ export class PaymentReminders { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -454,9 +443,7 @@ export class PaymentReminders { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling PATCH /payment_reminders/{payment_reminder_id}." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, diff --git a/src/api/resources/paymentTerms/client/Client.ts b/src/api/resources/paymentTerms/client/Client.ts index 81914e1..ca031b3 100644 --- a/src/api/resources/paymentTerms/client/Client.ts +++ b/src/api/resources/paymentTerms/client/Client.ts @@ -30,8 +30,6 @@ export declare namespace PaymentTerms { moniteVersion?: string; /** Override the x-monite-entity-id header */ moniteEntityId?: string | undefined; - /** Additional headers to include in the request. */ - headers?: Record; } } @@ -69,7 +67,6 @@ export class PaymentTerms { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -106,7 +103,7 @@ export class PaymentTerms { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError("Timeout exceeded when calling GET /payment_terms."); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -155,7 +152,6 @@ export class PaymentTerms { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -195,7 +191,7 @@ export class PaymentTerms { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError("Timeout exceeded when calling POST /payment_terms."); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -239,7 +235,6 @@ export class PaymentTerms { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -278,9 +273,7 @@ export class PaymentTerms { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling GET /payment_terms/{payment_terms_id}." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -322,7 +315,6 @@ export class PaymentTerms { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -363,9 +355,7 @@ export class PaymentTerms { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling DELETE /payment_terms/{payment_terms_id}." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -412,7 +402,6 @@ export class PaymentTerms { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -454,9 +443,7 @@ export class PaymentTerms { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling PATCH /payment_terms/{payment_terms_id}." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, diff --git a/src/api/resources/pdfTemplates/client/Client.ts b/src/api/resources/pdfTemplates/client/Client.ts index 0882077..cccda56 100644 --- a/src/api/resources/pdfTemplates/client/Client.ts +++ b/src/api/resources/pdfTemplates/client/Client.ts @@ -31,8 +31,6 @@ export declare namespace PdfTemplates { moniteVersion?: string; /** Override the x-monite-entity-id header */ moniteEntityId?: string | undefined; - /** Additional headers to include in the request. */ - headers?: Record; } } @@ -70,7 +68,6 @@ export class PdfTemplates { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -103,7 +100,7 @@ export class PdfTemplates { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError("Timeout exceeded when calling GET /document_templates."); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -142,7 +139,6 @@ export class PdfTemplates { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -175,7 +171,7 @@ export class PdfTemplates { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError("Timeout exceeded when calling GET /document_templates/system."); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -216,7 +212,6 @@ export class PdfTemplates { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -249,9 +244,7 @@ export class PdfTemplates { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling GET /document_templates/{document_template_id}." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -292,7 +285,6 @@ export class PdfTemplates { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -325,9 +317,7 @@ export class PdfTemplates { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling POST /document_templates/{document_template_id}/make_default." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -363,7 +353,6 @@ export class PdfTemplates { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -397,9 +386,7 @@ export class PdfTemplates { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling GET /document_templates/{document_template_id}/preview." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, diff --git a/src/api/resources/products/client/Client.ts b/src/api/resources/products/client/Client.ts index 8674695..9905d3b 100644 --- a/src/api/resources/products/client/Client.ts +++ b/src/api/resources/products/client/Client.ts @@ -30,8 +30,6 @@ export declare namespace Products { moniteVersion?: string; /** Override the x-monite-entity-id header */ moniteEntityId?: string | undefined; - /** Additional headers to include in the request. */ - headers?: Record; } } @@ -190,7 +188,6 @@ export class Products { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", queryParameters: _queryParams, @@ -230,7 +227,7 @@ export class Products { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError("Timeout exceeded when calling GET /products."); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -276,7 +273,6 @@ export class Products { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -316,7 +312,7 @@ export class Products { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError("Timeout exceeded when calling POST /products."); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -361,7 +357,6 @@ export class Products { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -402,7 +397,7 @@ export class Products { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError("Timeout exceeded when calling GET /products/{product_id}."); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -444,7 +439,6 @@ export class Products { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -485,7 +479,7 @@ export class Products { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError("Timeout exceeded when calling DELETE /products/{product_id}."); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -532,7 +526,6 @@ export class Products { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -574,7 +567,7 @@ export class Products { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError("Timeout exceeded when calling PATCH /products/{product_id}."); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, diff --git a/src/api/resources/projects/client/Client.ts b/src/api/resources/projects/client/Client.ts index fd6ee71..120f111 100644 --- a/src/api/resources/projects/client/Client.ts +++ b/src/api/resources/projects/client/Client.ts @@ -30,8 +30,6 @@ export declare namespace Projects { moniteVersion?: string; /** Override the x-monite-entity-id header */ moniteEntityId?: string | undefined; - /** Additional headers to include in the request. */ - headers?: Record; } } @@ -201,7 +199,6 @@ export class Projects { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", queryParameters: _queryParams, @@ -245,7 +242,7 @@ export class Projects { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError("Timeout exceeded when calling GET /projects."); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -293,7 +290,6 @@ export class Projects { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -333,7 +329,7 @@ export class Projects { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError("Timeout exceeded when calling POST /projects."); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -377,7 +373,6 @@ export class Projects { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -418,7 +413,7 @@ export class Projects { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError("Timeout exceeded when calling GET /projects/{project_id}."); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -462,7 +457,6 @@ export class Projects { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -503,7 +497,7 @@ export class Projects { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError("Timeout exceeded when calling DELETE /projects/{project_id}."); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -552,7 +546,6 @@ export class Projects { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -594,7 +587,7 @@ export class Projects { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError("Timeout exceeded when calling PATCH /projects/{project_id}."); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, diff --git a/src/api/resources/purchaseOrders/client/Client.ts b/src/api/resources/purchaseOrders/client/Client.ts index f3ccef9..9e02657 100644 --- a/src/api/resources/purchaseOrders/client/Client.ts +++ b/src/api/resources/purchaseOrders/client/Client.ts @@ -30,8 +30,6 @@ export declare namespace PurchaseOrders { moniteVersion?: string; /** Override the x-monite-entity-id header */ moniteEntityId?: string | undefined; - /** Additional headers to include in the request. */ - headers?: Record; } } @@ -213,7 +211,6 @@ export class PurchaseOrders { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", queryParameters: _queryParams, @@ -251,7 +248,7 @@ export class PurchaseOrders { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError("Timeout exceeded when calling GET /payable_purchase_orders."); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -307,7 +304,6 @@ export class PurchaseOrders { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -345,7 +341,7 @@ export class PurchaseOrders { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError("Timeout exceeded when calling POST /payable_purchase_orders."); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -385,7 +381,6 @@ export class PurchaseOrders { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -420,9 +415,7 @@ export class PurchaseOrders { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling GET /payable_purchase_orders/variables." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -465,7 +458,6 @@ export class PurchaseOrders { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -502,9 +494,7 @@ export class PurchaseOrders { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling GET /payable_purchase_orders/{purchase_order_id}." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -544,7 +534,6 @@ export class PurchaseOrders { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -581,9 +570,7 @@ export class PurchaseOrders { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling DELETE /payable_purchase_orders/{purchase_order_id}." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -628,7 +615,6 @@ export class PurchaseOrders { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -666,9 +652,7 @@ export class PurchaseOrders { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling PATCH /payable_purchase_orders/{purchase_order_id}." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -718,7 +702,6 @@ export class PurchaseOrders { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -760,9 +743,7 @@ export class PurchaseOrders { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling POST /payable_purchase_orders/{purchase_order_id}/preview." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -813,7 +794,6 @@ export class PurchaseOrders { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -857,9 +837,7 @@ export class PurchaseOrders { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling POST /payable_purchase_orders/{purchase_order_id}/send." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, diff --git a/src/api/resources/receivables/client/Client.ts b/src/api/resources/receivables/client/Client.ts index 551a95f..ecdc8c6 100644 --- a/src/api/resources/receivables/client/Client.ts +++ b/src/api/resources/receivables/client/Client.ts @@ -30,8 +30,6 @@ export declare namespace Receivables { moniteVersion?: string; /** Override the x-monite-entity-id header */ moniteEntityId?: string | undefined; - /** Additional headers to include in the request. */ - headers?: Record; } } @@ -347,7 +345,6 @@ export class Receivables { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", queryParameters: _queryParams, @@ -389,7 +386,7 @@ export class Receivables { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError("Timeout exceeded when calling GET /receivables."); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -443,7 +440,6 @@ export class Receivables { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -487,7 +483,7 @@ export class Receivables { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError("Timeout exceeded when calling POST /receivables."); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -530,7 +526,6 @@ export class Receivables { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -567,7 +562,7 @@ export class Receivables { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError("Timeout exceeded when calling GET /receivables/variables."); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -612,7 +607,6 @@ export class Receivables { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -653,7 +647,7 @@ export class Receivables { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError("Timeout exceeded when calling GET /receivables/{receivable_id}."); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -696,7 +690,6 @@ export class Receivables { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -739,9 +732,7 @@ export class Receivables { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling DELETE /receivables/{receivable_id}." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -791,7 +782,6 @@ export class Receivables { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -835,9 +825,7 @@ export class Receivables { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling PATCH /receivables/{receivable_id}." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -885,7 +873,6 @@ export class Receivables { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -929,9 +916,7 @@ export class Receivables { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling POST /receivables/{receivable_id}/accept." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -974,7 +959,6 @@ export class Receivables { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -1017,9 +1001,7 @@ export class Receivables { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling POST /receivables/{receivable_id}/cancel." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -1065,7 +1047,6 @@ export class Receivables { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -1108,9 +1089,7 @@ export class Receivables { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling POST /receivables/{receivable_id}/clone." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -1158,7 +1137,6 @@ export class Receivables { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -1202,9 +1180,7 @@ export class Receivables { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling POST /receivables/{receivable_id}/decline." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -1312,7 +1288,6 @@ export class Receivables { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", queryParameters: _queryParams, @@ -1354,9 +1329,7 @@ export class Receivables { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling GET /receivables/{receivable_id}/history." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -1403,7 +1376,6 @@ export class Receivables { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -1444,9 +1416,7 @@ export class Receivables { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling GET /receivables/{receivable_id}/history/{receivable_history_id}." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -1492,7 +1462,6 @@ export class Receivables { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -1535,9 +1504,7 @@ export class Receivables { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling POST /receivables/{receivable_id}/issue." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -1591,7 +1558,6 @@ export class Receivables { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -1635,9 +1601,7 @@ export class Receivables { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling PUT /receivables/{receivable_id}/line_items." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -1741,7 +1705,6 @@ export class Receivables { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", queryParameters: _queryParams, @@ -1783,9 +1746,7 @@ export class Receivables { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling GET /receivables/{receivable_id}/mails." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -1832,7 +1793,6 @@ export class Receivables { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -1873,9 +1833,7 @@ export class Receivables { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling GET /receivables/{receivable_id}/mails/{mail_id}." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -1923,7 +1881,6 @@ export class Receivables { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -1967,9 +1924,7 @@ export class Receivables { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling POST /receivables/{receivable_id}/mark_as_paid." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -2021,7 +1976,6 @@ export class Receivables { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -2065,9 +2019,7 @@ export class Receivables { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling POST /receivables/{receivable_id}/mark_as_partially_paid." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -2115,7 +2067,6 @@ export class Receivables { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -2159,9 +2110,7 @@ export class Receivables { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling POST /receivables/{receivable_id}/mark_as_uncollectible." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -2206,7 +2155,6 @@ export class Receivables { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -2247,9 +2195,7 @@ export class Receivables { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling GET /receivables/{receivable_id}/pdf_link." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -2299,7 +2245,6 @@ export class Receivables { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -2341,9 +2286,7 @@ export class Receivables { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling POST /receivables/{receivable_id}/preview." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -2394,7 +2337,6 @@ export class Receivables { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -2438,9 +2380,7 @@ export class Receivables { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling POST /receivables/{receivable_id}/send." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -2490,7 +2430,6 @@ export class Receivables { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -2534,9 +2473,7 @@ export class Receivables { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling POST /receivables/{receivable_id}/send_test_reminder." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -2581,7 +2518,6 @@ export class Receivables { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -2622,9 +2558,7 @@ export class Receivables { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling POST /receivables/{receivable_id}/verify." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, diff --git a/src/api/resources/recurrences/client/Client.ts b/src/api/resources/recurrences/client/Client.ts index d59787b..3d93035 100644 --- a/src/api/resources/recurrences/client/Client.ts +++ b/src/api/resources/recurrences/client/Client.ts @@ -30,8 +30,6 @@ export declare namespace Recurrences { moniteVersion?: string; /** Override the x-monite-entity-id header */ moniteEntityId?: string | undefined; - /** Additional headers to include in the request. */ - headers?: Record; } } @@ -71,7 +69,6 @@ export class Recurrences { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -112,7 +109,7 @@ export class Recurrences { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError("Timeout exceeded when calling GET /recurrences."); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -164,7 +161,6 @@ export class Recurrences { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -206,7 +202,7 @@ export class Recurrences { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError("Timeout exceeded when calling POST /recurrences."); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -251,7 +247,6 @@ export class Recurrences { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -292,7 +287,7 @@ export class Recurrences { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError("Timeout exceeded when calling GET /recurrences/{recurrence_id}."); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -339,7 +334,6 @@ export class Recurrences { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -381,9 +375,7 @@ export class Recurrences { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling PATCH /recurrences/{recurrence_id}." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -426,7 +418,6 @@ export class Recurrences { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -469,9 +460,7 @@ export class Recurrences { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling POST /recurrences/{recurrence_id}/cancel." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, diff --git a/src/api/resources/roles/client/Client.ts b/src/api/resources/roles/client/Client.ts index ecf65cc..1ab36d6 100644 --- a/src/api/resources/roles/client/Client.ts +++ b/src/api/resources/roles/client/Client.ts @@ -30,8 +30,6 @@ export declare namespace Roles { moniteVersion?: string; /** Override the x-monite-entity-id header */ moniteEntityId?: string | undefined; - /** Additional headers to include in the request. */ - headers?: Record; } } @@ -139,7 +137,6 @@ export class Roles { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", queryParameters: _queryParams, @@ -181,7 +178,7 @@ export class Roles { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError("Timeout exceeded when calling GET /roles."); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -228,7 +225,6 @@ export class Roles { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -264,7 +260,7 @@ export class Roles { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError("Timeout exceeded when calling POST /roles."); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -303,7 +299,6 @@ export class Roles { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -338,7 +333,7 @@ export class Roles { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError("Timeout exceeded when calling GET /roles/{role_id}."); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -384,7 +379,6 @@ export class Roles { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -420,7 +414,7 @@ export class Roles { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError("Timeout exceeded when calling PATCH /roles/{role_id}."); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, diff --git a/src/api/resources/tags/client/Client.ts b/src/api/resources/tags/client/Client.ts index 760e50c..f48898d 100644 --- a/src/api/resources/tags/client/Client.ts +++ b/src/api/resources/tags/client/Client.ts @@ -30,8 +30,6 @@ export declare namespace Tags { moniteVersion?: string; /** Override the x-monite-entity-id header */ moniteEntityId?: string | undefined; - /** Additional headers to include in the request. */ - headers?: Record; } } @@ -124,7 +122,6 @@ export class Tags { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", queryParameters: _queryParams, @@ -166,7 +163,7 @@ export class Tags { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError("Timeout exceeded when calling GET /tags."); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -220,7 +217,6 @@ export class Tags { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -264,7 +260,7 @@ export class Tags { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError("Timeout exceeded when calling POST /tags."); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -309,7 +305,6 @@ export class Tags { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -352,7 +347,7 @@ export class Tags { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError("Timeout exceeded when calling GET /tags/{tag_id}."); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -396,7 +391,6 @@ export class Tags { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -437,7 +431,7 @@ export class Tags { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError("Timeout exceeded when calling DELETE /tags/{tag_id}."); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -488,7 +482,6 @@ export class Tags { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -532,7 +525,7 @@ export class Tags { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError("Timeout exceeded when calling PATCH /tags/{tag_id}."); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, diff --git a/src/api/resources/textTemplates/client/Client.ts b/src/api/resources/textTemplates/client/Client.ts index 0fdde1f..666fc8b 100644 --- a/src/api/resources/textTemplates/client/Client.ts +++ b/src/api/resources/textTemplates/client/Client.ts @@ -30,8 +30,6 @@ export declare namespace TextTemplates { moniteVersion?: string; /** Override the x-monite-entity-id header */ moniteEntityId?: string | undefined; - /** Additional headers to include in the request. */ - headers?: Record; } } @@ -87,7 +85,6 @@ export class TextTemplates { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", queryParameters: _queryParams, @@ -121,7 +118,7 @@ export class TextTemplates { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError("Timeout exceeded when calling GET /text_templates."); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -169,7 +166,6 @@ export class TextTemplates { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -203,7 +199,7 @@ export class TextTemplates { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError("Timeout exceeded when calling POST /text_templates."); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -246,7 +242,6 @@ export class TextTemplates { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -279,9 +274,7 @@ export class TextTemplates { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling GET /text_templates/{text_template_id}." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -321,7 +314,6 @@ export class TextTemplates { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -354,9 +346,7 @@ export class TextTemplates { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling DELETE /text_templates/{text_template_id}." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -401,7 +391,6 @@ export class TextTemplates { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -435,9 +424,7 @@ export class TextTemplates { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling PATCH /text_templates/{text_template_id}." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -480,7 +467,6 @@ export class TextTemplates { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -513,9 +499,7 @@ export class TextTemplates { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling POST /text_templates/{text_template_id}/make_default." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, diff --git a/src/api/resources/vatRates/client/Client.ts b/src/api/resources/vatRates/client/Client.ts index 72b235a..62291e0 100644 --- a/src/api/resources/vatRates/client/Client.ts +++ b/src/api/resources/vatRates/client/Client.ts @@ -30,8 +30,6 @@ export declare namespace VatRates { moniteVersion?: string; /** Override the x-monite-entity-id header */ moniteEntityId?: string | undefined; - /** Additional headers to include in the request. */ - headers?: Record; } } @@ -103,7 +101,6 @@ export class VatRates { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", queryParameters: _queryParams, @@ -145,7 +142,7 @@ export class VatRates { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError("Timeout exceeded when calling GET /vat_rates."); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, diff --git a/src/api/resources/webhookDeliveries/client/Client.ts b/src/api/resources/webhookDeliveries/client/Client.ts index 389ffdb..99ed3ce 100644 --- a/src/api/resources/webhookDeliveries/client/Client.ts +++ b/src/api/resources/webhookDeliveries/client/Client.ts @@ -30,8 +30,6 @@ export declare namespace WebhookDeliveries { moniteVersion?: string; /** Override the x-monite-entity-id header */ moniteEntityId?: string | undefined; - /** Additional headers to include in the request. */ - headers?: Record; } } @@ -135,7 +133,6 @@ export class WebhookDeliveries { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", queryParameters: _queryParams, @@ -169,7 +166,7 @@ export class WebhookDeliveries { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError("Timeout exceeded when calling GET /webhook_deliveries."); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, diff --git a/src/api/resources/webhookSubscriptions/client/Client.ts b/src/api/resources/webhookSubscriptions/client/Client.ts index bde61e6..a7ecae2 100644 --- a/src/api/resources/webhookSubscriptions/client/Client.ts +++ b/src/api/resources/webhookSubscriptions/client/Client.ts @@ -30,8 +30,6 @@ export declare namespace WebhookSubscriptions { moniteVersion?: string; /** Override the x-monite-entity-id header */ moniteEntityId?: string | undefined; - /** Additional headers to include in the request. */ - headers?: Record; } } @@ -119,7 +117,6 @@ export class WebhookSubscriptions { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", queryParameters: _queryParams, @@ -153,7 +150,7 @@ export class WebhookSubscriptions { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError("Timeout exceeded when calling GET /webhook_subscriptions."); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -197,7 +194,6 @@ export class WebhookSubscriptions { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -231,7 +227,7 @@ export class WebhookSubscriptions { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError("Timeout exceeded when calling POST /webhook_subscriptions."); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -272,7 +268,6 @@ export class WebhookSubscriptions { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -305,9 +300,7 @@ export class WebhookSubscriptions { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling GET /webhook_subscriptions/{webhook_subscription_id}." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -348,7 +341,6 @@ export class WebhookSubscriptions { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -381,9 +373,7 @@ export class WebhookSubscriptions { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling DELETE /webhook_subscriptions/{webhook_subscription_id}." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -426,7 +416,6 @@ export class WebhookSubscriptions { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -460,9 +449,7 @@ export class WebhookSubscriptions { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling PATCH /webhook_subscriptions/{webhook_subscription_id}." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -503,7 +490,6 @@ export class WebhookSubscriptions { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -536,9 +522,7 @@ export class WebhookSubscriptions { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling POST /webhook_subscriptions/{webhook_subscription_id}/disable." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -579,7 +563,6 @@ export class WebhookSubscriptions { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -612,9 +595,7 @@ export class WebhookSubscriptions { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling POST /webhook_subscriptions/{webhook_subscription_id}/enable." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, @@ -655,7 +636,6 @@ export class WebhookSubscriptions { "User-Agent": "monite/0.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", @@ -688,9 +668,7 @@ export class WebhookSubscriptions { body: _response.error.rawBody, }); case "timeout": - throw new errors.MoniteTimeoutError( - "Timeout exceeded when calling POST /webhook_subscriptions/{webhook_subscription_id}/regenerate_secret." - ); + throw new errors.MoniteTimeoutError(); case "unknown": throw new errors.MoniteError({ message: _response.error.errorMessage, diff --git a/src/core/fetcher/Fetcher.ts b/src/core/fetcher/Fetcher.ts index b8f2371..d67bc04 100644 --- a/src/core/fetcher/Fetcher.ts +++ b/src/core/fetcher/Fetcher.ts @@ -21,7 +21,7 @@ export declare namespace Fetcher { withCredentials?: boolean; abortSignal?: AbortSignal; requestType?: "json" | "file" | "bytes"; - responseType?: "json" | "blob" | "sse" | "streaming" | "text" | "arrayBuffer"; + responseType?: "json" | "blob" | "sse" | "streaming" | "text"; duplex?: "half"; } diff --git a/src/core/fetcher/getResponseBody.ts b/src/core/fetcher/getResponseBody.ts index d046e6e..a7a9c50 100644 --- a/src/core/fetcher/getResponseBody.ts +++ b/src/core/fetcher/getResponseBody.ts @@ -3,8 +3,6 @@ import { chooseStreamWrapper } from "./stream-wrappers/chooseStreamWrapper"; export async function getResponseBody(response: Response, responseType?: string): Promise { if (response.body != null && responseType === "blob") { return await response.blob(); - } else if (response.body != null && responseType === "arrayBuffer") { - return await response.arrayBuffer(); } else if (response.body != null && responseType === "sse") { return response.body; } else if (response.body != null && responseType === "streaming") { diff --git a/src/core/fetcher/requestWithRetries.ts b/src/core/fetcher/requestWithRetries.ts index 8d5af9d..ff5dc3b 100644 --- a/src/core/fetcher/requestWithRetries.ts +++ b/src/core/fetcher/requestWithRetries.ts @@ -1,13 +1,6 @@ -const INITIAL_RETRY_DELAY = 1000; // in milliseconds -const MAX_RETRY_DELAY = 60000; // in milliseconds +const INITIAL_RETRY_DELAY = 1; +const MAX_RETRY_DELAY = 60; const DEFAULT_MAX_RETRIES = 2; -const JITTER_FACTOR = 0.2; // 20% random jitter - -function addJitter(delay: number): number { - // Generate a random value between -JITTER_FACTOR and +JITTER_FACTOR - const jitterMultiplier = 1 + (Math.random() * 2 - 1) * JITTER_FACTOR; - return delay * jitterMultiplier; -} export async function requestWithRetries( requestFn: () => Promise, @@ -17,13 +10,8 @@ export async function requestWithRetries( for (let i = 0; i < maxRetries; ++i) { if ([408, 409, 429].includes(response.status) || response.status >= 500) { - // Calculate base delay using exponential backoff (in milliseconds) - const baseDelay = Math.min(INITIAL_RETRY_DELAY * Math.pow(2, i), MAX_RETRY_DELAY); - - // Add jitter to the delay - const delayWithJitter = addJitter(baseDelay); - - await new Promise((resolve) => setTimeout(resolve, delayWithJitter)); + const delay = Math.min(INITIAL_RETRY_DELAY * Math.pow(2, i), MAX_RETRY_DELAY); + await new Promise((resolve) => setTimeout(resolve, delay)); response = await requestFn(); } else { break; diff --git a/src/errors/MoniteTimeoutError.ts b/src/errors/MoniteTimeoutError.ts index 09ee823..92e1de8 100644 --- a/src/errors/MoniteTimeoutError.ts +++ b/src/errors/MoniteTimeoutError.ts @@ -3,8 +3,8 @@ */ export class MoniteTimeoutError extends Error { - constructor(message: string) { - super(message); + constructor() { + super("Timeout"); Object.setPrototypeOf(this, MoniteTimeoutError.prototype); } } diff --git a/tests/unit/fetcher/Fetcher.test.ts b/tests/unit/fetcher/Fetcher.test.ts index ff80421..0e14a8c 100644 --- a/tests/unit/fetcher/Fetcher.test.ts +++ b/tests/unit/fetcher/Fetcher.test.ts @@ -1,6 +1,5 @@ -import fs from "fs"; +import fetchMock from "fetch-mock-jest"; import { Fetcher, fetcherImpl } from "../../../src/core/fetcher/Fetcher"; -import { join } from "path"; describe("Test fetcherImpl", () => { it("should handle successful request", async () => { @@ -13,11 +12,8 @@ describe("Test fetcherImpl", () => { requestType: "json", }; - global.fetch = jest.fn().mockResolvedValue({ - ok: true, - status: 200, - text: () => Promise.resolve(JSON.stringify({ data: "test" })), - json: () => ({ data: "test" }), + fetchMock.mock("https://httpbin.org/post", 200, { + response: JSON.stringify({ data: "test" }), }); const result = await fetcherImpl(mockArgs); @@ -25,49 +21,5 @@ describe("Test fetcherImpl", () => { if (result.ok) { expect(result.body).toEqual({ data: "test" }); } - - expect(global.fetch).toHaveBeenCalledWith( - "https://httpbin.org/post", - expect.objectContaining({ - method: "POST", - headers: expect.objectContaining({ "X-Test": "x-test-header" }), - body: JSON.stringify({ data: "test" }), - }) - ); - }); - - it("should send octet stream", async () => { - const url = "https://httpbin.org/post/file"; - const mockArgs: Fetcher.Args = { - url, - method: "POST", - headers: { "X-Test": "x-test-header" }, - contentType: "application/octet-stream", - requestType: "bytes", - duplex: "half", - body: fs.createReadStream(join(__dirname, "test-file.txt")), - }; - - global.fetch = jest.fn().mockResolvedValue({ - ok: true, - status: 200, - text: () => Promise.resolve(JSON.stringify({ data: "test" })), - json: () => Promise.resolve({ data: "test" }), - }); - - const result = await fetcherImpl(mockArgs); - - expect(global.fetch).toHaveBeenCalledWith( - url, - expect.objectContaining({ - method: "POST", - headers: expect.objectContaining({ "X-Test": "x-test-header" }), - body: expect.any(fs.ReadStream), - }) - ); - expect(result.ok).toBe(true); - if (result.ok) { - expect(result.body).toEqual({ data: "test" }); - } }); }); diff --git a/tests/unit/fetcher/getRequestBody.test.ts b/tests/unit/fetcher/getRequestBody.test.ts index 919604c..1b1462c 100644 --- a/tests/unit/fetcher/getRequestBody.test.ts +++ b/tests/unit/fetcher/getRequestBody.test.ts @@ -1,6 +1,10 @@ import { RUNTIME } from "../../../src/core/runtime"; import { getRequestBody } from "../../../src/core/fetcher/getRequestBody"; +if (RUNTIME.type === "browser") { + require("jest-fetch-mock").enableMocks(); +} + describe("Test getRequestBody", () => { it("should return FormData as is in Node environment", async () => { if (RUNTIME.type === "node") { diff --git a/tests/unit/fetcher/getResponseBody.test.ts b/tests/unit/fetcher/getResponseBody.test.ts index 1030c51..3510779 100644 --- a/tests/unit/fetcher/getResponseBody.test.ts +++ b/tests/unit/fetcher/getResponseBody.test.ts @@ -2,6 +2,10 @@ import { RUNTIME } from "../../../src/core/runtime"; import { getResponseBody } from "../../../src/core/fetcher/getResponseBody"; import { chooseStreamWrapper } from "../../../src/core/fetcher/stream-wrappers/chooseStreamWrapper"; +if (RUNTIME.type === "browser") { + require("jest-fetch-mock").enableMocks(); +} + describe("Test getResponseBody", () => { it("should handle blob response type", async () => { const mockBlob = new Blob(["test"], { type: "text/plain" }); diff --git a/tests/unit/fetcher/makeRequest.test.ts b/tests/unit/fetcher/makeRequest.test.ts index be94ab4..5969d51 100644 --- a/tests/unit/fetcher/makeRequest.test.ts +++ b/tests/unit/fetcher/makeRequest.test.ts @@ -1,6 +1,10 @@ import { RUNTIME } from "../../../src/core/runtime"; import { makeRequest } from "../../../src/core/fetcher/makeRequest"; +if (RUNTIME.type === "browser") { + require("jest-fetch-mock").enableMocks(); +} + describe("Test makeRequest", () => { const mockPostUrl = "https://httpbin.org/post"; const mockGetUrl = "https://httpbin.org/get"; diff --git a/tests/unit/fetcher/requestWithRetries.test.ts b/tests/unit/fetcher/requestWithRetries.test.ts index 6f77f09..b53e043 100644 --- a/tests/unit/fetcher/requestWithRetries.test.ts +++ b/tests/unit/fetcher/requestWithRetries.test.ts @@ -1,133 +1,85 @@ import { RUNTIME } from "../../../src/core/runtime"; import { requestWithRetries } from "../../../src/core/fetcher/requestWithRetries"; -describe("requestWithRetries", () => { +if (RUNTIME.type === "browser") { + require("jest-fetch-mock").enableMocks(); +} + +describe("Test exponential backoff", () => { let mockFetch: jest.Mock; - let originalMathRandom: typeof Math.random; - let setTimeoutSpy: jest.SpyInstance; + let originalSetTimeout: typeof setTimeout; beforeEach(() => { mockFetch = jest.fn(); - originalMathRandom = Math.random; - - // Mock Math.random for consistent jitter - Math.random = jest.fn(() => 0.5); - - jest.useFakeTimers({ doNotFake: ["nextTick"] }); + originalSetTimeout = global.setTimeout; + jest.useFakeTimers(); }); afterEach(() => { - Math.random = originalMathRandom; - jest.clearAllMocks(); - jest.clearAllTimers(); + jest.useRealTimers(); + global.setTimeout = originalSetTimeout; }); - it("should retry on retryable status codes", async () => { - setTimeoutSpy = jest.spyOn(global, "setTimeout").mockImplementation((callback) => { - process.nextTick(callback); - return null as any; - }); - - const retryableStatuses = [408, 409, 429, 500, 502]; - let callCount = 0; + it("should retry on 408, 409, 429, 500+", async () => { + mockFetch + .mockResolvedValueOnce(new Response("", { status: 408 })) + .mockResolvedValueOnce(new Response("", { status: 409 })) + .mockResolvedValueOnce(new Response("", { status: 429 })) + .mockResolvedValueOnce(new Response("", { status: 500 })) + .mockResolvedValueOnce(new Response("", { status: 502 })) + .mockResolvedValueOnce(new Response("", { status: 200 })) + .mockResolvedValueOnce(new Response("", { status: 408 })); - mockFetch.mockImplementation(async () => { - if (callCount < retryableStatuses.length) { - return new Response("", { status: retryableStatuses[callCount++] }); - } - return new Response("", { status: 200 }); - }); + const responsePromise = requestWithRetries(() => mockFetch(), 10); - const responsePromise = requestWithRetries(() => mockFetch(), retryableStatuses.length); - await jest.runAllTimersAsync(); + await jest.advanceTimersByTimeAsync(10000); const response = await responsePromise; - expect(mockFetch).toHaveBeenCalledTimes(retryableStatuses.length + 1); + expect(mockFetch).toHaveBeenCalledTimes(6); expect(response.status).toBe(200); }); - it("should respect maxRetries limit", async () => { - setTimeoutSpy = jest.spyOn(global, "setTimeout").mockImplementation((callback) => { - process.nextTick(callback); - return null as any; - }); + it("should retry max 3 times", async () => { + mockFetch + .mockResolvedValueOnce(new Response("", { status: 408 })) + .mockResolvedValueOnce(new Response("", { status: 409 })) + .mockResolvedValueOnce(new Response("", { status: 429 })) + .mockResolvedValueOnce(new Response("", { status: 429 })); - const maxRetries = 2; - mockFetch.mockResolvedValue(new Response("", { status: 500 })); + const responsePromise = requestWithRetries(() => mockFetch(), 3); - const responsePromise = requestWithRetries(() => mockFetch(), maxRetries); - await jest.runAllTimersAsync(); + await jest.advanceTimersByTimeAsync(10000); const response = await responsePromise; - expect(mockFetch).toHaveBeenCalledTimes(maxRetries + 1); - expect(response.status).toBe(500); + expect(mockFetch).toHaveBeenCalledTimes(4); + expect(response.status).toBe(429); }); + it("should not retry on 200", async () => { + mockFetch + .mockResolvedValueOnce(new Response("", { status: 200 })) + .mockResolvedValueOnce(new Response("", { status: 409 })); - it("should not retry on success status codes", async () => { - setTimeoutSpy = jest.spyOn(global, "setTimeout").mockImplementation((callback) => { - process.nextTick(callback); - return null as any; - }); - - const successStatuses = [200, 201, 202]; - - for (const status of successStatuses) { - mockFetch.mockReset(); - setTimeoutSpy.mockClear(); - mockFetch.mockResolvedValueOnce(new Response("", { status })); + const responsePromise = requestWithRetries(() => mockFetch(), 3); - const responsePromise = requestWithRetries(() => mockFetch(), 3); - await jest.runAllTimersAsync(); - await responsePromise; + await jest.advanceTimersByTimeAsync(10000); + const response = await responsePromise; - expect(mockFetch).toHaveBeenCalledTimes(1); - expect(setTimeoutSpy).not.toHaveBeenCalled(); - } + expect(mockFetch).toHaveBeenCalledTimes(1); + expect(response.status).toBe(200); }); - it("should apply correct exponential backoff with jitter", async () => { - setTimeoutSpy = jest.spyOn(global, "setTimeout").mockImplementation((callback) => { - process.nextTick(callback); - return null as any; - }); - + it("should retry with exponential backoff timing", async () => { mockFetch.mockResolvedValue(new Response("", { status: 500 })); - const maxRetries = 3; - const expectedDelays = [1000, 2000, 4000]; - + const maxRetries = 7; const responsePromise = requestWithRetries(() => mockFetch(), maxRetries); - await jest.runAllTimersAsync(); - await responsePromise; - - // Verify setTimeout calls - expect(setTimeoutSpy).toHaveBeenCalledTimes(expectedDelays.length); + expect(mockFetch).toHaveBeenCalledTimes(1); - expectedDelays.forEach((delay, index) => { - expect(setTimeoutSpy).toHaveBeenNthCalledWith(index + 1, expect.any(Function), delay); - }); - - expect(mockFetch).toHaveBeenCalledTimes(maxRetries + 1); - }); - - it("should handle concurrent retries independently", async () => { - setTimeoutSpy = jest.spyOn(global, "setTimeout").mockImplementation((callback) => { - process.nextTick(callback); - return null as any; - }); - - mockFetch - .mockResolvedValueOnce(new Response("", { status: 500 })) - .mockResolvedValueOnce(new Response("", { status: 500 })) - .mockResolvedValueOnce(new Response("", { status: 200 })) - .mockResolvedValueOnce(new Response("", { status: 200 })); - - const promise1 = requestWithRetries(() => mockFetch(), 1); - const promise2 = requestWithRetries(() => mockFetch(), 1); - - await jest.runAllTimersAsync(); - const [response1, response2] = await Promise.all([promise1, promise2]); - - expect(response1.status).toBe(200); - expect(response2.status).toBe(200); + const delays = [1, 2, 4, 8, 16, 32, 64]; + for (let i = 0; i < delays.length; i++) { + await jest.advanceTimersByTimeAsync(delays[i] as number); + expect(mockFetch).toHaveBeenCalledTimes(Math.min(i + 2, maxRetries + 1)); + } + const response = await responsePromise; + expect(response.status).toBe(500); }); }); diff --git a/tests/unit/fetcher/test-file.txt b/tests/unit/fetcher/test-file.txt deleted file mode 100644 index c66d471..0000000 --- a/tests/unit/fetcher/test-file.txt +++ /dev/null @@ -1 +0,0 @@ -This is a test file! diff --git a/yarn.lock b/yarn.lock index b2acded..4e99a42 100644 --- a/yarn.lock +++ b/yarn.lock @@ -24,7 +24,7 @@ resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.26.3.tgz#99488264a56b2aded63983abd6a417f03b92ed02" integrity sha512-nHIxvKPniQXpmQLb0vhY3VaFb3S0YrTAwpOWJZh1wn3oJPjJk9Asva204PsBdmAE8vpzfHudT8DB0scYvy9q0g== -"@babel/core@^7.11.6", "@babel/core@^7.12.3", "@babel/core@^7.23.9": +"@babel/core@^7.0.0", "@babel/core@^7.11.6", "@babel/core@^7.12.3", "@babel/core@^7.23.9": version "7.26.0" resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.26.0.tgz#d78b6023cc8f3114ccf049eb219613f74a747b40" integrity sha512-i1SLeK+DzNnQ3LL/CswPCa/E5u4lh1k6IAEphON8F+cXt0t9euTshDru0q7/IqMa1PMPz5RnHuHscF8/ZJsStg== @@ -238,6 +238,13 @@ dependencies: "@babel/helper-plugin-utils" "^7.25.9" +"@babel/runtime@^7.0.0": + version "7.26.0" + resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.26.0.tgz#8600c2f595f277c60815256418b85356a65173c1" + integrity sha512-FDSOghenHTiToteC/QRlv2q3DhPZ/oOXTBoirfWNx1Cx3TMVcGWQtMMmQcSvb/JjpNeGzx8Pq/b4fKEJuWm1sw== + dependencies: + regenerator-runtime "^0.14.0" + "@babel/template@^7.25.9", "@babel/template@^7.3.3": version "7.25.9" resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.25.9.tgz#ecb62d81a8a6f5dc5fe8abfc3901fc52ddf15016" @@ -248,9 +255,9 @@ "@babel/types" "^7.25.9" "@babel/traverse@^7.25.9": - version "7.26.3" - resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.26.3.tgz#1ebfc75bd748d8f96b3cc63af5e82ebd4c37ba35" - integrity sha512-yTmc8J+Sj8yLzwr4PD5Xb/WF3bOYu2C2OoSZPzbuqRm4n98XirsbzaX+GloeO376UnSYIYJ4NCanwV5/ugZkwA== + version "7.26.4" + resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.26.4.tgz#ac3a2a84b908dde6d463c3bfa2c5fdc1653574bd" + integrity sha512-fH+b7Y4p3yqvApJALCPJcwb0/XaOSgtK4pzV6WVjPR5GLFQBRI7pfoX2V2iM48NXvX07NUxxm1Vw98YjqTcU5w== dependencies: "@babel/code-frame" "^7.26.2" "@babel/generator" "^7.26.3" @@ -482,9 +489,9 @@ chalk "^4.0.0" "@jridgewell/gen-mapping@^0.3.5": - version "0.3.5" - resolved "https://registry.yarnpkg.com/@jridgewell/gen-mapping/-/gen-mapping-0.3.5.tgz#dcce6aff74bdf6dad1a95802b69b04a2fcb1fb36" - integrity sha512-IzL8ZoEDIBRWEzlCcRhOaCupYyN5gdIK+Q6fbFdPDg6HqX6jpkItn7DFIpW9LQzXG6Df9sA7+OKnq0qlz/GaQg== + version "0.3.8" + resolved "https://registry.yarnpkg.com/@jridgewell/gen-mapping/-/gen-mapping-0.3.8.tgz#4f0e06362e01362f823d348f1872b08f666d8142" + integrity sha512-imAbBGkb+ebQyxKgzv5Hu2nmROxoDOXHh80evxdoXNOrvAnVx7zimzc1Oo5h9RlfV4vPXaE2iM5pOFbvOCClWA== dependencies: "@jridgewell/set-array" "^1.2.1" "@jridgewell/sourcemap-codec" "^1.4.10" @@ -513,7 +520,7 @@ resolved "https://registry.yarnpkg.com/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.0.tgz#3188bcb273a414b0d215fd22a58540b989b9409a" integrity sha512-gv3ZRaISU3fjPAgNsriBRqGWQL6quFx04YMPW/zD8XMLsU32mhCCbfbO6KZFLjvYpCZ8zyDEgqsgf+PwPaM7GQ== -"@jridgewell/trace-mapping@^0.3.12", "@jridgewell/trace-mapping@^0.3.18", "@jridgewell/trace-mapping@^0.3.20", "@jridgewell/trace-mapping@^0.3.24", "@jridgewell/trace-mapping@^0.3.25": +"@jridgewell/trace-mapping@^0.3.12", "@jridgewell/trace-mapping@^0.3.18", "@jridgewell/trace-mapping@^0.3.24", "@jridgewell/trace-mapping@^0.3.25": version "0.3.25" resolved "https://registry.yarnpkg.com/@jridgewell/trace-mapping/-/trace-mapping-0.3.25.tgz#15f190e98895f3fc23276ee14bc76b675c2e50f0" integrity sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ== @@ -642,7 +649,7 @@ "@types/tough-cookie" "*" parse5 "^7.0.0" -"@types/json-schema@*", "@types/json-schema@^7.0.8": +"@types/json-schema@*", "@types/json-schema@^7.0.8", "@types/json-schema@^7.0.9": version "7.0.15" resolved "https://registry.yarnpkg.com/@types/json-schema/-/json-schema-7.0.15.tgz#596a1747233694d50f6ad8a7869fcb6f56cf5841" integrity sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA== @@ -656,9 +663,9 @@ form-data "^4.0.0" "@types/node@*": - version "22.10.1" - resolved "https://registry.yarnpkg.com/@types/node/-/node-22.10.1.tgz#41ffeee127b8975a05f8c4f83fb89bcb2987d766" - integrity sha512-qKgsUwfHZV2WCWLAnVP1JqnpE6Im6h3Y0+fYgMTasNQ7V++CBX5OT1as0g0f+OyubbFqhf6XVNIsmN4IIhEgGQ== + version "22.10.5" + resolved "https://registry.yarnpkg.com/@types/node/-/node-22.10.5.tgz#95af89a3fb74a2bb41ef9927f206e6472026e48b" + integrity sha512-F8Q+SeGimwOo86fiovQh8qiXfFEh2/ocYv7tU5pJ3EXMSSxk1Joj5wefpFK2fHTf/N6HKGSxIDBT9f3gCxXPkQ== dependencies: undici-types "~6.20.0" @@ -877,11 +884,25 @@ agent-base@6: dependencies: debug "4" +ajv-formats@^2.1.1: + version "2.1.1" + resolved "https://registry.yarnpkg.com/ajv-formats/-/ajv-formats-2.1.1.tgz#6e669400659eb74973bbf2e33327180a0996b520" + integrity sha512-Wx0Kx52hxE7C18hkMEggYlEifqWZtYaRgouJor+WMdPnQyEK13vgEWyVNup7SoeeoLMsr4kf5h6dOW11I15MUA== + dependencies: + ajv "^8.0.0" + ajv-keywords@^3.5.2: version "3.5.2" resolved "https://registry.yarnpkg.com/ajv-keywords/-/ajv-keywords-3.5.2.tgz#31f29da5ab6e00d1c2d329acf7b5929614d5014d" integrity sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ== +ajv-keywords@^5.1.0: + version "5.1.0" + resolved "https://registry.yarnpkg.com/ajv-keywords/-/ajv-keywords-5.1.0.tgz#69d4d385a4733cdbeab44964a1170a88f87f0e16" + integrity sha512-YCS/JNFAUyr5vAuhk1DWm1CBxRHW9LbJ2ozWeemrIqpbsqKjHVxYPyi5GC0rjZIT5JxJ3virVTS8wk4i/Z+krw== + dependencies: + fast-deep-equal "^3.1.3" + ajv@^6.12.5: version "6.12.6" resolved "https://registry.yarnpkg.com/ajv/-/ajv-6.12.6.tgz#baf5a62e802b07d977034586f8c3baf5adf26df4" @@ -892,6 +913,16 @@ ajv@^6.12.5: json-schema-traverse "^0.4.1" uri-js "^4.2.2" +ajv@^8.0.0, ajv@^8.9.0: + version "8.17.1" + resolved "https://registry.yarnpkg.com/ajv/-/ajv-8.17.1.tgz#37d9a5c776af6bc92d7f4f9510eba4c0a60d11a6" + integrity sha512-B/gBuNg5SiMTrPkC+A2+cW0RszwxYmn6VYxB/inlBStS5nx6xHIt/ehKRhIMhqusl7a8LjQoZnjCs5vhwxOQ1g== + dependencies: + fast-deep-equal "^3.1.3" + fast-uri "^3.0.1" + json-schema-traverse "^1.0.0" + require-from-string "^2.0.2" + ansi-escapes@^4.2.1: version "4.3.2" resolved "https://registry.yarnpkg.com/ansi-escapes/-/ansi-escapes-4.3.2.tgz#6b2291d1db7d98b6521d5f1efa42d0f3a9feb65e" @@ -1025,13 +1056,13 @@ braces@^3.0.3: fill-range "^7.1.1" browserslist@^4.24.0: - version "4.24.2" - resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.24.2.tgz#f5845bc91069dbd55ee89faf9822e1d885d16580" - integrity sha512-ZIc+Q62revdMcqC6aChtW4jz3My3klmCO1fEmINZY/8J3EpBg5/A/D0AKmBveUh6pgoeycoMkVMko84tuYS+Gg== + version "4.24.3" + resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.24.3.tgz#5fc2725ca8fb3c1432e13dac278c7cc103e026d2" + integrity sha512-1CPmv8iobE2fyRMV97dAcMVegvvWKxmq94hkLiAkUGwKVTyDLw33K+ZxiFrREKmmps4rIw6grcCFCnTMSZ/YiA== dependencies: - caniuse-lite "^1.0.30001669" - electron-to-chromium "^1.5.41" - node-releases "^2.0.18" + caniuse-lite "^1.0.30001688" + electron-to-chromium "^1.5.73" + node-releases "^2.0.19" update-browserslist-db "^1.1.1" bs-logger@0.x: @@ -1061,16 +1092,21 @@ buffer@^6.0.3: base64-js "^1.3.1" ieee754 "^1.2.1" -call-bind@^1.0.7: - version "1.0.7" - resolved "https://registry.yarnpkg.com/call-bind/-/call-bind-1.0.7.tgz#06016599c40c56498c18769d2730be242b6fa3b9" - integrity sha512-GHTSNSYICQ7scH7sZ+M2rFopRoLh8t2bLSW6BbgrtLsahOIB5iyAVJf9GjWK3cYTDaMj4XdBpM1cA6pIS0Kv2w== +call-bind-apply-helpers@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.1.tgz#32e5892e6361b29b0b545ba6f7763378daca2840" + integrity sha512-BhYE+WDaywFg2TBWYNXAE+8B1ATnThNBqXHP5nQu0jWJdVvY2hvkpyB3qOmtmDePiS5/BDQ8wASEWGMWRG148g== dependencies: - es-define-property "^1.0.0" es-errors "^1.3.0" function-bind "^1.1.2" - get-intrinsic "^1.2.4" - set-function-length "^1.2.1" + +call-bound@^1.0.2: + version "1.0.3" + resolved "https://registry.yarnpkg.com/call-bound/-/call-bound-1.0.3.tgz#41cfd032b593e39176a71533ab4f384aa04fd681" + integrity sha512-YTd+6wGlNlPxSuri7Y6X8tY2dmm12UMH66RpKMhiX6rsk5wXXnYgbUcOt8kiS31/AjfoTOvCsE+w8nZQLQnzHA== + dependencies: + call-bind-apply-helpers "^1.0.1" + get-intrinsic "^1.2.6" callsites@^3.0.0: version "3.1.0" @@ -1087,10 +1123,10 @@ camelcase@^6.2.0: resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-6.3.0.tgz#5685b95eb209ac9c0c177467778c9c84df58ba9a" integrity sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA== -caniuse-lite@^1.0.30001669: - version "1.0.30001686" - resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001686.tgz#0e04b8d90de8753188e93c9989d56cb19d902670" - integrity sha512-Y7deg0Aergpa24M3qLC5xjNklnKnhsmSyR/V89dLZ1n0ucJIFNs7PgR2Yfa/Zf6W79SbBicgtGxZr2juHkEUIA== +caniuse-lite@^1.0.30001688: + version "1.0.30001690" + resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001690.tgz#f2d15e3aaf8e18f76b2b8c1481abde063b8104c8" + integrity sha512-5ExiE3qQN6oF8Clf8ifIDcMRCRE/dMGcETG/XGMD8/XiXm6HXQgQTh1yZYLXXpSOsEUlJm1Xr7kGULZTuGtP/w== chalk@^4.0.0, chalk@^4.1.0: version "4.1.2" @@ -1173,6 +1209,11 @@ convert-source-map@^2.0.0: resolved "https://registry.yarnpkg.com/convert-source-map/-/convert-source-map-2.0.0.tgz#4b560f649fc4e918dd0ab75cf4961e8bc882d82a" integrity sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg== +core-js@^3.0.0: + version "3.39.0" + resolved "https://registry.yarnpkg.com/core-js/-/core-js-3.39.0.tgz#57f7647f4d2d030c32a72ea23a0555b2eaa30f83" + integrity sha512-raM0ew0/jJUqkJ0E6e8UDtl+y/7ktFivgWvqw8dNSQeNWoSDLvQ1H/RN3aPXB9tBd4/FhyR4RDPGhsNIMsAn7g== + create-jest@^29.7.0: version "29.7.0" resolved "https://registry.yarnpkg.com/create-jest/-/create-jest-29.7.0.tgz#a355c5b3cb1e1af02ba177fe7afd7feee49a5320" @@ -1222,9 +1263,9 @@ 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.7" - resolved "https://registry.yarnpkg.com/debug/-/debug-4.3.7.tgz#87945b4151a011d76d95a198d7111c865c360a52" - integrity sha512-Er2nc/H7RrMXZBFCEim6TCmMk02Z8vLC2Rbi1KEBggpo0fS6l0S1nnapwmIi3yW/+GOJap1Krg4w0Hg80oCqgQ== + version "4.4.0" + resolved "https://registry.yarnpkg.com/debug/-/debug-4.4.0.tgz#2b3f2aea2ffeb776477460267377dc8710faba8a" + integrity sha512-6WTZ/IxCY/T6BALoZHaE4ctp9xm+Z5kY/pzYaCHRFeyVhojxlrm+46y68HA6hr0TcwEssoxNiDEUJQjfPZ/RYA== dependencies: ms "^2.1.3" @@ -1243,15 +1284,6 @@ deepmerge@^4.2.2: resolved "https://registry.yarnpkg.com/deepmerge/-/deepmerge-4.3.1.tgz#44b5f2147cd3b00d4b56137685966f26fd25dd4a" integrity sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A== -define-data-property@^1.1.4: - version "1.1.4" - resolved "https://registry.yarnpkg.com/define-data-property/-/define-data-property-1.1.4.tgz#894dc141bb7d3060ae4366f6a0107e68fbe48c5e" - integrity sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A== - dependencies: - es-define-property "^1.0.0" - es-errors "^1.3.0" - gopd "^1.0.1" - delayed-stream@~1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/delayed-stream/-/delayed-stream-1.0.0.tgz#df3ae199acadfb7d440aaae0b29e2272b24ec619" @@ -1274,10 +1306,19 @@ domexception@^4.0.0: dependencies: webidl-conversions "^7.0.0" -electron-to-chromium@^1.5.41: - version "1.5.70" - resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.5.70.tgz#8be2f92e54a3d069c0eefcf766a48bf0f78d93e0" - integrity sha512-P6FPqAWIZrC3sHDAwBitJBs7N7IF58m39XVny7DFseQXK2eiMn7nNQizFf63mWDDUnFvaqsM8FI0+ZZfLkdUGA== +dunder-proto@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/dunder-proto/-/dunder-proto-1.0.1.tgz#d7ae667e1dc83482f8b70fd0f6eefc50da30f58a" + integrity sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A== + dependencies: + call-bind-apply-helpers "^1.0.1" + es-errors "^1.3.0" + gopd "^1.2.0" + +electron-to-chromium@^1.5.73: + version "1.5.76" + resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.5.76.tgz#db20295c5061b68f07c8ea4dfcbd701485d94a3d" + integrity sha512-CjVQyG7n7Sr+eBXE86HIulnL5N8xZY1sgmOPGuq/F0Rr0FJq63lg0kEtOIDfZBk44FnDLf6FUJ+dsJcuiUDdDQ== emittery@^0.13.1: version "0.13.1" @@ -1290,9 +1331,9 @@ emoji-regex@^8.0.0: integrity sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A== enhanced-resolve@^5.0.0, enhanced-resolve@^5.17.1: - version "5.17.1" - resolved "https://registry.yarnpkg.com/enhanced-resolve/-/enhanced-resolve-5.17.1.tgz#67bfbbcc2f81d511be77d686a90267ef7f898a15" - integrity sha512-LMHl3dXhTcfv8gM4kEzIUeTQ+7fpdA0l2tUf34BddXPkz2A5xJ5L/Pchd5BL6rdccM9QGvu0sWZzK1Z1t4wwyg== + version "5.18.0" + resolved "https://registry.yarnpkg.com/enhanced-resolve/-/enhanced-resolve-5.18.0.tgz#91eb1db193896b9801251eeff1c6980278b1e404" + integrity sha512-0/r0MySGYG8YqlayBZ6MuCfECmHFdJ5qyPh8s8wa5Hnm6SaFLSK1VYCbj+NKp090Nm1caZhD+QTnmxO7esYGyQ== dependencies: graceful-fs "^4.2.4" tapable "^2.2.0" @@ -1309,12 +1350,10 @@ error-ex@^1.3.1: dependencies: is-arrayish "^0.2.1" -es-define-property@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/es-define-property/-/es-define-property-1.0.0.tgz#c7faefbdff8b2696cf5f46921edfb77cc4ba3845" - integrity sha512-jxayLKShrEqqzJ0eumQbVhTYQM27CfT1T35+gCgDFoL82JLsXqTJ76zv6A0YLOgEnLUMvLzsDsGIrl8NFpT2gQ== - dependencies: - get-intrinsic "^1.2.4" +es-define-property@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/es-define-property/-/es-define-property-1.0.1.tgz#983eb2f9a6724e9303f61addf011c72e09e0b0fa" + integrity sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g== es-errors@^1.3.0: version "1.3.0" @@ -1322,9 +1361,16 @@ es-errors@^1.3.0: integrity sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw== es-module-lexer@^1.2.1: - version "1.5.4" - resolved "https://registry.yarnpkg.com/es-module-lexer/-/es-module-lexer-1.5.4.tgz#a8efec3a3da991e60efa6b633a7cad6ab8d26b78" - integrity sha512-MVNK56NiMrOwitFB7cqDwq0CQutbw+0BvLshJSse0MUNU+y1FC3bUS/AQg7oUng+/wKrrki7JfmwtVHkVfPLlw== + version "1.6.0" + resolved "https://registry.yarnpkg.com/es-module-lexer/-/es-module-lexer-1.6.0.tgz#da49f587fd9e68ee2404fe4e256c0c7d3a81be21" + integrity sha512-qqnD1yMU6tk/jnaMosogGySTZP8YtUgAffA9nMN+E/rjxcfRQ6IEk7IiozUjgxKoFHBGjTLnrHB/YC45r/59EQ== + +es-object-atoms@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/es-object-atoms/-/es-object-atoms-1.0.0.tgz#ddb55cd47ac2e240701260bc2a8e31ecb643d941" + integrity sha512-MZ4iQ6JwHOBQjahnjwaC1ZtIBH+2ohjamzAO3oaHcXYup7qxjF2fixyH+Q71voWHeOkI2q/TnJao/KfXYIZWbw== + dependencies: + es-errors "^1.3.0" escalade@^3.1.1, escalade@^3.2.0: version "3.2.0" @@ -1423,7 +1469,7 @@ expect@^29.0.0, expect@^29.7.0: jest-message-util "^29.7.0" jest-util "^29.7.0" -fast-deep-equal@^3.1.1: +fast-deep-equal@^3.1.1, fast-deep-equal@^3.1.3: version "3.1.3" resolved "https://registry.yarnpkg.com/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz#3a7d56b559d6cbc3eb512325244e619a65c6c525" integrity sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q== @@ -1433,6 +1479,11 @@ fast-json-stable-stringify@2.x, fast-json-stable-stringify@^2.0.0, fast-json-sta resolved "https://registry.yarnpkg.com/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz#874bf69c6f404c2b5d99c481341399fd55892633" integrity sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw== +fast-uri@^3.0.1: + version "3.0.5" + resolved "https://registry.yarnpkg.com/fast-uri/-/fast-uri-3.0.5.tgz#19f5f9691d0dab9b85861a7bb5d98fca961da9cd" + integrity sha512-5JnBCWpFlMo0a3ciDy/JckMzzv1U9coZrIhedq+HXxxUfDTAiS0LA8OKVao4G9BxmCVck/jtA5r3KAtRWEyD8Q== + fb-watchman@^2.0.0: version "2.0.2" resolved "https://registry.yarnpkg.com/fb-watchman/-/fb-watchman-2.0.2.tgz#e9524ee6b5c77e9e5001af0f85f3adbb8623255c" @@ -1440,6 +1491,29 @@ fb-watchman@^2.0.0: dependencies: bser "2.1.1" +fetch-mock-jest@^1.5.1: + version "1.5.1" + resolved "https://registry.yarnpkg.com/fetch-mock-jest/-/fetch-mock-jest-1.5.1.tgz#0e13df990d286d9239e284f12b279ed509bf53cd" + integrity sha512-+utwzP8C+Pax1GSka3nFXILWMY3Er2L+s090FOgqVNrNCPp0fDqgXnAHAJf12PLHi0z4PhcTaZNTz8e7K3fjqQ== + dependencies: + fetch-mock "^9.11.0" + +fetch-mock@^9.11.0: + version "9.11.0" + resolved "https://registry.yarnpkg.com/fetch-mock/-/fetch-mock-9.11.0.tgz#371c6fb7d45584d2ae4a18ee6824e7ad4b637a3f" + integrity sha512-PG1XUv+x7iag5p/iNHD4/jdpxL9FtVSqRMUQhPab4hVDt80T1MH5ehzVrL2IdXO9Q2iBggArFvPqjUbHFuI58Q== + dependencies: + "@babel/core" "^7.0.0" + "@babel/runtime" "^7.0.0" + core-js "^3.0.0" + debug "^4.1.1" + glob-to-regexp "^0.4.0" + is-subset "^0.1.1" + lodash.isequal "^4.5.0" + path-to-regexp "^2.2.1" + querystring "^0.2.0" + whatwg-url "^6.5.0" + fill-range@^7.1.1: version "7.1.1" resolved "https://registry.yarnpkg.com/fill-range/-/fill-range-7.1.1.tgz#44265d3cac07e3ea7dc247516380643754a05292" @@ -1499,28 +1573,41 @@ get-caller-file@^2.0.5: resolved "https://registry.yarnpkg.com/get-caller-file/-/get-caller-file-2.0.5.tgz#4f94412a82db32f36e3b0b9741f8a97feb031f7e" integrity sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg== -get-intrinsic@^1.2.4: - version "1.2.4" - resolved "https://registry.yarnpkg.com/get-intrinsic/-/get-intrinsic-1.2.4.tgz#e385f5a4b5227d449c3eabbad05494ef0abbeadd" - integrity sha512-5uYhsJH8VJBTv7oslg4BznJYhDoRI6waYCxMmCdnTrcCrHA/fCFKoTFz2JKKE0HdDFUF7/oQuhzumXJK7paBRQ== +get-intrinsic@^1.2.5, get-intrinsic@^1.2.6: + version "1.2.7" + resolved "https://registry.yarnpkg.com/get-intrinsic/-/get-intrinsic-1.2.7.tgz#dcfcb33d3272e15f445d15124bc0a216189b9044" + integrity sha512-VW6Pxhsrk0KAOqs3WEd0klDiF/+V7gQOpAvY1jVU/LHmaD/kQO4523aiJuikX/QAKYiW6x8Jh+RJej1almdtCA== dependencies: + call-bind-apply-helpers "^1.0.1" + es-define-property "^1.0.1" es-errors "^1.3.0" + es-object-atoms "^1.0.0" function-bind "^1.1.2" - has-proto "^1.0.1" - has-symbols "^1.0.3" - hasown "^2.0.0" + get-proto "^1.0.0" + gopd "^1.2.0" + has-symbols "^1.1.0" + hasown "^2.0.2" + math-intrinsics "^1.1.0" get-package-type@^0.1.0: version "0.1.0" resolved "https://registry.yarnpkg.com/get-package-type/-/get-package-type-0.1.0.tgz#8de2d803cff44df3bc6c456e6668b36c3926e11a" integrity sha512-pjzuKtY64GYfWizNAJ0fr9VqttZkNiK2iS430LtIHzjBEr6bX8Am2zm4sW4Ro5wjWW5cAlRL1qAMTcXbjNAO2Q== +get-proto@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/get-proto/-/get-proto-1.0.1.tgz#150b3f2743869ef3e851ec0c49d15b1d14d00ee1" + integrity sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g== + dependencies: + dunder-proto "^1.0.1" + es-object-atoms "^1.0.0" + get-stream@^6.0.0: version "6.0.1" resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-6.0.1.tgz#a262d8eef67aced57c2852ad6167526a43cbf7b7" integrity sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg== -glob-to-regexp@^0.4.1: +glob-to-regexp@^0.4.0, glob-to-regexp@^0.4.1: version "0.4.1" resolved "https://registry.yarnpkg.com/glob-to-regexp/-/glob-to-regexp-0.4.1.tgz#c75297087c851b9a578bd217dd59a92f59fe546e" integrity sha512-lkX1HJXwyMcprw/5YUZc2s7DrpAiHB21/V+E1rHUrVNokkvB6bqMzT0VfV6/86ZNabt1k14YOIaT7nDvOX3Iiw== @@ -1542,7 +1629,7 @@ globals@^11.1.0: resolved "https://registry.yarnpkg.com/globals/-/globals-11.12.0.tgz#ab8795338868a0babd8525758018c2a7eb95c42e" integrity sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA== -gopd@^1.0.1: +gopd@^1.2.0: version "1.2.0" resolved "https://registry.yarnpkg.com/gopd/-/gopd-1.2.0.tgz#89f56b8217bdbc8802bd299df6d7f1081d7e51a1" integrity sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg== @@ -1557,26 +1644,12 @@ has-flag@^4.0.0: resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-4.0.0.tgz#944771fd9c81c81265c4d6941860da06bb59479b" integrity sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ== -has-property-descriptors@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/has-property-descriptors/-/has-property-descriptors-1.0.2.tgz#963ed7d071dc7bf5f084c5bfbe0d1b6222586854" - integrity sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg== - dependencies: - es-define-property "^1.0.0" - -has-proto@^1.0.1: - version "1.1.0" - resolved "https://registry.yarnpkg.com/has-proto/-/has-proto-1.1.0.tgz#deb10494cbbe8809bce168a3b961f42969f5ed43" - integrity sha512-QLdzI9IIO1Jg7f9GT1gXpPpXArAn6cS31R1eEZqz08Gc+uQ8/XiqHWt17Fiw+2p6oTTIq5GXEpQkAlA88YRl/Q== - dependencies: - call-bind "^1.0.7" - -has-symbols@^1.0.3: +has-symbols@^1.1.0: version "1.1.0" resolved "https://registry.yarnpkg.com/has-symbols/-/has-symbols-1.1.0.tgz#fc9c6a783a084951d0b971fe1018de813707a338" integrity sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ== -hasown@^2.0.0, hasown@^2.0.2: +hasown@^2.0.2: version "2.0.2" resolved "https://registry.yarnpkg.com/hasown/-/hasown-2.0.2.tgz#003eaf91be7adc372e84ec59dc37252cedb80003" integrity sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ== @@ -1660,10 +1733,10 @@ is-arrayish@^0.2.1: resolved "https://registry.yarnpkg.com/is-arrayish/-/is-arrayish-0.2.1.tgz#77c99840527aa8ecb1a8ba697b80645a7a926a9d" integrity sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg== -is-core-module@^2.13.0: - version "2.15.1" - resolved "https://registry.yarnpkg.com/is-core-module/-/is-core-module-2.15.1.tgz#a7363a25bee942fefab0de13bf6aa372c82dcc37" - integrity sha512-z0vtXSwucUJtANQWldhbtbt7BnL0vxiFjIdDLAatwhDYty2bad6s+rijD6Ri4YuYJubLzIJLUidCh09e1djEVQ== +is-core-module@^2.16.0: + version "2.16.1" + resolved "https://registry.yarnpkg.com/is-core-module/-/is-core-module-2.16.1.tgz#2a98801a849f43e2add644fbb6bc6229b19a4ef4" + integrity sha512-UfoeMA6fIJ8wTYFEUjelnaGI67v6+N7qXJEvQuIGa99l4xsCruSYOVSQ0uPANn4dAzm8lkYPaKLrrijLq7x23w== dependencies: hasown "^2.0.2" @@ -1692,6 +1765,11 @@ is-stream@^2.0.0: resolved "https://registry.yarnpkg.com/is-stream/-/is-stream-2.0.1.tgz#fac1e3d53b97ad5a9d0ae9cef2389f5810a5c077" integrity sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg== +is-subset@^0.1.1: + version "0.1.1" + resolved "https://registry.yarnpkg.com/is-subset/-/is-subset-0.1.1.tgz#8a59117d932de1de00f245fcdd39ce43f1e939a6" + integrity sha512-6Ybun0IkarhmEqxXCNw/C0bna6Zb/TkfUX9UbwJtK6ObwAVCxmAP308WWTHviM/zAqXk05cdhYsUsZeGQh99iw== + isexe@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/isexe/-/isexe-2.0.0.tgz#e8fbf374dc556ff8947a10dcb0572d633f2cfa10" @@ -2182,9 +2260,9 @@ jsdom@^20.0.0: xml-name-validator "^4.0.0" jsesc@^3.0.2: - version "3.0.2" - resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-3.0.2.tgz#bb8b09a6597ba426425f2e4a07245c3d00b9343e" - integrity sha512-xKqzzWXDttJuOcawBt4KnKHHIf5oQ/Cxax+0PWFG+DFDgHNAdi+TXECADI+RYiFUMmx8792xsMbbgXj4CwnP4g== + version "3.1.0" + resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-3.1.0.tgz#74d335a234f67ed19907fdadfac7ccf9d409825d" + integrity sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA== json-parse-even-better-errors@^2.3.0, json-parse-even-better-errors@^2.3.1: version "2.3.1" @@ -2196,6 +2274,11 @@ json-schema-traverse@^0.4.1: resolved "https://registry.yarnpkg.com/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz#69f6a87d9513ab8bb8fe63bdb0979c448e684660" integrity sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg== +json-schema-traverse@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz#ae7bcb3656ab77a73ba5c49bf654f38e6b6860e2" + integrity sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug== + json5@^2.2.3: version "2.2.3" resolved "https://registry.yarnpkg.com/json5/-/json5-2.2.3.tgz#78cd6f1a19bdc12b73db5ad0c61efd66c1e29283" @@ -2228,11 +2311,21 @@ locate-path@^5.0.0: dependencies: p-locate "^4.1.0" +lodash.isequal@^4.5.0: + version "4.5.0" + resolved "https://registry.yarnpkg.com/lodash.isequal/-/lodash.isequal-4.5.0.tgz#415c4478f2bcc30120c22ce10ed3226f7d3e18e0" + integrity sha512-pDo3lu8Jhfjqls6GkMgpahsF9kCyayhgykjyLMNFTKWrpVdAQtYyB4muAMWozBB4ig/dtWAmsMxLEI8wuz+DYQ== + lodash.memoize@4.x: version "4.1.2" resolved "https://registry.yarnpkg.com/lodash.memoize/-/lodash.memoize-4.1.2.tgz#bcc6c49a42a2840ed997f323eada5ecd182e0bfe" integrity sha512-t7j+NzmgnQzTAYXcsHYLgimltOV1MXHtlOWf6GjL9Kj8GK5FInw5JotxvbOs+IvV1/Dzo04/fCGfLVs7aXb4Ag== +lodash.sortby@^4.7.0: + version "4.7.0" + resolved "https://registry.yarnpkg.com/lodash.sortby/-/lodash.sortby-4.7.0.tgz#edd14c824e2cc9c1e0b0a1b42bb5210516a42438" + integrity sha512-HDWXG8isMntAyRF5vZ7xKuEvOhT4AhlRt/3czTSjvGUxjYCBVRQY48ViDHyfYz9VIoBkW4TMGQNapx+l3RUwdA== + lru-cache@^5.1.1: version "5.1.1" resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-5.1.1.tgz#1da27e6710271947695daf6848e847f01d84b920" @@ -2259,6 +2352,11 @@ makeerror@1.0.12: dependencies: tmpl "1.0.5" +math-intrinsics@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/math-intrinsics/-/math-intrinsics-1.1.0.tgz#a0dd74be81e2aa5c2f27e65ce283605ee4e2b7f9" + integrity sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g== + merge-stream@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/merge-stream/-/merge-stream-2.0.0.tgz#52823629a14dd00c9770fb6ad47dc6310f2c1f60" @@ -2323,10 +2421,10 @@ node-int64@^0.4.0: resolved "https://registry.yarnpkg.com/node-int64/-/node-int64-0.4.0.tgz#87a9065cdb355d3182d8f94ce11188b825c68a3b" integrity sha512-O5lz91xSOeoXP6DulyHfllpq+Eg00MWitZIbtPfoSEvqIHdl5gfcY6hYzDWnj0qD5tz52PI08u9qUvSVeUBeHw== -node-releases@^2.0.18: - version "2.0.18" - resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-2.0.18.tgz#f010e8d35e2fe8d6b2944f03f70213ecedc4ca3f" - integrity sha512-d9VeXT4SJ7ZeOqGX6R5EM022wpL+eWPooLI+5UpWn2jCT1aosUQEhQP214x33Wkwx3JQMvIm+tIoVOdodFS40g== +node-releases@^2.0.19: + version "2.0.19" + resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-2.0.19.tgz#9e445a52950951ec4d177d843af370b411caf314" + integrity sha512-xxOWJsBKtzAq7DY0J+DTzuz58K8e7sJbdgwkbMWQe8UYB6ekmsQ45q0M/tJDsGaZmbC+l7n57UV8Hl5tHxO9uw== normalize-path@^3.0.0: version "3.0.0" @@ -2345,7 +2443,7 @@ nwsapi@^2.2.2: resolved "https://registry.yarnpkg.com/nwsapi/-/nwsapi-2.2.16.tgz#177760bba02c351df1d2644e220c31dfec8cdb43" integrity sha512-F1I/bimDpj3ncaNDhfyMWuFqmQDBwDB0Fogc2qpL3BWvkQteFD/8BzWuIRl83rq0DXfm8SGt/HFhLXZyljTXcQ== -object-inspect@^1.13.1: +object-inspect@^1.13.3: version "1.13.3" resolved "https://registry.yarnpkg.com/object-inspect/-/object-inspect-1.13.3.tgz#f14c183de51130243d6d18ae149375ff50ea488a" integrity sha512-kDCGIbxkDSXE3euJZZXzc6to7fCrKHNI/hSRQnRuQ+BWjFNzZwiFF8fj/6o2t2G9/jTj8PSIYTfCLelLZEeRpA== @@ -2427,6 +2525,11 @@ path-parse@^1.0.7: resolved "https://registry.yarnpkg.com/path-parse/-/path-parse-1.0.7.tgz#fbc114b60ca42b30d9daf5858e4bd68bbedb6735" integrity sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw== +path-to-regexp@^2.2.1: + version "2.4.0" + resolved "https://registry.yarnpkg.com/path-to-regexp/-/path-to-regexp-2.4.0.tgz#35ce7f333d5616f1c1e1bfe266c3aba2e5b2e704" + integrity sha512-G6zHoVqC6GGTQkZwF4lkuEyMbVOjoBKAEybQUypI1WTkqinCOrq2x6U2+phkJ1XsEMTy4LjtwPI7HW+NVrRR2w== + picocolors@^1.0.0, picocolors@^1.1.0: version "1.1.1" resolved "https://registry.yarnpkg.com/picocolors/-/picocolors-1.1.1.tgz#3d321af3eab939b083c8f929a1d12cda81c26b6b" @@ -2500,6 +2603,11 @@ qs@6.11.2: dependencies: side-channel "^1.0.4" +querystring@^0.2.0: + version "0.2.1" + resolved "https://registry.yarnpkg.com/querystring/-/querystring-0.2.1.tgz#40d77615bb09d16902a85c3e38aa8b5ed761c2dd" + integrity sha512-wkvS7mL/JMugcup3/rMitHmd9ecIGd2lhFhK9N3UUQ450h66d1r3Y9nvXzQAW1Lq+wyx61k/1pfKS5KuKiyEbg== + querystringify@^2.1.1: version "2.2.0" resolved "https://registry.yarnpkg.com/querystringify/-/querystringify-2.2.0.tgz#3345941b4153cb9d082d8eee4cda2016a9aef7f6" @@ -2518,9 +2626,9 @@ react-is@^18.0.0: integrity sha512-/LLMVyas0ljjAtoYiPqYiL8VWXzUUdThrmU5+n20DZv+a+ClRoevUzw5JxU+Ieh5/c87ytoTBV9G1FiKfNJdmg== readable-stream@^4.5.2: - version "4.5.2" - resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-4.5.2.tgz#9e7fc4c45099baeed934bff6eb97ba6cf2729e09" - integrity sha512-yjavECdqeZ3GLXNgRXgeQEdz9fvDDkNKyHnbHRFtOr7/LcfgBcmct7t/ET+HaCTqfh06OzoAxrkN/IfjJBVe+g== + version "4.6.0" + resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-4.6.0.tgz#ce412dfb19c04efde1c5936d99c27f37a1ff94c9" + integrity sha512-cbAdYt0VcnpN2Bekq7PU+k363ZRsPwJoEEJOEtSJQlJXzwaxt3FIo/uL+KeDSGIjJqtkwyge4KQgD2S2kd+CQw== dependencies: abort-controller "^3.0.0" buffer "^6.0.3" @@ -2528,11 +2636,21 @@ readable-stream@^4.5.2: process "^0.11.10" string_decoder "^1.3.0" +regenerator-runtime@^0.14.0: + version "0.14.1" + resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.14.1.tgz#356ade10263f685dda125100cd862c1db895327f" + integrity sha512-dYnhHh0nJoMfnkZs6GmmhFknAGRrLznOu5nc9ML+EJxGvrx6H7teuevqVqCuPcPK//3eDrrjQhehXVx9cnkGdw== + require-directory@^2.1.1: version "2.1.1" resolved "https://registry.yarnpkg.com/require-directory/-/require-directory-2.1.1.tgz#8c64ad5fd30dab1c976e2344ffe7f792a6a6df42" integrity sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q== +require-from-string@^2.0.2: + version "2.0.2" + resolved "https://registry.yarnpkg.com/require-from-string/-/require-from-string-2.0.2.tgz#89a7fdd938261267318eafe14f9c32e598c36909" + integrity sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw== + requires-port@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/requires-port/-/requires-port-1.0.0.tgz#925d2601d39ac485e091cf0da5c6e694dc3dcaff" @@ -2556,11 +2674,11 @@ resolve.exports@^2.0.0: integrity sha512-OcXjMsGdhL4XnbShKpAcSqPMzQoYkYyhbEaeSko47MjRP9NfEQMhZkXL1DoFlt9LWQn4YttrdnV6X2OiyzBi+A== resolve@^1.20.0: - version "1.22.8" - resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.22.8.tgz#b6c87a9f2aa06dfab52e3d70ac8cde321fa5a48d" - integrity sha512-oKWePCxqpd6FlLvGV1VU0x7bkPmmCNolxzjMf4NczoDnQcIWrAF+cPtZn5i6n+RfD2d9i0tzpKnG6Yk168yIyw== + version "1.22.10" + resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.22.10.tgz#b663e83ffb09bbf2386944736baae803029b8b39" + integrity sha512-NPRy+/ncIMeDlTAsuqwKIiferiawhefFJtkNSW0qZJEqMEb+qBt/77B/jGeeek+F0uOeN05CDa6HXbbIgtVX4w== dependencies: - is-core-module "^2.13.0" + is-core-module "^2.16.0" path-parse "^1.0.7" supports-preserve-symlinks-flag "^1.0.0" @@ -2586,7 +2704,7 @@ saxes@^6.0.0: dependencies: xmlchars "^2.2.0" -schema-utils@^3.1.1, schema-utils@^3.2.0: +schema-utils@^3.2.0: version "3.3.0" resolved "https://registry.yarnpkg.com/schema-utils/-/schema-utils-3.3.0.tgz#f50a88877c3c01652a15b622ae9e9795df7a60fe" integrity sha512-pN/yOAvcC+5rQ5nERGuwrjLlYvLTbCibnZ1I7B1LaiAz9BRBlE9GMgE/eqV30P7aJQUf7Ddimy/RsbYO/GrVGg== @@ -2595,6 +2713,16 @@ schema-utils@^3.1.1, schema-utils@^3.2.0: ajv "^6.12.5" ajv-keywords "^3.5.2" +schema-utils@^4.3.0: + version "4.3.0" + resolved "https://registry.yarnpkg.com/schema-utils/-/schema-utils-4.3.0.tgz#3b669f04f71ff2dfb5aba7ce2d5a9d79b35622c0" + integrity sha512-Gf9qqc58SpCA/xdziiHz35F4GNIWYWZrEshUc/G/r5BnLph6xpKuLeoJoQuj5WfBIx/eQLf+hmVPYHaxJu7V2g== + dependencies: + "@types/json-schema" "^7.0.9" + ajv "^8.9.0" + ajv-formats "^2.1.1" + ajv-keywords "^5.1.0" + semver@^6.3.0, semver@^6.3.1: version "6.3.1" resolved "https://registry.yarnpkg.com/semver/-/semver-6.3.1.tgz#556d2ef8689146e46dcea4bfdd095f3434dffcb4" @@ -2605,25 +2733,13 @@ semver@^7.3.4, semver@^7.5.3, semver@^7.5.4: resolved "https://registry.yarnpkg.com/semver/-/semver-7.6.3.tgz#980f7b5550bc175fb4dc09403085627f9eb33143" integrity sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A== -serialize-javascript@^6.0.1: +serialize-javascript@^6.0.2: version "6.0.2" resolved "https://registry.yarnpkg.com/serialize-javascript/-/serialize-javascript-6.0.2.tgz#defa1e055c83bf6d59ea805d8da862254eb6a6c2" integrity sha512-Saa1xPByTTq2gdeFZYLLo+RFE35NHZkAbqZeWNd3BpzppeVisAqpDjcp8dyf6uIvEqJRd46jemmyA4iFIeVk8g== dependencies: randombytes "^2.1.0" -set-function-length@^1.2.1: - version "1.2.2" - resolved "https://registry.yarnpkg.com/set-function-length/-/set-function-length-1.2.2.tgz#aac72314198eaed975cf77b2c3b6b880695e5449" - integrity sha512-pgRc4hJ4/sNjWCSS9AmnS40x3bNMDTknHgL5UaMBTMyJnU90EgWh1Rz+MC9eFu4BuN/UwZjKQuY/1v3rM7HMfg== - dependencies: - define-data-property "^1.1.4" - es-errors "^1.3.0" - function-bind "^1.1.2" - get-intrinsic "^1.2.4" - gopd "^1.0.1" - has-property-descriptors "^1.0.2" - shebang-command@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/shebang-command/-/shebang-command-2.0.0.tgz#ccd0af4f8835fbdc265b82461aaf0c36663f34ea" @@ -2636,15 +2752,45 @@ shebang-regex@^3.0.0: resolved "https://registry.yarnpkg.com/shebang-regex/-/shebang-regex-3.0.0.tgz#ae16f1644d873ecad843b0307b143362d4c42172" integrity sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A== +side-channel-list@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/side-channel-list/-/side-channel-list-1.0.0.tgz#10cb5984263115d3b7a0e336591e290a830af8ad" + integrity sha512-FCLHtRD/gnpCiCHEiJLOwdmFP+wzCmDEkc9y7NsYxeF4u7Btsn1ZuwgwJGxImImHicJArLP4R0yX4c2KCrMrTA== + dependencies: + es-errors "^1.3.0" + object-inspect "^1.13.3" + +side-channel-map@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/side-channel-map/-/side-channel-map-1.0.1.tgz#d6bb6b37902c6fef5174e5f533fab4c732a26f42" + integrity sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA== + dependencies: + call-bound "^1.0.2" + es-errors "^1.3.0" + get-intrinsic "^1.2.5" + object-inspect "^1.13.3" + +side-channel-weakmap@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/side-channel-weakmap/-/side-channel-weakmap-1.0.2.tgz#11dda19d5368e40ce9ec2bdc1fb0ecbc0790ecea" + integrity sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A== + dependencies: + call-bound "^1.0.2" + es-errors "^1.3.0" + get-intrinsic "^1.2.5" + object-inspect "^1.13.3" + side-channel-map "^1.0.1" + side-channel@^1.0.4: - version "1.0.6" - resolved "https://registry.yarnpkg.com/side-channel/-/side-channel-1.0.6.tgz#abd25fb7cd24baf45466406b1096b7831c9215f2" - integrity sha512-fDW/EZ6Q9RiO8eFG8Hj+7u/oW+XrPTIChwCOM2+th2A6OblDtYYIpve9m+KvI9Z4C9qSEXlaGR6bTEYHReuglA== + version "1.1.0" + resolved "https://registry.yarnpkg.com/side-channel/-/side-channel-1.1.0.tgz#c3fcff9c4da932784873335ec9765fa94ff66bc9" + integrity sha512-ZX99e6tRweoUXqR+VBrslhda51Nh5MTQwou5tnUDgbtyM0dBgmhEDtWGP/xbKn6hqfPRHujUNwz5fy/wbbhnpw== dependencies: - call-bind "^1.0.7" es-errors "^1.3.0" - get-intrinsic "^1.2.4" - object-inspect "^1.13.1" + object-inspect "^1.13.3" + side-channel-list "^1.0.0" + side-channel-map "^1.0.1" + side-channel-weakmap "^1.0.2" signal-exit@^3.0.3, signal-exit@^3.0.7: version "3.0.7" @@ -2775,17 +2921,17 @@ tapable@^2.1.1, tapable@^2.2.0: integrity sha512-GNzQvQTOIP6RyTfE2Qxb8ZVlNmw0n88vp1szwWRimP02mnTsx3Wtn5qRdqY9w2XduFNUgvOwhNnQsjwCp+kqaQ== terser-webpack-plugin@^5.3.10: - version "5.3.10" - resolved "https://registry.yarnpkg.com/terser-webpack-plugin/-/terser-webpack-plugin-5.3.10.tgz#904f4c9193c6fd2a03f693a2150c62a92f40d199" - integrity sha512-BKFPWlPDndPs+NGGCr1U59t0XScL5317Y0UReNrHaw9/FwhPENlq6bfgs+4yPfyP51vqC1bQ4rp1EfXW5ZSH9w== + version "5.3.11" + resolved "https://registry.yarnpkg.com/terser-webpack-plugin/-/terser-webpack-plugin-5.3.11.tgz#93c21f44ca86634257cac176f884f942b7ba3832" + integrity sha512-RVCsMfuD0+cTt3EwX8hSl2Ks56EbFHWmhluwcqoPKtBnfjiT6olaq7PRIRfhyU8nnC2MrnDrBLfrD/RGE+cVXQ== dependencies: - "@jridgewell/trace-mapping" "^0.3.20" + "@jridgewell/trace-mapping" "^0.3.25" jest-worker "^27.4.5" - schema-utils "^3.1.1" - serialize-javascript "^6.0.1" - terser "^5.26.0" + schema-utils "^4.3.0" + serialize-javascript "^6.0.2" + terser "^5.31.1" -terser@^5.26.0: +terser@^5.31.1: version "5.37.0" resolved "https://registry.yarnpkg.com/terser/-/terser-5.37.0.tgz#38aa66d1cfc43d0638fab54e43ff8a4f72a21ba3" integrity sha512-B8wRRkmre4ERucLM/uXx4MOV5cbnOlVAqUst+1+iLKPI0dOgFO28f84ptoQt9HEI537PMzfYa/d+GEPKTRXmYA== @@ -2826,6 +2972,13 @@ tough-cookie@^4.1.2: universalify "^0.2.0" url-parse "^1.5.3" +tr46@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/tr46/-/tr46-1.0.1.tgz#a8b13fd6bfd2489519674ccde55ba3693b706d09" + integrity sha512-dTpowEjclQ7Kgx5SdBkqRzVhERQXov8/l9Ft9dVM9fmg0W0KQSVaXX9T4i6twCPNtYiZM53lpSSUAwJbFPOHxA== + dependencies: + punycode "^2.1.0" + tr46@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/tr46/-/tr46-3.0.0.tgz#555c4e297a950617e8eeddef633c87d4d9d6cbf9" @@ -2952,6 +3105,11 @@ webidl-conversions@^3.0.0: resolved "https://registry.yarnpkg.com/webidl-conversions/-/webidl-conversions-3.0.1.tgz#24534275e2a7bc6be7bc86611cc16ae0a5654871" integrity sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ== +webidl-conversions@^4.0.2: + version "4.0.2" + resolved "https://registry.yarnpkg.com/webidl-conversions/-/webidl-conversions-4.0.2.tgz#a855980b1f0b6b359ba1d5d9fb39ae941faa63ad" + integrity sha512-YQ+BmxuTgd6UXZW3+ICGfyqRyHXVlD5GtQr5+qjiNW7bF0cqrzX500HVXPBOvgXb5YnzDd+h0zqyv61KUD7+Sg== + webidl-conversions@^7.0.0: version "7.0.0" resolved "https://registry.yarnpkg.com/webidl-conversions/-/webidl-conversions-7.0.0.tgz#256b4e1882be7debbf01d05f0aa2039778ea080a" @@ -3019,6 +3177,15 @@ whatwg-url@^5.0.0: tr46 "~0.0.3" webidl-conversions "^3.0.0" +whatwg-url@^6.5.0: + version "6.5.0" + resolved "https://registry.yarnpkg.com/whatwg-url/-/whatwg-url-6.5.0.tgz#f2df02bff176fd65070df74ad5ccbb5a199965a8" + integrity sha512-rhRZRqx/TLJQWUpQ6bmrt2UV4f0HCQ463yQuONJqC6fO2VoEb1pTYddbe59SkYq87aoM5A3bdhMZiUiVws+fzQ== + dependencies: + lodash.sortby "^4.7.0" + tr46 "^1.0.1" + webidl-conversions "^4.0.2" + which@^2.0.1: version "2.0.2" resolved "https://registry.yarnpkg.com/which/-/which-2.0.2.tgz#7c6a8dd0a636a0327e10b59c9286eee93f3f51b1"