@naturalpay/sdk 1.2.0 → 1.2.2
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/dist/cjs/BaseClient.js +2 -2
- package/dist/cjs/api/resources/agents/types/CreateCustomerAgentsRequestPermissionsItem.d.ts +4 -0
- package/dist/cjs/api/resources/agents/types/CreateCustomerAgentsRequestPermissionsItem.js +4 -0
- package/dist/cjs/api/resources/apiKeys/types/CreateApiKeysRequestScopesItem.d.ts +4 -0
- package/dist/cjs/api/resources/apiKeys/types/CreateApiKeysRequestScopesItem.js +4 -0
- package/dist/cjs/api/resources/approvals/types/ApproveApprovalsResponseDataAttributesTargetType.d.ts +1 -0
- package/dist/cjs/api/resources/approvals/types/ApproveApprovalsResponseDataAttributesTargetType.js +1 -0
- package/dist/cjs/api/resources/approvals/types/DenyApprovalsResponseDataAttributesTargetType.d.ts +1 -0
- package/dist/cjs/api/resources/approvals/types/DenyApprovalsResponseDataAttributesTargetType.js +1 -0
- package/dist/cjs/api/resources/approvals/types/GetApprovalsResponseDataAttributesTargetType.d.ts +1 -0
- package/dist/cjs/api/resources/approvals/types/GetApprovalsResponseDataAttributesTargetType.js +1 -0
- package/dist/cjs/api/resources/approvals/types/ListApprovalsResponseDataItemAttributesTargetType.d.ts +1 -0
- package/dist/cjs/api/resources/approvals/types/ListApprovalsResponseDataItemAttributesTargetType.js +1 -0
- package/dist/cjs/api/resources/customers/client/Client.d.ts +3 -3
- package/dist/cjs/api/resources/customers/client/Client.js +3 -3
- package/dist/cjs/api/resources/customers/types/CreateInvitationsCustomersRequestAgentsItemPermissionsItem.d.ts +4 -0
- package/dist/cjs/api/resources/customers/types/CreateInvitationsCustomersRequestAgentsItemPermissionsItem.js +4 -0
- package/dist/cjs/api/resources/events/client/Client.d.ts +30 -0
- package/dist/cjs/api/resources/events/client/Client.js +101 -0
- package/dist/cjs/api/resources/events/client/requests/RedeliverEventsRequest.d.ts +14 -0
- package/dist/cjs/api/resources/events/client/requests/RedeliverEventsRequest.js +3 -0
- package/dist/cjs/api/resources/events/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/events/types/RedeliverEventsResponse.d.ts +4 -0
- package/dist/cjs/api/resources/events/types/RedeliverEventsResponse.js +3 -0
- package/dist/cjs/api/resources/events/types/RedeliverEventsResponseData.d.ts +11 -0
- package/dist/cjs/api/resources/events/types/RedeliverEventsResponseData.js +3 -0
- package/dist/cjs/api/resources/events/types/RedeliverEventsResponseDataAttributes.d.ts +28 -0
- package/dist/cjs/api/resources/events/types/RedeliverEventsResponseDataAttributes.js +3 -0
- package/dist/cjs/api/resources/events/types/RedeliverEventsResponseDataAttributesErrorCategory.d.ts +8 -0
- package/dist/cjs/api/resources/events/types/RedeliverEventsResponseDataAttributesErrorCategory.js +11 -0
- package/dist/cjs/api/resources/events/types/RedeliverEventsResponseDataAttributesStatus.d.ts +10 -0
- package/dist/cjs/api/resources/events/types/RedeliverEventsResponseDataAttributesStatus.js +13 -0
- package/dist/cjs/api/resources/events/types/RedeliverEventsResponseDataRelationships.d.ts +10 -0
- package/dist/cjs/api/resources/events/types/RedeliverEventsResponseDataRelationships.js +3 -0
- package/dist/cjs/api/resources/events/types/RedeliverEventsResponseDataRelationshipsEvent.d.ts +8 -0
- package/dist/cjs/api/resources/events/types/RedeliverEventsResponseDataRelationshipsEvent.js +3 -0
- package/dist/cjs/api/resources/events/types/RedeliverEventsResponseDataRelationshipsEventData.d.ts +8 -0
- package/dist/cjs/api/resources/events/types/RedeliverEventsResponseDataRelationshipsEventData.js +3 -0
- package/dist/cjs/api/resources/events/types/RedeliverEventsResponseDataRelationshipsEventDataType.d.ts +4 -0
- package/dist/cjs/api/resources/events/types/RedeliverEventsResponseDataRelationshipsEventDataType.js +7 -0
- package/dist/cjs/api/resources/events/types/RedeliverEventsResponseDataRelationshipsWebhook.d.ts +8 -0
- package/dist/cjs/api/resources/events/types/RedeliverEventsResponseDataRelationshipsWebhook.js +3 -0
- package/dist/cjs/api/resources/events/types/RedeliverEventsResponseDataRelationshipsWebhookData.d.ts +8 -0
- package/dist/cjs/api/resources/events/types/RedeliverEventsResponseDataRelationshipsWebhookData.js +3 -0
- package/dist/cjs/api/resources/events/types/RedeliverEventsResponseDataRelationshipsWebhookDataType.d.ts +4 -0
- package/dist/cjs/api/resources/events/types/RedeliverEventsResponseDataRelationshipsWebhookDataType.js +7 -0
- package/dist/cjs/api/resources/events/types/RedeliverEventsResponseDataType.d.ts +5 -0
- package/dist/cjs/api/resources/events/types/RedeliverEventsResponseDataType.js +8 -0
- package/dist/cjs/api/resources/events/types/index.d.ts +13 -0
- package/dist/cjs/api/resources/events/types/index.js +13 -0
- package/dist/cjs/api/resources/externalAccounts/types/CreateFromProcessorTokenExternalAccountsResponseDataItemAttributes.d.ts +2 -0
- package/dist/cjs/api/resources/externalAccounts/types/CreateFromProcessorTokenExternalAccountsResponseDataItemAttributesAvailableMethodsItem.d.ts +5 -0
- package/dist/cjs/api/resources/externalAccounts/types/CreateFromProcessorTokenExternalAccountsResponseDataItemAttributesAvailableMethodsItem.js +8 -0
- package/dist/cjs/api/resources/externalAccounts/types/DelExtAcctAttrs.d.ts +2 -0
- package/dist/cjs/api/resources/externalAccounts/types/ExtAcctAttrs.d.ts +2 -0
- package/dist/cjs/api/resources/externalAccounts/types/GetExternalAccountsResponseDataAttributes.d.ts +2 -0
- package/dist/cjs/api/resources/externalAccounts/types/GetExternalAccountsResponseDataAttributesAvailableMethodsItem.d.ts +5 -0
- package/dist/cjs/api/resources/externalAccounts/types/GetExternalAccountsResponseDataAttributesAvailableMethodsItem.js +8 -0
- package/dist/cjs/api/resources/externalAccounts/types/ListExternalAccountsResponseDataItemAttributesAvailableMethodsItem.d.ts +5 -0
- package/dist/cjs/api/resources/externalAccounts/types/ListExternalAccountsResponseDataItemAttributesAvailableMethodsItem.js +8 -0
- package/dist/cjs/api/resources/externalAccounts/types/RemoveExternalAccountsResponseDataAttributesAvailableMethodsItem.d.ts +5 -0
- package/dist/cjs/api/resources/externalAccounts/types/RemoveExternalAccountsResponseDataAttributesAvailableMethodsItem.js +8 -0
- package/dist/cjs/api/resources/externalAccounts/types/index.d.ts +4 -0
- package/dist/cjs/api/resources/externalAccounts/types/index.js +4 -0
- package/dist/cjs/api/resources/invitationLinks/client/Client.d.ts +4 -4
- package/dist/cjs/api/resources/invitationLinks/client/Client.js +4 -4
- package/dist/cjs/api/resources/invitationLinks/types/CreateInvitationLinksRequestProposedAgentsItemPermissionsItem.d.ts +4 -0
- package/dist/cjs/api/resources/invitationLinks/types/CreateInvitationLinksRequestProposedAgentsItemPermissionsItem.js +4 -0
- package/dist/cjs/api/resources/invitationLinks/types/CreateInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.d.ts +4 -0
- package/dist/cjs/api/resources/invitationLinks/types/CreateInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.js +4 -0
- package/dist/cjs/api/resources/invitationLinks/types/GetInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.d.ts +4 -0
- package/dist/cjs/api/resources/invitationLinks/types/GetInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.js +4 -0
- package/dist/cjs/api/resources/invitationLinks/types/ListInvitationLinksResponseDataItemAttributesProposedAgentsItemPermissionsItem.d.ts +4 -0
- package/dist/cjs/api/resources/invitationLinks/types/ListInvitationLinksResponseDataItemAttributesProposedAgentsItemPermissionsItem.js +4 -0
- package/dist/cjs/api/resources/invitationLinks/types/RevokeInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.d.ts +4 -0
- package/dist/cjs/api/resources/invitationLinks/types/RevokeInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.js +4 -0
- package/dist/cjs/api/resources/paymentRequests/types/FulfillPaymentRequestsRequestPaymentSourceWallet.d.ts +2 -2
- package/dist/cjs/api/resources/simulations/client/Client.d.ts +9 -9
- package/dist/cjs/api/resources/simulations/client/Client.js +9 -9
- package/dist/cjs/api/resources/simulations/client/requests/AcceptCustomerInvitationSimulationsRequest.d.ts +1 -1
- package/dist/cjs/api/resources/simulations/client/requests/DeclineCustomerInvitationSimulationsRequest.d.ts +1 -1
- package/dist/cjs/api/resources/simulations/client/requests/InviteCustomerSimulationsRequest.d.ts +2 -2
- package/dist/cjs/api/resources/simulations/types/FundCustomerSimulationsResponseDataAttributes.d.ts +4 -0
- package/dist/cjs/api/resources/simulations/types/InviteCustomerSimulationsRequestType.d.ts +1 -1
- package/dist/cjs/api/resources/simulations/types/InviteCustomerSimulationsRequestType.js +1 -1
- package/dist/cjs/api/resources/simulations/types/InviteCustomerSimulationsResponse.d.ts +1 -1
- package/dist/cjs/api/resources/simulations/types/InviteCustomerSimulationsResponseMetaCustomer.d.ts +3 -3
- package/dist/cjs/api/resources/simulations/types/InviteCustomerSimulationsResponseMetaCustomerPartyType.d.ts +1 -1
- package/dist/cjs/api/resources/simulations/types/InviteCustomerSimulationsResponseMetaCustomerPartyType.js +1 -1
- package/dist/cjs/api/resources/simulations/types/LinkExternalAccountSimulationsResponseDataItemAttributes.d.ts +2 -0
- package/dist/cjs/api/resources/simulations/types/LinkExternalAccountSimulationsResponseDataItemAttributesAvailableMethodsItem.d.ts +5 -0
- package/dist/cjs/api/resources/simulations/types/LinkExternalAccountSimulationsResponseDataItemAttributesAvailableMethodsItem.js +8 -0
- package/dist/cjs/api/resources/simulations/types/index.d.ts +1 -0
- package/dist/cjs/api/resources/simulations/types/index.js +1 -0
- package/dist/cjs/api/resources/transfers/client/Client.d.ts +1 -0
- package/dist/cjs/api/resources/transfers/client/Client.js +1 -0
- package/dist/cjs/api/resources/transfers/client/requests/NewWithdrawalParams.d.ts +3 -0
- package/dist/cjs/api/resources/transfers/types/DepositAttrs.d.ts +4 -0
- package/dist/cjs/api/resources/transfers/types/InitiateInternalTransfersResponseDataAttributes.d.ts +4 -0
- package/dist/cjs/api/resources/transfers/types/InitiateWithdrawalTransfersRequestMethod.d.ts +6 -0
- package/dist/cjs/api/resources/transfers/types/InitiateWithdrawalTransfersRequestMethod.js +9 -0
- package/dist/cjs/api/resources/transfers/types/TransferAttrs.d.ts +4 -0
- package/dist/cjs/api/resources/transfers/types/TransferDetailAttrs.d.ts +4 -0
- package/dist/cjs/api/resources/transfers/types/WithdrawalAttrs.d.ts +4 -0
- package/dist/cjs/api/resources/transfers/types/index.d.ts +1 -0
- package/dist/cjs/api/resources/transfers/types/index.js +1 -0
- package/dist/cjs/api/resources/wallets/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/wallets/client/Client.js +1 -1
- package/dist/cjs/api/resources/wallets/types/CreateWalletsResponseDataAttributesDepositInstructions.d.ts +4 -0
- package/dist/cjs/api/resources/wallets/types/FreezeWalletsResponseDataAttributesDepositInstructions.d.ts +4 -0
- package/dist/cjs/api/resources/wallets/types/GetWalletsResponseDataAttributesDepositInstructions.d.ts +4 -0
- package/dist/cjs/api/resources/wallets/types/ListWalletsResponseDataItemAttributesDepositInstructions.d.ts +4 -0
- package/dist/cjs/api/resources/wallets/types/SetDefaultWalletsResponseDataAttributesDepositInstructions.d.ts +4 -0
- package/dist/cjs/api/resources/wallets/types/UnfreezeWalletsResponseDataAttributesDepositInstructions.d.ts +4 -0
- package/dist/cjs/api/resources/wallets/types/UpdateWalletsResponseDataAttributesDepositInstructions.d.ts +4 -0
- package/dist/cjs/api/types/ComplianceSessionStatusResponseDataAttributesStatus.d.ts +2 -0
- package/dist/cjs/api/types/ComplianceSessionStatusResponseDataAttributesStatus.js +2 -0
- package/dist/cjs/api/types/PartyComplianceStatusResponseDataAttributesCaseStatus.d.ts +2 -0
- package/dist/cjs/api/types/PartyComplianceStatusResponseDataAttributesCaseStatus.js +2 -0
- package/dist/cjs/serialization/resources/agents/types/CreateCustomerAgentsRequestPermissionsItem.d.ts +1 -1
- package/dist/cjs/serialization/resources/agents/types/CreateCustomerAgentsRequestPermissionsItem.js +4 -0
- package/dist/cjs/serialization/resources/apiKeys/types/CreateApiKeysRequestScopesItem.d.ts +1 -1
- package/dist/cjs/serialization/resources/apiKeys/types/CreateApiKeysRequestScopesItem.js +4 -0
- package/dist/cjs/serialization/resources/approvals/types/ApproveApprovalsResponseDataAttributesTargetType.d.ts +1 -1
- package/dist/cjs/serialization/resources/approvals/types/ApproveApprovalsResponseDataAttributesTargetType.js +1 -1
- package/dist/cjs/serialization/resources/approvals/types/DenyApprovalsResponseDataAttributesTargetType.d.ts +1 -1
- package/dist/cjs/serialization/resources/approvals/types/DenyApprovalsResponseDataAttributesTargetType.js +1 -1
- package/dist/cjs/serialization/resources/approvals/types/GetApprovalsResponseDataAttributesTargetType.d.ts +1 -1
- package/dist/cjs/serialization/resources/approvals/types/GetApprovalsResponseDataAttributesTargetType.js +1 -1
- package/dist/cjs/serialization/resources/approvals/types/ListApprovalsResponseDataItemAttributesTargetType.d.ts +1 -1
- package/dist/cjs/serialization/resources/approvals/types/ListApprovalsResponseDataItemAttributesTargetType.js +1 -1
- package/dist/cjs/serialization/resources/customers/types/CreateInvitationsCustomersRequestAgentsItemPermissionsItem.d.ts +1 -1
- package/dist/cjs/serialization/resources/customers/types/CreateInvitationsCustomersRequestAgentsItemPermissionsItem.js +4 -0
- package/dist/cjs/serialization/resources/events/types/RedeliverEventsResponse.d.ts +10 -0
- package/dist/cjs/serialization/resources/events/types/RedeliverEventsResponse.js +42 -0
- package/dist/cjs/serialization/resources/events/types/RedeliverEventsResponseData.d.ts +15 -0
- package/dist/cjs/serialization/resources/events/types/RedeliverEventsResponseData.js +47 -0
- package/dist/cjs/serialization/resources/events/types/RedeliverEventsResponseDataAttributes.d.ts +21 -0
- package/dist/cjs/serialization/resources/events/types/RedeliverEventsResponseDataAttributes.js +53 -0
- package/dist/cjs/serialization/resources/events/types/RedeliverEventsResponseDataAttributesErrorCategory.d.ts +7 -0
- package/dist/cjs/serialization/resources/events/types/RedeliverEventsResponseDataAttributesErrorCategory.js +39 -0
- package/dist/cjs/serialization/resources/events/types/RedeliverEventsResponseDataAttributesStatus.d.ts +7 -0
- package/dist/cjs/serialization/resources/events/types/RedeliverEventsResponseDataAttributesStatus.js +39 -0
- package/dist/cjs/serialization/resources/events/types/RedeliverEventsResponseDataRelationships.d.ts +12 -0
- package/dist/cjs/serialization/resources/events/types/RedeliverEventsResponseDataRelationships.js +44 -0
- package/dist/cjs/serialization/resources/events/types/RedeliverEventsResponseDataRelationshipsEvent.d.ts +10 -0
- package/dist/cjs/serialization/resources/events/types/RedeliverEventsResponseDataRelationshipsEvent.js +42 -0
- package/dist/cjs/serialization/resources/events/types/RedeliverEventsResponseDataRelationshipsEventData.d.ts +11 -0
- package/dist/cjs/serialization/resources/events/types/RedeliverEventsResponseDataRelationshipsEventData.js +43 -0
- package/dist/cjs/serialization/resources/events/types/RedeliverEventsResponseDataRelationshipsEventDataType.d.ts +7 -0
- package/dist/cjs/serialization/resources/events/types/RedeliverEventsResponseDataRelationshipsEventDataType.js +39 -0
- package/dist/cjs/serialization/resources/events/types/RedeliverEventsResponseDataRelationshipsWebhook.d.ts +10 -0
- package/dist/cjs/serialization/resources/events/types/RedeliverEventsResponseDataRelationshipsWebhook.js +42 -0
- package/dist/cjs/serialization/resources/events/types/RedeliverEventsResponseDataRelationshipsWebhookData.d.ts +11 -0
- package/dist/cjs/serialization/resources/events/types/RedeliverEventsResponseDataRelationshipsWebhookData.js +43 -0
- package/dist/cjs/serialization/resources/events/types/RedeliverEventsResponseDataRelationshipsWebhookDataType.d.ts +7 -0
- package/dist/cjs/serialization/resources/events/types/RedeliverEventsResponseDataRelationshipsWebhookDataType.js +39 -0
- package/dist/cjs/serialization/resources/events/types/RedeliverEventsResponseDataType.d.ts +7 -0
- package/dist/cjs/serialization/resources/events/types/RedeliverEventsResponseDataType.js +39 -0
- package/dist/cjs/serialization/resources/events/types/index.d.ts +13 -0
- package/dist/cjs/serialization/resources/events/types/index.js +13 -0
- package/dist/cjs/serialization/resources/externalAccounts/types/CreateFromProcessorTokenExternalAccountsResponseDataItemAttributes.d.ts +2 -0
- package/dist/cjs/serialization/resources/externalAccounts/types/CreateFromProcessorTokenExternalAccountsResponseDataItemAttributes.js +2 -0
- package/dist/cjs/serialization/resources/externalAccounts/types/CreateFromProcessorTokenExternalAccountsResponseDataItemAttributesAvailableMethodsItem.d.ts +7 -0
- package/dist/cjs/serialization/resources/externalAccounts/types/CreateFromProcessorTokenExternalAccountsResponseDataItemAttributesAvailableMethodsItem.js +39 -0
- package/dist/cjs/serialization/resources/externalAccounts/types/DelExtAcctAttrs.d.ts +2 -0
- package/dist/cjs/serialization/resources/externalAccounts/types/DelExtAcctAttrs.js +2 -0
- package/dist/cjs/serialization/resources/externalAccounts/types/ExtAcctAttrs.d.ts +2 -0
- package/dist/cjs/serialization/resources/externalAccounts/types/ExtAcctAttrs.js +2 -0
- package/dist/cjs/serialization/resources/externalAccounts/types/GetExternalAccountsResponseDataAttributes.d.ts +2 -0
- package/dist/cjs/serialization/resources/externalAccounts/types/GetExternalAccountsResponseDataAttributes.js +2 -0
- package/dist/cjs/serialization/resources/externalAccounts/types/GetExternalAccountsResponseDataAttributesAvailableMethodsItem.d.ts +7 -0
- package/dist/cjs/serialization/resources/externalAccounts/types/GetExternalAccountsResponseDataAttributesAvailableMethodsItem.js +39 -0
- package/dist/cjs/serialization/resources/externalAccounts/types/ListExternalAccountsResponseDataItemAttributesAvailableMethodsItem.d.ts +7 -0
- package/dist/cjs/serialization/resources/externalAccounts/types/ListExternalAccountsResponseDataItemAttributesAvailableMethodsItem.js +39 -0
- package/dist/cjs/serialization/resources/externalAccounts/types/RemoveExternalAccountsResponseDataAttributesAvailableMethodsItem.d.ts +7 -0
- package/dist/cjs/serialization/resources/externalAccounts/types/RemoveExternalAccountsResponseDataAttributesAvailableMethodsItem.js +39 -0
- package/dist/cjs/serialization/resources/externalAccounts/types/index.d.ts +4 -0
- package/dist/cjs/serialization/resources/externalAccounts/types/index.js +4 -0
- package/dist/cjs/serialization/resources/invitationLinks/types/CreateInvitationLinksRequestProposedAgentsItemPermissionsItem.d.ts +1 -1
- package/dist/cjs/serialization/resources/invitationLinks/types/CreateInvitationLinksRequestProposedAgentsItemPermissionsItem.js +4 -0
- package/dist/cjs/serialization/resources/invitationLinks/types/CreateInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.d.ts +1 -1
- package/dist/cjs/serialization/resources/invitationLinks/types/CreateInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.js +4 -0
- package/dist/cjs/serialization/resources/invitationLinks/types/GetInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.d.ts +1 -1
- package/dist/cjs/serialization/resources/invitationLinks/types/GetInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.js +4 -0
- package/dist/cjs/serialization/resources/invitationLinks/types/ListInvitationLinksResponseDataItemAttributesProposedAgentsItemPermissionsItem.d.ts +1 -1
- package/dist/cjs/serialization/resources/invitationLinks/types/ListInvitationLinksResponseDataItemAttributesProposedAgentsItemPermissionsItem.js +4 -0
- package/dist/cjs/serialization/resources/invitationLinks/types/RevokeInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.d.ts +1 -1
- package/dist/cjs/serialization/resources/invitationLinks/types/RevokeInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.js +4 -0
- package/dist/cjs/serialization/resources/paymentRequests/types/FulfillPaymentRequestsRequestPaymentSourceWallet.d.ts +1 -1
- package/dist/cjs/serialization/resources/paymentRequests/types/FulfillPaymentRequestsRequestPaymentSourceWallet.js +1 -1
- package/dist/cjs/serialization/resources/simulations/types/FundCustomerSimulationsResponseDataAttributes.d.ts +2 -0
- package/dist/cjs/serialization/resources/simulations/types/FundCustomerSimulationsResponseDataAttributes.js +2 -0
- package/dist/cjs/serialization/resources/simulations/types/LinkExternalAccountSimulationsResponseDataItemAttributes.d.ts +2 -0
- package/dist/cjs/serialization/resources/simulations/types/LinkExternalAccountSimulationsResponseDataItemAttributes.js +2 -0
- package/dist/cjs/serialization/resources/simulations/types/LinkExternalAccountSimulationsResponseDataItemAttributesAvailableMethodsItem.d.ts +7 -0
- package/dist/cjs/serialization/resources/simulations/types/LinkExternalAccountSimulationsResponseDataItemAttributesAvailableMethodsItem.js +39 -0
- package/dist/cjs/serialization/resources/simulations/types/index.d.ts +1 -0
- package/dist/cjs/serialization/resources/simulations/types/index.js +1 -0
- package/dist/cjs/serialization/resources/transfers/client/requests/NewWithdrawalParams.d.ts +2 -0
- package/dist/cjs/serialization/resources/transfers/client/requests/NewWithdrawalParams.js +2 -0
- package/dist/cjs/serialization/resources/transfers/types/DepositAttrs.d.ts +2 -0
- package/dist/cjs/serialization/resources/transfers/types/DepositAttrs.js +2 -0
- package/dist/cjs/serialization/resources/transfers/types/InitiateInternalTransfersResponseDataAttributes.d.ts +2 -0
- package/dist/cjs/serialization/resources/transfers/types/InitiateInternalTransfersResponseDataAttributes.js +2 -0
- package/dist/cjs/serialization/resources/transfers/types/InitiateWithdrawalTransfersRequestMethod.d.ts +7 -0
- package/dist/cjs/serialization/resources/transfers/types/InitiateWithdrawalTransfersRequestMethod.js +39 -0
- package/dist/cjs/serialization/resources/transfers/types/TransferAttrs.d.ts +2 -0
- package/dist/cjs/serialization/resources/transfers/types/TransferAttrs.js +2 -0
- package/dist/cjs/serialization/resources/transfers/types/TransferDetailAttrs.d.ts +2 -0
- package/dist/cjs/serialization/resources/transfers/types/TransferDetailAttrs.js +2 -0
- package/dist/cjs/serialization/resources/transfers/types/WithdrawalAttrs.d.ts +2 -0
- package/dist/cjs/serialization/resources/transfers/types/WithdrawalAttrs.js +2 -0
- package/dist/cjs/serialization/resources/transfers/types/index.d.ts +1 -0
- package/dist/cjs/serialization/resources/transfers/types/index.js +1 -0
- package/dist/cjs/serialization/resources/wallets/types/CreateWalletsResponseDataAttributesDepositInstructions.d.ts +2 -0
- package/dist/cjs/serialization/resources/wallets/types/CreateWalletsResponseDataAttributesDepositInstructions.js +2 -0
- package/dist/cjs/serialization/resources/wallets/types/FreezeWalletsResponseDataAttributesDepositInstructions.d.ts +2 -0
- package/dist/cjs/serialization/resources/wallets/types/FreezeWalletsResponseDataAttributesDepositInstructions.js +2 -0
- package/dist/cjs/serialization/resources/wallets/types/GetWalletsResponseDataAttributesDepositInstructions.d.ts +2 -0
- package/dist/cjs/serialization/resources/wallets/types/GetWalletsResponseDataAttributesDepositInstructions.js +2 -0
- package/dist/cjs/serialization/resources/wallets/types/ListWalletsResponseDataItemAttributesDepositInstructions.d.ts +2 -0
- package/dist/cjs/serialization/resources/wallets/types/ListWalletsResponseDataItemAttributesDepositInstructions.js +2 -0
- package/dist/cjs/serialization/resources/wallets/types/SetDefaultWalletsResponseDataAttributesDepositInstructions.d.ts +2 -0
- package/dist/cjs/serialization/resources/wallets/types/SetDefaultWalletsResponseDataAttributesDepositInstructions.js +2 -0
- package/dist/cjs/serialization/resources/wallets/types/UnfreezeWalletsResponseDataAttributesDepositInstructions.d.ts +2 -0
- package/dist/cjs/serialization/resources/wallets/types/UnfreezeWalletsResponseDataAttributesDepositInstructions.js +2 -0
- package/dist/cjs/serialization/resources/wallets/types/UpdateWalletsResponseDataAttributesDepositInstructions.d.ts +2 -0
- package/dist/cjs/serialization/resources/wallets/types/UpdateWalletsResponseDataAttributesDepositInstructions.js +2 -0
- package/dist/cjs/serialization/types/ComplianceSessionStatusResponseDataAttributesStatus.d.ts +1 -1
- package/dist/cjs/serialization/types/ComplianceSessionStatusResponseDataAttributesStatus.js +2 -0
- package/dist/cjs/serialization/types/PartyComplianceStatusResponseDataAttributesCaseStatus.d.ts +1 -1
- package/dist/cjs/serialization/types/PartyComplianceStatusResponseDataAttributesCaseStatus.js +2 -0
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.mjs +2 -2
- package/dist/esm/api/resources/agents/types/CreateCustomerAgentsRequestPermissionsItem.d.mts +4 -0
- package/dist/esm/api/resources/agents/types/CreateCustomerAgentsRequestPermissionsItem.mjs +4 -0
- package/dist/esm/api/resources/apiKeys/types/CreateApiKeysRequestScopesItem.d.mts +4 -0
- package/dist/esm/api/resources/apiKeys/types/CreateApiKeysRequestScopesItem.mjs +4 -0
- package/dist/esm/api/resources/approvals/types/ApproveApprovalsResponseDataAttributesTargetType.d.mts +1 -0
- package/dist/esm/api/resources/approvals/types/ApproveApprovalsResponseDataAttributesTargetType.mjs +1 -0
- package/dist/esm/api/resources/approvals/types/DenyApprovalsResponseDataAttributesTargetType.d.mts +1 -0
- package/dist/esm/api/resources/approvals/types/DenyApprovalsResponseDataAttributesTargetType.mjs +1 -0
- package/dist/esm/api/resources/approvals/types/GetApprovalsResponseDataAttributesTargetType.d.mts +1 -0
- package/dist/esm/api/resources/approvals/types/GetApprovalsResponseDataAttributesTargetType.mjs +1 -0
- package/dist/esm/api/resources/approvals/types/ListApprovalsResponseDataItemAttributesTargetType.d.mts +1 -0
- package/dist/esm/api/resources/approvals/types/ListApprovalsResponseDataItemAttributesTargetType.mjs +1 -0
- package/dist/esm/api/resources/customers/client/Client.d.mts +3 -3
- package/dist/esm/api/resources/customers/client/Client.mjs +3 -3
- package/dist/esm/api/resources/customers/types/CreateInvitationsCustomersRequestAgentsItemPermissionsItem.d.mts +4 -0
- package/dist/esm/api/resources/customers/types/CreateInvitationsCustomersRequestAgentsItemPermissionsItem.mjs +4 -0
- package/dist/esm/api/resources/events/client/Client.d.mts +30 -0
- package/dist/esm/api/resources/events/client/Client.mjs +101 -0
- package/dist/esm/api/resources/events/client/requests/RedeliverEventsRequest.d.mts +14 -0
- package/dist/esm/api/resources/events/client/requests/RedeliverEventsRequest.mjs +2 -0
- package/dist/esm/api/resources/events/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/events/types/RedeliverEventsResponse.d.mts +4 -0
- package/dist/esm/api/resources/events/types/RedeliverEventsResponse.mjs +2 -0
- package/dist/esm/api/resources/events/types/RedeliverEventsResponseData.d.mts +11 -0
- package/dist/esm/api/resources/events/types/RedeliverEventsResponseData.mjs +2 -0
- package/dist/esm/api/resources/events/types/RedeliverEventsResponseDataAttributes.d.mts +28 -0
- package/dist/esm/api/resources/events/types/RedeliverEventsResponseDataAttributes.mjs +2 -0
- package/dist/esm/api/resources/events/types/RedeliverEventsResponseDataAttributesErrorCategory.d.mts +8 -0
- package/dist/esm/api/resources/events/types/RedeliverEventsResponseDataAttributesErrorCategory.mjs +8 -0
- package/dist/esm/api/resources/events/types/RedeliverEventsResponseDataAttributesStatus.d.mts +10 -0
- package/dist/esm/api/resources/events/types/RedeliverEventsResponseDataAttributesStatus.mjs +10 -0
- package/dist/esm/api/resources/events/types/RedeliverEventsResponseDataRelationships.d.mts +10 -0
- package/dist/esm/api/resources/events/types/RedeliverEventsResponseDataRelationships.mjs +2 -0
- package/dist/esm/api/resources/events/types/RedeliverEventsResponseDataRelationshipsEvent.d.mts +8 -0
- package/dist/esm/api/resources/events/types/RedeliverEventsResponseDataRelationshipsEvent.mjs +2 -0
- package/dist/esm/api/resources/events/types/RedeliverEventsResponseDataRelationshipsEventData.d.mts +8 -0
- package/dist/esm/api/resources/events/types/RedeliverEventsResponseDataRelationshipsEventData.mjs +2 -0
- package/dist/esm/api/resources/events/types/RedeliverEventsResponseDataRelationshipsEventDataType.d.mts +4 -0
- package/dist/esm/api/resources/events/types/RedeliverEventsResponseDataRelationshipsEventDataType.mjs +4 -0
- package/dist/esm/api/resources/events/types/RedeliverEventsResponseDataRelationshipsWebhook.d.mts +8 -0
- package/dist/esm/api/resources/events/types/RedeliverEventsResponseDataRelationshipsWebhook.mjs +2 -0
- package/dist/esm/api/resources/events/types/RedeliverEventsResponseDataRelationshipsWebhookData.d.mts +8 -0
- package/dist/esm/api/resources/events/types/RedeliverEventsResponseDataRelationshipsWebhookData.mjs +2 -0
- package/dist/esm/api/resources/events/types/RedeliverEventsResponseDataRelationshipsWebhookDataType.d.mts +4 -0
- package/dist/esm/api/resources/events/types/RedeliverEventsResponseDataRelationshipsWebhookDataType.mjs +4 -0
- package/dist/esm/api/resources/events/types/RedeliverEventsResponseDataType.d.mts +5 -0
- package/dist/esm/api/resources/events/types/RedeliverEventsResponseDataType.mjs +5 -0
- package/dist/esm/api/resources/events/types/index.d.mts +13 -0
- package/dist/esm/api/resources/events/types/index.mjs +13 -0
- package/dist/esm/api/resources/externalAccounts/types/CreateFromProcessorTokenExternalAccountsResponseDataItemAttributes.d.mts +2 -0
- package/dist/esm/api/resources/externalAccounts/types/CreateFromProcessorTokenExternalAccountsResponseDataItemAttributesAvailableMethodsItem.d.mts +5 -0
- package/dist/esm/api/resources/externalAccounts/types/CreateFromProcessorTokenExternalAccountsResponseDataItemAttributesAvailableMethodsItem.mjs +5 -0
- package/dist/esm/api/resources/externalAccounts/types/DelExtAcctAttrs.d.mts +2 -0
- package/dist/esm/api/resources/externalAccounts/types/ExtAcctAttrs.d.mts +2 -0
- package/dist/esm/api/resources/externalAccounts/types/GetExternalAccountsResponseDataAttributes.d.mts +2 -0
- package/dist/esm/api/resources/externalAccounts/types/GetExternalAccountsResponseDataAttributesAvailableMethodsItem.d.mts +5 -0
- package/dist/esm/api/resources/externalAccounts/types/GetExternalAccountsResponseDataAttributesAvailableMethodsItem.mjs +5 -0
- package/dist/esm/api/resources/externalAccounts/types/ListExternalAccountsResponseDataItemAttributesAvailableMethodsItem.d.mts +5 -0
- package/dist/esm/api/resources/externalAccounts/types/ListExternalAccountsResponseDataItemAttributesAvailableMethodsItem.mjs +5 -0
- package/dist/esm/api/resources/externalAccounts/types/RemoveExternalAccountsResponseDataAttributesAvailableMethodsItem.d.mts +5 -0
- package/dist/esm/api/resources/externalAccounts/types/RemoveExternalAccountsResponseDataAttributesAvailableMethodsItem.mjs +5 -0
- package/dist/esm/api/resources/externalAccounts/types/index.d.mts +4 -0
- package/dist/esm/api/resources/externalAccounts/types/index.mjs +4 -0
- package/dist/esm/api/resources/invitationLinks/client/Client.d.mts +4 -4
- package/dist/esm/api/resources/invitationLinks/client/Client.mjs +4 -4
- package/dist/esm/api/resources/invitationLinks/types/CreateInvitationLinksRequestProposedAgentsItemPermissionsItem.d.mts +4 -0
- package/dist/esm/api/resources/invitationLinks/types/CreateInvitationLinksRequestProposedAgentsItemPermissionsItem.mjs +4 -0
- package/dist/esm/api/resources/invitationLinks/types/CreateInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.d.mts +4 -0
- package/dist/esm/api/resources/invitationLinks/types/CreateInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.mjs +4 -0
- package/dist/esm/api/resources/invitationLinks/types/GetInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.d.mts +4 -0
- package/dist/esm/api/resources/invitationLinks/types/GetInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.mjs +4 -0
- package/dist/esm/api/resources/invitationLinks/types/ListInvitationLinksResponseDataItemAttributesProposedAgentsItemPermissionsItem.d.mts +4 -0
- package/dist/esm/api/resources/invitationLinks/types/ListInvitationLinksResponseDataItemAttributesProposedAgentsItemPermissionsItem.mjs +4 -0
- package/dist/esm/api/resources/invitationLinks/types/RevokeInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.d.mts +4 -0
- package/dist/esm/api/resources/invitationLinks/types/RevokeInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.mjs +4 -0
- package/dist/esm/api/resources/paymentRequests/types/FulfillPaymentRequestsRequestPaymentSourceWallet.d.mts +2 -2
- package/dist/esm/api/resources/simulations/client/Client.d.mts +9 -9
- package/dist/esm/api/resources/simulations/client/Client.mjs +9 -9
- package/dist/esm/api/resources/simulations/client/requests/AcceptCustomerInvitationSimulationsRequest.d.mts +1 -1
- package/dist/esm/api/resources/simulations/client/requests/DeclineCustomerInvitationSimulationsRequest.d.mts +1 -1
- package/dist/esm/api/resources/simulations/client/requests/InviteCustomerSimulationsRequest.d.mts +2 -2
- package/dist/esm/api/resources/simulations/types/FundCustomerSimulationsResponseDataAttributes.d.mts +4 -0
- package/dist/esm/api/resources/simulations/types/InviteCustomerSimulationsRequestType.d.mts +1 -1
- package/dist/esm/api/resources/simulations/types/InviteCustomerSimulationsRequestType.mjs +1 -1
- package/dist/esm/api/resources/simulations/types/InviteCustomerSimulationsResponse.d.mts +1 -1
- package/dist/esm/api/resources/simulations/types/InviteCustomerSimulationsResponseMetaCustomer.d.mts +3 -3
- package/dist/esm/api/resources/simulations/types/InviteCustomerSimulationsResponseMetaCustomerPartyType.d.mts +1 -1
- package/dist/esm/api/resources/simulations/types/InviteCustomerSimulationsResponseMetaCustomerPartyType.mjs +1 -1
- package/dist/esm/api/resources/simulations/types/LinkExternalAccountSimulationsResponseDataItemAttributes.d.mts +2 -0
- package/dist/esm/api/resources/simulations/types/LinkExternalAccountSimulationsResponseDataItemAttributesAvailableMethodsItem.d.mts +5 -0
- package/dist/esm/api/resources/simulations/types/LinkExternalAccountSimulationsResponseDataItemAttributesAvailableMethodsItem.mjs +5 -0
- package/dist/esm/api/resources/simulations/types/index.d.mts +1 -0
- package/dist/esm/api/resources/simulations/types/index.mjs +1 -0
- package/dist/esm/api/resources/transfers/client/Client.d.mts +1 -0
- package/dist/esm/api/resources/transfers/client/Client.mjs +1 -0
- package/dist/esm/api/resources/transfers/client/requests/NewWithdrawalParams.d.mts +3 -0
- package/dist/esm/api/resources/transfers/types/DepositAttrs.d.mts +4 -0
- package/dist/esm/api/resources/transfers/types/InitiateInternalTransfersResponseDataAttributes.d.mts +4 -0
- package/dist/esm/api/resources/transfers/types/InitiateWithdrawalTransfersRequestMethod.d.mts +6 -0
- package/dist/esm/api/resources/transfers/types/InitiateWithdrawalTransfersRequestMethod.mjs +6 -0
- package/dist/esm/api/resources/transfers/types/TransferAttrs.d.mts +4 -0
- package/dist/esm/api/resources/transfers/types/TransferDetailAttrs.d.mts +4 -0
- package/dist/esm/api/resources/transfers/types/WithdrawalAttrs.d.mts +4 -0
- package/dist/esm/api/resources/transfers/types/index.d.mts +1 -0
- package/dist/esm/api/resources/transfers/types/index.mjs +1 -0
- package/dist/esm/api/resources/wallets/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/wallets/client/Client.mjs +1 -1
- package/dist/esm/api/resources/wallets/types/CreateWalletsResponseDataAttributesDepositInstructions.d.mts +4 -0
- package/dist/esm/api/resources/wallets/types/FreezeWalletsResponseDataAttributesDepositInstructions.d.mts +4 -0
- package/dist/esm/api/resources/wallets/types/GetWalletsResponseDataAttributesDepositInstructions.d.mts +4 -0
- package/dist/esm/api/resources/wallets/types/ListWalletsResponseDataItemAttributesDepositInstructions.d.mts +4 -0
- package/dist/esm/api/resources/wallets/types/SetDefaultWalletsResponseDataAttributesDepositInstructions.d.mts +4 -0
- package/dist/esm/api/resources/wallets/types/UnfreezeWalletsResponseDataAttributesDepositInstructions.d.mts +4 -0
- package/dist/esm/api/resources/wallets/types/UpdateWalletsResponseDataAttributesDepositInstructions.d.mts +4 -0
- package/dist/esm/api/types/ComplianceSessionStatusResponseDataAttributesStatus.d.mts +2 -0
- package/dist/esm/api/types/ComplianceSessionStatusResponseDataAttributesStatus.mjs +2 -0
- package/dist/esm/api/types/PartyComplianceStatusResponseDataAttributesCaseStatus.d.mts +2 -0
- package/dist/esm/api/types/PartyComplianceStatusResponseDataAttributesCaseStatus.mjs +2 -0
- package/dist/esm/serialization/resources/agents/types/CreateCustomerAgentsRequestPermissionsItem.d.mts +1 -1
- package/dist/esm/serialization/resources/agents/types/CreateCustomerAgentsRequestPermissionsItem.mjs +4 -0
- package/dist/esm/serialization/resources/apiKeys/types/CreateApiKeysRequestScopesItem.d.mts +1 -1
- package/dist/esm/serialization/resources/apiKeys/types/CreateApiKeysRequestScopesItem.mjs +4 -0
- package/dist/esm/serialization/resources/approvals/types/ApproveApprovalsResponseDataAttributesTargetType.d.mts +1 -1
- package/dist/esm/serialization/resources/approvals/types/ApproveApprovalsResponseDataAttributesTargetType.mjs +1 -1
- package/dist/esm/serialization/resources/approvals/types/DenyApprovalsResponseDataAttributesTargetType.d.mts +1 -1
- package/dist/esm/serialization/resources/approvals/types/DenyApprovalsResponseDataAttributesTargetType.mjs +1 -1
- package/dist/esm/serialization/resources/approvals/types/GetApprovalsResponseDataAttributesTargetType.d.mts +1 -1
- package/dist/esm/serialization/resources/approvals/types/GetApprovalsResponseDataAttributesTargetType.mjs +1 -1
- package/dist/esm/serialization/resources/approvals/types/ListApprovalsResponseDataItemAttributesTargetType.d.mts +1 -1
- package/dist/esm/serialization/resources/approvals/types/ListApprovalsResponseDataItemAttributesTargetType.mjs +1 -1
- package/dist/esm/serialization/resources/customers/types/CreateInvitationsCustomersRequestAgentsItemPermissionsItem.d.mts +1 -1
- package/dist/esm/serialization/resources/customers/types/CreateInvitationsCustomersRequestAgentsItemPermissionsItem.mjs +4 -0
- package/dist/esm/serialization/resources/events/types/RedeliverEventsResponse.d.mts +10 -0
- package/dist/esm/serialization/resources/events/types/RedeliverEventsResponse.mjs +6 -0
- package/dist/esm/serialization/resources/events/types/RedeliverEventsResponseData.d.mts +15 -0
- package/dist/esm/serialization/resources/events/types/RedeliverEventsResponseData.mjs +11 -0
- package/dist/esm/serialization/resources/events/types/RedeliverEventsResponseDataAttributes.d.mts +21 -0
- package/dist/esm/serialization/resources/events/types/RedeliverEventsResponseDataAttributes.mjs +17 -0
- package/dist/esm/serialization/resources/events/types/RedeliverEventsResponseDataAttributesErrorCategory.d.mts +7 -0
- package/dist/esm/serialization/resources/events/types/RedeliverEventsResponseDataAttributesErrorCategory.mjs +3 -0
- package/dist/esm/serialization/resources/events/types/RedeliverEventsResponseDataAttributesStatus.d.mts +7 -0
- package/dist/esm/serialization/resources/events/types/RedeliverEventsResponseDataAttributesStatus.mjs +3 -0
- package/dist/esm/serialization/resources/events/types/RedeliverEventsResponseDataRelationships.d.mts +12 -0
- package/dist/esm/serialization/resources/events/types/RedeliverEventsResponseDataRelationships.mjs +8 -0
- package/dist/esm/serialization/resources/events/types/RedeliverEventsResponseDataRelationshipsEvent.d.mts +10 -0
- package/dist/esm/serialization/resources/events/types/RedeliverEventsResponseDataRelationshipsEvent.mjs +6 -0
- package/dist/esm/serialization/resources/events/types/RedeliverEventsResponseDataRelationshipsEventData.d.mts +11 -0
- package/dist/esm/serialization/resources/events/types/RedeliverEventsResponseDataRelationshipsEventData.mjs +7 -0
- package/dist/esm/serialization/resources/events/types/RedeliverEventsResponseDataRelationshipsEventDataType.d.mts +7 -0
- package/dist/esm/serialization/resources/events/types/RedeliverEventsResponseDataRelationshipsEventDataType.mjs +3 -0
- package/dist/esm/serialization/resources/events/types/RedeliverEventsResponseDataRelationshipsWebhook.d.mts +10 -0
- package/dist/esm/serialization/resources/events/types/RedeliverEventsResponseDataRelationshipsWebhook.mjs +6 -0
- package/dist/esm/serialization/resources/events/types/RedeliverEventsResponseDataRelationshipsWebhookData.d.mts +11 -0
- package/dist/esm/serialization/resources/events/types/RedeliverEventsResponseDataRelationshipsWebhookData.mjs +7 -0
- package/dist/esm/serialization/resources/events/types/RedeliverEventsResponseDataRelationshipsWebhookDataType.d.mts +7 -0
- package/dist/esm/serialization/resources/events/types/RedeliverEventsResponseDataRelationshipsWebhookDataType.mjs +3 -0
- package/dist/esm/serialization/resources/events/types/RedeliverEventsResponseDataType.d.mts +7 -0
- package/dist/esm/serialization/resources/events/types/RedeliverEventsResponseDataType.mjs +3 -0
- package/dist/esm/serialization/resources/events/types/index.d.mts +13 -0
- package/dist/esm/serialization/resources/events/types/index.mjs +13 -0
- package/dist/esm/serialization/resources/externalAccounts/types/CreateFromProcessorTokenExternalAccountsResponseDataItemAttributes.d.mts +2 -0
- package/dist/esm/serialization/resources/externalAccounts/types/CreateFromProcessorTokenExternalAccountsResponseDataItemAttributes.mjs +2 -0
- package/dist/esm/serialization/resources/externalAccounts/types/CreateFromProcessorTokenExternalAccountsResponseDataItemAttributesAvailableMethodsItem.d.mts +7 -0
- package/dist/esm/serialization/resources/externalAccounts/types/CreateFromProcessorTokenExternalAccountsResponseDataItemAttributesAvailableMethodsItem.mjs +3 -0
- package/dist/esm/serialization/resources/externalAccounts/types/DelExtAcctAttrs.d.mts +2 -0
- package/dist/esm/serialization/resources/externalAccounts/types/DelExtAcctAttrs.mjs +2 -0
- package/dist/esm/serialization/resources/externalAccounts/types/ExtAcctAttrs.d.mts +2 -0
- package/dist/esm/serialization/resources/externalAccounts/types/ExtAcctAttrs.mjs +2 -0
- package/dist/esm/serialization/resources/externalAccounts/types/GetExternalAccountsResponseDataAttributes.d.mts +2 -0
- package/dist/esm/serialization/resources/externalAccounts/types/GetExternalAccountsResponseDataAttributes.mjs +2 -0
- package/dist/esm/serialization/resources/externalAccounts/types/GetExternalAccountsResponseDataAttributesAvailableMethodsItem.d.mts +7 -0
- package/dist/esm/serialization/resources/externalAccounts/types/GetExternalAccountsResponseDataAttributesAvailableMethodsItem.mjs +3 -0
- package/dist/esm/serialization/resources/externalAccounts/types/ListExternalAccountsResponseDataItemAttributesAvailableMethodsItem.d.mts +7 -0
- package/dist/esm/serialization/resources/externalAccounts/types/ListExternalAccountsResponseDataItemAttributesAvailableMethodsItem.mjs +3 -0
- package/dist/esm/serialization/resources/externalAccounts/types/RemoveExternalAccountsResponseDataAttributesAvailableMethodsItem.d.mts +7 -0
- package/dist/esm/serialization/resources/externalAccounts/types/RemoveExternalAccountsResponseDataAttributesAvailableMethodsItem.mjs +3 -0
- package/dist/esm/serialization/resources/externalAccounts/types/index.d.mts +4 -0
- package/dist/esm/serialization/resources/externalAccounts/types/index.mjs +4 -0
- package/dist/esm/serialization/resources/invitationLinks/types/CreateInvitationLinksRequestProposedAgentsItemPermissionsItem.d.mts +1 -1
- package/dist/esm/serialization/resources/invitationLinks/types/CreateInvitationLinksRequestProposedAgentsItemPermissionsItem.mjs +4 -0
- package/dist/esm/serialization/resources/invitationLinks/types/CreateInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.d.mts +1 -1
- package/dist/esm/serialization/resources/invitationLinks/types/CreateInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.mjs +4 -0
- package/dist/esm/serialization/resources/invitationLinks/types/GetInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.d.mts +1 -1
- package/dist/esm/serialization/resources/invitationLinks/types/GetInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.mjs +4 -0
- package/dist/esm/serialization/resources/invitationLinks/types/ListInvitationLinksResponseDataItemAttributesProposedAgentsItemPermissionsItem.d.mts +1 -1
- package/dist/esm/serialization/resources/invitationLinks/types/ListInvitationLinksResponseDataItemAttributesProposedAgentsItemPermissionsItem.mjs +4 -0
- package/dist/esm/serialization/resources/invitationLinks/types/RevokeInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.d.mts +1 -1
- package/dist/esm/serialization/resources/invitationLinks/types/RevokeInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.mjs +4 -0
- package/dist/esm/serialization/resources/paymentRequests/types/FulfillPaymentRequestsRequestPaymentSourceWallet.d.mts +1 -1
- package/dist/esm/serialization/resources/paymentRequests/types/FulfillPaymentRequestsRequestPaymentSourceWallet.mjs +1 -1
- package/dist/esm/serialization/resources/simulations/types/FundCustomerSimulationsResponseDataAttributes.d.mts +2 -0
- package/dist/esm/serialization/resources/simulations/types/FundCustomerSimulationsResponseDataAttributes.mjs +2 -0
- package/dist/esm/serialization/resources/simulations/types/LinkExternalAccountSimulationsResponseDataItemAttributes.d.mts +2 -0
- package/dist/esm/serialization/resources/simulations/types/LinkExternalAccountSimulationsResponseDataItemAttributes.mjs +2 -0
- package/dist/esm/serialization/resources/simulations/types/LinkExternalAccountSimulationsResponseDataItemAttributesAvailableMethodsItem.d.mts +7 -0
- package/dist/esm/serialization/resources/simulations/types/LinkExternalAccountSimulationsResponseDataItemAttributesAvailableMethodsItem.mjs +3 -0
- package/dist/esm/serialization/resources/simulations/types/index.d.mts +1 -0
- package/dist/esm/serialization/resources/simulations/types/index.mjs +1 -0
- package/dist/esm/serialization/resources/transfers/client/requests/NewWithdrawalParams.d.mts +2 -0
- package/dist/esm/serialization/resources/transfers/client/requests/NewWithdrawalParams.mjs +2 -0
- package/dist/esm/serialization/resources/transfers/types/DepositAttrs.d.mts +2 -0
- package/dist/esm/serialization/resources/transfers/types/DepositAttrs.mjs +2 -0
- package/dist/esm/serialization/resources/transfers/types/InitiateInternalTransfersResponseDataAttributes.d.mts +2 -0
- package/dist/esm/serialization/resources/transfers/types/InitiateInternalTransfersResponseDataAttributes.mjs +2 -0
- package/dist/esm/serialization/resources/transfers/types/InitiateWithdrawalTransfersRequestMethod.d.mts +7 -0
- package/dist/esm/serialization/resources/transfers/types/InitiateWithdrawalTransfersRequestMethod.mjs +3 -0
- package/dist/esm/serialization/resources/transfers/types/TransferAttrs.d.mts +2 -0
- package/dist/esm/serialization/resources/transfers/types/TransferAttrs.mjs +2 -0
- package/dist/esm/serialization/resources/transfers/types/TransferDetailAttrs.d.mts +2 -0
- package/dist/esm/serialization/resources/transfers/types/TransferDetailAttrs.mjs +2 -0
- package/dist/esm/serialization/resources/transfers/types/WithdrawalAttrs.d.mts +2 -0
- package/dist/esm/serialization/resources/transfers/types/WithdrawalAttrs.mjs +2 -0
- package/dist/esm/serialization/resources/transfers/types/index.d.mts +1 -0
- package/dist/esm/serialization/resources/transfers/types/index.mjs +1 -0
- package/dist/esm/serialization/resources/wallets/types/CreateWalletsResponseDataAttributesDepositInstructions.d.mts +2 -0
- package/dist/esm/serialization/resources/wallets/types/CreateWalletsResponseDataAttributesDepositInstructions.mjs +2 -0
- package/dist/esm/serialization/resources/wallets/types/FreezeWalletsResponseDataAttributesDepositInstructions.d.mts +2 -0
- package/dist/esm/serialization/resources/wallets/types/FreezeWalletsResponseDataAttributesDepositInstructions.mjs +2 -0
- package/dist/esm/serialization/resources/wallets/types/GetWalletsResponseDataAttributesDepositInstructions.d.mts +2 -0
- package/dist/esm/serialization/resources/wallets/types/GetWalletsResponseDataAttributesDepositInstructions.mjs +2 -0
- package/dist/esm/serialization/resources/wallets/types/ListWalletsResponseDataItemAttributesDepositInstructions.d.mts +2 -0
- package/dist/esm/serialization/resources/wallets/types/ListWalletsResponseDataItemAttributesDepositInstructions.mjs +2 -0
- package/dist/esm/serialization/resources/wallets/types/SetDefaultWalletsResponseDataAttributesDepositInstructions.d.mts +2 -0
- package/dist/esm/serialization/resources/wallets/types/SetDefaultWalletsResponseDataAttributesDepositInstructions.mjs +2 -0
- package/dist/esm/serialization/resources/wallets/types/UnfreezeWalletsResponseDataAttributesDepositInstructions.d.mts +2 -0
- package/dist/esm/serialization/resources/wallets/types/UnfreezeWalletsResponseDataAttributesDepositInstructions.mjs +2 -0
- package/dist/esm/serialization/resources/wallets/types/UpdateWalletsResponseDataAttributesDepositInstructions.d.mts +2 -0
- package/dist/esm/serialization/resources/wallets/types/UpdateWalletsResponseDataAttributesDepositInstructions.mjs +2 -0
- package/dist/esm/serialization/types/ComplianceSessionStatusResponseDataAttributesStatus.d.mts +1 -1
- package/dist/esm/serialization/types/ComplianceSessionStatusResponseDataAttributesStatus.mjs +2 -0
- package/dist/esm/serialization/types/PartyComplianceStatusResponseDataAttributesCaseStatus.d.mts +1 -1
- package/dist/esm/serialization/types/PartyComplianceStatusResponseDataAttributesCaseStatus.mjs +2 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +85 -17
package/dist/cjs/BaseClient.js
CHANGED
|
@@ -43,8 +43,8 @@ function normalizeClientOptions(options) {
|
|
|
43
43
|
const headers = (0, headers_js_1.mergeHeaders)({
|
|
44
44
|
"X-Fern-Language": "JavaScript",
|
|
45
45
|
"X-Fern-SDK-Name": "@naturalpay/sdk",
|
|
46
|
-
"X-Fern-SDK-Version": "1.2.
|
|
47
|
-
"User-Agent": "@naturalpay/sdk/1.2.
|
|
46
|
+
"X-Fern-SDK-Version": "1.2.2",
|
|
47
|
+
"User-Agent": "@naturalpay/sdk/1.2.2",
|
|
48
48
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
49
49
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
50
50
|
"X-Agent-ID": options === null || options === void 0 ? void 0 : options.agentId,
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
export declare const CreateCustomerAgentsRequestPermissionsItem: {
|
|
2
2
|
readonly PaymentsRead: "payments.read";
|
|
3
3
|
readonly PaymentsCreate: "payments.create";
|
|
4
|
+
readonly ExternalPartiesRead: "external_parties.read";
|
|
5
|
+
readonly ExternalPartiesCreate: "external_parties.create";
|
|
6
|
+
readonly DirectPaymentsRead: "direct_payments.read";
|
|
7
|
+
readonly DirectPaymentsCreate: "direct_payments.create";
|
|
4
8
|
readonly ExternalAccountsCreate: "external_accounts.create";
|
|
5
9
|
readonly WalletsRead: "wallets.read";
|
|
6
10
|
readonly WalletsUpdate: "wallets.update";
|
|
@@ -5,6 +5,10 @@ exports.CreateCustomerAgentsRequestPermissionsItem = void 0;
|
|
|
5
5
|
exports.CreateCustomerAgentsRequestPermissionsItem = {
|
|
6
6
|
PaymentsRead: "payments.read",
|
|
7
7
|
PaymentsCreate: "payments.create",
|
|
8
|
+
ExternalPartiesRead: "external_parties.read",
|
|
9
|
+
ExternalPartiesCreate: "external_parties.create",
|
|
10
|
+
DirectPaymentsRead: "direct_payments.read",
|
|
11
|
+
DirectPaymentsCreate: "direct_payments.create",
|
|
8
12
|
ExternalAccountsCreate: "external_accounts.create",
|
|
9
13
|
WalletsRead: "wallets.read",
|
|
10
14
|
WalletsUpdate: "wallets.update",
|
|
@@ -11,6 +11,10 @@ export declare const CreateApiKeysRequestScopesItem: {
|
|
|
11
11
|
readonly MembershipDelete: "membership.delete";
|
|
12
12
|
readonly PaymentsCreate: "payments.create";
|
|
13
13
|
readonly PaymentsRead: "payments.read";
|
|
14
|
+
readonly ExternalPartiesCreate: "external_parties.create";
|
|
15
|
+
readonly ExternalPartiesRead: "external_parties.read";
|
|
16
|
+
readonly DirectPaymentsCreate: "direct_payments.create";
|
|
17
|
+
readonly DirectPaymentsRead: "direct_payments.read";
|
|
14
18
|
readonly ExternalAccountsCreate: "external_accounts.create";
|
|
15
19
|
readonly WalletsRead: "wallets.read";
|
|
16
20
|
readonly WalletsCreate: "wallets.create";
|
|
@@ -15,6 +15,10 @@ exports.CreateApiKeysRequestScopesItem = {
|
|
|
15
15
|
MembershipDelete: "membership.delete",
|
|
16
16
|
PaymentsCreate: "payments.create",
|
|
17
17
|
PaymentsRead: "payments.read",
|
|
18
|
+
ExternalPartiesCreate: "external_parties.create",
|
|
19
|
+
ExternalPartiesRead: "external_parties.read",
|
|
20
|
+
DirectPaymentsCreate: "direct_payments.create",
|
|
21
|
+
DirectPaymentsRead: "direct_payments.read",
|
|
18
22
|
ExternalAccountsCreate: "external_accounts.create",
|
|
19
23
|
WalletsRead: "wallets.read",
|
|
20
24
|
WalletsCreate: "wallets.create",
|
package/dist/cjs/api/resources/approvals/types/ApproveApprovalsResponseDataAttributesTargetType.d.ts
CHANGED
|
@@ -3,5 +3,6 @@ export declare const ApproveApprovalsResponseDataAttributesTargetType: {
|
|
|
3
3
|
readonly Payment: "payment";
|
|
4
4
|
readonly Deposit: "deposit";
|
|
5
5
|
readonly Withdrawal: "withdrawal";
|
|
6
|
+
readonly DirectPayment: "direct_payment";
|
|
6
7
|
};
|
|
7
8
|
export type ApproveApprovalsResponseDataAttributesTargetType = (typeof ApproveApprovalsResponseDataAttributesTargetType)[keyof typeof ApproveApprovalsResponseDataAttributesTargetType];
|
package/dist/cjs/api/resources/approvals/types/DenyApprovalsResponseDataAttributesTargetType.d.ts
CHANGED
|
@@ -3,5 +3,6 @@ export declare const DenyApprovalsResponseDataAttributesTargetType: {
|
|
|
3
3
|
readonly Payment: "payment";
|
|
4
4
|
readonly Deposit: "deposit";
|
|
5
5
|
readonly Withdrawal: "withdrawal";
|
|
6
|
+
readonly DirectPayment: "direct_payment";
|
|
6
7
|
};
|
|
7
8
|
export type DenyApprovalsResponseDataAttributesTargetType = (typeof DenyApprovalsResponseDataAttributesTargetType)[keyof typeof DenyApprovalsResponseDataAttributesTargetType];
|
package/dist/cjs/api/resources/approvals/types/GetApprovalsResponseDataAttributesTargetType.d.ts
CHANGED
|
@@ -3,5 +3,6 @@ export declare const GetApprovalsResponseDataAttributesTargetType: {
|
|
|
3
3
|
readonly Payment: "payment";
|
|
4
4
|
readonly Deposit: "deposit";
|
|
5
5
|
readonly Withdrawal: "withdrawal";
|
|
6
|
+
readonly DirectPayment: "direct_payment";
|
|
6
7
|
};
|
|
7
8
|
export type GetApprovalsResponseDataAttributesTargetType = (typeof GetApprovalsResponseDataAttributesTargetType)[keyof typeof GetApprovalsResponseDataAttributesTargetType];
|
|
@@ -3,5 +3,6 @@ export declare const ListApprovalsResponseDataItemAttributesTargetType: {
|
|
|
3
3
|
readonly Payment: "payment";
|
|
4
4
|
readonly Deposit: "deposit";
|
|
5
5
|
readonly Withdrawal: "withdrawal";
|
|
6
|
+
readonly DirectPayment: "direct_payment";
|
|
6
7
|
};
|
|
7
8
|
export type ListApprovalsResponseDataItemAttributesTargetType = (typeof ListApprovalsResponseDataItemAttributesTargetType)[keyof typeof ListApprovalsResponseDataItemAttributesTargetType];
|
|
@@ -67,7 +67,7 @@ export declare class CustomersClient {
|
|
|
67
67
|
get(request: Natural.GetCustomersRequest, requestOptions?: CustomersClient.RequestOptions): core.HttpResponsePromise<Natural.CustomerDetail>;
|
|
68
68
|
private __get;
|
|
69
69
|
/**
|
|
70
|
-
* List pending
|
|
70
|
+
* List pending invitations addressed to specific customers
|
|
71
71
|
*
|
|
72
72
|
* @param {Natural.ListInvitationsCustomersRequest} request
|
|
73
73
|
* @param {CustomersClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -93,7 +93,7 @@ export declare class CustomersClient {
|
|
|
93
93
|
listInvitations(request?: Natural.ListInvitationsCustomersRequest, requestOptions?: CustomersClient.RequestOptions): core.HttpResponsePromise<Natural.ListInvitationsCustomersResponse>;
|
|
94
94
|
private __listInvitations;
|
|
95
95
|
/**
|
|
96
|
-
* Invite customers to
|
|
96
|
+
* Invite specific customers by email or phone to approve a set of your agents, each with its own permissions and limits
|
|
97
97
|
*
|
|
98
98
|
* @param {Natural.CreateInvitationsCustomersRequest} request
|
|
99
99
|
* @param {CustomersClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -135,7 +135,7 @@ export declare class CustomersClient {
|
|
|
135
135
|
createInvitations(request: Natural.CreateInvitationsCustomersRequest, requestOptions?: CustomersClient.RequestOptions): core.HttpResponsePromise<Natural.CreateInvitationsCustomersResponse>;
|
|
136
136
|
private __createInvitations;
|
|
137
137
|
/**
|
|
138
|
-
* Revoke a pending customer
|
|
138
|
+
* Revoke a pending invitation addressed to a specific customer, so it can no longer be accepted
|
|
139
139
|
*
|
|
140
140
|
* @param {Natural.RevokeInvitationCustomersRequest} request
|
|
141
141
|
* @param {CustomersClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -280,7 +280,7 @@ class CustomersClient {
|
|
|
280
280
|
});
|
|
281
281
|
}
|
|
282
282
|
/**
|
|
283
|
-
* List pending
|
|
283
|
+
* List pending invitations addressed to specific customers
|
|
284
284
|
*
|
|
285
285
|
* @param {Natural.ListInvitationsCustomersRequest} request
|
|
286
286
|
* @param {CustomersClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -384,7 +384,7 @@ class CustomersClient {
|
|
|
384
384
|
});
|
|
385
385
|
}
|
|
386
386
|
/**
|
|
387
|
-
* Invite customers to
|
|
387
|
+
* Invite specific customers by email or phone to approve a set of your agents, each with its own permissions and limits
|
|
388
388
|
*
|
|
389
389
|
* @param {Natural.CreateInvitationsCustomersRequest} request
|
|
390
390
|
* @param {CustomersClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -501,7 +501,7 @@ class CustomersClient {
|
|
|
501
501
|
});
|
|
502
502
|
}
|
|
503
503
|
/**
|
|
504
|
-
* Revoke a pending customer
|
|
504
|
+
* Revoke a pending invitation addressed to a specific customer, so it can no longer be accepted
|
|
505
505
|
*
|
|
506
506
|
* @param {Natural.RevokeInvitationCustomersRequest} request
|
|
507
507
|
* @param {CustomersClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
export declare const CreateInvitationsCustomersRequestAgentsItemPermissionsItem: {
|
|
2
2
|
readonly PaymentsRead: "payments.read";
|
|
3
3
|
readonly PaymentsCreate: "payments.create";
|
|
4
|
+
readonly ExternalPartiesRead: "external_parties.read";
|
|
5
|
+
readonly ExternalPartiesCreate: "external_parties.create";
|
|
6
|
+
readonly DirectPaymentsRead: "direct_payments.read";
|
|
7
|
+
readonly DirectPaymentsCreate: "direct_payments.create";
|
|
4
8
|
readonly ExternalAccountsCreate: "external_accounts.create";
|
|
5
9
|
readonly WalletsRead: "wallets.read";
|
|
6
10
|
readonly WalletsUpdate: "wallets.update";
|
|
@@ -5,6 +5,10 @@ exports.CreateInvitationsCustomersRequestAgentsItemPermissionsItem = void 0;
|
|
|
5
5
|
exports.CreateInvitationsCustomersRequestAgentsItemPermissionsItem = {
|
|
6
6
|
PaymentsRead: "payments.read",
|
|
7
7
|
PaymentsCreate: "payments.create",
|
|
8
|
+
ExternalPartiesRead: "external_parties.read",
|
|
9
|
+
ExternalPartiesCreate: "external_parties.create",
|
|
10
|
+
DirectPaymentsRead: "direct_payments.read",
|
|
11
|
+
DirectPaymentsCreate: "direct_payments.create",
|
|
8
12
|
ExternalAccountsCreate: "external_accounts.create",
|
|
9
13
|
WalletsRead: "wallets.read",
|
|
10
14
|
WalletsUpdate: "wallets.update",
|
|
@@ -67,4 +67,34 @@ export declare class EventsClient {
|
|
|
67
67
|
*/
|
|
68
68
|
get(request: Natural.GetEventsRequest, requestOptions?: EventsClient.RequestOptions): core.HttpResponsePromise<Natural.GetEventsResponse>;
|
|
69
69
|
private __get;
|
|
70
|
+
/**
|
|
71
|
+
* Send the stored event once to the same webhook using its current URL and signing secret. Automatic retries continue independently, and delegated events require the original delegation to remain active.
|
|
72
|
+
*
|
|
73
|
+
* @param {Natural.RedeliverEventsRequest} request
|
|
74
|
+
* @param {EventsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
75
|
+
*
|
|
76
|
+
* @throws {@link Natural.BadRequestError}
|
|
77
|
+
* @throws {@link Natural.UnauthorizedError}
|
|
78
|
+
* @throws {@link Natural.ForbiddenError}
|
|
79
|
+
* @throws {@link Natural.NotFoundError}
|
|
80
|
+
* @throws {@link Natural.ConflictError}
|
|
81
|
+
* @throws {@link Natural.UnprocessableEntityError}
|
|
82
|
+
* @throws {@link Natural.PreconditionError}
|
|
83
|
+
* @throws {@link Natural.TooManyRequestsError}
|
|
84
|
+
* @throws {@link Natural.InternalServerError}
|
|
85
|
+
* @throws {@link Natural.NotImplementedError}
|
|
86
|
+
* @throws {@link Natural.BadGatewayError}
|
|
87
|
+
* @throws {@link Natural.ServiceUnavailableError}
|
|
88
|
+
* @throws {@link errors.NaturalError}
|
|
89
|
+
* @throws {@link errors.NaturalTimeoutError}
|
|
90
|
+
*
|
|
91
|
+
* @example
|
|
92
|
+
* await client.events.redeliver({
|
|
93
|
+
* idempotencyKey: "Idempotency-Key",
|
|
94
|
+
* webhookId: "webhookId",
|
|
95
|
+
* eventId: "eventId"
|
|
96
|
+
* })
|
|
97
|
+
*/
|
|
98
|
+
redeliver(request: Natural.RedeliverEventsRequest, requestOptions?: EventsClient.RequestOptions): core.HttpResponsePromise<Natural.RedeliverEventsResponse>;
|
|
99
|
+
private __redeliver;
|
|
70
100
|
}
|
|
@@ -277,5 +277,106 @@ class EventsClient {
|
|
|
277
277
|
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/events/{eventId}");
|
|
278
278
|
});
|
|
279
279
|
}
|
|
280
|
+
/**
|
|
281
|
+
* Send the stored event once to the same webhook using its current URL and signing secret. Automatic retries continue independently, and delegated events require the original delegation to remain active.
|
|
282
|
+
*
|
|
283
|
+
* @param {Natural.RedeliverEventsRequest} request
|
|
284
|
+
* @param {EventsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
285
|
+
*
|
|
286
|
+
* @throws {@link Natural.BadRequestError}
|
|
287
|
+
* @throws {@link Natural.UnauthorizedError}
|
|
288
|
+
* @throws {@link Natural.ForbiddenError}
|
|
289
|
+
* @throws {@link Natural.NotFoundError}
|
|
290
|
+
* @throws {@link Natural.ConflictError}
|
|
291
|
+
* @throws {@link Natural.UnprocessableEntityError}
|
|
292
|
+
* @throws {@link Natural.PreconditionError}
|
|
293
|
+
* @throws {@link Natural.TooManyRequestsError}
|
|
294
|
+
* @throws {@link Natural.InternalServerError}
|
|
295
|
+
* @throws {@link Natural.NotImplementedError}
|
|
296
|
+
* @throws {@link Natural.BadGatewayError}
|
|
297
|
+
* @throws {@link Natural.ServiceUnavailableError}
|
|
298
|
+
* @throws {@link errors.NaturalError}
|
|
299
|
+
* @throws {@link errors.NaturalTimeoutError}
|
|
300
|
+
*
|
|
301
|
+
* @example
|
|
302
|
+
* await client.events.redeliver({
|
|
303
|
+
* idempotencyKey: "Idempotency-Key",
|
|
304
|
+
* webhookId: "webhookId",
|
|
305
|
+
* eventId: "eventId"
|
|
306
|
+
* })
|
|
307
|
+
*/
|
|
308
|
+
redeliver(request, requestOptions) {
|
|
309
|
+
return core.HttpResponsePromise.fromPromise(this.__redeliver(request, requestOptions));
|
|
310
|
+
}
|
|
311
|
+
__redeliver(request, requestOptions) {
|
|
312
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
313
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
|
|
314
|
+
const { webhookId, eventId, idempotencyKey } = request;
|
|
315
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
316
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({
|
|
317
|
+
"Idempotency-Key": idempotencyKey,
|
|
318
|
+
"X-Agent-ID": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.agentId) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.agentId,
|
|
319
|
+
"X-Instance-ID": (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.instanceId) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.instanceId,
|
|
320
|
+
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
321
|
+
const _response = yield ((_f = this._options.fetcher) !== null && _f !== void 0 ? _f : core.fetcher)({
|
|
322
|
+
url: core.url.join((_h = (_g = (yield core.Supplier.get(this._options.baseUrl))) !== null && _g !== void 0 ? _g : (yield core.Supplier.get(this._options.environment))) !== null && _h !== void 0 ? _h : environments.NaturalEnvironment.Production, `webhooks/${core.url.encodePathParam(webhookId)}/events/${core.url.encodePathParam(eventId)}/redeliver`),
|
|
323
|
+
method: "POST",
|
|
324
|
+
headers: _headers,
|
|
325
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
326
|
+
timeoutMs: ((_l = (_j = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _j !== void 0 ? _j : (_k = this._options) === null || _k === void 0 ? void 0 : _k.timeoutInSeconds) !== null && _l !== void 0 ? _l : 60) * 1000,
|
|
327
|
+
maxRetries: (_m = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _m !== void 0 ? _m : (_o = this._options) === null || _o === void 0 ? void 0 : _o.maxRetries,
|
|
328
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
329
|
+
fetchFn: (_p = this._options) === null || _p === void 0 ? void 0 : _p.fetch,
|
|
330
|
+
logging: this._options.logging,
|
|
331
|
+
});
|
|
332
|
+
if (_response.ok) {
|
|
333
|
+
return {
|
|
334
|
+
data: serializers.RedeliverEventsResponse.parseOrThrow(_response.body, {
|
|
335
|
+
unrecognizedObjectKeys: "passthrough",
|
|
336
|
+
allowUnrecognizedUnionMembers: true,
|
|
337
|
+
allowUnrecognizedEnumValues: true,
|
|
338
|
+
skipValidation: true,
|
|
339
|
+
breadcrumbsPrefix: ["response"],
|
|
340
|
+
}),
|
|
341
|
+
rawResponse: _response.rawResponse,
|
|
342
|
+
};
|
|
343
|
+
}
|
|
344
|
+
if (_response.error.reason === "status-code") {
|
|
345
|
+
switch (_response.error.statusCode) {
|
|
346
|
+
case 400:
|
|
347
|
+
throw new Natural.BadRequestError(_response.error.body, _response.rawResponse);
|
|
348
|
+
case 401:
|
|
349
|
+
throw new Natural.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
350
|
+
case 403:
|
|
351
|
+
throw new Natural.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
352
|
+
case 404:
|
|
353
|
+
throw new Natural.NotFoundError(_response.error.body, _response.rawResponse);
|
|
354
|
+
case 409:
|
|
355
|
+
throw new Natural.ConflictError(_response.error.body, _response.rawResponse);
|
|
356
|
+
case 422:
|
|
357
|
+
throw new Natural.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
358
|
+
case 428:
|
|
359
|
+
throw new Natural.PreconditionError(_response.error.body, _response.rawResponse);
|
|
360
|
+
case 429:
|
|
361
|
+
throw new Natural.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
362
|
+
case 500:
|
|
363
|
+
throw new Natural.InternalServerError(_response.error.body, _response.rawResponse);
|
|
364
|
+
case 501:
|
|
365
|
+
throw new Natural.NotImplementedError(_response.error.body, _response.rawResponse);
|
|
366
|
+
case 502:
|
|
367
|
+
throw new Natural.BadGatewayError(_response.error.body, _response.rawResponse);
|
|
368
|
+
case 503:
|
|
369
|
+
throw new Natural.ServiceUnavailableError(_response.error.body, _response.rawResponse);
|
|
370
|
+
default:
|
|
371
|
+
throw new errors.NaturalError({
|
|
372
|
+
statusCode: _response.error.statusCode,
|
|
373
|
+
body: _response.error.body,
|
|
374
|
+
rawResponse: _response.rawResponse,
|
|
375
|
+
});
|
|
376
|
+
}
|
|
377
|
+
}
|
|
378
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/webhooks/{webhookId}/events/{eventId}/redeliver");
|
|
379
|
+
});
|
|
380
|
+
}
|
|
280
381
|
}
|
|
281
382
|
exports.EventsClient = EventsClient;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @example
|
|
3
|
+
* {
|
|
4
|
+
* idempotencyKey: "Idempotency-Key",
|
|
5
|
+
* webhookId: "webhookId",
|
|
6
|
+
* eventId: "eventId"
|
|
7
|
+
* }
|
|
8
|
+
*/
|
|
9
|
+
export interface RedeliverEventsRequest {
|
|
10
|
+
webhookId: string;
|
|
11
|
+
eventId: string;
|
|
12
|
+
/** Unique key for safely retrying a request without creating duplicates. */
|
|
13
|
+
idempotencyKey: string;
|
|
14
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type * as Natural from "../../../index.js";
|
|
2
|
+
export interface RedeliverEventsResponseData {
|
|
3
|
+
/** Resource type */
|
|
4
|
+
type: Natural.RedeliverEventsResponseDataType;
|
|
5
|
+
/** Redelivery ID (rdy_xxx) */
|
|
6
|
+
id: string;
|
|
7
|
+
/** Resource attributes */
|
|
8
|
+
attributes: Natural.RedeliverEventsResponseDataAttributes;
|
|
9
|
+
/** Resource relationships */
|
|
10
|
+
relationships: Natural.RedeliverEventsResponseDataRelationships;
|
|
11
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type * as Natural from "../../../index.js";
|
|
2
|
+
/**
|
|
3
|
+
* Resource attributes
|
|
4
|
+
*/
|
|
5
|
+
export interface RedeliverEventsResponseDataAttributes {
|
|
6
|
+
/** Result of this manual redelivery */
|
|
7
|
+
status: Natural.RedeliverEventsResponseDataAttributesStatus;
|
|
8
|
+
/** Number of attempts made for this redelivery */
|
|
9
|
+
attemptCount: number;
|
|
10
|
+
/** Maximum attempts for this redelivery */
|
|
11
|
+
maxAttempts: number;
|
|
12
|
+
/** HTTP response code, or null when no response was received */
|
|
13
|
+
responseCode: number | null;
|
|
14
|
+
/** Sanitized failure category, or null when no failure was recorded */
|
|
15
|
+
errorCategory: Natural.RedeliverEventsResponseDataAttributesErrorCategory | null;
|
|
16
|
+
/** Safe failure summary, or null when no failure was recorded */
|
|
17
|
+
sanitizedError: string | null;
|
|
18
|
+
/** When the redelivery attempt began */
|
|
19
|
+
firstAttemptAt: Date | null;
|
|
20
|
+
/** When the redelivery attempt finished */
|
|
21
|
+
lastAttemptAt: Date | null;
|
|
22
|
+
/** When this redelivery reached a terminal state */
|
|
23
|
+
completedAt: Date | null;
|
|
24
|
+
/** When this redelivery was requested */
|
|
25
|
+
createdAt: Date;
|
|
26
|
+
/** Last redelivery state change */
|
|
27
|
+
updatedAt: Date;
|
|
28
|
+
}
|
package/dist/cjs/api/resources/events/types/RedeliverEventsResponseDataAttributesErrorCategory.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare const RedeliverEventsResponseDataAttributesErrorCategory: {
|
|
2
|
+
readonly Http: "HTTP";
|
|
3
|
+
readonly Network: "NETWORK";
|
|
4
|
+
readonly Ssrf: "SSRF";
|
|
5
|
+
readonly Configuration: "CONFIGURATION";
|
|
6
|
+
readonly Unknown: "UNKNOWN";
|
|
7
|
+
};
|
|
8
|
+
export type RedeliverEventsResponseDataAttributesErrorCategory = (typeof RedeliverEventsResponseDataAttributesErrorCategory)[keyof typeof RedeliverEventsResponseDataAttributesErrorCategory];
|
package/dist/cjs/api/resources/events/types/RedeliverEventsResponseDataAttributesErrorCategory.js
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.RedeliverEventsResponseDataAttributesErrorCategory = void 0;
|
|
5
|
+
exports.RedeliverEventsResponseDataAttributesErrorCategory = {
|
|
6
|
+
Http: "HTTP",
|
|
7
|
+
Network: "NETWORK",
|
|
8
|
+
Ssrf: "SSRF",
|
|
9
|
+
Configuration: "CONFIGURATION",
|
|
10
|
+
Unknown: "UNKNOWN",
|
|
11
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/** Result of this manual redelivery */
|
|
2
|
+
export declare const RedeliverEventsResponseDataAttributesStatus: {
|
|
3
|
+
readonly Pending: "PENDING";
|
|
4
|
+
readonly Delivering: "DELIVERING";
|
|
5
|
+
readonly Delivered: "DELIVERED";
|
|
6
|
+
readonly Failed: "FAILED";
|
|
7
|
+
readonly Unknown: "UNKNOWN";
|
|
8
|
+
readonly Canceled: "CANCELED";
|
|
9
|
+
};
|
|
10
|
+
export type RedeliverEventsResponseDataAttributesStatus = (typeof RedeliverEventsResponseDataAttributesStatus)[keyof typeof RedeliverEventsResponseDataAttributesStatus];
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.RedeliverEventsResponseDataAttributesStatus = void 0;
|
|
5
|
+
/** Result of this manual redelivery */
|
|
6
|
+
exports.RedeliverEventsResponseDataAttributesStatus = {
|
|
7
|
+
Pending: "PENDING",
|
|
8
|
+
Delivering: "DELIVERING",
|
|
9
|
+
Delivered: "DELIVERED",
|
|
10
|
+
Failed: "FAILED",
|
|
11
|
+
Unknown: "UNKNOWN",
|
|
12
|
+
Canceled: "CANCELED",
|
|
13
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type * as Natural from "../../../index.js";
|
|
2
|
+
/**
|
|
3
|
+
* Resource relationships
|
|
4
|
+
*/
|
|
5
|
+
export interface RedeliverEventsResponseDataRelationships {
|
|
6
|
+
/** Parent webhook endpoint */
|
|
7
|
+
webhook: Natural.RedeliverEventsResponseDataRelationshipsWebhook;
|
|
8
|
+
/** Event being redelivered */
|
|
9
|
+
event: Natural.RedeliverEventsResponseDataRelationshipsEvent;
|
|
10
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const RedeliverEventsResponseDataRelationshipsEventDataType: {
|
|
2
|
+
readonly Event: "event";
|
|
3
|
+
};
|
|
4
|
+
export type RedeliverEventsResponseDataRelationshipsEventDataType = (typeof RedeliverEventsResponseDataRelationshipsEventDataType)[keyof typeof RedeliverEventsResponseDataRelationshipsEventDataType];
|
package/dist/cjs/api/resources/events/types/RedeliverEventsResponseDataRelationshipsEventDataType.js
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.RedeliverEventsResponseDataRelationshipsEventDataType = void 0;
|
|
5
|
+
exports.RedeliverEventsResponseDataRelationshipsEventDataType = {
|
|
6
|
+
Event: "event",
|
|
7
|
+
};
|
package/dist/cjs/api/resources/events/types/RedeliverEventsResponseDataRelationshipsWebhook.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type * as Natural from "../../../index.js";
|
|
2
|
+
/**
|
|
3
|
+
* Parent webhook endpoint
|
|
4
|
+
*/
|
|
5
|
+
export interface RedeliverEventsResponseDataRelationshipsWebhook {
|
|
6
|
+
/** Related resource identifier. */
|
|
7
|
+
data: Natural.RedeliverEventsResponseDataRelationshipsWebhookData;
|
|
8
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const RedeliverEventsResponseDataRelationshipsWebhookDataType: {
|
|
2
|
+
readonly Webhook: "webhook";
|
|
3
|
+
};
|
|
4
|
+
export type RedeliverEventsResponseDataRelationshipsWebhookDataType = (typeof RedeliverEventsResponseDataRelationshipsWebhookDataType)[keyof typeof RedeliverEventsResponseDataRelationshipsWebhookDataType];
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.RedeliverEventsResponseDataRelationshipsWebhookDataType = void 0;
|
|
5
|
+
exports.RedeliverEventsResponseDataRelationshipsWebhookDataType = {
|
|
6
|
+
Webhook: "webhook",
|
|
7
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.RedeliverEventsResponseDataType = void 0;
|
|
5
|
+
/** Resource type */
|
|
6
|
+
exports.RedeliverEventsResponseDataType = {
|
|
7
|
+
Redelivery: "redelivery",
|
|
8
|
+
};
|