@naturalpay/sdk 1.6.25 → 1.6.26

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 (200) hide show
  1. package/dist/cjs/BaseClient.js +2 -2
  2. package/dist/cjs/api/resources/agents/client/Client.d.ts +2 -2
  3. package/dist/cjs/api/resources/agents/client/Client.js +2 -2
  4. package/dist/cjs/api/resources/agents/client/requests/CreateCustomerAgentsRequest.d.ts +4 -4
  5. package/dist/cjs/api/resources/apiKeys/types/ApiKeyAttrs.d.ts +1 -1
  6. package/dist/cjs/api/resources/apiKeys/types/ApiKeyDetailAttrs.d.ts +1 -1
  7. package/dist/cjs/api/resources/apiKeys/types/DelApiKeyAttrs.d.ts +1 -1
  8. package/dist/cjs/api/resources/apiKeys/types/NewApiKeyAttrs.d.ts +1 -1
  9. package/dist/cjs/api/resources/customers/client/Client.d.ts +1 -1
  10. package/dist/cjs/api/resources/customers/client/Client.js +1 -1
  11. package/dist/cjs/api/resources/customers/client/requests/CreateInvitationsCustomersRequest.d.ts +1 -1
  12. package/dist/cjs/api/resources/customers/types/CreateInvitationsCustomersRequestAgentsItem.d.ts +2 -2
  13. package/dist/cjs/api/resources/customers/types/CreateInvitationsCustomersRequestAgentsItemPermissions.d.ts +8 -0
  14. package/dist/cjs/api/resources/customers/types/CreateInvitationsCustomersRequestAgentsItemPermissions.js +3 -0
  15. package/dist/cjs/api/resources/customers/types/CreateInvitationsCustomersRequestAgentsItemPermissionsType.d.ts +4 -0
  16. package/dist/cjs/api/resources/customers/types/CreateInvitationsCustomersRequestAgentsItemPermissionsType.js +3 -0
  17. package/dist/cjs/api/resources/customers/types/CreateInvitationsCustomersRequestAgentsItemPermissionsTypeType.d.ts +4 -0
  18. package/dist/cjs/api/resources/customers/types/CreateInvitationsCustomersRequestAgentsItemPermissionsTypeType.js +7 -0
  19. package/dist/cjs/api/resources/customers/types/{CreateInvitationsCustomersRequestAgentsItemPermissionsItem.d.ts → CreateInvitationsCustomersRequestAgentsItemPermissionsZeroItem.d.ts} +2 -2
  20. package/dist/cjs/api/resources/customers/types/{CreateInvitationsCustomersRequestAgentsItemPermissionsItem.js → CreateInvitationsCustomersRequestAgentsItemPermissionsZeroItem.js} +2 -2
  21. package/dist/cjs/api/resources/customers/types/CustomerConnectedAgent.d.ts +1 -1
  22. package/dist/cjs/api/resources/customers/types/CustomerDelegation.d.ts +1 -1
  23. package/dist/cjs/api/resources/customers/types/CustomerDetailConnectedAgent.d.ts +1 -1
  24. package/dist/cjs/api/resources/customers/types/CustomerDetailDelegation.d.ts +1 -1
  25. package/dist/cjs/api/resources/customers/types/RemoveCustomersResponseDataAttributesAgentsItem.d.ts +1 -1
  26. package/dist/cjs/api/resources/customers/types/RemoveCustomersResponseDataAttributesDelegation.d.ts +1 -1
  27. package/dist/cjs/api/resources/customers/types/RevokeAgentCustomersResponseMetaDataAttributesAgentsItem.d.ts +1 -1
  28. package/dist/cjs/api/resources/customers/types/RevokeAgentCustomersResponseMetaDataAttributesDelegation.d.ts +1 -1
  29. package/dist/cjs/api/resources/customers/types/RevokeAgentCustomersResponseZeroDataAttributesAgentsItem.d.ts +1 -1
  30. package/dist/cjs/api/resources/customers/types/RevokeAgentCustomersResponseZeroDataAttributesDelegation.d.ts +1 -1
  31. package/dist/cjs/api/resources/customers/types/index.d.ts +4 -1
  32. package/dist/cjs/api/resources/customers/types/index.js +4 -1
  33. package/dist/cjs/api/resources/invitationLinks/client/Client.d.ts +1 -1
  34. package/dist/cjs/api/resources/invitationLinks/client/Client.js +1 -1
  35. package/dist/cjs/api/resources/invitationLinks/client/requests/CreateInvitationLinksRequest.d.ts +1 -1
  36. package/dist/cjs/api/resources/invitationLinks/types/CreateInvitationLinksRequestProposedAgentsItem.d.ts +2 -2
  37. package/dist/cjs/api/resources/invitationLinks/types/CreateInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.d.ts +3 -0
  38. package/dist/cjs/api/resources/invitationLinks/types/CreateInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.js +3 -0
  39. package/dist/cjs/api/resources/invitationLinks/types/GetInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.d.ts +3 -0
  40. package/dist/cjs/api/resources/invitationLinks/types/GetInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.js +3 -0
  41. package/dist/cjs/api/resources/invitationLinks/types/ListInvitationLinksResponseDataItemAttributesProposedAgentsItemPermissionsItem.d.ts +3 -0
  42. package/dist/cjs/api/resources/invitationLinks/types/ListInvitationLinksResponseDataItemAttributesProposedAgentsItemPermissionsItem.js +3 -0
  43. package/dist/cjs/api/resources/invitationLinks/types/RevokeInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.d.ts +3 -0
  44. package/dist/cjs/api/resources/invitationLinks/types/RevokeInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.js +3 -0
  45. package/dist/cjs/api/resources/simulations/client/requests/InviteCustomerSimulationsRequest.d.ts +2 -2
  46. package/dist/cjs/api/resources/simulations/types/DisconnectCustomerSimulationsResponseDataAttributesAgentsItem.d.ts +1 -1
  47. package/dist/cjs/api/resources/simulations/types/DisconnectCustomerSimulationsResponseDataAttributesDelegation.d.ts +1 -1
  48. package/dist/cjs/api/resources/simulations/types/InviteCustomerSimulationsRequestPermissions.d.ts +5 -0
  49. package/dist/cjs/api/resources/simulations/types/InviteCustomerSimulationsRequestPermissions.js +3 -0
  50. package/dist/cjs/api/resources/simulations/types/InviteCustomerSimulationsRequestPermissionsType.d.ts +4 -0
  51. package/dist/cjs/api/resources/simulations/types/InviteCustomerSimulationsRequestPermissionsType.js +3 -0
  52. package/dist/cjs/api/resources/simulations/types/InviteCustomerSimulationsRequestPermissionsTypeType.d.ts +4 -0
  53. package/dist/cjs/api/resources/simulations/types/InviteCustomerSimulationsRequestPermissionsTypeType.js +7 -0
  54. package/dist/{esm/api/resources/simulations/types/InviteCustomerSimulationsRequestPermissionsItem.d.mts → cjs/api/resources/simulations/types/InviteCustomerSimulationsRequestPermissionsZeroItem.d.ts} +2 -2
  55. package/dist/cjs/api/resources/simulations/types/{InviteCustomerSimulationsRequestPermissionsItem.js → InviteCustomerSimulationsRequestPermissionsZeroItem.js} +2 -2
  56. package/dist/cjs/api/resources/simulations/types/RevokeAgentConnectionSimulationsResponseMetaDataAttributesAgentsItem.d.ts +1 -1
  57. package/dist/cjs/api/resources/simulations/types/RevokeAgentConnectionSimulationsResponseMetaDataAttributesDelegation.d.ts +1 -1
  58. package/dist/cjs/api/resources/simulations/types/RevokeAgentConnectionSimulationsResponseZeroDataAttributesAgentsItem.d.ts +1 -1
  59. package/dist/cjs/api/resources/simulations/types/RevokeAgentConnectionSimulationsResponseZeroDataAttributesDelegation.d.ts +1 -1
  60. package/dist/cjs/api/resources/simulations/types/index.d.ts +4 -1
  61. package/dist/cjs/api/resources/simulations/types/index.js +4 -1
  62. package/dist/cjs/serialization/resources/agents/client/requests/CreateCustomerAgentsRequest.d.ts +1 -1
  63. package/dist/cjs/serialization/resources/agents/client/requests/CreateCustomerAgentsRequest.js +1 -1
  64. package/dist/cjs/serialization/resources/customers/types/CreateInvitationsCustomersRequestAgentsItem.d.ts +2 -2
  65. package/dist/cjs/serialization/resources/customers/types/CreateInvitationsCustomersRequestAgentsItem.js +2 -2
  66. package/dist/cjs/serialization/resources/customers/types/CreateInvitationsCustomersRequestAgentsItemPermissions.d.ts +9 -0
  67. package/dist/cjs/serialization/resources/customers/types/CreateInvitationsCustomersRequestAgentsItemPermissions.js +44 -0
  68. package/dist/cjs/serialization/resources/customers/types/CreateInvitationsCustomersRequestAgentsItemPermissionsType.d.ts +10 -0
  69. package/dist/cjs/serialization/resources/customers/types/CreateInvitationsCustomersRequestAgentsItemPermissionsType.js +42 -0
  70. package/dist/cjs/serialization/resources/customers/types/CreateInvitationsCustomersRequestAgentsItemPermissionsTypeType.d.ts +7 -0
  71. package/dist/cjs/serialization/resources/customers/types/CreateInvitationsCustomersRequestAgentsItemPermissionsTypeType.js +39 -0
  72. package/dist/cjs/serialization/resources/customers/types/{CreateInvitationsCustomersRequestAgentsItemPermissionsItem.d.ts → CreateInvitationsCustomersRequestAgentsItemPermissionsZeroItem.d.ts} +2 -2
  73. package/dist/cjs/serialization/resources/customers/types/{CreateInvitationsCustomersRequestAgentsItemPermissionsItem.js → CreateInvitationsCustomersRequestAgentsItemPermissionsZeroItem.js} +2 -2
  74. package/dist/cjs/serialization/resources/customers/types/index.d.ts +4 -1
  75. package/dist/cjs/serialization/resources/customers/types/index.js +4 -1
  76. package/dist/cjs/serialization/resources/invitationLinks/types/CreateInvitationLinksRequestProposedAgentsItem.d.ts +1 -1
  77. package/dist/cjs/serialization/resources/invitationLinks/types/CreateInvitationLinksRequestProposedAgentsItem.js +1 -1
  78. package/dist/cjs/serialization/resources/invitationLinks/types/CreateInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.d.ts +1 -1
  79. package/dist/cjs/serialization/resources/invitationLinks/types/CreateInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.js +3 -0
  80. package/dist/cjs/serialization/resources/invitationLinks/types/GetInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.d.ts +1 -1
  81. package/dist/cjs/serialization/resources/invitationLinks/types/GetInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.js +3 -0
  82. package/dist/cjs/serialization/resources/invitationLinks/types/ListInvitationLinksResponseDataItemAttributesProposedAgentsItemPermissionsItem.d.ts +1 -1
  83. package/dist/cjs/serialization/resources/invitationLinks/types/ListInvitationLinksResponseDataItemAttributesProposedAgentsItemPermissionsItem.js +3 -0
  84. package/dist/cjs/serialization/resources/invitationLinks/types/RevokeInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.d.ts +1 -1
  85. package/dist/cjs/serialization/resources/invitationLinks/types/RevokeInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.js +3 -0
  86. package/dist/cjs/serialization/resources/simulations/client/requests/InviteCustomerSimulationsRequest.d.ts +2 -2
  87. package/dist/cjs/serialization/resources/simulations/client/requests/InviteCustomerSimulationsRequest.js +2 -2
  88. package/dist/cjs/serialization/resources/simulations/types/InviteCustomerSimulationsRequestPermissions.d.ts +9 -0
  89. package/dist/cjs/serialization/resources/simulations/types/InviteCustomerSimulationsRequestPermissions.js +44 -0
  90. package/dist/cjs/serialization/resources/simulations/types/InviteCustomerSimulationsRequestPermissionsType.d.ts +10 -0
  91. package/dist/cjs/serialization/resources/simulations/types/InviteCustomerSimulationsRequestPermissionsType.js +42 -0
  92. package/dist/cjs/serialization/resources/simulations/types/InviteCustomerSimulationsRequestPermissionsTypeType.d.ts +7 -0
  93. package/dist/cjs/serialization/resources/simulations/types/InviteCustomerSimulationsRequestPermissionsTypeType.js +39 -0
  94. package/dist/cjs/serialization/resources/simulations/types/{InviteCustomerSimulationsRequestPermissionsItem.d.ts → InviteCustomerSimulationsRequestPermissionsZeroItem.d.ts} +2 -2
  95. package/dist/cjs/serialization/resources/simulations/types/{InviteCustomerSimulationsRequestPermissionsItem.js → InviteCustomerSimulationsRequestPermissionsZeroItem.js} +2 -2
  96. package/dist/cjs/serialization/resources/simulations/types/index.d.ts +4 -1
  97. package/dist/cjs/serialization/resources/simulations/types/index.js +4 -1
  98. package/dist/cjs/version.d.ts +1 -1
  99. package/dist/cjs/version.js +1 -1
  100. package/dist/esm/BaseClient.mjs +2 -2
  101. package/dist/esm/api/resources/agents/client/Client.d.mts +2 -2
  102. package/dist/esm/api/resources/agents/client/Client.mjs +2 -2
  103. package/dist/esm/api/resources/agents/client/requests/CreateCustomerAgentsRequest.d.mts +4 -4
  104. package/dist/esm/api/resources/apiKeys/types/ApiKeyAttrs.d.mts +1 -1
  105. package/dist/esm/api/resources/apiKeys/types/ApiKeyDetailAttrs.d.mts +1 -1
  106. package/dist/esm/api/resources/apiKeys/types/DelApiKeyAttrs.d.mts +1 -1
  107. package/dist/esm/api/resources/apiKeys/types/NewApiKeyAttrs.d.mts +1 -1
  108. package/dist/esm/api/resources/customers/client/Client.d.mts +1 -1
  109. package/dist/esm/api/resources/customers/client/Client.mjs +1 -1
  110. package/dist/esm/api/resources/customers/client/requests/CreateInvitationsCustomersRequest.d.mts +1 -1
  111. package/dist/esm/api/resources/customers/types/CreateInvitationsCustomersRequestAgentsItem.d.mts +2 -2
  112. package/dist/esm/api/resources/customers/types/CreateInvitationsCustomersRequestAgentsItemPermissions.d.mts +8 -0
  113. package/dist/esm/api/resources/customers/types/CreateInvitationsCustomersRequestAgentsItemPermissions.mjs +2 -0
  114. package/dist/esm/api/resources/customers/types/CreateInvitationsCustomersRequestAgentsItemPermissionsType.d.mts +4 -0
  115. package/dist/esm/api/resources/customers/types/CreateInvitationsCustomersRequestAgentsItemPermissionsType.mjs +2 -0
  116. package/dist/esm/api/resources/customers/types/CreateInvitationsCustomersRequestAgentsItemPermissionsTypeType.d.mts +4 -0
  117. package/dist/esm/api/resources/customers/types/CreateInvitationsCustomersRequestAgentsItemPermissionsTypeType.mjs +4 -0
  118. package/dist/esm/api/resources/customers/types/{CreateInvitationsCustomersRequestAgentsItemPermissionsItem.d.mts → CreateInvitationsCustomersRequestAgentsItemPermissionsZeroItem.d.mts} +2 -2
  119. package/dist/esm/api/resources/customers/types/{CreateInvitationsCustomersRequestAgentsItemPermissionsItem.mjs → CreateInvitationsCustomersRequestAgentsItemPermissionsZeroItem.mjs} +1 -1
  120. package/dist/esm/api/resources/customers/types/CustomerConnectedAgent.d.mts +1 -1
  121. package/dist/esm/api/resources/customers/types/CustomerDelegation.d.mts +1 -1
  122. package/dist/esm/api/resources/customers/types/CustomerDetailConnectedAgent.d.mts +1 -1
  123. package/dist/esm/api/resources/customers/types/CustomerDetailDelegation.d.mts +1 -1
  124. package/dist/esm/api/resources/customers/types/RemoveCustomersResponseDataAttributesAgentsItem.d.mts +1 -1
  125. package/dist/esm/api/resources/customers/types/RemoveCustomersResponseDataAttributesDelegation.d.mts +1 -1
  126. package/dist/esm/api/resources/customers/types/RevokeAgentCustomersResponseMetaDataAttributesAgentsItem.d.mts +1 -1
  127. package/dist/esm/api/resources/customers/types/RevokeAgentCustomersResponseMetaDataAttributesDelegation.d.mts +1 -1
  128. package/dist/esm/api/resources/customers/types/RevokeAgentCustomersResponseZeroDataAttributesAgentsItem.d.mts +1 -1
  129. package/dist/esm/api/resources/customers/types/RevokeAgentCustomersResponseZeroDataAttributesDelegation.d.mts +1 -1
  130. package/dist/esm/api/resources/customers/types/index.d.mts +4 -1
  131. package/dist/esm/api/resources/customers/types/index.mjs +4 -1
  132. package/dist/esm/api/resources/invitationLinks/client/Client.d.mts +1 -1
  133. package/dist/esm/api/resources/invitationLinks/client/Client.mjs +1 -1
  134. package/dist/esm/api/resources/invitationLinks/client/requests/CreateInvitationLinksRequest.d.mts +1 -1
  135. package/dist/esm/api/resources/invitationLinks/types/CreateInvitationLinksRequestProposedAgentsItem.d.mts +2 -2
  136. package/dist/esm/api/resources/invitationLinks/types/CreateInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.d.mts +3 -0
  137. package/dist/esm/api/resources/invitationLinks/types/CreateInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.mjs +3 -0
  138. package/dist/esm/api/resources/invitationLinks/types/GetInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.d.mts +3 -0
  139. package/dist/esm/api/resources/invitationLinks/types/GetInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.mjs +3 -0
  140. package/dist/esm/api/resources/invitationLinks/types/ListInvitationLinksResponseDataItemAttributesProposedAgentsItemPermissionsItem.d.mts +3 -0
  141. package/dist/esm/api/resources/invitationLinks/types/ListInvitationLinksResponseDataItemAttributesProposedAgentsItemPermissionsItem.mjs +3 -0
  142. package/dist/esm/api/resources/invitationLinks/types/RevokeInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.d.mts +3 -0
  143. package/dist/esm/api/resources/invitationLinks/types/RevokeInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.mjs +3 -0
  144. package/dist/esm/api/resources/simulations/client/requests/InviteCustomerSimulationsRequest.d.mts +2 -2
  145. package/dist/esm/api/resources/simulations/types/DisconnectCustomerSimulationsResponseDataAttributesAgentsItem.d.mts +1 -1
  146. package/dist/esm/api/resources/simulations/types/DisconnectCustomerSimulationsResponseDataAttributesDelegation.d.mts +1 -1
  147. package/dist/esm/api/resources/simulations/types/InviteCustomerSimulationsRequestPermissions.d.mts +5 -0
  148. package/dist/esm/api/resources/simulations/types/InviteCustomerSimulationsRequestPermissions.mjs +2 -0
  149. package/dist/esm/api/resources/simulations/types/InviteCustomerSimulationsRequestPermissionsType.d.mts +4 -0
  150. package/dist/esm/api/resources/simulations/types/InviteCustomerSimulationsRequestPermissionsType.mjs +2 -0
  151. package/dist/esm/api/resources/simulations/types/InviteCustomerSimulationsRequestPermissionsTypeType.d.mts +4 -0
  152. package/dist/esm/api/resources/simulations/types/InviteCustomerSimulationsRequestPermissionsTypeType.mjs +4 -0
  153. package/dist/{cjs/api/resources/simulations/types/InviteCustomerSimulationsRequestPermissionsItem.d.ts → esm/api/resources/simulations/types/InviteCustomerSimulationsRequestPermissionsZeroItem.d.mts} +2 -2
  154. package/dist/esm/api/resources/simulations/types/{InviteCustomerSimulationsRequestPermissionsItem.mjs → InviteCustomerSimulationsRequestPermissionsZeroItem.mjs} +1 -1
  155. package/dist/esm/api/resources/simulations/types/RevokeAgentConnectionSimulationsResponseMetaDataAttributesAgentsItem.d.mts +1 -1
  156. package/dist/esm/api/resources/simulations/types/RevokeAgentConnectionSimulationsResponseMetaDataAttributesDelegation.d.mts +1 -1
  157. package/dist/esm/api/resources/simulations/types/RevokeAgentConnectionSimulationsResponseZeroDataAttributesAgentsItem.d.mts +1 -1
  158. package/dist/esm/api/resources/simulations/types/RevokeAgentConnectionSimulationsResponseZeroDataAttributesDelegation.d.mts +1 -1
  159. package/dist/esm/api/resources/simulations/types/index.d.mts +4 -1
  160. package/dist/esm/api/resources/simulations/types/index.mjs +4 -1
  161. package/dist/esm/serialization/resources/agents/client/requests/CreateCustomerAgentsRequest.d.mts +1 -1
  162. package/dist/esm/serialization/resources/agents/client/requests/CreateCustomerAgentsRequest.mjs +1 -1
  163. package/dist/esm/serialization/resources/customers/types/CreateInvitationsCustomersRequestAgentsItem.d.mts +2 -2
  164. package/dist/esm/serialization/resources/customers/types/CreateInvitationsCustomersRequestAgentsItem.mjs +2 -2
  165. package/dist/esm/serialization/resources/customers/types/CreateInvitationsCustomersRequestAgentsItemPermissions.d.mts +9 -0
  166. package/dist/esm/serialization/resources/customers/types/CreateInvitationsCustomersRequestAgentsItemPermissions.mjs +8 -0
  167. package/dist/esm/serialization/resources/customers/types/CreateInvitationsCustomersRequestAgentsItemPermissionsType.d.mts +10 -0
  168. package/dist/esm/serialization/resources/customers/types/CreateInvitationsCustomersRequestAgentsItemPermissionsType.mjs +6 -0
  169. package/dist/esm/serialization/resources/customers/types/CreateInvitationsCustomersRequestAgentsItemPermissionsTypeType.d.mts +7 -0
  170. package/dist/esm/serialization/resources/customers/types/CreateInvitationsCustomersRequestAgentsItemPermissionsTypeType.mjs +3 -0
  171. package/dist/esm/serialization/resources/customers/types/{CreateInvitationsCustomersRequestAgentsItemPermissionsItem.d.mts → CreateInvitationsCustomersRequestAgentsItemPermissionsZeroItem.d.mts} +2 -2
  172. package/dist/esm/serialization/resources/customers/types/{CreateInvitationsCustomersRequestAgentsItemPermissionsItem.mjs → CreateInvitationsCustomersRequestAgentsItemPermissionsZeroItem.mjs} +1 -1
  173. package/dist/esm/serialization/resources/customers/types/index.d.mts +4 -1
  174. package/dist/esm/serialization/resources/customers/types/index.mjs +4 -1
  175. package/dist/esm/serialization/resources/invitationLinks/types/CreateInvitationLinksRequestProposedAgentsItem.d.mts +1 -1
  176. package/dist/esm/serialization/resources/invitationLinks/types/CreateInvitationLinksRequestProposedAgentsItem.mjs +1 -1
  177. package/dist/esm/serialization/resources/invitationLinks/types/CreateInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.d.mts +1 -1
  178. package/dist/esm/serialization/resources/invitationLinks/types/CreateInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.mjs +3 -0
  179. package/dist/esm/serialization/resources/invitationLinks/types/GetInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.d.mts +1 -1
  180. package/dist/esm/serialization/resources/invitationLinks/types/GetInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.mjs +3 -0
  181. package/dist/esm/serialization/resources/invitationLinks/types/ListInvitationLinksResponseDataItemAttributesProposedAgentsItemPermissionsItem.d.mts +1 -1
  182. package/dist/esm/serialization/resources/invitationLinks/types/ListInvitationLinksResponseDataItemAttributesProposedAgentsItemPermissionsItem.mjs +3 -0
  183. package/dist/esm/serialization/resources/invitationLinks/types/RevokeInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.d.mts +1 -1
  184. package/dist/esm/serialization/resources/invitationLinks/types/RevokeInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.mjs +3 -0
  185. package/dist/esm/serialization/resources/simulations/client/requests/InviteCustomerSimulationsRequest.d.mts +2 -2
  186. package/dist/esm/serialization/resources/simulations/client/requests/InviteCustomerSimulationsRequest.mjs +2 -2
  187. package/dist/esm/serialization/resources/simulations/types/InviteCustomerSimulationsRequestPermissions.d.mts +9 -0
  188. package/dist/esm/serialization/resources/simulations/types/InviteCustomerSimulationsRequestPermissions.mjs +8 -0
  189. package/dist/esm/serialization/resources/simulations/types/InviteCustomerSimulationsRequestPermissionsType.d.mts +10 -0
  190. package/dist/esm/serialization/resources/simulations/types/InviteCustomerSimulationsRequestPermissionsType.mjs +6 -0
  191. package/dist/esm/serialization/resources/simulations/types/InviteCustomerSimulationsRequestPermissionsTypeType.d.mts +7 -0
  192. package/dist/esm/serialization/resources/simulations/types/InviteCustomerSimulationsRequestPermissionsTypeType.mjs +3 -0
  193. package/dist/esm/serialization/resources/simulations/types/{InviteCustomerSimulationsRequestPermissionsItem.d.mts → InviteCustomerSimulationsRequestPermissionsZeroItem.d.mts} +2 -2
  194. package/dist/esm/serialization/resources/simulations/types/{InviteCustomerSimulationsRequestPermissionsItem.mjs → InviteCustomerSimulationsRequestPermissionsZeroItem.mjs} +1 -1
  195. package/dist/esm/serialization/resources/simulations/types/index.d.mts +4 -1
  196. package/dist/esm/serialization/resources/simulations/types/index.mjs +4 -1
  197. package/dist/esm/version.d.mts +1 -1
  198. package/dist/esm/version.mjs +1 -1
  199. package/package.json +1 -1
  200. package/reference.md +4 -4
@@ -43,8 +43,8 @@ function normalizeClientOptions(options) {
43
43
  const headers = (0, headers_js_1.mergeHeaders)({
44
44
  "X-Fern-Language": "JavaScript",
45
45
  "X-Fern-SDK-Name": "@naturalpay/sdk",
46
- "X-Fern-SDK-Version": "1.6.25",
47
- "User-Agent": "@naturalpay/sdk/1.6.25",
46
+ "X-Fern-SDK-Version": "1.6.26",
47
+ "User-Agent": "@naturalpay/sdk/1.6.26",
48
48
  "X-Fern-Runtime": core.RUNTIME.type,
49
49
  "X-Fern-Runtime-Version": core.RUNTIME.version,
50
50
  "X-Instance-ID": options === null || options === void 0 ? void 0 : options.instanceId,
@@ -223,11 +223,11 @@ export declare class AgentsClient {
223
223
  * await client.agents.createCustomer({
224
224
  * idempotencyKey: "Idempotency-Key",
225
225
  * agentId: "agentId",
226
+ * permissions: ["disputes.read"],
226
227
  * recipients: [{
227
228
  * type: "email",
228
229
  * value: "value"
229
- * }],
230
- * permissions: ["disputes.read"]
230
+ * }]
231
231
  * })
232
232
  */
233
233
  createCustomer(request: Natural.CreateCustomerAgentsRequest, requestOptions?: AgentsClient.RequestOptions): core.HttpResponsePromise<Natural.CreateCustomerAgentsResponse>;
@@ -734,11 +734,11 @@ class AgentsClient {
734
734
  * await client.agents.createCustomer({
735
735
  * idempotencyKey: "Idempotency-Key",
736
736
  * agentId: "agentId",
737
+ * permissions: ["disputes.read"],
737
738
  * recipients: [{
738
739
  * type: "email",
739
740
  * value: "value"
740
- * }],
741
- * permissions: ["disputes.read"]
741
+ * }]
742
742
  * })
743
743
  */
744
744
  createCustomer(request, requestOptions) {
@@ -4,21 +4,21 @@ import type * as Natural from "../../../../index.js";
4
4
  * {
5
5
  * idempotencyKey: "Idempotency-Key",
6
6
  * agentId: "agentId",
7
+ * permissions: ["disputes.read"],
7
8
  * recipients: [{
8
9
  * type: "email",
9
10
  * value: "value"
10
- * }],
11
- * permissions: ["disputes.read"]
11
+ * }]
12
12
  * }
13
13
  */
14
14
  export interface CreateCustomerAgentsRequest {
15
15
  agentId: string;
16
16
  /** Unique key for safely retrying a request without creating duplicates. */
17
17
  idempotencyKey: string;
18
+ /** Permissions requested for this agent. */
19
+ permissions: Natural.CreateCustomerAgentsRequestPermissionsItem[];
18
20
  /** Customer recipients to invite */
19
21
  recipients: Natural.CreateCustomerAgentsRequestRecipientsItem[];
20
- /** Permissions to request */
21
- permissions: Natural.CreateCustomerAgentsRequestPermissionsItem[];
22
22
  /** Optional per-transaction limit */
23
23
  limits?: Natural.CreateCustomerAgentsRequestLimits;
24
24
  /** Optional explicit expiry timestamp; server defaults to 7 days */
@@ -4,7 +4,7 @@ export interface ApiKeyAttrs {
4
4
  apiKeyPrefix: string;
5
5
  /** API key name. */
6
6
  name: string;
7
- /** Authorized scopes. */
7
+ /** Scopes granted to this key. */
8
8
  scopes: string[];
9
9
  /** Environment the key authenticates in: sandbox or prod. */
10
10
  environment: Natural.ApiKeyEnvironment;
@@ -4,7 +4,7 @@ export interface ApiKeyDetailAttrs {
4
4
  apiKeyPrefix: string;
5
5
  /** API key name. */
6
6
  name: string;
7
- /** Authorized scopes. */
7
+ /** Scopes granted to this key. */
8
8
  scopes: string[];
9
9
  /** Environment the key authenticates in: sandbox or prod. */
10
10
  environment: Natural.ApiKeyDetailEnvironment;
@@ -4,7 +4,7 @@ export interface DelApiKeyAttrs {
4
4
  apiKeyPrefix: string;
5
5
  /** API key name. */
6
6
  name: string;
7
- /** Authorized scopes. */
7
+ /** Scopes granted to this key. */
8
8
  scopes: string[];
9
9
  /** Environment the key authenticates in: sandbox or prod. */
10
10
  environment: Natural.DelApiKeyEnvironment;
@@ -4,7 +4,7 @@ export interface NewApiKeyAttrs {
4
4
  apiKeyPrefix: string;
5
5
  /** API key name. */
6
6
  name: string;
7
- /** Authorized scopes. */
7
+ /** Scopes granted to this key. */
8
8
  scopes: string[];
9
9
  /** Environment the key authenticates in: sandbox or prod. */
10
10
  environment: Natural.NewApiKeyEnvironment;
@@ -149,8 +149,8 @@ export declare class CustomersClient {
149
149
  * value: "ops@bistroroma.com"
150
150
  * }],
151
151
  * agents: [{
152
- * agentId: "agt_019cd1798d637a4da75dce386343931d",
153
152
  * permissions: ["payments.read", "payments.create", "external_accounts.create", "wallets.balance", "wallets.update", "party.read", "party.update"],
153
+ * agentId: "agt_019cd1798d637a4da75dce386343931d",
154
154
  * limits: {
155
155
  * perTransaction: 100000
156
156
  * }
@@ -503,8 +503,8 @@ class CustomersClient {
503
503
  * value: "ops@bistroroma.com"
504
504
  * }],
505
505
  * agents: [{
506
- * agentId: "agt_019cd1798d637a4da75dce386343931d",
507
506
  * permissions: ["payments.read", "payments.create", "external_accounts.create", "wallets.balance", "wallets.update", "party.read", "party.update"],
507
+ * agentId: "agt_019cd1798d637a4da75dce386343931d",
508
508
  * limits: {
509
509
  * perTransaction: 100000
510
510
  * }
@@ -7,8 +7,8 @@ import type * as Natural from "../../../../index.js";
7
7
  * value: "ops@bistroroma.com"
8
8
  * }],
9
9
  * agents: [{
10
- * agentId: "agt_019cd1798d637a4da75dce386343931d",
11
10
  * permissions: ["payments.read", "payments.create", "external_accounts.create", "wallets.balance", "wallets.update", "party.read", "party.update"],
11
+ * agentId: "agt_019cd1798d637a4da75dce386343931d",
12
12
  * limits: {
13
13
  * perTransaction: 100000
14
14
  * }
@@ -1,9 +1,9 @@
1
1
  import type * as Natural from "../../../index.js";
2
2
  export interface CreateInvitationsCustomersRequestAgentsItem {
3
+ /** Permissions requested for this agent. Use {"type":"ALL"} to request all currently supported customer permissions, excluding card acceptance setup and issued-card access when those features are disabled for your party. The resolved list is saved when the invitation is created and returned in the response. Future permissions are not added. Reusing a pending invitation preserves its original permissions. */
4
+ permissions: Natural.CreateInvitationsCustomersRequestAgentsItemPermissions;
3
5
  /** Agent ID (agt_*). */
4
6
  agentId: string;
5
- /** Permissions to grant this agent. */
6
- permissions: Natural.CreateInvitationsCustomersRequestAgentsItemPermissionsItem[];
7
7
  /** Transaction limits for this agent. */
8
8
  limits?: Natural.CreateInvitationsCustomersRequestAgentsItemLimits;
9
9
  }
@@ -0,0 +1,8 @@
1
+ import type * as Natural from "../../../index.js";
2
+ /**
3
+ * Permissions requested for this agent. Use {"type":"ALL"} to request all currently supported customer permissions, excluding card acceptance setup and issued-card access when those features are disabled for your party. The resolved list is saved when the invitation is created and returned in the response. Future permissions are not added. Reusing a pending invitation preserves its original permissions.
4
+ */
5
+ export type CreateInvitationsCustomersRequestAgentsItemPermissions =
6
+ /**
7
+ * Permissions requested for this agent. */
8
+ Natural.CreateInvitationsCustomersRequestAgentsItemPermissionsZeroItem[] | Natural.CreateInvitationsCustomersRequestAgentsItemPermissionsType;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ import type * as Natural from "../../../index.js";
2
+ export interface CreateInvitationsCustomersRequestAgentsItemPermissionsType {
3
+ type: Natural.CreateInvitationsCustomersRequestAgentsItemPermissionsTypeType;
4
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ export declare const CreateInvitationsCustomersRequestAgentsItemPermissionsTypeType: {
2
+ readonly All: "ALL";
3
+ };
4
+ export type CreateInvitationsCustomersRequestAgentsItemPermissionsTypeType = (typeof CreateInvitationsCustomersRequestAgentsItemPermissionsTypeType)[keyof typeof CreateInvitationsCustomersRequestAgentsItemPermissionsTypeType];
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.CreateInvitationsCustomersRequestAgentsItemPermissionsTypeType = void 0;
5
+ exports.CreateInvitationsCustomersRequestAgentsItemPermissionsTypeType = {
6
+ All: "ALL",
7
+ };
@@ -1,4 +1,4 @@
1
- export declare const CreateInvitationsCustomersRequestAgentsItemPermissionsItem: {
1
+ export declare const CreateInvitationsCustomersRequestAgentsItemPermissionsZeroItem: {
2
2
  readonly DisputesRead: "disputes.read";
3
3
  readonly DisputesCreate: "disputes.create";
4
4
  readonly PaymentsRead: "payments.read";
@@ -31,4 +31,4 @@ export declare const CreateInvitationsCustomersRequestAgentsItemPermissionsItem:
31
31
  readonly EnrollmentRead: "enrollment.read";
32
32
  readonly CardsRead: "cards.read";
33
33
  };
34
- export type CreateInvitationsCustomersRequestAgentsItemPermissionsItem = (typeof CreateInvitationsCustomersRequestAgentsItemPermissionsItem)[keyof typeof CreateInvitationsCustomersRequestAgentsItemPermissionsItem];
34
+ export type CreateInvitationsCustomersRequestAgentsItemPermissionsZeroItem = (typeof CreateInvitationsCustomersRequestAgentsItemPermissionsZeroItem)[keyof typeof CreateInvitationsCustomersRequestAgentsItemPermissionsZeroItem];
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  // This file was auto-generated by Fern from our API Definition.
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.CreateInvitationsCustomersRequestAgentsItemPermissionsItem = void 0;
5
- exports.CreateInvitationsCustomersRequestAgentsItemPermissionsItem = {
4
+ exports.CreateInvitationsCustomersRequestAgentsItemPermissionsZeroItem = void 0;
5
+ exports.CreateInvitationsCustomersRequestAgentsItemPermissionsZeroItem = {
6
6
  DisputesRead: "disputes.read",
7
7
  DisputesCreate: "disputes.create",
8
8
  PaymentsRead: "payments.read",
@@ -8,7 +8,7 @@ export interface CustomerConnectedAgent {
8
8
  handle: string | null;
9
9
  /** Connection status. */
10
10
  status: string;
11
- /** Permissions this agent holds. */
11
+ /** Permissions granted to this agent. */
12
12
  permissions: string[];
13
13
  /** Spending limits in cents (per-transaction, daily, monthly) for this agent. */
14
14
  limits: Natural.ListCustomersResponseDataItemAttributesAgentsItemLimits | null;
@@ -7,7 +7,7 @@ export interface CustomerDelegation {
7
7
  id: string;
8
8
  /** Connection status: ACTIVE, SUSPENDED (paused by the customer), REVOKED, or EXPIRED. */
9
9
  status: Natural.ListCustomersResponseDataItemAttributesDelegationStatus;
10
- /** Granted permissions. */
10
+ /** Permissions granted by the customer. */
11
11
  permissions: string[];
12
12
  /** RFC 3339 timestamp when the customer connected. */
13
13
  createdAt: Date;
@@ -8,7 +8,7 @@ export interface CustomerDetailConnectedAgent {
8
8
  handle: string | null;
9
9
  /** Connection status. */
10
10
  status: string;
11
- /** Permissions this agent holds. */
11
+ /** Permissions granted to this agent. */
12
12
  permissions: string[];
13
13
  /** Spending limits in cents (per-transaction, daily, monthly) for this agent. */
14
14
  limits: Natural.GetCustomersResponseDataAttributesAgentsItemLimits | null;
@@ -7,7 +7,7 @@ export interface CustomerDetailDelegation {
7
7
  id: string;
8
8
  /** Connection status: ACTIVE, SUSPENDED (paused by the customer), REVOKED, or EXPIRED. */
9
9
  status: Natural.GetCustomersResponseDataAttributesDelegationStatus;
10
- /** Granted permissions. */
10
+ /** Permissions granted by the customer. */
11
11
  permissions: string[];
12
12
  /** RFC 3339 timestamp when the customer connected. */
13
13
  createdAt: Date;
@@ -8,7 +8,7 @@ export interface RemoveCustomersResponseDataAttributesAgentsItem {
8
8
  handle: string | null;
9
9
  /** Connection status. */
10
10
  status: string;
11
- /** Permissions this agent holds. */
11
+ /** Permissions granted to this agent. */
12
12
  permissions: string[];
13
13
  /** Spending limits in cents (per-transaction, daily, monthly) for this agent. */
14
14
  limits: Natural.RemoveCustomersResponseDataAttributesAgentsItemLimits | null;
@@ -7,7 +7,7 @@ export interface RemoveCustomersResponseDataAttributesDelegation {
7
7
  id: string;
8
8
  /** Connection status: ACTIVE, SUSPENDED (paused by the customer), REVOKED, or EXPIRED. */
9
9
  status: Natural.RemoveCustomersResponseDataAttributesDelegationStatus;
10
- /** Granted permissions. */
10
+ /** Permissions granted by the customer. */
11
11
  permissions: string[];
12
12
  /** RFC 3339 timestamp when the customer connected. */
13
13
  createdAt: Date;
@@ -8,7 +8,7 @@ export interface RevokeAgentCustomersResponseMetaDataAttributesAgentsItem {
8
8
  handle: string | null;
9
9
  /** Connection status. */
10
10
  status: string;
11
- /** Permissions this agent holds. */
11
+ /** Permissions granted to this agent. */
12
12
  permissions: string[];
13
13
  /** Spending limits in cents (per-transaction, daily, monthly) for this agent. */
14
14
  limits: Natural.RevokeAgentCustomersResponseMetaDataAttributesAgentsItemLimits | null;
@@ -7,7 +7,7 @@ export interface RevokeAgentCustomersResponseMetaDataAttributesDelegation {
7
7
  id: string;
8
8
  /** Connection status: ACTIVE, SUSPENDED (paused by the customer), REVOKED, or EXPIRED. */
9
9
  status: Natural.RevokeAgentCustomersResponseMetaDataAttributesDelegationStatus;
10
- /** Granted permissions. */
10
+ /** Permissions granted by the customer. */
11
11
  permissions: string[];
12
12
  /** RFC 3339 timestamp when the customer connected. */
13
13
  createdAt: Date;
@@ -8,7 +8,7 @@ export interface RevokeAgentCustomersResponseZeroDataAttributesAgentsItem {
8
8
  handle: string | null;
9
9
  /** Connection status. */
10
10
  status: string;
11
- /** Permissions this agent holds. */
11
+ /** Permissions granted to this agent. */
12
12
  permissions: string[];
13
13
  /** Spending limits in cents (per-transaction, daily, monthly) for this agent. */
14
14
  limits: Natural.RevokeAgentCustomersResponseZeroDataAttributesAgentsItemLimits | null;
@@ -7,7 +7,7 @@ export interface RevokeAgentCustomersResponseZeroDataAttributesDelegation {
7
7
  id: string;
8
8
  /** Connection status: ACTIVE, SUSPENDED (paused by the customer), REVOKED, or EXPIRED. */
9
9
  status: Natural.RevokeAgentCustomersResponseZeroDataAttributesDelegationStatus;
10
- /** Granted permissions. */
10
+ /** Permissions granted by the customer. */
11
11
  permissions: string[];
12
12
  /** RFC 3339 timestamp when the customer connected. */
13
13
  createdAt: Date;
@@ -1,6 +1,9 @@
1
1
  export * from "./CreateInvitationsCustomersRequestAgentsItem.js";
2
2
  export * from "./CreateInvitationsCustomersRequestAgentsItemLimits.js";
3
- export * from "./CreateInvitationsCustomersRequestAgentsItemPermissionsItem.js";
3
+ export * from "./CreateInvitationsCustomersRequestAgentsItemPermissions.js";
4
+ export * from "./CreateInvitationsCustomersRequestAgentsItemPermissionsType.js";
5
+ export * from "./CreateInvitationsCustomersRequestAgentsItemPermissionsTypeType.js";
6
+ export * from "./CreateInvitationsCustomersRequestAgentsItemPermissionsZeroItem.js";
4
7
  export * from "./CreateInvitationsCustomersRequestDisableNotificationsItem.js";
5
8
  export * from "./CreateInvitationsCustomersRequestRecipientsItem.js";
6
9
  export * from "./CreateInvitationsCustomersRequestRecipientsItemEmail.js";
@@ -16,7 +16,10 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./CreateInvitationsCustomersRequestAgentsItem.js"), exports);
18
18
  __exportStar(require("./CreateInvitationsCustomersRequestAgentsItemLimits.js"), exports);
19
- __exportStar(require("./CreateInvitationsCustomersRequestAgentsItemPermissionsItem.js"), exports);
19
+ __exportStar(require("./CreateInvitationsCustomersRequestAgentsItemPermissions.js"), exports);
20
+ __exportStar(require("./CreateInvitationsCustomersRequestAgentsItemPermissionsType.js"), exports);
21
+ __exportStar(require("./CreateInvitationsCustomersRequestAgentsItemPermissionsTypeType.js"), exports);
22
+ __exportStar(require("./CreateInvitationsCustomersRequestAgentsItemPermissionsZeroItem.js"), exports);
20
23
  __exportStar(require("./CreateInvitationsCustomersRequestDisableNotificationsItem.js"), exports);
21
24
  __exportStar(require("./CreateInvitationsCustomersRequestRecipientsItem.js"), exports);
22
25
  __exportStar(require("./CreateInvitationsCustomersRequestRecipientsItemEmail.js"), exports);
@@ -63,8 +63,8 @@ export declare class InvitationLinksClient {
63
63
  * @example
64
64
  * await client.invitationLinks.create({
65
65
  * proposedAgents: [{
66
- * agentId: "agt_019cd1798d637a4da75dce386343931d",
67
66
  * permissions: ["payments.read", "payments.create"],
67
+ * agentId: "agt_019cd1798d637a4da75dce386343931d",
68
68
  * limits: {
69
69
  * perTransaction: 100000
70
70
  * }
@@ -191,8 +191,8 @@ class InvitationLinksClient {
191
191
  * @example
192
192
  * await client.invitationLinks.create({
193
193
  * proposedAgents: [{
194
- * agentId: "agt_019cd1798d637a4da75dce386343931d",
195
194
  * permissions: ["payments.read", "payments.create"],
195
+ * agentId: "agt_019cd1798d637a4da75dce386343931d",
196
196
  * limits: {
197
197
  * perTransaction: 100000
198
198
  * }
@@ -3,8 +3,8 @@ import type * as Natural from "../../../../index.js";
3
3
  * @example
4
4
  * {
5
5
  * proposedAgents: [{
6
- * agentId: "agt_019cd1798d637a4da75dce386343931d",
7
6
  * permissions: ["payments.read", "payments.create"],
7
+ * agentId: "agt_019cd1798d637a4da75dce386343931d",
8
8
  * limits: {
9
9
  * perTransaction: 100000
10
10
  * }
@@ -1,9 +1,9 @@
1
1
  import type * as Natural from "../../../index.js";
2
2
  export interface CreateInvitationLinksRequestProposedAgentsItem {
3
+ /** Permissions requested for this agent. */
4
+ permissions: Natural.CreateInvitationLinksRequestProposedAgentsItemPermissionsItem[];
3
5
  /** Agent ID (agt_*). */
4
6
  agentId: string;
5
- /** Permissions granted to this agent when a customer approves. */
6
- permissions: Natural.CreateInvitationLinksRequestProposedAgentsItemPermissionsItem[];
7
7
  /** Spending limits for this agent. Only `perTransaction` is supported, in cents. */
8
8
  limits?: Natural.CreateInvitationLinksRequestProposedAgentsItemLimits;
9
9
  }
@@ -30,5 +30,8 @@ export declare const CreateInvitationLinksResponseDataAttributesProposedAgentsIt
30
30
  readonly MandatesRead: "mandates.read";
31
31
  readonly EnrollmentRead: "enrollment.read";
32
32
  readonly CardsRead: "cards.read";
33
+ readonly PaymentRequestsRead: "paymentRequests.read";
34
+ readonly PaymentRequestsCreate: "paymentRequests.create";
35
+ readonly ExternalAccountsRead: "externalAccounts.read";
33
36
  };
34
37
  export type CreateInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem = (typeof CreateInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem)[keyof typeof CreateInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem];
@@ -34,4 +34,7 @@ exports.CreateInvitationLinksResponseDataAttributesProposedAgentsItemPermissions
34
34
  MandatesRead: "mandates.read",
35
35
  EnrollmentRead: "enrollment.read",
36
36
  CardsRead: "cards.read",
37
+ PaymentRequestsRead: "paymentRequests.read",
38
+ PaymentRequestsCreate: "paymentRequests.create",
39
+ ExternalAccountsRead: "externalAccounts.read",
37
40
  };
@@ -30,5 +30,8 @@ export declare const GetInvitationLinksResponseDataAttributesProposedAgentsItemP
30
30
  readonly MandatesRead: "mandates.read";
31
31
  readonly EnrollmentRead: "enrollment.read";
32
32
  readonly CardsRead: "cards.read";
33
+ readonly PaymentRequestsRead: "paymentRequests.read";
34
+ readonly PaymentRequestsCreate: "paymentRequests.create";
35
+ readonly ExternalAccountsRead: "externalAccounts.read";
33
36
  };
34
37
  export type GetInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem = (typeof GetInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem)[keyof typeof GetInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem];
@@ -34,4 +34,7 @@ exports.GetInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsIte
34
34
  MandatesRead: "mandates.read",
35
35
  EnrollmentRead: "enrollment.read",
36
36
  CardsRead: "cards.read",
37
+ PaymentRequestsRead: "paymentRequests.read",
38
+ PaymentRequestsCreate: "paymentRequests.create",
39
+ ExternalAccountsRead: "externalAccounts.read",
37
40
  };
@@ -30,5 +30,8 @@ export declare const ListInvitationLinksResponseDataItemAttributesProposedAgents
30
30
  readonly MandatesRead: "mandates.read";
31
31
  readonly EnrollmentRead: "enrollment.read";
32
32
  readonly CardsRead: "cards.read";
33
+ readonly PaymentRequestsRead: "paymentRequests.read";
34
+ readonly PaymentRequestsCreate: "paymentRequests.create";
35
+ readonly ExternalAccountsRead: "externalAccounts.read";
33
36
  };
34
37
  export type ListInvitationLinksResponseDataItemAttributesProposedAgentsItemPermissionsItem = (typeof ListInvitationLinksResponseDataItemAttributesProposedAgentsItemPermissionsItem)[keyof typeof ListInvitationLinksResponseDataItemAttributesProposedAgentsItemPermissionsItem];
@@ -34,4 +34,7 @@ exports.ListInvitationLinksResponseDataItemAttributesProposedAgentsItemPermissio
34
34
  MandatesRead: "mandates.read",
35
35
  EnrollmentRead: "enrollment.read",
36
36
  CardsRead: "cards.read",
37
+ PaymentRequestsRead: "paymentRequests.read",
38
+ PaymentRequestsCreate: "paymentRequests.create",
39
+ ExternalAccountsRead: "externalAccounts.read",
37
40
  };
@@ -30,5 +30,8 @@ export declare const RevokeInvitationLinksResponseDataAttributesProposedAgentsIt
30
30
  readonly MandatesRead: "mandates.read";
31
31
  readonly EnrollmentRead: "enrollment.read";
32
32
  readonly CardsRead: "cards.read";
33
+ readonly PaymentRequestsRead: "paymentRequests.read";
34
+ readonly PaymentRequestsCreate: "paymentRequests.create";
35
+ readonly ExternalAccountsRead: "externalAccounts.read";
33
36
  };
34
37
  export type RevokeInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem = (typeof RevokeInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem)[keyof typeof RevokeInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem];
@@ -34,4 +34,7 @@ exports.RevokeInvitationLinksResponseDataAttributesProposedAgentsItemPermissions
34
34
  MandatesRead: "mandates.read",
35
35
  EnrollmentRead: "enrollment.read",
36
36
  CardsRead: "cards.read",
37
+ PaymentRequestsRead: "paymentRequests.read",
38
+ PaymentRequestsCreate: "paymentRequests.create",
39
+ ExternalAccountsRead: "externalAccounts.read",
37
40
  };
@@ -14,8 +14,8 @@ export interface InviteCustomerSimulationsRequest {
14
14
  idempotencyKey: string;
15
15
  /** Agents (agt_*) to offer. The test customer receives a pending invitation for each. */
16
16
  agentIds: string[];
17
- /** Permissions to request for each agent. Defaults to send and view payments, and view wallets. */
18
- permissions?: Natural.InviteCustomerSimulationsRequestPermissionsItem[];
17
+ /** Permissions to request for each agent. Provide a nonempty list or use {"type":"ALL"} to request all currently supported customer permissions, excluding card acceptance setup and issued-card access when those features are disabled for your party. The resolved list is saved when the invitation is created and returned in the response. Future permissions are not added. Retrying with the same idempotency key preserves the original list. */
18
+ permissions: Natural.InviteCustomerSimulationsRequestPermissions;
19
19
  /** Test customer party type. Defaults to PERSON. */
20
20
  type?: Natural.InviteCustomerSimulationsRequestType;
21
21
  /** Message stored with each pending invitation. Sandbox does not send an invitation email. */
@@ -8,7 +8,7 @@ export interface DisconnectCustomerSimulationsResponseDataAttributesAgentsItem {
8
8
  handle: string | null;
9
9
  /** Connection status. */
10
10
  status: string;
11
- /** Permissions this agent holds. */
11
+ /** Permissions granted to this agent. */
12
12
  permissions: string[];
13
13
  /** Spending limits in cents (per-transaction, daily, monthly) for this agent. */
14
14
  limits: Natural.DisconnectCustomerSimulationsResponseDataAttributesAgentsItemLimits | null;
@@ -7,7 +7,7 @@ export interface DisconnectCustomerSimulationsResponseDataAttributesDelegation {
7
7
  id: string;
8
8
  /** Connection status: ACTIVE, SUSPENDED (paused by the customer), REVOKED, or EXPIRED. */
9
9
  status: Natural.DisconnectCustomerSimulationsResponseDataAttributesDelegationStatus;
10
- /** Granted permissions. */
10
+ /** Permissions granted by the customer. */
11
11
  permissions: string[];
12
12
  /** RFC 3339 timestamp when the customer connected. */
13
13
  createdAt: Date;
@@ -0,0 +1,5 @@
1
+ import type * as Natural from "../../../index.js";
2
+ /**
3
+ * Permissions to request for each agent. Provide a nonempty list or use {"type":"ALL"} to request all currently supported customer permissions, excluding card acceptance setup and issued-card access when those features are disabled for your party. The resolved list is saved when the invitation is created and returned in the response. Future permissions are not added. Retrying with the same idempotency key preserves the original list.
4
+ */
5
+ export type InviteCustomerSimulationsRequestPermissions = Natural.InviteCustomerSimulationsRequestPermissionsZeroItem[] | Natural.InviteCustomerSimulationsRequestPermissionsType;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ import type * as Natural from "../../../index.js";
2
+ export interface InviteCustomerSimulationsRequestPermissionsType {
3
+ type: Natural.InviteCustomerSimulationsRequestPermissionsTypeType;
4
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ export declare const InviteCustomerSimulationsRequestPermissionsTypeType: {
2
+ readonly All: "ALL";
3
+ };
4
+ export type InviteCustomerSimulationsRequestPermissionsTypeType = (typeof InviteCustomerSimulationsRequestPermissionsTypeType)[keyof typeof InviteCustomerSimulationsRequestPermissionsTypeType];
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.InviteCustomerSimulationsRequestPermissionsTypeType = void 0;
5
+ exports.InviteCustomerSimulationsRequestPermissionsTypeType = {
6
+ All: "ALL",
7
+ };
@@ -1,4 +1,4 @@
1
- export declare const InviteCustomerSimulationsRequestPermissionsItem: {
1
+ export declare const InviteCustomerSimulationsRequestPermissionsZeroItem: {
2
2
  readonly DisputesRead: "disputes.read";
3
3
  readonly DisputesCreate: "disputes.create";
4
4
  readonly PaymentsRead: "payments.read";
@@ -31,4 +31,4 @@ export declare const InviteCustomerSimulationsRequestPermissionsItem: {
31
31
  readonly EnrollmentRead: "enrollment.read";
32
32
  readonly CardsRead: "cards.read";
33
33
  };
34
- export type InviteCustomerSimulationsRequestPermissionsItem = (typeof InviteCustomerSimulationsRequestPermissionsItem)[keyof typeof InviteCustomerSimulationsRequestPermissionsItem];
34
+ export type InviteCustomerSimulationsRequestPermissionsZeroItem = (typeof InviteCustomerSimulationsRequestPermissionsZeroItem)[keyof typeof InviteCustomerSimulationsRequestPermissionsZeroItem];
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  // This file was auto-generated by Fern from our API Definition.
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.InviteCustomerSimulationsRequestPermissionsItem = void 0;
5
- exports.InviteCustomerSimulationsRequestPermissionsItem = {
4
+ exports.InviteCustomerSimulationsRequestPermissionsZeroItem = void 0;
5
+ exports.InviteCustomerSimulationsRequestPermissionsZeroItem = {
6
6
  DisputesRead: "disputes.read",
7
7
  DisputesCreate: "disputes.create",
8
8
  PaymentsRead: "payments.read",
@@ -8,7 +8,7 @@ export interface RevokeAgentConnectionSimulationsResponseMetaDataAttributesAgent
8
8
  handle: string | null;
9
9
  /** Connection status. */
10
10
  status: string;
11
- /** Permissions this agent holds. */
11
+ /** Permissions granted to this agent. */
12
12
  permissions: string[];
13
13
  /** Spending limits in cents (per-transaction, daily, monthly) for this agent. */
14
14
  limits: Natural.RevokeAgentConnectionSimulationsResponseMetaDataAttributesAgentsItemLimits | null;
@@ -7,7 +7,7 @@ export interface RevokeAgentConnectionSimulationsResponseMetaDataAttributesDeleg
7
7
  id: string;
8
8
  /** Connection status: ACTIVE, SUSPENDED (paused by the customer), REVOKED, or EXPIRED. */
9
9
  status: Natural.RevokeAgentConnectionSimulationsResponseMetaDataAttributesDelegationStatus;
10
- /** Granted permissions. */
10
+ /** Permissions granted by the customer. */
11
11
  permissions: string[];
12
12
  /** RFC 3339 timestamp when the customer connected. */
13
13
  createdAt: Date;