@naturalpay/sdk 1.6.13 → 1.6.14

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 (360) hide show
  1. package/dist/cjs/BaseClient.js +2 -2
  2. package/dist/cjs/api/resources/agents/types/CreateCustomerAgentsRequestPermissionsItem.d.ts +6 -0
  3. package/dist/cjs/api/resources/agents/types/CreateCustomerAgentsRequestPermissionsItem.js +6 -0
  4. package/dist/cjs/api/resources/agents/types/ListInvitationsAgentsResponseDataItemAttributes.d.ts +2 -0
  5. package/dist/cjs/api/resources/agents/types/RevokeInvitationAgentsResponseDataAttributes.d.ts +2 -0
  6. package/dist/cjs/api/resources/apiKeys/types/CreateApiKeysRequestScopesItem.d.ts +6 -0
  7. package/dist/cjs/api/resources/apiKeys/types/CreateApiKeysRequestScopesItem.js +6 -0
  8. package/dist/cjs/api/resources/customers/client/Client.d.ts +1 -0
  9. package/dist/cjs/api/resources/customers/client/Client.js +1 -0
  10. package/dist/cjs/api/resources/customers/client/requests/CreateInvitationsCustomersRequest.d.ts +3 -0
  11. package/dist/cjs/api/resources/customers/types/CreateInvitationsCustomersRequestAgentsItemPermissionsItem.d.ts +6 -0
  12. package/dist/cjs/api/resources/customers/types/CreateInvitationsCustomersRequestAgentsItemPermissionsItem.js +6 -0
  13. package/dist/cjs/api/resources/customers/types/CreateInvitationsCustomersResponseDataItemAttributes.d.ts +2 -0
  14. package/dist/cjs/api/resources/customers/types/RevokeInvitationCustomersResponseDataAttributes.d.ts +2 -0
  15. package/dist/cjs/api/resources/events/types/GetEventsResponseDataAttributesEventType.d.ts +16 -0
  16. package/dist/cjs/api/resources/events/types/GetEventsResponseDataAttributesEventType.js +16 -0
  17. package/dist/cjs/api/resources/events/types/ListEventsRequestEventType.d.ts +16 -0
  18. package/dist/cjs/api/resources/events/types/ListEventsRequestEventType.js +16 -0
  19. package/dist/cjs/api/resources/events/types/ListEventsResponseDataItemAttributesEventType.d.ts +16 -0
  20. package/dist/cjs/api/resources/events/types/ListEventsResponseDataItemAttributesEventType.js +16 -0
  21. package/dist/cjs/api/resources/invitationLinks/types/CreateInvitationLinksRequestProposedAgentsItemPermissionsItem.d.ts +6 -0
  22. package/dist/cjs/api/resources/invitationLinks/types/CreateInvitationLinksRequestProposedAgentsItemPermissionsItem.js +6 -0
  23. package/dist/cjs/api/resources/invitationLinks/types/CreateInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.d.ts +6 -0
  24. package/dist/cjs/api/resources/invitationLinks/types/CreateInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.js +6 -0
  25. package/dist/cjs/api/resources/invitationLinks/types/GetInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.d.ts +6 -0
  26. package/dist/cjs/api/resources/invitationLinks/types/GetInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.js +6 -0
  27. package/dist/cjs/api/resources/invitationLinks/types/ListInvitationLinksResponseDataItemAttributesProposedAgentsItemPermissionsItem.d.ts +6 -0
  28. package/dist/cjs/api/resources/invitationLinks/types/ListInvitationLinksResponseDataItemAttributesProposedAgentsItemPermissionsItem.js +6 -0
  29. package/dist/cjs/api/resources/invitationLinks/types/RevokeInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.d.ts +6 -0
  30. package/dist/cjs/api/resources/invitationLinks/types/RevokeInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.js +6 -0
  31. package/dist/cjs/api/resources/parties/client/Client.d.ts +88 -0
  32. package/dist/cjs/api/resources/parties/client/Client.js +315 -0
  33. package/dist/cjs/api/resources/parties/client/requests/CreateBrandingPhotoUploadPartiesRequest.d.ts +16 -0
  34. package/dist/cjs/api/resources/parties/client/requests/CreateBrandingPhotoUploadPartiesRequest.js +3 -0
  35. package/dist/cjs/api/resources/parties/client/requests/GetBrandingForPartyPartiesRequest.d.ts +9 -0
  36. package/dist/cjs/api/resources/parties/client/requests/GetBrandingForPartyPartiesRequest.js +3 -0
  37. package/dist/cjs/api/resources/parties/client/requests/UpdateBrandingForPartyPartiesRequest.d.ts +16 -0
  38. package/dist/cjs/api/resources/parties/client/requests/UpdateBrandingForPartyPartiesRequest.js +3 -0
  39. package/dist/cjs/api/resources/parties/client/requests/index.d.ts +3 -0
  40. package/dist/cjs/api/resources/parties/types/CreateBrandingPhotoUploadPartiesRequestContentType.d.ts +7 -0
  41. package/dist/cjs/api/resources/parties/types/CreateBrandingPhotoUploadPartiesRequestContentType.js +10 -0
  42. package/dist/cjs/api/resources/parties/types/CreateBrandingPhotoUploadPartiesResponse.d.ts +4 -0
  43. package/dist/cjs/api/resources/parties/types/CreateBrandingPhotoUploadPartiesResponse.js +3 -0
  44. package/dist/cjs/api/resources/parties/types/CreateBrandingPhotoUploadPartiesResponseData.d.ts +6 -0
  45. package/dist/cjs/api/resources/parties/types/CreateBrandingPhotoUploadPartiesResponseData.js +3 -0
  46. package/dist/cjs/api/resources/parties/types/CreateBrandingPhotoUploadPartiesResponseDataAttributes.d.ts +8 -0
  47. package/dist/cjs/api/resources/parties/types/CreateBrandingPhotoUploadPartiesResponseDataAttributes.js +3 -0
  48. package/dist/cjs/api/resources/parties/types/CreateBrandingPhotoUploadPartiesResponseDataType.d.ts +4 -0
  49. package/dist/cjs/api/resources/parties/types/CreateBrandingPhotoUploadPartiesResponseDataType.js +7 -0
  50. package/dist/cjs/api/resources/parties/types/GetBrandingForPartyPartiesResponse.d.ts +4 -0
  51. package/dist/cjs/api/resources/parties/types/GetBrandingForPartyPartiesResponse.js +3 -0
  52. package/dist/cjs/api/resources/parties/types/GetBrandingForPartyPartiesResponseData.d.ts +6 -0
  53. package/dist/cjs/api/resources/parties/types/GetBrandingForPartyPartiesResponseData.js +3 -0
  54. package/dist/cjs/api/resources/parties/types/GetBrandingForPartyPartiesResponseDataAttributes.d.ts +5 -0
  55. package/dist/cjs/api/resources/parties/types/GetBrandingForPartyPartiesResponseDataAttributes.js +3 -0
  56. package/dist/cjs/api/resources/parties/types/GetBrandingForPartyPartiesResponseDataType.d.ts +4 -0
  57. package/dist/cjs/api/resources/parties/types/GetBrandingForPartyPartiesResponseDataType.js +7 -0
  58. package/dist/cjs/api/resources/parties/types/UpdateBrandingForPartyPartiesResponse.d.ts +4 -0
  59. package/dist/cjs/api/resources/parties/types/UpdateBrandingForPartyPartiesResponse.js +3 -0
  60. package/dist/cjs/api/resources/parties/types/UpdateBrandingForPartyPartiesResponseData.d.ts +6 -0
  61. package/dist/cjs/api/resources/parties/types/UpdateBrandingForPartyPartiesResponseData.js +3 -0
  62. package/dist/cjs/api/resources/parties/types/UpdateBrandingForPartyPartiesResponseDataAttributes.d.ts +5 -0
  63. package/dist/cjs/api/resources/parties/types/UpdateBrandingForPartyPartiesResponseDataAttributes.js +3 -0
  64. package/dist/cjs/api/resources/parties/types/UpdateBrandingForPartyPartiesResponseDataType.d.ts +4 -0
  65. package/dist/cjs/api/resources/parties/types/UpdateBrandingForPartyPartiesResponseDataType.js +7 -0
  66. package/dist/cjs/api/resources/parties/types/index.d.ts +13 -0
  67. package/dist/cjs/api/resources/parties/types/index.js +13 -0
  68. package/dist/cjs/api/resources/simulations/client/requests/InviteCustomerSimulationsRequest.d.ts +2 -0
  69. package/dist/cjs/api/resources/simulations/types/AcceptCustomerInvitationSimulationsResponseDataAttributes.d.ts +2 -0
  70. package/dist/cjs/api/resources/simulations/types/DeclineCustomerInvitationSimulationsResponseDataAttributes.d.ts +2 -0
  71. package/dist/cjs/api/resources/simulations/types/InviteCustomerSimulationsRequestPermissionsItem.d.ts +6 -0
  72. package/dist/cjs/api/resources/simulations/types/InviteCustomerSimulationsRequestPermissionsItem.js +6 -0
  73. package/dist/cjs/api/resources/simulations/types/InviteCustomerSimulationsResponseDataItemAttributes.d.ts +2 -0
  74. package/dist/cjs/api/resources/webhooks/types/CreateWebhooksRequestEnabledEventsItem.d.ts +18 -0
  75. package/dist/cjs/api/resources/webhooks/types/CreateWebhooksRequestEnabledEventsItem.js +18 -0
  76. package/dist/cjs/api/resources/webhooks/types/CreateWebhooksResponseDataAttributesEnabledEventsItem.d.ts +18 -0
  77. package/dist/cjs/api/resources/webhooks/types/CreateWebhooksResponseDataAttributesEnabledEventsItem.js +18 -0
  78. package/dist/cjs/api/resources/webhooks/types/GetWebhooksResponseDataAttributesEnabledEventsItem.d.ts +18 -0
  79. package/dist/cjs/api/resources/webhooks/types/GetWebhooksResponseDataAttributesEnabledEventsItem.js +18 -0
  80. package/dist/cjs/api/resources/webhooks/types/RemoveWebhooksResponseDataAttributesEnabledEventsItem.d.ts +18 -0
  81. package/dist/cjs/api/resources/webhooks/types/RemoveWebhooksResponseDataAttributesEnabledEventsItem.js +18 -0
  82. package/dist/cjs/api/resources/webhooks/types/UpdateWebhooksRequestEnabledEventsItem.d.ts +18 -0
  83. package/dist/cjs/api/resources/webhooks/types/UpdateWebhooksRequestEnabledEventsItem.js +18 -0
  84. package/dist/cjs/api/resources/webhooks/types/UpdateWebhooksResponseDataAttributesEnabledEventsItem.d.ts +18 -0
  85. package/dist/cjs/api/resources/webhooks/types/UpdateWebhooksResponseDataAttributesEnabledEventsItem.js +18 -0
  86. package/dist/cjs/api/resources/webhooks/types/WebhookEnabledEventsItem.d.ts +18 -0
  87. package/dist/cjs/api/resources/webhooks/types/WebhookEnabledEventsItem.js +18 -0
  88. package/dist/cjs/serialization/resources/agents/types/CreateCustomerAgentsRequestPermissionsItem.d.ts +1 -1
  89. package/dist/cjs/serialization/resources/agents/types/CreateCustomerAgentsRequestPermissionsItem.js +6 -0
  90. package/dist/cjs/serialization/resources/agents/types/ListInvitationsAgentsResponseDataItemAttributes.d.ts +1 -0
  91. package/dist/cjs/serialization/resources/agents/types/ListInvitationsAgentsResponseDataItemAttributes.js +1 -0
  92. package/dist/cjs/serialization/resources/agents/types/RevokeInvitationAgentsResponseDataAttributes.d.ts +1 -0
  93. package/dist/cjs/serialization/resources/agents/types/RevokeInvitationAgentsResponseDataAttributes.js +1 -0
  94. package/dist/cjs/serialization/resources/apiKeys/types/CreateApiKeysRequestScopesItem.d.ts +1 -1
  95. package/dist/cjs/serialization/resources/apiKeys/types/CreateApiKeysRequestScopesItem.js +6 -0
  96. package/dist/cjs/serialization/resources/customers/client/requests/CreateInvitationsCustomersRequest.d.ts +1 -0
  97. package/dist/cjs/serialization/resources/customers/client/requests/CreateInvitationsCustomersRequest.js +1 -0
  98. package/dist/cjs/serialization/resources/customers/types/CreateInvitationsCustomersRequestAgentsItemPermissionsItem.d.ts +1 -1
  99. package/dist/cjs/serialization/resources/customers/types/CreateInvitationsCustomersRequestAgentsItemPermissionsItem.js +6 -0
  100. package/dist/cjs/serialization/resources/customers/types/CreateInvitationsCustomersResponseDataItemAttributes.d.ts +1 -0
  101. package/dist/cjs/serialization/resources/customers/types/CreateInvitationsCustomersResponseDataItemAttributes.js +1 -0
  102. package/dist/cjs/serialization/resources/customers/types/RevokeInvitationCustomersResponseDataAttributes.d.ts +1 -0
  103. package/dist/cjs/serialization/resources/customers/types/RevokeInvitationCustomersResponseDataAttributes.js +1 -0
  104. package/dist/cjs/serialization/resources/events/types/GetEventsResponseDataAttributesEventType.d.ts +1 -1
  105. package/dist/cjs/serialization/resources/events/types/GetEventsResponseDataAttributesEventType.js +16 -0
  106. package/dist/cjs/serialization/resources/events/types/ListEventsRequestEventType.d.ts +1 -1
  107. package/dist/cjs/serialization/resources/events/types/ListEventsRequestEventType.js +16 -0
  108. package/dist/cjs/serialization/resources/events/types/ListEventsResponseDataItemAttributesEventType.d.ts +1 -1
  109. package/dist/cjs/serialization/resources/events/types/ListEventsResponseDataItemAttributesEventType.js +16 -0
  110. package/dist/cjs/serialization/resources/invitationLinks/types/CreateInvitationLinksRequestProposedAgentsItemPermissionsItem.d.ts +1 -1
  111. package/dist/cjs/serialization/resources/invitationLinks/types/CreateInvitationLinksRequestProposedAgentsItemPermissionsItem.js +6 -0
  112. package/dist/cjs/serialization/resources/invitationLinks/types/CreateInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.d.ts +1 -1
  113. package/dist/cjs/serialization/resources/invitationLinks/types/CreateInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.js +6 -0
  114. package/dist/cjs/serialization/resources/invitationLinks/types/GetInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.d.ts +1 -1
  115. package/dist/cjs/serialization/resources/invitationLinks/types/GetInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.js +6 -0
  116. package/dist/cjs/serialization/resources/invitationLinks/types/ListInvitationLinksResponseDataItemAttributesProposedAgentsItemPermissionsItem.d.ts +1 -1
  117. package/dist/cjs/serialization/resources/invitationLinks/types/ListInvitationLinksResponseDataItemAttributesProposedAgentsItemPermissionsItem.js +6 -0
  118. package/dist/cjs/serialization/resources/invitationLinks/types/RevokeInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.d.ts +1 -1
  119. package/dist/cjs/serialization/resources/invitationLinks/types/RevokeInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.js +6 -0
  120. package/dist/cjs/serialization/resources/parties/client/requests/CreateBrandingPhotoUploadPartiesRequest.d.ts +11 -0
  121. package/dist/cjs/serialization/resources/parties/client/requests/CreateBrandingPhotoUploadPartiesRequest.js +43 -0
  122. package/dist/cjs/serialization/resources/parties/client/requests/UpdateBrandingForPartyPartiesRequest.d.ts +10 -0
  123. package/dist/cjs/serialization/resources/parties/client/requests/UpdateBrandingForPartyPartiesRequest.js +42 -0
  124. package/dist/cjs/serialization/resources/parties/client/requests/index.d.ts +2 -0
  125. package/dist/cjs/serialization/resources/parties/client/requests/index.js +5 -1
  126. package/dist/cjs/serialization/resources/parties/types/CreateBrandingPhotoUploadPartiesRequestContentType.d.ts +7 -0
  127. package/dist/cjs/serialization/resources/parties/types/CreateBrandingPhotoUploadPartiesRequestContentType.js +39 -0
  128. package/dist/cjs/serialization/resources/parties/types/CreateBrandingPhotoUploadPartiesResponse.d.ts +10 -0
  129. package/dist/cjs/serialization/resources/parties/types/CreateBrandingPhotoUploadPartiesResponse.js +42 -0
  130. package/dist/cjs/serialization/resources/parties/types/CreateBrandingPhotoUploadPartiesResponseData.d.ts +13 -0
  131. package/dist/cjs/serialization/resources/parties/types/CreateBrandingPhotoUploadPartiesResponseData.js +45 -0
  132. package/dist/cjs/serialization/resources/parties/types/CreateBrandingPhotoUploadPartiesResponseDataAttributes.d.ts +11 -0
  133. package/dist/cjs/serialization/resources/parties/types/CreateBrandingPhotoUploadPartiesResponseDataAttributes.js +43 -0
  134. package/dist/cjs/serialization/resources/parties/types/CreateBrandingPhotoUploadPartiesResponseDataType.d.ts +7 -0
  135. package/dist/cjs/serialization/resources/parties/types/CreateBrandingPhotoUploadPartiesResponseDataType.js +39 -0
  136. package/dist/cjs/serialization/resources/parties/types/GetBrandingForPartyPartiesResponse.d.ts +10 -0
  137. package/dist/cjs/serialization/resources/parties/types/GetBrandingForPartyPartiesResponse.js +42 -0
  138. package/dist/cjs/serialization/resources/parties/types/GetBrandingForPartyPartiesResponseData.d.ts +13 -0
  139. package/dist/cjs/serialization/resources/parties/types/GetBrandingForPartyPartiesResponseData.js +45 -0
  140. package/dist/cjs/serialization/resources/parties/types/GetBrandingForPartyPartiesResponseDataAttributes.d.ts +10 -0
  141. package/dist/cjs/serialization/resources/parties/types/GetBrandingForPartyPartiesResponseDataAttributes.js +42 -0
  142. package/dist/cjs/serialization/resources/parties/types/GetBrandingForPartyPartiesResponseDataType.d.ts +7 -0
  143. package/dist/cjs/serialization/resources/parties/types/GetBrandingForPartyPartiesResponseDataType.js +39 -0
  144. package/dist/cjs/serialization/resources/parties/types/UpdateBrandingForPartyPartiesResponse.d.ts +10 -0
  145. package/dist/cjs/serialization/resources/parties/types/UpdateBrandingForPartyPartiesResponse.js +42 -0
  146. package/dist/cjs/serialization/resources/parties/types/UpdateBrandingForPartyPartiesResponseData.d.ts +13 -0
  147. package/dist/cjs/serialization/resources/parties/types/UpdateBrandingForPartyPartiesResponseData.js +45 -0
  148. package/dist/cjs/serialization/resources/parties/types/UpdateBrandingForPartyPartiesResponseDataAttributes.d.ts +10 -0
  149. package/dist/cjs/serialization/resources/parties/types/UpdateBrandingForPartyPartiesResponseDataAttributes.js +42 -0
  150. package/dist/cjs/serialization/resources/parties/types/UpdateBrandingForPartyPartiesResponseDataType.d.ts +7 -0
  151. package/dist/cjs/serialization/resources/parties/types/UpdateBrandingForPartyPartiesResponseDataType.js +39 -0
  152. package/dist/cjs/serialization/resources/parties/types/index.d.ts +13 -0
  153. package/dist/cjs/serialization/resources/parties/types/index.js +13 -0
  154. package/dist/cjs/serialization/resources/simulations/client/requests/InviteCustomerSimulationsRequest.d.ts +1 -0
  155. package/dist/cjs/serialization/resources/simulations/client/requests/InviteCustomerSimulationsRequest.js +1 -0
  156. package/dist/cjs/serialization/resources/simulations/types/AcceptCustomerInvitationSimulationsResponseDataAttributes.d.ts +1 -0
  157. package/dist/cjs/serialization/resources/simulations/types/AcceptCustomerInvitationSimulationsResponseDataAttributes.js +1 -0
  158. package/dist/cjs/serialization/resources/simulations/types/DeclineCustomerInvitationSimulationsResponseDataAttributes.d.ts +1 -0
  159. package/dist/cjs/serialization/resources/simulations/types/DeclineCustomerInvitationSimulationsResponseDataAttributes.js +1 -0
  160. package/dist/cjs/serialization/resources/simulations/types/InviteCustomerSimulationsRequestPermissionsItem.d.ts +1 -1
  161. package/dist/cjs/serialization/resources/simulations/types/InviteCustomerSimulationsRequestPermissionsItem.js +6 -0
  162. package/dist/cjs/serialization/resources/simulations/types/InviteCustomerSimulationsResponseDataItemAttributes.d.ts +1 -0
  163. package/dist/cjs/serialization/resources/simulations/types/InviteCustomerSimulationsResponseDataItemAttributes.js +1 -0
  164. package/dist/cjs/serialization/resources/webhooks/types/CreateWebhooksRequestEnabledEventsItem.d.ts +1 -1
  165. package/dist/cjs/serialization/resources/webhooks/types/CreateWebhooksRequestEnabledEventsItem.js +18 -0
  166. package/dist/cjs/serialization/resources/webhooks/types/CreateWebhooksResponseDataAttributesEnabledEventsItem.d.ts +1 -1
  167. package/dist/cjs/serialization/resources/webhooks/types/CreateWebhooksResponseDataAttributesEnabledEventsItem.js +18 -0
  168. package/dist/cjs/serialization/resources/webhooks/types/GetWebhooksResponseDataAttributesEnabledEventsItem.d.ts +1 -1
  169. package/dist/cjs/serialization/resources/webhooks/types/GetWebhooksResponseDataAttributesEnabledEventsItem.js +18 -0
  170. package/dist/cjs/serialization/resources/webhooks/types/RemoveWebhooksResponseDataAttributesEnabledEventsItem.d.ts +1 -1
  171. package/dist/cjs/serialization/resources/webhooks/types/RemoveWebhooksResponseDataAttributesEnabledEventsItem.js +18 -0
  172. package/dist/cjs/serialization/resources/webhooks/types/UpdateWebhooksRequestEnabledEventsItem.d.ts +1 -1
  173. package/dist/cjs/serialization/resources/webhooks/types/UpdateWebhooksRequestEnabledEventsItem.js +18 -0
  174. package/dist/cjs/serialization/resources/webhooks/types/UpdateWebhooksResponseDataAttributesEnabledEventsItem.d.ts +1 -1
  175. package/dist/cjs/serialization/resources/webhooks/types/UpdateWebhooksResponseDataAttributesEnabledEventsItem.js +18 -0
  176. package/dist/cjs/serialization/resources/webhooks/types/WebhookEnabledEventsItem.d.ts +1 -1
  177. package/dist/cjs/serialization/resources/webhooks/types/WebhookEnabledEventsItem.js +18 -0
  178. package/dist/cjs/version.d.ts +1 -1
  179. package/dist/cjs/version.js +1 -1
  180. package/dist/esm/BaseClient.mjs +2 -2
  181. package/dist/esm/api/resources/agents/types/CreateCustomerAgentsRequestPermissionsItem.d.mts +6 -0
  182. package/dist/esm/api/resources/agents/types/CreateCustomerAgentsRequestPermissionsItem.mjs +6 -0
  183. package/dist/esm/api/resources/agents/types/ListInvitationsAgentsResponseDataItemAttributes.d.mts +2 -0
  184. package/dist/esm/api/resources/agents/types/RevokeInvitationAgentsResponseDataAttributes.d.mts +2 -0
  185. package/dist/esm/api/resources/apiKeys/types/CreateApiKeysRequestScopesItem.d.mts +6 -0
  186. package/dist/esm/api/resources/apiKeys/types/CreateApiKeysRequestScopesItem.mjs +6 -0
  187. package/dist/esm/api/resources/customers/client/Client.d.mts +1 -0
  188. package/dist/esm/api/resources/customers/client/Client.mjs +1 -0
  189. package/dist/esm/api/resources/customers/client/requests/CreateInvitationsCustomersRequest.d.mts +3 -0
  190. package/dist/esm/api/resources/customers/types/CreateInvitationsCustomersRequestAgentsItemPermissionsItem.d.mts +6 -0
  191. package/dist/esm/api/resources/customers/types/CreateInvitationsCustomersRequestAgentsItemPermissionsItem.mjs +6 -0
  192. package/dist/esm/api/resources/customers/types/CreateInvitationsCustomersResponseDataItemAttributes.d.mts +2 -0
  193. package/dist/esm/api/resources/customers/types/RevokeInvitationCustomersResponseDataAttributes.d.mts +2 -0
  194. package/dist/esm/api/resources/events/types/GetEventsResponseDataAttributesEventType.d.mts +16 -0
  195. package/dist/esm/api/resources/events/types/GetEventsResponseDataAttributesEventType.mjs +16 -0
  196. package/dist/esm/api/resources/events/types/ListEventsRequestEventType.d.mts +16 -0
  197. package/dist/esm/api/resources/events/types/ListEventsRequestEventType.mjs +16 -0
  198. package/dist/esm/api/resources/events/types/ListEventsResponseDataItemAttributesEventType.d.mts +16 -0
  199. package/dist/esm/api/resources/events/types/ListEventsResponseDataItemAttributesEventType.mjs +16 -0
  200. package/dist/esm/api/resources/invitationLinks/types/CreateInvitationLinksRequestProposedAgentsItemPermissionsItem.d.mts +6 -0
  201. package/dist/esm/api/resources/invitationLinks/types/CreateInvitationLinksRequestProposedAgentsItemPermissionsItem.mjs +6 -0
  202. package/dist/esm/api/resources/invitationLinks/types/CreateInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.d.mts +6 -0
  203. package/dist/esm/api/resources/invitationLinks/types/CreateInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.mjs +6 -0
  204. package/dist/esm/api/resources/invitationLinks/types/GetInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.d.mts +6 -0
  205. package/dist/esm/api/resources/invitationLinks/types/GetInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.mjs +6 -0
  206. package/dist/esm/api/resources/invitationLinks/types/ListInvitationLinksResponseDataItemAttributesProposedAgentsItemPermissionsItem.d.mts +6 -0
  207. package/dist/esm/api/resources/invitationLinks/types/ListInvitationLinksResponseDataItemAttributesProposedAgentsItemPermissionsItem.mjs +6 -0
  208. package/dist/esm/api/resources/invitationLinks/types/RevokeInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.d.mts +6 -0
  209. package/dist/esm/api/resources/invitationLinks/types/RevokeInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.mjs +6 -0
  210. package/dist/esm/api/resources/parties/client/Client.d.mts +88 -0
  211. package/dist/esm/api/resources/parties/client/Client.mjs +315 -0
  212. package/dist/esm/api/resources/parties/client/requests/CreateBrandingPhotoUploadPartiesRequest.d.mts +16 -0
  213. package/dist/esm/api/resources/parties/client/requests/CreateBrandingPhotoUploadPartiesRequest.mjs +2 -0
  214. package/dist/esm/api/resources/parties/client/requests/GetBrandingForPartyPartiesRequest.d.mts +9 -0
  215. package/dist/esm/api/resources/parties/client/requests/GetBrandingForPartyPartiesRequest.mjs +2 -0
  216. package/dist/esm/api/resources/parties/client/requests/UpdateBrandingForPartyPartiesRequest.d.mts +16 -0
  217. package/dist/esm/api/resources/parties/client/requests/UpdateBrandingForPartyPartiesRequest.mjs +2 -0
  218. package/dist/esm/api/resources/parties/client/requests/index.d.mts +3 -0
  219. package/dist/esm/api/resources/parties/types/CreateBrandingPhotoUploadPartiesRequestContentType.d.mts +7 -0
  220. package/dist/esm/api/resources/parties/types/CreateBrandingPhotoUploadPartiesRequestContentType.mjs +7 -0
  221. package/dist/esm/api/resources/parties/types/CreateBrandingPhotoUploadPartiesResponse.d.mts +4 -0
  222. package/dist/esm/api/resources/parties/types/CreateBrandingPhotoUploadPartiesResponse.mjs +2 -0
  223. package/dist/esm/api/resources/parties/types/CreateBrandingPhotoUploadPartiesResponseData.d.mts +6 -0
  224. package/dist/esm/api/resources/parties/types/CreateBrandingPhotoUploadPartiesResponseData.mjs +2 -0
  225. package/dist/esm/api/resources/parties/types/CreateBrandingPhotoUploadPartiesResponseDataAttributes.d.mts +8 -0
  226. package/dist/esm/api/resources/parties/types/CreateBrandingPhotoUploadPartiesResponseDataAttributes.mjs +2 -0
  227. package/dist/esm/api/resources/parties/types/CreateBrandingPhotoUploadPartiesResponseDataType.d.mts +4 -0
  228. package/dist/esm/api/resources/parties/types/CreateBrandingPhotoUploadPartiesResponseDataType.mjs +4 -0
  229. package/dist/esm/api/resources/parties/types/GetBrandingForPartyPartiesResponse.d.mts +4 -0
  230. package/dist/esm/api/resources/parties/types/GetBrandingForPartyPartiesResponse.mjs +2 -0
  231. package/dist/esm/api/resources/parties/types/GetBrandingForPartyPartiesResponseData.d.mts +6 -0
  232. package/dist/esm/api/resources/parties/types/GetBrandingForPartyPartiesResponseData.mjs +2 -0
  233. package/dist/esm/api/resources/parties/types/GetBrandingForPartyPartiesResponseDataAttributes.d.mts +5 -0
  234. package/dist/esm/api/resources/parties/types/GetBrandingForPartyPartiesResponseDataAttributes.mjs +2 -0
  235. package/dist/esm/api/resources/parties/types/GetBrandingForPartyPartiesResponseDataType.d.mts +4 -0
  236. package/dist/esm/api/resources/parties/types/GetBrandingForPartyPartiesResponseDataType.mjs +4 -0
  237. package/dist/esm/api/resources/parties/types/UpdateBrandingForPartyPartiesResponse.d.mts +4 -0
  238. package/dist/esm/api/resources/parties/types/UpdateBrandingForPartyPartiesResponse.mjs +2 -0
  239. package/dist/esm/api/resources/parties/types/UpdateBrandingForPartyPartiesResponseData.d.mts +6 -0
  240. package/dist/esm/api/resources/parties/types/UpdateBrandingForPartyPartiesResponseData.mjs +2 -0
  241. package/dist/esm/api/resources/parties/types/UpdateBrandingForPartyPartiesResponseDataAttributes.d.mts +5 -0
  242. package/dist/esm/api/resources/parties/types/UpdateBrandingForPartyPartiesResponseDataAttributes.mjs +2 -0
  243. package/dist/esm/api/resources/parties/types/UpdateBrandingForPartyPartiesResponseDataType.d.mts +4 -0
  244. package/dist/esm/api/resources/parties/types/UpdateBrandingForPartyPartiesResponseDataType.mjs +4 -0
  245. package/dist/esm/api/resources/parties/types/index.d.mts +13 -0
  246. package/dist/esm/api/resources/parties/types/index.mjs +13 -0
  247. package/dist/esm/api/resources/simulations/client/requests/InviteCustomerSimulationsRequest.d.mts +2 -0
  248. package/dist/esm/api/resources/simulations/types/AcceptCustomerInvitationSimulationsResponseDataAttributes.d.mts +2 -0
  249. package/dist/esm/api/resources/simulations/types/DeclineCustomerInvitationSimulationsResponseDataAttributes.d.mts +2 -0
  250. package/dist/esm/api/resources/simulations/types/InviteCustomerSimulationsRequestPermissionsItem.d.mts +6 -0
  251. package/dist/esm/api/resources/simulations/types/InviteCustomerSimulationsRequestPermissionsItem.mjs +6 -0
  252. package/dist/esm/api/resources/simulations/types/InviteCustomerSimulationsResponseDataItemAttributes.d.mts +2 -0
  253. package/dist/esm/api/resources/webhooks/types/CreateWebhooksRequestEnabledEventsItem.d.mts +18 -0
  254. package/dist/esm/api/resources/webhooks/types/CreateWebhooksRequestEnabledEventsItem.mjs +18 -0
  255. package/dist/esm/api/resources/webhooks/types/CreateWebhooksResponseDataAttributesEnabledEventsItem.d.mts +18 -0
  256. package/dist/esm/api/resources/webhooks/types/CreateWebhooksResponseDataAttributesEnabledEventsItem.mjs +18 -0
  257. package/dist/esm/api/resources/webhooks/types/GetWebhooksResponseDataAttributesEnabledEventsItem.d.mts +18 -0
  258. package/dist/esm/api/resources/webhooks/types/GetWebhooksResponseDataAttributesEnabledEventsItem.mjs +18 -0
  259. package/dist/esm/api/resources/webhooks/types/RemoveWebhooksResponseDataAttributesEnabledEventsItem.d.mts +18 -0
  260. package/dist/esm/api/resources/webhooks/types/RemoveWebhooksResponseDataAttributesEnabledEventsItem.mjs +18 -0
  261. package/dist/esm/api/resources/webhooks/types/UpdateWebhooksRequestEnabledEventsItem.d.mts +18 -0
  262. package/dist/esm/api/resources/webhooks/types/UpdateWebhooksRequestEnabledEventsItem.mjs +18 -0
  263. package/dist/esm/api/resources/webhooks/types/UpdateWebhooksResponseDataAttributesEnabledEventsItem.d.mts +18 -0
  264. package/dist/esm/api/resources/webhooks/types/UpdateWebhooksResponseDataAttributesEnabledEventsItem.mjs +18 -0
  265. package/dist/esm/api/resources/webhooks/types/WebhookEnabledEventsItem.d.mts +18 -0
  266. package/dist/esm/api/resources/webhooks/types/WebhookEnabledEventsItem.mjs +18 -0
  267. package/dist/esm/serialization/resources/agents/types/CreateCustomerAgentsRequestPermissionsItem.d.mts +1 -1
  268. package/dist/esm/serialization/resources/agents/types/CreateCustomerAgentsRequestPermissionsItem.mjs +6 -0
  269. package/dist/esm/serialization/resources/agents/types/ListInvitationsAgentsResponseDataItemAttributes.d.mts +1 -0
  270. package/dist/esm/serialization/resources/agents/types/ListInvitationsAgentsResponseDataItemAttributes.mjs +1 -0
  271. package/dist/esm/serialization/resources/agents/types/RevokeInvitationAgentsResponseDataAttributes.d.mts +1 -0
  272. package/dist/esm/serialization/resources/agents/types/RevokeInvitationAgentsResponseDataAttributes.mjs +1 -0
  273. package/dist/esm/serialization/resources/apiKeys/types/CreateApiKeysRequestScopesItem.d.mts +1 -1
  274. package/dist/esm/serialization/resources/apiKeys/types/CreateApiKeysRequestScopesItem.mjs +6 -0
  275. package/dist/esm/serialization/resources/customers/client/requests/CreateInvitationsCustomersRequest.d.mts +1 -0
  276. package/dist/esm/serialization/resources/customers/client/requests/CreateInvitationsCustomersRequest.mjs +1 -0
  277. package/dist/esm/serialization/resources/customers/types/CreateInvitationsCustomersRequestAgentsItemPermissionsItem.d.mts +1 -1
  278. package/dist/esm/serialization/resources/customers/types/CreateInvitationsCustomersRequestAgentsItemPermissionsItem.mjs +6 -0
  279. package/dist/esm/serialization/resources/customers/types/CreateInvitationsCustomersResponseDataItemAttributes.d.mts +1 -0
  280. package/dist/esm/serialization/resources/customers/types/CreateInvitationsCustomersResponseDataItemAttributes.mjs +1 -0
  281. package/dist/esm/serialization/resources/customers/types/RevokeInvitationCustomersResponseDataAttributes.d.mts +1 -0
  282. package/dist/esm/serialization/resources/customers/types/RevokeInvitationCustomersResponseDataAttributes.mjs +1 -0
  283. package/dist/esm/serialization/resources/events/types/GetEventsResponseDataAttributesEventType.d.mts +1 -1
  284. package/dist/esm/serialization/resources/events/types/GetEventsResponseDataAttributesEventType.mjs +16 -0
  285. package/dist/esm/serialization/resources/events/types/ListEventsRequestEventType.d.mts +1 -1
  286. package/dist/esm/serialization/resources/events/types/ListEventsRequestEventType.mjs +16 -0
  287. package/dist/esm/serialization/resources/events/types/ListEventsResponseDataItemAttributesEventType.d.mts +1 -1
  288. package/dist/esm/serialization/resources/events/types/ListEventsResponseDataItemAttributesEventType.mjs +16 -0
  289. package/dist/esm/serialization/resources/invitationLinks/types/CreateInvitationLinksRequestProposedAgentsItemPermissionsItem.d.mts +1 -1
  290. package/dist/esm/serialization/resources/invitationLinks/types/CreateInvitationLinksRequestProposedAgentsItemPermissionsItem.mjs +6 -0
  291. package/dist/esm/serialization/resources/invitationLinks/types/CreateInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.d.mts +1 -1
  292. package/dist/esm/serialization/resources/invitationLinks/types/CreateInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.mjs +6 -0
  293. package/dist/esm/serialization/resources/invitationLinks/types/GetInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.d.mts +1 -1
  294. package/dist/esm/serialization/resources/invitationLinks/types/GetInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.mjs +6 -0
  295. package/dist/esm/serialization/resources/invitationLinks/types/ListInvitationLinksResponseDataItemAttributesProposedAgentsItemPermissionsItem.d.mts +1 -1
  296. package/dist/esm/serialization/resources/invitationLinks/types/ListInvitationLinksResponseDataItemAttributesProposedAgentsItemPermissionsItem.mjs +6 -0
  297. package/dist/esm/serialization/resources/invitationLinks/types/RevokeInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.d.mts +1 -1
  298. package/dist/esm/serialization/resources/invitationLinks/types/RevokeInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.mjs +6 -0
  299. package/dist/esm/serialization/resources/parties/client/requests/CreateBrandingPhotoUploadPartiesRequest.d.mts +11 -0
  300. package/dist/esm/serialization/resources/parties/client/requests/CreateBrandingPhotoUploadPartiesRequest.mjs +7 -0
  301. package/dist/esm/serialization/resources/parties/client/requests/UpdateBrandingForPartyPartiesRequest.d.mts +10 -0
  302. package/dist/esm/serialization/resources/parties/client/requests/UpdateBrandingForPartyPartiesRequest.mjs +6 -0
  303. package/dist/esm/serialization/resources/parties/client/requests/index.d.mts +2 -0
  304. package/dist/esm/serialization/resources/parties/client/requests/index.mjs +2 -0
  305. package/dist/esm/serialization/resources/parties/types/CreateBrandingPhotoUploadPartiesRequestContentType.d.mts +7 -0
  306. package/dist/esm/serialization/resources/parties/types/CreateBrandingPhotoUploadPartiesRequestContentType.mjs +3 -0
  307. package/dist/esm/serialization/resources/parties/types/CreateBrandingPhotoUploadPartiesResponse.d.mts +10 -0
  308. package/dist/esm/serialization/resources/parties/types/CreateBrandingPhotoUploadPartiesResponse.mjs +6 -0
  309. package/dist/esm/serialization/resources/parties/types/CreateBrandingPhotoUploadPartiesResponseData.d.mts +13 -0
  310. package/dist/esm/serialization/resources/parties/types/CreateBrandingPhotoUploadPartiesResponseData.mjs +9 -0
  311. package/dist/esm/serialization/resources/parties/types/CreateBrandingPhotoUploadPartiesResponseDataAttributes.d.mts +11 -0
  312. package/dist/esm/serialization/resources/parties/types/CreateBrandingPhotoUploadPartiesResponseDataAttributes.mjs +7 -0
  313. package/dist/esm/serialization/resources/parties/types/CreateBrandingPhotoUploadPartiesResponseDataType.d.mts +7 -0
  314. package/dist/esm/serialization/resources/parties/types/CreateBrandingPhotoUploadPartiesResponseDataType.mjs +3 -0
  315. package/dist/esm/serialization/resources/parties/types/GetBrandingForPartyPartiesResponse.d.mts +10 -0
  316. package/dist/esm/serialization/resources/parties/types/GetBrandingForPartyPartiesResponse.mjs +6 -0
  317. package/dist/esm/serialization/resources/parties/types/GetBrandingForPartyPartiesResponseData.d.mts +13 -0
  318. package/dist/esm/serialization/resources/parties/types/GetBrandingForPartyPartiesResponseData.mjs +9 -0
  319. package/dist/esm/serialization/resources/parties/types/GetBrandingForPartyPartiesResponseDataAttributes.d.mts +10 -0
  320. package/dist/esm/serialization/resources/parties/types/GetBrandingForPartyPartiesResponseDataAttributes.mjs +6 -0
  321. package/dist/esm/serialization/resources/parties/types/GetBrandingForPartyPartiesResponseDataType.d.mts +7 -0
  322. package/dist/esm/serialization/resources/parties/types/GetBrandingForPartyPartiesResponseDataType.mjs +3 -0
  323. package/dist/esm/serialization/resources/parties/types/UpdateBrandingForPartyPartiesResponse.d.mts +10 -0
  324. package/dist/esm/serialization/resources/parties/types/UpdateBrandingForPartyPartiesResponse.mjs +6 -0
  325. package/dist/esm/serialization/resources/parties/types/UpdateBrandingForPartyPartiesResponseData.d.mts +13 -0
  326. package/dist/esm/serialization/resources/parties/types/UpdateBrandingForPartyPartiesResponseData.mjs +9 -0
  327. package/dist/esm/serialization/resources/parties/types/UpdateBrandingForPartyPartiesResponseDataAttributes.d.mts +10 -0
  328. package/dist/esm/serialization/resources/parties/types/UpdateBrandingForPartyPartiesResponseDataAttributes.mjs +6 -0
  329. package/dist/esm/serialization/resources/parties/types/UpdateBrandingForPartyPartiesResponseDataType.d.mts +7 -0
  330. package/dist/esm/serialization/resources/parties/types/UpdateBrandingForPartyPartiesResponseDataType.mjs +3 -0
  331. package/dist/esm/serialization/resources/parties/types/index.d.mts +13 -0
  332. package/dist/esm/serialization/resources/parties/types/index.mjs +13 -0
  333. package/dist/esm/serialization/resources/simulations/client/requests/InviteCustomerSimulationsRequest.d.mts +1 -0
  334. package/dist/esm/serialization/resources/simulations/client/requests/InviteCustomerSimulationsRequest.mjs +1 -0
  335. package/dist/esm/serialization/resources/simulations/types/AcceptCustomerInvitationSimulationsResponseDataAttributes.d.mts +1 -0
  336. package/dist/esm/serialization/resources/simulations/types/AcceptCustomerInvitationSimulationsResponseDataAttributes.mjs +1 -0
  337. package/dist/esm/serialization/resources/simulations/types/DeclineCustomerInvitationSimulationsResponseDataAttributes.d.mts +1 -0
  338. package/dist/esm/serialization/resources/simulations/types/DeclineCustomerInvitationSimulationsResponseDataAttributes.mjs +1 -0
  339. package/dist/esm/serialization/resources/simulations/types/InviteCustomerSimulationsRequestPermissionsItem.d.mts +1 -1
  340. package/dist/esm/serialization/resources/simulations/types/InviteCustomerSimulationsRequestPermissionsItem.mjs +6 -0
  341. package/dist/esm/serialization/resources/simulations/types/InviteCustomerSimulationsResponseDataItemAttributes.d.mts +1 -0
  342. package/dist/esm/serialization/resources/simulations/types/InviteCustomerSimulationsResponseDataItemAttributes.mjs +1 -0
  343. package/dist/esm/serialization/resources/webhooks/types/CreateWebhooksRequestEnabledEventsItem.d.mts +1 -1
  344. package/dist/esm/serialization/resources/webhooks/types/CreateWebhooksRequestEnabledEventsItem.mjs +18 -0
  345. package/dist/esm/serialization/resources/webhooks/types/CreateWebhooksResponseDataAttributesEnabledEventsItem.d.mts +1 -1
  346. package/dist/esm/serialization/resources/webhooks/types/CreateWebhooksResponseDataAttributesEnabledEventsItem.mjs +18 -0
  347. package/dist/esm/serialization/resources/webhooks/types/GetWebhooksResponseDataAttributesEnabledEventsItem.d.mts +1 -1
  348. package/dist/esm/serialization/resources/webhooks/types/GetWebhooksResponseDataAttributesEnabledEventsItem.mjs +18 -0
  349. package/dist/esm/serialization/resources/webhooks/types/RemoveWebhooksResponseDataAttributesEnabledEventsItem.d.mts +1 -1
  350. package/dist/esm/serialization/resources/webhooks/types/RemoveWebhooksResponseDataAttributesEnabledEventsItem.mjs +18 -0
  351. package/dist/esm/serialization/resources/webhooks/types/UpdateWebhooksRequestEnabledEventsItem.d.mts +1 -1
  352. package/dist/esm/serialization/resources/webhooks/types/UpdateWebhooksRequestEnabledEventsItem.mjs +18 -0
  353. package/dist/esm/serialization/resources/webhooks/types/UpdateWebhooksResponseDataAttributesEnabledEventsItem.d.mts +1 -1
  354. package/dist/esm/serialization/resources/webhooks/types/UpdateWebhooksResponseDataAttributesEnabledEventsItem.mjs +18 -0
  355. package/dist/esm/serialization/resources/webhooks/types/WebhookEnabledEventsItem.d.mts +1 -1
  356. package/dist/esm/serialization/resources/webhooks/types/WebhookEnabledEventsItem.mjs +18 -0
  357. package/dist/esm/version.d.mts +1 -1
  358. package/dist/esm/version.mjs +1 -1
  359. package/package.json +1 -1
  360. package/reference.md +200 -0
@@ -17,5 +17,11 @@ export declare const CreateInvitationLinksRequestProposedAgentsItemPermissionsIt
17
17
  readonly PartyRead: "party.read";
18
18
  readonly PartyUpdate: "party.update";
19
19
  readonly PaymentIntentsCreate: "payment_intents.create";
20
+ readonly PaymentIntentsRead: "payment_intents.read";
21
+ readonly CardPaymentsRead: "card_payments.read";
22
+ readonly RefundsRead: "refunds.read";
23
+ readonly ChargebacksRead: "chargebacks.read";
24
+ readonly MandatesRead: "mandates.read";
25
+ readonly EnrollmentRead: "enrollment.read";
20
26
  };
21
27
  export type CreateInvitationLinksRequestProposedAgentsItemPermissionsItem = (typeof CreateInvitationLinksRequestProposedAgentsItemPermissionsItem)[keyof typeof CreateInvitationLinksRequestProposedAgentsItemPermissionsItem];
@@ -18,4 +18,10 @@ export const CreateInvitationLinksRequestProposedAgentsItemPermissionsItem = {
18
18
  PartyRead: "party.read",
19
19
  PartyUpdate: "party.update",
20
20
  PaymentIntentsCreate: "payment_intents.create",
21
+ PaymentIntentsRead: "payment_intents.read",
22
+ CardPaymentsRead: "card_payments.read",
23
+ RefundsRead: "refunds.read",
24
+ ChargebacksRead: "chargebacks.read",
25
+ MandatesRead: "mandates.read",
26
+ EnrollmentRead: "enrollment.read",
21
27
  };
@@ -17,5 +17,11 @@ export declare const CreateInvitationLinksResponseDataAttributesProposedAgentsIt
17
17
  readonly PartyRead: "party.read";
18
18
  readonly PartyUpdate: "party.update";
19
19
  readonly PaymentIntentsCreate: "payment_intents.create";
20
+ readonly PaymentIntentsRead: "payment_intents.read";
21
+ readonly CardPaymentsRead: "card_payments.read";
22
+ readonly RefundsRead: "refunds.read";
23
+ readonly ChargebacksRead: "chargebacks.read";
24
+ readonly MandatesRead: "mandates.read";
25
+ readonly EnrollmentRead: "enrollment.read";
20
26
  };
21
27
  export type CreateInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem = (typeof CreateInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem)[keyof typeof CreateInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem];
@@ -18,4 +18,10 @@ export const CreateInvitationLinksResponseDataAttributesProposedAgentsItemPermis
18
18
  PartyRead: "party.read",
19
19
  PartyUpdate: "party.update",
20
20
  PaymentIntentsCreate: "payment_intents.create",
21
+ PaymentIntentsRead: "payment_intents.read",
22
+ CardPaymentsRead: "card_payments.read",
23
+ RefundsRead: "refunds.read",
24
+ ChargebacksRead: "chargebacks.read",
25
+ MandatesRead: "mandates.read",
26
+ EnrollmentRead: "enrollment.read",
21
27
  };
@@ -17,5 +17,11 @@ export declare const GetInvitationLinksResponseDataAttributesProposedAgentsItemP
17
17
  readonly PartyRead: "party.read";
18
18
  readonly PartyUpdate: "party.update";
19
19
  readonly PaymentIntentsCreate: "payment_intents.create";
20
+ readonly PaymentIntentsRead: "payment_intents.read";
21
+ readonly CardPaymentsRead: "card_payments.read";
22
+ readonly RefundsRead: "refunds.read";
23
+ readonly ChargebacksRead: "chargebacks.read";
24
+ readonly MandatesRead: "mandates.read";
25
+ readonly EnrollmentRead: "enrollment.read";
20
26
  };
21
27
  export type GetInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem = (typeof GetInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem)[keyof typeof GetInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem];
@@ -18,4 +18,10 @@ export const GetInvitationLinksResponseDataAttributesProposedAgentsItemPermissio
18
18
  PartyRead: "party.read",
19
19
  PartyUpdate: "party.update",
20
20
  PaymentIntentsCreate: "payment_intents.create",
21
+ PaymentIntentsRead: "payment_intents.read",
22
+ CardPaymentsRead: "card_payments.read",
23
+ RefundsRead: "refunds.read",
24
+ ChargebacksRead: "chargebacks.read",
25
+ MandatesRead: "mandates.read",
26
+ EnrollmentRead: "enrollment.read",
21
27
  };
@@ -17,5 +17,11 @@ export declare const ListInvitationLinksResponseDataItemAttributesProposedAgents
17
17
  readonly PartyRead: "party.read";
18
18
  readonly PartyUpdate: "party.update";
19
19
  readonly PaymentIntentsCreate: "payment_intents.create";
20
+ readonly PaymentIntentsRead: "payment_intents.read";
21
+ readonly CardPaymentsRead: "card_payments.read";
22
+ readonly RefundsRead: "refunds.read";
23
+ readonly ChargebacksRead: "chargebacks.read";
24
+ readonly MandatesRead: "mandates.read";
25
+ readonly EnrollmentRead: "enrollment.read";
20
26
  };
21
27
  export type ListInvitationLinksResponseDataItemAttributesProposedAgentsItemPermissionsItem = (typeof ListInvitationLinksResponseDataItemAttributesProposedAgentsItemPermissionsItem)[keyof typeof ListInvitationLinksResponseDataItemAttributesProposedAgentsItemPermissionsItem];
@@ -18,4 +18,10 @@ export const ListInvitationLinksResponseDataItemAttributesProposedAgentsItemPerm
18
18
  PartyRead: "party.read",
19
19
  PartyUpdate: "party.update",
20
20
  PaymentIntentsCreate: "payment_intents.create",
21
+ PaymentIntentsRead: "payment_intents.read",
22
+ CardPaymentsRead: "card_payments.read",
23
+ RefundsRead: "refunds.read",
24
+ ChargebacksRead: "chargebacks.read",
25
+ MandatesRead: "mandates.read",
26
+ EnrollmentRead: "enrollment.read",
21
27
  };
@@ -17,5 +17,11 @@ export declare const RevokeInvitationLinksResponseDataAttributesProposedAgentsIt
17
17
  readonly PartyRead: "party.read";
18
18
  readonly PartyUpdate: "party.update";
19
19
  readonly PaymentIntentsCreate: "payment_intents.create";
20
+ readonly PaymentIntentsRead: "payment_intents.read";
21
+ readonly CardPaymentsRead: "card_payments.read";
22
+ readonly RefundsRead: "refunds.read";
23
+ readonly ChargebacksRead: "chargebacks.read";
24
+ readonly MandatesRead: "mandates.read";
25
+ readonly EnrollmentRead: "enrollment.read";
20
26
  };
21
27
  export type RevokeInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem = (typeof RevokeInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem)[keyof typeof RevokeInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem];
@@ -18,4 +18,10 @@ export const RevokeInvitationLinksResponseDataAttributesProposedAgentsItemPermis
18
18
  PartyRead: "party.read",
19
19
  PartyUpdate: "party.update",
20
20
  PaymentIntentsCreate: "payment_intents.create",
21
+ PaymentIntentsRead: "payment_intents.read",
22
+ CardPaymentsRead: "card_payments.read",
23
+ RefundsRead: "refunds.read",
24
+ ChargebacksRead: "chargebacks.read",
25
+ MandatesRead: "mandates.read",
26
+ EnrollmentRead: "enrollment.read",
21
27
  };
@@ -119,6 +119,94 @@ export declare class PartiesClient {
119
119
  */
120
120
  getCompliance(request: Natural.GetCompliancePartiesRequest, requestOptions?: PartiesClient.RequestOptions): core.HttpResponsePromise<Natural.GetCompliancePartiesResponse>;
121
121
  private __getCompliance;
122
+ /**
123
+ * Get branding for your party or a party that has delegated party read permission to you
124
+ *
125
+ * @param {Natural.GetBrandingForPartyPartiesRequest} request
126
+ * @param {PartiesClient.RequestOptions} requestOptions - Request-specific configuration.
127
+ *
128
+ * @throws {@link Natural.BadRequestError}
129
+ * @throws {@link Natural.UnauthorizedError}
130
+ * @throws {@link Natural.ForbiddenError}
131
+ * @throws {@link Natural.NotFoundError}
132
+ * @throws {@link Natural.ConflictError}
133
+ * @throws {@link Natural.UnprocessableEntityError}
134
+ * @throws {@link Natural.PreconditionError}
135
+ * @throws {@link Natural.TooManyRequestsError}
136
+ * @throws {@link Natural.InternalServerError}
137
+ * @throws {@link Natural.NotImplementedError}
138
+ * @throws {@link Natural.BadGatewayError}
139
+ * @throws {@link Natural.ServiceUnavailableError}
140
+ * @throws {@link errors.NaturalError}
141
+ * @throws {@link errors.NaturalTimeoutError}
142
+ *
143
+ * @example
144
+ * await client.parties.getBrandingForParty({
145
+ * partyId: "partyId"
146
+ * })
147
+ */
148
+ getBrandingForParty(request: Natural.GetBrandingForPartyPartiesRequest, requestOptions?: PartiesClient.RequestOptions): core.HttpResponsePromise<Natural.GetBrandingForPartyPartiesResponse>;
149
+ private __getBrandingForParty;
150
+ /**
151
+ * Update branding for your party or a party that has delegated party update permission to you. Profile photo changes require a business party in Live.
152
+ *
153
+ * @param {Natural.UpdateBrandingForPartyPartiesRequest} request
154
+ * @param {PartiesClient.RequestOptions} requestOptions - Request-specific configuration.
155
+ *
156
+ * @throws {@link Natural.BadRequestError}
157
+ * @throws {@link Natural.UnauthorizedError}
158
+ * @throws {@link Natural.ForbiddenError}
159
+ * @throws {@link Natural.NotFoundError}
160
+ * @throws {@link Natural.ConflictError}
161
+ * @throws {@link Natural.UnprocessableEntityError}
162
+ * @throws {@link Natural.PreconditionError}
163
+ * @throws {@link Natural.TooManyRequestsError}
164
+ * @throws {@link Natural.InternalServerError}
165
+ * @throws {@link Natural.NotImplementedError}
166
+ * @throws {@link Natural.BadGatewayError}
167
+ * @throws {@link Natural.ServiceUnavailableError}
168
+ * @throws {@link errors.NaturalError}
169
+ * @throws {@link errors.NaturalTimeoutError}
170
+ *
171
+ * @example
172
+ * await client.parties.updateBrandingForParty({
173
+ * idempotencyKey: "Idempotency-Key",
174
+ * partyId: "partyId",
175
+ * brandColor: "#2563EB"
176
+ * })
177
+ */
178
+ updateBrandingForParty(request: Natural.UpdateBrandingForPartyPartiesRequest, requestOptions?: PartiesClient.RequestOptions): core.HttpResponsePromise<Natural.UpdateBrandingForPartyPartiesResponse>;
179
+ private __updateBrandingForParty;
180
+ /**
181
+ * Create an upload for a business profile photo in Live using your own or delegated party update permission
182
+ *
183
+ * @param {Natural.CreateBrandingPhotoUploadPartiesRequest} request
184
+ * @param {PartiesClient.RequestOptions} requestOptions - Request-specific configuration.
185
+ *
186
+ * @throws {@link Natural.BadRequestError}
187
+ * @throws {@link Natural.UnauthorizedError}
188
+ * @throws {@link Natural.ForbiddenError}
189
+ * @throws {@link Natural.NotFoundError}
190
+ * @throws {@link Natural.ConflictError}
191
+ * @throws {@link Natural.UnprocessableEntityError}
192
+ * @throws {@link Natural.PreconditionError}
193
+ * @throws {@link Natural.TooManyRequestsError}
194
+ * @throws {@link Natural.InternalServerError}
195
+ * @throws {@link Natural.NotImplementedError}
196
+ * @throws {@link Natural.BadGatewayError}
197
+ * @throws {@link Natural.ServiceUnavailableError}
198
+ * @throws {@link errors.NaturalError}
199
+ * @throws {@link errors.NaturalTimeoutError}
200
+ *
201
+ * @example
202
+ * await client.parties.createBrandingPhotoUpload({
203
+ * partyId: "partyId",
204
+ * contentType: "image/png",
205
+ * sizeBytes: 128000
206
+ * })
207
+ */
208
+ createBrandingPhotoUpload(request: Natural.CreateBrandingPhotoUploadPartiesRequest, requestOptions?: PartiesClient.RequestOptions): core.HttpResponsePromise<Natural.CreateBrandingPhotoUploadPartiesResponse>;
209
+ private __createBrandingPhotoUpload;
122
210
  /**
123
211
  * Set your party's handle
124
212
  *
@@ -8,6 +8,17 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
8
8
  step((generator = generator.apply(thisArg, _arguments || [])).next());
9
9
  });
10
10
  };
11
+ var __rest = (this && this.__rest) || function (s, e) {
12
+ var t = {};
13
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
14
+ t[p] = s[p];
15
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
16
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
17
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
18
+ t[p[i]] = s[p[i]];
19
+ }
20
+ return t;
21
+ };
11
22
  import { normalizeClientOptionsWithAuth } from "../../../../BaseClient.mjs";
12
23
  import { mergeHeaders, mergeOnlyDefinedHeaders } from "../../../../core/headers.mjs";
13
24
  import * as core from "../../../../core/index.mjs";
@@ -424,6 +435,310 @@ export class PartiesClient {
424
435
  return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/parties/{partyId}/compliance");
425
436
  });
426
437
  }
438
+ /**
439
+ * Get branding for your party or a party that has delegated party read permission to you
440
+ *
441
+ * @param {Natural.GetBrandingForPartyPartiesRequest} request
442
+ * @param {PartiesClient.RequestOptions} requestOptions - Request-specific configuration.
443
+ *
444
+ * @throws {@link Natural.BadRequestError}
445
+ * @throws {@link Natural.UnauthorizedError}
446
+ * @throws {@link Natural.ForbiddenError}
447
+ * @throws {@link Natural.NotFoundError}
448
+ * @throws {@link Natural.ConflictError}
449
+ * @throws {@link Natural.UnprocessableEntityError}
450
+ * @throws {@link Natural.PreconditionError}
451
+ * @throws {@link Natural.TooManyRequestsError}
452
+ * @throws {@link Natural.InternalServerError}
453
+ * @throws {@link Natural.NotImplementedError}
454
+ * @throws {@link Natural.BadGatewayError}
455
+ * @throws {@link Natural.ServiceUnavailableError}
456
+ * @throws {@link errors.NaturalError}
457
+ * @throws {@link errors.NaturalTimeoutError}
458
+ *
459
+ * @example
460
+ * await client.parties.getBrandingForParty({
461
+ * partyId: "partyId"
462
+ * })
463
+ */
464
+ getBrandingForParty(request, requestOptions) {
465
+ return core.HttpResponsePromise.fromPromise(this.__getBrandingForParty(request, requestOptions));
466
+ }
467
+ __getBrandingForParty(request, requestOptions) {
468
+ return __awaiter(this, void 0, void 0, function* () {
469
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
470
+ const { partyId } = request;
471
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
472
+ const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ "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 }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
473
+ const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
474
+ 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, `parties/${core.url.encodePathParam(partyId)}/branding`),
475
+ method: "GET",
476
+ headers: _headers,
477
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
478
+ 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,
479
+ 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,
480
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
481
+ fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
482
+ logging: this._options.logging,
483
+ });
484
+ if (_response.ok) {
485
+ return {
486
+ data: serializers.GetBrandingForPartyPartiesResponse.parseOrThrow(_response.body, {
487
+ unrecognizedObjectKeys: "passthrough",
488
+ allowUnrecognizedUnionMembers: true,
489
+ allowUnrecognizedEnumValues: true,
490
+ skipValidation: true,
491
+ breadcrumbsPrefix: ["response"],
492
+ }),
493
+ rawResponse: _response.rawResponse,
494
+ };
495
+ }
496
+ if (_response.error.reason === "status-code") {
497
+ switch (_response.error.statusCode) {
498
+ case 400:
499
+ throw new Natural.BadRequestError(_response.error.body, _response.rawResponse);
500
+ case 401:
501
+ throw new Natural.UnauthorizedError(_response.error.body, _response.rawResponse);
502
+ case 403:
503
+ throw new Natural.ForbiddenError(_response.error.body, _response.rawResponse);
504
+ case 404:
505
+ throw new Natural.NotFoundError(_response.error.body, _response.rawResponse);
506
+ case 409:
507
+ throw new Natural.ConflictError(_response.error.body, _response.rawResponse);
508
+ case 422:
509
+ throw new Natural.UnprocessableEntityError(_response.error.body, _response.rawResponse);
510
+ case 428:
511
+ throw new Natural.PreconditionError(_response.error.body, _response.rawResponse);
512
+ case 429:
513
+ throw new Natural.TooManyRequestsError(_response.error.body, _response.rawResponse);
514
+ case 500:
515
+ throw new Natural.InternalServerError(_response.error.body, _response.rawResponse);
516
+ case 501:
517
+ throw new Natural.NotImplementedError(_response.error.body, _response.rawResponse);
518
+ case 502:
519
+ throw new Natural.BadGatewayError(_response.error.body, _response.rawResponse);
520
+ case 503:
521
+ throw new Natural.ServiceUnavailableError(_response.error.body, _response.rawResponse);
522
+ default:
523
+ throw new errors.NaturalError({
524
+ statusCode: _response.error.statusCode,
525
+ body: _response.error.body,
526
+ rawResponse: _response.rawResponse,
527
+ });
528
+ }
529
+ }
530
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/parties/{partyId}/branding");
531
+ });
532
+ }
533
+ /**
534
+ * Update branding for your party or a party that has delegated party update permission to you. Profile photo changes require a business party in Live.
535
+ *
536
+ * @param {Natural.UpdateBrandingForPartyPartiesRequest} request
537
+ * @param {PartiesClient.RequestOptions} requestOptions - Request-specific configuration.
538
+ *
539
+ * @throws {@link Natural.BadRequestError}
540
+ * @throws {@link Natural.UnauthorizedError}
541
+ * @throws {@link Natural.ForbiddenError}
542
+ * @throws {@link Natural.NotFoundError}
543
+ * @throws {@link Natural.ConflictError}
544
+ * @throws {@link Natural.UnprocessableEntityError}
545
+ * @throws {@link Natural.PreconditionError}
546
+ * @throws {@link Natural.TooManyRequestsError}
547
+ * @throws {@link Natural.InternalServerError}
548
+ * @throws {@link Natural.NotImplementedError}
549
+ * @throws {@link Natural.BadGatewayError}
550
+ * @throws {@link Natural.ServiceUnavailableError}
551
+ * @throws {@link errors.NaturalError}
552
+ * @throws {@link errors.NaturalTimeoutError}
553
+ *
554
+ * @example
555
+ * await client.parties.updateBrandingForParty({
556
+ * idempotencyKey: "Idempotency-Key",
557
+ * partyId: "partyId",
558
+ * brandColor: "#2563EB"
559
+ * })
560
+ */
561
+ updateBrandingForParty(request, requestOptions) {
562
+ return core.HttpResponsePromise.fromPromise(this.__updateBrandingForParty(request, requestOptions));
563
+ }
564
+ __updateBrandingForParty(request, requestOptions) {
565
+ return __awaiter(this, void 0, void 0, function* () {
566
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
567
+ const { partyId, idempotencyKey } = request, _body = __rest(request, ["partyId", "idempotencyKey"]);
568
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
569
+ const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({
570
+ "Idempotency-Key": idempotencyKey,
571
+ "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,
572
+ }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
573
+ const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
574
+ 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, `parties/${core.url.encodePathParam(partyId)}/branding`),
575
+ method: "PATCH",
576
+ headers: _headers,
577
+ contentType: "application/json",
578
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
579
+ requestType: "json",
580
+ body: mergeAdditionalBodyParameters(serializers.UpdateBrandingForPartyPartiesRequest.jsonOrThrow(_body, {
581
+ unrecognizedObjectKeys: "strip",
582
+ omitUndefined: true,
583
+ }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
584
+ 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,
585
+ 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,
586
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
587
+ fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
588
+ logging: this._options.logging,
589
+ });
590
+ if (_response.ok) {
591
+ return {
592
+ data: serializers.UpdateBrandingForPartyPartiesResponse.parseOrThrow(_response.body, {
593
+ unrecognizedObjectKeys: "passthrough",
594
+ allowUnrecognizedUnionMembers: true,
595
+ allowUnrecognizedEnumValues: true,
596
+ skipValidation: true,
597
+ breadcrumbsPrefix: ["response"],
598
+ }),
599
+ rawResponse: _response.rawResponse,
600
+ };
601
+ }
602
+ if (_response.error.reason === "status-code") {
603
+ switch (_response.error.statusCode) {
604
+ case 400:
605
+ throw new Natural.BadRequestError(_response.error.body, _response.rawResponse);
606
+ case 401:
607
+ throw new Natural.UnauthorizedError(_response.error.body, _response.rawResponse);
608
+ case 403:
609
+ throw new Natural.ForbiddenError(_response.error.body, _response.rawResponse);
610
+ case 404:
611
+ throw new Natural.NotFoundError(_response.error.body, _response.rawResponse);
612
+ case 409:
613
+ throw new Natural.ConflictError(_response.error.body, _response.rawResponse);
614
+ case 422:
615
+ throw new Natural.UnprocessableEntityError(_response.error.body, _response.rawResponse);
616
+ case 428:
617
+ throw new Natural.PreconditionError(_response.error.body, _response.rawResponse);
618
+ case 429:
619
+ throw new Natural.TooManyRequestsError(_response.error.body, _response.rawResponse);
620
+ case 500:
621
+ throw new Natural.InternalServerError(_response.error.body, _response.rawResponse);
622
+ case 501:
623
+ throw new Natural.NotImplementedError(_response.error.body, _response.rawResponse);
624
+ case 502:
625
+ throw new Natural.BadGatewayError(_response.error.body, _response.rawResponse);
626
+ case 503:
627
+ throw new Natural.ServiceUnavailableError(_response.error.body, _response.rawResponse);
628
+ default:
629
+ throw new errors.NaturalError({
630
+ statusCode: _response.error.statusCode,
631
+ body: _response.error.body,
632
+ rawResponse: _response.rawResponse,
633
+ });
634
+ }
635
+ }
636
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "PATCH", "/parties/{partyId}/branding");
637
+ });
638
+ }
639
+ /**
640
+ * Create an upload for a business profile photo in Live using your own or delegated party update permission
641
+ *
642
+ * @param {Natural.CreateBrandingPhotoUploadPartiesRequest} request
643
+ * @param {PartiesClient.RequestOptions} requestOptions - Request-specific configuration.
644
+ *
645
+ * @throws {@link Natural.BadRequestError}
646
+ * @throws {@link Natural.UnauthorizedError}
647
+ * @throws {@link Natural.ForbiddenError}
648
+ * @throws {@link Natural.NotFoundError}
649
+ * @throws {@link Natural.ConflictError}
650
+ * @throws {@link Natural.UnprocessableEntityError}
651
+ * @throws {@link Natural.PreconditionError}
652
+ * @throws {@link Natural.TooManyRequestsError}
653
+ * @throws {@link Natural.InternalServerError}
654
+ * @throws {@link Natural.NotImplementedError}
655
+ * @throws {@link Natural.BadGatewayError}
656
+ * @throws {@link Natural.ServiceUnavailableError}
657
+ * @throws {@link errors.NaturalError}
658
+ * @throws {@link errors.NaturalTimeoutError}
659
+ *
660
+ * @example
661
+ * await client.parties.createBrandingPhotoUpload({
662
+ * partyId: "partyId",
663
+ * contentType: "image/png",
664
+ * sizeBytes: 128000
665
+ * })
666
+ */
667
+ createBrandingPhotoUpload(request, requestOptions) {
668
+ return core.HttpResponsePromise.fromPromise(this.__createBrandingPhotoUpload(request, requestOptions));
669
+ }
670
+ __createBrandingPhotoUpload(request, requestOptions) {
671
+ return __awaiter(this, void 0, void 0, function* () {
672
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
673
+ const { partyId } = request, _body = __rest(request, ["partyId"]);
674
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
675
+ const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ "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 }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
676
+ const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
677
+ 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, `parties/${core.url.encodePathParam(partyId)}/branding/photo-uploads`),
678
+ method: "POST",
679
+ headers: _headers,
680
+ contentType: "application/json",
681
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
682
+ requestType: "json",
683
+ body: mergeAdditionalBodyParameters(serializers.CreateBrandingPhotoUploadPartiesRequest.jsonOrThrow(_body, {
684
+ unrecognizedObjectKeys: "strip",
685
+ omitUndefined: true,
686
+ }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
687
+ 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,
688
+ 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,
689
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
690
+ fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
691
+ logging: this._options.logging,
692
+ });
693
+ if (_response.ok) {
694
+ return {
695
+ data: serializers.CreateBrandingPhotoUploadPartiesResponse.parseOrThrow(_response.body, {
696
+ unrecognizedObjectKeys: "passthrough",
697
+ allowUnrecognizedUnionMembers: true,
698
+ allowUnrecognizedEnumValues: true,
699
+ skipValidation: true,
700
+ breadcrumbsPrefix: ["response"],
701
+ }),
702
+ rawResponse: _response.rawResponse,
703
+ };
704
+ }
705
+ if (_response.error.reason === "status-code") {
706
+ switch (_response.error.statusCode) {
707
+ case 400:
708
+ throw new Natural.BadRequestError(_response.error.body, _response.rawResponse);
709
+ case 401:
710
+ throw new Natural.UnauthorizedError(_response.error.body, _response.rawResponse);
711
+ case 403:
712
+ throw new Natural.ForbiddenError(_response.error.body, _response.rawResponse);
713
+ case 404:
714
+ throw new Natural.NotFoundError(_response.error.body, _response.rawResponse);
715
+ case 409:
716
+ throw new Natural.ConflictError(_response.error.body, _response.rawResponse);
717
+ case 422:
718
+ throw new Natural.UnprocessableEntityError(_response.error.body, _response.rawResponse);
719
+ case 428:
720
+ throw new Natural.PreconditionError(_response.error.body, _response.rawResponse);
721
+ case 429:
722
+ throw new Natural.TooManyRequestsError(_response.error.body, _response.rawResponse);
723
+ case 500:
724
+ throw new Natural.InternalServerError(_response.error.body, _response.rawResponse);
725
+ case 501:
726
+ throw new Natural.NotImplementedError(_response.error.body, _response.rawResponse);
727
+ case 502:
728
+ throw new Natural.BadGatewayError(_response.error.body, _response.rawResponse);
729
+ case 503:
730
+ throw new Natural.ServiceUnavailableError(_response.error.body, _response.rawResponse);
731
+ default:
732
+ throw new errors.NaturalError({
733
+ statusCode: _response.error.statusCode,
734
+ body: _response.error.body,
735
+ rawResponse: _response.rawResponse,
736
+ });
737
+ }
738
+ }
739
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/parties/{partyId}/branding/photo-uploads");
740
+ });
741
+ }
427
742
  /**
428
743
  * Set your party's handle
429
744
  *
@@ -0,0 +1,16 @@
1
+ import type * as Natural from "../../../../index.mjs";
2
+ /**
3
+ * @example
4
+ * {
5
+ * partyId: "partyId",
6
+ * contentType: "image/png",
7
+ * sizeBytes: 128000
8
+ * }
9
+ */
10
+ export interface CreateBrandingPhotoUploadPartiesRequest {
11
+ partyId: string;
12
+ /** Avatar image MIME type */
13
+ contentType: Natural.CreateBrandingPhotoUploadPartiesRequestContentType;
14
+ /** Avatar image size in bytes */
15
+ sizeBytes: number;
16
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,9 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * partyId: "partyId"
5
+ * }
6
+ */
7
+ export interface GetBrandingForPartyPartiesRequest {
8
+ partyId: string;
9
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,16 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * idempotencyKey: "Idempotency-Key",
5
+ * partyId: "partyId",
6
+ * brandColor: "#2563EB"
7
+ * }
8
+ */
9
+ export interface UpdateBrandingForPartyPartiesRequest {
10
+ partyId: string;
11
+ /** Unique key for safely retrying a request without creating duplicates. */
12
+ idempotencyKey: string;
13
+ brandColor?: string | null;
14
+ /** Uploaded business photo object key; null removes the photo. Omit to leave unchanged. */
15
+ avatarObjectKey?: string | null;
16
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -1,6 +1,9 @@
1
+ export type { CreateBrandingPhotoUploadPartiesRequest } from "./CreateBrandingPhotoUploadPartiesRequest.mjs";
2
+ export type { GetBrandingForPartyPartiesRequest } from "./GetBrandingForPartyPartiesRequest.mjs";
1
3
  export type { GetCompliancePartiesRequest } from "./GetCompliancePartiesRequest.mjs";
2
4
  export type { ListMembersPartiesRequest } from "./ListMembersPartiesRequest.mjs";
3
5
  export type { RemoveMemberPartiesRequest } from "./RemoveMemberPartiesRequest.mjs";
4
6
  export type { SetHandlePartiesRequest } from "./SetHandlePartiesRequest.mjs";
5
7
  export type { SetLimitsPartiesRequest } from "./SetLimitsPartiesRequest.mjs";
8
+ export type { UpdateBrandingForPartyPartiesRequest } from "./UpdateBrandingForPartyPartiesRequest.mjs";
6
9
  export type { UpdMyPartyParams } from "./UpdMyPartyParams.mjs";
@@ -0,0 +1,7 @@
1
+ /** Avatar image MIME type */
2
+ export declare const CreateBrandingPhotoUploadPartiesRequestContentType: {
3
+ readonly ImageJpeg: "image/jpeg";
4
+ readonly ImagePng: "image/png";
5
+ readonly ImageWebp: "image/webp";
6
+ };
7
+ export type CreateBrandingPhotoUploadPartiesRequestContentType = (typeof CreateBrandingPhotoUploadPartiesRequestContentType)[keyof typeof CreateBrandingPhotoUploadPartiesRequestContentType];
@@ -0,0 +1,7 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ /** Avatar image MIME type */
3
+ export const CreateBrandingPhotoUploadPartiesRequestContentType = {
4
+ ImageJpeg: "image/jpeg",
5
+ ImagePng: "image/png",
6
+ ImageWebp: "image/webp",
7
+ };
@@ -0,0 +1,4 @@
1
+ import type * as Natural from "../../../index.mjs";
2
+ export interface CreateBrandingPhotoUploadPartiesResponse {
3
+ data: Natural.CreateBrandingPhotoUploadPartiesResponseData;
4
+ }