@paygentic/sdk 0.3.1-beta.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -2
- package/RUNTIMES.md +6 -6
- package/dist/commonjs/__tests__/subscriptions.test.js +15 -0
- package/dist/commonjs/__tests__/subscriptions.test.js.map +1 -1
- package/dist/commonjs/funcs/billableMetricsCreate.js +1 -1
- package/dist/commonjs/funcs/billableMetricsCreate.js.map +1 -1
- package/dist/commonjs/funcs/billableMetricsGet.js +1 -1
- package/dist/commonjs/funcs/billableMetricsGet.js.map +1 -1
- package/dist/commonjs/funcs/billableMetricsGetPrice.js +1 -1
- package/dist/commonjs/funcs/billableMetricsGetPrice.js.map +1 -1
- package/dist/commonjs/funcs/billableMetricsGetPriceLegacy.js +1 -1
- package/dist/commonjs/funcs/billableMetricsGetPriceLegacy.js.map +1 -1
- package/dist/commonjs/funcs/billableMetricsList.js +1 -1
- package/dist/commonjs/funcs/billableMetricsList.js.map +1 -1
- package/dist/commonjs/funcs/billableMetricsUpdate.js +1 -1
- package/dist/commonjs/funcs/billableMetricsUpdate.js.map +1 -1
- package/dist/commonjs/funcs/consumersGet.js +1 -1
- package/dist/commonjs/funcs/consumersGet.js.map +1 -1
- package/dist/commonjs/funcs/consumersListOffSessionPaymentMethods.js +1 -1
- package/dist/commonjs/funcs/consumersListOffSessionPaymentMethods.js.map +1 -1
- package/dist/commonjs/funcs/customersCheckAuthorizationSessionStatus.js +1 -1
- package/dist/commonjs/funcs/customersCheckAuthorizationSessionStatus.js.map +1 -1
- package/dist/commonjs/funcs/customersCreate.js +1 -1
- package/dist/commonjs/funcs/customersCreate.js.map +1 -1
- package/dist/commonjs/funcs/customersCreateAuthorizationSession.js +1 -1
- package/dist/commonjs/funcs/customersCreateAuthorizationSession.js.map +1 -1
- package/dist/commonjs/funcs/customersGet.js +1 -1
- package/dist/commonjs/funcs/customersGet.js.map +1 -1
- package/dist/commonjs/funcs/customersList.js +1 -1
- package/dist/commonjs/funcs/customersList.js.map +1 -1
- package/dist/commonjs/funcs/customersUpdateCustomer.js +1 -1
- package/dist/commonjs/funcs/customersUpdateCustomer.js.map +1 -1
- package/dist/commonjs/funcs/disputesCreate.js +1 -1
- package/dist/commonjs/funcs/disputesCreate.js.map +1 -1
- package/dist/commonjs/funcs/disputesList.js +1 -1
- package/dist/commonjs/funcs/disputesList.js.map +1 -1
- package/dist/commonjs/funcs/entitlementsCreate.js +1 -1
- package/dist/commonjs/funcs/entitlementsCreate.js.map +1 -1
- package/dist/commonjs/funcs/entitlementsListActive.js +1 -1
- package/dist/commonjs/funcs/entitlementsListActive.js.map +1 -1
- package/dist/commonjs/funcs/externalBankAccountsCreate.js +1 -1
- package/dist/commonjs/funcs/externalBankAccountsCreate.js.map +1 -1
- package/dist/commonjs/funcs/externalBankAccountsDelete.js +1 -1
- package/dist/commonjs/funcs/externalBankAccountsDelete.js.map +1 -1
- package/dist/commonjs/funcs/externalBankAccountsGet.js +1 -1
- package/dist/commonjs/funcs/externalBankAccountsGet.js.map +1 -1
- package/dist/commonjs/funcs/externalBankAccountsList.js +1 -1
- package/dist/commonjs/funcs/externalBankAccountsList.js.map +1 -1
- package/dist/commonjs/funcs/externalBankAccountsUpdate.js +1 -1
- package/dist/commonjs/funcs/externalBankAccountsUpdate.js.map +1 -1
- package/dist/commonjs/funcs/merchantsGet.js +1 -1
- package/dist/commonjs/funcs/merchantsGet.js.map +1 -1
- package/dist/commonjs/funcs/merchantsListEligibleCountries.js +1 -1
- package/dist/commonjs/funcs/merchantsListEligibleCountries.js.map +1 -1
- package/dist/commonjs/funcs/payoutsGet.js +1 -1
- package/dist/commonjs/funcs/payoutsGet.js.map +1 -1
- package/dist/commonjs/funcs/payoutsList.js +1 -1
- package/dist/commonjs/funcs/payoutsList.js.map +1 -1
- package/dist/commonjs/funcs/payoutsListMethods.js +1 -1
- package/dist/commonjs/funcs/payoutsListMethods.js.map +1 -1
- package/dist/commonjs/funcs/plansCreate.js +1 -1
- package/dist/commonjs/funcs/plansCreate.js.map +1 -1
- package/dist/commonjs/funcs/plansGet.js +1 -1
- package/dist/commonjs/funcs/plansGet.js.map +1 -1
- package/dist/commonjs/funcs/plansList.js +1 -1
- package/dist/commonjs/funcs/plansList.js.map +1 -1
- package/dist/commonjs/funcs/plansUpdate.js +1 -1
- package/dist/commonjs/funcs/plansUpdate.js.map +1 -1
- package/dist/commonjs/funcs/pricesCreate.js +1 -1
- package/dist/commonjs/funcs/pricesCreate.js.map +1 -1
- package/dist/commonjs/funcs/pricesGet.js +1 -1
- package/dist/commonjs/funcs/pricesGet.js.map +1 -1
- package/dist/commonjs/funcs/pricesList.js +1 -1
- package/dist/commonjs/funcs/pricesList.js.map +1 -1
- package/dist/commonjs/funcs/pricesUpdate.js +1 -1
- package/dist/commonjs/funcs/pricesUpdate.js.map +1 -1
- package/dist/commonjs/funcs/productsCreate.js +1 -1
- package/dist/commonjs/funcs/productsCreate.js.map +1 -1
- package/dist/commonjs/funcs/productsGet.js +1 -1
- package/dist/commonjs/funcs/productsGet.js.map +1 -1
- package/dist/commonjs/funcs/productsList.js +1 -1
- package/dist/commonjs/funcs/productsList.js.map +1 -1
- package/dist/commonjs/funcs/productsUpdate.js +1 -1
- package/dist/commonjs/funcs/productsUpdate.js.map +1 -1
- package/dist/commonjs/funcs/sourcesAdd.js +1 -1
- package/dist/commonjs/funcs/sourcesAdd.js.map +1 -1
- package/dist/commonjs/funcs/sourcesApproveEvent.js +1 -1
- package/dist/commonjs/funcs/sourcesApproveEvent.js.map +1 -1
- package/dist/commonjs/funcs/sourcesBulkApproveEvents.js +1 -1
- package/dist/commonjs/funcs/sourcesBulkApproveEvents.js.map +1 -1
- package/dist/commonjs/funcs/sourcesCreate.js +1 -1
- package/dist/commonjs/funcs/sourcesCreate.js.map +1 -1
- package/dist/commonjs/funcs/sourcesDelete.js +1 -1
- package/dist/commonjs/funcs/sourcesDelete.js.map +1 -1
- package/dist/commonjs/funcs/sourcesEventsBulkReject.js +1 -1
- package/dist/commonjs/funcs/sourcesEventsBulkReject.js.map +1 -1
- package/dist/commonjs/funcs/sourcesGet.js +1 -1
- package/dist/commonjs/funcs/sourcesGet.js.map +1 -1
- package/dist/commonjs/funcs/sourcesGetRule.js +1 -1
- package/dist/commonjs/funcs/sourcesGetRule.js.map +1 -1
- package/dist/commonjs/funcs/sourcesList.js +1 -1
- package/dist/commonjs/funcs/sourcesList.js.map +1 -1
- package/dist/commonjs/funcs/sourcesListEvents.js +1 -1
- package/dist/commonjs/funcs/sourcesListEvents.js.map +1 -1
- package/dist/commonjs/funcs/sourcesListRules.js +1 -1
- package/dist/commonjs/funcs/sourcesListRules.js.map +1 -1
- package/dist/commonjs/funcs/sourcesRejectEvent.js +1 -1
- package/dist/commonjs/funcs/sourcesRejectEvent.js.map +1 -1
- package/dist/commonjs/funcs/sourcesUpdate.js +1 -1
- package/dist/commonjs/funcs/sourcesUpdate.js.map +1 -1
- package/dist/commonjs/funcs/sourcesUpdateRule.js +1 -1
- package/dist/commonjs/funcs/sourcesUpdateRule.js.map +1 -1
- package/{funcs/disputesList.d.ts → dist/commonjs/funcs/subscriptionsCreateSubscription.d.ts} +5 -4
- package/dist/commonjs/funcs/subscriptionsCreateSubscription.d.ts.map +1 -0
- package/dist/commonjs/funcs/subscriptionsCreateSubscription.js +119 -0
- package/dist/commonjs/funcs/subscriptionsCreateSubscription.js.map +1 -0
- package/dist/commonjs/funcs/subscriptionsGeneratePortalLink.js +1 -1
- package/dist/commonjs/funcs/subscriptionsGeneratePortalLink.js.map +1 -1
- package/dist/commonjs/funcs/subscriptionsGet.js +1 -1
- package/dist/commonjs/funcs/subscriptionsGet.js.map +1 -1
- package/dist/commonjs/funcs/subscriptionsList.js +1 -1
- package/dist/commonjs/funcs/subscriptionsList.js.map +1 -1
- package/dist/commonjs/funcs/usageEventsBatchCreate.js +1 -1
- package/dist/commonjs/funcs/usageEventsBatchCreate.js.map +1 -1
- package/dist/commonjs/funcs/usageEventsCreate.js +1 -1
- package/dist/commonjs/funcs/usageEventsCreate.js.map +1 -1
- package/dist/commonjs/funcs/usageEventsGet.js +1 -1
- package/dist/commonjs/funcs/usageEventsGet.js.map +1 -1
- package/dist/commonjs/funcs/usageEventsList.js +1 -1
- package/dist/commonjs/funcs/usageEventsList.js.map +1 -1
- package/dist/commonjs/funcs/usersGet.js +1 -1
- package/dist/commonjs/funcs/usersGet.js.map +1 -1
- package/dist/commonjs/funcs/usersUpdate.js +1 -1
- package/dist/commonjs/funcs/usersUpdate.js.map +1 -1
- package/dist/commonjs/funcs/walletsCreateTopup.js +1 -1
- package/dist/commonjs/funcs/walletsCreateTopup.js.map +1 -1
- package/dist/commonjs/funcs/walletsGet.js +1 -1
- package/dist/commonjs/funcs/walletsGet.js.map +1 -1
- package/dist/commonjs/funcs/walletsGetTopup.js +1 -1
- package/dist/commonjs/funcs/walletsGetTopup.js.map +1 -1
- package/dist/commonjs/funcs/walletsList.js +1 -1
- package/dist/commonjs/funcs/walletsList.js.map +1 -1
- package/dist/commonjs/funcs/walletsListTopups.js +1 -1
- package/dist/commonjs/funcs/walletsListTopups.js.map +1 -1
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/lib/config.js.map +1 -1
- package/dist/commonjs/models/billablemetric.d.ts +27 -0
- package/dist/commonjs/models/billablemetric.d.ts.map +1 -1
- package/dist/commonjs/models/billablemetric.js +22 -1
- package/dist/commonjs/models/billablemetric.js.map +1 -1
- package/dist/commonjs/models/componentsschemasprice.d.ts +27 -0
- package/dist/commonjs/models/componentsschemasprice.d.ts.map +1 -1
- package/dist/commonjs/models/componentsschemasprice.js +22 -1
- package/dist/commonjs/models/componentsschemasprice.js.map +1 -1
- package/dist/commonjs/models/index.d.ts +0 -1
- package/dist/commonjs/models/index.d.ts.map +1 -1
- package/dist/commonjs/models/index.js +0 -1
- package/dist/commonjs/models/index.js.map +1 -1
- package/dist/commonjs/models/operations/createbillablemetric.d.ts +36 -0
- package/dist/commonjs/models/operations/createbillablemetric.d.ts.map +1 -1
- package/dist/commonjs/models/operations/createbillablemetric.js +25 -1
- package/dist/commonjs/models/operations/createbillablemetric.js.map +1 -1
- package/dist/commonjs/models/operations/createplan.d.ts +0 -6
- package/dist/commonjs/models/operations/createplan.d.ts.map +1 -1
- package/dist/commonjs/models/operations/createplan.js +0 -3
- package/dist/commonjs/models/operations/createplan.js.map +1 -1
- package/dist/commonjs/models/operations/createprice.d.ts +36 -0
- package/dist/commonjs/models/operations/createprice.d.ts.map +1 -1
- package/dist/commonjs/models/operations/createprice.js +26 -1
- package/dist/commonjs/models/operations/createprice.js.map +1 -1
- package/dist/commonjs/models/operations/createsubscription.d.ts +144 -0
- package/dist/commonjs/models/operations/createsubscription.d.ts.map +1 -0
- package/dist/commonjs/models/operations/createsubscription.js +150 -0
- package/dist/commonjs/models/operations/createsubscription.js.map +1 -0
- package/dist/commonjs/models/operations/index.d.ts +1 -0
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +1 -0
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/models/operations/updatecustomer.d.ts +4 -4
- package/dist/commonjs/models/operations/updatecustomer.js +4 -4
- package/dist/commonjs/models/plan.d.ts +29 -6
- package/dist/commonjs/models/plan.d.ts.map +1 -1
- package/dist/commonjs/models/plan.js +41 -4
- package/dist/commonjs/models/plan.js.map +1 -1
- package/dist/commonjs/models/price.d.ts +30 -3
- package/dist/commonjs/models/price.d.ts.map +1 -1
- package/dist/commonjs/models/price.js +24 -3
- package/dist/commonjs/models/price.js.map +1 -1
- package/dist/commonjs/models/pricepropertiesunion.d.ts +4 -0
- package/dist/commonjs/models/pricepropertiesunion.d.ts.map +1 -1
- package/dist/commonjs/models/pricepropertiesunion.js +11 -2
- package/dist/commonjs/models/pricepropertiesunion.js.map +1 -1
- package/dist/commonjs/models/schemasprice.d.ts +27 -0
- package/dist/commonjs/models/schemasprice.d.ts.map +1 -1
- package/dist/commonjs/models/schemasprice.js +22 -1
- package/dist/commonjs/models/schemasprice.js.map +1 -1
- package/dist/commonjs/models/subscription.d.ts +172 -0
- package/dist/commonjs/models/subscription.d.ts.map +1 -1
- package/dist/commonjs/models/subscription.js +129 -1
- package/dist/commonjs/models/subscription.js.map +1 -1
- package/dist/commonjs/models/usageevent.d.ts +5 -0
- package/dist/commonjs/models/usageevent.d.ts.map +1 -1
- package/dist/commonjs/models/usageevent.js +2 -0
- package/dist/commonjs/models/usageevent.js.map +1 -1
- package/dist/commonjs/sdk/subscriptions.d.ts +7 -0
- package/dist/commonjs/sdk/subscriptions.d.ts.map +1 -1
- package/dist/commonjs/sdk/subscriptions.js +10 -0
- package/dist/commonjs/sdk/subscriptions.js.map +1 -1
- package/dist/esm/__tests__/subscriptions.test.js +15 -0
- package/dist/esm/__tests__/subscriptions.test.js.map +1 -1
- package/dist/esm/funcs/billableMetricsCreate.js +1 -1
- package/dist/esm/funcs/billableMetricsCreate.js.map +1 -1
- package/dist/esm/funcs/billableMetricsGet.js +1 -1
- package/dist/esm/funcs/billableMetricsGet.js.map +1 -1
- package/dist/esm/funcs/billableMetricsGetPrice.js +1 -1
- package/dist/esm/funcs/billableMetricsGetPrice.js.map +1 -1
- package/dist/esm/funcs/billableMetricsGetPriceLegacy.js +1 -1
- package/dist/esm/funcs/billableMetricsGetPriceLegacy.js.map +1 -1
- package/dist/esm/funcs/billableMetricsList.js +1 -1
- package/dist/esm/funcs/billableMetricsList.js.map +1 -1
- package/dist/esm/funcs/billableMetricsUpdate.js +1 -1
- package/dist/esm/funcs/billableMetricsUpdate.js.map +1 -1
- package/dist/esm/funcs/consumersGet.js +1 -1
- package/dist/esm/funcs/consumersGet.js.map +1 -1
- package/dist/esm/funcs/consumersListOffSessionPaymentMethods.js +1 -1
- package/dist/esm/funcs/consumersListOffSessionPaymentMethods.js.map +1 -1
- package/dist/esm/funcs/customersCheckAuthorizationSessionStatus.js +1 -1
- package/dist/esm/funcs/customersCheckAuthorizationSessionStatus.js.map +1 -1
- package/dist/esm/funcs/customersCreate.js +1 -1
- package/dist/esm/funcs/customersCreate.js.map +1 -1
- package/dist/esm/funcs/customersCreateAuthorizationSession.js +1 -1
- package/dist/esm/funcs/customersCreateAuthorizationSession.js.map +1 -1
- package/dist/esm/funcs/customersGet.js +1 -1
- package/dist/esm/funcs/customersGet.js.map +1 -1
- package/dist/esm/funcs/customersList.js +1 -1
- package/dist/esm/funcs/customersList.js.map +1 -1
- package/dist/esm/funcs/customersUpdateCustomer.js +1 -1
- package/dist/esm/funcs/customersUpdateCustomer.js.map +1 -1
- package/dist/esm/funcs/disputesCreate.js +1 -1
- package/dist/esm/funcs/disputesCreate.js.map +1 -1
- package/dist/esm/funcs/disputesList.js +1 -1
- package/dist/esm/funcs/disputesList.js.map +1 -1
- package/dist/esm/funcs/entitlementsCreate.js +1 -1
- package/dist/esm/funcs/entitlementsCreate.js.map +1 -1
- package/dist/esm/funcs/entitlementsListActive.js +1 -1
- package/dist/esm/funcs/entitlementsListActive.js.map +1 -1
- package/dist/esm/funcs/externalBankAccountsCreate.js +1 -1
- package/dist/esm/funcs/externalBankAccountsCreate.js.map +1 -1
- package/dist/esm/funcs/externalBankAccountsDelete.js +1 -1
- package/dist/esm/funcs/externalBankAccountsDelete.js.map +1 -1
- package/dist/esm/funcs/externalBankAccountsGet.js +1 -1
- package/dist/esm/funcs/externalBankAccountsGet.js.map +1 -1
- package/dist/esm/funcs/externalBankAccountsList.js +1 -1
- package/dist/esm/funcs/externalBankAccountsList.js.map +1 -1
- package/dist/esm/funcs/externalBankAccountsUpdate.js +1 -1
- package/dist/esm/funcs/externalBankAccountsUpdate.js.map +1 -1
- package/dist/esm/funcs/merchantsGet.js +1 -1
- package/dist/esm/funcs/merchantsGet.js.map +1 -1
- package/dist/esm/funcs/merchantsListEligibleCountries.js +1 -1
- package/dist/esm/funcs/merchantsListEligibleCountries.js.map +1 -1
- package/dist/esm/funcs/payoutsGet.js +1 -1
- package/dist/esm/funcs/payoutsGet.js.map +1 -1
- package/dist/esm/funcs/payoutsList.js +1 -1
- package/dist/esm/funcs/payoutsList.js.map +1 -1
- package/dist/esm/funcs/payoutsListMethods.js +1 -1
- package/dist/esm/funcs/payoutsListMethods.js.map +1 -1
- package/dist/esm/funcs/plansCreate.js +1 -1
- package/dist/esm/funcs/plansCreate.js.map +1 -1
- package/dist/esm/funcs/plansGet.js +1 -1
- package/dist/esm/funcs/plansGet.js.map +1 -1
- package/dist/esm/funcs/plansList.js +1 -1
- package/dist/esm/funcs/plansList.js.map +1 -1
- package/dist/esm/funcs/plansUpdate.js +1 -1
- package/dist/esm/funcs/plansUpdate.js.map +1 -1
- package/dist/esm/funcs/pricesCreate.js +1 -1
- package/dist/esm/funcs/pricesCreate.js.map +1 -1
- package/dist/esm/funcs/pricesGet.js +1 -1
- package/dist/esm/funcs/pricesGet.js.map +1 -1
- package/dist/esm/funcs/pricesList.js +1 -1
- package/dist/esm/funcs/pricesList.js.map +1 -1
- package/dist/esm/funcs/pricesUpdate.js +1 -1
- package/dist/esm/funcs/pricesUpdate.js.map +1 -1
- package/dist/esm/funcs/productsCreate.js +1 -1
- package/dist/esm/funcs/productsCreate.js.map +1 -1
- package/dist/esm/funcs/productsGet.js +1 -1
- package/dist/esm/funcs/productsGet.js.map +1 -1
- package/dist/esm/funcs/productsList.js +1 -1
- package/dist/esm/funcs/productsList.js.map +1 -1
- package/dist/esm/funcs/productsUpdate.js +1 -1
- package/dist/esm/funcs/productsUpdate.js.map +1 -1
- package/dist/esm/funcs/sourcesAdd.js +1 -1
- package/dist/esm/funcs/sourcesAdd.js.map +1 -1
- package/dist/esm/funcs/sourcesApproveEvent.js +1 -1
- package/dist/esm/funcs/sourcesApproveEvent.js.map +1 -1
- package/dist/esm/funcs/sourcesBulkApproveEvents.js +1 -1
- package/dist/esm/funcs/sourcesBulkApproveEvents.js.map +1 -1
- package/dist/esm/funcs/sourcesCreate.js +1 -1
- package/dist/esm/funcs/sourcesCreate.js.map +1 -1
- package/dist/esm/funcs/sourcesDelete.js +1 -1
- package/dist/esm/funcs/sourcesDelete.js.map +1 -1
- package/dist/esm/funcs/sourcesEventsBulkReject.js +1 -1
- package/dist/esm/funcs/sourcesEventsBulkReject.js.map +1 -1
- package/dist/esm/funcs/sourcesGet.js +1 -1
- package/dist/esm/funcs/sourcesGet.js.map +1 -1
- package/dist/esm/funcs/sourcesGetRule.js +1 -1
- package/dist/esm/funcs/sourcesGetRule.js.map +1 -1
- package/dist/esm/funcs/sourcesList.js +1 -1
- package/dist/esm/funcs/sourcesList.js.map +1 -1
- package/dist/esm/funcs/sourcesListEvents.js +1 -1
- package/dist/esm/funcs/sourcesListEvents.js.map +1 -1
- package/dist/esm/funcs/sourcesListRules.js +1 -1
- package/dist/esm/funcs/sourcesListRules.js.map +1 -1
- package/dist/esm/funcs/sourcesRejectEvent.js +1 -1
- package/dist/esm/funcs/sourcesRejectEvent.js.map +1 -1
- package/dist/esm/funcs/sourcesUpdate.js +1 -1
- package/dist/esm/funcs/sourcesUpdate.js.map +1 -1
- package/dist/esm/funcs/sourcesUpdateRule.js +1 -1
- package/dist/esm/funcs/sourcesUpdateRule.js.map +1 -1
- package/{funcs/productsList.d.ts → dist/esm/funcs/subscriptionsCreateSubscription.d.ts} +7 -3
- package/dist/esm/funcs/subscriptionsCreateSubscription.d.ts.map +1 -0
- package/dist/esm/funcs/subscriptionsCreateSubscription.js +83 -0
- package/dist/esm/funcs/subscriptionsCreateSubscription.js.map +1 -0
- package/dist/esm/funcs/subscriptionsGeneratePortalLink.js +1 -1
- package/dist/esm/funcs/subscriptionsGeneratePortalLink.js.map +1 -1
- package/dist/esm/funcs/subscriptionsGet.js +1 -1
- package/dist/esm/funcs/subscriptionsGet.js.map +1 -1
- package/dist/esm/funcs/subscriptionsList.js +1 -1
- package/dist/esm/funcs/subscriptionsList.js.map +1 -1
- package/dist/esm/funcs/usageEventsBatchCreate.js +1 -1
- package/dist/esm/funcs/usageEventsBatchCreate.js.map +1 -1
- package/dist/esm/funcs/usageEventsCreate.js +1 -1
- package/dist/esm/funcs/usageEventsCreate.js.map +1 -1
- package/dist/esm/funcs/usageEventsGet.js +1 -1
- package/dist/esm/funcs/usageEventsGet.js.map +1 -1
- package/dist/esm/funcs/usageEventsList.js +1 -1
- package/dist/esm/funcs/usageEventsList.js.map +1 -1
- package/dist/esm/funcs/usersGet.js +1 -1
- package/dist/esm/funcs/usersGet.js.map +1 -1
- package/dist/esm/funcs/usersUpdate.js +1 -1
- package/dist/esm/funcs/usersUpdate.js.map +1 -1
- package/dist/esm/funcs/walletsCreateTopup.js +1 -1
- package/dist/esm/funcs/walletsCreateTopup.js.map +1 -1
- package/dist/esm/funcs/walletsGet.js +1 -1
- package/dist/esm/funcs/walletsGet.js.map +1 -1
- package/dist/esm/funcs/walletsGetTopup.js +1 -1
- package/dist/esm/funcs/walletsGetTopup.js.map +1 -1
- package/dist/esm/funcs/walletsList.js +1 -1
- package/dist/esm/funcs/walletsList.js.map +1 -1
- package/dist/esm/funcs/walletsListTopups.js +1 -1
- package/dist/esm/funcs/walletsListTopups.js.map +1 -1
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/lib/config.js.map +1 -1
- package/dist/esm/models/billablemetric.d.ts +27 -0
- package/dist/esm/models/billablemetric.d.ts.map +1 -1
- package/dist/esm/models/billablemetric.js +21 -0
- package/dist/esm/models/billablemetric.js.map +1 -1
- package/dist/esm/models/componentsschemasprice.d.ts +27 -0
- package/dist/esm/models/componentsschemasprice.d.ts.map +1 -1
- package/dist/esm/models/componentsschemasprice.js +21 -0
- package/dist/esm/models/componentsschemasprice.js.map +1 -1
- package/dist/esm/models/index.d.ts +0 -1
- package/dist/esm/models/index.d.ts.map +1 -1
- package/dist/esm/models/index.js +0 -1
- package/dist/esm/models/index.js.map +1 -1
- package/dist/esm/models/operations/createbillablemetric.d.ts +36 -0
- package/dist/esm/models/operations/createbillablemetric.d.ts.map +1 -1
- package/dist/esm/models/operations/createbillablemetric.js +24 -0
- package/dist/esm/models/operations/createbillablemetric.js.map +1 -1
- package/dist/esm/models/operations/createplan.d.ts +0 -6
- package/dist/esm/models/operations/createplan.d.ts.map +1 -1
- package/dist/esm/models/operations/createplan.js +0 -3
- package/dist/esm/models/operations/createplan.js.map +1 -1
- package/dist/esm/models/operations/createprice.d.ts +36 -0
- package/dist/esm/models/operations/createprice.d.ts.map +1 -1
- package/dist/esm/models/operations/createprice.js +25 -0
- package/dist/esm/models/operations/createprice.js.map +1 -1
- package/dist/esm/models/operations/createsubscription.d.ts +144 -0
- package/dist/esm/models/operations/createsubscription.d.ts.map +1 -0
- package/dist/esm/models/operations/createsubscription.js +108 -0
- package/dist/esm/models/operations/createsubscription.js.map +1 -0
- package/dist/esm/models/operations/index.d.ts +1 -0
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +1 -0
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/models/operations/updatecustomer.d.ts +4 -4
- package/dist/esm/models/operations/updatecustomer.js +4 -4
- package/dist/esm/models/plan.d.ts +29 -6
- package/dist/esm/models/plan.d.ts.map +1 -1
- package/dist/esm/models/plan.js +38 -3
- package/dist/esm/models/plan.js.map +1 -1
- package/dist/esm/models/price.d.ts +30 -3
- package/dist/esm/models/price.d.ts.map +1 -1
- package/dist/esm/models/price.js +23 -2
- package/dist/esm/models/price.js.map +1 -1
- package/dist/esm/models/pricepropertiesunion.d.ts +4 -0
- package/dist/esm/models/pricepropertiesunion.d.ts.map +1 -1
- package/dist/esm/models/pricepropertiesunion.js +12 -3
- package/dist/esm/models/pricepropertiesunion.js.map +1 -1
- package/dist/esm/models/schemasprice.d.ts +27 -0
- package/dist/esm/models/schemasprice.d.ts.map +1 -1
- package/dist/esm/models/schemasprice.js +21 -0
- package/dist/esm/models/schemasprice.js.map +1 -1
- package/dist/esm/models/subscription.d.ts +172 -0
- package/dist/esm/models/subscription.d.ts.map +1 -1
- package/dist/esm/models/subscription.js +122 -0
- package/dist/esm/models/subscription.js.map +1 -1
- package/dist/esm/models/usageevent.d.ts +5 -0
- package/dist/esm/models/usageevent.d.ts.map +1 -1
- package/dist/esm/models/usageevent.js +2 -0
- package/dist/esm/models/usageevent.js.map +1 -1
- package/dist/esm/sdk/subscriptions.d.ts +7 -0
- package/dist/esm/sdk/subscriptions.d.ts.map +1 -1
- package/dist/esm/sdk/subscriptions.js +10 -0
- package/dist/esm/sdk/subscriptions.js.map +1 -1
- package/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/package.json +6 -1
- package/src/__tests__/subscriptions.test.ts +18 -0
- package/src/funcs/billableMetricsCreate.ts +1 -1
- package/src/funcs/billableMetricsGet.ts +1 -1
- package/src/funcs/billableMetricsGetPrice.ts +1 -1
- package/src/funcs/billableMetricsGetPriceLegacy.ts +1 -1
- package/src/funcs/billableMetricsList.ts +1 -1
- package/src/funcs/billableMetricsUpdate.ts +1 -1
- package/src/funcs/consumersGet.ts +1 -1
- package/src/funcs/consumersListOffSessionPaymentMethods.ts +1 -1
- package/src/funcs/customersCheckAuthorizationSessionStatus.ts +1 -1
- package/src/funcs/customersCreate.ts +1 -1
- package/src/funcs/customersCreateAuthorizationSession.ts +1 -1
- package/src/funcs/customersGet.ts +1 -1
- package/src/funcs/customersList.ts +1 -1
- package/src/funcs/customersUpdateCustomer.ts +1 -1
- package/src/funcs/disputesCreate.ts +1 -1
- package/src/funcs/disputesList.ts +1 -1
- package/src/funcs/entitlementsCreate.ts +1 -1
- package/src/funcs/entitlementsListActive.ts +1 -1
- package/src/funcs/externalBankAccountsCreate.ts +1 -1
- package/src/funcs/externalBankAccountsDelete.ts +1 -1
- package/src/funcs/externalBankAccountsGet.ts +1 -1
- package/src/funcs/externalBankAccountsList.ts +1 -1
- package/src/funcs/externalBankAccountsUpdate.ts +1 -1
- package/src/funcs/merchantsGet.ts +1 -1
- package/src/funcs/merchantsListEligibleCountries.ts +1 -1
- package/src/funcs/payoutsGet.ts +1 -1
- package/src/funcs/payoutsList.ts +1 -1
- package/src/funcs/payoutsListMethods.ts +1 -1
- package/src/funcs/plansCreate.ts +1 -1
- package/src/funcs/plansGet.ts +1 -1
- package/src/funcs/plansList.ts +1 -1
- package/src/funcs/plansUpdate.ts +1 -1
- package/src/funcs/pricesCreate.ts +1 -1
- package/src/funcs/pricesGet.ts +1 -1
- package/src/funcs/pricesList.ts +1 -1
- package/src/funcs/pricesUpdate.ts +1 -1
- package/src/funcs/productsCreate.ts +1 -1
- package/src/funcs/productsGet.ts +1 -1
- package/src/funcs/productsList.ts +1 -1
- package/src/funcs/productsUpdate.ts +1 -1
- package/src/funcs/sourcesAdd.ts +1 -1
- package/src/funcs/sourcesApproveEvent.ts +1 -1
- package/src/funcs/sourcesBulkApproveEvents.ts +1 -1
- package/src/funcs/sourcesCreate.ts +1 -1
- package/src/funcs/sourcesDelete.ts +1 -1
- package/src/funcs/sourcesEventsBulkReject.ts +1 -1
- package/src/funcs/sourcesGet.ts +1 -1
- package/src/funcs/sourcesGetRule.ts +1 -1
- package/src/funcs/sourcesList.ts +1 -1
- package/src/funcs/sourcesListEvents.ts +1 -1
- package/src/funcs/sourcesListRules.ts +1 -1
- package/src/funcs/sourcesRejectEvent.ts +1 -1
- package/src/funcs/sourcesUpdate.ts +1 -1
- package/src/funcs/sourcesUpdateRule.ts +1 -1
- package/src/funcs/subscriptionsCreateSubscription.ts +175 -0
- package/src/funcs/subscriptionsGeneratePortalLink.ts +1 -1
- package/src/funcs/subscriptionsGet.ts +1 -1
- package/src/funcs/subscriptionsList.ts +1 -1
- package/src/funcs/usageEventsBatchCreate.ts +1 -1
- package/src/funcs/usageEventsCreate.ts +1 -1
- package/src/funcs/usageEventsGet.ts +1 -1
- package/src/funcs/usageEventsList.ts +1 -1
- package/src/funcs/usersGet.ts +1 -1
- package/src/funcs/usersUpdate.ts +1 -1
- package/src/funcs/walletsCreateTopup.ts +1 -1
- package/src/funcs/walletsGet.ts +1 -1
- package/src/funcs/walletsGetTopup.ts +1 -1
- package/src/funcs/walletsList.ts +1 -1
- package/src/funcs/walletsListTopups.ts +1 -1
- package/src/lib/config.ts +3 -3
- package/src/models/billablemetric.ts +30 -0
- package/src/models/componentsschemasprice.ts +34 -0
- package/src/models/index.ts +0 -1
- package/src/models/operations/createbillablemetric.ts +39 -0
- package/src/models/operations/createplan.ts +0 -8
- package/src/models/operations/createprice.ts +38 -0
- package/src/models/operations/createsubscription.ts +254 -0
- package/src/models/operations/index.ts +1 -0
- package/src/models/operations/updatecustomer.ts +8 -8
- package/src/models/plan.ts +73 -13
- package/src/models/price.ts +36 -5
- package/src/models/pricepropertiesunion.ts +25 -7
- package/src/models/schemasprice.ts +33 -0
- package/src/models/subscription.ts +276 -0
- package/src/models/usageevent.ts +7 -0
- package/src/sdk/subscriptions.ts +18 -0
- package/core.d.ts +0 -10
- package/core.d.ts.map +0 -1
- package/dist/commonjs/models/paymentoptions.d.ts +0 -55
- package/dist/commonjs/models/paymentoptions.d.ts.map +0 -1
- package/dist/commonjs/models/paymentoptions.js +0 -77
- package/dist/commonjs/models/paymentoptions.js.map +0 -1
- package/dist/esm/models/paymentoptions.d.ts +0 -55
- package/dist/esm/models/paymentoptions.d.ts.map +0 -1
- package/dist/esm/models/paymentoptions.js +0 -39
- package/dist/esm/models/paymentoptions.js.map +0 -1
- package/examples/node_modules/.package-lock.json +0 -627
- package/examples/node_modules/@esbuild/darwin-arm64/package.json +0 -20
- package/examples/node_modules/@types/node/assert/strict.d.ts +0 -8
- package/examples/node_modules/@types/node/assert.d.ts +0 -1044
- package/examples/node_modules/@types/node/async_hooks.d.ts +0 -605
- package/examples/node_modules/@types/node/buffer.buffer.d.ts +0 -462
- package/examples/node_modules/@types/node/buffer.d.ts +0 -1932
- package/examples/node_modules/@types/node/child_process.d.ts +0 -1452
- package/examples/node_modules/@types/node/cluster.d.ts +0 -578
- package/examples/node_modules/@types/node/compatibility/disposable.d.ts +0 -16
- package/examples/node_modules/@types/node/compatibility/index.d.ts +0 -9
- package/examples/node_modules/@types/node/compatibility/indexable.d.ts +0 -20
- package/examples/node_modules/@types/node/compatibility/iterators.d.ts +0 -21
- package/examples/node_modules/@types/node/console.d.ts +0 -452
- package/examples/node_modules/@types/node/constants.d.ts +0 -21
- package/examples/node_modules/@types/node/crypto.d.ts +0 -4570
- package/examples/node_modules/@types/node/dgram.d.ts +0 -596
- package/examples/node_modules/@types/node/diagnostics_channel.d.ts +0 -578
- package/examples/node_modules/@types/node/dns/promises.d.ts +0 -479
- package/examples/node_modules/@types/node/dns.d.ts +0 -871
- package/examples/node_modules/@types/node/domain.d.ts +0 -170
- package/examples/node_modules/@types/node/events.d.ts +0 -931
- package/examples/node_modules/@types/node/fs/promises.d.ts +0 -1248
- package/examples/node_modules/@types/node/fs.d.ts +0 -4362
- package/examples/node_modules/@types/node/globals.d.ts +0 -170
- package/examples/node_modules/@types/node/globals.typedarray.d.ts +0 -21
- package/examples/node_modules/@types/node/http.d.ts +0 -2031
- package/examples/node_modules/@types/node/http2.d.ts +0 -2623
- package/examples/node_modules/@types/node/https.d.ts +0 -549
- package/examples/node_modules/@types/node/index.d.ts +0 -93
- package/examples/node_modules/@types/node/inspector.generated.d.ts +0 -3966
- package/examples/node_modules/@types/node/module.d.ts +0 -539
- package/examples/node_modules/@types/node/net.d.ts +0 -1011
- package/examples/node_modules/@types/node/os.d.ts +0 -495
- package/examples/node_modules/@types/node/package.json +0 -140
- package/examples/node_modules/@types/node/path.d.ts +0 -200
- package/examples/node_modules/@types/node/perf_hooks.d.ts +0 -963
- package/examples/node_modules/@types/node/process.d.ts +0 -1956
- package/examples/node_modules/@types/node/punycode.d.ts +0 -117
- package/examples/node_modules/@types/node/querystring.d.ts +0 -152
- package/examples/node_modules/@types/node/readline/promises.d.ts +0 -162
- package/examples/node_modules/@types/node/readline.d.ts +0 -589
- package/examples/node_modules/@types/node/repl.d.ts +0 -430
- package/examples/node_modules/@types/node/sea.d.ts +0 -153
- package/examples/node_modules/@types/node/stream/consumers.d.ts +0 -38
- package/examples/node_modules/@types/node/stream/promises.d.ts +0 -90
- package/examples/node_modules/@types/node/stream/web.d.ts +0 -533
- package/examples/node_modules/@types/node/stream.d.ts +0 -1668
- package/examples/node_modules/@types/node/string_decoder.d.ts +0 -67
- package/examples/node_modules/@types/node/test.d.ts +0 -1807
- package/examples/node_modules/@types/node/timers/promises.d.ts +0 -108
- package/examples/node_modules/@types/node/timers.d.ts +0 -286
- package/examples/node_modules/@types/node/tls.d.ts +0 -1231
- package/examples/node_modules/@types/node/trace_events.d.ts +0 -197
- package/examples/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +0 -460
- package/examples/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +0 -19
- package/examples/node_modules/@types/node/ts5.6/index.d.ts +0 -93
- package/examples/node_modules/@types/node/tty.d.ts +0 -208
- package/examples/node_modules/@types/node/url.d.ts +0 -964
- package/examples/node_modules/@types/node/util.d.ts +0 -2331
- package/examples/node_modules/@types/node/v8.d.ts +0 -808
- package/examples/node_modules/@types/node/vm.d.ts +0 -1030
- package/examples/node_modules/@types/node/wasi.d.ts +0 -181
- package/examples/node_modules/@types/node/web-globals/abortcontroller.d.ts +0 -34
- package/examples/node_modules/@types/node/web-globals/domexception.d.ts +0 -68
- package/examples/node_modules/@types/node/web-globals/events.d.ts +0 -94
- package/examples/node_modules/@types/node/web-globals/fetch.d.ts +0 -46
- package/examples/node_modules/@types/node/worker_threads.d.ts +0 -743
- package/examples/node_modules/@types/node/zlib.d.ts +0 -539
- package/examples/node_modules/dotenv/config.d.ts +0 -1
- package/examples/node_modules/dotenv/config.js +0 -9
- package/examples/node_modules/dotenv/lib/cli-options.js +0 -17
- package/examples/node_modules/dotenv/lib/env-options.js +0 -28
- package/examples/node_modules/dotenv/lib/main.d.ts +0 -162
- package/examples/node_modules/dotenv/lib/main.js +0 -386
- package/examples/node_modules/dotenv/package.json +0 -62
- package/examples/node_modules/esbuild/install.js +0 -289
- package/examples/node_modules/esbuild/lib/main.d.ts +0 -716
- package/examples/node_modules/esbuild/lib/main.js +0 -2242
- package/examples/node_modules/esbuild/package.json +0 -49
- package/examples/node_modules/fsevents/fsevents.d.ts +0 -46
- package/examples/node_modules/fsevents/fsevents.js +0 -83
- package/examples/node_modules/fsevents/package.json +0 -62
- package/examples/node_modules/get-tsconfig/dist/index.mjs +0 -7
- package/examples/node_modules/get-tsconfig/package.json +0 -46
- package/examples/node_modules/resolve-pkg-maps/dist/index.mjs +0 -1
- package/examples/node_modules/resolve-pkg-maps/package.json +0 -42
- package/examples/node_modules/tsx/dist/cjs/api/index.mjs +0 -1
- package/examples/node_modules/tsx/dist/cjs/index.mjs +0 -1
- package/examples/node_modules/tsx/dist/cli.mjs +0 -55
- package/examples/node_modules/tsx/dist/client-BQVF1NaW.mjs +0 -1
- package/examples/node_modules/tsx/dist/esm/api/index.mjs +0 -1
- package/examples/node_modules/tsx/dist/esm/index.mjs +0 -2
- package/examples/node_modules/tsx/dist/get-pipe-path-BHW2eJdv.mjs +0 -1
- package/examples/node_modules/tsx/dist/index-7AaEi15b.mjs +0 -14
- package/examples/node_modules/tsx/dist/index-gbaejti9.mjs +0 -1
- package/examples/node_modules/tsx/dist/lexer-DQCqS3nf.mjs +0 -3
- package/examples/node_modules/tsx/dist/loader.mjs +0 -1
- package/examples/node_modules/tsx/dist/node-features-_8ZFwP_x.mjs +0 -1
- package/examples/node_modules/tsx/dist/package-DqlROeDy.mjs +0 -1
- package/examples/node_modules/tsx/dist/patch-repl.mjs +0 -1
- package/examples/node_modules/tsx/dist/preflight.mjs +0 -1
- package/examples/node_modules/tsx/dist/register-B7jrtLTO.mjs +0 -1
- package/examples/node_modules/tsx/dist/register-CFH5oNdT.mjs +0 -4
- package/examples/node_modules/tsx/dist/repl.mjs +0 -3
- package/examples/node_modules/tsx/dist/require-DQxpCAr4.mjs +0 -1
- package/examples/node_modules/tsx/dist/suppress-warnings.mjs +0 -1
- package/examples/node_modules/tsx/dist/temporary-directory-CwHp0_NW.mjs +0 -1
- package/examples/node_modules/tsx/dist/types-Cxp8y2TL.d.ts +0 -5
- package/examples/node_modules/tsx/package.json +0 -68
- package/examples/node_modules/undici-types/agent.d.ts +0 -31
- package/examples/node_modules/undici-types/api.d.ts +0 -43
- package/examples/node_modules/undici-types/balanced-pool.d.ts +0 -29
- package/examples/node_modules/undici-types/cache.d.ts +0 -36
- package/examples/node_modules/undici-types/client.d.ts +0 -108
- package/examples/node_modules/undici-types/connector.d.ts +0 -34
- package/examples/node_modules/undici-types/content-type.d.ts +0 -21
- package/examples/node_modules/undici-types/cookies.d.ts +0 -28
- package/examples/node_modules/undici-types/diagnostics-channel.d.ts +0 -66
- package/examples/node_modules/undici-types/dispatcher.d.ts +0 -256
- package/examples/node_modules/undici-types/env-http-proxy-agent.d.ts +0 -21
- package/examples/node_modules/undici-types/errors.d.ts +0 -149
- package/examples/node_modules/undici-types/eventsource.d.ts +0 -61
- package/examples/node_modules/undici-types/fetch.d.ts +0 -209
- package/examples/node_modules/undici-types/file.d.ts +0 -39
- package/examples/node_modules/undici-types/filereader.d.ts +0 -54
- package/examples/node_modules/undici-types/formdata.d.ts +0 -108
- package/examples/node_modules/undici-types/global-dispatcher.d.ts +0 -9
- package/examples/node_modules/undici-types/global-origin.d.ts +0 -7
- package/examples/node_modules/undici-types/handlers.d.ts +0 -15
- package/examples/node_modules/undici-types/header.d.ts +0 -4
- package/examples/node_modules/undici-types/index.d.ts +0 -71
- package/examples/node_modules/undici-types/interceptors.d.ts +0 -17
- package/examples/node_modules/undici-types/mock-agent.d.ts +0 -50
- package/examples/node_modules/undici-types/mock-client.d.ts +0 -25
- package/examples/node_modules/undici-types/mock-errors.d.ts +0 -12
- package/examples/node_modules/undici-types/mock-interceptor.d.ts +0 -93
- package/examples/node_modules/undici-types/mock-pool.d.ts +0 -25
- package/examples/node_modules/undici-types/package.json +0 -55
- package/examples/node_modules/undici-types/patch.d.ts +0 -33
- package/examples/node_modules/undici-types/pool-stats.d.ts +0 -19
- package/examples/node_modules/undici-types/pool.d.ts +0 -39
- package/examples/node_modules/undici-types/proxy-agent.d.ts +0 -28
- package/examples/node_modules/undici-types/readable.d.ts +0 -65
- package/examples/node_modules/undici-types/retry-agent.d.ts +0 -8
- package/examples/node_modules/undici-types/retry-handler.d.ts +0 -116
- package/examples/node_modules/undici-types/util.d.ts +0 -18
- package/examples/node_modules/undici-types/webidl.d.ts +0 -228
- package/examples/node_modules/undici-types/websocket.d.ts +0 -150
- package/funcs/billableMetricsCreate.d.ts +0 -19
- package/funcs/billableMetricsCreate.d.ts.map +0 -1
- package/funcs/billableMetricsGet.d.ts +0 -16
- package/funcs/billableMetricsGet.d.ts.map +0 -1
- package/funcs/billableMetricsGetPrice.d.ts +0 -16
- package/funcs/billableMetricsGetPrice.d.ts.map +0 -1
- package/funcs/billableMetricsGetPriceLegacy.d.ts +0 -16
- package/funcs/billableMetricsGetPriceLegacy.d.ts.map +0 -1
- package/funcs/billableMetricsList.d.ts +0 -15
- package/funcs/billableMetricsList.d.ts.map +0 -1
- package/funcs/billableMetricsUpdate.d.ts +0 -16
- package/funcs/billableMetricsUpdate.d.ts.map +0 -1
- package/funcs/consumersGet.d.ts +0 -16
- package/funcs/consumersGet.d.ts.map +0 -1
- package/funcs/consumersListOffSessionPaymentMethods.d.ts +0 -15
- package/funcs/consumersListOffSessionPaymentMethods.d.ts.map +0 -1
- package/funcs/customersCheckAuthorizationSessionStatus.d.ts +0 -16
- package/funcs/customersCheckAuthorizationSessionStatus.d.ts.map +0 -1
- package/funcs/customersCreate.d.ts +0 -18
- package/funcs/customersCreate.d.ts.map +0 -1
- package/funcs/customersCreateAuthorizationSession.d.ts +0 -19
- package/funcs/customersCreateAuthorizationSession.d.ts.map +0 -1
- package/funcs/customersGet.d.ts +0 -16
- package/funcs/customersGet.d.ts.map +0 -1
- package/funcs/customersList.d.ts +0 -15
- package/funcs/customersList.d.ts.map +0 -1
- package/funcs/customersUpdateCustomer.d.ts +0 -16
- package/funcs/customersUpdateCustomer.d.ts.map +0 -1
- package/funcs/disputesCreate.d.ts +0 -18
- package/funcs/disputesCreate.d.ts.map +0 -1
- package/funcs/disputesList.d.ts.map +0 -1
- package/funcs/entitlementsCreate.d.ts +0 -18
- package/funcs/entitlementsCreate.d.ts.map +0 -1
- package/funcs/entitlementsListActive.d.ts +0 -15
- package/funcs/entitlementsListActive.d.ts.map +0 -1
- package/funcs/externalBankAccountsCreate.d.ts +0 -19
- package/funcs/externalBankAccountsCreate.d.ts.map +0 -1
- package/funcs/externalBankAccountsDelete.d.ts +0 -18
- package/funcs/externalBankAccountsDelete.d.ts.map +0 -1
- package/funcs/externalBankAccountsGet.d.ts +0 -19
- package/funcs/externalBankAccountsGet.d.ts.map +0 -1
- package/funcs/externalBankAccountsList.d.ts +0 -18
- package/funcs/externalBankAccountsList.d.ts.map +0 -1
- package/funcs/externalBankAccountsUpdate.d.ts +0 -19
- package/funcs/externalBankAccountsUpdate.d.ts.map +0 -1
- package/funcs/merchantsGet.d.ts +0 -16
- package/funcs/merchantsGet.d.ts.map +0 -1
- package/funcs/merchantsListEligibleCountries.d.ts +0 -17
- package/funcs/merchantsListEligibleCountries.d.ts.map +0 -1
- package/funcs/payoutsGet.d.ts +0 -19
- package/funcs/payoutsGet.d.ts.map +0 -1
- package/funcs/payoutsList.d.ts +0 -18
- package/funcs/payoutsList.d.ts.map +0 -1
- package/funcs/payoutsListMethods.d.ts +0 -18
- package/funcs/payoutsListMethods.d.ts.map +0 -1
- package/funcs/plansCreate.d.ts +0 -16
- package/funcs/plansCreate.d.ts.map +0 -1
- package/funcs/plansGet.d.ts +0 -16
- package/funcs/plansGet.d.ts.map +0 -1
- package/funcs/plansList.d.ts +0 -15
- package/funcs/plansList.d.ts.map +0 -1
- package/funcs/plansUpdate.d.ts +0 -16
- package/funcs/plansUpdate.d.ts.map +0 -1
- package/funcs/pricesCreate.d.ts +0 -16
- package/funcs/pricesCreate.d.ts.map +0 -1
- package/funcs/pricesGet.d.ts +0 -16
- package/funcs/pricesGet.d.ts.map +0 -1
- package/funcs/pricesList.d.ts +0 -15
- package/funcs/pricesList.d.ts.map +0 -1
- package/funcs/pricesUpdate.d.ts +0 -16
- package/funcs/pricesUpdate.d.ts.map +0 -1
- package/funcs/productsCreate.d.ts +0 -16
- package/funcs/productsCreate.d.ts.map +0 -1
- package/funcs/productsGet.d.ts +0 -16
- package/funcs/productsGet.d.ts.map +0 -1
- package/funcs/productsList.d.ts.map +0 -1
- package/funcs/productsUpdate.d.ts +0 -16
- package/funcs/productsUpdate.d.ts.map +0 -1
- package/funcs/sourcesAdd.d.ts +0 -19
- package/funcs/sourcesAdd.d.ts.map +0 -1
- package/funcs/sourcesApproveEvent.d.ts +0 -19
- package/funcs/sourcesApproveEvent.d.ts.map +0 -1
- package/funcs/sourcesBulkApproveEvents.d.ts +0 -18
- package/funcs/sourcesBulkApproveEvents.d.ts.map +0 -1
- package/funcs/sourcesCreate.d.ts +0 -18
- package/funcs/sourcesCreate.d.ts.map +0 -1
- package/funcs/sourcesDelete.d.ts +0 -15
- package/funcs/sourcesDelete.d.ts.map +0 -1
- package/funcs/sourcesEventsBulkReject.d.ts +0 -18
- package/funcs/sourcesEventsBulkReject.d.ts.map +0 -1
- package/funcs/sourcesGet.d.ts +0 -16
- package/funcs/sourcesGet.d.ts.map +0 -1
- package/funcs/sourcesGetRule.d.ts +0 -16
- package/funcs/sourcesGetRule.d.ts.map +0 -1
- package/funcs/sourcesList.d.ts +0 -15
- package/funcs/sourcesList.d.ts.map +0 -1
- package/funcs/sourcesListEvents.d.ts +0 -18
- package/funcs/sourcesListEvents.d.ts.map +0 -1
- package/funcs/sourcesListRules.d.ts +0 -18
- package/funcs/sourcesListRules.d.ts.map +0 -1
- package/funcs/sourcesRejectEvent.d.ts +0 -19
- package/funcs/sourcesRejectEvent.d.ts.map +0 -1
- package/funcs/sourcesUpdate.d.ts +0 -16
- package/funcs/sourcesUpdate.d.ts.map +0 -1
- package/funcs/sourcesUpdateRule.d.ts +0 -16
- package/funcs/sourcesUpdateRule.d.ts.map +0 -1
- package/funcs/subscriptionsGeneratePortalLink.d.ts +0 -19
- package/funcs/subscriptionsGeneratePortalLink.d.ts.map +0 -1
- package/funcs/subscriptionsGet.d.ts +0 -16
- package/funcs/subscriptionsGet.d.ts.map +0 -1
- package/funcs/subscriptionsList.d.ts +0 -15
- package/funcs/subscriptionsList.d.ts.map +0 -1
- package/funcs/usageEventsBatchCreate.d.ts +0 -19
- package/funcs/usageEventsBatchCreate.d.ts.map +0 -1
- package/funcs/usageEventsCreate.d.ts +0 -18
- package/funcs/usageEventsCreate.d.ts.map +0 -1
- package/funcs/usageEventsGet.d.ts +0 -16
- package/funcs/usageEventsGet.d.ts.map +0 -1
- package/funcs/usageEventsList.d.ts +0 -15
- package/funcs/usageEventsList.d.ts.map +0 -1
- package/funcs/usersGet.d.ts +0 -16
- package/funcs/usersGet.d.ts.map +0 -1
- package/funcs/usersUpdate.d.ts +0 -16
- package/funcs/usersUpdate.d.ts.map +0 -1
- package/funcs/walletsCreateTopup.d.ts +0 -16
- package/funcs/walletsCreateTopup.d.ts.map +0 -1
- package/funcs/walletsGet.d.ts +0 -16
- package/funcs/walletsGet.d.ts.map +0 -1
- package/funcs/walletsGetTopup.d.ts +0 -16
- package/funcs/walletsGetTopup.d.ts.map +0 -1
- package/funcs/walletsList.d.ts +0 -15
- package/funcs/walletsList.d.ts.map +0 -1
- package/funcs/walletsListTopups.d.ts +0 -15
- package/funcs/walletsListTopups.d.ts.map +0 -1
- package/hooks/hooks.d.ts +0 -25
- package/hooks/hooks.d.ts.map +0 -1
- package/hooks/index.d.ts +0 -3
- package/hooks/index.d.ts.map +0 -1
- package/hooks/registration.d.ts +0 -3
- package/hooks/registration.d.ts.map +0 -1
- package/hooks/types.d.ts +0 -76
- package/hooks/types.d.ts.map +0 -1
- package/index.d.ts +0 -6
- package/index.d.ts.map +0 -1
- package/lib/base64.d.ts +0 -10
- package/lib/base64.d.ts.map +0 -1
- package/lib/config.d.ts +0 -38
- package/lib/config.d.ts.map +0 -1
- package/lib/dlv.d.ts +0 -14
- package/lib/dlv.d.ts.map +0 -1
- package/lib/encodings.d.ts +0 -52
- package/lib/encodings.d.ts.map +0 -1
- package/lib/env.d.ts +0 -15
- package/lib/env.d.ts.map +0 -1
- package/lib/files.d.ts +0 -13
- package/lib/files.d.ts.map +0 -1
- package/lib/http.d.ts +0 -67
- package/lib/http.d.ts.map +0 -1
- package/lib/is-plain-object.d.ts +0 -2
- package/lib/is-plain-object.d.ts.map +0 -1
- package/lib/logger.d.ts +0 -6
- package/lib/logger.d.ts.map +0 -1
- package/lib/matchers.d.ts +0 -59
- package/lib/matchers.d.ts.map +0 -1
- package/lib/primitives.d.ts +0 -26
- package/lib/primitives.d.ts.map +0 -1
- package/lib/retries.d.ts +0 -38
- package/lib/retries.d.ts.map +0 -1
- package/lib/schemas.d.ts +0 -19
- package/lib/schemas.d.ts.map +0 -1
- package/lib/sdks.d.ts +0 -63
- package/lib/sdks.d.ts.map +0 -1
- package/lib/security.d.ts +0 -83
- package/lib/security.d.ts.map +0 -1
- package/lib/url.d.ts +0 -5
- package/lib/url.d.ts.map +0 -1
- package/models/activeentitlement.d.ts +0 -87
- package/models/activeentitlement.d.ts.map +0 -1
- package/models/address.d.ts +0 -42
- package/models/address.d.ts.map +0 -1
- package/models/authorizationsession.d.ts +0 -78
- package/models/authorizationsession.d.ts.map +0 -1
- package/models/batchusageeventresponse.d.ts +0 -147
- package/models/batchusageeventresponse.d.ts.map +0 -1
- package/models/billablemetric.d.ts +0 -110
- package/models/billablemetric.d.ts.map +0 -1
- package/models/componentsschemasprice.d.ts +0 -104
- package/models/componentsschemasprice.d.ts.map +0 -1
- package/models/consumer.d.ts +0 -81
- package/models/consumer.d.ts.map +0 -1
- package/models/createdisputerequest.d.ts +0 -37
- package/models/createdisputerequest.d.ts.map +0 -1
- package/models/createentitlementrequest.d.ts +0 -85
- package/models/createentitlementrequest.d.ts.map +0 -1
- package/models/createrulerequest.d.ts +0 -58
- package/models/createrulerequest.d.ts.map +0 -1
- package/models/createusageeventrequest.d.ts +0 -101
- package/models/createusageeventrequest.d.ts.map +0 -1
- package/models/customer.d.ts +0 -121
- package/models/customer.d.ts.map +0 -1
- package/models/dispute.d.ts +0 -136
- package/models/dispute.d.ts.map +0 -1
- package/models/disputewithcustomer.d.ts +0 -167
- package/models/disputewithcustomer.d.ts.map +0 -1
- package/models/entitlement.d.ts +0 -140
- package/models/entitlement.d.ts.map +0 -1
- package/models/errors/badrequest.d.ts +0 -30
- package/models/errors/badrequest.d.ts.map +0 -1
- package/models/errors/error.d.ts +0 -68
- package/models/errors/error.d.ts.map +0 -1
- package/models/errors/httpclienterrors.d.ts +0 -44
- package/models/errors/httpclienterrors.d.ts.map +0 -1
- package/models/errors/index.d.ts +0 -9
- package/models/errors/index.d.ts.map +0 -1
- package/models/errors/paygenticdefaulterror.d.ts +0 -10
- package/models/errors/paygenticdefaulterror.d.ts.map +0 -1
- package/models/errors/paygenticerror.d.ts +0 -19
- package/models/errors/paygenticerror.d.ts.map +0 -1
- package/models/errors/responsevalidationerror.d.ts +0 -26
- package/models/errors/responsevalidationerror.d.ts.map +0 -1
- package/models/errors/sdkvalidationerror.d.ts +0 -21
- package/models/errors/sdkvalidationerror.d.ts.map +0 -1
- package/models/errors/validationerror.d.ts +0 -57
- package/models/errors/validationerror.d.ts.map +0 -1
- package/models/externalbankaccount.d.ts +0 -190
- package/models/externalbankaccount.d.ts.map +0 -1
- package/models/index.d.ts +0 -41
- package/models/index.d.ts.map +0 -1
- package/models/merchant.d.ts +0 -115
- package/models/merchant.d.ts.map +0 -1
- package/models/offsessionpaymentmethod.d.ts +0 -42
- package/models/offsessionpaymentmethod.d.ts.map +0 -1
- package/models/offsetpagination.d.ts +0 -45
- package/models/offsetpagination.d.ts.map +0 -1
- package/models/operations/approvesourceevent.d.ts +0 -31
- package/models/operations/approvesourceevent.d.ts.map +0 -1
- package/models/operations/batchcreateusageevents.d.ts +0 -30
- package/models/operations/batchcreateusageevents.d.ts.map +0 -1
- package/models/operations/bulkapprovesourceevents.d.ts +0 -157
- package/models/operations/bulkapprovesourceevents.d.ts.map +0 -1
- package/models/operations/bulkrejectsourceevents.d.ts +0 -90
- package/models/operations/bulkrejectsourceevents.d.ts.map +0 -1
- package/models/operations/checkauthorizationsessionstatus.d.ts +0 -32
- package/models/operations/checkauthorizationsessionstatus.d.ts.map +0 -1
- package/models/operations/createauthorizationsession.d.ts +0 -47
- package/models/operations/createauthorizationsession.d.ts.map +0 -1
- package/models/operations/createbillablemetric.d.ts +0 -86
- package/models/operations/createbillablemetric.d.ts.map +0 -1
- package/models/operations/createcustomer.d.ts +0 -163
- package/models/operations/createcustomer.d.ts.map +0 -1
- package/models/operations/createexternalbankaccount.d.ts +0 -108
- package/models/operations/createexternalbankaccount.d.ts.map +0 -1
- package/models/operations/createplan.d.ts +0 -87
- package/models/operations/createplan.d.ts.map +0 -1
- package/models/operations/createprice.d.ts +0 -83
- package/models/operations/createprice.d.ts.map +0 -1
- package/models/operations/createproduct.d.ts +0 -71
- package/models/operations/createproduct.d.ts.map +0 -1
- package/models/operations/createsource.d.ts +0 -135
- package/models/operations/createsource.d.ts.map +0 -1
- package/models/operations/createwallettopup.d.ts +0 -101
- package/models/operations/createwallettopup.d.ts.map +0 -1
- package/models/operations/deleteexternalbankaccount.d.ts +0 -32
- package/models/operations/deleteexternalbankaccount.d.ts.map +0 -1
- package/models/operations/deletesourcerule.d.ts +0 -29
- package/models/operations/deletesourcerule.d.ts.map +0 -1
- package/models/operations/generateportallink.d.ts +0 -32
- package/models/operations/generateportallink.d.ts.map +0 -1
- package/models/operations/getactiveentitlements.d.ts +0 -127
- package/models/operations/getactiveentitlements.d.ts.map +0 -1
- package/models/operations/getbillablemetric.d.ts +0 -29
- package/models/operations/getbillablemetric.d.ts.map +0 -1
- package/models/operations/getbillablemetricprice.d.ts +0 -31
- package/models/operations/getbillablemetricprice.d.ts.map +0 -1
- package/models/operations/getbillablemetricpricelegacy.d.ts +0 -31
- package/models/operations/getbillablemetricpricelegacy.d.ts.map +0 -1
- package/models/operations/getconsumer.d.ts +0 -29
- package/models/operations/getconsumer.d.ts.map +0 -1
- package/models/operations/getcustomer.d.ts +0 -32
- package/models/operations/getcustomer.d.ts.map +0 -1
- package/models/operations/getexternalbankaccount.d.ts +0 -32
- package/models/operations/getexternalbankaccount.d.ts.map +0 -1
- package/models/operations/getmerchant.d.ts +0 -32
- package/models/operations/getmerchant.d.ts.map +0 -1
- package/models/operations/getpayoutbyid.d.ts +0 -32
- package/models/operations/getpayoutbyid.d.ts.map +0 -1
- package/models/operations/getpayoutmethods.d.ts +0 -58
- package/models/operations/getpayoutmethods.d.ts.map +0 -1
- package/models/operations/getplan.d.ts +0 -32
- package/models/operations/getplan.d.ts.map +0 -1
- package/models/operations/getprice.d.ts +0 -32
- package/models/operations/getprice.d.ts.map +0 -1
- package/models/operations/getproduct.d.ts +0 -32
- package/models/operations/getproduct.d.ts.map +0 -1
- package/models/operations/getsource.d.ts +0 -32
- package/models/operations/getsource.d.ts.map +0 -1
- package/models/operations/getsourcerule.d.ts +0 -29
- package/models/operations/getsourcerule.d.ts.map +0 -1
- package/models/operations/getsubscription.d.ts +0 -29
- package/models/operations/getsubscription.d.ts.map +0 -1
- package/models/operations/getusageevent.d.ts +0 -29
- package/models/operations/getusageevent.d.ts.map +0 -1
- package/models/operations/getuser.d.ts +0 -29
- package/models/operations/getuser.d.ts.map +0 -1
- package/models/operations/getwallet.d.ts +0 -29
- package/models/operations/getwallet.d.ts.map +0 -1
- package/models/operations/getwallettopup.d.ts +0 -37
- package/models/operations/getwallettopup.d.ts.map +0 -1
- package/models/operations/index.d.ts +0 -64
- package/models/operations/index.d.ts.map +0 -1
- package/models/operations/listbillablemetrics.d.ts +0 -132
- package/models/operations/listbillablemetrics.d.ts.map +0 -1
- package/models/operations/listcustomers.d.ts +0 -101
- package/models/operations/listcustomers.d.ts.map +0 -1
- package/models/operations/listdisputes.d.ts +0 -178
- package/models/operations/listdisputes.d.ts.map +0 -1
- package/models/operations/listexternalbankaccounts.d.ts +0 -98
- package/models/operations/listexternalbankaccounts.d.ts.map +0 -1
- package/models/operations/listoffsessionpaymentmethods.d.ts +0 -83
- package/models/operations/listoffsessionpaymentmethods.d.ts.map +0 -1
- package/models/operations/listpayouts.d.ts +0 -129
- package/models/operations/listpayouts.d.ts.map +0 -1
- package/models/operations/listplans.d.ts +0 -107
- package/models/operations/listplans.d.ts.map +0 -1
- package/models/operations/listprices.d.ts +0 -102
- package/models/operations/listprices.d.ts.map +0 -1
- package/models/operations/listproducts.d.ts +0 -76
- package/models/operations/listproducts.d.ts.map +0 -1
- package/models/operations/listsourceevents.d.ts +0 -110
- package/models/operations/listsourceevents.d.ts.map +0 -1
- package/models/operations/listsourcerules.d.ts +0 -61
- package/models/operations/listsourcerules.d.ts.map +0 -1
- package/models/operations/listsources.d.ts +0 -75
- package/models/operations/listsources.d.ts.map +0 -1
- package/models/operations/listsubscriptions.d.ts +0 -105
- package/models/operations/listsubscriptions.d.ts.map +0 -1
- package/models/operations/listusageevents.d.ts +0 -126
- package/models/operations/listusageevents.d.ts.map +0 -1
- package/models/operations/listwallets.d.ts +0 -101
- package/models/operations/listwallets.d.ts.map +0 -1
- package/models/operations/listwallettopups.d.ts +0 -153
- package/models/operations/listwallettopups.d.ts.map +0 -1
- package/models/operations/rejectsourceevent.d.ts +0 -31
- package/models/operations/rejectsourceevent.d.ts.map +0 -1
- package/models/operations/updatebillablemetric.d.ts +0 -69
- package/models/operations/updatebillablemetric.d.ts.map +0 -1
- package/models/operations/updatecustomer.d.ts +0 -88
- package/models/operations/updatecustomer.d.ts.map +0 -1
- package/models/operations/updateexternalbankaccount.d.ts +0 -123
- package/models/operations/updateexternalbankaccount.d.ts.map +0 -1
- package/models/operations/updateplan.d.ts +0 -96
- package/models/operations/updateplan.d.ts.map +0 -1
- package/models/operations/updateprice.d.ts +0 -113
- package/models/operations/updateprice.d.ts.map +0 -1
- package/models/operations/updateproduct.d.ts +0 -67
- package/models/operations/updateproduct.d.ts.map +0 -1
- package/models/operations/updatesource.d.ts +0 -127
- package/models/operations/updatesource.d.ts.map +0 -1
- package/models/operations/updatesourcerule.d.ts +0 -32
- package/models/operations/updatesourcerule.d.ts.map +0 -1
- package/models/operations/updateuser.d.ts +0 -115
- package/models/operations/updateuser.d.ts.map +0 -1
- package/models/paymentoptions.d.ts +0 -55
- package/models/paymentoptions.d.ts.map +0 -1
- package/models/payout.d.ts +0 -220
- package/models/payout.d.ts.map +0 -1
- package/models/payoutmethod.d.ts +0 -86
- package/models/payoutmethod.d.ts.map +0 -1
- package/models/plan.d.ts +0 -103
- package/models/plan.d.ts.map +0 -1
- package/models/price.d.ts +0 -240
- package/models/price.d.ts.map +0 -1
- package/models/pricepropertiesunion.d.ts +0 -197
- package/models/pricepropertiesunion.d.ts.map +0 -1
- package/models/product.d.ts +0 -76
- package/models/product.d.ts.map +0 -1
- package/models/rulecondition.d.ts +0 -219
- package/models/rulecondition.d.ts.map +0 -1
- package/models/schemasprice.d.ts +0 -110
- package/models/schemasprice.d.ts.map +0 -1
- package/models/security.d.ts +0 -29
- package/models/security.d.ts.map +0 -1
- package/models/source.d.ts +0 -140
- package/models/source.d.ts.map +0 -1
- package/models/sourceevent.d.ts +0 -91
- package/models/sourceevent.d.ts.map +0 -1
- package/models/sourcerule.d.ts +0 -96
- package/models/sourcerule.d.ts.map +0 -1
- package/models/subscription.d.ts +0 -112
- package/models/subscription.d.ts.map +0 -1
- package/models/subscriptionportal.d.ts +0 -62
- package/models/subscriptionportal.d.ts.map +0 -1
- package/models/topupresponse.d.ts +0 -171
- package/models/topupresponse.d.ts.map +0 -1
- package/models/updaterulerequest.d.ts +0 -53
- package/models/updaterulerequest.d.ts.map +0 -1
- package/models/usageevent.d.ts +0 -177
- package/models/usageevent.d.ts.map +0 -1
- package/models/user.d.ts +0 -109
- package/models/user.d.ts.map +0 -1
- package/models/validationerror.d.ts +0 -71
- package/models/validationerror.d.ts.map +0 -1
- package/models/wallet.d.ts +0 -107
- package/models/wallet.d.ts.map +0 -1
- package/sdk/billablemetrics.d.ts +0 -33
- package/sdk/billablemetrics.d.ts.map +0 -1
- package/sdk/consumers.d.ts +0 -14
- package/sdk/consumers.d.ts.map +0 -1
- package/sdk/customers.d.ts +0 -36
- package/sdk/customers.d.ts.map +0 -1
- package/sdk/disputes.d.ts +0 -20
- package/sdk/disputes.d.ts.map +0 -1
- package/sdk/entitlements.d.ts +0 -17
- package/sdk/entitlements.d.ts.map +0 -1
- package/sdk/events.d.ts +0 -12
- package/sdk/events.d.ts.map +0 -1
- package/sdk/externalbankaccounts.d.ts +0 -41
- package/sdk/externalbankaccounts.d.ts.map +0 -1
- package/sdk/index.d.ts +0 -2
- package/sdk/index.d.ts.map +0 -1
- package/sdk/merchants.d.ts +0 -17
- package/sdk/merchants.d.ts.map +0 -1
- package/sdk/payouts.d.ts +0 -27
- package/sdk/payouts.d.ts.map +0 -1
- package/sdk/plans.d.ts +0 -22
- package/sdk/plans.d.ts.map +0 -1
- package/sdk/prices.d.ts +0 -22
- package/sdk/prices.d.ts.map +0 -1
- package/sdk/products.d.ts +0 -22
- package/sdk/products.d.ts.map +0 -1
- package/sdk/sdk.d.ts +0 -52
- package/sdk/sdk.d.ts.map +0 -1
- package/sdk/sources.d.ts +0 -82
- package/sdk/sources.d.ts.map +0 -1
- package/sdk/subscriptions.d.ts +0 -21
- package/sdk/subscriptions.d.ts.map +0 -1
- package/sdk/usageevents.d.ts +0 -28
- package/sdk/usageevents.d.ts.map +0 -1
- package/sdk/users.d.ts +0 -14
- package/sdk/users.d.ts.map +0 -1
- package/sdk/wallets.d.ts +0 -26
- package/sdk/wallets.d.ts.map +0 -1
- package/src/models/paymentoptions.ts +0 -96
- package/types/async.d.ts +0 -23
- package/types/async.d.ts.map +0 -1
- package/types/blobs.d.ts +0 -4
- package/types/blobs.d.ts.map +0 -1
- package/types/constdatetime.d.ts +0 -3
- package/types/constdatetime.d.ts.map +0 -1
- package/types/decimal.d.ts +0 -2
- package/types/decimal.d.ts.map +0 -1
- package/types/enums.d.ts +0 -12
- package/types/enums.d.ts.map +0 -1
- package/types/fp.d.ts +0 -31
- package/types/fp.d.ts.map +0 -1
- package/types/index.d.ts +0 -9
- package/types/index.d.ts.map +0 -1
- package/types/operations.d.ts +0 -27
- package/types/operations.d.ts.map +0 -1
- package/types/rfcdate.d.ts +0 -21
- package/types/rfcdate.d.ts.map +0 -1
- package/types/streams.d.ts +0 -2
- package/types/streams.d.ts.map +0 -1
|
@@ -1,479 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The `dns.promises` API provides an alternative set of asynchronous DNS methods
|
|
3
|
-
* that return `Promise` objects rather than using callbacks. The API is accessible
|
|
4
|
-
* via `import { promises } from 'node:dns'` or `import dnsPromises from 'node:dns/promises'`.
|
|
5
|
-
* @since v10.6.0
|
|
6
|
-
*/
|
|
7
|
-
declare module "dns/promises" {
|
|
8
|
-
import {
|
|
9
|
-
AnyRecord,
|
|
10
|
-
CaaRecord,
|
|
11
|
-
LookupAddress,
|
|
12
|
-
LookupAllOptions,
|
|
13
|
-
LookupOneOptions,
|
|
14
|
-
LookupOptions,
|
|
15
|
-
MxRecord,
|
|
16
|
-
NaptrRecord,
|
|
17
|
-
RecordWithTtl,
|
|
18
|
-
ResolveOptions,
|
|
19
|
-
ResolverOptions,
|
|
20
|
-
ResolveWithTtlOptions,
|
|
21
|
-
SoaRecord,
|
|
22
|
-
SrvRecord,
|
|
23
|
-
} from "node:dns";
|
|
24
|
-
/**
|
|
25
|
-
* Returns an array of IP address strings, formatted according to [RFC 5952](https://tools.ietf.org/html/rfc5952#section-6),
|
|
26
|
-
* that are currently configured for DNS resolution. A string will include a port
|
|
27
|
-
* section if a custom port is used.
|
|
28
|
-
*
|
|
29
|
-
* ```js
|
|
30
|
-
* [
|
|
31
|
-
* '4.4.4.4',
|
|
32
|
-
* '2001:4860:4860::8888',
|
|
33
|
-
* '4.4.4.4:1053',
|
|
34
|
-
* '[2001:4860:4860::8888]:1053',
|
|
35
|
-
* ]
|
|
36
|
-
* ```
|
|
37
|
-
* @since v10.6.0
|
|
38
|
-
*/
|
|
39
|
-
function getServers(): string[];
|
|
40
|
-
/**
|
|
41
|
-
* Resolves a host name (e.g. `'nodejs.org'`) into the first found A (IPv4) or
|
|
42
|
-
* AAAA (IPv6) record. All `option` properties are optional. If `options` is an
|
|
43
|
-
* integer, then it must be `4` or `6` – if `options` is not provided, then IPv4
|
|
44
|
-
* and IPv6 addresses are both returned if found.
|
|
45
|
-
*
|
|
46
|
-
* With the `all` option set to `true`, the `Promise` is resolved with `addresses` being an array of objects with the properties `address` and `family`.
|
|
47
|
-
*
|
|
48
|
-
* On error, the `Promise` is rejected with an [`Error`](https://nodejs.org/docs/latest-v20.x/api/errors.html#class-error) object, where `err.code` is the error code.
|
|
49
|
-
* Keep in mind that `err.code` will be set to `'ENOTFOUND'` not only when
|
|
50
|
-
* the host name does not exist but also when the lookup fails in other ways
|
|
51
|
-
* such as no available file descriptors.
|
|
52
|
-
*
|
|
53
|
-
* [`dnsPromises.lookup()`](https://nodejs.org/docs/latest-v20.x/api/dns.html#dnspromiseslookuphostname-options) does not necessarily have anything to do with the DNS
|
|
54
|
-
* protocol. The implementation uses an operating system facility that can
|
|
55
|
-
* associate names with addresses and vice versa. This implementation can have
|
|
56
|
-
* subtle but important consequences on the behavior of any Node.js program. Please
|
|
57
|
-
* take some time to consult the [Implementation considerations section](https://nodejs.org/docs/latest-v20.x/api/dns.html#implementation-considerations) before
|
|
58
|
-
* using `dnsPromises.lookup()`.
|
|
59
|
-
*
|
|
60
|
-
* Example usage:
|
|
61
|
-
*
|
|
62
|
-
* ```js
|
|
63
|
-
* import dns from 'node:dns';
|
|
64
|
-
* const dnsPromises = dns.promises;
|
|
65
|
-
* const options = {
|
|
66
|
-
* family: 6,
|
|
67
|
-
* hints: dns.ADDRCONFIG | dns.V4MAPPED,
|
|
68
|
-
* };
|
|
69
|
-
*
|
|
70
|
-
* dnsPromises.lookup('example.com', options).then((result) => {
|
|
71
|
-
* console.log('address: %j family: IPv%s', result.address, result.family);
|
|
72
|
-
* // address: "2606:2800:220:1:248:1893:25c8:1946" family: IPv6
|
|
73
|
-
* });
|
|
74
|
-
*
|
|
75
|
-
* // When options.all is true, the result will be an Array.
|
|
76
|
-
* options.all = true;
|
|
77
|
-
* dnsPromises.lookup('example.com', options).then((result) => {
|
|
78
|
-
* console.log('addresses: %j', result);
|
|
79
|
-
* // addresses: [{"address":"2606:2800:220:1:248:1893:25c8:1946","family":6}]
|
|
80
|
-
* });
|
|
81
|
-
* ```
|
|
82
|
-
* @since v10.6.0
|
|
83
|
-
*/
|
|
84
|
-
function lookup(hostname: string, family: number): Promise<LookupAddress>;
|
|
85
|
-
function lookup(hostname: string, options: LookupOneOptions): Promise<LookupAddress>;
|
|
86
|
-
function lookup(hostname: string, options: LookupAllOptions): Promise<LookupAddress[]>;
|
|
87
|
-
function lookup(hostname: string, options: LookupOptions): Promise<LookupAddress | LookupAddress[]>;
|
|
88
|
-
function lookup(hostname: string): Promise<LookupAddress>;
|
|
89
|
-
/**
|
|
90
|
-
* Resolves the given `address` and `port` into a host name and service using
|
|
91
|
-
* the operating system's underlying `getnameinfo` implementation.
|
|
92
|
-
*
|
|
93
|
-
* If `address` is not a valid IP address, a `TypeError` will be thrown.
|
|
94
|
-
* The `port` will be coerced to a number. If it is not a legal port, a `TypeError` will be thrown.
|
|
95
|
-
*
|
|
96
|
-
* On error, the `Promise` is rejected with an [`Error`](https://nodejs.org/docs/latest-v20.x/api/errors.html#class-error) object, where `err.code` is the error code.
|
|
97
|
-
*
|
|
98
|
-
* ```js
|
|
99
|
-
* import dns from 'node:dns';
|
|
100
|
-
* dns.promises.lookupService('127.0.0.1', 22).then((result) => {
|
|
101
|
-
* console.log(result.hostname, result.service);
|
|
102
|
-
* // Prints: localhost ssh
|
|
103
|
-
* });
|
|
104
|
-
* ```
|
|
105
|
-
* @since v10.6.0
|
|
106
|
-
*/
|
|
107
|
-
function lookupService(
|
|
108
|
-
address: string,
|
|
109
|
-
port: number,
|
|
110
|
-
): Promise<{
|
|
111
|
-
hostname: string;
|
|
112
|
-
service: string;
|
|
113
|
-
}>;
|
|
114
|
-
/**
|
|
115
|
-
* Uses the DNS protocol to resolve a host name (e.g. `'nodejs.org'`) into an array
|
|
116
|
-
* of the resource records. When successful, the `Promise` is resolved with an
|
|
117
|
-
* array of resource records. The type and structure of individual results vary
|
|
118
|
-
* based on `rrtype`:
|
|
119
|
-
*
|
|
120
|
-
* <omitted>
|
|
121
|
-
*
|
|
122
|
-
* On error, the `Promise` is rejected with an [`Error`](https://nodejs.org/docs/latest-v20.x/api/errors.html#class-error) object, where `err.code`
|
|
123
|
-
* is one of the [DNS error codes](https://nodejs.org/docs/latest-v20.x/api/dns.html#error-codes).
|
|
124
|
-
* @since v10.6.0
|
|
125
|
-
* @param hostname Host name to resolve.
|
|
126
|
-
* @param [rrtype='A'] Resource record type.
|
|
127
|
-
*/
|
|
128
|
-
function resolve(hostname: string): Promise<string[]>;
|
|
129
|
-
function resolve(hostname: string, rrtype: "A" | "AAAA" | "CNAME" | "NS" | "PTR"): Promise<string[]>;
|
|
130
|
-
function resolve(hostname: string, rrtype: "ANY"): Promise<AnyRecord[]>;
|
|
131
|
-
function resolve(hostname: string, rrtype: "CAA"): Promise<CaaRecord[]>;
|
|
132
|
-
function resolve(hostname: string, rrtype: "MX"): Promise<MxRecord[]>;
|
|
133
|
-
function resolve(hostname: string, rrtype: "NAPTR"): Promise<NaptrRecord[]>;
|
|
134
|
-
function resolve(hostname: string, rrtype: "SOA"): Promise<SoaRecord>;
|
|
135
|
-
function resolve(hostname: string, rrtype: "SRV"): Promise<SrvRecord[]>;
|
|
136
|
-
function resolve(hostname: string, rrtype: "TXT"): Promise<string[][]>;
|
|
137
|
-
function resolve(hostname: string, rrtype: string): Promise<
|
|
138
|
-
| string[]
|
|
139
|
-
| CaaRecord[]
|
|
140
|
-
| MxRecord[]
|
|
141
|
-
| NaptrRecord[]
|
|
142
|
-
| SoaRecord
|
|
143
|
-
| SrvRecord[]
|
|
144
|
-
| string[][]
|
|
145
|
-
| AnyRecord[]
|
|
146
|
-
>;
|
|
147
|
-
/**
|
|
148
|
-
* Uses the DNS protocol to resolve IPv4 addresses (`A` records) for the `hostname`. On success, the `Promise` is resolved with an array of IPv4
|
|
149
|
-
* addresses (e.g. `['74.125.79.104', '74.125.79.105', '74.125.79.106']`).
|
|
150
|
-
* @since v10.6.0
|
|
151
|
-
* @param hostname Host name to resolve.
|
|
152
|
-
*/
|
|
153
|
-
function resolve4(hostname: string): Promise<string[]>;
|
|
154
|
-
function resolve4(hostname: string, options: ResolveWithTtlOptions): Promise<RecordWithTtl[]>;
|
|
155
|
-
function resolve4(hostname: string, options: ResolveOptions): Promise<string[] | RecordWithTtl[]>;
|
|
156
|
-
/**
|
|
157
|
-
* Uses the DNS protocol to resolve IPv6 addresses (`AAAA` records) for the `hostname`. On success, the `Promise` is resolved with an array of IPv6
|
|
158
|
-
* addresses.
|
|
159
|
-
* @since v10.6.0
|
|
160
|
-
* @param hostname Host name to resolve.
|
|
161
|
-
*/
|
|
162
|
-
function resolve6(hostname: string): Promise<string[]>;
|
|
163
|
-
function resolve6(hostname: string, options: ResolveWithTtlOptions): Promise<RecordWithTtl[]>;
|
|
164
|
-
function resolve6(hostname: string, options: ResolveOptions): Promise<string[] | RecordWithTtl[]>;
|
|
165
|
-
/**
|
|
166
|
-
* Uses the DNS protocol to resolve all records (also known as `ANY` or `*` query).
|
|
167
|
-
* On success, the `Promise` is resolved with an array containing various types of
|
|
168
|
-
* records. Each object has a property `type` that indicates the type of the
|
|
169
|
-
* current record. And depending on the `type`, additional properties will be
|
|
170
|
-
* present on the object:
|
|
171
|
-
*
|
|
172
|
-
* <omitted>
|
|
173
|
-
*
|
|
174
|
-
* Here is an example of the result object:
|
|
175
|
-
*
|
|
176
|
-
* ```js
|
|
177
|
-
* [ { type: 'A', address: '127.0.0.1', ttl: 299 },
|
|
178
|
-
* { type: 'CNAME', value: 'example.com' },
|
|
179
|
-
* { type: 'MX', exchange: 'alt4.aspmx.l.example.com', priority: 50 },
|
|
180
|
-
* { type: 'NS', value: 'ns1.example.com' },
|
|
181
|
-
* { type: 'TXT', entries: [ 'v=spf1 include:_spf.example.com ~all' ] },
|
|
182
|
-
* { type: 'SOA',
|
|
183
|
-
* nsname: 'ns1.example.com',
|
|
184
|
-
* hostmaster: 'admin.example.com',
|
|
185
|
-
* serial: 156696742,
|
|
186
|
-
* refresh: 900,
|
|
187
|
-
* retry: 900,
|
|
188
|
-
* expire: 1800,
|
|
189
|
-
* minttl: 60 } ]
|
|
190
|
-
* ```
|
|
191
|
-
* @since v10.6.0
|
|
192
|
-
*/
|
|
193
|
-
function resolveAny(hostname: string): Promise<AnyRecord[]>;
|
|
194
|
-
/**
|
|
195
|
-
* Uses the DNS protocol to resolve `CAA` records for the `hostname`. On success,
|
|
196
|
-
* the `Promise` is resolved with an array of objects containing available
|
|
197
|
-
* certification authority authorization records available for the `hostname` (e.g. `[{critical: 0, iodef: 'mailto:pki@example.com'},{critical: 128, issue: 'pki.example.com'}]`).
|
|
198
|
-
* @since v15.0.0, v14.17.0
|
|
199
|
-
*/
|
|
200
|
-
function resolveCaa(hostname: string): Promise<CaaRecord[]>;
|
|
201
|
-
/**
|
|
202
|
-
* Uses the DNS protocol to resolve `CNAME` records for the `hostname`. On success,
|
|
203
|
-
* the `Promise` is resolved with an array of canonical name records available for
|
|
204
|
-
* the `hostname` (e.g. `['bar.example.com']`).
|
|
205
|
-
* @since v10.6.0
|
|
206
|
-
*/
|
|
207
|
-
function resolveCname(hostname: string): Promise<string[]>;
|
|
208
|
-
/**
|
|
209
|
-
* Uses the DNS protocol to resolve mail exchange records (`MX` records) for the `hostname`. On success, the `Promise` is resolved with an array of objects
|
|
210
|
-
* containing both a `priority` and `exchange` property (e.g.`[{priority: 10, exchange: 'mx.example.com'}, ...]`).
|
|
211
|
-
* @since v10.6.0
|
|
212
|
-
*/
|
|
213
|
-
function resolveMx(hostname: string): Promise<MxRecord[]>;
|
|
214
|
-
/**
|
|
215
|
-
* Uses the DNS protocol to resolve regular expression-based records (`NAPTR` records) for the `hostname`. On success, the `Promise` is resolved with an array
|
|
216
|
-
* of objects with the following properties:
|
|
217
|
-
*
|
|
218
|
-
* * `flags`
|
|
219
|
-
* * `service`
|
|
220
|
-
* * `regexp`
|
|
221
|
-
* * `replacement`
|
|
222
|
-
* * `order`
|
|
223
|
-
* * `preference`
|
|
224
|
-
*
|
|
225
|
-
* ```js
|
|
226
|
-
* {
|
|
227
|
-
* flags: 's',
|
|
228
|
-
* service: 'SIP+D2U',
|
|
229
|
-
* regexp: '',
|
|
230
|
-
* replacement: '_sip._udp.example.com',
|
|
231
|
-
* order: 30,
|
|
232
|
-
* preference: 100
|
|
233
|
-
* }
|
|
234
|
-
* ```
|
|
235
|
-
* @since v10.6.0
|
|
236
|
-
*/
|
|
237
|
-
function resolveNaptr(hostname: string): Promise<NaptrRecord[]>;
|
|
238
|
-
/**
|
|
239
|
-
* Uses the DNS protocol to resolve name server records (`NS` records) for the `hostname`. On success, the `Promise` is resolved with an array of name server
|
|
240
|
-
* records available for `hostname` (e.g.`['ns1.example.com', 'ns2.example.com']`).
|
|
241
|
-
* @since v10.6.0
|
|
242
|
-
*/
|
|
243
|
-
function resolveNs(hostname: string): Promise<string[]>;
|
|
244
|
-
/**
|
|
245
|
-
* Uses the DNS protocol to resolve pointer records (`PTR` records) for the `hostname`. On success, the `Promise` is resolved with an array of strings
|
|
246
|
-
* containing the reply records.
|
|
247
|
-
* @since v10.6.0
|
|
248
|
-
*/
|
|
249
|
-
function resolvePtr(hostname: string): Promise<string[]>;
|
|
250
|
-
/**
|
|
251
|
-
* Uses the DNS protocol to resolve a start of authority record (`SOA` record) for
|
|
252
|
-
* the `hostname`. On success, the `Promise` is resolved with an object with the
|
|
253
|
-
* following properties:
|
|
254
|
-
*
|
|
255
|
-
* * `nsname`
|
|
256
|
-
* * `hostmaster`
|
|
257
|
-
* * `serial`
|
|
258
|
-
* * `refresh`
|
|
259
|
-
* * `retry`
|
|
260
|
-
* * `expire`
|
|
261
|
-
* * `minttl`
|
|
262
|
-
*
|
|
263
|
-
* ```js
|
|
264
|
-
* {
|
|
265
|
-
* nsname: 'ns.example.com',
|
|
266
|
-
* hostmaster: 'root.example.com',
|
|
267
|
-
* serial: 2013101809,
|
|
268
|
-
* refresh: 10000,
|
|
269
|
-
* retry: 2400,
|
|
270
|
-
* expire: 604800,
|
|
271
|
-
* minttl: 3600
|
|
272
|
-
* }
|
|
273
|
-
* ```
|
|
274
|
-
* @since v10.6.0
|
|
275
|
-
*/
|
|
276
|
-
function resolveSoa(hostname: string): Promise<SoaRecord>;
|
|
277
|
-
/**
|
|
278
|
-
* Uses the DNS protocol to resolve service records (`SRV` records) for the `hostname`. On success, the `Promise` is resolved with an array of objects with
|
|
279
|
-
* the following properties:
|
|
280
|
-
*
|
|
281
|
-
* * `priority`
|
|
282
|
-
* * `weight`
|
|
283
|
-
* * `port`
|
|
284
|
-
* * `name`
|
|
285
|
-
*
|
|
286
|
-
* ```js
|
|
287
|
-
* {
|
|
288
|
-
* priority: 10,
|
|
289
|
-
* weight: 5,
|
|
290
|
-
* port: 21223,
|
|
291
|
-
* name: 'service.example.com'
|
|
292
|
-
* }
|
|
293
|
-
* ```
|
|
294
|
-
* @since v10.6.0
|
|
295
|
-
*/
|
|
296
|
-
function resolveSrv(hostname: string): Promise<SrvRecord[]>;
|
|
297
|
-
/**
|
|
298
|
-
* Uses the DNS protocol to resolve text queries (`TXT` records) for the `hostname`. On success, the `Promise` is resolved with a two-dimensional array
|
|
299
|
-
* of the text records available for `hostname` (e.g.`[ ['v=spf1 ip4:0.0.0.0 ', '~all' ] ]`). Each sub-array contains TXT chunks of
|
|
300
|
-
* one record. Depending on the use case, these could be either joined together or
|
|
301
|
-
* treated separately.
|
|
302
|
-
* @since v10.6.0
|
|
303
|
-
*/
|
|
304
|
-
function resolveTxt(hostname: string): Promise<string[][]>;
|
|
305
|
-
/**
|
|
306
|
-
* Performs a reverse DNS query that resolves an IPv4 or IPv6 address to an
|
|
307
|
-
* array of host names.
|
|
308
|
-
*
|
|
309
|
-
* On error, the `Promise` is rejected with an [`Error`](https://nodejs.org/docs/latest-v20.x/api/errors.html#class-error) object, where `err.code`
|
|
310
|
-
* is one of the [DNS error codes](https://nodejs.org/docs/latest-v20.x/api/dns.html#error-codes).
|
|
311
|
-
* @since v10.6.0
|
|
312
|
-
*/
|
|
313
|
-
function reverse(ip: string): Promise<string[]>;
|
|
314
|
-
/**
|
|
315
|
-
* Get the default value for `verbatim` in {@link lookup} and [dnsPromises.lookup()](https://nodejs.org/docs/latest-v20.x/api/dns.html#dnspromiseslookuphostname-options).
|
|
316
|
-
* The value could be:
|
|
317
|
-
*
|
|
318
|
-
* * `ipv4first`: for `verbatim` defaulting to `false`.
|
|
319
|
-
* * `verbatim`: for `verbatim` defaulting to `true`.
|
|
320
|
-
* @since v20.1.0
|
|
321
|
-
*/
|
|
322
|
-
function getDefaultResultOrder(): "ipv4first" | "verbatim";
|
|
323
|
-
/**
|
|
324
|
-
* Sets the IP address and port of servers to be used when performing DNS
|
|
325
|
-
* resolution. The `servers` argument is an array of [RFC 5952](https://tools.ietf.org/html/rfc5952#section-6) formatted
|
|
326
|
-
* addresses. If the port is the IANA default DNS port (53) it can be omitted.
|
|
327
|
-
*
|
|
328
|
-
* ```js
|
|
329
|
-
* dnsPromises.setServers([
|
|
330
|
-
* '4.4.4.4',
|
|
331
|
-
* '[2001:4860:4860::8888]',
|
|
332
|
-
* '4.4.4.4:1053',
|
|
333
|
-
* '[2001:4860:4860::8888]:1053',
|
|
334
|
-
* ]);
|
|
335
|
-
* ```
|
|
336
|
-
*
|
|
337
|
-
* An error will be thrown if an invalid address is provided.
|
|
338
|
-
*
|
|
339
|
-
* The `dnsPromises.setServers()` method must not be called while a DNS query is in
|
|
340
|
-
* progress.
|
|
341
|
-
*
|
|
342
|
-
* This method works much like [resolve.conf](https://man7.org/linux/man-pages/man5/resolv.conf.5.html).
|
|
343
|
-
* That is, if attempting to resolve with the first server provided results in a `NOTFOUND` error, the `resolve()` method will _not_ attempt to resolve with
|
|
344
|
-
* subsequent servers provided. Fallback DNS servers will only be used if the
|
|
345
|
-
* earlier ones time out or result in some other error.
|
|
346
|
-
* @since v10.6.0
|
|
347
|
-
* @param servers array of `RFC 5952` formatted addresses
|
|
348
|
-
*/
|
|
349
|
-
function setServers(servers: readonly string[]): void;
|
|
350
|
-
/**
|
|
351
|
-
* Set the default value of `order` in `dns.lookup()` and `{@link lookup}`. The value could be:
|
|
352
|
-
*
|
|
353
|
-
* * `ipv4first`: sets default `order` to `ipv4first`.
|
|
354
|
-
* * `ipv6first`: sets default `order` to `ipv6first`.
|
|
355
|
-
* * `verbatim`: sets default `order` to `verbatim`.
|
|
356
|
-
*
|
|
357
|
-
* The default is `verbatim` and [dnsPromises.setDefaultResultOrder()](https://nodejs.org/docs/latest-v20.x/api/dns.html#dnspromisessetdefaultresultorderorder)
|
|
358
|
-
* have higher priority than [`--dns-result-order`](https://nodejs.org/docs/latest-v20.x/api/cli.html#--dns-result-orderorder).
|
|
359
|
-
* When using [worker threads](https://nodejs.org/docs/latest-v20.x/api/worker_threads.html), [`dnsPromises.setDefaultResultOrder()`](https://nodejs.org/docs/latest-v20.x/api/dns.html#dnspromisessetdefaultresultorderorder)
|
|
360
|
-
* from the main thread won't affect the default dns orders in workers.
|
|
361
|
-
* @since v16.4.0, v14.18.0
|
|
362
|
-
* @param order must be `'ipv4first'`, `'ipv6first'` or `'verbatim'`.
|
|
363
|
-
*/
|
|
364
|
-
function setDefaultResultOrder(order: "ipv4first" | "ipv6first" | "verbatim"): void;
|
|
365
|
-
// Error codes
|
|
366
|
-
const NODATA: "ENODATA";
|
|
367
|
-
const FORMERR: "EFORMERR";
|
|
368
|
-
const SERVFAIL: "ESERVFAIL";
|
|
369
|
-
const NOTFOUND: "ENOTFOUND";
|
|
370
|
-
const NOTIMP: "ENOTIMP";
|
|
371
|
-
const REFUSED: "EREFUSED";
|
|
372
|
-
const BADQUERY: "EBADQUERY";
|
|
373
|
-
const BADNAME: "EBADNAME";
|
|
374
|
-
const BADFAMILY: "EBADFAMILY";
|
|
375
|
-
const BADRESP: "EBADRESP";
|
|
376
|
-
const CONNREFUSED: "ECONNREFUSED";
|
|
377
|
-
const TIMEOUT: "ETIMEOUT";
|
|
378
|
-
const EOF: "EOF";
|
|
379
|
-
const FILE: "EFILE";
|
|
380
|
-
const NOMEM: "ENOMEM";
|
|
381
|
-
const DESTRUCTION: "EDESTRUCTION";
|
|
382
|
-
const BADSTR: "EBADSTR";
|
|
383
|
-
const BADFLAGS: "EBADFLAGS";
|
|
384
|
-
const NONAME: "ENONAME";
|
|
385
|
-
const BADHINTS: "EBADHINTS";
|
|
386
|
-
const NOTINITIALIZED: "ENOTINITIALIZED";
|
|
387
|
-
const LOADIPHLPAPI: "ELOADIPHLPAPI";
|
|
388
|
-
const ADDRGETNETWORKPARAMS: "EADDRGETNETWORKPARAMS";
|
|
389
|
-
const CANCELLED: "ECANCELLED";
|
|
390
|
-
|
|
391
|
-
/**
|
|
392
|
-
* An independent resolver for DNS requests.
|
|
393
|
-
*
|
|
394
|
-
* Creating a new resolver uses the default server settings. Setting
|
|
395
|
-
* the servers used for a resolver using [`resolver.setServers()`](https://nodejs.org/docs/latest-v20.x/api/dns.html#dnspromisessetserversservers) does not affect
|
|
396
|
-
* other resolvers:
|
|
397
|
-
*
|
|
398
|
-
* ```js
|
|
399
|
-
* import dns from 'node:dns';
|
|
400
|
-
* const { Resolver } = dns.promises;
|
|
401
|
-
* const resolver = new Resolver();
|
|
402
|
-
* resolver.setServers(['4.4.4.4']);
|
|
403
|
-
*
|
|
404
|
-
* // This request will use the server at 4.4.4.4, independent of global settings.
|
|
405
|
-
* resolver.resolve4('example.org').then((addresses) => {
|
|
406
|
-
* // ...
|
|
407
|
-
* });
|
|
408
|
-
*
|
|
409
|
-
* // Alternatively, the same code can be written using async-await style.
|
|
410
|
-
* (async function() {
|
|
411
|
-
* const addresses = await resolver.resolve4('example.org');
|
|
412
|
-
* })();
|
|
413
|
-
* ```
|
|
414
|
-
*
|
|
415
|
-
* The following methods from the `dnsPromises` API are available:
|
|
416
|
-
*
|
|
417
|
-
* * `resolver.getServers()`
|
|
418
|
-
* * `resolver.resolve()`
|
|
419
|
-
* * `resolver.resolve4()`
|
|
420
|
-
* * `resolver.resolve6()`
|
|
421
|
-
* * `resolver.resolveAny()`
|
|
422
|
-
* * `resolver.resolveCaa()`
|
|
423
|
-
* * `resolver.resolveCname()`
|
|
424
|
-
* * `resolver.resolveMx()`
|
|
425
|
-
* * `resolver.resolveNaptr()`
|
|
426
|
-
* * `resolver.resolveNs()`
|
|
427
|
-
* * `resolver.resolvePtr()`
|
|
428
|
-
* * `resolver.resolveSoa()`
|
|
429
|
-
* * `resolver.resolveSrv()`
|
|
430
|
-
* * `resolver.resolveTxt()`
|
|
431
|
-
* * `resolver.reverse()`
|
|
432
|
-
* * `resolver.setServers()`
|
|
433
|
-
* @since v10.6.0
|
|
434
|
-
*/
|
|
435
|
-
class Resolver {
|
|
436
|
-
constructor(options?: ResolverOptions);
|
|
437
|
-
/**
|
|
438
|
-
* Cancel all outstanding DNS queries made by this resolver. The corresponding
|
|
439
|
-
* callbacks will be called with an error with code `ECANCELLED`.
|
|
440
|
-
* @since v8.3.0
|
|
441
|
-
*/
|
|
442
|
-
cancel(): void;
|
|
443
|
-
getServers: typeof getServers;
|
|
444
|
-
resolve: typeof resolve;
|
|
445
|
-
resolve4: typeof resolve4;
|
|
446
|
-
resolve6: typeof resolve6;
|
|
447
|
-
resolveAny: typeof resolveAny;
|
|
448
|
-
resolveCaa: typeof resolveCaa;
|
|
449
|
-
resolveCname: typeof resolveCname;
|
|
450
|
-
resolveMx: typeof resolveMx;
|
|
451
|
-
resolveNaptr: typeof resolveNaptr;
|
|
452
|
-
resolveNs: typeof resolveNs;
|
|
453
|
-
resolvePtr: typeof resolvePtr;
|
|
454
|
-
resolveSoa: typeof resolveSoa;
|
|
455
|
-
resolveSrv: typeof resolveSrv;
|
|
456
|
-
resolveTxt: typeof resolveTxt;
|
|
457
|
-
reverse: typeof reverse;
|
|
458
|
-
/**
|
|
459
|
-
* The resolver instance will send its requests from the specified IP address.
|
|
460
|
-
* This allows programs to specify outbound interfaces when used on multi-homed
|
|
461
|
-
* systems.
|
|
462
|
-
*
|
|
463
|
-
* If a v4 or v6 address is not specified, it is set to the default and the
|
|
464
|
-
* operating system will choose a local address automatically.
|
|
465
|
-
*
|
|
466
|
-
* The resolver will use the v4 local address when making requests to IPv4 DNS
|
|
467
|
-
* servers, and the v6 local address when making requests to IPv6 DNS servers.
|
|
468
|
-
* The `rrtype` of resolution requests has no impact on the local address used.
|
|
469
|
-
* @since v15.1.0, v14.17.0
|
|
470
|
-
* @param [ipv4='0.0.0.0'] A string representation of an IPv4 address.
|
|
471
|
-
* @param [ipv6='::0'] A string representation of an IPv6 address.
|
|
472
|
-
*/
|
|
473
|
-
setLocalAddress(ipv4?: string, ipv6?: string): void;
|
|
474
|
-
setServers: typeof setServers;
|
|
475
|
-
}
|
|
476
|
-
}
|
|
477
|
-
declare module "node:dns/promises" {
|
|
478
|
-
export * from "dns/promises";
|
|
479
|
-
}
|