@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.
Files changed (472) hide show
  1. package/dist/cjs/BaseClient.js +2 -2
  2. package/dist/cjs/api/resources/agents/types/CreateCustomerAgentsRequestPermissionsItem.d.ts +4 -0
  3. package/dist/cjs/api/resources/agents/types/CreateCustomerAgentsRequestPermissionsItem.js +4 -0
  4. package/dist/cjs/api/resources/apiKeys/types/CreateApiKeysRequestScopesItem.d.ts +4 -0
  5. package/dist/cjs/api/resources/apiKeys/types/CreateApiKeysRequestScopesItem.js +4 -0
  6. package/dist/cjs/api/resources/approvals/types/ApproveApprovalsResponseDataAttributesTargetType.d.ts +1 -0
  7. package/dist/cjs/api/resources/approvals/types/ApproveApprovalsResponseDataAttributesTargetType.js +1 -0
  8. package/dist/cjs/api/resources/approvals/types/DenyApprovalsResponseDataAttributesTargetType.d.ts +1 -0
  9. package/dist/cjs/api/resources/approvals/types/DenyApprovalsResponseDataAttributesTargetType.js +1 -0
  10. package/dist/cjs/api/resources/approvals/types/GetApprovalsResponseDataAttributesTargetType.d.ts +1 -0
  11. package/dist/cjs/api/resources/approvals/types/GetApprovalsResponseDataAttributesTargetType.js +1 -0
  12. package/dist/cjs/api/resources/approvals/types/ListApprovalsResponseDataItemAttributesTargetType.d.ts +1 -0
  13. package/dist/cjs/api/resources/approvals/types/ListApprovalsResponseDataItemAttributesTargetType.js +1 -0
  14. package/dist/cjs/api/resources/customers/client/Client.d.ts +3 -3
  15. package/dist/cjs/api/resources/customers/client/Client.js +3 -3
  16. package/dist/cjs/api/resources/customers/types/CreateInvitationsCustomersRequestAgentsItemPermissionsItem.d.ts +4 -0
  17. package/dist/cjs/api/resources/customers/types/CreateInvitationsCustomersRequestAgentsItemPermissionsItem.js +4 -0
  18. package/dist/cjs/api/resources/events/client/Client.d.ts +30 -0
  19. package/dist/cjs/api/resources/events/client/Client.js +101 -0
  20. package/dist/cjs/api/resources/events/client/requests/RedeliverEventsRequest.d.ts +14 -0
  21. package/dist/cjs/api/resources/events/client/requests/RedeliverEventsRequest.js +3 -0
  22. package/dist/cjs/api/resources/events/client/requests/index.d.ts +1 -0
  23. package/dist/cjs/api/resources/events/types/RedeliverEventsResponse.d.ts +4 -0
  24. package/dist/cjs/api/resources/events/types/RedeliverEventsResponse.js +3 -0
  25. package/dist/cjs/api/resources/events/types/RedeliverEventsResponseData.d.ts +11 -0
  26. package/dist/cjs/api/resources/events/types/RedeliverEventsResponseData.js +3 -0
  27. package/dist/cjs/api/resources/events/types/RedeliverEventsResponseDataAttributes.d.ts +28 -0
  28. package/dist/cjs/api/resources/events/types/RedeliverEventsResponseDataAttributes.js +3 -0
  29. package/dist/cjs/api/resources/events/types/RedeliverEventsResponseDataAttributesErrorCategory.d.ts +8 -0
  30. package/dist/cjs/api/resources/events/types/RedeliverEventsResponseDataAttributesErrorCategory.js +11 -0
  31. package/dist/cjs/api/resources/events/types/RedeliverEventsResponseDataAttributesStatus.d.ts +10 -0
  32. package/dist/cjs/api/resources/events/types/RedeliverEventsResponseDataAttributesStatus.js +13 -0
  33. package/dist/cjs/api/resources/events/types/RedeliverEventsResponseDataRelationships.d.ts +10 -0
  34. package/dist/cjs/api/resources/events/types/RedeliverEventsResponseDataRelationships.js +3 -0
  35. package/dist/cjs/api/resources/events/types/RedeliverEventsResponseDataRelationshipsEvent.d.ts +8 -0
  36. package/dist/cjs/api/resources/events/types/RedeliverEventsResponseDataRelationshipsEvent.js +3 -0
  37. package/dist/cjs/api/resources/events/types/RedeliverEventsResponseDataRelationshipsEventData.d.ts +8 -0
  38. package/dist/cjs/api/resources/events/types/RedeliverEventsResponseDataRelationshipsEventData.js +3 -0
  39. package/dist/cjs/api/resources/events/types/RedeliverEventsResponseDataRelationshipsEventDataType.d.ts +4 -0
  40. package/dist/cjs/api/resources/events/types/RedeliverEventsResponseDataRelationshipsEventDataType.js +7 -0
  41. package/dist/cjs/api/resources/events/types/RedeliverEventsResponseDataRelationshipsWebhook.d.ts +8 -0
  42. package/dist/cjs/api/resources/events/types/RedeliverEventsResponseDataRelationshipsWebhook.js +3 -0
  43. package/dist/cjs/api/resources/events/types/RedeliverEventsResponseDataRelationshipsWebhookData.d.ts +8 -0
  44. package/dist/cjs/api/resources/events/types/RedeliverEventsResponseDataRelationshipsWebhookData.js +3 -0
  45. package/dist/cjs/api/resources/events/types/RedeliverEventsResponseDataRelationshipsWebhookDataType.d.ts +4 -0
  46. package/dist/cjs/api/resources/events/types/RedeliverEventsResponseDataRelationshipsWebhookDataType.js +7 -0
  47. package/dist/cjs/api/resources/events/types/RedeliverEventsResponseDataType.d.ts +5 -0
  48. package/dist/cjs/api/resources/events/types/RedeliverEventsResponseDataType.js +8 -0
  49. package/dist/cjs/api/resources/events/types/index.d.ts +13 -0
  50. package/dist/cjs/api/resources/events/types/index.js +13 -0
  51. package/dist/cjs/api/resources/externalAccounts/types/CreateFromProcessorTokenExternalAccountsResponseDataItemAttributes.d.ts +2 -0
  52. package/dist/cjs/api/resources/externalAccounts/types/CreateFromProcessorTokenExternalAccountsResponseDataItemAttributesAvailableMethodsItem.d.ts +5 -0
  53. package/dist/cjs/api/resources/externalAccounts/types/CreateFromProcessorTokenExternalAccountsResponseDataItemAttributesAvailableMethodsItem.js +8 -0
  54. package/dist/cjs/api/resources/externalAccounts/types/DelExtAcctAttrs.d.ts +2 -0
  55. package/dist/cjs/api/resources/externalAccounts/types/ExtAcctAttrs.d.ts +2 -0
  56. package/dist/cjs/api/resources/externalAccounts/types/GetExternalAccountsResponseDataAttributes.d.ts +2 -0
  57. package/dist/cjs/api/resources/externalAccounts/types/GetExternalAccountsResponseDataAttributesAvailableMethodsItem.d.ts +5 -0
  58. package/dist/cjs/api/resources/externalAccounts/types/GetExternalAccountsResponseDataAttributesAvailableMethodsItem.js +8 -0
  59. package/dist/cjs/api/resources/externalAccounts/types/ListExternalAccountsResponseDataItemAttributesAvailableMethodsItem.d.ts +5 -0
  60. package/dist/cjs/api/resources/externalAccounts/types/ListExternalAccountsResponseDataItemAttributesAvailableMethodsItem.js +8 -0
  61. package/dist/cjs/api/resources/externalAccounts/types/RemoveExternalAccountsResponseDataAttributesAvailableMethodsItem.d.ts +5 -0
  62. package/dist/cjs/api/resources/externalAccounts/types/RemoveExternalAccountsResponseDataAttributesAvailableMethodsItem.js +8 -0
  63. package/dist/cjs/api/resources/externalAccounts/types/index.d.ts +4 -0
  64. package/dist/cjs/api/resources/externalAccounts/types/index.js +4 -0
  65. package/dist/cjs/api/resources/invitationLinks/client/Client.d.ts +4 -4
  66. package/dist/cjs/api/resources/invitationLinks/client/Client.js +4 -4
  67. package/dist/cjs/api/resources/invitationLinks/types/CreateInvitationLinksRequestProposedAgentsItemPermissionsItem.d.ts +4 -0
  68. package/dist/cjs/api/resources/invitationLinks/types/CreateInvitationLinksRequestProposedAgentsItemPermissionsItem.js +4 -0
  69. package/dist/cjs/api/resources/invitationLinks/types/CreateInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.d.ts +4 -0
  70. package/dist/cjs/api/resources/invitationLinks/types/CreateInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.js +4 -0
  71. package/dist/cjs/api/resources/invitationLinks/types/GetInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.d.ts +4 -0
  72. package/dist/cjs/api/resources/invitationLinks/types/GetInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.js +4 -0
  73. package/dist/cjs/api/resources/invitationLinks/types/ListInvitationLinksResponseDataItemAttributesProposedAgentsItemPermissionsItem.d.ts +4 -0
  74. package/dist/cjs/api/resources/invitationLinks/types/ListInvitationLinksResponseDataItemAttributesProposedAgentsItemPermissionsItem.js +4 -0
  75. package/dist/cjs/api/resources/invitationLinks/types/RevokeInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.d.ts +4 -0
  76. package/dist/cjs/api/resources/invitationLinks/types/RevokeInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.js +4 -0
  77. package/dist/cjs/api/resources/paymentRequests/types/FulfillPaymentRequestsRequestPaymentSourceWallet.d.ts +2 -2
  78. package/dist/cjs/api/resources/simulations/client/Client.d.ts +9 -9
  79. package/dist/cjs/api/resources/simulations/client/Client.js +9 -9
  80. package/dist/cjs/api/resources/simulations/client/requests/AcceptCustomerInvitationSimulationsRequest.d.ts +1 -1
  81. package/dist/cjs/api/resources/simulations/client/requests/DeclineCustomerInvitationSimulationsRequest.d.ts +1 -1
  82. package/dist/cjs/api/resources/simulations/client/requests/InviteCustomerSimulationsRequest.d.ts +2 -2
  83. package/dist/cjs/api/resources/simulations/types/FundCustomerSimulationsResponseDataAttributes.d.ts +4 -0
  84. package/dist/cjs/api/resources/simulations/types/InviteCustomerSimulationsRequestType.d.ts +1 -1
  85. package/dist/cjs/api/resources/simulations/types/InviteCustomerSimulationsRequestType.js +1 -1
  86. package/dist/cjs/api/resources/simulations/types/InviteCustomerSimulationsResponse.d.ts +1 -1
  87. package/dist/cjs/api/resources/simulations/types/InviteCustomerSimulationsResponseMetaCustomer.d.ts +3 -3
  88. package/dist/cjs/api/resources/simulations/types/InviteCustomerSimulationsResponseMetaCustomerPartyType.d.ts +1 -1
  89. package/dist/cjs/api/resources/simulations/types/InviteCustomerSimulationsResponseMetaCustomerPartyType.js +1 -1
  90. package/dist/cjs/api/resources/simulations/types/LinkExternalAccountSimulationsResponseDataItemAttributes.d.ts +2 -0
  91. package/dist/cjs/api/resources/simulations/types/LinkExternalAccountSimulationsResponseDataItemAttributesAvailableMethodsItem.d.ts +5 -0
  92. package/dist/cjs/api/resources/simulations/types/LinkExternalAccountSimulationsResponseDataItemAttributesAvailableMethodsItem.js +8 -0
  93. package/dist/cjs/api/resources/simulations/types/index.d.ts +1 -0
  94. package/dist/cjs/api/resources/simulations/types/index.js +1 -0
  95. package/dist/cjs/api/resources/transfers/client/Client.d.ts +1 -0
  96. package/dist/cjs/api/resources/transfers/client/Client.js +1 -0
  97. package/dist/cjs/api/resources/transfers/client/requests/NewWithdrawalParams.d.ts +3 -0
  98. package/dist/cjs/api/resources/transfers/types/DepositAttrs.d.ts +4 -0
  99. package/dist/cjs/api/resources/transfers/types/InitiateInternalTransfersResponseDataAttributes.d.ts +4 -0
  100. package/dist/cjs/api/resources/transfers/types/InitiateWithdrawalTransfersRequestMethod.d.ts +6 -0
  101. package/dist/cjs/api/resources/transfers/types/InitiateWithdrawalTransfersRequestMethod.js +9 -0
  102. package/dist/cjs/api/resources/transfers/types/TransferAttrs.d.ts +4 -0
  103. package/dist/cjs/api/resources/transfers/types/TransferDetailAttrs.d.ts +4 -0
  104. package/dist/cjs/api/resources/transfers/types/WithdrawalAttrs.d.ts +4 -0
  105. package/dist/cjs/api/resources/transfers/types/index.d.ts +1 -0
  106. package/dist/cjs/api/resources/transfers/types/index.js +1 -0
  107. package/dist/cjs/api/resources/wallets/client/Client.d.ts +1 -1
  108. package/dist/cjs/api/resources/wallets/client/Client.js +1 -1
  109. package/dist/cjs/api/resources/wallets/types/CreateWalletsResponseDataAttributesDepositInstructions.d.ts +4 -0
  110. package/dist/cjs/api/resources/wallets/types/FreezeWalletsResponseDataAttributesDepositInstructions.d.ts +4 -0
  111. package/dist/cjs/api/resources/wallets/types/GetWalletsResponseDataAttributesDepositInstructions.d.ts +4 -0
  112. package/dist/cjs/api/resources/wallets/types/ListWalletsResponseDataItemAttributesDepositInstructions.d.ts +4 -0
  113. package/dist/cjs/api/resources/wallets/types/SetDefaultWalletsResponseDataAttributesDepositInstructions.d.ts +4 -0
  114. package/dist/cjs/api/resources/wallets/types/UnfreezeWalletsResponseDataAttributesDepositInstructions.d.ts +4 -0
  115. package/dist/cjs/api/resources/wallets/types/UpdateWalletsResponseDataAttributesDepositInstructions.d.ts +4 -0
  116. package/dist/cjs/api/types/ComplianceSessionStatusResponseDataAttributesStatus.d.ts +2 -0
  117. package/dist/cjs/api/types/ComplianceSessionStatusResponseDataAttributesStatus.js +2 -0
  118. package/dist/cjs/api/types/PartyComplianceStatusResponseDataAttributesCaseStatus.d.ts +2 -0
  119. package/dist/cjs/api/types/PartyComplianceStatusResponseDataAttributesCaseStatus.js +2 -0
  120. package/dist/cjs/serialization/resources/agents/types/CreateCustomerAgentsRequestPermissionsItem.d.ts +1 -1
  121. package/dist/cjs/serialization/resources/agents/types/CreateCustomerAgentsRequestPermissionsItem.js +4 -0
  122. package/dist/cjs/serialization/resources/apiKeys/types/CreateApiKeysRequestScopesItem.d.ts +1 -1
  123. package/dist/cjs/serialization/resources/apiKeys/types/CreateApiKeysRequestScopesItem.js +4 -0
  124. package/dist/cjs/serialization/resources/approvals/types/ApproveApprovalsResponseDataAttributesTargetType.d.ts +1 -1
  125. package/dist/cjs/serialization/resources/approvals/types/ApproveApprovalsResponseDataAttributesTargetType.js +1 -1
  126. package/dist/cjs/serialization/resources/approvals/types/DenyApprovalsResponseDataAttributesTargetType.d.ts +1 -1
  127. package/dist/cjs/serialization/resources/approvals/types/DenyApprovalsResponseDataAttributesTargetType.js +1 -1
  128. package/dist/cjs/serialization/resources/approvals/types/GetApprovalsResponseDataAttributesTargetType.d.ts +1 -1
  129. package/dist/cjs/serialization/resources/approvals/types/GetApprovalsResponseDataAttributesTargetType.js +1 -1
  130. package/dist/cjs/serialization/resources/approvals/types/ListApprovalsResponseDataItemAttributesTargetType.d.ts +1 -1
  131. package/dist/cjs/serialization/resources/approvals/types/ListApprovalsResponseDataItemAttributesTargetType.js +1 -1
  132. package/dist/cjs/serialization/resources/customers/types/CreateInvitationsCustomersRequestAgentsItemPermissionsItem.d.ts +1 -1
  133. package/dist/cjs/serialization/resources/customers/types/CreateInvitationsCustomersRequestAgentsItemPermissionsItem.js +4 -0
  134. package/dist/cjs/serialization/resources/events/types/RedeliverEventsResponse.d.ts +10 -0
  135. package/dist/cjs/serialization/resources/events/types/RedeliverEventsResponse.js +42 -0
  136. package/dist/cjs/serialization/resources/events/types/RedeliverEventsResponseData.d.ts +15 -0
  137. package/dist/cjs/serialization/resources/events/types/RedeliverEventsResponseData.js +47 -0
  138. package/dist/cjs/serialization/resources/events/types/RedeliverEventsResponseDataAttributes.d.ts +21 -0
  139. package/dist/cjs/serialization/resources/events/types/RedeliverEventsResponseDataAttributes.js +53 -0
  140. package/dist/cjs/serialization/resources/events/types/RedeliverEventsResponseDataAttributesErrorCategory.d.ts +7 -0
  141. package/dist/cjs/serialization/resources/events/types/RedeliverEventsResponseDataAttributesErrorCategory.js +39 -0
  142. package/dist/cjs/serialization/resources/events/types/RedeliverEventsResponseDataAttributesStatus.d.ts +7 -0
  143. package/dist/cjs/serialization/resources/events/types/RedeliverEventsResponseDataAttributesStatus.js +39 -0
  144. package/dist/cjs/serialization/resources/events/types/RedeliverEventsResponseDataRelationships.d.ts +12 -0
  145. package/dist/cjs/serialization/resources/events/types/RedeliverEventsResponseDataRelationships.js +44 -0
  146. package/dist/cjs/serialization/resources/events/types/RedeliverEventsResponseDataRelationshipsEvent.d.ts +10 -0
  147. package/dist/cjs/serialization/resources/events/types/RedeliverEventsResponseDataRelationshipsEvent.js +42 -0
  148. package/dist/cjs/serialization/resources/events/types/RedeliverEventsResponseDataRelationshipsEventData.d.ts +11 -0
  149. package/dist/cjs/serialization/resources/events/types/RedeliverEventsResponseDataRelationshipsEventData.js +43 -0
  150. package/dist/cjs/serialization/resources/events/types/RedeliverEventsResponseDataRelationshipsEventDataType.d.ts +7 -0
  151. package/dist/cjs/serialization/resources/events/types/RedeliverEventsResponseDataRelationshipsEventDataType.js +39 -0
  152. package/dist/cjs/serialization/resources/events/types/RedeliverEventsResponseDataRelationshipsWebhook.d.ts +10 -0
  153. package/dist/cjs/serialization/resources/events/types/RedeliverEventsResponseDataRelationshipsWebhook.js +42 -0
  154. package/dist/cjs/serialization/resources/events/types/RedeliverEventsResponseDataRelationshipsWebhookData.d.ts +11 -0
  155. package/dist/cjs/serialization/resources/events/types/RedeliverEventsResponseDataRelationshipsWebhookData.js +43 -0
  156. package/dist/cjs/serialization/resources/events/types/RedeliverEventsResponseDataRelationshipsWebhookDataType.d.ts +7 -0
  157. package/dist/cjs/serialization/resources/events/types/RedeliverEventsResponseDataRelationshipsWebhookDataType.js +39 -0
  158. package/dist/cjs/serialization/resources/events/types/RedeliverEventsResponseDataType.d.ts +7 -0
  159. package/dist/cjs/serialization/resources/events/types/RedeliverEventsResponseDataType.js +39 -0
  160. package/dist/cjs/serialization/resources/events/types/index.d.ts +13 -0
  161. package/dist/cjs/serialization/resources/events/types/index.js +13 -0
  162. package/dist/cjs/serialization/resources/externalAccounts/types/CreateFromProcessorTokenExternalAccountsResponseDataItemAttributes.d.ts +2 -0
  163. package/dist/cjs/serialization/resources/externalAccounts/types/CreateFromProcessorTokenExternalAccountsResponseDataItemAttributes.js +2 -0
  164. package/dist/cjs/serialization/resources/externalAccounts/types/CreateFromProcessorTokenExternalAccountsResponseDataItemAttributesAvailableMethodsItem.d.ts +7 -0
  165. package/dist/cjs/serialization/resources/externalAccounts/types/CreateFromProcessorTokenExternalAccountsResponseDataItemAttributesAvailableMethodsItem.js +39 -0
  166. package/dist/cjs/serialization/resources/externalAccounts/types/DelExtAcctAttrs.d.ts +2 -0
  167. package/dist/cjs/serialization/resources/externalAccounts/types/DelExtAcctAttrs.js +2 -0
  168. package/dist/cjs/serialization/resources/externalAccounts/types/ExtAcctAttrs.d.ts +2 -0
  169. package/dist/cjs/serialization/resources/externalAccounts/types/ExtAcctAttrs.js +2 -0
  170. package/dist/cjs/serialization/resources/externalAccounts/types/GetExternalAccountsResponseDataAttributes.d.ts +2 -0
  171. package/dist/cjs/serialization/resources/externalAccounts/types/GetExternalAccountsResponseDataAttributes.js +2 -0
  172. package/dist/cjs/serialization/resources/externalAccounts/types/GetExternalAccountsResponseDataAttributesAvailableMethodsItem.d.ts +7 -0
  173. package/dist/cjs/serialization/resources/externalAccounts/types/GetExternalAccountsResponseDataAttributesAvailableMethodsItem.js +39 -0
  174. package/dist/cjs/serialization/resources/externalAccounts/types/ListExternalAccountsResponseDataItemAttributesAvailableMethodsItem.d.ts +7 -0
  175. package/dist/cjs/serialization/resources/externalAccounts/types/ListExternalAccountsResponseDataItemAttributesAvailableMethodsItem.js +39 -0
  176. package/dist/cjs/serialization/resources/externalAccounts/types/RemoveExternalAccountsResponseDataAttributesAvailableMethodsItem.d.ts +7 -0
  177. package/dist/cjs/serialization/resources/externalAccounts/types/RemoveExternalAccountsResponseDataAttributesAvailableMethodsItem.js +39 -0
  178. package/dist/cjs/serialization/resources/externalAccounts/types/index.d.ts +4 -0
  179. package/dist/cjs/serialization/resources/externalAccounts/types/index.js +4 -0
  180. package/dist/cjs/serialization/resources/invitationLinks/types/CreateInvitationLinksRequestProposedAgentsItemPermissionsItem.d.ts +1 -1
  181. package/dist/cjs/serialization/resources/invitationLinks/types/CreateInvitationLinksRequestProposedAgentsItemPermissionsItem.js +4 -0
  182. package/dist/cjs/serialization/resources/invitationLinks/types/CreateInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.d.ts +1 -1
  183. package/dist/cjs/serialization/resources/invitationLinks/types/CreateInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.js +4 -0
  184. package/dist/cjs/serialization/resources/invitationLinks/types/GetInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.d.ts +1 -1
  185. package/dist/cjs/serialization/resources/invitationLinks/types/GetInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.js +4 -0
  186. package/dist/cjs/serialization/resources/invitationLinks/types/ListInvitationLinksResponseDataItemAttributesProposedAgentsItemPermissionsItem.d.ts +1 -1
  187. package/dist/cjs/serialization/resources/invitationLinks/types/ListInvitationLinksResponseDataItemAttributesProposedAgentsItemPermissionsItem.js +4 -0
  188. package/dist/cjs/serialization/resources/invitationLinks/types/RevokeInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.d.ts +1 -1
  189. package/dist/cjs/serialization/resources/invitationLinks/types/RevokeInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.js +4 -0
  190. package/dist/cjs/serialization/resources/paymentRequests/types/FulfillPaymentRequestsRequestPaymentSourceWallet.d.ts +1 -1
  191. package/dist/cjs/serialization/resources/paymentRequests/types/FulfillPaymentRequestsRequestPaymentSourceWallet.js +1 -1
  192. package/dist/cjs/serialization/resources/simulations/types/FundCustomerSimulationsResponseDataAttributes.d.ts +2 -0
  193. package/dist/cjs/serialization/resources/simulations/types/FundCustomerSimulationsResponseDataAttributes.js +2 -0
  194. package/dist/cjs/serialization/resources/simulations/types/LinkExternalAccountSimulationsResponseDataItemAttributes.d.ts +2 -0
  195. package/dist/cjs/serialization/resources/simulations/types/LinkExternalAccountSimulationsResponseDataItemAttributes.js +2 -0
  196. package/dist/cjs/serialization/resources/simulations/types/LinkExternalAccountSimulationsResponseDataItemAttributesAvailableMethodsItem.d.ts +7 -0
  197. package/dist/cjs/serialization/resources/simulations/types/LinkExternalAccountSimulationsResponseDataItemAttributesAvailableMethodsItem.js +39 -0
  198. package/dist/cjs/serialization/resources/simulations/types/index.d.ts +1 -0
  199. package/dist/cjs/serialization/resources/simulations/types/index.js +1 -0
  200. package/dist/cjs/serialization/resources/transfers/client/requests/NewWithdrawalParams.d.ts +2 -0
  201. package/dist/cjs/serialization/resources/transfers/client/requests/NewWithdrawalParams.js +2 -0
  202. package/dist/cjs/serialization/resources/transfers/types/DepositAttrs.d.ts +2 -0
  203. package/dist/cjs/serialization/resources/transfers/types/DepositAttrs.js +2 -0
  204. package/dist/cjs/serialization/resources/transfers/types/InitiateInternalTransfersResponseDataAttributes.d.ts +2 -0
  205. package/dist/cjs/serialization/resources/transfers/types/InitiateInternalTransfersResponseDataAttributes.js +2 -0
  206. package/dist/cjs/serialization/resources/transfers/types/InitiateWithdrawalTransfersRequestMethod.d.ts +7 -0
  207. package/dist/cjs/serialization/resources/transfers/types/InitiateWithdrawalTransfersRequestMethod.js +39 -0
  208. package/dist/cjs/serialization/resources/transfers/types/TransferAttrs.d.ts +2 -0
  209. package/dist/cjs/serialization/resources/transfers/types/TransferAttrs.js +2 -0
  210. package/dist/cjs/serialization/resources/transfers/types/TransferDetailAttrs.d.ts +2 -0
  211. package/dist/cjs/serialization/resources/transfers/types/TransferDetailAttrs.js +2 -0
  212. package/dist/cjs/serialization/resources/transfers/types/WithdrawalAttrs.d.ts +2 -0
  213. package/dist/cjs/serialization/resources/transfers/types/WithdrawalAttrs.js +2 -0
  214. package/dist/cjs/serialization/resources/transfers/types/index.d.ts +1 -0
  215. package/dist/cjs/serialization/resources/transfers/types/index.js +1 -0
  216. package/dist/cjs/serialization/resources/wallets/types/CreateWalletsResponseDataAttributesDepositInstructions.d.ts +2 -0
  217. package/dist/cjs/serialization/resources/wallets/types/CreateWalletsResponseDataAttributesDepositInstructions.js +2 -0
  218. package/dist/cjs/serialization/resources/wallets/types/FreezeWalletsResponseDataAttributesDepositInstructions.d.ts +2 -0
  219. package/dist/cjs/serialization/resources/wallets/types/FreezeWalletsResponseDataAttributesDepositInstructions.js +2 -0
  220. package/dist/cjs/serialization/resources/wallets/types/GetWalletsResponseDataAttributesDepositInstructions.d.ts +2 -0
  221. package/dist/cjs/serialization/resources/wallets/types/GetWalletsResponseDataAttributesDepositInstructions.js +2 -0
  222. package/dist/cjs/serialization/resources/wallets/types/ListWalletsResponseDataItemAttributesDepositInstructions.d.ts +2 -0
  223. package/dist/cjs/serialization/resources/wallets/types/ListWalletsResponseDataItemAttributesDepositInstructions.js +2 -0
  224. package/dist/cjs/serialization/resources/wallets/types/SetDefaultWalletsResponseDataAttributesDepositInstructions.d.ts +2 -0
  225. package/dist/cjs/serialization/resources/wallets/types/SetDefaultWalletsResponseDataAttributesDepositInstructions.js +2 -0
  226. package/dist/cjs/serialization/resources/wallets/types/UnfreezeWalletsResponseDataAttributesDepositInstructions.d.ts +2 -0
  227. package/dist/cjs/serialization/resources/wallets/types/UnfreezeWalletsResponseDataAttributesDepositInstructions.js +2 -0
  228. package/dist/cjs/serialization/resources/wallets/types/UpdateWalletsResponseDataAttributesDepositInstructions.d.ts +2 -0
  229. package/dist/cjs/serialization/resources/wallets/types/UpdateWalletsResponseDataAttributesDepositInstructions.js +2 -0
  230. package/dist/cjs/serialization/types/ComplianceSessionStatusResponseDataAttributesStatus.d.ts +1 -1
  231. package/dist/cjs/serialization/types/ComplianceSessionStatusResponseDataAttributesStatus.js +2 -0
  232. package/dist/cjs/serialization/types/PartyComplianceStatusResponseDataAttributesCaseStatus.d.ts +1 -1
  233. package/dist/cjs/serialization/types/PartyComplianceStatusResponseDataAttributesCaseStatus.js +2 -0
  234. package/dist/cjs/version.d.ts +1 -1
  235. package/dist/cjs/version.js +1 -1
  236. package/dist/esm/BaseClient.mjs +2 -2
  237. package/dist/esm/api/resources/agents/types/CreateCustomerAgentsRequestPermissionsItem.d.mts +4 -0
  238. package/dist/esm/api/resources/agents/types/CreateCustomerAgentsRequestPermissionsItem.mjs +4 -0
  239. package/dist/esm/api/resources/apiKeys/types/CreateApiKeysRequestScopesItem.d.mts +4 -0
  240. package/dist/esm/api/resources/apiKeys/types/CreateApiKeysRequestScopesItem.mjs +4 -0
  241. package/dist/esm/api/resources/approvals/types/ApproveApprovalsResponseDataAttributesTargetType.d.mts +1 -0
  242. package/dist/esm/api/resources/approvals/types/ApproveApprovalsResponseDataAttributesTargetType.mjs +1 -0
  243. package/dist/esm/api/resources/approvals/types/DenyApprovalsResponseDataAttributesTargetType.d.mts +1 -0
  244. package/dist/esm/api/resources/approvals/types/DenyApprovalsResponseDataAttributesTargetType.mjs +1 -0
  245. package/dist/esm/api/resources/approvals/types/GetApprovalsResponseDataAttributesTargetType.d.mts +1 -0
  246. package/dist/esm/api/resources/approvals/types/GetApprovalsResponseDataAttributesTargetType.mjs +1 -0
  247. package/dist/esm/api/resources/approvals/types/ListApprovalsResponseDataItemAttributesTargetType.d.mts +1 -0
  248. package/dist/esm/api/resources/approvals/types/ListApprovalsResponseDataItemAttributesTargetType.mjs +1 -0
  249. package/dist/esm/api/resources/customers/client/Client.d.mts +3 -3
  250. package/dist/esm/api/resources/customers/client/Client.mjs +3 -3
  251. package/dist/esm/api/resources/customers/types/CreateInvitationsCustomersRequestAgentsItemPermissionsItem.d.mts +4 -0
  252. package/dist/esm/api/resources/customers/types/CreateInvitationsCustomersRequestAgentsItemPermissionsItem.mjs +4 -0
  253. package/dist/esm/api/resources/events/client/Client.d.mts +30 -0
  254. package/dist/esm/api/resources/events/client/Client.mjs +101 -0
  255. package/dist/esm/api/resources/events/client/requests/RedeliverEventsRequest.d.mts +14 -0
  256. package/dist/esm/api/resources/events/client/requests/RedeliverEventsRequest.mjs +2 -0
  257. package/dist/esm/api/resources/events/client/requests/index.d.mts +1 -0
  258. package/dist/esm/api/resources/events/types/RedeliverEventsResponse.d.mts +4 -0
  259. package/dist/esm/api/resources/events/types/RedeliverEventsResponse.mjs +2 -0
  260. package/dist/esm/api/resources/events/types/RedeliverEventsResponseData.d.mts +11 -0
  261. package/dist/esm/api/resources/events/types/RedeliverEventsResponseData.mjs +2 -0
  262. package/dist/esm/api/resources/events/types/RedeliverEventsResponseDataAttributes.d.mts +28 -0
  263. package/dist/esm/api/resources/events/types/RedeliverEventsResponseDataAttributes.mjs +2 -0
  264. package/dist/esm/api/resources/events/types/RedeliverEventsResponseDataAttributesErrorCategory.d.mts +8 -0
  265. package/dist/esm/api/resources/events/types/RedeliverEventsResponseDataAttributesErrorCategory.mjs +8 -0
  266. package/dist/esm/api/resources/events/types/RedeliverEventsResponseDataAttributesStatus.d.mts +10 -0
  267. package/dist/esm/api/resources/events/types/RedeliverEventsResponseDataAttributesStatus.mjs +10 -0
  268. package/dist/esm/api/resources/events/types/RedeliverEventsResponseDataRelationships.d.mts +10 -0
  269. package/dist/esm/api/resources/events/types/RedeliverEventsResponseDataRelationships.mjs +2 -0
  270. package/dist/esm/api/resources/events/types/RedeliverEventsResponseDataRelationshipsEvent.d.mts +8 -0
  271. package/dist/esm/api/resources/events/types/RedeliverEventsResponseDataRelationshipsEvent.mjs +2 -0
  272. package/dist/esm/api/resources/events/types/RedeliverEventsResponseDataRelationshipsEventData.d.mts +8 -0
  273. package/dist/esm/api/resources/events/types/RedeliverEventsResponseDataRelationshipsEventData.mjs +2 -0
  274. package/dist/esm/api/resources/events/types/RedeliverEventsResponseDataRelationshipsEventDataType.d.mts +4 -0
  275. package/dist/esm/api/resources/events/types/RedeliverEventsResponseDataRelationshipsEventDataType.mjs +4 -0
  276. package/dist/esm/api/resources/events/types/RedeliverEventsResponseDataRelationshipsWebhook.d.mts +8 -0
  277. package/dist/esm/api/resources/events/types/RedeliverEventsResponseDataRelationshipsWebhook.mjs +2 -0
  278. package/dist/esm/api/resources/events/types/RedeliverEventsResponseDataRelationshipsWebhookData.d.mts +8 -0
  279. package/dist/esm/api/resources/events/types/RedeliverEventsResponseDataRelationshipsWebhookData.mjs +2 -0
  280. package/dist/esm/api/resources/events/types/RedeliverEventsResponseDataRelationshipsWebhookDataType.d.mts +4 -0
  281. package/dist/esm/api/resources/events/types/RedeliverEventsResponseDataRelationshipsWebhookDataType.mjs +4 -0
  282. package/dist/esm/api/resources/events/types/RedeliverEventsResponseDataType.d.mts +5 -0
  283. package/dist/esm/api/resources/events/types/RedeliverEventsResponseDataType.mjs +5 -0
  284. package/dist/esm/api/resources/events/types/index.d.mts +13 -0
  285. package/dist/esm/api/resources/events/types/index.mjs +13 -0
  286. package/dist/esm/api/resources/externalAccounts/types/CreateFromProcessorTokenExternalAccountsResponseDataItemAttributes.d.mts +2 -0
  287. package/dist/esm/api/resources/externalAccounts/types/CreateFromProcessorTokenExternalAccountsResponseDataItemAttributesAvailableMethodsItem.d.mts +5 -0
  288. package/dist/esm/api/resources/externalAccounts/types/CreateFromProcessorTokenExternalAccountsResponseDataItemAttributesAvailableMethodsItem.mjs +5 -0
  289. package/dist/esm/api/resources/externalAccounts/types/DelExtAcctAttrs.d.mts +2 -0
  290. package/dist/esm/api/resources/externalAccounts/types/ExtAcctAttrs.d.mts +2 -0
  291. package/dist/esm/api/resources/externalAccounts/types/GetExternalAccountsResponseDataAttributes.d.mts +2 -0
  292. package/dist/esm/api/resources/externalAccounts/types/GetExternalAccountsResponseDataAttributesAvailableMethodsItem.d.mts +5 -0
  293. package/dist/esm/api/resources/externalAccounts/types/GetExternalAccountsResponseDataAttributesAvailableMethodsItem.mjs +5 -0
  294. package/dist/esm/api/resources/externalAccounts/types/ListExternalAccountsResponseDataItemAttributesAvailableMethodsItem.d.mts +5 -0
  295. package/dist/esm/api/resources/externalAccounts/types/ListExternalAccountsResponseDataItemAttributesAvailableMethodsItem.mjs +5 -0
  296. package/dist/esm/api/resources/externalAccounts/types/RemoveExternalAccountsResponseDataAttributesAvailableMethodsItem.d.mts +5 -0
  297. package/dist/esm/api/resources/externalAccounts/types/RemoveExternalAccountsResponseDataAttributesAvailableMethodsItem.mjs +5 -0
  298. package/dist/esm/api/resources/externalAccounts/types/index.d.mts +4 -0
  299. package/dist/esm/api/resources/externalAccounts/types/index.mjs +4 -0
  300. package/dist/esm/api/resources/invitationLinks/client/Client.d.mts +4 -4
  301. package/dist/esm/api/resources/invitationLinks/client/Client.mjs +4 -4
  302. package/dist/esm/api/resources/invitationLinks/types/CreateInvitationLinksRequestProposedAgentsItemPermissionsItem.d.mts +4 -0
  303. package/dist/esm/api/resources/invitationLinks/types/CreateInvitationLinksRequestProposedAgentsItemPermissionsItem.mjs +4 -0
  304. package/dist/esm/api/resources/invitationLinks/types/CreateInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.d.mts +4 -0
  305. package/dist/esm/api/resources/invitationLinks/types/CreateInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.mjs +4 -0
  306. package/dist/esm/api/resources/invitationLinks/types/GetInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.d.mts +4 -0
  307. package/dist/esm/api/resources/invitationLinks/types/GetInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.mjs +4 -0
  308. package/dist/esm/api/resources/invitationLinks/types/ListInvitationLinksResponseDataItemAttributesProposedAgentsItemPermissionsItem.d.mts +4 -0
  309. package/dist/esm/api/resources/invitationLinks/types/ListInvitationLinksResponseDataItemAttributesProposedAgentsItemPermissionsItem.mjs +4 -0
  310. package/dist/esm/api/resources/invitationLinks/types/RevokeInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.d.mts +4 -0
  311. package/dist/esm/api/resources/invitationLinks/types/RevokeInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.mjs +4 -0
  312. package/dist/esm/api/resources/paymentRequests/types/FulfillPaymentRequestsRequestPaymentSourceWallet.d.mts +2 -2
  313. package/dist/esm/api/resources/simulations/client/Client.d.mts +9 -9
  314. package/dist/esm/api/resources/simulations/client/Client.mjs +9 -9
  315. package/dist/esm/api/resources/simulations/client/requests/AcceptCustomerInvitationSimulationsRequest.d.mts +1 -1
  316. package/dist/esm/api/resources/simulations/client/requests/DeclineCustomerInvitationSimulationsRequest.d.mts +1 -1
  317. package/dist/esm/api/resources/simulations/client/requests/InviteCustomerSimulationsRequest.d.mts +2 -2
  318. package/dist/esm/api/resources/simulations/types/FundCustomerSimulationsResponseDataAttributes.d.mts +4 -0
  319. package/dist/esm/api/resources/simulations/types/InviteCustomerSimulationsRequestType.d.mts +1 -1
  320. package/dist/esm/api/resources/simulations/types/InviteCustomerSimulationsRequestType.mjs +1 -1
  321. package/dist/esm/api/resources/simulations/types/InviteCustomerSimulationsResponse.d.mts +1 -1
  322. package/dist/esm/api/resources/simulations/types/InviteCustomerSimulationsResponseMetaCustomer.d.mts +3 -3
  323. package/dist/esm/api/resources/simulations/types/InviteCustomerSimulationsResponseMetaCustomerPartyType.d.mts +1 -1
  324. package/dist/esm/api/resources/simulations/types/InviteCustomerSimulationsResponseMetaCustomerPartyType.mjs +1 -1
  325. package/dist/esm/api/resources/simulations/types/LinkExternalAccountSimulationsResponseDataItemAttributes.d.mts +2 -0
  326. package/dist/esm/api/resources/simulations/types/LinkExternalAccountSimulationsResponseDataItemAttributesAvailableMethodsItem.d.mts +5 -0
  327. package/dist/esm/api/resources/simulations/types/LinkExternalAccountSimulationsResponseDataItemAttributesAvailableMethodsItem.mjs +5 -0
  328. package/dist/esm/api/resources/simulations/types/index.d.mts +1 -0
  329. package/dist/esm/api/resources/simulations/types/index.mjs +1 -0
  330. package/dist/esm/api/resources/transfers/client/Client.d.mts +1 -0
  331. package/dist/esm/api/resources/transfers/client/Client.mjs +1 -0
  332. package/dist/esm/api/resources/transfers/client/requests/NewWithdrawalParams.d.mts +3 -0
  333. package/dist/esm/api/resources/transfers/types/DepositAttrs.d.mts +4 -0
  334. package/dist/esm/api/resources/transfers/types/InitiateInternalTransfersResponseDataAttributes.d.mts +4 -0
  335. package/dist/esm/api/resources/transfers/types/InitiateWithdrawalTransfersRequestMethod.d.mts +6 -0
  336. package/dist/esm/api/resources/transfers/types/InitiateWithdrawalTransfersRequestMethod.mjs +6 -0
  337. package/dist/esm/api/resources/transfers/types/TransferAttrs.d.mts +4 -0
  338. package/dist/esm/api/resources/transfers/types/TransferDetailAttrs.d.mts +4 -0
  339. package/dist/esm/api/resources/transfers/types/WithdrawalAttrs.d.mts +4 -0
  340. package/dist/esm/api/resources/transfers/types/index.d.mts +1 -0
  341. package/dist/esm/api/resources/transfers/types/index.mjs +1 -0
  342. package/dist/esm/api/resources/wallets/client/Client.d.mts +1 -1
  343. package/dist/esm/api/resources/wallets/client/Client.mjs +1 -1
  344. package/dist/esm/api/resources/wallets/types/CreateWalletsResponseDataAttributesDepositInstructions.d.mts +4 -0
  345. package/dist/esm/api/resources/wallets/types/FreezeWalletsResponseDataAttributesDepositInstructions.d.mts +4 -0
  346. package/dist/esm/api/resources/wallets/types/GetWalletsResponseDataAttributesDepositInstructions.d.mts +4 -0
  347. package/dist/esm/api/resources/wallets/types/ListWalletsResponseDataItemAttributesDepositInstructions.d.mts +4 -0
  348. package/dist/esm/api/resources/wallets/types/SetDefaultWalletsResponseDataAttributesDepositInstructions.d.mts +4 -0
  349. package/dist/esm/api/resources/wallets/types/UnfreezeWalletsResponseDataAttributesDepositInstructions.d.mts +4 -0
  350. package/dist/esm/api/resources/wallets/types/UpdateWalletsResponseDataAttributesDepositInstructions.d.mts +4 -0
  351. package/dist/esm/api/types/ComplianceSessionStatusResponseDataAttributesStatus.d.mts +2 -0
  352. package/dist/esm/api/types/ComplianceSessionStatusResponseDataAttributesStatus.mjs +2 -0
  353. package/dist/esm/api/types/PartyComplianceStatusResponseDataAttributesCaseStatus.d.mts +2 -0
  354. package/dist/esm/api/types/PartyComplianceStatusResponseDataAttributesCaseStatus.mjs +2 -0
  355. package/dist/esm/serialization/resources/agents/types/CreateCustomerAgentsRequestPermissionsItem.d.mts +1 -1
  356. package/dist/esm/serialization/resources/agents/types/CreateCustomerAgentsRequestPermissionsItem.mjs +4 -0
  357. package/dist/esm/serialization/resources/apiKeys/types/CreateApiKeysRequestScopesItem.d.mts +1 -1
  358. package/dist/esm/serialization/resources/apiKeys/types/CreateApiKeysRequestScopesItem.mjs +4 -0
  359. package/dist/esm/serialization/resources/approvals/types/ApproveApprovalsResponseDataAttributesTargetType.d.mts +1 -1
  360. package/dist/esm/serialization/resources/approvals/types/ApproveApprovalsResponseDataAttributesTargetType.mjs +1 -1
  361. package/dist/esm/serialization/resources/approvals/types/DenyApprovalsResponseDataAttributesTargetType.d.mts +1 -1
  362. package/dist/esm/serialization/resources/approvals/types/DenyApprovalsResponseDataAttributesTargetType.mjs +1 -1
  363. package/dist/esm/serialization/resources/approvals/types/GetApprovalsResponseDataAttributesTargetType.d.mts +1 -1
  364. package/dist/esm/serialization/resources/approvals/types/GetApprovalsResponseDataAttributesTargetType.mjs +1 -1
  365. package/dist/esm/serialization/resources/approvals/types/ListApprovalsResponseDataItemAttributesTargetType.d.mts +1 -1
  366. package/dist/esm/serialization/resources/approvals/types/ListApprovalsResponseDataItemAttributesTargetType.mjs +1 -1
  367. package/dist/esm/serialization/resources/customers/types/CreateInvitationsCustomersRequestAgentsItemPermissionsItem.d.mts +1 -1
  368. package/dist/esm/serialization/resources/customers/types/CreateInvitationsCustomersRequestAgentsItemPermissionsItem.mjs +4 -0
  369. package/dist/esm/serialization/resources/events/types/RedeliverEventsResponse.d.mts +10 -0
  370. package/dist/esm/serialization/resources/events/types/RedeliverEventsResponse.mjs +6 -0
  371. package/dist/esm/serialization/resources/events/types/RedeliverEventsResponseData.d.mts +15 -0
  372. package/dist/esm/serialization/resources/events/types/RedeliverEventsResponseData.mjs +11 -0
  373. package/dist/esm/serialization/resources/events/types/RedeliverEventsResponseDataAttributes.d.mts +21 -0
  374. package/dist/esm/serialization/resources/events/types/RedeliverEventsResponseDataAttributes.mjs +17 -0
  375. package/dist/esm/serialization/resources/events/types/RedeliverEventsResponseDataAttributesErrorCategory.d.mts +7 -0
  376. package/dist/esm/serialization/resources/events/types/RedeliverEventsResponseDataAttributesErrorCategory.mjs +3 -0
  377. package/dist/esm/serialization/resources/events/types/RedeliverEventsResponseDataAttributesStatus.d.mts +7 -0
  378. package/dist/esm/serialization/resources/events/types/RedeliverEventsResponseDataAttributesStatus.mjs +3 -0
  379. package/dist/esm/serialization/resources/events/types/RedeliverEventsResponseDataRelationships.d.mts +12 -0
  380. package/dist/esm/serialization/resources/events/types/RedeliverEventsResponseDataRelationships.mjs +8 -0
  381. package/dist/esm/serialization/resources/events/types/RedeliverEventsResponseDataRelationshipsEvent.d.mts +10 -0
  382. package/dist/esm/serialization/resources/events/types/RedeliverEventsResponseDataRelationshipsEvent.mjs +6 -0
  383. package/dist/esm/serialization/resources/events/types/RedeliverEventsResponseDataRelationshipsEventData.d.mts +11 -0
  384. package/dist/esm/serialization/resources/events/types/RedeliverEventsResponseDataRelationshipsEventData.mjs +7 -0
  385. package/dist/esm/serialization/resources/events/types/RedeliverEventsResponseDataRelationshipsEventDataType.d.mts +7 -0
  386. package/dist/esm/serialization/resources/events/types/RedeliverEventsResponseDataRelationshipsEventDataType.mjs +3 -0
  387. package/dist/esm/serialization/resources/events/types/RedeliverEventsResponseDataRelationshipsWebhook.d.mts +10 -0
  388. package/dist/esm/serialization/resources/events/types/RedeliverEventsResponseDataRelationshipsWebhook.mjs +6 -0
  389. package/dist/esm/serialization/resources/events/types/RedeliverEventsResponseDataRelationshipsWebhookData.d.mts +11 -0
  390. package/dist/esm/serialization/resources/events/types/RedeliverEventsResponseDataRelationshipsWebhookData.mjs +7 -0
  391. package/dist/esm/serialization/resources/events/types/RedeliverEventsResponseDataRelationshipsWebhookDataType.d.mts +7 -0
  392. package/dist/esm/serialization/resources/events/types/RedeliverEventsResponseDataRelationshipsWebhookDataType.mjs +3 -0
  393. package/dist/esm/serialization/resources/events/types/RedeliverEventsResponseDataType.d.mts +7 -0
  394. package/dist/esm/serialization/resources/events/types/RedeliverEventsResponseDataType.mjs +3 -0
  395. package/dist/esm/serialization/resources/events/types/index.d.mts +13 -0
  396. package/dist/esm/serialization/resources/events/types/index.mjs +13 -0
  397. package/dist/esm/serialization/resources/externalAccounts/types/CreateFromProcessorTokenExternalAccountsResponseDataItemAttributes.d.mts +2 -0
  398. package/dist/esm/serialization/resources/externalAccounts/types/CreateFromProcessorTokenExternalAccountsResponseDataItemAttributes.mjs +2 -0
  399. package/dist/esm/serialization/resources/externalAccounts/types/CreateFromProcessorTokenExternalAccountsResponseDataItemAttributesAvailableMethodsItem.d.mts +7 -0
  400. package/dist/esm/serialization/resources/externalAccounts/types/CreateFromProcessorTokenExternalAccountsResponseDataItemAttributesAvailableMethodsItem.mjs +3 -0
  401. package/dist/esm/serialization/resources/externalAccounts/types/DelExtAcctAttrs.d.mts +2 -0
  402. package/dist/esm/serialization/resources/externalAccounts/types/DelExtAcctAttrs.mjs +2 -0
  403. package/dist/esm/serialization/resources/externalAccounts/types/ExtAcctAttrs.d.mts +2 -0
  404. package/dist/esm/serialization/resources/externalAccounts/types/ExtAcctAttrs.mjs +2 -0
  405. package/dist/esm/serialization/resources/externalAccounts/types/GetExternalAccountsResponseDataAttributes.d.mts +2 -0
  406. package/dist/esm/serialization/resources/externalAccounts/types/GetExternalAccountsResponseDataAttributes.mjs +2 -0
  407. package/dist/esm/serialization/resources/externalAccounts/types/GetExternalAccountsResponseDataAttributesAvailableMethodsItem.d.mts +7 -0
  408. package/dist/esm/serialization/resources/externalAccounts/types/GetExternalAccountsResponseDataAttributesAvailableMethodsItem.mjs +3 -0
  409. package/dist/esm/serialization/resources/externalAccounts/types/ListExternalAccountsResponseDataItemAttributesAvailableMethodsItem.d.mts +7 -0
  410. package/dist/esm/serialization/resources/externalAccounts/types/ListExternalAccountsResponseDataItemAttributesAvailableMethodsItem.mjs +3 -0
  411. package/dist/esm/serialization/resources/externalAccounts/types/RemoveExternalAccountsResponseDataAttributesAvailableMethodsItem.d.mts +7 -0
  412. package/dist/esm/serialization/resources/externalAccounts/types/RemoveExternalAccountsResponseDataAttributesAvailableMethodsItem.mjs +3 -0
  413. package/dist/esm/serialization/resources/externalAccounts/types/index.d.mts +4 -0
  414. package/dist/esm/serialization/resources/externalAccounts/types/index.mjs +4 -0
  415. package/dist/esm/serialization/resources/invitationLinks/types/CreateInvitationLinksRequestProposedAgentsItemPermissionsItem.d.mts +1 -1
  416. package/dist/esm/serialization/resources/invitationLinks/types/CreateInvitationLinksRequestProposedAgentsItemPermissionsItem.mjs +4 -0
  417. package/dist/esm/serialization/resources/invitationLinks/types/CreateInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.d.mts +1 -1
  418. package/dist/esm/serialization/resources/invitationLinks/types/CreateInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.mjs +4 -0
  419. package/dist/esm/serialization/resources/invitationLinks/types/GetInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.d.mts +1 -1
  420. package/dist/esm/serialization/resources/invitationLinks/types/GetInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.mjs +4 -0
  421. package/dist/esm/serialization/resources/invitationLinks/types/ListInvitationLinksResponseDataItemAttributesProposedAgentsItemPermissionsItem.d.mts +1 -1
  422. package/dist/esm/serialization/resources/invitationLinks/types/ListInvitationLinksResponseDataItemAttributesProposedAgentsItemPermissionsItem.mjs +4 -0
  423. package/dist/esm/serialization/resources/invitationLinks/types/RevokeInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.d.mts +1 -1
  424. package/dist/esm/serialization/resources/invitationLinks/types/RevokeInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.mjs +4 -0
  425. package/dist/esm/serialization/resources/paymentRequests/types/FulfillPaymentRequestsRequestPaymentSourceWallet.d.mts +1 -1
  426. package/dist/esm/serialization/resources/paymentRequests/types/FulfillPaymentRequestsRequestPaymentSourceWallet.mjs +1 -1
  427. package/dist/esm/serialization/resources/simulations/types/FundCustomerSimulationsResponseDataAttributes.d.mts +2 -0
  428. package/dist/esm/serialization/resources/simulations/types/FundCustomerSimulationsResponseDataAttributes.mjs +2 -0
  429. package/dist/esm/serialization/resources/simulations/types/LinkExternalAccountSimulationsResponseDataItemAttributes.d.mts +2 -0
  430. package/dist/esm/serialization/resources/simulations/types/LinkExternalAccountSimulationsResponseDataItemAttributes.mjs +2 -0
  431. package/dist/esm/serialization/resources/simulations/types/LinkExternalAccountSimulationsResponseDataItemAttributesAvailableMethodsItem.d.mts +7 -0
  432. package/dist/esm/serialization/resources/simulations/types/LinkExternalAccountSimulationsResponseDataItemAttributesAvailableMethodsItem.mjs +3 -0
  433. package/dist/esm/serialization/resources/simulations/types/index.d.mts +1 -0
  434. package/dist/esm/serialization/resources/simulations/types/index.mjs +1 -0
  435. package/dist/esm/serialization/resources/transfers/client/requests/NewWithdrawalParams.d.mts +2 -0
  436. package/dist/esm/serialization/resources/transfers/client/requests/NewWithdrawalParams.mjs +2 -0
  437. package/dist/esm/serialization/resources/transfers/types/DepositAttrs.d.mts +2 -0
  438. package/dist/esm/serialization/resources/transfers/types/DepositAttrs.mjs +2 -0
  439. package/dist/esm/serialization/resources/transfers/types/InitiateInternalTransfersResponseDataAttributes.d.mts +2 -0
  440. package/dist/esm/serialization/resources/transfers/types/InitiateInternalTransfersResponseDataAttributes.mjs +2 -0
  441. package/dist/esm/serialization/resources/transfers/types/InitiateWithdrawalTransfersRequestMethod.d.mts +7 -0
  442. package/dist/esm/serialization/resources/transfers/types/InitiateWithdrawalTransfersRequestMethod.mjs +3 -0
  443. package/dist/esm/serialization/resources/transfers/types/TransferAttrs.d.mts +2 -0
  444. package/dist/esm/serialization/resources/transfers/types/TransferAttrs.mjs +2 -0
  445. package/dist/esm/serialization/resources/transfers/types/TransferDetailAttrs.d.mts +2 -0
  446. package/dist/esm/serialization/resources/transfers/types/TransferDetailAttrs.mjs +2 -0
  447. package/dist/esm/serialization/resources/transfers/types/WithdrawalAttrs.d.mts +2 -0
  448. package/dist/esm/serialization/resources/transfers/types/WithdrawalAttrs.mjs +2 -0
  449. package/dist/esm/serialization/resources/transfers/types/index.d.mts +1 -0
  450. package/dist/esm/serialization/resources/transfers/types/index.mjs +1 -0
  451. package/dist/esm/serialization/resources/wallets/types/CreateWalletsResponseDataAttributesDepositInstructions.d.mts +2 -0
  452. package/dist/esm/serialization/resources/wallets/types/CreateWalletsResponseDataAttributesDepositInstructions.mjs +2 -0
  453. package/dist/esm/serialization/resources/wallets/types/FreezeWalletsResponseDataAttributesDepositInstructions.d.mts +2 -0
  454. package/dist/esm/serialization/resources/wallets/types/FreezeWalletsResponseDataAttributesDepositInstructions.mjs +2 -0
  455. package/dist/esm/serialization/resources/wallets/types/GetWalletsResponseDataAttributesDepositInstructions.d.mts +2 -0
  456. package/dist/esm/serialization/resources/wallets/types/GetWalletsResponseDataAttributesDepositInstructions.mjs +2 -0
  457. package/dist/esm/serialization/resources/wallets/types/ListWalletsResponseDataItemAttributesDepositInstructions.d.mts +2 -0
  458. package/dist/esm/serialization/resources/wallets/types/ListWalletsResponseDataItemAttributesDepositInstructions.mjs +2 -0
  459. package/dist/esm/serialization/resources/wallets/types/SetDefaultWalletsResponseDataAttributesDepositInstructions.d.mts +2 -0
  460. package/dist/esm/serialization/resources/wallets/types/SetDefaultWalletsResponseDataAttributesDepositInstructions.mjs +2 -0
  461. package/dist/esm/serialization/resources/wallets/types/UnfreezeWalletsResponseDataAttributesDepositInstructions.d.mts +2 -0
  462. package/dist/esm/serialization/resources/wallets/types/UnfreezeWalletsResponseDataAttributesDepositInstructions.mjs +2 -0
  463. package/dist/esm/serialization/resources/wallets/types/UpdateWalletsResponseDataAttributesDepositInstructions.d.mts +2 -0
  464. package/dist/esm/serialization/resources/wallets/types/UpdateWalletsResponseDataAttributesDepositInstructions.mjs +2 -0
  465. package/dist/esm/serialization/types/ComplianceSessionStatusResponseDataAttributesStatus.d.mts +1 -1
  466. package/dist/esm/serialization/types/ComplianceSessionStatusResponseDataAttributesStatus.mjs +2 -0
  467. package/dist/esm/serialization/types/PartyComplianceStatusResponseDataAttributesCaseStatus.d.mts +1 -1
  468. package/dist/esm/serialization/types/PartyComplianceStatusResponseDataAttributesCaseStatus.mjs +2 -0
  469. package/dist/esm/version.d.mts +1 -1
  470. package/dist/esm/version.mjs +1 -1
  471. package/package.json +1 -1
  472. package/reference.md +85 -17
@@ -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.0",
47
- "User-Agent": "@naturalpay/sdk/1.2.0",
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",
@@ -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];
@@ -7,4 +7,5 @@ exports.ApproveApprovalsResponseDataAttributesTargetType = {
7
7
  Payment: "payment",
8
8
  Deposit: "deposit",
9
9
  Withdrawal: "withdrawal",
10
+ DirectPayment: "direct_payment",
10
11
  };
@@ -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];
@@ -7,4 +7,5 @@ exports.DenyApprovalsResponseDataAttributesTargetType = {
7
7
  Payment: "payment",
8
8
  Deposit: "deposit",
9
9
  Withdrawal: "withdrawal",
10
+ DirectPayment: "direct_payment",
10
11
  };
@@ -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];
@@ -7,4 +7,5 @@ exports.GetApprovalsResponseDataAttributesTargetType = {
7
7
  Payment: "payment",
8
8
  Deposit: "deposit",
9
9
  Withdrawal: "withdrawal",
10
+ DirectPayment: "direct_payment",
10
11
  };
@@ -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];
@@ -7,4 +7,5 @@ exports.ListApprovalsResponseDataItemAttributesTargetType = {
7
7
  Payment: "payment",
8
8
  Deposit: "deposit",
9
9
  Withdrawal: "withdrawal",
10
+ DirectPayment: "direct_payment",
10
11
  };
@@ -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 customer invitations
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 connect with agents
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 invitation
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 customer invitations
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 connect with agents
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 invitation
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,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,2 +1,3 @@
1
1
  export type { GetEventsRequest } from "./GetEventsRequest.js";
2
2
  export type { ListEventsRequest } from "./ListEventsRequest.js";
3
+ export type { RedeliverEventsRequest } from "./RedeliverEventsRequest.js";
@@ -0,0 +1,4 @@
1
+ import type * as Natural from "../../../index.js";
2
+ export interface RedeliverEventsResponse {
3
+ data: Natural.RedeliverEventsResponseData;
4
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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];
@@ -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,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,8 @@
1
+ import type * as Natural from "../../../index.js";
2
+ /**
3
+ * Event being redelivered
4
+ */
5
+ export interface RedeliverEventsResponseDataRelationshipsEvent {
6
+ /** Related resource identifier. */
7
+ data: Natural.RedeliverEventsResponseDataRelationshipsEventData;
8
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,8 @@
1
+ import type * as Natural from "../../../index.js";
2
+ /**
3
+ * Related resource identifier.
4
+ */
5
+ export interface RedeliverEventsResponseDataRelationshipsEventData {
6
+ type: Natural.RedeliverEventsResponseDataRelationshipsEventDataType;
7
+ id: string;
8
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ export declare const RedeliverEventsResponseDataRelationshipsEventDataType: {
2
+ readonly Event: "event";
3
+ };
4
+ export type RedeliverEventsResponseDataRelationshipsEventDataType = (typeof RedeliverEventsResponseDataRelationshipsEventDataType)[keyof typeof RedeliverEventsResponseDataRelationshipsEventDataType];
@@ -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
+ };
@@ -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,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,8 @@
1
+ import type * as Natural from "../../../index.js";
2
+ /**
3
+ * Related resource identifier.
4
+ */
5
+ export interface RedeliverEventsResponseDataRelationshipsWebhookData {
6
+ type: Natural.RedeliverEventsResponseDataRelationshipsWebhookDataType;
7
+ id: string;
8
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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,5 @@
1
+ /** Resource type */
2
+ export declare const RedeliverEventsResponseDataType: {
3
+ readonly Redelivery: "redelivery";
4
+ };
5
+ export type RedeliverEventsResponseDataType = (typeof RedeliverEventsResponseDataType)[keyof typeof RedeliverEventsResponseDataType];
@@ -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
+ };