@naturalpay/sdk 1.6.25 → 1.6.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/BaseClient.js +2 -2
- package/dist/cjs/api/resources/agents/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/agents/client/Client.js +2 -2
- package/dist/cjs/api/resources/agents/client/requests/CreateCustomerAgentsRequest.d.ts +4 -4
- package/dist/cjs/api/resources/apiKeys/types/ApiKeyAttrs.d.ts +1 -1
- package/dist/cjs/api/resources/apiKeys/types/ApiKeyDetailAttrs.d.ts +1 -1
- package/dist/cjs/api/resources/apiKeys/types/DelApiKeyAttrs.d.ts +1 -1
- package/dist/cjs/api/resources/apiKeys/types/NewApiKeyAttrs.d.ts +1 -1
- package/dist/cjs/api/resources/customers/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/customers/client/Client.js +1 -1
- package/dist/cjs/api/resources/customers/client/requests/CreateInvitationsCustomersRequest.d.ts +1 -1
- package/dist/cjs/api/resources/customers/types/CreateInvitationsCustomersRequestAgentsItem.d.ts +2 -2
- package/dist/cjs/api/resources/customers/types/CreateInvitationsCustomersRequestAgentsItemPermissions.d.ts +11 -0
- package/dist/cjs/api/resources/customers/types/CreateInvitationsCustomersRequestAgentsItemPermissions.js +3 -0
- package/dist/cjs/api/resources/customers/types/CreateInvitationsCustomersRequestAgentsItemPermissionsType.d.ts +8 -0
- package/dist/cjs/api/resources/customers/types/CreateInvitationsCustomersRequestAgentsItemPermissionsType.js +3 -0
- package/dist/cjs/api/resources/customers/types/CreateInvitationsCustomersRequestAgentsItemPermissionsTypeType.d.ts +5 -0
- package/dist/cjs/api/resources/customers/types/CreateInvitationsCustomersRequestAgentsItemPermissionsTypeType.js +8 -0
- package/dist/cjs/api/resources/customers/types/{CreateInvitationsCustomersRequestAgentsItemPermissionsItem.d.ts → CreateInvitationsCustomersRequestAgentsItemPermissionsZeroItem.d.ts} +2 -2
- package/dist/cjs/api/resources/customers/types/{CreateInvitationsCustomersRequestAgentsItemPermissionsItem.js → CreateInvitationsCustomersRequestAgentsItemPermissionsZeroItem.js} +2 -2
- package/dist/cjs/api/resources/customers/types/CustomerConnectedAgent.d.ts +1 -1
- package/dist/cjs/api/resources/customers/types/CustomerDelegation.d.ts +1 -1
- package/dist/cjs/api/resources/customers/types/CustomerDetailConnectedAgent.d.ts +1 -1
- package/dist/cjs/api/resources/customers/types/CustomerDetailDelegation.d.ts +1 -1
- package/dist/cjs/api/resources/customers/types/RemoveCustomersResponseDataAttributesAgentsItem.d.ts +1 -1
- package/dist/cjs/api/resources/customers/types/RemoveCustomersResponseDataAttributesDelegation.d.ts +1 -1
- package/dist/cjs/api/resources/customers/types/RevokeAgentCustomersResponseMetaDataAttributesAgentsItem.d.ts +1 -1
- package/dist/cjs/api/resources/customers/types/RevokeAgentCustomersResponseMetaDataAttributesDelegation.d.ts +1 -1
- package/dist/cjs/api/resources/customers/types/RevokeAgentCustomersResponseZeroDataAttributesAgentsItem.d.ts +1 -1
- package/dist/cjs/api/resources/customers/types/RevokeAgentCustomersResponseZeroDataAttributesDelegation.d.ts +1 -1
- package/dist/cjs/api/resources/customers/types/index.d.ts +4 -1
- package/dist/cjs/api/resources/customers/types/index.js +4 -1
- package/dist/cjs/api/resources/invitationLinks/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/invitationLinks/client/Client.js +1 -1
- package/dist/cjs/api/resources/invitationLinks/client/requests/CreateInvitationLinksRequest.d.ts +1 -1
- package/dist/cjs/api/resources/invitationLinks/types/CreateInvitationLinksRequestProposedAgentsItem.d.ts +2 -2
- package/dist/cjs/api/resources/invitationLinks/types/CreateInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.d.ts +3 -0
- package/dist/cjs/api/resources/invitationLinks/types/CreateInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.js +3 -0
- package/dist/cjs/api/resources/invitationLinks/types/GetInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.d.ts +3 -0
- package/dist/cjs/api/resources/invitationLinks/types/GetInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.js +3 -0
- package/dist/cjs/api/resources/invitationLinks/types/ListInvitationLinksResponseDataItemAttributesProposedAgentsItemPermissionsItem.d.ts +3 -0
- package/dist/cjs/api/resources/invitationLinks/types/ListInvitationLinksResponseDataItemAttributesProposedAgentsItemPermissionsItem.js +3 -0
- package/dist/cjs/api/resources/invitationLinks/types/RevokeInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.d.ts +3 -0
- package/dist/cjs/api/resources/invitationLinks/types/RevokeInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.js +3 -0
- package/dist/cjs/api/resources/simulations/client/requests/InviteCustomerSimulationsRequest.d.ts +2 -2
- package/dist/cjs/api/resources/simulations/types/DisconnectCustomerSimulationsResponseDataAttributesAgentsItem.d.ts +1 -1
- package/dist/cjs/api/resources/simulations/types/DisconnectCustomerSimulationsResponseDataAttributesDelegation.d.ts +1 -1
- package/dist/cjs/api/resources/simulations/types/InviteCustomerSimulationsRequestPermissions.d.ts +11 -0
- package/dist/cjs/api/resources/simulations/types/InviteCustomerSimulationsRequestPermissions.js +3 -0
- package/dist/cjs/api/resources/simulations/types/InviteCustomerSimulationsRequestPermissionsType.d.ts +8 -0
- package/dist/cjs/api/resources/simulations/types/InviteCustomerSimulationsRequestPermissionsType.js +3 -0
- package/dist/cjs/api/resources/simulations/types/InviteCustomerSimulationsRequestPermissionsTypeType.d.ts +5 -0
- package/dist/cjs/api/resources/simulations/types/InviteCustomerSimulationsRequestPermissionsTypeType.js +8 -0
- package/dist/{esm/api/resources/simulations/types/InviteCustomerSimulationsRequestPermissionsItem.d.mts → cjs/api/resources/simulations/types/InviteCustomerSimulationsRequestPermissionsZeroItem.d.ts} +2 -2
- package/dist/cjs/api/resources/simulations/types/{InviteCustomerSimulationsRequestPermissionsItem.js → InviteCustomerSimulationsRequestPermissionsZeroItem.js} +2 -2
- package/dist/cjs/api/resources/simulations/types/RevokeAgentConnectionSimulationsResponseMetaDataAttributesAgentsItem.d.ts +1 -1
- package/dist/cjs/api/resources/simulations/types/RevokeAgentConnectionSimulationsResponseMetaDataAttributesDelegation.d.ts +1 -1
- package/dist/cjs/api/resources/simulations/types/RevokeAgentConnectionSimulationsResponseZeroDataAttributesAgentsItem.d.ts +1 -1
- package/dist/cjs/api/resources/simulations/types/RevokeAgentConnectionSimulationsResponseZeroDataAttributesDelegation.d.ts +1 -1
- package/dist/cjs/api/resources/simulations/types/index.d.ts +4 -1
- package/dist/cjs/api/resources/simulations/types/index.js +4 -1
- package/dist/cjs/serialization/resources/agents/client/requests/CreateCustomerAgentsRequest.d.ts +1 -1
- package/dist/cjs/serialization/resources/agents/client/requests/CreateCustomerAgentsRequest.js +1 -1
- package/dist/cjs/serialization/resources/customers/types/CreateInvitationsCustomersRequestAgentsItem.d.ts +2 -2
- package/dist/cjs/serialization/resources/customers/types/CreateInvitationsCustomersRequestAgentsItem.js +2 -2
- package/dist/cjs/serialization/resources/customers/types/CreateInvitationsCustomersRequestAgentsItemPermissions.d.ts +9 -0
- package/dist/cjs/serialization/resources/customers/types/CreateInvitationsCustomersRequestAgentsItemPermissions.js +44 -0
- package/dist/cjs/serialization/resources/customers/types/CreateInvitationsCustomersRequestAgentsItemPermissionsType.d.ts +10 -0
- package/dist/cjs/serialization/resources/customers/types/CreateInvitationsCustomersRequestAgentsItemPermissionsType.js +42 -0
- package/dist/cjs/serialization/resources/customers/types/CreateInvitationsCustomersRequestAgentsItemPermissionsTypeType.d.ts +7 -0
- package/dist/cjs/serialization/resources/customers/types/CreateInvitationsCustomersRequestAgentsItemPermissionsTypeType.js +39 -0
- package/dist/cjs/serialization/resources/customers/types/{CreateInvitationsCustomersRequestAgentsItemPermissionsItem.d.ts → CreateInvitationsCustomersRequestAgentsItemPermissionsZeroItem.d.ts} +2 -2
- package/dist/cjs/serialization/resources/customers/types/{CreateInvitationsCustomersRequestAgentsItemPermissionsItem.js → CreateInvitationsCustomersRequestAgentsItemPermissionsZeroItem.js} +2 -2
- package/dist/cjs/serialization/resources/customers/types/index.d.ts +4 -1
- package/dist/cjs/serialization/resources/customers/types/index.js +4 -1
- package/dist/cjs/serialization/resources/invitationLinks/types/CreateInvitationLinksRequestProposedAgentsItem.d.ts +1 -1
- package/dist/cjs/serialization/resources/invitationLinks/types/CreateInvitationLinksRequestProposedAgentsItem.js +1 -1
- package/dist/cjs/serialization/resources/invitationLinks/types/CreateInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.d.ts +1 -1
- package/dist/cjs/serialization/resources/invitationLinks/types/CreateInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.js +3 -0
- package/dist/cjs/serialization/resources/invitationLinks/types/GetInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.d.ts +1 -1
- package/dist/cjs/serialization/resources/invitationLinks/types/GetInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.js +3 -0
- package/dist/cjs/serialization/resources/invitationLinks/types/ListInvitationLinksResponseDataItemAttributesProposedAgentsItemPermissionsItem.d.ts +1 -1
- package/dist/cjs/serialization/resources/invitationLinks/types/ListInvitationLinksResponseDataItemAttributesProposedAgentsItemPermissionsItem.js +3 -0
- package/dist/cjs/serialization/resources/invitationLinks/types/RevokeInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.d.ts +1 -1
- package/dist/cjs/serialization/resources/invitationLinks/types/RevokeInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.js +3 -0
- package/dist/cjs/serialization/resources/simulations/client/requests/InviteCustomerSimulationsRequest.d.ts +2 -2
- package/dist/cjs/serialization/resources/simulations/client/requests/InviteCustomerSimulationsRequest.js +2 -2
- package/dist/cjs/serialization/resources/simulations/types/InviteCustomerSimulationsRequestPermissions.d.ts +9 -0
- package/dist/cjs/serialization/resources/simulations/types/InviteCustomerSimulationsRequestPermissions.js +44 -0
- package/dist/cjs/serialization/resources/simulations/types/InviteCustomerSimulationsRequestPermissionsType.d.ts +10 -0
- package/dist/cjs/serialization/resources/simulations/types/InviteCustomerSimulationsRequestPermissionsType.js +42 -0
- package/dist/cjs/serialization/resources/simulations/types/InviteCustomerSimulationsRequestPermissionsTypeType.d.ts +7 -0
- package/dist/cjs/serialization/resources/simulations/types/InviteCustomerSimulationsRequestPermissionsTypeType.js +39 -0
- package/dist/cjs/serialization/resources/simulations/types/{InviteCustomerSimulationsRequestPermissionsItem.d.ts → InviteCustomerSimulationsRequestPermissionsZeroItem.d.ts} +2 -2
- package/dist/cjs/serialization/resources/simulations/types/{InviteCustomerSimulationsRequestPermissionsItem.js → InviteCustomerSimulationsRequestPermissionsZeroItem.js} +2 -2
- package/dist/cjs/serialization/resources/simulations/types/index.d.ts +4 -1
- package/dist/cjs/serialization/resources/simulations/types/index.js +4 -1
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.mjs +2 -2
- package/dist/esm/api/resources/agents/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/agents/client/Client.mjs +2 -2
- package/dist/esm/api/resources/agents/client/requests/CreateCustomerAgentsRequest.d.mts +4 -4
- package/dist/esm/api/resources/apiKeys/types/ApiKeyAttrs.d.mts +1 -1
- package/dist/esm/api/resources/apiKeys/types/ApiKeyDetailAttrs.d.mts +1 -1
- package/dist/esm/api/resources/apiKeys/types/DelApiKeyAttrs.d.mts +1 -1
- package/dist/esm/api/resources/apiKeys/types/NewApiKeyAttrs.d.mts +1 -1
- package/dist/esm/api/resources/customers/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/customers/client/Client.mjs +1 -1
- package/dist/esm/api/resources/customers/client/requests/CreateInvitationsCustomersRequest.d.mts +1 -1
- package/dist/esm/api/resources/customers/types/CreateInvitationsCustomersRequestAgentsItem.d.mts +2 -2
- package/dist/esm/api/resources/customers/types/CreateInvitationsCustomersRequestAgentsItemPermissions.d.mts +11 -0
- package/dist/esm/api/resources/customers/types/CreateInvitationsCustomersRequestAgentsItemPermissions.mjs +2 -0
- package/dist/esm/api/resources/customers/types/CreateInvitationsCustomersRequestAgentsItemPermissionsType.d.mts +8 -0
- package/dist/esm/api/resources/customers/types/CreateInvitationsCustomersRequestAgentsItemPermissionsType.mjs +2 -0
- package/dist/esm/api/resources/customers/types/CreateInvitationsCustomersRequestAgentsItemPermissionsTypeType.d.mts +5 -0
- package/dist/esm/api/resources/customers/types/CreateInvitationsCustomersRequestAgentsItemPermissionsTypeType.mjs +5 -0
- package/dist/esm/api/resources/customers/types/{CreateInvitationsCustomersRequestAgentsItemPermissionsItem.d.mts → CreateInvitationsCustomersRequestAgentsItemPermissionsZeroItem.d.mts} +2 -2
- package/dist/esm/api/resources/customers/types/{CreateInvitationsCustomersRequestAgentsItemPermissionsItem.mjs → CreateInvitationsCustomersRequestAgentsItemPermissionsZeroItem.mjs} +1 -1
- package/dist/esm/api/resources/customers/types/CustomerConnectedAgent.d.mts +1 -1
- package/dist/esm/api/resources/customers/types/CustomerDelegation.d.mts +1 -1
- package/dist/esm/api/resources/customers/types/CustomerDetailConnectedAgent.d.mts +1 -1
- package/dist/esm/api/resources/customers/types/CustomerDetailDelegation.d.mts +1 -1
- package/dist/esm/api/resources/customers/types/RemoveCustomersResponseDataAttributesAgentsItem.d.mts +1 -1
- package/dist/esm/api/resources/customers/types/RemoveCustomersResponseDataAttributesDelegation.d.mts +1 -1
- package/dist/esm/api/resources/customers/types/RevokeAgentCustomersResponseMetaDataAttributesAgentsItem.d.mts +1 -1
- package/dist/esm/api/resources/customers/types/RevokeAgentCustomersResponseMetaDataAttributesDelegation.d.mts +1 -1
- package/dist/esm/api/resources/customers/types/RevokeAgentCustomersResponseZeroDataAttributesAgentsItem.d.mts +1 -1
- package/dist/esm/api/resources/customers/types/RevokeAgentCustomersResponseZeroDataAttributesDelegation.d.mts +1 -1
- package/dist/esm/api/resources/customers/types/index.d.mts +4 -1
- package/dist/esm/api/resources/customers/types/index.mjs +4 -1
- package/dist/esm/api/resources/invitationLinks/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/invitationLinks/client/Client.mjs +1 -1
- package/dist/esm/api/resources/invitationLinks/client/requests/CreateInvitationLinksRequest.d.mts +1 -1
- package/dist/esm/api/resources/invitationLinks/types/CreateInvitationLinksRequestProposedAgentsItem.d.mts +2 -2
- package/dist/esm/api/resources/invitationLinks/types/CreateInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.d.mts +3 -0
- package/dist/esm/api/resources/invitationLinks/types/CreateInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.mjs +3 -0
- package/dist/esm/api/resources/invitationLinks/types/GetInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.d.mts +3 -0
- package/dist/esm/api/resources/invitationLinks/types/GetInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.mjs +3 -0
- package/dist/esm/api/resources/invitationLinks/types/ListInvitationLinksResponseDataItemAttributesProposedAgentsItemPermissionsItem.d.mts +3 -0
- package/dist/esm/api/resources/invitationLinks/types/ListInvitationLinksResponseDataItemAttributesProposedAgentsItemPermissionsItem.mjs +3 -0
- package/dist/esm/api/resources/invitationLinks/types/RevokeInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.d.mts +3 -0
- package/dist/esm/api/resources/invitationLinks/types/RevokeInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.mjs +3 -0
- package/dist/esm/api/resources/simulations/client/requests/InviteCustomerSimulationsRequest.d.mts +2 -2
- package/dist/esm/api/resources/simulations/types/DisconnectCustomerSimulationsResponseDataAttributesAgentsItem.d.mts +1 -1
- package/dist/esm/api/resources/simulations/types/DisconnectCustomerSimulationsResponseDataAttributesDelegation.d.mts +1 -1
- package/dist/esm/api/resources/simulations/types/InviteCustomerSimulationsRequestPermissions.d.mts +11 -0
- package/dist/esm/api/resources/simulations/types/InviteCustomerSimulationsRequestPermissions.mjs +2 -0
- package/dist/esm/api/resources/simulations/types/InviteCustomerSimulationsRequestPermissionsType.d.mts +8 -0
- package/dist/esm/api/resources/simulations/types/InviteCustomerSimulationsRequestPermissionsType.mjs +2 -0
- package/dist/esm/api/resources/simulations/types/InviteCustomerSimulationsRequestPermissionsTypeType.d.mts +5 -0
- package/dist/esm/api/resources/simulations/types/InviteCustomerSimulationsRequestPermissionsTypeType.mjs +5 -0
- package/dist/{cjs/api/resources/simulations/types/InviteCustomerSimulationsRequestPermissionsItem.d.ts → esm/api/resources/simulations/types/InviteCustomerSimulationsRequestPermissionsZeroItem.d.mts} +2 -2
- package/dist/esm/api/resources/simulations/types/{InviteCustomerSimulationsRequestPermissionsItem.mjs → InviteCustomerSimulationsRequestPermissionsZeroItem.mjs} +1 -1
- package/dist/esm/api/resources/simulations/types/RevokeAgentConnectionSimulationsResponseMetaDataAttributesAgentsItem.d.mts +1 -1
- package/dist/esm/api/resources/simulations/types/RevokeAgentConnectionSimulationsResponseMetaDataAttributesDelegation.d.mts +1 -1
- package/dist/esm/api/resources/simulations/types/RevokeAgentConnectionSimulationsResponseZeroDataAttributesAgentsItem.d.mts +1 -1
- package/dist/esm/api/resources/simulations/types/RevokeAgentConnectionSimulationsResponseZeroDataAttributesDelegation.d.mts +1 -1
- package/dist/esm/api/resources/simulations/types/index.d.mts +4 -1
- package/dist/esm/api/resources/simulations/types/index.mjs +4 -1
- package/dist/esm/serialization/resources/agents/client/requests/CreateCustomerAgentsRequest.d.mts +1 -1
- package/dist/esm/serialization/resources/agents/client/requests/CreateCustomerAgentsRequest.mjs +1 -1
- package/dist/esm/serialization/resources/customers/types/CreateInvitationsCustomersRequestAgentsItem.d.mts +2 -2
- package/dist/esm/serialization/resources/customers/types/CreateInvitationsCustomersRequestAgentsItem.mjs +2 -2
- package/dist/esm/serialization/resources/customers/types/CreateInvitationsCustomersRequestAgentsItemPermissions.d.mts +9 -0
- package/dist/esm/serialization/resources/customers/types/CreateInvitationsCustomersRequestAgentsItemPermissions.mjs +8 -0
- package/dist/esm/serialization/resources/customers/types/CreateInvitationsCustomersRequestAgentsItemPermissionsType.d.mts +10 -0
- package/dist/esm/serialization/resources/customers/types/CreateInvitationsCustomersRequestAgentsItemPermissionsType.mjs +6 -0
- package/dist/esm/serialization/resources/customers/types/CreateInvitationsCustomersRequestAgentsItemPermissionsTypeType.d.mts +7 -0
- package/dist/esm/serialization/resources/customers/types/CreateInvitationsCustomersRequestAgentsItemPermissionsTypeType.mjs +3 -0
- package/dist/esm/serialization/resources/customers/types/{CreateInvitationsCustomersRequestAgentsItemPermissionsItem.d.mts → CreateInvitationsCustomersRequestAgentsItemPermissionsZeroItem.d.mts} +2 -2
- package/dist/esm/serialization/resources/customers/types/{CreateInvitationsCustomersRequestAgentsItemPermissionsItem.mjs → CreateInvitationsCustomersRequestAgentsItemPermissionsZeroItem.mjs} +1 -1
- package/dist/esm/serialization/resources/customers/types/index.d.mts +4 -1
- package/dist/esm/serialization/resources/customers/types/index.mjs +4 -1
- package/dist/esm/serialization/resources/invitationLinks/types/CreateInvitationLinksRequestProposedAgentsItem.d.mts +1 -1
- package/dist/esm/serialization/resources/invitationLinks/types/CreateInvitationLinksRequestProposedAgentsItem.mjs +1 -1
- package/dist/esm/serialization/resources/invitationLinks/types/CreateInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.d.mts +1 -1
- package/dist/esm/serialization/resources/invitationLinks/types/CreateInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.mjs +3 -0
- package/dist/esm/serialization/resources/invitationLinks/types/GetInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.d.mts +1 -1
- package/dist/esm/serialization/resources/invitationLinks/types/GetInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.mjs +3 -0
- package/dist/esm/serialization/resources/invitationLinks/types/ListInvitationLinksResponseDataItemAttributesProposedAgentsItemPermissionsItem.d.mts +1 -1
- package/dist/esm/serialization/resources/invitationLinks/types/ListInvitationLinksResponseDataItemAttributesProposedAgentsItemPermissionsItem.mjs +3 -0
- package/dist/esm/serialization/resources/invitationLinks/types/RevokeInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.d.mts +1 -1
- package/dist/esm/serialization/resources/invitationLinks/types/RevokeInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.mjs +3 -0
- package/dist/esm/serialization/resources/simulations/client/requests/InviteCustomerSimulationsRequest.d.mts +2 -2
- package/dist/esm/serialization/resources/simulations/client/requests/InviteCustomerSimulationsRequest.mjs +2 -2
- package/dist/esm/serialization/resources/simulations/types/InviteCustomerSimulationsRequestPermissions.d.mts +9 -0
- package/dist/esm/serialization/resources/simulations/types/InviteCustomerSimulationsRequestPermissions.mjs +8 -0
- package/dist/esm/serialization/resources/simulations/types/InviteCustomerSimulationsRequestPermissionsType.d.mts +10 -0
- package/dist/esm/serialization/resources/simulations/types/InviteCustomerSimulationsRequestPermissionsType.mjs +6 -0
- package/dist/esm/serialization/resources/simulations/types/InviteCustomerSimulationsRequestPermissionsTypeType.d.mts +7 -0
- package/dist/esm/serialization/resources/simulations/types/InviteCustomerSimulationsRequestPermissionsTypeType.mjs +3 -0
- package/dist/esm/serialization/resources/simulations/types/{InviteCustomerSimulationsRequestPermissionsItem.d.mts → InviteCustomerSimulationsRequestPermissionsZeroItem.d.mts} +2 -2
- package/dist/esm/serialization/resources/simulations/types/{InviteCustomerSimulationsRequestPermissionsItem.mjs → InviteCustomerSimulationsRequestPermissionsZeroItem.mjs} +1 -1
- package/dist/esm/serialization/resources/simulations/types/index.d.mts +4 -1
- package/dist/esm/serialization/resources/simulations/types/index.mjs +4 -1
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +4 -4
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
19
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
+
var ownKeys = function(o) {
|
|
21
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
+
var ar = [];
|
|
23
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
+
return ar;
|
|
25
|
+
};
|
|
26
|
+
return ownKeys(o);
|
|
27
|
+
};
|
|
28
|
+
return function (mod) {
|
|
29
|
+
if (mod && mod.__esModule) return mod;
|
|
30
|
+
var result = {};
|
|
31
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
+
__setModuleDefault(result, mod);
|
|
33
|
+
return result;
|
|
34
|
+
};
|
|
35
|
+
})();
|
|
36
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
+
exports.InviteCustomerSimulationsRequestPermissionsTypeType = void 0;
|
|
38
|
+
const core = __importStar(require("../../../../core/index.js"));
|
|
39
|
+
exports.InviteCustomerSimulationsRequestPermissionsTypeType = core.serialization.enum_(["ALL"]);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type * as Natural from "../../../../api/index.js";
|
|
2
2
|
import * as core from "../../../../core/index.js";
|
|
3
3
|
import type * as serializers from "../../../index.js";
|
|
4
|
-
export declare const
|
|
5
|
-
export declare namespace
|
|
4
|
+
export declare const InviteCustomerSimulationsRequestPermissionsZeroItem: core.serialization.Schema<serializers.InviteCustomerSimulationsRequestPermissionsZeroItem.Raw, Natural.InviteCustomerSimulationsRequestPermissionsZeroItem>;
|
|
5
|
+
export declare namespace InviteCustomerSimulationsRequestPermissionsZeroItem {
|
|
6
6
|
type Raw = "disputes.read" | "disputes.create" | "payments.read" | "payments.create" | "external_parties.read" | "external_parties.create" | "direct.read" | "direct.create" | "external_accounts.create" | "wallets.read" | "wallets.balance" | "wallets.create" | "wallets.update" | "wallets.fund" | "wallets.deposit" | "wallets.transfer" | "wallets.withdraw" | "party.read" | "party.update" | "payment_intents.create" | "payment_intents.read" | "card_payments.read" | "refunds.read" | "refunds.create" | "voice_sessions.read" | "voice_sessions.create" | "chargebacks.read" | "chargebacks.respond" | "mandates.read" | "enrollment.read" | "cards.read";
|
|
7
7
|
}
|
|
@@ -34,9 +34,9 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
34
34
|
};
|
|
35
35
|
})();
|
|
36
36
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
-
exports.
|
|
37
|
+
exports.InviteCustomerSimulationsRequestPermissionsZeroItem = void 0;
|
|
38
38
|
const core = __importStar(require("../../../../core/index.js"));
|
|
39
|
-
exports.
|
|
39
|
+
exports.InviteCustomerSimulationsRequestPermissionsZeroItem = core.serialization.enum_([
|
|
40
40
|
"disputes.read",
|
|
41
41
|
"disputes.create",
|
|
42
42
|
"payments.read",
|
|
@@ -173,7 +173,10 @@ export * from "./FundCustomerSimulationsResponseDataRelationshipsWallet.js";
|
|
|
173
173
|
export * from "./FundCustomerSimulationsResponseDataRelationshipsWalletData.js";
|
|
174
174
|
export * from "./FundCustomerSimulationsResponseDataRelationshipsWalletDataType.js";
|
|
175
175
|
export * from "./FundCustomerSimulationsResponseDataType.js";
|
|
176
|
-
export * from "./
|
|
176
|
+
export * from "./InviteCustomerSimulationsRequestPermissions.js";
|
|
177
|
+
export * from "./InviteCustomerSimulationsRequestPermissionsType.js";
|
|
178
|
+
export * from "./InviteCustomerSimulationsRequestPermissionsTypeType.js";
|
|
179
|
+
export * from "./InviteCustomerSimulationsRequestPermissionsZeroItem.js";
|
|
177
180
|
export * from "./InviteCustomerSimulationsRequestType.js";
|
|
178
181
|
export * from "./InviteCustomerSimulationsResponse.js";
|
|
179
182
|
export * from "./InviteCustomerSimulationsResponseDataItem.js";
|
|
@@ -189,7 +189,10 @@ __exportStar(require("./FundCustomerSimulationsResponseDataRelationshipsWallet.j
|
|
|
189
189
|
__exportStar(require("./FundCustomerSimulationsResponseDataRelationshipsWalletData.js"), exports);
|
|
190
190
|
__exportStar(require("./FundCustomerSimulationsResponseDataRelationshipsWalletDataType.js"), exports);
|
|
191
191
|
__exportStar(require("./FundCustomerSimulationsResponseDataType.js"), exports);
|
|
192
|
-
__exportStar(require("./
|
|
192
|
+
__exportStar(require("./InviteCustomerSimulationsRequestPermissions.js"), exports);
|
|
193
|
+
__exportStar(require("./InviteCustomerSimulationsRequestPermissionsType.js"), exports);
|
|
194
|
+
__exportStar(require("./InviteCustomerSimulationsRequestPermissionsTypeType.js"), exports);
|
|
195
|
+
__exportStar(require("./InviteCustomerSimulationsRequestPermissionsZeroItem.js"), exports);
|
|
193
196
|
__exportStar(require("./InviteCustomerSimulationsRequestType.js"), exports);
|
|
194
197
|
__exportStar(require("./InviteCustomerSimulationsResponse.js"), exports);
|
|
195
198
|
__exportStar(require("./InviteCustomerSimulationsResponseDataItem.js"), exports);
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "1.6.
|
|
1
|
+
export declare const SDK_VERSION = "1.6.27";
|
package/dist/cjs/version.js
CHANGED
package/dist/esm/BaseClient.mjs
CHANGED
|
@@ -6,8 +6,8 @@ export function normalizeClientOptions(options) {
|
|
|
6
6
|
const headers = mergeHeaders({
|
|
7
7
|
"X-Fern-Language": "JavaScript",
|
|
8
8
|
"X-Fern-SDK-Name": "@naturalpay/sdk",
|
|
9
|
-
"X-Fern-SDK-Version": "1.6.
|
|
10
|
-
"User-Agent": "@naturalpay/sdk/1.6.
|
|
9
|
+
"X-Fern-SDK-Version": "1.6.27",
|
|
10
|
+
"User-Agent": "@naturalpay/sdk/1.6.27",
|
|
11
11
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
12
12
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
13
13
|
"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>;
|
|
@@ -698,11 +698,11 @@ export class AgentsClient {
|
|
|
698
698
|
* await client.agents.createCustomer({
|
|
699
699
|
* idempotencyKey: "Idempotency-Key",
|
|
700
700
|
* agentId: "agentId",
|
|
701
|
+
* permissions: ["disputes.read"],
|
|
701
702
|
* recipients: [{
|
|
702
703
|
* type: "email",
|
|
703
704
|
* value: "value"
|
|
704
|
-
* }]
|
|
705
|
-
* permissions: ["disputes.read"]
|
|
705
|
+
* }]
|
|
706
706
|
* })
|
|
707
707
|
*/
|
|
708
708
|
createCustomer(request, requestOptions) {
|
|
@@ -4,21 +4,21 @@ import type * as Natural from "../../../../index.mjs";
|
|
|
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
|
-
/**
|
|
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
|
-
/**
|
|
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
|
-
/**
|
|
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
|
-
/**
|
|
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
|
* }
|
|
@@ -467,8 +467,8 @@ export class CustomersClient {
|
|
|
467
467
|
* value: "ops@bistroroma.com"
|
|
468
468
|
* }],
|
|
469
469
|
* agents: [{
|
|
470
|
-
* agentId: "agt_019cd1798d637a4da75dce386343931d",
|
|
471
470
|
* permissions: ["payments.read", "payments.create", "external_accounts.create", "wallets.balance", "wallets.update", "party.read", "party.update"],
|
|
471
|
+
* agentId: "agt_019cd1798d637a4da75dce386343931d",
|
|
472
472
|
* limits: {
|
|
473
473
|
* perTransaction: 100000
|
|
474
474
|
* }
|
package/dist/esm/api/resources/customers/client/requests/CreateInvitationsCustomersRequest.d.mts
CHANGED
|
@@ -7,8 +7,8 @@ import type * as Natural from "../../../../index.mjs";
|
|
|
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
|
* }
|
package/dist/esm/api/resources/customers/types/CreateInvitationsCustomersRequestAgentsItem.d.mts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type * as Natural from "../../../index.mjs";
|
|
2
2
|
export interface CreateInvitationsCustomersRequestAgentsItem {
|
|
3
|
+
/** Permissions for this agent, or `{"type":"ALL"}` for all of them. Fixed when the invitation is created. */
|
|
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,11 @@
|
|
|
1
|
+
import type * as Natural from "../../../index.mjs";
|
|
2
|
+
/**
|
|
3
|
+
* Permissions for this agent, or `{"type":"ALL"}` for all of them. Fixed when the invitation is created.
|
|
4
|
+
*/
|
|
5
|
+
export type CreateInvitationsCustomersRequestAgentsItemPermissions =
|
|
6
|
+
/**
|
|
7
|
+
* Specific permissions to request. */
|
|
8
|
+
Natural.CreateInvitationsCustomersRequestAgentsItemPermissionsZeroItem[]
|
|
9
|
+
/**
|
|
10
|
+
* Request every permission available to your party today. */
|
|
11
|
+
| Natural.CreateInvitationsCustomersRequestAgentsItemPermissionsType;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type * as Natural from "../../../index.mjs";
|
|
2
|
+
/**
|
|
3
|
+
* Request every permission available to your party today.
|
|
4
|
+
*/
|
|
5
|
+
export interface CreateInvitationsCustomersRequestAgentsItemPermissionsType {
|
|
6
|
+
/** Set to `ALL`. */
|
|
7
|
+
type: Natural.CreateInvitationsCustomersRequestAgentsItemPermissionsTypeType;
|
|
8
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/** Set to `ALL`. */
|
|
2
|
+
export declare const CreateInvitationsCustomersRequestAgentsItemPermissionsTypeType: {
|
|
3
|
+
readonly All: "ALL";
|
|
4
|
+
};
|
|
5
|
+
export type CreateInvitationsCustomersRequestAgentsItemPermissionsTypeType = (typeof CreateInvitationsCustomersRequestAgentsItemPermissionsTypeType)[keyof typeof CreateInvitationsCustomersRequestAgentsItemPermissionsTypeType];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const
|
|
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
|
|
34
|
+
export type CreateInvitationsCustomersRequestAgentsItemPermissionsZeroItem = (typeof CreateInvitationsCustomersRequestAgentsItemPermissionsZeroItem)[keyof typeof CreateInvitationsCustomersRequestAgentsItemPermissionsZeroItem];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
-
export const
|
|
2
|
+
export const CreateInvitationsCustomersRequestAgentsItemPermissionsZeroItem = {
|
|
3
3
|
DisputesRead: "disputes.read",
|
|
4
4
|
DisputesCreate: "disputes.create",
|
|
5
5
|
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
|
|
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
|
-
/**
|
|
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
|
|
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
|
-
/**
|
|
10
|
+
/** Permissions granted by the customer. */
|
|
11
11
|
permissions: string[];
|
|
12
12
|
/** RFC 3339 timestamp when the customer connected. */
|
|
13
13
|
createdAt: Date;
|
package/dist/esm/api/resources/customers/types/RemoveCustomersResponseDataAttributesAgentsItem.d.mts
CHANGED
|
@@ -8,7 +8,7 @@ export interface RemoveCustomersResponseDataAttributesAgentsItem {
|
|
|
8
8
|
handle: string | null;
|
|
9
9
|
/** Connection status. */
|
|
10
10
|
status: string;
|
|
11
|
-
/** Permissions this agent
|
|
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;
|
package/dist/esm/api/resources/customers/types/RemoveCustomersResponseDataAttributesDelegation.d.mts
CHANGED
|
@@ -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
|
-
/**
|
|
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
|
|
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
|
-
/**
|
|
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
|
|
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
|
-
/**
|
|
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.mjs";
|
|
2
2
|
export * from "./CreateInvitationsCustomersRequestAgentsItemLimits.mjs";
|
|
3
|
-
export * from "./
|
|
3
|
+
export * from "./CreateInvitationsCustomersRequestAgentsItemPermissions.mjs";
|
|
4
|
+
export * from "./CreateInvitationsCustomersRequestAgentsItemPermissionsType.mjs";
|
|
5
|
+
export * from "./CreateInvitationsCustomersRequestAgentsItemPermissionsTypeType.mjs";
|
|
6
|
+
export * from "./CreateInvitationsCustomersRequestAgentsItemPermissionsZeroItem.mjs";
|
|
4
7
|
export * from "./CreateInvitationsCustomersRequestDisableNotificationsItem.mjs";
|
|
5
8
|
export * from "./CreateInvitationsCustomersRequestRecipientsItem.mjs";
|
|
6
9
|
export * from "./CreateInvitationsCustomersRequestRecipientsItemEmail.mjs";
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
export * from "./CreateInvitationsCustomersRequestAgentsItem.mjs";
|
|
2
2
|
export * from "./CreateInvitationsCustomersRequestAgentsItemLimits.mjs";
|
|
3
|
-
export * from "./
|
|
3
|
+
export * from "./CreateInvitationsCustomersRequestAgentsItemPermissions.mjs";
|
|
4
|
+
export * from "./CreateInvitationsCustomersRequestAgentsItemPermissionsType.mjs";
|
|
5
|
+
export * from "./CreateInvitationsCustomersRequestAgentsItemPermissionsTypeType.mjs";
|
|
6
|
+
export * from "./CreateInvitationsCustomersRequestAgentsItemPermissionsZeroItem.mjs";
|
|
4
7
|
export * from "./CreateInvitationsCustomersRequestDisableNotificationsItem.mjs";
|
|
5
8
|
export * from "./CreateInvitationsCustomersRequestRecipientsItem.mjs";
|
|
6
9
|
export * from "./CreateInvitationsCustomersRequestRecipientsItemEmail.mjs";
|
|
@@ -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
|
* }
|
|
@@ -155,8 +155,8 @@ export class InvitationLinksClient {
|
|
|
155
155
|
* @example
|
|
156
156
|
* await client.invitationLinks.create({
|
|
157
157
|
* proposedAgents: [{
|
|
158
|
-
* agentId: "agt_019cd1798d637a4da75dce386343931d",
|
|
159
158
|
* permissions: ["payments.read", "payments.create"],
|
|
159
|
+
* agentId: "agt_019cd1798d637a4da75dce386343931d",
|
|
160
160
|
* limits: {
|
|
161
161
|
* perTransaction: 100000
|
|
162
162
|
* }
|
package/dist/esm/api/resources/invitationLinks/client/requests/CreateInvitationLinksRequest.d.mts
CHANGED
|
@@ -3,8 +3,8 @@ import type * as Natural from "../../../../index.mjs";
|
|
|
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.mjs";
|
|
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];
|
|
@@ -31,4 +31,7 @@ export const CreateInvitationLinksResponseDataAttributesProposedAgentsItemPermis
|
|
|
31
31
|
MandatesRead: "mandates.read",
|
|
32
32
|
EnrollmentRead: "enrollment.read",
|
|
33
33
|
CardsRead: "cards.read",
|
|
34
|
+
PaymentRequestsRead: "paymentRequests.read",
|
|
35
|
+
PaymentRequestsCreate: "paymentRequests.create",
|
|
36
|
+
ExternalAccountsRead: "externalAccounts.read",
|
|
34
37
|
};
|
|
@@ -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];
|
|
@@ -31,4 +31,7 @@ export const GetInvitationLinksResponseDataAttributesProposedAgentsItemPermissio
|
|
|
31
31
|
MandatesRead: "mandates.read",
|
|
32
32
|
EnrollmentRead: "enrollment.read",
|
|
33
33
|
CardsRead: "cards.read",
|
|
34
|
+
PaymentRequestsRead: "paymentRequests.read",
|
|
35
|
+
PaymentRequestsCreate: "paymentRequests.create",
|
|
36
|
+
ExternalAccountsRead: "externalAccounts.read",
|
|
34
37
|
};
|
|
@@ -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];
|
|
@@ -31,4 +31,7 @@ export const ListInvitationLinksResponseDataItemAttributesProposedAgentsItemPerm
|
|
|
31
31
|
MandatesRead: "mandates.read",
|
|
32
32
|
EnrollmentRead: "enrollment.read",
|
|
33
33
|
CardsRead: "cards.read",
|
|
34
|
+
PaymentRequestsRead: "paymentRequests.read",
|
|
35
|
+
PaymentRequestsCreate: "paymentRequests.create",
|
|
36
|
+
ExternalAccountsRead: "externalAccounts.read",
|
|
34
37
|
};
|
|
@@ -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];
|
|
@@ -31,4 +31,7 @@ export const RevokeInvitationLinksResponseDataAttributesProposedAgentsItemPermis
|
|
|
31
31
|
MandatesRead: "mandates.read",
|
|
32
32
|
EnrollmentRead: "enrollment.read",
|
|
33
33
|
CardsRead: "cards.read",
|
|
34
|
+
PaymentRequestsRead: "paymentRequests.read",
|
|
35
|
+
PaymentRequestsCreate: "paymentRequests.create",
|
|
36
|
+
ExternalAccountsRead: "externalAccounts.read",
|
|
34
37
|
};
|
package/dist/esm/api/resources/simulations/client/requests/InviteCustomerSimulationsRequest.d.mts
CHANGED
|
@@ -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
|
|
18
|
-
permissions
|
|
17
|
+
/** Permissions for each agent, or `{"type":"ALL"}` for all of them. Fixed when the invitation is created. */
|
|
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
|
|
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;
|