@naturalpay/sdk 1.6.5 → 1.6.7

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 (342) hide show
  1. package/dist/cjs/BaseClient.js +2 -2
  2. package/dist/cjs/api/resources/customers/client/Client.d.ts +29 -0
  3. package/dist/cjs/api/resources/customers/client/Client.js +99 -0
  4. package/dist/cjs/api/resources/customers/client/requests/RemoveCustomersRequest.d.ts +12 -0
  5. package/dist/cjs/api/resources/customers/client/requests/RemoveCustomersRequest.js +3 -0
  6. package/dist/cjs/api/resources/customers/client/requests/index.d.ts +1 -0
  7. package/dist/cjs/api/resources/customers/types/RemoveCustomersResponse.d.ts +6 -0
  8. package/dist/cjs/api/resources/customers/types/RemoveCustomersResponse.js +3 -0
  9. package/dist/cjs/api/resources/customers/types/RemoveCustomersResponseData.d.ts +10 -0
  10. package/dist/cjs/api/resources/customers/types/RemoveCustomersResponseData.js +3 -0
  11. package/dist/cjs/api/resources/customers/types/RemoveCustomersResponseDataAttributes.d.ts +15 -0
  12. package/dist/cjs/api/resources/customers/types/RemoveCustomersResponseDataAttributes.js +3 -0
  13. package/dist/cjs/api/resources/customers/types/RemoveCustomersResponseDataAttributesAgentsItem.d.ts +15 -0
  14. package/dist/cjs/api/resources/customers/types/RemoveCustomersResponseDataAttributesAgentsItem.js +3 -0
  15. package/dist/cjs/api/resources/customers/types/RemoveCustomersResponseDataAttributesAgentsItemLimits.d.ts +8 -0
  16. package/dist/cjs/api/resources/customers/types/RemoveCustomersResponseDataAttributesAgentsItemLimits.js +3 -0
  17. package/dist/cjs/api/resources/customers/types/RemoveCustomersResponseDataAttributesDelegation.d.ts +16 -0
  18. package/dist/cjs/api/resources/customers/types/RemoveCustomersResponseDataAttributesDelegation.js +3 -0
  19. package/dist/cjs/api/resources/customers/types/RemoveCustomersResponseDataAttributesDelegationStatus.d.ts +8 -0
  20. package/dist/cjs/api/resources/customers/types/RemoveCustomersResponseDataAttributesDelegationStatus.js +11 -0
  21. package/dist/cjs/api/resources/customers/types/RemoveCustomersResponseDataType.d.ts +4 -0
  22. package/dist/cjs/api/resources/customers/types/RemoveCustomersResponseDataType.js +7 -0
  23. package/dist/cjs/api/resources/customers/types/RemoveCustomersResponseMeta.d.ts +4 -0
  24. package/dist/cjs/api/resources/customers/types/RemoveCustomersResponseMeta.js +3 -0
  25. package/dist/cjs/api/resources/customers/types/index.d.ts +9 -0
  26. package/dist/cjs/api/resources/customers/types/index.js +9 -0
  27. package/dist/cjs/api/resources/paymentRequests/client/Client.js +5 -2
  28. package/dist/cjs/api/resources/paymentRequests/client/requests/ListIncomingPaymentRequestsRequest.d.ts +1 -0
  29. package/dist/cjs/api/resources/paymentRequests/client/requests/ListPaymentRequestsRequest.d.ts +2 -0
  30. package/dist/cjs/api/resources/paymentRequests/types/CreatePaymentRequestsResponseDataRelationshipsPayerAgent.d.ts +8 -0
  31. package/dist/cjs/api/resources/paymentRequests/types/CreatePaymentRequestsResponseDataRelationshipsPayerAgent.js +3 -0
  32. package/dist/cjs/api/resources/paymentRequests/types/CreatePaymentRequestsResponseDataRelationshipsPayerAgentData.d.ts +8 -0
  33. package/dist/cjs/api/resources/paymentRequests/types/CreatePaymentRequestsResponseDataRelationshipsPayerAgentData.js +3 -0
  34. package/dist/cjs/api/resources/paymentRequests/types/CreatePaymentRequestsResponseDataRelationshipsPayerAgentDataType.d.ts +4 -0
  35. package/dist/cjs/api/resources/paymentRequests/types/CreatePaymentRequestsResponseDataRelationshipsPayerAgentDataType.js +7 -0
  36. package/dist/cjs/api/resources/paymentRequests/types/NewPayReqRels.d.ts +2 -0
  37. package/dist/cjs/api/resources/paymentRequests/types/index.d.ts +3 -0
  38. package/dist/cjs/api/resources/paymentRequests/types/index.js +3 -0
  39. package/dist/cjs/api/resources/simulations/client/Client.d.ts +30 -0
  40. package/dist/cjs/api/resources/simulations/client/Client.js +102 -0
  41. package/dist/cjs/api/resources/simulations/client/requests/DisconnectCustomerSimulationsRequest.d.ts +12 -0
  42. package/dist/cjs/api/resources/simulations/client/requests/DisconnectCustomerSimulationsRequest.js +3 -0
  43. package/dist/cjs/api/resources/simulations/client/requests/index.d.ts +1 -0
  44. package/dist/cjs/api/resources/simulations/types/DisconnectCustomerSimulationsResponse.d.ts +6 -0
  45. package/dist/cjs/api/resources/simulations/types/DisconnectCustomerSimulationsResponse.js +3 -0
  46. package/dist/cjs/api/resources/simulations/types/DisconnectCustomerSimulationsResponseData.d.ts +10 -0
  47. package/dist/cjs/api/resources/simulations/types/DisconnectCustomerSimulationsResponseData.js +3 -0
  48. package/dist/cjs/api/resources/simulations/types/DisconnectCustomerSimulationsResponseDataAttributes.d.ts +15 -0
  49. package/dist/cjs/api/resources/simulations/types/DisconnectCustomerSimulationsResponseDataAttributes.js +3 -0
  50. package/dist/cjs/api/resources/simulations/types/DisconnectCustomerSimulationsResponseDataAttributesAgentsItem.d.ts +15 -0
  51. package/dist/cjs/api/resources/simulations/types/DisconnectCustomerSimulationsResponseDataAttributesAgentsItem.js +3 -0
  52. package/dist/cjs/api/resources/simulations/types/DisconnectCustomerSimulationsResponseDataAttributesAgentsItemLimits.d.ts +8 -0
  53. package/dist/cjs/api/resources/simulations/types/DisconnectCustomerSimulationsResponseDataAttributesAgentsItemLimits.js +3 -0
  54. package/dist/cjs/api/resources/simulations/types/DisconnectCustomerSimulationsResponseDataAttributesDelegation.d.ts +16 -0
  55. package/dist/cjs/api/resources/simulations/types/DisconnectCustomerSimulationsResponseDataAttributesDelegation.js +3 -0
  56. package/dist/cjs/api/resources/simulations/types/DisconnectCustomerSimulationsResponseDataAttributesDelegationStatus.d.ts +8 -0
  57. package/dist/cjs/api/resources/simulations/types/DisconnectCustomerSimulationsResponseDataAttributesDelegationStatus.js +11 -0
  58. package/dist/cjs/api/resources/simulations/types/DisconnectCustomerSimulationsResponseDataType.d.ts +4 -0
  59. package/dist/cjs/api/resources/simulations/types/DisconnectCustomerSimulationsResponseDataType.js +7 -0
  60. package/dist/cjs/api/resources/simulations/types/DisconnectCustomerSimulationsResponseMeta.d.ts +4 -0
  61. package/dist/cjs/api/resources/simulations/types/DisconnectCustomerSimulationsResponseMeta.js +3 -0
  62. package/dist/cjs/api/resources/simulations/types/index.d.ts +9 -0
  63. package/dist/cjs/api/resources/simulations/types/index.js +9 -0
  64. package/dist/cjs/api/resources/webhooks/client/Client.d.ts +2 -0
  65. package/dist/cjs/api/resources/webhooks/client/Client.js +2 -0
  66. package/dist/cjs/api/resources/webhooks/client/requests/NewWebhookParams.d.ts +3 -0
  67. package/dist/cjs/api/resources/webhooks/client/requests/UpdWebhookParams.d.ts +3 -0
  68. package/dist/cjs/api/resources/webhooks/types/CreateWebhooksRequestSourcesItem.d.ts +5 -0
  69. package/dist/cjs/api/resources/webhooks/types/CreateWebhooksRequestSourcesItem.js +8 -0
  70. package/dist/cjs/api/resources/webhooks/types/CreateWebhooksResponseDataAttributesSourcesItem.d.ts +5 -0
  71. package/dist/cjs/api/resources/webhooks/types/CreateWebhooksResponseDataAttributesSourcesItem.js +8 -0
  72. package/dist/cjs/api/resources/webhooks/types/DelWebhookAttrs.d.ts +2 -0
  73. package/dist/cjs/api/resources/webhooks/types/GetWebhooksResponseDataAttributesSourcesItem.d.ts +5 -0
  74. package/dist/cjs/api/resources/webhooks/types/GetWebhooksResponseDataAttributesSourcesItem.js +8 -0
  75. package/dist/cjs/api/resources/webhooks/types/ListWebhooksResponseDataItemAttributesSourcesItem.d.ts +5 -0
  76. package/dist/cjs/api/resources/webhooks/types/ListWebhooksResponseDataItemAttributesSourcesItem.js +8 -0
  77. package/dist/cjs/api/resources/webhooks/types/NewWebhookAttrs.d.ts +2 -0
  78. package/dist/cjs/api/resources/webhooks/types/RemoveWebhooksResponseDataAttributesSourcesItem.d.ts +5 -0
  79. package/dist/cjs/api/resources/webhooks/types/RemoveWebhooksResponseDataAttributesSourcesItem.js +8 -0
  80. package/dist/cjs/api/resources/webhooks/types/UpdWebhookAttrs.d.ts +2 -0
  81. package/dist/cjs/api/resources/webhooks/types/UpdateWebhooksRequestSourcesItem.d.ts +5 -0
  82. package/dist/cjs/api/resources/webhooks/types/UpdateWebhooksRequestSourcesItem.js +8 -0
  83. package/dist/cjs/api/resources/webhooks/types/UpdateWebhooksResponseDataAttributesSourcesItem.d.ts +5 -0
  84. package/dist/cjs/api/resources/webhooks/types/UpdateWebhooksResponseDataAttributesSourcesItem.js +8 -0
  85. package/dist/cjs/api/resources/webhooks/types/WebhookAttrs.d.ts +2 -0
  86. package/dist/cjs/api/resources/webhooks/types/WebhookDetailAttrs.d.ts +2 -0
  87. package/dist/cjs/api/resources/webhooks/types/index.d.ts +7 -0
  88. package/dist/cjs/api/resources/webhooks/types/index.js +7 -0
  89. package/dist/cjs/serialization/resources/customers/types/RemoveCustomersResponse.d.ts +12 -0
  90. package/dist/cjs/serialization/resources/customers/types/RemoveCustomersResponse.js +44 -0
  91. package/dist/cjs/serialization/resources/customers/types/RemoveCustomersResponseData.d.ts +13 -0
  92. package/dist/cjs/serialization/resources/customers/types/RemoveCustomersResponseData.js +45 -0
  93. package/dist/cjs/serialization/resources/customers/types/RemoveCustomersResponseDataAttributes.d.ts +16 -0
  94. package/dist/cjs/serialization/resources/customers/types/RemoveCustomersResponseDataAttributes.js +48 -0
  95. package/dist/cjs/serialization/resources/customers/types/RemoveCustomersResponseDataAttributesAgentsItem.d.ts +15 -0
  96. package/dist/cjs/serialization/resources/customers/types/RemoveCustomersResponseDataAttributesAgentsItem.js +47 -0
  97. package/dist/cjs/serialization/resources/customers/types/RemoveCustomersResponseDataAttributesAgentsItemLimits.d.ts +11 -0
  98. package/dist/cjs/serialization/resources/customers/types/RemoveCustomersResponseDataAttributesAgentsItemLimits.js +43 -0
  99. package/dist/cjs/serialization/resources/customers/types/RemoveCustomersResponseDataAttributesDelegation.d.ts +14 -0
  100. package/dist/cjs/serialization/resources/customers/types/RemoveCustomersResponseDataAttributesDelegation.js +46 -0
  101. package/dist/cjs/serialization/resources/customers/types/RemoveCustomersResponseDataAttributesDelegationStatus.d.ts +7 -0
  102. package/dist/cjs/serialization/resources/customers/types/RemoveCustomersResponseDataAttributesDelegationStatus.js +39 -0
  103. package/dist/cjs/serialization/resources/customers/types/RemoveCustomersResponseDataType.d.ts +7 -0
  104. package/dist/cjs/serialization/resources/customers/types/RemoveCustomersResponseDataType.js +39 -0
  105. package/dist/cjs/serialization/resources/customers/types/RemoveCustomersResponseMeta.d.ts +9 -0
  106. package/dist/cjs/serialization/resources/customers/types/RemoveCustomersResponseMeta.js +41 -0
  107. package/dist/cjs/serialization/resources/customers/types/index.d.ts +9 -0
  108. package/dist/cjs/serialization/resources/customers/types/index.js +9 -0
  109. package/dist/cjs/serialization/resources/paymentRequests/types/CreatePaymentRequestsResponseDataRelationshipsPayerAgent.d.ts +10 -0
  110. package/dist/cjs/serialization/resources/paymentRequests/types/CreatePaymentRequestsResponseDataRelationshipsPayerAgent.js +42 -0
  111. package/dist/cjs/serialization/resources/paymentRequests/types/CreatePaymentRequestsResponseDataRelationshipsPayerAgentData.d.ts +11 -0
  112. package/dist/cjs/serialization/resources/paymentRequests/types/CreatePaymentRequestsResponseDataRelationshipsPayerAgentData.js +43 -0
  113. package/dist/cjs/serialization/resources/paymentRequests/types/CreatePaymentRequestsResponseDataRelationshipsPayerAgentDataType.d.ts +7 -0
  114. package/dist/cjs/serialization/resources/paymentRequests/types/CreatePaymentRequestsResponseDataRelationshipsPayerAgentDataType.js +39 -0
  115. package/dist/cjs/serialization/resources/paymentRequests/types/NewPayReqRels.d.ts +2 -0
  116. package/dist/cjs/serialization/resources/paymentRequests/types/NewPayReqRels.js +2 -0
  117. package/dist/cjs/serialization/resources/paymentRequests/types/index.d.ts +3 -0
  118. package/dist/cjs/serialization/resources/paymentRequests/types/index.js +3 -0
  119. package/dist/cjs/serialization/resources/simulations/types/DisconnectCustomerSimulationsResponse.d.ts +12 -0
  120. package/dist/cjs/serialization/resources/simulations/types/DisconnectCustomerSimulationsResponse.js +44 -0
  121. package/dist/cjs/serialization/resources/simulations/types/DisconnectCustomerSimulationsResponseData.d.ts +13 -0
  122. package/dist/cjs/serialization/resources/simulations/types/DisconnectCustomerSimulationsResponseData.js +45 -0
  123. package/dist/cjs/serialization/resources/simulations/types/DisconnectCustomerSimulationsResponseDataAttributes.d.ts +16 -0
  124. package/dist/cjs/serialization/resources/simulations/types/DisconnectCustomerSimulationsResponseDataAttributes.js +48 -0
  125. package/dist/cjs/serialization/resources/simulations/types/DisconnectCustomerSimulationsResponseDataAttributesAgentsItem.d.ts +15 -0
  126. package/dist/cjs/serialization/resources/simulations/types/DisconnectCustomerSimulationsResponseDataAttributesAgentsItem.js +47 -0
  127. package/dist/cjs/serialization/resources/simulations/types/DisconnectCustomerSimulationsResponseDataAttributesAgentsItemLimits.d.ts +11 -0
  128. package/dist/cjs/serialization/resources/simulations/types/DisconnectCustomerSimulationsResponseDataAttributesAgentsItemLimits.js +43 -0
  129. package/dist/cjs/serialization/resources/simulations/types/DisconnectCustomerSimulationsResponseDataAttributesDelegation.d.ts +14 -0
  130. package/dist/cjs/serialization/resources/simulations/types/DisconnectCustomerSimulationsResponseDataAttributesDelegation.js +46 -0
  131. package/dist/cjs/serialization/resources/simulations/types/DisconnectCustomerSimulationsResponseDataAttributesDelegationStatus.d.ts +7 -0
  132. package/dist/cjs/serialization/resources/simulations/types/DisconnectCustomerSimulationsResponseDataAttributesDelegationStatus.js +39 -0
  133. package/dist/cjs/serialization/resources/simulations/types/DisconnectCustomerSimulationsResponseDataType.d.ts +7 -0
  134. package/dist/cjs/serialization/resources/simulations/types/DisconnectCustomerSimulationsResponseDataType.js +39 -0
  135. package/dist/cjs/serialization/resources/simulations/types/DisconnectCustomerSimulationsResponseMeta.d.ts +9 -0
  136. package/dist/cjs/serialization/resources/simulations/types/DisconnectCustomerSimulationsResponseMeta.js +41 -0
  137. package/dist/cjs/serialization/resources/simulations/types/index.d.ts +9 -0
  138. package/dist/cjs/serialization/resources/simulations/types/index.js +9 -0
  139. package/dist/cjs/serialization/resources/webhooks/client/requests/NewWebhookParams.d.ts +2 -0
  140. package/dist/cjs/serialization/resources/webhooks/client/requests/NewWebhookParams.js +2 -0
  141. package/dist/cjs/serialization/resources/webhooks/client/requests/UpdWebhookParams.d.ts +2 -0
  142. package/dist/cjs/serialization/resources/webhooks/client/requests/UpdWebhookParams.js +2 -0
  143. package/dist/cjs/serialization/resources/webhooks/types/CreateWebhooksRequestSourcesItem.d.ts +7 -0
  144. package/dist/cjs/serialization/resources/webhooks/types/CreateWebhooksRequestSourcesItem.js +39 -0
  145. package/dist/cjs/serialization/resources/webhooks/types/CreateWebhooksResponseDataAttributesSourcesItem.d.ts +7 -0
  146. package/dist/cjs/serialization/resources/webhooks/types/CreateWebhooksResponseDataAttributesSourcesItem.js +39 -0
  147. package/dist/cjs/serialization/resources/webhooks/types/DelWebhookAttrs.d.ts +2 -0
  148. package/dist/cjs/serialization/resources/webhooks/types/DelWebhookAttrs.js +2 -0
  149. package/dist/cjs/serialization/resources/webhooks/types/GetWebhooksResponseDataAttributesSourcesItem.d.ts +7 -0
  150. package/dist/cjs/serialization/resources/webhooks/types/GetWebhooksResponseDataAttributesSourcesItem.js +39 -0
  151. package/dist/cjs/serialization/resources/webhooks/types/ListWebhooksResponseDataItemAttributesSourcesItem.d.ts +7 -0
  152. package/dist/cjs/serialization/resources/webhooks/types/ListWebhooksResponseDataItemAttributesSourcesItem.js +39 -0
  153. package/dist/cjs/serialization/resources/webhooks/types/NewWebhookAttrs.d.ts +2 -0
  154. package/dist/cjs/serialization/resources/webhooks/types/NewWebhookAttrs.js +2 -0
  155. package/dist/cjs/serialization/resources/webhooks/types/RemoveWebhooksResponseDataAttributesSourcesItem.d.ts +7 -0
  156. package/dist/cjs/serialization/resources/webhooks/types/RemoveWebhooksResponseDataAttributesSourcesItem.js +39 -0
  157. package/dist/cjs/serialization/resources/webhooks/types/UpdWebhookAttrs.d.ts +2 -0
  158. package/dist/cjs/serialization/resources/webhooks/types/UpdWebhookAttrs.js +2 -0
  159. package/dist/cjs/serialization/resources/webhooks/types/UpdateWebhooksRequestSourcesItem.d.ts +7 -0
  160. package/dist/cjs/serialization/resources/webhooks/types/UpdateWebhooksRequestSourcesItem.js +39 -0
  161. package/dist/cjs/serialization/resources/webhooks/types/UpdateWebhooksResponseDataAttributesSourcesItem.d.ts +7 -0
  162. package/dist/cjs/serialization/resources/webhooks/types/UpdateWebhooksResponseDataAttributesSourcesItem.js +39 -0
  163. package/dist/cjs/serialization/resources/webhooks/types/WebhookAttrs.d.ts +2 -0
  164. package/dist/cjs/serialization/resources/webhooks/types/WebhookAttrs.js +2 -0
  165. package/dist/cjs/serialization/resources/webhooks/types/WebhookDetailAttrs.d.ts +2 -0
  166. package/dist/cjs/serialization/resources/webhooks/types/WebhookDetailAttrs.js +2 -0
  167. package/dist/cjs/serialization/resources/webhooks/types/index.d.ts +7 -0
  168. package/dist/cjs/serialization/resources/webhooks/types/index.js +7 -0
  169. package/dist/cjs/version.d.ts +1 -1
  170. package/dist/cjs/version.js +1 -1
  171. package/dist/esm/BaseClient.mjs +2 -2
  172. package/dist/esm/api/resources/customers/client/Client.d.mts +29 -0
  173. package/dist/esm/api/resources/customers/client/Client.mjs +99 -0
  174. package/dist/esm/api/resources/customers/client/requests/RemoveCustomersRequest.d.mts +12 -0
  175. package/dist/esm/api/resources/customers/client/requests/RemoveCustomersRequest.mjs +2 -0
  176. package/dist/esm/api/resources/customers/client/requests/index.d.mts +1 -0
  177. package/dist/esm/api/resources/customers/types/RemoveCustomersResponse.d.mts +6 -0
  178. package/dist/esm/api/resources/customers/types/RemoveCustomersResponse.mjs +2 -0
  179. package/dist/esm/api/resources/customers/types/RemoveCustomersResponseData.d.mts +10 -0
  180. package/dist/esm/api/resources/customers/types/RemoveCustomersResponseData.mjs +2 -0
  181. package/dist/esm/api/resources/customers/types/RemoveCustomersResponseDataAttributes.d.mts +15 -0
  182. package/dist/esm/api/resources/customers/types/RemoveCustomersResponseDataAttributes.mjs +2 -0
  183. package/dist/esm/api/resources/customers/types/RemoveCustomersResponseDataAttributesAgentsItem.d.mts +15 -0
  184. package/dist/esm/api/resources/customers/types/RemoveCustomersResponseDataAttributesAgentsItem.mjs +2 -0
  185. package/dist/esm/api/resources/customers/types/RemoveCustomersResponseDataAttributesAgentsItemLimits.d.mts +8 -0
  186. package/dist/esm/api/resources/customers/types/RemoveCustomersResponseDataAttributesAgentsItemLimits.mjs +2 -0
  187. package/dist/esm/api/resources/customers/types/RemoveCustomersResponseDataAttributesDelegation.d.mts +16 -0
  188. package/dist/esm/api/resources/customers/types/RemoveCustomersResponseDataAttributesDelegation.mjs +2 -0
  189. package/dist/esm/api/resources/customers/types/RemoveCustomersResponseDataAttributesDelegationStatus.d.mts +8 -0
  190. package/dist/esm/api/resources/customers/types/RemoveCustomersResponseDataAttributesDelegationStatus.mjs +8 -0
  191. package/dist/esm/api/resources/customers/types/RemoveCustomersResponseDataType.d.mts +4 -0
  192. package/dist/esm/api/resources/customers/types/RemoveCustomersResponseDataType.mjs +4 -0
  193. package/dist/esm/api/resources/customers/types/RemoveCustomersResponseMeta.d.mts +4 -0
  194. package/dist/esm/api/resources/customers/types/RemoveCustomersResponseMeta.mjs +2 -0
  195. package/dist/esm/api/resources/customers/types/index.d.mts +9 -0
  196. package/dist/esm/api/resources/customers/types/index.mjs +9 -0
  197. package/dist/esm/api/resources/paymentRequests/client/Client.mjs +5 -2
  198. package/dist/esm/api/resources/paymentRequests/client/requests/ListIncomingPaymentRequestsRequest.d.mts +1 -0
  199. package/dist/esm/api/resources/paymentRequests/client/requests/ListPaymentRequestsRequest.d.mts +2 -0
  200. package/dist/esm/api/resources/paymentRequests/types/CreatePaymentRequestsResponseDataRelationshipsPayerAgent.d.mts +8 -0
  201. package/dist/esm/api/resources/paymentRequests/types/CreatePaymentRequestsResponseDataRelationshipsPayerAgent.mjs +2 -0
  202. package/dist/esm/api/resources/paymentRequests/types/CreatePaymentRequestsResponseDataRelationshipsPayerAgentData.d.mts +8 -0
  203. package/dist/esm/api/resources/paymentRequests/types/CreatePaymentRequestsResponseDataRelationshipsPayerAgentData.mjs +2 -0
  204. package/dist/esm/api/resources/paymentRequests/types/CreatePaymentRequestsResponseDataRelationshipsPayerAgentDataType.d.mts +4 -0
  205. package/dist/esm/api/resources/paymentRequests/types/CreatePaymentRequestsResponseDataRelationshipsPayerAgentDataType.mjs +4 -0
  206. package/dist/esm/api/resources/paymentRequests/types/NewPayReqRels.d.mts +2 -0
  207. package/dist/esm/api/resources/paymentRequests/types/index.d.mts +3 -0
  208. package/dist/esm/api/resources/paymentRequests/types/index.mjs +3 -0
  209. package/dist/esm/api/resources/simulations/client/Client.d.mts +30 -0
  210. package/dist/esm/api/resources/simulations/client/Client.mjs +102 -0
  211. package/dist/esm/api/resources/simulations/client/requests/DisconnectCustomerSimulationsRequest.d.mts +12 -0
  212. package/dist/esm/api/resources/simulations/client/requests/DisconnectCustomerSimulationsRequest.mjs +2 -0
  213. package/dist/esm/api/resources/simulations/client/requests/index.d.mts +1 -0
  214. package/dist/esm/api/resources/simulations/types/DisconnectCustomerSimulationsResponse.d.mts +6 -0
  215. package/dist/esm/api/resources/simulations/types/DisconnectCustomerSimulationsResponse.mjs +2 -0
  216. package/dist/esm/api/resources/simulations/types/DisconnectCustomerSimulationsResponseData.d.mts +10 -0
  217. package/dist/esm/api/resources/simulations/types/DisconnectCustomerSimulationsResponseData.mjs +2 -0
  218. package/dist/esm/api/resources/simulations/types/DisconnectCustomerSimulationsResponseDataAttributes.d.mts +15 -0
  219. package/dist/esm/api/resources/simulations/types/DisconnectCustomerSimulationsResponseDataAttributes.mjs +2 -0
  220. package/dist/esm/api/resources/simulations/types/DisconnectCustomerSimulationsResponseDataAttributesAgentsItem.d.mts +15 -0
  221. package/dist/esm/api/resources/simulations/types/DisconnectCustomerSimulationsResponseDataAttributesAgentsItem.mjs +2 -0
  222. package/dist/esm/api/resources/simulations/types/DisconnectCustomerSimulationsResponseDataAttributesAgentsItemLimits.d.mts +8 -0
  223. package/dist/esm/api/resources/simulations/types/DisconnectCustomerSimulationsResponseDataAttributesAgentsItemLimits.mjs +2 -0
  224. package/dist/esm/api/resources/simulations/types/DisconnectCustomerSimulationsResponseDataAttributesDelegation.d.mts +16 -0
  225. package/dist/esm/api/resources/simulations/types/DisconnectCustomerSimulationsResponseDataAttributesDelegation.mjs +2 -0
  226. package/dist/esm/api/resources/simulations/types/DisconnectCustomerSimulationsResponseDataAttributesDelegationStatus.d.mts +8 -0
  227. package/dist/esm/api/resources/simulations/types/DisconnectCustomerSimulationsResponseDataAttributesDelegationStatus.mjs +8 -0
  228. package/dist/esm/api/resources/simulations/types/DisconnectCustomerSimulationsResponseDataType.d.mts +4 -0
  229. package/dist/esm/api/resources/simulations/types/DisconnectCustomerSimulationsResponseDataType.mjs +4 -0
  230. package/dist/esm/api/resources/simulations/types/DisconnectCustomerSimulationsResponseMeta.d.mts +4 -0
  231. package/dist/esm/api/resources/simulations/types/DisconnectCustomerSimulationsResponseMeta.mjs +2 -0
  232. package/dist/esm/api/resources/simulations/types/index.d.mts +9 -0
  233. package/dist/esm/api/resources/simulations/types/index.mjs +9 -0
  234. package/dist/esm/api/resources/webhooks/client/Client.d.mts +2 -0
  235. package/dist/esm/api/resources/webhooks/client/Client.mjs +2 -0
  236. package/dist/esm/api/resources/webhooks/client/requests/NewWebhookParams.d.mts +3 -0
  237. package/dist/esm/api/resources/webhooks/client/requests/UpdWebhookParams.d.mts +3 -0
  238. package/dist/esm/api/resources/webhooks/types/CreateWebhooksRequestSourcesItem.d.mts +5 -0
  239. package/dist/esm/api/resources/webhooks/types/CreateWebhooksRequestSourcesItem.mjs +5 -0
  240. package/dist/esm/api/resources/webhooks/types/CreateWebhooksResponseDataAttributesSourcesItem.d.mts +5 -0
  241. package/dist/esm/api/resources/webhooks/types/CreateWebhooksResponseDataAttributesSourcesItem.mjs +5 -0
  242. package/dist/esm/api/resources/webhooks/types/DelWebhookAttrs.d.mts +2 -0
  243. package/dist/esm/api/resources/webhooks/types/GetWebhooksResponseDataAttributesSourcesItem.d.mts +5 -0
  244. package/dist/esm/api/resources/webhooks/types/GetWebhooksResponseDataAttributesSourcesItem.mjs +5 -0
  245. package/dist/esm/api/resources/webhooks/types/ListWebhooksResponseDataItemAttributesSourcesItem.d.mts +5 -0
  246. package/dist/esm/api/resources/webhooks/types/ListWebhooksResponseDataItemAttributesSourcesItem.mjs +5 -0
  247. package/dist/esm/api/resources/webhooks/types/NewWebhookAttrs.d.mts +2 -0
  248. package/dist/esm/api/resources/webhooks/types/RemoveWebhooksResponseDataAttributesSourcesItem.d.mts +5 -0
  249. package/dist/esm/api/resources/webhooks/types/RemoveWebhooksResponseDataAttributesSourcesItem.mjs +5 -0
  250. package/dist/esm/api/resources/webhooks/types/UpdWebhookAttrs.d.mts +2 -0
  251. package/dist/esm/api/resources/webhooks/types/UpdateWebhooksRequestSourcesItem.d.mts +5 -0
  252. package/dist/esm/api/resources/webhooks/types/UpdateWebhooksRequestSourcesItem.mjs +5 -0
  253. package/dist/esm/api/resources/webhooks/types/UpdateWebhooksResponseDataAttributesSourcesItem.d.mts +5 -0
  254. package/dist/esm/api/resources/webhooks/types/UpdateWebhooksResponseDataAttributesSourcesItem.mjs +5 -0
  255. package/dist/esm/api/resources/webhooks/types/WebhookAttrs.d.mts +2 -0
  256. package/dist/esm/api/resources/webhooks/types/WebhookDetailAttrs.d.mts +2 -0
  257. package/dist/esm/api/resources/webhooks/types/index.d.mts +7 -0
  258. package/dist/esm/api/resources/webhooks/types/index.mjs +7 -0
  259. package/dist/esm/serialization/resources/customers/types/RemoveCustomersResponse.d.mts +12 -0
  260. package/dist/esm/serialization/resources/customers/types/RemoveCustomersResponse.mjs +8 -0
  261. package/dist/esm/serialization/resources/customers/types/RemoveCustomersResponseData.d.mts +13 -0
  262. package/dist/esm/serialization/resources/customers/types/RemoveCustomersResponseData.mjs +9 -0
  263. package/dist/esm/serialization/resources/customers/types/RemoveCustomersResponseDataAttributes.d.mts +16 -0
  264. package/dist/esm/serialization/resources/customers/types/RemoveCustomersResponseDataAttributes.mjs +12 -0
  265. package/dist/esm/serialization/resources/customers/types/RemoveCustomersResponseDataAttributesAgentsItem.d.mts +15 -0
  266. package/dist/esm/serialization/resources/customers/types/RemoveCustomersResponseDataAttributesAgentsItem.mjs +11 -0
  267. package/dist/esm/serialization/resources/customers/types/RemoveCustomersResponseDataAttributesAgentsItemLimits.d.mts +11 -0
  268. package/dist/esm/serialization/resources/customers/types/RemoveCustomersResponseDataAttributesAgentsItemLimits.mjs +7 -0
  269. package/dist/esm/serialization/resources/customers/types/RemoveCustomersResponseDataAttributesDelegation.d.mts +14 -0
  270. package/dist/esm/serialization/resources/customers/types/RemoveCustomersResponseDataAttributesDelegation.mjs +10 -0
  271. package/dist/esm/serialization/resources/customers/types/RemoveCustomersResponseDataAttributesDelegationStatus.d.mts +7 -0
  272. package/dist/esm/serialization/resources/customers/types/RemoveCustomersResponseDataAttributesDelegationStatus.mjs +3 -0
  273. package/dist/esm/serialization/resources/customers/types/RemoveCustomersResponseDataType.d.mts +7 -0
  274. package/dist/esm/serialization/resources/customers/types/RemoveCustomersResponseDataType.mjs +3 -0
  275. package/dist/esm/serialization/resources/customers/types/RemoveCustomersResponseMeta.d.mts +9 -0
  276. package/dist/esm/serialization/resources/customers/types/RemoveCustomersResponseMeta.mjs +5 -0
  277. package/dist/esm/serialization/resources/customers/types/index.d.mts +9 -0
  278. package/dist/esm/serialization/resources/customers/types/index.mjs +9 -0
  279. package/dist/esm/serialization/resources/paymentRequests/types/CreatePaymentRequestsResponseDataRelationshipsPayerAgent.d.mts +10 -0
  280. package/dist/esm/serialization/resources/paymentRequests/types/CreatePaymentRequestsResponseDataRelationshipsPayerAgent.mjs +6 -0
  281. package/dist/esm/serialization/resources/paymentRequests/types/CreatePaymentRequestsResponseDataRelationshipsPayerAgentData.d.mts +11 -0
  282. package/dist/esm/serialization/resources/paymentRequests/types/CreatePaymentRequestsResponseDataRelationshipsPayerAgentData.mjs +7 -0
  283. package/dist/esm/serialization/resources/paymentRequests/types/CreatePaymentRequestsResponseDataRelationshipsPayerAgentDataType.d.mts +7 -0
  284. package/dist/esm/serialization/resources/paymentRequests/types/CreatePaymentRequestsResponseDataRelationshipsPayerAgentDataType.mjs +3 -0
  285. package/dist/esm/serialization/resources/paymentRequests/types/NewPayReqRels.d.mts +2 -0
  286. package/dist/esm/serialization/resources/paymentRequests/types/NewPayReqRels.mjs +2 -0
  287. package/dist/esm/serialization/resources/paymentRequests/types/index.d.mts +3 -0
  288. package/dist/esm/serialization/resources/paymentRequests/types/index.mjs +3 -0
  289. package/dist/esm/serialization/resources/simulations/types/DisconnectCustomerSimulationsResponse.d.mts +12 -0
  290. package/dist/esm/serialization/resources/simulations/types/DisconnectCustomerSimulationsResponse.mjs +8 -0
  291. package/dist/esm/serialization/resources/simulations/types/DisconnectCustomerSimulationsResponseData.d.mts +13 -0
  292. package/dist/esm/serialization/resources/simulations/types/DisconnectCustomerSimulationsResponseData.mjs +9 -0
  293. package/dist/esm/serialization/resources/simulations/types/DisconnectCustomerSimulationsResponseDataAttributes.d.mts +16 -0
  294. package/dist/esm/serialization/resources/simulations/types/DisconnectCustomerSimulationsResponseDataAttributes.mjs +12 -0
  295. package/dist/esm/serialization/resources/simulations/types/DisconnectCustomerSimulationsResponseDataAttributesAgentsItem.d.mts +15 -0
  296. package/dist/esm/serialization/resources/simulations/types/DisconnectCustomerSimulationsResponseDataAttributesAgentsItem.mjs +11 -0
  297. package/dist/esm/serialization/resources/simulations/types/DisconnectCustomerSimulationsResponseDataAttributesAgentsItemLimits.d.mts +11 -0
  298. package/dist/esm/serialization/resources/simulations/types/DisconnectCustomerSimulationsResponseDataAttributesAgentsItemLimits.mjs +7 -0
  299. package/dist/esm/serialization/resources/simulations/types/DisconnectCustomerSimulationsResponseDataAttributesDelegation.d.mts +14 -0
  300. package/dist/esm/serialization/resources/simulations/types/DisconnectCustomerSimulationsResponseDataAttributesDelegation.mjs +10 -0
  301. package/dist/esm/serialization/resources/simulations/types/DisconnectCustomerSimulationsResponseDataAttributesDelegationStatus.d.mts +7 -0
  302. package/dist/esm/serialization/resources/simulations/types/DisconnectCustomerSimulationsResponseDataAttributesDelegationStatus.mjs +3 -0
  303. package/dist/esm/serialization/resources/simulations/types/DisconnectCustomerSimulationsResponseDataType.d.mts +7 -0
  304. package/dist/esm/serialization/resources/simulations/types/DisconnectCustomerSimulationsResponseDataType.mjs +3 -0
  305. package/dist/esm/serialization/resources/simulations/types/DisconnectCustomerSimulationsResponseMeta.d.mts +9 -0
  306. package/dist/esm/serialization/resources/simulations/types/DisconnectCustomerSimulationsResponseMeta.mjs +5 -0
  307. package/dist/esm/serialization/resources/simulations/types/index.d.mts +9 -0
  308. package/dist/esm/serialization/resources/simulations/types/index.mjs +9 -0
  309. package/dist/esm/serialization/resources/webhooks/client/requests/NewWebhookParams.d.mts +2 -0
  310. package/dist/esm/serialization/resources/webhooks/client/requests/NewWebhookParams.mjs +2 -0
  311. package/dist/esm/serialization/resources/webhooks/client/requests/UpdWebhookParams.d.mts +2 -0
  312. package/dist/esm/serialization/resources/webhooks/client/requests/UpdWebhookParams.mjs +2 -0
  313. package/dist/esm/serialization/resources/webhooks/types/CreateWebhooksRequestSourcesItem.d.mts +7 -0
  314. package/dist/esm/serialization/resources/webhooks/types/CreateWebhooksRequestSourcesItem.mjs +3 -0
  315. package/dist/esm/serialization/resources/webhooks/types/CreateWebhooksResponseDataAttributesSourcesItem.d.mts +7 -0
  316. package/dist/esm/serialization/resources/webhooks/types/CreateWebhooksResponseDataAttributesSourcesItem.mjs +3 -0
  317. package/dist/esm/serialization/resources/webhooks/types/DelWebhookAttrs.d.mts +2 -0
  318. package/dist/esm/serialization/resources/webhooks/types/DelWebhookAttrs.mjs +2 -0
  319. package/dist/esm/serialization/resources/webhooks/types/GetWebhooksResponseDataAttributesSourcesItem.d.mts +7 -0
  320. package/dist/esm/serialization/resources/webhooks/types/GetWebhooksResponseDataAttributesSourcesItem.mjs +3 -0
  321. package/dist/esm/serialization/resources/webhooks/types/ListWebhooksResponseDataItemAttributesSourcesItem.d.mts +7 -0
  322. package/dist/esm/serialization/resources/webhooks/types/ListWebhooksResponseDataItemAttributesSourcesItem.mjs +3 -0
  323. package/dist/esm/serialization/resources/webhooks/types/NewWebhookAttrs.d.mts +2 -0
  324. package/dist/esm/serialization/resources/webhooks/types/NewWebhookAttrs.mjs +2 -0
  325. package/dist/esm/serialization/resources/webhooks/types/RemoveWebhooksResponseDataAttributesSourcesItem.d.mts +7 -0
  326. package/dist/esm/serialization/resources/webhooks/types/RemoveWebhooksResponseDataAttributesSourcesItem.mjs +3 -0
  327. package/dist/esm/serialization/resources/webhooks/types/UpdWebhookAttrs.d.mts +2 -0
  328. package/dist/esm/serialization/resources/webhooks/types/UpdWebhookAttrs.mjs +2 -0
  329. package/dist/esm/serialization/resources/webhooks/types/UpdateWebhooksRequestSourcesItem.d.mts +7 -0
  330. package/dist/esm/serialization/resources/webhooks/types/UpdateWebhooksRequestSourcesItem.mjs +3 -0
  331. package/dist/esm/serialization/resources/webhooks/types/UpdateWebhooksResponseDataAttributesSourcesItem.d.mts +7 -0
  332. package/dist/esm/serialization/resources/webhooks/types/UpdateWebhooksResponseDataAttributesSourcesItem.mjs +3 -0
  333. package/dist/esm/serialization/resources/webhooks/types/WebhookAttrs.d.mts +2 -0
  334. package/dist/esm/serialization/resources/webhooks/types/WebhookAttrs.mjs +2 -0
  335. package/dist/esm/serialization/resources/webhooks/types/WebhookDetailAttrs.d.mts +2 -0
  336. package/dist/esm/serialization/resources/webhooks/types/WebhookDetailAttrs.mjs +2 -0
  337. package/dist/esm/serialization/resources/webhooks/types/index.d.mts +7 -0
  338. package/dist/esm/serialization/resources/webhooks/types/index.mjs +7 -0
  339. package/dist/esm/version.d.mts +1 -1
  340. package/dist/esm/version.mjs +1 -1
  341. package/package.json +1 -1
  342. package/reference.md +134 -0
@@ -31,6 +31,9 @@ export * from "./CreatePaymentRequestsRequestPayerPartyId.mjs";
31
31
  export * from "./CreatePaymentRequestsRequestPayerPhone.mjs";
32
32
  export * from "./CreatePaymentRequestsResponseDataAttributesInitiatorAgent.mjs";
33
33
  export * from "./CreatePaymentRequestsResponseDataAttributesInitiatorParty.mjs";
34
+ export * from "./CreatePaymentRequestsResponseDataRelationshipsPayerAgent.mjs";
35
+ export * from "./CreatePaymentRequestsResponseDataRelationshipsPayerAgentData.mjs";
36
+ export * from "./CreatePaymentRequestsResponseDataRelationshipsPayerAgentDataType.mjs";
34
37
  export * from "./CreatePaymentRequestsResponseDataRelationshipsPayerPartyData.mjs";
35
38
  export * from "./CreatePaymentRequestsResponseDataRelationshipsPayerPartyDataType.mjs";
36
39
  export * from "./DeclinedReq.mjs";
@@ -31,6 +31,9 @@ export * from "./CreatePaymentRequestsRequestPayerPartyId.mjs";
31
31
  export * from "./CreatePaymentRequestsRequestPayerPhone.mjs";
32
32
  export * from "./CreatePaymentRequestsResponseDataAttributesInitiatorAgent.mjs";
33
33
  export * from "./CreatePaymentRequestsResponseDataAttributesInitiatorParty.mjs";
34
+ export * from "./CreatePaymentRequestsResponseDataRelationshipsPayerAgent.mjs";
35
+ export * from "./CreatePaymentRequestsResponseDataRelationshipsPayerAgentData.mjs";
36
+ export * from "./CreatePaymentRequestsResponseDataRelationshipsPayerAgentDataType.mjs";
34
37
  export * from "./CreatePaymentRequestsResponseDataRelationshipsPayerPartyData.mjs";
35
38
  export * from "./CreatePaymentRequestsResponseDataRelationshipsPayerPartyDataType.mjs";
36
39
  export * from "./DeclinedReq.mjs";
@@ -286,4 +286,34 @@ export declare class SimulationsClient {
286
286
  */
287
287
  revokeAgentConnection(request: Natural.RevokeAgentConnectionSimulationsRequest, requestOptions?: SimulationsClient.RequestOptions): core.HttpResponsePromise<Natural.RevokeAgentConnectionSimulationsResponse>;
288
288
  private __revokeAgentConnection;
289
+ /**
290
+ * End a test customer's connection and revoke all remaining agent access
291
+ *
292
+ * @param {Natural.DisconnectCustomerSimulationsRequest} request
293
+ * @param {SimulationsClient.RequestOptions} requestOptions - Request-specific configuration.
294
+ *
295
+ * @throws {@link Natural.BadRequestError}
296
+ * @throws {@link Natural.UnauthorizedError}
297
+ * @throws {@link Natural.ForbiddenError}
298
+ * @throws {@link Natural.NotFoundError}
299
+ * @throws {@link Natural.RequestTimeoutError}
300
+ * @throws {@link Natural.ConflictError}
301
+ * @throws {@link Natural.UnprocessableEntityError}
302
+ * @throws {@link Natural.PreconditionError}
303
+ * @throws {@link Natural.TooManyRequestsError}
304
+ * @throws {@link Natural.InternalServerError}
305
+ * @throws {@link Natural.NotImplementedError}
306
+ * @throws {@link Natural.BadGatewayError}
307
+ * @throws {@link Natural.ServiceUnavailableError}
308
+ * @throws {@link errors.NaturalError}
309
+ * @throws {@link errors.NaturalTimeoutError}
310
+ *
311
+ * @example
312
+ * await client.simulations.disconnectCustomer({
313
+ * idempotencyKey: "Idempotency-Key",
314
+ * customerId: "customerId"
315
+ * })
316
+ */
317
+ disconnectCustomer(request: Natural.DisconnectCustomerSimulationsRequest, requestOptions?: SimulationsClient.RequestOptions): core.HttpResponsePromise<Natural.DisconnectCustomerSimulationsResponse>;
318
+ private __disconnectCustomer;
289
319
  }
@@ -971,4 +971,106 @@ export class SimulationsClient {
971
971
  return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/simulations/customers/{customerId}/agents/{agentId}/revoke");
972
972
  });
973
973
  }
974
+ /**
975
+ * End a test customer's connection and revoke all remaining agent access
976
+ *
977
+ * @param {Natural.DisconnectCustomerSimulationsRequest} request
978
+ * @param {SimulationsClient.RequestOptions} requestOptions - Request-specific configuration.
979
+ *
980
+ * @throws {@link Natural.BadRequestError}
981
+ * @throws {@link Natural.UnauthorizedError}
982
+ * @throws {@link Natural.ForbiddenError}
983
+ * @throws {@link Natural.NotFoundError}
984
+ * @throws {@link Natural.RequestTimeoutError}
985
+ * @throws {@link Natural.ConflictError}
986
+ * @throws {@link Natural.UnprocessableEntityError}
987
+ * @throws {@link Natural.PreconditionError}
988
+ * @throws {@link Natural.TooManyRequestsError}
989
+ * @throws {@link Natural.InternalServerError}
990
+ * @throws {@link Natural.NotImplementedError}
991
+ * @throws {@link Natural.BadGatewayError}
992
+ * @throws {@link Natural.ServiceUnavailableError}
993
+ * @throws {@link errors.NaturalError}
994
+ * @throws {@link errors.NaturalTimeoutError}
995
+ *
996
+ * @example
997
+ * await client.simulations.disconnectCustomer({
998
+ * idempotencyKey: "Idempotency-Key",
999
+ * customerId: "customerId"
1000
+ * })
1001
+ */
1002
+ disconnectCustomer(request, requestOptions) {
1003
+ return core.HttpResponsePromise.fromPromise(this.__disconnectCustomer(request, requestOptions));
1004
+ }
1005
+ __disconnectCustomer(request, requestOptions) {
1006
+ return __awaiter(this, void 0, void 0, function* () {
1007
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
1008
+ const { customerId, idempotencyKey } = request;
1009
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
1010
+ const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({
1011
+ "Idempotency-Key": idempotencyKey,
1012
+ "X-Instance-ID": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.instanceId) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.instanceId,
1013
+ }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
1014
+ const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
1015
+ url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.NaturalEnvironment.Production, `simulations/customers/${core.url.encodePathParam(customerId)}/disconnect`),
1016
+ method: "POST",
1017
+ headers: _headers,
1018
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
1019
+ timeoutMs: ((_j = (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.timeoutInSeconds) !== null && _j !== void 0 ? _j : 60) * 1000,
1020
+ maxRetries: (_k = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _k !== void 0 ? _k : (_l = this._options) === null || _l === void 0 ? void 0 : _l.maxRetries,
1021
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
1022
+ fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
1023
+ logging: this._options.logging,
1024
+ });
1025
+ if (_response.ok) {
1026
+ return {
1027
+ data: serializers.DisconnectCustomerSimulationsResponse.parseOrThrow(_response.body, {
1028
+ unrecognizedObjectKeys: "passthrough",
1029
+ allowUnrecognizedUnionMembers: true,
1030
+ allowUnrecognizedEnumValues: true,
1031
+ skipValidation: true,
1032
+ breadcrumbsPrefix: ["response"],
1033
+ }),
1034
+ rawResponse: _response.rawResponse,
1035
+ };
1036
+ }
1037
+ if (_response.error.reason === "status-code") {
1038
+ switch (_response.error.statusCode) {
1039
+ case 400:
1040
+ throw new Natural.BadRequestError(_response.error.body, _response.rawResponse);
1041
+ case 401:
1042
+ throw new Natural.UnauthorizedError(_response.error.body, _response.rawResponse);
1043
+ case 403:
1044
+ throw new Natural.ForbiddenError(_response.error.body, _response.rawResponse);
1045
+ case 404:
1046
+ throw new Natural.NotFoundError(_response.error.body, _response.rawResponse);
1047
+ case 408:
1048
+ throw new Natural.RequestTimeoutError(_response.error.body, _response.rawResponse);
1049
+ case 409:
1050
+ throw new Natural.ConflictError(_response.error.body, _response.rawResponse);
1051
+ case 422:
1052
+ throw new Natural.UnprocessableEntityError(_response.error.body, _response.rawResponse);
1053
+ case 428:
1054
+ throw new Natural.PreconditionError(_response.error.body, _response.rawResponse);
1055
+ case 429:
1056
+ throw new Natural.TooManyRequestsError(_response.error.body, _response.rawResponse);
1057
+ case 500:
1058
+ throw new Natural.InternalServerError(_response.error.body, _response.rawResponse);
1059
+ case 501:
1060
+ throw new Natural.NotImplementedError(_response.error.body, _response.rawResponse);
1061
+ case 502:
1062
+ throw new Natural.BadGatewayError(_response.error.body, _response.rawResponse);
1063
+ case 503:
1064
+ throw new Natural.ServiceUnavailableError(_response.error.body, _response.rawResponse);
1065
+ default:
1066
+ throw new errors.NaturalError({
1067
+ statusCode: _response.error.statusCode,
1068
+ body: _response.error.body,
1069
+ rawResponse: _response.rawResponse,
1070
+ });
1071
+ }
1072
+ }
1073
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/simulations/customers/{customerId}/disconnect");
1074
+ });
1075
+ }
974
1076
  }
@@ -0,0 +1,12 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * idempotencyKey: "Idempotency-Key",
5
+ * customerId: "customerId"
6
+ * }
7
+ */
8
+ export interface DisconnectCustomerSimulationsRequest {
9
+ customerId: string;
10
+ /** Unique key for safely retrying a request without creating duplicates. */
11
+ idempotencyKey: string;
12
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -2,6 +2,7 @@ export type { AcceptCustomerInvitationSimulationsRequest } from "./AcceptCustome
2
2
  export type { CompletePaymentClaimSimulationsRequest } from "./CompletePaymentClaimSimulationsRequest.mjs";
3
3
  export type { DeclineCustomerInvitationSimulationsRequest } from "./DeclineCustomerInvitationSimulationsRequest.mjs";
4
4
  export type { DeclinePaymentRequestSimulationsRequest } from "./DeclinePaymentRequestSimulationsRequest.mjs";
5
+ export type { DisconnectCustomerSimulationsRequest } from "./DisconnectCustomerSimulationsRequest.mjs";
5
6
  export type { FulfillPaymentRequestSimulationsRequest } from "./FulfillPaymentRequestSimulationsRequest.mjs";
6
7
  export type { FundCustomerSimulationsRequest } from "./FundCustomerSimulationsRequest.mjs";
7
8
  export type { InviteCustomerSimulationsRequest } from "./InviteCustomerSimulationsRequest.mjs";
@@ -0,0 +1,6 @@
1
+ import type * as Natural from "../../../index.mjs";
2
+ export interface DisconnectCustomerSimulationsResponse {
3
+ /** Customer connection, including revoked connections when requested. */
4
+ data: Natural.DisconnectCustomerSimulationsResponseData;
5
+ meta: Natural.DisconnectCustomerSimulationsResponseMeta;
6
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,10 @@
1
+ import type * as Natural from "../../../index.mjs";
2
+ /**
3
+ * Customer connection, including revoked connections when requested.
4
+ */
5
+ export interface DisconnectCustomerSimulationsResponseData {
6
+ type: Natural.DisconnectCustomerSimulationsResponseDataType;
7
+ /** Customer party ID (pty_*). */
8
+ id: string;
9
+ attributes: Natural.DisconnectCustomerSimulationsResponseDataAttributes;
10
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,15 @@
1
+ import type * as Natural from "../../../index.mjs";
2
+ export interface DisconnectCustomerSimulationsResponseDataAttributes {
3
+ /** Customer name. */
4
+ name: string;
5
+ /** Email address. */
6
+ email: string | null;
7
+ /** Public avatar URL, or null if none is set. */
8
+ avatarUrl: string | null;
9
+ /** When the customer was created. */
10
+ createdAt: Date | null;
11
+ /** Delegation details. */
12
+ delegation: Natural.DisconnectCustomerSimulationsResponseDataAttributesDelegation;
13
+ /** Connected agents. */
14
+ agents: Natural.DisconnectCustomerSimulationsResponseDataAttributesAgentsItem[];
15
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,15 @@
1
+ import type * as Natural from "../../../index.mjs";
2
+ export interface DisconnectCustomerSimulationsResponseDataAttributesAgentsItem {
3
+ /** Agent ID (agt_*). */
4
+ id: string;
5
+ /** Agent name. */
6
+ name: string | null;
7
+ /** The agent's composed public handle (@namespace-slug), or null when it has none. */
8
+ handle: string | null;
9
+ /** Connection status. */
10
+ status: string;
11
+ /** Permissions this agent holds. */
12
+ permissions: string[];
13
+ /** Spending limits in cents (per-transaction, daily, monthly) for this agent. */
14
+ limits: Natural.DisconnectCustomerSimulationsResponseDataAttributesAgentsItemLimits | null;
15
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,8 @@
1
+ export interface DisconnectCustomerSimulationsResponseDataAttributesAgentsItemLimits {
2
+ /** Per-transaction spending limit in cents, or null for no limit. */
3
+ perTransaction?: number | null;
4
+ /** Daily spending limit in cents, or null for no limit. */
5
+ perDay?: number | null;
6
+ /** Monthly spending limit in cents, or null for no limit. */
7
+ perMonth?: number | null;
8
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,16 @@
1
+ import type * as Natural from "../../../index.mjs";
2
+ /**
3
+ * Delegation details.
4
+ */
5
+ export interface DisconnectCustomerSimulationsResponseDataAttributesDelegation {
6
+ /** Delegation ID (dlg_*). */
7
+ id: string;
8
+ /** Delegation status. */
9
+ status: Natural.DisconnectCustomerSimulationsResponseDataAttributesDelegationStatus;
10
+ /** Granted permissions. */
11
+ permissions: string[];
12
+ /** When the customer was connected. */
13
+ createdAt: Date;
14
+ /** When access was revoked, or null if not revoked. */
15
+ revokedAt: Date | null;
16
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,8 @@
1
+ /** Delegation status. */
2
+ export declare const DisconnectCustomerSimulationsResponseDataAttributesDelegationStatus: {
3
+ readonly Active: "ACTIVE";
4
+ readonly Suspended: "SUSPENDED";
5
+ readonly Revoked: "REVOKED";
6
+ readonly Expired: "EXPIRED";
7
+ };
8
+ export type DisconnectCustomerSimulationsResponseDataAttributesDelegationStatus = (typeof DisconnectCustomerSimulationsResponseDataAttributesDelegationStatus)[keyof typeof DisconnectCustomerSimulationsResponseDataAttributesDelegationStatus];
@@ -0,0 +1,8 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ /** Delegation status. */
3
+ export const DisconnectCustomerSimulationsResponseDataAttributesDelegationStatus = {
4
+ Active: "ACTIVE",
5
+ Suspended: "SUSPENDED",
6
+ Revoked: "REVOKED",
7
+ Expired: "EXPIRED",
8
+ };
@@ -0,0 +1,4 @@
1
+ export declare const DisconnectCustomerSimulationsResponseDataType: {
2
+ readonly Customer: "customer";
3
+ };
4
+ export type DisconnectCustomerSimulationsResponseDataType = (typeof DisconnectCustomerSimulationsResponseDataType)[keyof typeof DisconnectCustomerSimulationsResponseDataType];
@@ -0,0 +1,4 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export const DisconnectCustomerSimulationsResponseDataType = {
3
+ Customer: "customer",
4
+ };
@@ -0,0 +1,4 @@
1
+ export interface DisconnectCustomerSimulationsResponseMeta {
2
+ /** Indicates the resource was deleted. */
3
+ deleted: string;
4
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -76,6 +76,15 @@ export * from "./DeclinePaymentRequestSimulationsResponseDataRelationshipsWallet
76
76
  export * from "./DeclinePaymentRequestSimulationsResponseDataRelationshipsWalletData.mjs";
77
77
  export * from "./DeclinePaymentRequestSimulationsResponseDataRelationshipsWalletDataType.mjs";
78
78
  export * from "./DeclinePaymentRequestSimulationsResponseDataType.mjs";
79
+ export * from "./DisconnectCustomerSimulationsResponse.mjs";
80
+ export * from "./DisconnectCustomerSimulationsResponseData.mjs";
81
+ export * from "./DisconnectCustomerSimulationsResponseDataAttributes.mjs";
82
+ export * from "./DisconnectCustomerSimulationsResponseDataAttributesAgentsItem.mjs";
83
+ export * from "./DisconnectCustomerSimulationsResponseDataAttributesAgentsItemLimits.mjs";
84
+ export * from "./DisconnectCustomerSimulationsResponseDataAttributesDelegation.mjs";
85
+ export * from "./DisconnectCustomerSimulationsResponseDataAttributesDelegationStatus.mjs";
86
+ export * from "./DisconnectCustomerSimulationsResponseDataType.mjs";
87
+ export * from "./DisconnectCustomerSimulationsResponseMeta.mjs";
79
88
  export * from "./FulfillPaymentRequestSimulationsResponse.mjs";
80
89
  export * from "./FulfillPaymentRequestSimulationsResponseData.mjs";
81
90
  export * from "./FulfillPaymentRequestSimulationsResponseDataAttributes.mjs";
@@ -76,6 +76,15 @@ export * from "./DeclinePaymentRequestSimulationsResponseDataRelationshipsWallet
76
76
  export * from "./DeclinePaymentRequestSimulationsResponseDataRelationshipsWalletData.mjs";
77
77
  export * from "./DeclinePaymentRequestSimulationsResponseDataRelationshipsWalletDataType.mjs";
78
78
  export * from "./DeclinePaymentRequestSimulationsResponseDataType.mjs";
79
+ export * from "./DisconnectCustomerSimulationsResponse.mjs";
80
+ export * from "./DisconnectCustomerSimulationsResponseData.mjs";
81
+ export * from "./DisconnectCustomerSimulationsResponseDataAttributes.mjs";
82
+ export * from "./DisconnectCustomerSimulationsResponseDataAttributesAgentsItem.mjs";
83
+ export * from "./DisconnectCustomerSimulationsResponseDataAttributesAgentsItemLimits.mjs";
84
+ export * from "./DisconnectCustomerSimulationsResponseDataAttributesDelegation.mjs";
85
+ export * from "./DisconnectCustomerSimulationsResponseDataAttributesDelegationStatus.mjs";
86
+ export * from "./DisconnectCustomerSimulationsResponseDataType.mjs";
87
+ export * from "./DisconnectCustomerSimulationsResponseMeta.mjs";
79
88
  export * from "./FulfillPaymentRequestSimulationsResponse.mjs";
80
89
  export * from "./FulfillPaymentRequestSimulationsResponseData.mjs";
81
90
  export * from "./FulfillPaymentRequestSimulationsResponseDataAttributes.mjs";
@@ -65,6 +65,7 @@ export declare class WebhooksClient {
65
65
  * url: "https://example.com/webhooks/natural",
66
66
  * description: "Production webhook for wallet and party events",
67
67
  * enabledEvents: ["wallet.created", "party.updated", "delegation.activated"],
68
+ * sources: ["own", "connected"],
68
69
  * tags: {
69
70
  * "env": "prod",
70
71
  * "team": "payments"
@@ -158,6 +159,7 @@ export declare class WebhooksClient {
158
159
  * description: "Production webhook for wallet, party, and delegation events",
159
160
  * status: "DISABLED",
160
161
  * enabledEvents: ["wallet.created", "party.updated"],
162
+ * sources: ["own", "connected"],
161
163
  * tags: {
162
164
  * "env": "staging",
163
165
  * "team": null
@@ -182,6 +182,7 @@ export class WebhooksClient {
182
182
  * url: "https://example.com/webhooks/natural",
183
183
  * description: "Production webhook for wallet and party events",
184
184
  * enabledEvents: ["wallet.created", "party.updated", "delegation.activated"],
185
+ * sources: ["own", "connected"],
185
186
  * tags: {
186
187
  * "env": "prod",
187
188
  * "team": "payments"
@@ -488,6 +489,7 @@ export class WebhooksClient {
488
489
  * description: "Production webhook for wallet, party, and delegation events",
489
490
  * status: "DISABLED",
490
491
  * enabledEvents: ["wallet.created", "party.updated"],
492
+ * sources: ["own", "connected"],
491
493
  * tags: {
492
494
  * "env": "staging",
493
495
  * "team": null
@@ -6,6 +6,7 @@ import type * as Natural from "../../../../index.mjs";
6
6
  * url: "https://example.com/webhooks/natural",
7
7
  * description: "Production webhook for wallet and party events",
8
8
  * enabledEvents: ["wallet.created", "party.updated", "delegation.activated"],
9
+ * sources: ["own", "connected"],
9
10
  * tags: {
10
11
  * "env": "prod",
11
12
  * "team": "payments"
@@ -21,6 +22,8 @@ export interface NewWebhookParams {
21
22
  description?: string;
22
23
  /** Event types to subscribe to; use "*" to subscribe to all event types. */
23
24
  enabledEvents: Natural.CreateWebhooksRequestEnabledEventsItem[];
25
+ /** Event sources to receive: "own" for your own party's events, "connected" for events of parties connected to you through an active authorization. Defaults to ["own"]. */
26
+ sources?: Natural.CreateWebhooksRequestSourcesItem[];
24
27
  /** Tags applied to this webhook. */
25
28
  tags?: Record<string, string>;
26
29
  }
@@ -7,6 +7,7 @@ import type * as Natural from "../../../../index.mjs";
7
7
  * description: "Production webhook for wallet, party, and delegation events",
8
8
  * status: "DISABLED",
9
9
  * enabledEvents: ["wallet.created", "party.updated"],
10
+ * sources: ["own", "connected"],
10
11
  * tags: {
11
12
  * "env": "staging",
12
13
  * "team": null
@@ -25,6 +26,8 @@ export interface UpdWebhookParams {
25
26
  status?: Natural.UpdateWebhooksRequestStatus;
26
27
  /** Event types to subscribe to; use "*" to subscribe to all event types. */
27
28
  enabledEvents?: Natural.UpdateWebhooksRequestEnabledEventsItem[];
29
+ /** Event sources to receive: "own" for your own party's events, "connected" for events of parties connected to you through an active authorization. */
30
+ sources?: Natural.UpdateWebhooksRequestSourcesItem[];
28
31
  /** Tag updates. Pass null to remove a key. */
29
32
  tags?: Record<string, string | null>;
30
33
  }
@@ -0,0 +1,5 @@
1
+ export declare const CreateWebhooksRequestSourcesItem: {
2
+ readonly Own: "own";
3
+ readonly Connected: "connected";
4
+ };
5
+ export type CreateWebhooksRequestSourcesItem = (typeof CreateWebhooksRequestSourcesItem)[keyof typeof CreateWebhooksRequestSourcesItem];
@@ -0,0 +1,5 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export const CreateWebhooksRequestSourcesItem = {
3
+ Own: "own",
4
+ Connected: "connected",
5
+ };
@@ -0,0 +1,5 @@
1
+ export declare const CreateWebhooksResponseDataAttributesSourcesItem: {
2
+ readonly Own: "own";
3
+ readonly Connected: "connected";
4
+ };
5
+ export type CreateWebhooksResponseDataAttributesSourcesItem = (typeof CreateWebhooksResponseDataAttributesSourcesItem)[keyof typeof CreateWebhooksResponseDataAttributesSourcesItem];
@@ -0,0 +1,5 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export const CreateWebhooksResponseDataAttributesSourcesItem = {
3
+ Own: "own",
4
+ Connected: "connected",
5
+ };
@@ -8,6 +8,8 @@ export interface DelWebhookAttrs {
8
8
  status: Natural.DelWebhookStatus;
9
9
  /** Event types this webhook listens to. */
10
10
  enabledEvents: Natural.RemoveWebhooksResponseDataAttributesEnabledEventsItem[];
11
+ /** Event sources this webhook receives: "own" for your own party, "connected" for parties connected to you through an active authorization. */
12
+ sources: Natural.RemoveWebhooksResponseDataAttributesSourcesItem[];
11
13
  /** Metadata visible to anyone who can read the resource. */
12
14
  tags: Record<string, string>;
13
15
  /** When this webhook was created. */
@@ -0,0 +1,5 @@
1
+ export declare const GetWebhooksResponseDataAttributesSourcesItem: {
2
+ readonly Own: "own";
3
+ readonly Connected: "connected";
4
+ };
5
+ export type GetWebhooksResponseDataAttributesSourcesItem = (typeof GetWebhooksResponseDataAttributesSourcesItem)[keyof typeof GetWebhooksResponseDataAttributesSourcesItem];
@@ -0,0 +1,5 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export const GetWebhooksResponseDataAttributesSourcesItem = {
3
+ Own: "own",
4
+ Connected: "connected",
5
+ };
@@ -0,0 +1,5 @@
1
+ export declare const ListWebhooksResponseDataItemAttributesSourcesItem: {
2
+ readonly Own: "own";
3
+ readonly Connected: "connected";
4
+ };
5
+ export type ListWebhooksResponseDataItemAttributesSourcesItem = (typeof ListWebhooksResponseDataItemAttributesSourcesItem)[keyof typeof ListWebhooksResponseDataItemAttributesSourcesItem];
@@ -0,0 +1,5 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export const ListWebhooksResponseDataItemAttributesSourcesItem = {
3
+ Own: "own",
4
+ Connected: "connected",
5
+ };
@@ -8,6 +8,8 @@ export interface NewWebhookAttrs {
8
8
  status: Natural.NewWebhookStatus;
9
9
  /** Event types this webhook listens to. */
10
10
  enabledEvents: Natural.CreateWebhooksResponseDataAttributesEnabledEventsItem[];
11
+ /** Event sources this webhook receives: "own" for your own party, "connected" for parties connected to you through an active authorization. */
12
+ sources: Natural.CreateWebhooksResponseDataAttributesSourcesItem[];
11
13
  /** Metadata visible to anyone who can read the resource. */
12
14
  tags: Record<string, string>;
13
15
  /** When this webhook was created. */
@@ -0,0 +1,5 @@
1
+ export declare const RemoveWebhooksResponseDataAttributesSourcesItem: {
2
+ readonly Own: "own";
3
+ readonly Connected: "connected";
4
+ };
5
+ export type RemoveWebhooksResponseDataAttributesSourcesItem = (typeof RemoveWebhooksResponseDataAttributesSourcesItem)[keyof typeof RemoveWebhooksResponseDataAttributesSourcesItem];
@@ -0,0 +1,5 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export const RemoveWebhooksResponseDataAttributesSourcesItem = {
3
+ Own: "own",
4
+ Connected: "connected",
5
+ };
@@ -8,6 +8,8 @@ export interface UpdWebhookAttrs {
8
8
  status: Natural.UpdWebhookStatus;
9
9
  /** Event types this webhook listens to. */
10
10
  enabledEvents: Natural.UpdateWebhooksResponseDataAttributesEnabledEventsItem[];
11
+ /** Event sources this webhook receives: "own" for your own party, "connected" for parties connected to you through an active authorization. */
12
+ sources: Natural.UpdateWebhooksResponseDataAttributesSourcesItem[];
11
13
  /** Metadata visible to anyone who can read the resource. */
12
14
  tags: Record<string, string>;
13
15
  /** When this webhook was created. */
@@ -0,0 +1,5 @@
1
+ export declare const UpdateWebhooksRequestSourcesItem: {
2
+ readonly Own: "own";
3
+ readonly Connected: "connected";
4
+ };
5
+ export type UpdateWebhooksRequestSourcesItem = (typeof UpdateWebhooksRequestSourcesItem)[keyof typeof UpdateWebhooksRequestSourcesItem];
@@ -0,0 +1,5 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export const UpdateWebhooksRequestSourcesItem = {
3
+ Own: "own",
4
+ Connected: "connected",
5
+ };
@@ -0,0 +1,5 @@
1
+ export declare const UpdateWebhooksResponseDataAttributesSourcesItem: {
2
+ readonly Own: "own";
3
+ readonly Connected: "connected";
4
+ };
5
+ export type UpdateWebhooksResponseDataAttributesSourcesItem = (typeof UpdateWebhooksResponseDataAttributesSourcesItem)[keyof typeof UpdateWebhooksResponseDataAttributesSourcesItem];
@@ -0,0 +1,5 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export const UpdateWebhooksResponseDataAttributesSourcesItem = {
3
+ Own: "own",
4
+ Connected: "connected",
5
+ };
@@ -8,6 +8,8 @@ export interface WebhookAttrs {
8
8
  status: Natural.WebhookStatus;
9
9
  /** Event types this webhook listens to. */
10
10
  enabledEvents: Natural.WebhookEnabledEventsItem[];
11
+ /** Event sources this webhook receives: "own" for your own party, "connected" for parties connected to you through an active authorization. */
12
+ sources: Natural.ListWebhooksResponseDataItemAttributesSourcesItem[];
11
13
  /** Metadata visible to anyone who can read the resource. */
12
14
  tags: Record<string, string>;
13
15
  /** When this webhook was created. */
@@ -8,6 +8,8 @@ export interface WebhookDetailAttrs {
8
8
  status: Natural.WebhookDetailStatus;
9
9
  /** Event types this webhook listens to. */
10
10
  enabledEvents: Natural.GetWebhooksResponseDataAttributesEnabledEventsItem[];
11
+ /** Event sources this webhook receives: "own" for your own party, "connected" for parties connected to you through an active authorization. */
12
+ sources: Natural.GetWebhooksResponseDataAttributesSourcesItem[];
11
13
  /** Metadata visible to anyone who can read the resource. */
12
14
  tags: Record<string, string>;
13
15
  /** When this webhook was created. */