@naturalpay/sdk 1.6.13 → 1.6.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/BaseClient.js +2 -2
- package/dist/cjs/api/resources/agents/types/CreateCustomerAgentsRequestPermissionsItem.d.ts +6 -0
- package/dist/cjs/api/resources/agents/types/CreateCustomerAgentsRequestPermissionsItem.js +6 -0
- package/dist/cjs/api/resources/agents/types/ListInvitationsAgentsResponseDataItemAttributes.d.ts +2 -0
- package/dist/cjs/api/resources/agents/types/RevokeInvitationAgentsResponseDataAttributes.d.ts +2 -0
- package/dist/cjs/api/resources/apiKeys/types/CreateApiKeysRequestScopesItem.d.ts +6 -0
- package/dist/cjs/api/resources/apiKeys/types/CreateApiKeysRequestScopesItem.js +6 -0
- package/dist/cjs/api/resources/customers/client/Client.d.ts +1 -0
- package/dist/cjs/api/resources/customers/client/Client.js +1 -0
- package/dist/cjs/api/resources/customers/client/requests/CreateInvitationsCustomersRequest.d.ts +3 -0
- package/dist/cjs/api/resources/customers/types/CreateInvitationsCustomersRequestAgentsItemPermissionsItem.d.ts +6 -0
- package/dist/cjs/api/resources/customers/types/CreateInvitationsCustomersRequestAgentsItemPermissionsItem.js +6 -0
- package/dist/cjs/api/resources/customers/types/CreateInvitationsCustomersResponseDataItemAttributes.d.ts +2 -0
- package/dist/cjs/api/resources/customers/types/RevokeInvitationCustomersResponseDataAttributes.d.ts +2 -0
- package/dist/cjs/api/resources/events/types/GetEventsResponseDataAttributesEventType.d.ts +16 -0
- package/dist/cjs/api/resources/events/types/GetEventsResponseDataAttributesEventType.js +16 -0
- package/dist/cjs/api/resources/events/types/ListEventsRequestEventType.d.ts +16 -0
- package/dist/cjs/api/resources/events/types/ListEventsRequestEventType.js +16 -0
- package/dist/cjs/api/resources/events/types/ListEventsResponseDataItemAttributesEventType.d.ts +16 -0
- package/dist/cjs/api/resources/events/types/ListEventsResponseDataItemAttributesEventType.js +16 -0
- package/dist/cjs/api/resources/invitationLinks/types/CreateInvitationLinksRequestProposedAgentsItemPermissionsItem.d.ts +6 -0
- package/dist/cjs/api/resources/invitationLinks/types/CreateInvitationLinksRequestProposedAgentsItemPermissionsItem.js +6 -0
- package/dist/cjs/api/resources/invitationLinks/types/CreateInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.d.ts +6 -0
- package/dist/cjs/api/resources/invitationLinks/types/CreateInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.js +6 -0
- package/dist/cjs/api/resources/invitationLinks/types/GetInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.d.ts +6 -0
- package/dist/cjs/api/resources/invitationLinks/types/GetInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.js +6 -0
- package/dist/cjs/api/resources/invitationLinks/types/ListInvitationLinksResponseDataItemAttributesProposedAgentsItemPermissionsItem.d.ts +6 -0
- package/dist/cjs/api/resources/invitationLinks/types/ListInvitationLinksResponseDataItemAttributesProposedAgentsItemPermissionsItem.js +6 -0
- package/dist/cjs/api/resources/invitationLinks/types/RevokeInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.d.ts +6 -0
- package/dist/cjs/api/resources/invitationLinks/types/RevokeInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.js +6 -0
- package/dist/cjs/api/resources/parties/client/Client.d.ts +88 -0
- package/dist/cjs/api/resources/parties/client/Client.js +315 -0
- package/dist/cjs/api/resources/parties/client/requests/CreateBrandingPhotoUploadPartiesRequest.d.ts +16 -0
- package/dist/cjs/api/resources/parties/client/requests/CreateBrandingPhotoUploadPartiesRequest.js +3 -0
- package/dist/cjs/api/resources/parties/client/requests/GetBrandingForPartyPartiesRequest.d.ts +9 -0
- package/dist/cjs/api/resources/parties/client/requests/GetBrandingForPartyPartiesRequest.js +3 -0
- package/dist/cjs/api/resources/parties/client/requests/UpdateBrandingForPartyPartiesRequest.d.ts +16 -0
- package/dist/cjs/api/resources/parties/client/requests/UpdateBrandingForPartyPartiesRequest.js +3 -0
- package/dist/cjs/api/resources/parties/client/requests/index.d.ts +3 -0
- package/dist/cjs/api/resources/parties/types/CreateBrandingPhotoUploadPartiesRequestContentType.d.ts +7 -0
- package/dist/cjs/api/resources/parties/types/CreateBrandingPhotoUploadPartiesRequestContentType.js +10 -0
- package/dist/cjs/api/resources/parties/types/CreateBrandingPhotoUploadPartiesResponse.d.ts +4 -0
- package/dist/cjs/api/resources/parties/types/CreateBrandingPhotoUploadPartiesResponse.js +3 -0
- package/dist/cjs/api/resources/parties/types/CreateBrandingPhotoUploadPartiesResponseData.d.ts +6 -0
- package/dist/cjs/api/resources/parties/types/CreateBrandingPhotoUploadPartiesResponseData.js +3 -0
- package/dist/cjs/api/resources/parties/types/CreateBrandingPhotoUploadPartiesResponseDataAttributes.d.ts +8 -0
- package/dist/cjs/api/resources/parties/types/CreateBrandingPhotoUploadPartiesResponseDataAttributes.js +3 -0
- package/dist/cjs/api/resources/parties/types/CreateBrandingPhotoUploadPartiesResponseDataType.d.ts +4 -0
- package/dist/cjs/api/resources/parties/types/CreateBrandingPhotoUploadPartiesResponseDataType.js +7 -0
- package/dist/cjs/api/resources/parties/types/GetBrandingForPartyPartiesResponse.d.ts +4 -0
- package/dist/cjs/api/resources/parties/types/GetBrandingForPartyPartiesResponse.js +3 -0
- package/dist/cjs/api/resources/parties/types/GetBrandingForPartyPartiesResponseData.d.ts +6 -0
- package/dist/cjs/api/resources/parties/types/GetBrandingForPartyPartiesResponseData.js +3 -0
- package/dist/cjs/api/resources/parties/types/GetBrandingForPartyPartiesResponseDataAttributes.d.ts +5 -0
- package/dist/cjs/api/resources/parties/types/GetBrandingForPartyPartiesResponseDataAttributes.js +3 -0
- package/dist/cjs/api/resources/parties/types/GetBrandingForPartyPartiesResponseDataType.d.ts +4 -0
- package/dist/cjs/api/resources/parties/types/GetBrandingForPartyPartiesResponseDataType.js +7 -0
- package/dist/cjs/api/resources/parties/types/UpdateBrandingForPartyPartiesResponse.d.ts +4 -0
- package/dist/cjs/api/resources/parties/types/UpdateBrandingForPartyPartiesResponse.js +3 -0
- package/dist/cjs/api/resources/parties/types/UpdateBrandingForPartyPartiesResponseData.d.ts +6 -0
- package/dist/cjs/api/resources/parties/types/UpdateBrandingForPartyPartiesResponseData.js +3 -0
- package/dist/cjs/api/resources/parties/types/UpdateBrandingForPartyPartiesResponseDataAttributes.d.ts +5 -0
- package/dist/cjs/api/resources/parties/types/UpdateBrandingForPartyPartiesResponseDataAttributes.js +3 -0
- package/dist/cjs/api/resources/parties/types/UpdateBrandingForPartyPartiesResponseDataType.d.ts +4 -0
- package/dist/cjs/api/resources/parties/types/UpdateBrandingForPartyPartiesResponseDataType.js +7 -0
- package/dist/cjs/api/resources/parties/types/index.d.ts +13 -0
- package/dist/cjs/api/resources/parties/types/index.js +13 -0
- package/dist/cjs/api/resources/simulations/client/requests/InviteCustomerSimulationsRequest.d.ts +2 -0
- package/dist/cjs/api/resources/simulations/types/AcceptCustomerInvitationSimulationsResponseDataAttributes.d.ts +2 -0
- package/dist/cjs/api/resources/simulations/types/DeclineCustomerInvitationSimulationsResponseDataAttributes.d.ts +2 -0
- package/dist/cjs/api/resources/simulations/types/InviteCustomerSimulationsRequestPermissionsItem.d.ts +6 -0
- package/dist/cjs/api/resources/simulations/types/InviteCustomerSimulationsRequestPermissionsItem.js +6 -0
- package/dist/cjs/api/resources/simulations/types/InviteCustomerSimulationsResponseDataItemAttributes.d.ts +2 -0
- package/dist/cjs/api/resources/webhooks/types/CreateWebhooksRequestEnabledEventsItem.d.ts +18 -0
- package/dist/cjs/api/resources/webhooks/types/CreateWebhooksRequestEnabledEventsItem.js +18 -0
- package/dist/cjs/api/resources/webhooks/types/CreateWebhooksResponseDataAttributesEnabledEventsItem.d.ts +18 -0
- package/dist/cjs/api/resources/webhooks/types/CreateWebhooksResponseDataAttributesEnabledEventsItem.js +18 -0
- package/dist/cjs/api/resources/webhooks/types/GetWebhooksResponseDataAttributesEnabledEventsItem.d.ts +18 -0
- package/dist/cjs/api/resources/webhooks/types/GetWebhooksResponseDataAttributesEnabledEventsItem.js +18 -0
- package/dist/cjs/api/resources/webhooks/types/RemoveWebhooksResponseDataAttributesEnabledEventsItem.d.ts +18 -0
- package/dist/cjs/api/resources/webhooks/types/RemoveWebhooksResponseDataAttributesEnabledEventsItem.js +18 -0
- package/dist/cjs/api/resources/webhooks/types/UpdateWebhooksRequestEnabledEventsItem.d.ts +18 -0
- package/dist/cjs/api/resources/webhooks/types/UpdateWebhooksRequestEnabledEventsItem.js +18 -0
- package/dist/cjs/api/resources/webhooks/types/UpdateWebhooksResponseDataAttributesEnabledEventsItem.d.ts +18 -0
- package/dist/cjs/api/resources/webhooks/types/UpdateWebhooksResponseDataAttributesEnabledEventsItem.js +18 -0
- package/dist/cjs/api/resources/webhooks/types/WebhookEnabledEventsItem.d.ts +18 -0
- package/dist/cjs/api/resources/webhooks/types/WebhookEnabledEventsItem.js +18 -0
- package/dist/cjs/serialization/resources/agents/types/CreateCustomerAgentsRequestPermissionsItem.d.ts +1 -1
- package/dist/cjs/serialization/resources/agents/types/CreateCustomerAgentsRequestPermissionsItem.js +6 -0
- package/dist/cjs/serialization/resources/agents/types/ListInvitationsAgentsResponseDataItemAttributes.d.ts +1 -0
- package/dist/cjs/serialization/resources/agents/types/ListInvitationsAgentsResponseDataItemAttributes.js +1 -0
- package/dist/cjs/serialization/resources/agents/types/RevokeInvitationAgentsResponseDataAttributes.d.ts +1 -0
- package/dist/cjs/serialization/resources/agents/types/RevokeInvitationAgentsResponseDataAttributes.js +1 -0
- package/dist/cjs/serialization/resources/apiKeys/types/CreateApiKeysRequestScopesItem.d.ts +1 -1
- package/dist/cjs/serialization/resources/apiKeys/types/CreateApiKeysRequestScopesItem.js +6 -0
- package/dist/cjs/serialization/resources/customers/client/requests/CreateInvitationsCustomersRequest.d.ts +1 -0
- package/dist/cjs/serialization/resources/customers/client/requests/CreateInvitationsCustomersRequest.js +1 -0
- package/dist/cjs/serialization/resources/customers/types/CreateInvitationsCustomersRequestAgentsItemPermissionsItem.d.ts +1 -1
- package/dist/cjs/serialization/resources/customers/types/CreateInvitationsCustomersRequestAgentsItemPermissionsItem.js +6 -0
- package/dist/cjs/serialization/resources/customers/types/CreateInvitationsCustomersResponseDataItemAttributes.d.ts +1 -0
- package/dist/cjs/serialization/resources/customers/types/CreateInvitationsCustomersResponseDataItemAttributes.js +1 -0
- package/dist/cjs/serialization/resources/customers/types/RevokeInvitationCustomersResponseDataAttributes.d.ts +1 -0
- package/dist/cjs/serialization/resources/customers/types/RevokeInvitationCustomersResponseDataAttributes.js +1 -0
- package/dist/cjs/serialization/resources/events/types/GetEventsResponseDataAttributesEventType.d.ts +1 -1
- package/dist/cjs/serialization/resources/events/types/GetEventsResponseDataAttributesEventType.js +16 -0
- package/dist/cjs/serialization/resources/events/types/ListEventsRequestEventType.d.ts +1 -1
- package/dist/cjs/serialization/resources/events/types/ListEventsRequestEventType.js +16 -0
- package/dist/cjs/serialization/resources/events/types/ListEventsResponseDataItemAttributesEventType.d.ts +1 -1
- package/dist/cjs/serialization/resources/events/types/ListEventsResponseDataItemAttributesEventType.js +16 -0
- package/dist/cjs/serialization/resources/invitationLinks/types/CreateInvitationLinksRequestProposedAgentsItemPermissionsItem.d.ts +1 -1
- package/dist/cjs/serialization/resources/invitationLinks/types/CreateInvitationLinksRequestProposedAgentsItemPermissionsItem.js +6 -0
- package/dist/cjs/serialization/resources/invitationLinks/types/CreateInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.d.ts +1 -1
- package/dist/cjs/serialization/resources/invitationLinks/types/CreateInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.js +6 -0
- package/dist/cjs/serialization/resources/invitationLinks/types/GetInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.d.ts +1 -1
- package/dist/cjs/serialization/resources/invitationLinks/types/GetInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.js +6 -0
- package/dist/cjs/serialization/resources/invitationLinks/types/ListInvitationLinksResponseDataItemAttributesProposedAgentsItemPermissionsItem.d.ts +1 -1
- package/dist/cjs/serialization/resources/invitationLinks/types/ListInvitationLinksResponseDataItemAttributesProposedAgentsItemPermissionsItem.js +6 -0
- package/dist/cjs/serialization/resources/invitationLinks/types/RevokeInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.d.ts +1 -1
- package/dist/cjs/serialization/resources/invitationLinks/types/RevokeInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.js +6 -0
- package/dist/cjs/serialization/resources/parties/client/requests/CreateBrandingPhotoUploadPartiesRequest.d.ts +11 -0
- package/dist/cjs/serialization/resources/parties/client/requests/CreateBrandingPhotoUploadPartiesRequest.js +43 -0
- package/dist/cjs/serialization/resources/parties/client/requests/UpdateBrandingForPartyPartiesRequest.d.ts +10 -0
- package/dist/cjs/serialization/resources/parties/client/requests/UpdateBrandingForPartyPartiesRequest.js +42 -0
- package/dist/cjs/serialization/resources/parties/client/requests/index.d.ts +2 -0
- package/dist/cjs/serialization/resources/parties/client/requests/index.js +5 -1
- package/dist/cjs/serialization/resources/parties/types/CreateBrandingPhotoUploadPartiesRequestContentType.d.ts +7 -0
- package/dist/cjs/serialization/resources/parties/types/CreateBrandingPhotoUploadPartiesRequestContentType.js +39 -0
- package/dist/cjs/serialization/resources/parties/types/CreateBrandingPhotoUploadPartiesResponse.d.ts +10 -0
- package/dist/cjs/serialization/resources/parties/types/CreateBrandingPhotoUploadPartiesResponse.js +42 -0
- package/dist/cjs/serialization/resources/parties/types/CreateBrandingPhotoUploadPartiesResponseData.d.ts +13 -0
- package/dist/cjs/serialization/resources/parties/types/CreateBrandingPhotoUploadPartiesResponseData.js +45 -0
- package/dist/cjs/serialization/resources/parties/types/CreateBrandingPhotoUploadPartiesResponseDataAttributes.d.ts +11 -0
- package/dist/cjs/serialization/resources/parties/types/CreateBrandingPhotoUploadPartiesResponseDataAttributes.js +43 -0
- package/dist/cjs/serialization/resources/parties/types/CreateBrandingPhotoUploadPartiesResponseDataType.d.ts +7 -0
- package/dist/cjs/serialization/resources/parties/types/CreateBrandingPhotoUploadPartiesResponseDataType.js +39 -0
- package/dist/cjs/serialization/resources/parties/types/GetBrandingForPartyPartiesResponse.d.ts +10 -0
- package/dist/cjs/serialization/resources/parties/types/GetBrandingForPartyPartiesResponse.js +42 -0
- package/dist/cjs/serialization/resources/parties/types/GetBrandingForPartyPartiesResponseData.d.ts +13 -0
- package/dist/cjs/serialization/resources/parties/types/GetBrandingForPartyPartiesResponseData.js +45 -0
- package/dist/cjs/serialization/resources/parties/types/GetBrandingForPartyPartiesResponseDataAttributes.d.ts +10 -0
- package/dist/cjs/serialization/resources/parties/types/GetBrandingForPartyPartiesResponseDataAttributes.js +42 -0
- package/dist/cjs/serialization/resources/parties/types/GetBrandingForPartyPartiesResponseDataType.d.ts +7 -0
- package/dist/cjs/serialization/resources/parties/types/GetBrandingForPartyPartiesResponseDataType.js +39 -0
- package/dist/cjs/serialization/resources/parties/types/UpdateBrandingForPartyPartiesResponse.d.ts +10 -0
- package/dist/cjs/serialization/resources/parties/types/UpdateBrandingForPartyPartiesResponse.js +42 -0
- package/dist/cjs/serialization/resources/parties/types/UpdateBrandingForPartyPartiesResponseData.d.ts +13 -0
- package/dist/cjs/serialization/resources/parties/types/UpdateBrandingForPartyPartiesResponseData.js +45 -0
- package/dist/cjs/serialization/resources/parties/types/UpdateBrandingForPartyPartiesResponseDataAttributes.d.ts +10 -0
- package/dist/cjs/serialization/resources/parties/types/UpdateBrandingForPartyPartiesResponseDataAttributes.js +42 -0
- package/dist/cjs/serialization/resources/parties/types/UpdateBrandingForPartyPartiesResponseDataType.d.ts +7 -0
- package/dist/cjs/serialization/resources/parties/types/UpdateBrandingForPartyPartiesResponseDataType.js +39 -0
- package/dist/cjs/serialization/resources/parties/types/index.d.ts +13 -0
- package/dist/cjs/serialization/resources/parties/types/index.js +13 -0
- package/dist/cjs/serialization/resources/simulations/client/requests/InviteCustomerSimulationsRequest.d.ts +1 -0
- package/dist/cjs/serialization/resources/simulations/client/requests/InviteCustomerSimulationsRequest.js +1 -0
- package/dist/cjs/serialization/resources/simulations/types/AcceptCustomerInvitationSimulationsResponseDataAttributes.d.ts +1 -0
- package/dist/cjs/serialization/resources/simulations/types/AcceptCustomerInvitationSimulationsResponseDataAttributes.js +1 -0
- package/dist/cjs/serialization/resources/simulations/types/DeclineCustomerInvitationSimulationsResponseDataAttributes.d.ts +1 -0
- package/dist/cjs/serialization/resources/simulations/types/DeclineCustomerInvitationSimulationsResponseDataAttributes.js +1 -0
- package/dist/cjs/serialization/resources/simulations/types/InviteCustomerSimulationsRequestPermissionsItem.d.ts +1 -1
- package/dist/cjs/serialization/resources/simulations/types/InviteCustomerSimulationsRequestPermissionsItem.js +6 -0
- package/dist/cjs/serialization/resources/simulations/types/InviteCustomerSimulationsResponseDataItemAttributes.d.ts +1 -0
- package/dist/cjs/serialization/resources/simulations/types/InviteCustomerSimulationsResponseDataItemAttributes.js +1 -0
- package/dist/cjs/serialization/resources/webhooks/types/CreateWebhooksRequestEnabledEventsItem.d.ts +1 -1
- package/dist/cjs/serialization/resources/webhooks/types/CreateWebhooksRequestEnabledEventsItem.js +18 -0
- package/dist/cjs/serialization/resources/webhooks/types/CreateWebhooksResponseDataAttributesEnabledEventsItem.d.ts +1 -1
- package/dist/cjs/serialization/resources/webhooks/types/CreateWebhooksResponseDataAttributesEnabledEventsItem.js +18 -0
- package/dist/cjs/serialization/resources/webhooks/types/GetWebhooksResponseDataAttributesEnabledEventsItem.d.ts +1 -1
- package/dist/cjs/serialization/resources/webhooks/types/GetWebhooksResponseDataAttributesEnabledEventsItem.js +18 -0
- package/dist/cjs/serialization/resources/webhooks/types/RemoveWebhooksResponseDataAttributesEnabledEventsItem.d.ts +1 -1
- package/dist/cjs/serialization/resources/webhooks/types/RemoveWebhooksResponseDataAttributesEnabledEventsItem.js +18 -0
- package/dist/cjs/serialization/resources/webhooks/types/UpdateWebhooksRequestEnabledEventsItem.d.ts +1 -1
- package/dist/cjs/serialization/resources/webhooks/types/UpdateWebhooksRequestEnabledEventsItem.js +18 -0
- package/dist/cjs/serialization/resources/webhooks/types/UpdateWebhooksResponseDataAttributesEnabledEventsItem.d.ts +1 -1
- package/dist/cjs/serialization/resources/webhooks/types/UpdateWebhooksResponseDataAttributesEnabledEventsItem.js +18 -0
- package/dist/cjs/serialization/resources/webhooks/types/WebhookEnabledEventsItem.d.ts +1 -1
- package/dist/cjs/serialization/resources/webhooks/types/WebhookEnabledEventsItem.js +18 -0
- 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/types/CreateCustomerAgentsRequestPermissionsItem.d.mts +6 -0
- package/dist/esm/api/resources/agents/types/CreateCustomerAgentsRequestPermissionsItem.mjs +6 -0
- package/dist/esm/api/resources/agents/types/ListInvitationsAgentsResponseDataItemAttributes.d.mts +2 -0
- package/dist/esm/api/resources/agents/types/RevokeInvitationAgentsResponseDataAttributes.d.mts +2 -0
- package/dist/esm/api/resources/apiKeys/types/CreateApiKeysRequestScopesItem.d.mts +6 -0
- package/dist/esm/api/resources/apiKeys/types/CreateApiKeysRequestScopesItem.mjs +6 -0
- package/dist/esm/api/resources/customers/client/Client.d.mts +1 -0
- package/dist/esm/api/resources/customers/client/Client.mjs +1 -0
- package/dist/esm/api/resources/customers/client/requests/CreateInvitationsCustomersRequest.d.mts +3 -0
- package/dist/esm/api/resources/customers/types/CreateInvitationsCustomersRequestAgentsItemPermissionsItem.d.mts +6 -0
- package/dist/esm/api/resources/customers/types/CreateInvitationsCustomersRequestAgentsItemPermissionsItem.mjs +6 -0
- package/dist/esm/api/resources/customers/types/CreateInvitationsCustomersResponseDataItemAttributes.d.mts +2 -0
- package/dist/esm/api/resources/customers/types/RevokeInvitationCustomersResponseDataAttributes.d.mts +2 -0
- package/dist/esm/api/resources/events/types/GetEventsResponseDataAttributesEventType.d.mts +16 -0
- package/dist/esm/api/resources/events/types/GetEventsResponseDataAttributesEventType.mjs +16 -0
- package/dist/esm/api/resources/events/types/ListEventsRequestEventType.d.mts +16 -0
- package/dist/esm/api/resources/events/types/ListEventsRequestEventType.mjs +16 -0
- package/dist/esm/api/resources/events/types/ListEventsResponseDataItemAttributesEventType.d.mts +16 -0
- package/dist/esm/api/resources/events/types/ListEventsResponseDataItemAttributesEventType.mjs +16 -0
- package/dist/esm/api/resources/invitationLinks/types/CreateInvitationLinksRequestProposedAgentsItemPermissionsItem.d.mts +6 -0
- package/dist/esm/api/resources/invitationLinks/types/CreateInvitationLinksRequestProposedAgentsItemPermissionsItem.mjs +6 -0
- package/dist/esm/api/resources/invitationLinks/types/CreateInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.d.mts +6 -0
- package/dist/esm/api/resources/invitationLinks/types/CreateInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.mjs +6 -0
- package/dist/esm/api/resources/invitationLinks/types/GetInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.d.mts +6 -0
- package/dist/esm/api/resources/invitationLinks/types/GetInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.mjs +6 -0
- package/dist/esm/api/resources/invitationLinks/types/ListInvitationLinksResponseDataItemAttributesProposedAgentsItemPermissionsItem.d.mts +6 -0
- package/dist/esm/api/resources/invitationLinks/types/ListInvitationLinksResponseDataItemAttributesProposedAgentsItemPermissionsItem.mjs +6 -0
- package/dist/esm/api/resources/invitationLinks/types/RevokeInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.d.mts +6 -0
- package/dist/esm/api/resources/invitationLinks/types/RevokeInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.mjs +6 -0
- package/dist/esm/api/resources/parties/client/Client.d.mts +88 -0
- package/dist/esm/api/resources/parties/client/Client.mjs +315 -0
- package/dist/esm/api/resources/parties/client/requests/CreateBrandingPhotoUploadPartiesRequest.d.mts +16 -0
- package/dist/esm/api/resources/parties/client/requests/CreateBrandingPhotoUploadPartiesRequest.mjs +2 -0
- package/dist/esm/api/resources/parties/client/requests/GetBrandingForPartyPartiesRequest.d.mts +9 -0
- package/dist/esm/api/resources/parties/client/requests/GetBrandingForPartyPartiesRequest.mjs +2 -0
- package/dist/esm/api/resources/parties/client/requests/UpdateBrandingForPartyPartiesRequest.d.mts +16 -0
- package/dist/esm/api/resources/parties/client/requests/UpdateBrandingForPartyPartiesRequest.mjs +2 -0
- package/dist/esm/api/resources/parties/client/requests/index.d.mts +3 -0
- package/dist/esm/api/resources/parties/types/CreateBrandingPhotoUploadPartiesRequestContentType.d.mts +7 -0
- package/dist/esm/api/resources/parties/types/CreateBrandingPhotoUploadPartiesRequestContentType.mjs +7 -0
- package/dist/esm/api/resources/parties/types/CreateBrandingPhotoUploadPartiesResponse.d.mts +4 -0
- package/dist/esm/api/resources/parties/types/CreateBrandingPhotoUploadPartiesResponse.mjs +2 -0
- package/dist/esm/api/resources/parties/types/CreateBrandingPhotoUploadPartiesResponseData.d.mts +6 -0
- package/dist/esm/api/resources/parties/types/CreateBrandingPhotoUploadPartiesResponseData.mjs +2 -0
- package/dist/esm/api/resources/parties/types/CreateBrandingPhotoUploadPartiesResponseDataAttributes.d.mts +8 -0
- package/dist/esm/api/resources/parties/types/CreateBrandingPhotoUploadPartiesResponseDataAttributes.mjs +2 -0
- package/dist/esm/api/resources/parties/types/CreateBrandingPhotoUploadPartiesResponseDataType.d.mts +4 -0
- package/dist/esm/api/resources/parties/types/CreateBrandingPhotoUploadPartiesResponseDataType.mjs +4 -0
- package/dist/esm/api/resources/parties/types/GetBrandingForPartyPartiesResponse.d.mts +4 -0
- package/dist/esm/api/resources/parties/types/GetBrandingForPartyPartiesResponse.mjs +2 -0
- package/dist/esm/api/resources/parties/types/GetBrandingForPartyPartiesResponseData.d.mts +6 -0
- package/dist/esm/api/resources/parties/types/GetBrandingForPartyPartiesResponseData.mjs +2 -0
- package/dist/esm/api/resources/parties/types/GetBrandingForPartyPartiesResponseDataAttributes.d.mts +5 -0
- package/dist/esm/api/resources/parties/types/GetBrandingForPartyPartiesResponseDataAttributes.mjs +2 -0
- package/dist/esm/api/resources/parties/types/GetBrandingForPartyPartiesResponseDataType.d.mts +4 -0
- package/dist/esm/api/resources/parties/types/GetBrandingForPartyPartiesResponseDataType.mjs +4 -0
- package/dist/esm/api/resources/parties/types/UpdateBrandingForPartyPartiesResponse.d.mts +4 -0
- package/dist/esm/api/resources/parties/types/UpdateBrandingForPartyPartiesResponse.mjs +2 -0
- package/dist/esm/api/resources/parties/types/UpdateBrandingForPartyPartiesResponseData.d.mts +6 -0
- package/dist/esm/api/resources/parties/types/UpdateBrandingForPartyPartiesResponseData.mjs +2 -0
- package/dist/esm/api/resources/parties/types/UpdateBrandingForPartyPartiesResponseDataAttributes.d.mts +5 -0
- package/dist/esm/api/resources/parties/types/UpdateBrandingForPartyPartiesResponseDataAttributes.mjs +2 -0
- package/dist/esm/api/resources/parties/types/UpdateBrandingForPartyPartiesResponseDataType.d.mts +4 -0
- package/dist/esm/api/resources/parties/types/UpdateBrandingForPartyPartiesResponseDataType.mjs +4 -0
- package/dist/esm/api/resources/parties/types/index.d.mts +13 -0
- package/dist/esm/api/resources/parties/types/index.mjs +13 -0
- package/dist/esm/api/resources/simulations/client/requests/InviteCustomerSimulationsRequest.d.mts +2 -0
- package/dist/esm/api/resources/simulations/types/AcceptCustomerInvitationSimulationsResponseDataAttributes.d.mts +2 -0
- package/dist/esm/api/resources/simulations/types/DeclineCustomerInvitationSimulationsResponseDataAttributes.d.mts +2 -0
- package/dist/esm/api/resources/simulations/types/InviteCustomerSimulationsRequestPermissionsItem.d.mts +6 -0
- package/dist/esm/api/resources/simulations/types/InviteCustomerSimulationsRequestPermissionsItem.mjs +6 -0
- package/dist/esm/api/resources/simulations/types/InviteCustomerSimulationsResponseDataItemAttributes.d.mts +2 -0
- package/dist/esm/api/resources/webhooks/types/CreateWebhooksRequestEnabledEventsItem.d.mts +18 -0
- package/dist/esm/api/resources/webhooks/types/CreateWebhooksRequestEnabledEventsItem.mjs +18 -0
- package/dist/esm/api/resources/webhooks/types/CreateWebhooksResponseDataAttributesEnabledEventsItem.d.mts +18 -0
- package/dist/esm/api/resources/webhooks/types/CreateWebhooksResponseDataAttributesEnabledEventsItem.mjs +18 -0
- package/dist/esm/api/resources/webhooks/types/GetWebhooksResponseDataAttributesEnabledEventsItem.d.mts +18 -0
- package/dist/esm/api/resources/webhooks/types/GetWebhooksResponseDataAttributesEnabledEventsItem.mjs +18 -0
- package/dist/esm/api/resources/webhooks/types/RemoveWebhooksResponseDataAttributesEnabledEventsItem.d.mts +18 -0
- package/dist/esm/api/resources/webhooks/types/RemoveWebhooksResponseDataAttributesEnabledEventsItem.mjs +18 -0
- package/dist/esm/api/resources/webhooks/types/UpdateWebhooksRequestEnabledEventsItem.d.mts +18 -0
- package/dist/esm/api/resources/webhooks/types/UpdateWebhooksRequestEnabledEventsItem.mjs +18 -0
- package/dist/esm/api/resources/webhooks/types/UpdateWebhooksResponseDataAttributesEnabledEventsItem.d.mts +18 -0
- package/dist/esm/api/resources/webhooks/types/UpdateWebhooksResponseDataAttributesEnabledEventsItem.mjs +18 -0
- package/dist/esm/api/resources/webhooks/types/WebhookEnabledEventsItem.d.mts +18 -0
- package/dist/esm/api/resources/webhooks/types/WebhookEnabledEventsItem.mjs +18 -0
- package/dist/esm/serialization/resources/agents/types/CreateCustomerAgentsRequestPermissionsItem.d.mts +1 -1
- package/dist/esm/serialization/resources/agents/types/CreateCustomerAgentsRequestPermissionsItem.mjs +6 -0
- package/dist/esm/serialization/resources/agents/types/ListInvitationsAgentsResponseDataItemAttributes.d.mts +1 -0
- package/dist/esm/serialization/resources/agents/types/ListInvitationsAgentsResponseDataItemAttributes.mjs +1 -0
- package/dist/esm/serialization/resources/agents/types/RevokeInvitationAgentsResponseDataAttributes.d.mts +1 -0
- package/dist/esm/serialization/resources/agents/types/RevokeInvitationAgentsResponseDataAttributes.mjs +1 -0
- package/dist/esm/serialization/resources/apiKeys/types/CreateApiKeysRequestScopesItem.d.mts +1 -1
- package/dist/esm/serialization/resources/apiKeys/types/CreateApiKeysRequestScopesItem.mjs +6 -0
- package/dist/esm/serialization/resources/customers/client/requests/CreateInvitationsCustomersRequest.d.mts +1 -0
- package/dist/esm/serialization/resources/customers/client/requests/CreateInvitationsCustomersRequest.mjs +1 -0
- package/dist/esm/serialization/resources/customers/types/CreateInvitationsCustomersRequestAgentsItemPermissionsItem.d.mts +1 -1
- package/dist/esm/serialization/resources/customers/types/CreateInvitationsCustomersRequestAgentsItemPermissionsItem.mjs +6 -0
- package/dist/esm/serialization/resources/customers/types/CreateInvitationsCustomersResponseDataItemAttributes.d.mts +1 -0
- package/dist/esm/serialization/resources/customers/types/CreateInvitationsCustomersResponseDataItemAttributes.mjs +1 -0
- package/dist/esm/serialization/resources/customers/types/RevokeInvitationCustomersResponseDataAttributes.d.mts +1 -0
- package/dist/esm/serialization/resources/customers/types/RevokeInvitationCustomersResponseDataAttributes.mjs +1 -0
- package/dist/esm/serialization/resources/events/types/GetEventsResponseDataAttributesEventType.d.mts +1 -1
- package/dist/esm/serialization/resources/events/types/GetEventsResponseDataAttributesEventType.mjs +16 -0
- package/dist/esm/serialization/resources/events/types/ListEventsRequestEventType.d.mts +1 -1
- package/dist/esm/serialization/resources/events/types/ListEventsRequestEventType.mjs +16 -0
- package/dist/esm/serialization/resources/events/types/ListEventsResponseDataItemAttributesEventType.d.mts +1 -1
- package/dist/esm/serialization/resources/events/types/ListEventsResponseDataItemAttributesEventType.mjs +16 -0
- package/dist/esm/serialization/resources/invitationLinks/types/CreateInvitationLinksRequestProposedAgentsItemPermissionsItem.d.mts +1 -1
- package/dist/esm/serialization/resources/invitationLinks/types/CreateInvitationLinksRequestProposedAgentsItemPermissionsItem.mjs +6 -0
- package/dist/esm/serialization/resources/invitationLinks/types/CreateInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.d.mts +1 -1
- package/dist/esm/serialization/resources/invitationLinks/types/CreateInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.mjs +6 -0
- package/dist/esm/serialization/resources/invitationLinks/types/GetInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.d.mts +1 -1
- package/dist/esm/serialization/resources/invitationLinks/types/GetInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.mjs +6 -0
- package/dist/esm/serialization/resources/invitationLinks/types/ListInvitationLinksResponseDataItemAttributesProposedAgentsItemPermissionsItem.d.mts +1 -1
- package/dist/esm/serialization/resources/invitationLinks/types/ListInvitationLinksResponseDataItemAttributesProposedAgentsItemPermissionsItem.mjs +6 -0
- package/dist/esm/serialization/resources/invitationLinks/types/RevokeInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.d.mts +1 -1
- package/dist/esm/serialization/resources/invitationLinks/types/RevokeInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.mjs +6 -0
- package/dist/esm/serialization/resources/parties/client/requests/CreateBrandingPhotoUploadPartiesRequest.d.mts +11 -0
- package/dist/esm/serialization/resources/parties/client/requests/CreateBrandingPhotoUploadPartiesRequest.mjs +7 -0
- package/dist/esm/serialization/resources/parties/client/requests/UpdateBrandingForPartyPartiesRequest.d.mts +10 -0
- package/dist/esm/serialization/resources/parties/client/requests/UpdateBrandingForPartyPartiesRequest.mjs +6 -0
- package/dist/esm/serialization/resources/parties/client/requests/index.d.mts +2 -0
- package/dist/esm/serialization/resources/parties/client/requests/index.mjs +2 -0
- package/dist/esm/serialization/resources/parties/types/CreateBrandingPhotoUploadPartiesRequestContentType.d.mts +7 -0
- package/dist/esm/serialization/resources/parties/types/CreateBrandingPhotoUploadPartiesRequestContentType.mjs +3 -0
- package/dist/esm/serialization/resources/parties/types/CreateBrandingPhotoUploadPartiesResponse.d.mts +10 -0
- package/dist/esm/serialization/resources/parties/types/CreateBrandingPhotoUploadPartiesResponse.mjs +6 -0
- package/dist/esm/serialization/resources/parties/types/CreateBrandingPhotoUploadPartiesResponseData.d.mts +13 -0
- package/dist/esm/serialization/resources/parties/types/CreateBrandingPhotoUploadPartiesResponseData.mjs +9 -0
- package/dist/esm/serialization/resources/parties/types/CreateBrandingPhotoUploadPartiesResponseDataAttributes.d.mts +11 -0
- package/dist/esm/serialization/resources/parties/types/CreateBrandingPhotoUploadPartiesResponseDataAttributes.mjs +7 -0
- package/dist/esm/serialization/resources/parties/types/CreateBrandingPhotoUploadPartiesResponseDataType.d.mts +7 -0
- package/dist/esm/serialization/resources/parties/types/CreateBrandingPhotoUploadPartiesResponseDataType.mjs +3 -0
- package/dist/esm/serialization/resources/parties/types/GetBrandingForPartyPartiesResponse.d.mts +10 -0
- package/dist/esm/serialization/resources/parties/types/GetBrandingForPartyPartiesResponse.mjs +6 -0
- package/dist/esm/serialization/resources/parties/types/GetBrandingForPartyPartiesResponseData.d.mts +13 -0
- package/dist/esm/serialization/resources/parties/types/GetBrandingForPartyPartiesResponseData.mjs +9 -0
- package/dist/esm/serialization/resources/parties/types/GetBrandingForPartyPartiesResponseDataAttributes.d.mts +10 -0
- package/dist/esm/serialization/resources/parties/types/GetBrandingForPartyPartiesResponseDataAttributes.mjs +6 -0
- package/dist/esm/serialization/resources/parties/types/GetBrandingForPartyPartiesResponseDataType.d.mts +7 -0
- package/dist/esm/serialization/resources/parties/types/GetBrandingForPartyPartiesResponseDataType.mjs +3 -0
- package/dist/esm/serialization/resources/parties/types/UpdateBrandingForPartyPartiesResponse.d.mts +10 -0
- package/dist/esm/serialization/resources/parties/types/UpdateBrandingForPartyPartiesResponse.mjs +6 -0
- package/dist/esm/serialization/resources/parties/types/UpdateBrandingForPartyPartiesResponseData.d.mts +13 -0
- package/dist/esm/serialization/resources/parties/types/UpdateBrandingForPartyPartiesResponseData.mjs +9 -0
- package/dist/esm/serialization/resources/parties/types/UpdateBrandingForPartyPartiesResponseDataAttributes.d.mts +10 -0
- package/dist/esm/serialization/resources/parties/types/UpdateBrandingForPartyPartiesResponseDataAttributes.mjs +6 -0
- package/dist/esm/serialization/resources/parties/types/UpdateBrandingForPartyPartiesResponseDataType.d.mts +7 -0
- package/dist/esm/serialization/resources/parties/types/UpdateBrandingForPartyPartiesResponseDataType.mjs +3 -0
- package/dist/esm/serialization/resources/parties/types/index.d.mts +13 -0
- package/dist/esm/serialization/resources/parties/types/index.mjs +13 -0
- package/dist/esm/serialization/resources/simulations/client/requests/InviteCustomerSimulationsRequest.d.mts +1 -0
- package/dist/esm/serialization/resources/simulations/client/requests/InviteCustomerSimulationsRequest.mjs +1 -0
- package/dist/esm/serialization/resources/simulations/types/AcceptCustomerInvitationSimulationsResponseDataAttributes.d.mts +1 -0
- package/dist/esm/serialization/resources/simulations/types/AcceptCustomerInvitationSimulationsResponseDataAttributes.mjs +1 -0
- package/dist/esm/serialization/resources/simulations/types/DeclineCustomerInvitationSimulationsResponseDataAttributes.d.mts +1 -0
- package/dist/esm/serialization/resources/simulations/types/DeclineCustomerInvitationSimulationsResponseDataAttributes.mjs +1 -0
- package/dist/esm/serialization/resources/simulations/types/InviteCustomerSimulationsRequestPermissionsItem.d.mts +1 -1
- package/dist/esm/serialization/resources/simulations/types/InviteCustomerSimulationsRequestPermissionsItem.mjs +6 -0
- package/dist/esm/serialization/resources/simulations/types/InviteCustomerSimulationsResponseDataItemAttributes.d.mts +1 -0
- package/dist/esm/serialization/resources/simulations/types/InviteCustomerSimulationsResponseDataItemAttributes.mjs +1 -0
- package/dist/esm/serialization/resources/webhooks/types/CreateWebhooksRequestEnabledEventsItem.d.mts +1 -1
- package/dist/esm/serialization/resources/webhooks/types/CreateWebhooksRequestEnabledEventsItem.mjs +18 -0
- package/dist/esm/serialization/resources/webhooks/types/CreateWebhooksResponseDataAttributesEnabledEventsItem.d.mts +1 -1
- package/dist/esm/serialization/resources/webhooks/types/CreateWebhooksResponseDataAttributesEnabledEventsItem.mjs +18 -0
- package/dist/esm/serialization/resources/webhooks/types/GetWebhooksResponseDataAttributesEnabledEventsItem.d.mts +1 -1
- package/dist/esm/serialization/resources/webhooks/types/GetWebhooksResponseDataAttributesEnabledEventsItem.mjs +18 -0
- package/dist/esm/serialization/resources/webhooks/types/RemoveWebhooksResponseDataAttributesEnabledEventsItem.d.mts +1 -1
- package/dist/esm/serialization/resources/webhooks/types/RemoveWebhooksResponseDataAttributesEnabledEventsItem.mjs +18 -0
- package/dist/esm/serialization/resources/webhooks/types/UpdateWebhooksRequestEnabledEventsItem.d.mts +1 -1
- package/dist/esm/serialization/resources/webhooks/types/UpdateWebhooksRequestEnabledEventsItem.mjs +18 -0
- package/dist/esm/serialization/resources/webhooks/types/UpdateWebhooksResponseDataAttributesEnabledEventsItem.d.mts +1 -1
- package/dist/esm/serialization/resources/webhooks/types/UpdateWebhooksResponseDataAttributesEnabledEventsItem.mjs +18 -0
- package/dist/esm/serialization/resources/webhooks/types/WebhookEnabledEventsItem.d.mts +1 -1
- package/dist/esm/serialization/resources/webhooks/types/WebhookEnabledEventsItem.mjs +18 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +200 -0
|
@@ -17,5 +17,11 @@ export declare const CreateInvitationLinksRequestProposedAgentsItemPermissionsIt
|
|
|
17
17
|
readonly PartyRead: "party.read";
|
|
18
18
|
readonly PartyUpdate: "party.update";
|
|
19
19
|
readonly PaymentIntentsCreate: "payment_intents.create";
|
|
20
|
+
readonly PaymentIntentsRead: "payment_intents.read";
|
|
21
|
+
readonly CardPaymentsRead: "card_payments.read";
|
|
22
|
+
readonly RefundsRead: "refunds.read";
|
|
23
|
+
readonly ChargebacksRead: "chargebacks.read";
|
|
24
|
+
readonly MandatesRead: "mandates.read";
|
|
25
|
+
readonly EnrollmentRead: "enrollment.read";
|
|
20
26
|
};
|
|
21
27
|
export type CreateInvitationLinksRequestProposedAgentsItemPermissionsItem = (typeof CreateInvitationLinksRequestProposedAgentsItemPermissionsItem)[keyof typeof CreateInvitationLinksRequestProposedAgentsItemPermissionsItem];
|
|
@@ -18,4 +18,10 @@ export const CreateInvitationLinksRequestProposedAgentsItemPermissionsItem = {
|
|
|
18
18
|
PartyRead: "party.read",
|
|
19
19
|
PartyUpdate: "party.update",
|
|
20
20
|
PaymentIntentsCreate: "payment_intents.create",
|
|
21
|
+
PaymentIntentsRead: "payment_intents.read",
|
|
22
|
+
CardPaymentsRead: "card_payments.read",
|
|
23
|
+
RefundsRead: "refunds.read",
|
|
24
|
+
ChargebacksRead: "chargebacks.read",
|
|
25
|
+
MandatesRead: "mandates.read",
|
|
26
|
+
EnrollmentRead: "enrollment.read",
|
|
21
27
|
};
|
|
@@ -17,5 +17,11 @@ export declare const CreateInvitationLinksResponseDataAttributesProposedAgentsIt
|
|
|
17
17
|
readonly PartyRead: "party.read";
|
|
18
18
|
readonly PartyUpdate: "party.update";
|
|
19
19
|
readonly PaymentIntentsCreate: "payment_intents.create";
|
|
20
|
+
readonly PaymentIntentsRead: "payment_intents.read";
|
|
21
|
+
readonly CardPaymentsRead: "card_payments.read";
|
|
22
|
+
readonly RefundsRead: "refunds.read";
|
|
23
|
+
readonly ChargebacksRead: "chargebacks.read";
|
|
24
|
+
readonly MandatesRead: "mandates.read";
|
|
25
|
+
readonly EnrollmentRead: "enrollment.read";
|
|
20
26
|
};
|
|
21
27
|
export type CreateInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem = (typeof CreateInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem)[keyof typeof CreateInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem];
|
|
@@ -18,4 +18,10 @@ export const CreateInvitationLinksResponseDataAttributesProposedAgentsItemPermis
|
|
|
18
18
|
PartyRead: "party.read",
|
|
19
19
|
PartyUpdate: "party.update",
|
|
20
20
|
PaymentIntentsCreate: "payment_intents.create",
|
|
21
|
+
PaymentIntentsRead: "payment_intents.read",
|
|
22
|
+
CardPaymentsRead: "card_payments.read",
|
|
23
|
+
RefundsRead: "refunds.read",
|
|
24
|
+
ChargebacksRead: "chargebacks.read",
|
|
25
|
+
MandatesRead: "mandates.read",
|
|
26
|
+
EnrollmentRead: "enrollment.read",
|
|
21
27
|
};
|
|
@@ -17,5 +17,11 @@ export declare const GetInvitationLinksResponseDataAttributesProposedAgentsItemP
|
|
|
17
17
|
readonly PartyRead: "party.read";
|
|
18
18
|
readonly PartyUpdate: "party.update";
|
|
19
19
|
readonly PaymentIntentsCreate: "payment_intents.create";
|
|
20
|
+
readonly PaymentIntentsRead: "payment_intents.read";
|
|
21
|
+
readonly CardPaymentsRead: "card_payments.read";
|
|
22
|
+
readonly RefundsRead: "refunds.read";
|
|
23
|
+
readonly ChargebacksRead: "chargebacks.read";
|
|
24
|
+
readonly MandatesRead: "mandates.read";
|
|
25
|
+
readonly EnrollmentRead: "enrollment.read";
|
|
20
26
|
};
|
|
21
27
|
export type GetInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem = (typeof GetInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem)[keyof typeof GetInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem];
|
|
@@ -18,4 +18,10 @@ export const GetInvitationLinksResponseDataAttributesProposedAgentsItemPermissio
|
|
|
18
18
|
PartyRead: "party.read",
|
|
19
19
|
PartyUpdate: "party.update",
|
|
20
20
|
PaymentIntentsCreate: "payment_intents.create",
|
|
21
|
+
PaymentIntentsRead: "payment_intents.read",
|
|
22
|
+
CardPaymentsRead: "card_payments.read",
|
|
23
|
+
RefundsRead: "refunds.read",
|
|
24
|
+
ChargebacksRead: "chargebacks.read",
|
|
25
|
+
MandatesRead: "mandates.read",
|
|
26
|
+
EnrollmentRead: "enrollment.read",
|
|
21
27
|
};
|
|
@@ -17,5 +17,11 @@ export declare const ListInvitationLinksResponseDataItemAttributesProposedAgents
|
|
|
17
17
|
readonly PartyRead: "party.read";
|
|
18
18
|
readonly PartyUpdate: "party.update";
|
|
19
19
|
readonly PaymentIntentsCreate: "payment_intents.create";
|
|
20
|
+
readonly PaymentIntentsRead: "payment_intents.read";
|
|
21
|
+
readonly CardPaymentsRead: "card_payments.read";
|
|
22
|
+
readonly RefundsRead: "refunds.read";
|
|
23
|
+
readonly ChargebacksRead: "chargebacks.read";
|
|
24
|
+
readonly MandatesRead: "mandates.read";
|
|
25
|
+
readonly EnrollmentRead: "enrollment.read";
|
|
20
26
|
};
|
|
21
27
|
export type ListInvitationLinksResponseDataItemAttributesProposedAgentsItemPermissionsItem = (typeof ListInvitationLinksResponseDataItemAttributesProposedAgentsItemPermissionsItem)[keyof typeof ListInvitationLinksResponseDataItemAttributesProposedAgentsItemPermissionsItem];
|
|
@@ -18,4 +18,10 @@ export const ListInvitationLinksResponseDataItemAttributesProposedAgentsItemPerm
|
|
|
18
18
|
PartyRead: "party.read",
|
|
19
19
|
PartyUpdate: "party.update",
|
|
20
20
|
PaymentIntentsCreate: "payment_intents.create",
|
|
21
|
+
PaymentIntentsRead: "payment_intents.read",
|
|
22
|
+
CardPaymentsRead: "card_payments.read",
|
|
23
|
+
RefundsRead: "refunds.read",
|
|
24
|
+
ChargebacksRead: "chargebacks.read",
|
|
25
|
+
MandatesRead: "mandates.read",
|
|
26
|
+
EnrollmentRead: "enrollment.read",
|
|
21
27
|
};
|
|
@@ -17,5 +17,11 @@ export declare const RevokeInvitationLinksResponseDataAttributesProposedAgentsIt
|
|
|
17
17
|
readonly PartyRead: "party.read";
|
|
18
18
|
readonly PartyUpdate: "party.update";
|
|
19
19
|
readonly PaymentIntentsCreate: "payment_intents.create";
|
|
20
|
+
readonly PaymentIntentsRead: "payment_intents.read";
|
|
21
|
+
readonly CardPaymentsRead: "card_payments.read";
|
|
22
|
+
readonly RefundsRead: "refunds.read";
|
|
23
|
+
readonly ChargebacksRead: "chargebacks.read";
|
|
24
|
+
readonly MandatesRead: "mandates.read";
|
|
25
|
+
readonly EnrollmentRead: "enrollment.read";
|
|
20
26
|
};
|
|
21
27
|
export type RevokeInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem = (typeof RevokeInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem)[keyof typeof RevokeInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem];
|
|
@@ -18,4 +18,10 @@ export const RevokeInvitationLinksResponseDataAttributesProposedAgentsItemPermis
|
|
|
18
18
|
PartyRead: "party.read",
|
|
19
19
|
PartyUpdate: "party.update",
|
|
20
20
|
PaymentIntentsCreate: "payment_intents.create",
|
|
21
|
+
PaymentIntentsRead: "payment_intents.read",
|
|
22
|
+
CardPaymentsRead: "card_payments.read",
|
|
23
|
+
RefundsRead: "refunds.read",
|
|
24
|
+
ChargebacksRead: "chargebacks.read",
|
|
25
|
+
MandatesRead: "mandates.read",
|
|
26
|
+
EnrollmentRead: "enrollment.read",
|
|
21
27
|
};
|
|
@@ -119,6 +119,94 @@ export declare class PartiesClient {
|
|
|
119
119
|
*/
|
|
120
120
|
getCompliance(request: Natural.GetCompliancePartiesRequest, requestOptions?: PartiesClient.RequestOptions): core.HttpResponsePromise<Natural.GetCompliancePartiesResponse>;
|
|
121
121
|
private __getCompliance;
|
|
122
|
+
/**
|
|
123
|
+
* Get branding for your party or a party that has delegated party read permission to you
|
|
124
|
+
*
|
|
125
|
+
* @param {Natural.GetBrandingForPartyPartiesRequest} request
|
|
126
|
+
* @param {PartiesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
127
|
+
*
|
|
128
|
+
* @throws {@link Natural.BadRequestError}
|
|
129
|
+
* @throws {@link Natural.UnauthorizedError}
|
|
130
|
+
* @throws {@link Natural.ForbiddenError}
|
|
131
|
+
* @throws {@link Natural.NotFoundError}
|
|
132
|
+
* @throws {@link Natural.ConflictError}
|
|
133
|
+
* @throws {@link Natural.UnprocessableEntityError}
|
|
134
|
+
* @throws {@link Natural.PreconditionError}
|
|
135
|
+
* @throws {@link Natural.TooManyRequestsError}
|
|
136
|
+
* @throws {@link Natural.InternalServerError}
|
|
137
|
+
* @throws {@link Natural.NotImplementedError}
|
|
138
|
+
* @throws {@link Natural.BadGatewayError}
|
|
139
|
+
* @throws {@link Natural.ServiceUnavailableError}
|
|
140
|
+
* @throws {@link errors.NaturalError}
|
|
141
|
+
* @throws {@link errors.NaturalTimeoutError}
|
|
142
|
+
*
|
|
143
|
+
* @example
|
|
144
|
+
* await client.parties.getBrandingForParty({
|
|
145
|
+
* partyId: "partyId"
|
|
146
|
+
* })
|
|
147
|
+
*/
|
|
148
|
+
getBrandingForParty(request: Natural.GetBrandingForPartyPartiesRequest, requestOptions?: PartiesClient.RequestOptions): core.HttpResponsePromise<Natural.GetBrandingForPartyPartiesResponse>;
|
|
149
|
+
private __getBrandingForParty;
|
|
150
|
+
/**
|
|
151
|
+
* Update branding for your party or a party that has delegated party update permission to you. Profile photo changes require a business party in Live.
|
|
152
|
+
*
|
|
153
|
+
* @param {Natural.UpdateBrandingForPartyPartiesRequest} request
|
|
154
|
+
* @param {PartiesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
155
|
+
*
|
|
156
|
+
* @throws {@link Natural.BadRequestError}
|
|
157
|
+
* @throws {@link Natural.UnauthorizedError}
|
|
158
|
+
* @throws {@link Natural.ForbiddenError}
|
|
159
|
+
* @throws {@link Natural.NotFoundError}
|
|
160
|
+
* @throws {@link Natural.ConflictError}
|
|
161
|
+
* @throws {@link Natural.UnprocessableEntityError}
|
|
162
|
+
* @throws {@link Natural.PreconditionError}
|
|
163
|
+
* @throws {@link Natural.TooManyRequestsError}
|
|
164
|
+
* @throws {@link Natural.InternalServerError}
|
|
165
|
+
* @throws {@link Natural.NotImplementedError}
|
|
166
|
+
* @throws {@link Natural.BadGatewayError}
|
|
167
|
+
* @throws {@link Natural.ServiceUnavailableError}
|
|
168
|
+
* @throws {@link errors.NaturalError}
|
|
169
|
+
* @throws {@link errors.NaturalTimeoutError}
|
|
170
|
+
*
|
|
171
|
+
* @example
|
|
172
|
+
* await client.parties.updateBrandingForParty({
|
|
173
|
+
* idempotencyKey: "Idempotency-Key",
|
|
174
|
+
* partyId: "partyId",
|
|
175
|
+
* brandColor: "#2563EB"
|
|
176
|
+
* })
|
|
177
|
+
*/
|
|
178
|
+
updateBrandingForParty(request: Natural.UpdateBrandingForPartyPartiesRequest, requestOptions?: PartiesClient.RequestOptions): core.HttpResponsePromise<Natural.UpdateBrandingForPartyPartiesResponse>;
|
|
179
|
+
private __updateBrandingForParty;
|
|
180
|
+
/**
|
|
181
|
+
* Create an upload for a business profile photo in Live using your own or delegated party update permission
|
|
182
|
+
*
|
|
183
|
+
* @param {Natural.CreateBrandingPhotoUploadPartiesRequest} request
|
|
184
|
+
* @param {PartiesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
185
|
+
*
|
|
186
|
+
* @throws {@link Natural.BadRequestError}
|
|
187
|
+
* @throws {@link Natural.UnauthorizedError}
|
|
188
|
+
* @throws {@link Natural.ForbiddenError}
|
|
189
|
+
* @throws {@link Natural.NotFoundError}
|
|
190
|
+
* @throws {@link Natural.ConflictError}
|
|
191
|
+
* @throws {@link Natural.UnprocessableEntityError}
|
|
192
|
+
* @throws {@link Natural.PreconditionError}
|
|
193
|
+
* @throws {@link Natural.TooManyRequestsError}
|
|
194
|
+
* @throws {@link Natural.InternalServerError}
|
|
195
|
+
* @throws {@link Natural.NotImplementedError}
|
|
196
|
+
* @throws {@link Natural.BadGatewayError}
|
|
197
|
+
* @throws {@link Natural.ServiceUnavailableError}
|
|
198
|
+
* @throws {@link errors.NaturalError}
|
|
199
|
+
* @throws {@link errors.NaturalTimeoutError}
|
|
200
|
+
*
|
|
201
|
+
* @example
|
|
202
|
+
* await client.parties.createBrandingPhotoUpload({
|
|
203
|
+
* partyId: "partyId",
|
|
204
|
+
* contentType: "image/png",
|
|
205
|
+
* sizeBytes: 128000
|
|
206
|
+
* })
|
|
207
|
+
*/
|
|
208
|
+
createBrandingPhotoUpload(request: Natural.CreateBrandingPhotoUploadPartiesRequest, requestOptions?: PartiesClient.RequestOptions): core.HttpResponsePromise<Natural.CreateBrandingPhotoUploadPartiesResponse>;
|
|
209
|
+
private __createBrandingPhotoUpload;
|
|
122
210
|
/**
|
|
123
211
|
* Set your party's handle
|
|
124
212
|
*
|
|
@@ -8,6 +8,17 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
8
8
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
12
|
+
var t = {};
|
|
13
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
14
|
+
t[p] = s[p];
|
|
15
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
16
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
17
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
18
|
+
t[p[i]] = s[p[i]];
|
|
19
|
+
}
|
|
20
|
+
return t;
|
|
21
|
+
};
|
|
11
22
|
import { normalizeClientOptionsWithAuth } from "../../../../BaseClient.mjs";
|
|
12
23
|
import { mergeHeaders, mergeOnlyDefinedHeaders } from "../../../../core/headers.mjs";
|
|
13
24
|
import * as core from "../../../../core/index.mjs";
|
|
@@ -424,6 +435,310 @@ export class PartiesClient {
|
|
|
424
435
|
return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/parties/{partyId}/compliance");
|
|
425
436
|
});
|
|
426
437
|
}
|
|
438
|
+
/**
|
|
439
|
+
* Get branding for your party or a party that has delegated party read permission to you
|
|
440
|
+
*
|
|
441
|
+
* @param {Natural.GetBrandingForPartyPartiesRequest} request
|
|
442
|
+
* @param {PartiesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
443
|
+
*
|
|
444
|
+
* @throws {@link Natural.BadRequestError}
|
|
445
|
+
* @throws {@link Natural.UnauthorizedError}
|
|
446
|
+
* @throws {@link Natural.ForbiddenError}
|
|
447
|
+
* @throws {@link Natural.NotFoundError}
|
|
448
|
+
* @throws {@link Natural.ConflictError}
|
|
449
|
+
* @throws {@link Natural.UnprocessableEntityError}
|
|
450
|
+
* @throws {@link Natural.PreconditionError}
|
|
451
|
+
* @throws {@link Natural.TooManyRequestsError}
|
|
452
|
+
* @throws {@link Natural.InternalServerError}
|
|
453
|
+
* @throws {@link Natural.NotImplementedError}
|
|
454
|
+
* @throws {@link Natural.BadGatewayError}
|
|
455
|
+
* @throws {@link Natural.ServiceUnavailableError}
|
|
456
|
+
* @throws {@link errors.NaturalError}
|
|
457
|
+
* @throws {@link errors.NaturalTimeoutError}
|
|
458
|
+
*
|
|
459
|
+
* @example
|
|
460
|
+
* await client.parties.getBrandingForParty({
|
|
461
|
+
* partyId: "partyId"
|
|
462
|
+
* })
|
|
463
|
+
*/
|
|
464
|
+
getBrandingForParty(request, requestOptions) {
|
|
465
|
+
return core.HttpResponsePromise.fromPromise(this.__getBrandingForParty(request, requestOptions));
|
|
466
|
+
}
|
|
467
|
+
__getBrandingForParty(request, requestOptions) {
|
|
468
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
469
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
470
|
+
const { partyId } = request;
|
|
471
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
472
|
+
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ "X-Instance-ID": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.instanceId) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.instanceId }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
473
|
+
const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
|
|
474
|
+
url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.NaturalEnvironment.Production, `parties/${core.url.encodePathParam(partyId)}/branding`),
|
|
475
|
+
method: "GET",
|
|
476
|
+
headers: _headers,
|
|
477
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
478
|
+
timeoutMs: ((_j = (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.timeoutInSeconds) !== null && _j !== void 0 ? _j : 60) * 1000,
|
|
479
|
+
maxRetries: (_k = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _k !== void 0 ? _k : (_l = this._options) === null || _l === void 0 ? void 0 : _l.maxRetries,
|
|
480
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
481
|
+
fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
|
|
482
|
+
logging: this._options.logging,
|
|
483
|
+
});
|
|
484
|
+
if (_response.ok) {
|
|
485
|
+
return {
|
|
486
|
+
data: serializers.GetBrandingForPartyPartiesResponse.parseOrThrow(_response.body, {
|
|
487
|
+
unrecognizedObjectKeys: "passthrough",
|
|
488
|
+
allowUnrecognizedUnionMembers: true,
|
|
489
|
+
allowUnrecognizedEnumValues: true,
|
|
490
|
+
skipValidation: true,
|
|
491
|
+
breadcrumbsPrefix: ["response"],
|
|
492
|
+
}),
|
|
493
|
+
rawResponse: _response.rawResponse,
|
|
494
|
+
};
|
|
495
|
+
}
|
|
496
|
+
if (_response.error.reason === "status-code") {
|
|
497
|
+
switch (_response.error.statusCode) {
|
|
498
|
+
case 400:
|
|
499
|
+
throw new Natural.BadRequestError(_response.error.body, _response.rawResponse);
|
|
500
|
+
case 401:
|
|
501
|
+
throw new Natural.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
502
|
+
case 403:
|
|
503
|
+
throw new Natural.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
504
|
+
case 404:
|
|
505
|
+
throw new Natural.NotFoundError(_response.error.body, _response.rawResponse);
|
|
506
|
+
case 409:
|
|
507
|
+
throw new Natural.ConflictError(_response.error.body, _response.rawResponse);
|
|
508
|
+
case 422:
|
|
509
|
+
throw new Natural.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
510
|
+
case 428:
|
|
511
|
+
throw new Natural.PreconditionError(_response.error.body, _response.rawResponse);
|
|
512
|
+
case 429:
|
|
513
|
+
throw new Natural.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
514
|
+
case 500:
|
|
515
|
+
throw new Natural.InternalServerError(_response.error.body, _response.rawResponse);
|
|
516
|
+
case 501:
|
|
517
|
+
throw new Natural.NotImplementedError(_response.error.body, _response.rawResponse);
|
|
518
|
+
case 502:
|
|
519
|
+
throw new Natural.BadGatewayError(_response.error.body, _response.rawResponse);
|
|
520
|
+
case 503:
|
|
521
|
+
throw new Natural.ServiceUnavailableError(_response.error.body, _response.rawResponse);
|
|
522
|
+
default:
|
|
523
|
+
throw new errors.NaturalError({
|
|
524
|
+
statusCode: _response.error.statusCode,
|
|
525
|
+
body: _response.error.body,
|
|
526
|
+
rawResponse: _response.rawResponse,
|
|
527
|
+
});
|
|
528
|
+
}
|
|
529
|
+
}
|
|
530
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/parties/{partyId}/branding");
|
|
531
|
+
});
|
|
532
|
+
}
|
|
533
|
+
/**
|
|
534
|
+
* Update branding for your party or a party that has delegated party update permission to you. Profile photo changes require a business party in Live.
|
|
535
|
+
*
|
|
536
|
+
* @param {Natural.UpdateBrandingForPartyPartiesRequest} request
|
|
537
|
+
* @param {PartiesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
538
|
+
*
|
|
539
|
+
* @throws {@link Natural.BadRequestError}
|
|
540
|
+
* @throws {@link Natural.UnauthorizedError}
|
|
541
|
+
* @throws {@link Natural.ForbiddenError}
|
|
542
|
+
* @throws {@link Natural.NotFoundError}
|
|
543
|
+
* @throws {@link Natural.ConflictError}
|
|
544
|
+
* @throws {@link Natural.UnprocessableEntityError}
|
|
545
|
+
* @throws {@link Natural.PreconditionError}
|
|
546
|
+
* @throws {@link Natural.TooManyRequestsError}
|
|
547
|
+
* @throws {@link Natural.InternalServerError}
|
|
548
|
+
* @throws {@link Natural.NotImplementedError}
|
|
549
|
+
* @throws {@link Natural.BadGatewayError}
|
|
550
|
+
* @throws {@link Natural.ServiceUnavailableError}
|
|
551
|
+
* @throws {@link errors.NaturalError}
|
|
552
|
+
* @throws {@link errors.NaturalTimeoutError}
|
|
553
|
+
*
|
|
554
|
+
* @example
|
|
555
|
+
* await client.parties.updateBrandingForParty({
|
|
556
|
+
* idempotencyKey: "Idempotency-Key",
|
|
557
|
+
* partyId: "partyId",
|
|
558
|
+
* brandColor: "#2563EB"
|
|
559
|
+
* })
|
|
560
|
+
*/
|
|
561
|
+
updateBrandingForParty(request, requestOptions) {
|
|
562
|
+
return core.HttpResponsePromise.fromPromise(this.__updateBrandingForParty(request, requestOptions));
|
|
563
|
+
}
|
|
564
|
+
__updateBrandingForParty(request, requestOptions) {
|
|
565
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
566
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
567
|
+
const { partyId, idempotencyKey } = request, _body = __rest(request, ["partyId", "idempotencyKey"]);
|
|
568
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
569
|
+
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({
|
|
570
|
+
"Idempotency-Key": idempotencyKey,
|
|
571
|
+
"X-Instance-ID": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.instanceId) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.instanceId,
|
|
572
|
+
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
573
|
+
const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
|
|
574
|
+
url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.NaturalEnvironment.Production, `parties/${core.url.encodePathParam(partyId)}/branding`),
|
|
575
|
+
method: "PATCH",
|
|
576
|
+
headers: _headers,
|
|
577
|
+
contentType: "application/json",
|
|
578
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
579
|
+
requestType: "json",
|
|
580
|
+
body: mergeAdditionalBodyParameters(serializers.UpdateBrandingForPartyPartiesRequest.jsonOrThrow(_body, {
|
|
581
|
+
unrecognizedObjectKeys: "strip",
|
|
582
|
+
omitUndefined: true,
|
|
583
|
+
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
|
|
584
|
+
timeoutMs: ((_j = (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.timeoutInSeconds) !== null && _j !== void 0 ? _j : 60) * 1000,
|
|
585
|
+
maxRetries: (_k = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _k !== void 0 ? _k : (_l = this._options) === null || _l === void 0 ? void 0 : _l.maxRetries,
|
|
586
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
587
|
+
fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
|
|
588
|
+
logging: this._options.logging,
|
|
589
|
+
});
|
|
590
|
+
if (_response.ok) {
|
|
591
|
+
return {
|
|
592
|
+
data: serializers.UpdateBrandingForPartyPartiesResponse.parseOrThrow(_response.body, {
|
|
593
|
+
unrecognizedObjectKeys: "passthrough",
|
|
594
|
+
allowUnrecognizedUnionMembers: true,
|
|
595
|
+
allowUnrecognizedEnumValues: true,
|
|
596
|
+
skipValidation: true,
|
|
597
|
+
breadcrumbsPrefix: ["response"],
|
|
598
|
+
}),
|
|
599
|
+
rawResponse: _response.rawResponse,
|
|
600
|
+
};
|
|
601
|
+
}
|
|
602
|
+
if (_response.error.reason === "status-code") {
|
|
603
|
+
switch (_response.error.statusCode) {
|
|
604
|
+
case 400:
|
|
605
|
+
throw new Natural.BadRequestError(_response.error.body, _response.rawResponse);
|
|
606
|
+
case 401:
|
|
607
|
+
throw new Natural.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
608
|
+
case 403:
|
|
609
|
+
throw new Natural.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
610
|
+
case 404:
|
|
611
|
+
throw new Natural.NotFoundError(_response.error.body, _response.rawResponse);
|
|
612
|
+
case 409:
|
|
613
|
+
throw new Natural.ConflictError(_response.error.body, _response.rawResponse);
|
|
614
|
+
case 422:
|
|
615
|
+
throw new Natural.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
616
|
+
case 428:
|
|
617
|
+
throw new Natural.PreconditionError(_response.error.body, _response.rawResponse);
|
|
618
|
+
case 429:
|
|
619
|
+
throw new Natural.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
620
|
+
case 500:
|
|
621
|
+
throw new Natural.InternalServerError(_response.error.body, _response.rawResponse);
|
|
622
|
+
case 501:
|
|
623
|
+
throw new Natural.NotImplementedError(_response.error.body, _response.rawResponse);
|
|
624
|
+
case 502:
|
|
625
|
+
throw new Natural.BadGatewayError(_response.error.body, _response.rawResponse);
|
|
626
|
+
case 503:
|
|
627
|
+
throw new Natural.ServiceUnavailableError(_response.error.body, _response.rawResponse);
|
|
628
|
+
default:
|
|
629
|
+
throw new errors.NaturalError({
|
|
630
|
+
statusCode: _response.error.statusCode,
|
|
631
|
+
body: _response.error.body,
|
|
632
|
+
rawResponse: _response.rawResponse,
|
|
633
|
+
});
|
|
634
|
+
}
|
|
635
|
+
}
|
|
636
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "PATCH", "/parties/{partyId}/branding");
|
|
637
|
+
});
|
|
638
|
+
}
|
|
639
|
+
/**
|
|
640
|
+
* Create an upload for a business profile photo in Live using your own or delegated party update permission
|
|
641
|
+
*
|
|
642
|
+
* @param {Natural.CreateBrandingPhotoUploadPartiesRequest} request
|
|
643
|
+
* @param {PartiesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
644
|
+
*
|
|
645
|
+
* @throws {@link Natural.BadRequestError}
|
|
646
|
+
* @throws {@link Natural.UnauthorizedError}
|
|
647
|
+
* @throws {@link Natural.ForbiddenError}
|
|
648
|
+
* @throws {@link Natural.NotFoundError}
|
|
649
|
+
* @throws {@link Natural.ConflictError}
|
|
650
|
+
* @throws {@link Natural.UnprocessableEntityError}
|
|
651
|
+
* @throws {@link Natural.PreconditionError}
|
|
652
|
+
* @throws {@link Natural.TooManyRequestsError}
|
|
653
|
+
* @throws {@link Natural.InternalServerError}
|
|
654
|
+
* @throws {@link Natural.NotImplementedError}
|
|
655
|
+
* @throws {@link Natural.BadGatewayError}
|
|
656
|
+
* @throws {@link Natural.ServiceUnavailableError}
|
|
657
|
+
* @throws {@link errors.NaturalError}
|
|
658
|
+
* @throws {@link errors.NaturalTimeoutError}
|
|
659
|
+
*
|
|
660
|
+
* @example
|
|
661
|
+
* await client.parties.createBrandingPhotoUpload({
|
|
662
|
+
* partyId: "partyId",
|
|
663
|
+
* contentType: "image/png",
|
|
664
|
+
* sizeBytes: 128000
|
|
665
|
+
* })
|
|
666
|
+
*/
|
|
667
|
+
createBrandingPhotoUpload(request, requestOptions) {
|
|
668
|
+
return core.HttpResponsePromise.fromPromise(this.__createBrandingPhotoUpload(request, requestOptions));
|
|
669
|
+
}
|
|
670
|
+
__createBrandingPhotoUpload(request, requestOptions) {
|
|
671
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
672
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
673
|
+
const { partyId } = request, _body = __rest(request, ["partyId"]);
|
|
674
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
675
|
+
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ "X-Instance-ID": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.instanceId) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.instanceId }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
676
|
+
const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
|
|
677
|
+
url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.NaturalEnvironment.Production, `parties/${core.url.encodePathParam(partyId)}/branding/photo-uploads`),
|
|
678
|
+
method: "POST",
|
|
679
|
+
headers: _headers,
|
|
680
|
+
contentType: "application/json",
|
|
681
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
682
|
+
requestType: "json",
|
|
683
|
+
body: mergeAdditionalBodyParameters(serializers.CreateBrandingPhotoUploadPartiesRequest.jsonOrThrow(_body, {
|
|
684
|
+
unrecognizedObjectKeys: "strip",
|
|
685
|
+
omitUndefined: true,
|
|
686
|
+
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
|
|
687
|
+
timeoutMs: ((_j = (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.timeoutInSeconds) !== null && _j !== void 0 ? _j : 60) * 1000,
|
|
688
|
+
maxRetries: (_k = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _k !== void 0 ? _k : (_l = this._options) === null || _l === void 0 ? void 0 : _l.maxRetries,
|
|
689
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
690
|
+
fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
|
|
691
|
+
logging: this._options.logging,
|
|
692
|
+
});
|
|
693
|
+
if (_response.ok) {
|
|
694
|
+
return {
|
|
695
|
+
data: serializers.CreateBrandingPhotoUploadPartiesResponse.parseOrThrow(_response.body, {
|
|
696
|
+
unrecognizedObjectKeys: "passthrough",
|
|
697
|
+
allowUnrecognizedUnionMembers: true,
|
|
698
|
+
allowUnrecognizedEnumValues: true,
|
|
699
|
+
skipValidation: true,
|
|
700
|
+
breadcrumbsPrefix: ["response"],
|
|
701
|
+
}),
|
|
702
|
+
rawResponse: _response.rawResponse,
|
|
703
|
+
};
|
|
704
|
+
}
|
|
705
|
+
if (_response.error.reason === "status-code") {
|
|
706
|
+
switch (_response.error.statusCode) {
|
|
707
|
+
case 400:
|
|
708
|
+
throw new Natural.BadRequestError(_response.error.body, _response.rawResponse);
|
|
709
|
+
case 401:
|
|
710
|
+
throw new Natural.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
711
|
+
case 403:
|
|
712
|
+
throw new Natural.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
713
|
+
case 404:
|
|
714
|
+
throw new Natural.NotFoundError(_response.error.body, _response.rawResponse);
|
|
715
|
+
case 409:
|
|
716
|
+
throw new Natural.ConflictError(_response.error.body, _response.rawResponse);
|
|
717
|
+
case 422:
|
|
718
|
+
throw new Natural.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
719
|
+
case 428:
|
|
720
|
+
throw new Natural.PreconditionError(_response.error.body, _response.rawResponse);
|
|
721
|
+
case 429:
|
|
722
|
+
throw new Natural.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
723
|
+
case 500:
|
|
724
|
+
throw new Natural.InternalServerError(_response.error.body, _response.rawResponse);
|
|
725
|
+
case 501:
|
|
726
|
+
throw new Natural.NotImplementedError(_response.error.body, _response.rawResponse);
|
|
727
|
+
case 502:
|
|
728
|
+
throw new Natural.BadGatewayError(_response.error.body, _response.rawResponse);
|
|
729
|
+
case 503:
|
|
730
|
+
throw new Natural.ServiceUnavailableError(_response.error.body, _response.rawResponse);
|
|
731
|
+
default:
|
|
732
|
+
throw new errors.NaturalError({
|
|
733
|
+
statusCode: _response.error.statusCode,
|
|
734
|
+
body: _response.error.body,
|
|
735
|
+
rawResponse: _response.rawResponse,
|
|
736
|
+
});
|
|
737
|
+
}
|
|
738
|
+
}
|
|
739
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/parties/{partyId}/branding/photo-uploads");
|
|
740
|
+
});
|
|
741
|
+
}
|
|
427
742
|
/**
|
|
428
743
|
* Set your party's handle
|
|
429
744
|
*
|
package/dist/esm/api/resources/parties/client/requests/CreateBrandingPhotoUploadPartiesRequest.d.mts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type * as Natural from "../../../../index.mjs";
|
|
2
|
+
/**
|
|
3
|
+
* @example
|
|
4
|
+
* {
|
|
5
|
+
* partyId: "partyId",
|
|
6
|
+
* contentType: "image/png",
|
|
7
|
+
* sizeBytes: 128000
|
|
8
|
+
* }
|
|
9
|
+
*/
|
|
10
|
+
export interface CreateBrandingPhotoUploadPartiesRequest {
|
|
11
|
+
partyId: string;
|
|
12
|
+
/** Avatar image MIME type */
|
|
13
|
+
contentType: Natural.CreateBrandingPhotoUploadPartiesRequestContentType;
|
|
14
|
+
/** Avatar image size in bytes */
|
|
15
|
+
sizeBytes: number;
|
|
16
|
+
}
|
package/dist/esm/api/resources/parties/client/requests/UpdateBrandingForPartyPartiesRequest.d.mts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @example
|
|
3
|
+
* {
|
|
4
|
+
* idempotencyKey: "Idempotency-Key",
|
|
5
|
+
* partyId: "partyId",
|
|
6
|
+
* brandColor: "#2563EB"
|
|
7
|
+
* }
|
|
8
|
+
*/
|
|
9
|
+
export interface UpdateBrandingForPartyPartiesRequest {
|
|
10
|
+
partyId: string;
|
|
11
|
+
/** Unique key for safely retrying a request without creating duplicates. */
|
|
12
|
+
idempotencyKey: string;
|
|
13
|
+
brandColor?: string | null;
|
|
14
|
+
/** Uploaded business photo object key; null removes the photo. Omit to leave unchanged. */
|
|
15
|
+
avatarObjectKey?: string | null;
|
|
16
|
+
}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
+
export type { CreateBrandingPhotoUploadPartiesRequest } from "./CreateBrandingPhotoUploadPartiesRequest.mjs";
|
|
2
|
+
export type { GetBrandingForPartyPartiesRequest } from "./GetBrandingForPartyPartiesRequest.mjs";
|
|
1
3
|
export type { GetCompliancePartiesRequest } from "./GetCompliancePartiesRequest.mjs";
|
|
2
4
|
export type { ListMembersPartiesRequest } from "./ListMembersPartiesRequest.mjs";
|
|
3
5
|
export type { RemoveMemberPartiesRequest } from "./RemoveMemberPartiesRequest.mjs";
|
|
4
6
|
export type { SetHandlePartiesRequest } from "./SetHandlePartiesRequest.mjs";
|
|
5
7
|
export type { SetLimitsPartiesRequest } from "./SetLimitsPartiesRequest.mjs";
|
|
8
|
+
export type { UpdateBrandingForPartyPartiesRequest } from "./UpdateBrandingForPartyPartiesRequest.mjs";
|
|
6
9
|
export type { UpdMyPartyParams } from "./UpdMyPartyParams.mjs";
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/** Avatar image MIME type */
|
|
2
|
+
export declare const CreateBrandingPhotoUploadPartiesRequestContentType: {
|
|
3
|
+
readonly ImageJpeg: "image/jpeg";
|
|
4
|
+
readonly ImagePng: "image/png";
|
|
5
|
+
readonly ImageWebp: "image/webp";
|
|
6
|
+
};
|
|
7
|
+
export type CreateBrandingPhotoUploadPartiesRequestContentType = (typeof CreateBrandingPhotoUploadPartiesRequestContentType)[keyof typeof CreateBrandingPhotoUploadPartiesRequestContentType];
|