@naturalpay/sdk 1.6.13 → 1.6.15
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 +7 -0
- package/dist/cjs/api/resources/agents/types/CreateCustomerAgentsRequestPermissionsItem.js +7 -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 +7 -0
- package/dist/cjs/api/resources/apiKeys/types/CreateApiKeysRequestScopesItem.js +7 -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 +7 -0
- package/dist/cjs/api/resources/customers/types/CreateInvitationsCustomersRequestAgentsItemPermissionsItem.js +7 -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 +7 -0
- package/dist/cjs/api/resources/invitationLinks/types/CreateInvitationLinksRequestProposedAgentsItemPermissionsItem.js +7 -0
- package/dist/cjs/api/resources/invitationLinks/types/CreateInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.d.ts +7 -0
- package/dist/cjs/api/resources/invitationLinks/types/CreateInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.js +7 -0
- package/dist/cjs/api/resources/invitationLinks/types/GetInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.d.ts +7 -0
- package/dist/cjs/api/resources/invitationLinks/types/GetInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.js +7 -0
- package/dist/cjs/api/resources/invitationLinks/types/ListInvitationLinksResponseDataItemAttributesProposedAgentsItemPermissionsItem.d.ts +7 -0
- package/dist/cjs/api/resources/invitationLinks/types/ListInvitationLinksResponseDataItemAttributesProposedAgentsItemPermissionsItem.js +7 -0
- package/dist/cjs/api/resources/invitationLinks/types/RevokeInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.d.ts +7 -0
- package/dist/cjs/api/resources/invitationLinks/types/RevokeInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.js +7 -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 +7 -0
- package/dist/cjs/api/resources/simulations/types/InviteCustomerSimulationsRequestPermissionsItem.js +7 -0
- package/dist/cjs/api/resources/simulations/types/InviteCustomerSimulationsResponseDataItemAttributes.d.ts +2 -0
- package/dist/cjs/api/resources/transactions/types/GetTransactionsResponseDataRelationshipsRefund.d.ts +8 -0
- package/dist/cjs/api/resources/transactions/types/GetTransactionsResponseDataRelationshipsRefund.js +3 -0
- package/dist/cjs/api/resources/transactions/types/GetTransactionsResponseDataRelationshipsRefundData.d.ts +9 -0
- package/dist/cjs/api/resources/transactions/types/GetTransactionsResponseDataRelationshipsRefundData.js +3 -0
- package/dist/cjs/api/resources/transactions/types/GetTransactionsResponseDataRelationshipsRefundDataType.d.ts +5 -0
- package/dist/cjs/api/resources/transactions/types/GetTransactionsResponseDataRelationshipsRefundDataType.js +8 -0
- package/dist/cjs/api/resources/transactions/types/ListTransactionsResponseDataItemRelationshipsRefund.d.ts +8 -0
- package/dist/cjs/api/resources/transactions/types/ListTransactionsResponseDataItemRelationshipsRefund.js +3 -0
- package/dist/cjs/api/resources/transactions/types/ListTransactionsResponseDataItemRelationshipsRefundData.d.ts +9 -0
- package/dist/cjs/api/resources/transactions/types/ListTransactionsResponseDataItemRelationshipsRefundData.js +3 -0
- package/dist/cjs/api/resources/transactions/types/ListTransactionsResponseDataItemRelationshipsRefundDataType.d.ts +5 -0
- package/dist/cjs/api/resources/transactions/types/ListTransactionsResponseDataItemRelationshipsRefundDataType.js +8 -0
- package/dist/cjs/api/resources/transactions/types/TxnDetailRels.d.ts +2 -0
- package/dist/cjs/api/resources/transactions/types/TxnRels.d.ts +2 -0
- package/dist/cjs/api/resources/transactions/types/index.d.ts +6 -0
- package/dist/cjs/api/resources/transactions/types/index.js +6 -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 +7 -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 +7 -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 +7 -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 +7 -0
- package/dist/cjs/serialization/resources/invitationLinks/types/CreateInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.d.ts +1 -1
- package/dist/cjs/serialization/resources/invitationLinks/types/CreateInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.js +7 -0
- package/dist/cjs/serialization/resources/invitationLinks/types/GetInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.d.ts +1 -1
- package/dist/cjs/serialization/resources/invitationLinks/types/GetInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.js +7 -0
- package/dist/cjs/serialization/resources/invitationLinks/types/ListInvitationLinksResponseDataItemAttributesProposedAgentsItemPermissionsItem.d.ts +1 -1
- package/dist/cjs/serialization/resources/invitationLinks/types/ListInvitationLinksResponseDataItemAttributesProposedAgentsItemPermissionsItem.js +7 -0
- package/dist/cjs/serialization/resources/invitationLinks/types/RevokeInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.d.ts +1 -1
- package/dist/cjs/serialization/resources/invitationLinks/types/RevokeInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.js +7 -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 +7 -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/transactions/types/GetTransactionsResponseDataRelationshipsRefund.d.ts +10 -0
- package/dist/cjs/serialization/resources/transactions/types/GetTransactionsResponseDataRelationshipsRefund.js +42 -0
- package/dist/cjs/serialization/resources/transactions/types/GetTransactionsResponseDataRelationshipsRefundData.d.ts +11 -0
- package/dist/cjs/serialization/resources/transactions/types/GetTransactionsResponseDataRelationshipsRefundData.js +43 -0
- package/dist/cjs/serialization/resources/transactions/types/GetTransactionsResponseDataRelationshipsRefundDataType.d.ts +7 -0
- package/dist/cjs/serialization/resources/transactions/types/GetTransactionsResponseDataRelationshipsRefundDataType.js +39 -0
- package/dist/cjs/serialization/resources/transactions/types/ListTransactionsResponseDataItemRelationshipsRefund.d.ts +10 -0
- package/dist/cjs/serialization/resources/transactions/types/ListTransactionsResponseDataItemRelationshipsRefund.js +42 -0
- package/dist/cjs/serialization/resources/transactions/types/ListTransactionsResponseDataItemRelationshipsRefundData.d.ts +11 -0
- package/dist/cjs/serialization/resources/transactions/types/ListTransactionsResponseDataItemRelationshipsRefundData.js +43 -0
- package/dist/cjs/serialization/resources/transactions/types/ListTransactionsResponseDataItemRelationshipsRefundDataType.d.ts +7 -0
- package/dist/cjs/serialization/resources/transactions/types/ListTransactionsResponseDataItemRelationshipsRefundDataType.js +39 -0
- package/dist/cjs/serialization/resources/transactions/types/TxnDetailRels.d.ts +2 -0
- package/dist/cjs/serialization/resources/transactions/types/TxnDetailRels.js +2 -0
- package/dist/cjs/serialization/resources/transactions/types/TxnRels.d.ts +2 -0
- package/dist/cjs/serialization/resources/transactions/types/TxnRels.js +2 -0
- package/dist/cjs/serialization/resources/transactions/types/index.d.ts +6 -0
- package/dist/cjs/serialization/resources/transactions/types/index.js +6 -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 +7 -0
- package/dist/esm/api/resources/agents/types/CreateCustomerAgentsRequestPermissionsItem.mjs +7 -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 +7 -0
- package/dist/esm/api/resources/apiKeys/types/CreateApiKeysRequestScopesItem.mjs +7 -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 +7 -0
- package/dist/esm/api/resources/customers/types/CreateInvitationsCustomersRequestAgentsItemPermissionsItem.mjs +7 -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 +7 -0
- package/dist/esm/api/resources/invitationLinks/types/CreateInvitationLinksRequestProposedAgentsItemPermissionsItem.mjs +7 -0
- package/dist/esm/api/resources/invitationLinks/types/CreateInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.d.mts +7 -0
- package/dist/esm/api/resources/invitationLinks/types/CreateInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.mjs +7 -0
- package/dist/esm/api/resources/invitationLinks/types/GetInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.d.mts +7 -0
- package/dist/esm/api/resources/invitationLinks/types/GetInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.mjs +7 -0
- package/dist/esm/api/resources/invitationLinks/types/ListInvitationLinksResponseDataItemAttributesProposedAgentsItemPermissionsItem.d.mts +7 -0
- package/dist/esm/api/resources/invitationLinks/types/ListInvitationLinksResponseDataItemAttributesProposedAgentsItemPermissionsItem.mjs +7 -0
- package/dist/esm/api/resources/invitationLinks/types/RevokeInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.d.mts +7 -0
- package/dist/esm/api/resources/invitationLinks/types/RevokeInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.mjs +7 -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 +7 -0
- package/dist/esm/api/resources/simulations/types/InviteCustomerSimulationsRequestPermissionsItem.mjs +7 -0
- package/dist/esm/api/resources/simulations/types/InviteCustomerSimulationsResponseDataItemAttributes.d.mts +2 -0
- package/dist/esm/api/resources/transactions/types/GetTransactionsResponseDataRelationshipsRefund.d.mts +8 -0
- package/dist/esm/api/resources/transactions/types/GetTransactionsResponseDataRelationshipsRefund.mjs +2 -0
- package/dist/esm/api/resources/transactions/types/GetTransactionsResponseDataRelationshipsRefundData.d.mts +9 -0
- package/dist/esm/api/resources/transactions/types/GetTransactionsResponseDataRelationshipsRefundData.mjs +2 -0
- package/dist/esm/api/resources/transactions/types/GetTransactionsResponseDataRelationshipsRefundDataType.d.mts +5 -0
- package/dist/esm/api/resources/transactions/types/GetTransactionsResponseDataRelationshipsRefundDataType.mjs +5 -0
- package/dist/esm/api/resources/transactions/types/ListTransactionsResponseDataItemRelationshipsRefund.d.mts +8 -0
- package/dist/esm/api/resources/transactions/types/ListTransactionsResponseDataItemRelationshipsRefund.mjs +2 -0
- package/dist/esm/api/resources/transactions/types/ListTransactionsResponseDataItemRelationshipsRefundData.d.mts +9 -0
- package/dist/esm/api/resources/transactions/types/ListTransactionsResponseDataItemRelationshipsRefundData.mjs +2 -0
- package/dist/esm/api/resources/transactions/types/ListTransactionsResponseDataItemRelationshipsRefundDataType.d.mts +5 -0
- package/dist/esm/api/resources/transactions/types/ListTransactionsResponseDataItemRelationshipsRefundDataType.mjs +5 -0
- package/dist/esm/api/resources/transactions/types/TxnDetailRels.d.mts +2 -0
- package/dist/esm/api/resources/transactions/types/TxnRels.d.mts +2 -0
- package/dist/esm/api/resources/transactions/types/index.d.mts +6 -0
- package/dist/esm/api/resources/transactions/types/index.mjs +6 -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 +7 -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 +7 -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 +7 -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 +7 -0
- package/dist/esm/serialization/resources/invitationLinks/types/CreateInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.d.mts +1 -1
- package/dist/esm/serialization/resources/invitationLinks/types/CreateInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.mjs +7 -0
- package/dist/esm/serialization/resources/invitationLinks/types/GetInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.d.mts +1 -1
- package/dist/esm/serialization/resources/invitationLinks/types/GetInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.mjs +7 -0
- package/dist/esm/serialization/resources/invitationLinks/types/ListInvitationLinksResponseDataItemAttributesProposedAgentsItemPermissionsItem.d.mts +1 -1
- package/dist/esm/serialization/resources/invitationLinks/types/ListInvitationLinksResponseDataItemAttributesProposedAgentsItemPermissionsItem.mjs +7 -0
- package/dist/esm/serialization/resources/invitationLinks/types/RevokeInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.d.mts +1 -1
- package/dist/esm/serialization/resources/invitationLinks/types/RevokeInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.mjs +7 -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 +7 -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/transactions/types/GetTransactionsResponseDataRelationshipsRefund.d.mts +10 -0
- package/dist/esm/serialization/resources/transactions/types/GetTransactionsResponseDataRelationshipsRefund.mjs +6 -0
- package/dist/esm/serialization/resources/transactions/types/GetTransactionsResponseDataRelationshipsRefundData.d.mts +11 -0
- package/dist/esm/serialization/resources/transactions/types/GetTransactionsResponseDataRelationshipsRefundData.mjs +7 -0
- package/dist/esm/serialization/resources/transactions/types/GetTransactionsResponseDataRelationshipsRefundDataType.d.mts +7 -0
- package/dist/esm/serialization/resources/transactions/types/GetTransactionsResponseDataRelationshipsRefundDataType.mjs +3 -0
- package/dist/esm/serialization/resources/transactions/types/ListTransactionsResponseDataItemRelationshipsRefund.d.mts +10 -0
- package/dist/esm/serialization/resources/transactions/types/ListTransactionsResponseDataItemRelationshipsRefund.mjs +6 -0
- package/dist/esm/serialization/resources/transactions/types/ListTransactionsResponseDataItemRelationshipsRefundData.d.mts +11 -0
- package/dist/esm/serialization/resources/transactions/types/ListTransactionsResponseDataItemRelationshipsRefundData.mjs +7 -0
- package/dist/esm/serialization/resources/transactions/types/ListTransactionsResponseDataItemRelationshipsRefundDataType.d.mts +7 -0
- package/dist/esm/serialization/resources/transactions/types/ListTransactionsResponseDataItemRelationshipsRefundDataType.mjs +3 -0
- package/dist/esm/serialization/resources/transactions/types/TxnDetailRels.d.mts +2 -0
- package/dist/esm/serialization/resources/transactions/types/TxnDetailRels.mjs +2 -0
- package/dist/esm/serialization/resources/transactions/types/TxnRels.d.mts +2 -0
- package/dist/esm/serialization/resources/transactions/types/TxnRels.mjs +2 -0
- package/dist/esm/serialization/resources/transactions/types/index.d.mts +6 -0
- package/dist/esm/serialization/resources/transactions/types/index.mjs +6 -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
|
@@ -42,6 +42,17 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
42
42
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
43
43
|
});
|
|
44
44
|
};
|
|
45
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
46
|
+
var t = {};
|
|
47
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
48
|
+
t[p] = s[p];
|
|
49
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
50
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
51
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
52
|
+
t[p[i]] = s[p[i]];
|
|
53
|
+
}
|
|
54
|
+
return t;
|
|
55
|
+
};
|
|
45
56
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
46
57
|
exports.PartiesClient = void 0;
|
|
47
58
|
const BaseClient_js_1 = require("../../../../BaseClient.js");
|
|
@@ -460,6 +471,310 @@ class PartiesClient {
|
|
|
460
471
|
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/parties/{partyId}/compliance");
|
|
461
472
|
});
|
|
462
473
|
}
|
|
474
|
+
/**
|
|
475
|
+
* Get branding for your party or a party that has delegated party read permission to you
|
|
476
|
+
*
|
|
477
|
+
* @param {Natural.GetBrandingForPartyPartiesRequest} request
|
|
478
|
+
* @param {PartiesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
479
|
+
*
|
|
480
|
+
* @throws {@link Natural.BadRequestError}
|
|
481
|
+
* @throws {@link Natural.UnauthorizedError}
|
|
482
|
+
* @throws {@link Natural.ForbiddenError}
|
|
483
|
+
* @throws {@link Natural.NotFoundError}
|
|
484
|
+
* @throws {@link Natural.ConflictError}
|
|
485
|
+
* @throws {@link Natural.UnprocessableEntityError}
|
|
486
|
+
* @throws {@link Natural.PreconditionError}
|
|
487
|
+
* @throws {@link Natural.TooManyRequestsError}
|
|
488
|
+
* @throws {@link Natural.InternalServerError}
|
|
489
|
+
* @throws {@link Natural.NotImplementedError}
|
|
490
|
+
* @throws {@link Natural.BadGatewayError}
|
|
491
|
+
* @throws {@link Natural.ServiceUnavailableError}
|
|
492
|
+
* @throws {@link errors.NaturalError}
|
|
493
|
+
* @throws {@link errors.NaturalTimeoutError}
|
|
494
|
+
*
|
|
495
|
+
* @example
|
|
496
|
+
* await client.parties.getBrandingForParty({
|
|
497
|
+
* partyId: "partyId"
|
|
498
|
+
* })
|
|
499
|
+
*/
|
|
500
|
+
getBrandingForParty(request, requestOptions) {
|
|
501
|
+
return core.HttpResponsePromise.fromPromise(this.__getBrandingForParty(request, requestOptions));
|
|
502
|
+
}
|
|
503
|
+
__getBrandingForParty(request, requestOptions) {
|
|
504
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
505
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
506
|
+
const { partyId } = request;
|
|
507
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
508
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.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);
|
|
509
|
+
const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
|
|
510
|
+
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`),
|
|
511
|
+
method: "GET",
|
|
512
|
+
headers: _headers,
|
|
513
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
514
|
+
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,
|
|
515
|
+
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,
|
|
516
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
517
|
+
fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
|
|
518
|
+
logging: this._options.logging,
|
|
519
|
+
});
|
|
520
|
+
if (_response.ok) {
|
|
521
|
+
return {
|
|
522
|
+
data: serializers.GetBrandingForPartyPartiesResponse.parseOrThrow(_response.body, {
|
|
523
|
+
unrecognizedObjectKeys: "passthrough",
|
|
524
|
+
allowUnrecognizedUnionMembers: true,
|
|
525
|
+
allowUnrecognizedEnumValues: true,
|
|
526
|
+
skipValidation: true,
|
|
527
|
+
breadcrumbsPrefix: ["response"],
|
|
528
|
+
}),
|
|
529
|
+
rawResponse: _response.rawResponse,
|
|
530
|
+
};
|
|
531
|
+
}
|
|
532
|
+
if (_response.error.reason === "status-code") {
|
|
533
|
+
switch (_response.error.statusCode) {
|
|
534
|
+
case 400:
|
|
535
|
+
throw new Natural.BadRequestError(_response.error.body, _response.rawResponse);
|
|
536
|
+
case 401:
|
|
537
|
+
throw new Natural.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
538
|
+
case 403:
|
|
539
|
+
throw new Natural.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
540
|
+
case 404:
|
|
541
|
+
throw new Natural.NotFoundError(_response.error.body, _response.rawResponse);
|
|
542
|
+
case 409:
|
|
543
|
+
throw new Natural.ConflictError(_response.error.body, _response.rawResponse);
|
|
544
|
+
case 422:
|
|
545
|
+
throw new Natural.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
546
|
+
case 428:
|
|
547
|
+
throw new Natural.PreconditionError(_response.error.body, _response.rawResponse);
|
|
548
|
+
case 429:
|
|
549
|
+
throw new Natural.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
550
|
+
case 500:
|
|
551
|
+
throw new Natural.InternalServerError(_response.error.body, _response.rawResponse);
|
|
552
|
+
case 501:
|
|
553
|
+
throw new Natural.NotImplementedError(_response.error.body, _response.rawResponse);
|
|
554
|
+
case 502:
|
|
555
|
+
throw new Natural.BadGatewayError(_response.error.body, _response.rawResponse);
|
|
556
|
+
case 503:
|
|
557
|
+
throw new Natural.ServiceUnavailableError(_response.error.body, _response.rawResponse);
|
|
558
|
+
default:
|
|
559
|
+
throw new errors.NaturalError({
|
|
560
|
+
statusCode: _response.error.statusCode,
|
|
561
|
+
body: _response.error.body,
|
|
562
|
+
rawResponse: _response.rawResponse,
|
|
563
|
+
});
|
|
564
|
+
}
|
|
565
|
+
}
|
|
566
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/parties/{partyId}/branding");
|
|
567
|
+
});
|
|
568
|
+
}
|
|
569
|
+
/**
|
|
570
|
+
* 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.
|
|
571
|
+
*
|
|
572
|
+
* @param {Natural.UpdateBrandingForPartyPartiesRequest} request
|
|
573
|
+
* @param {PartiesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
574
|
+
*
|
|
575
|
+
* @throws {@link Natural.BadRequestError}
|
|
576
|
+
* @throws {@link Natural.UnauthorizedError}
|
|
577
|
+
* @throws {@link Natural.ForbiddenError}
|
|
578
|
+
* @throws {@link Natural.NotFoundError}
|
|
579
|
+
* @throws {@link Natural.ConflictError}
|
|
580
|
+
* @throws {@link Natural.UnprocessableEntityError}
|
|
581
|
+
* @throws {@link Natural.PreconditionError}
|
|
582
|
+
* @throws {@link Natural.TooManyRequestsError}
|
|
583
|
+
* @throws {@link Natural.InternalServerError}
|
|
584
|
+
* @throws {@link Natural.NotImplementedError}
|
|
585
|
+
* @throws {@link Natural.BadGatewayError}
|
|
586
|
+
* @throws {@link Natural.ServiceUnavailableError}
|
|
587
|
+
* @throws {@link errors.NaturalError}
|
|
588
|
+
* @throws {@link errors.NaturalTimeoutError}
|
|
589
|
+
*
|
|
590
|
+
* @example
|
|
591
|
+
* await client.parties.updateBrandingForParty({
|
|
592
|
+
* idempotencyKey: "Idempotency-Key",
|
|
593
|
+
* partyId: "partyId",
|
|
594
|
+
* brandColor: "#2563EB"
|
|
595
|
+
* })
|
|
596
|
+
*/
|
|
597
|
+
updateBrandingForParty(request, requestOptions) {
|
|
598
|
+
return core.HttpResponsePromise.fromPromise(this.__updateBrandingForParty(request, requestOptions));
|
|
599
|
+
}
|
|
600
|
+
__updateBrandingForParty(request, requestOptions) {
|
|
601
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
602
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
603
|
+
const { partyId, idempotencyKey } = request, _body = __rest(request, ["partyId", "idempotencyKey"]);
|
|
604
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
605
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({
|
|
606
|
+
"Idempotency-Key": idempotencyKey,
|
|
607
|
+
"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,
|
|
608
|
+
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
609
|
+
const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
|
|
610
|
+
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`),
|
|
611
|
+
method: "PATCH",
|
|
612
|
+
headers: _headers,
|
|
613
|
+
contentType: "application/json",
|
|
614
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
615
|
+
requestType: "json",
|
|
616
|
+
body: (0, requestBody_js_1.mergeAdditionalBodyParameters)(serializers.UpdateBrandingForPartyPartiesRequest.jsonOrThrow(_body, {
|
|
617
|
+
unrecognizedObjectKeys: "strip",
|
|
618
|
+
omitUndefined: true,
|
|
619
|
+
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
|
|
620
|
+
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,
|
|
621
|
+
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,
|
|
622
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
623
|
+
fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
|
|
624
|
+
logging: this._options.logging,
|
|
625
|
+
});
|
|
626
|
+
if (_response.ok) {
|
|
627
|
+
return {
|
|
628
|
+
data: serializers.UpdateBrandingForPartyPartiesResponse.parseOrThrow(_response.body, {
|
|
629
|
+
unrecognizedObjectKeys: "passthrough",
|
|
630
|
+
allowUnrecognizedUnionMembers: true,
|
|
631
|
+
allowUnrecognizedEnumValues: true,
|
|
632
|
+
skipValidation: true,
|
|
633
|
+
breadcrumbsPrefix: ["response"],
|
|
634
|
+
}),
|
|
635
|
+
rawResponse: _response.rawResponse,
|
|
636
|
+
};
|
|
637
|
+
}
|
|
638
|
+
if (_response.error.reason === "status-code") {
|
|
639
|
+
switch (_response.error.statusCode) {
|
|
640
|
+
case 400:
|
|
641
|
+
throw new Natural.BadRequestError(_response.error.body, _response.rawResponse);
|
|
642
|
+
case 401:
|
|
643
|
+
throw new Natural.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
644
|
+
case 403:
|
|
645
|
+
throw new Natural.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
646
|
+
case 404:
|
|
647
|
+
throw new Natural.NotFoundError(_response.error.body, _response.rawResponse);
|
|
648
|
+
case 409:
|
|
649
|
+
throw new Natural.ConflictError(_response.error.body, _response.rawResponse);
|
|
650
|
+
case 422:
|
|
651
|
+
throw new Natural.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
652
|
+
case 428:
|
|
653
|
+
throw new Natural.PreconditionError(_response.error.body, _response.rawResponse);
|
|
654
|
+
case 429:
|
|
655
|
+
throw new Natural.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
656
|
+
case 500:
|
|
657
|
+
throw new Natural.InternalServerError(_response.error.body, _response.rawResponse);
|
|
658
|
+
case 501:
|
|
659
|
+
throw new Natural.NotImplementedError(_response.error.body, _response.rawResponse);
|
|
660
|
+
case 502:
|
|
661
|
+
throw new Natural.BadGatewayError(_response.error.body, _response.rawResponse);
|
|
662
|
+
case 503:
|
|
663
|
+
throw new Natural.ServiceUnavailableError(_response.error.body, _response.rawResponse);
|
|
664
|
+
default:
|
|
665
|
+
throw new errors.NaturalError({
|
|
666
|
+
statusCode: _response.error.statusCode,
|
|
667
|
+
body: _response.error.body,
|
|
668
|
+
rawResponse: _response.rawResponse,
|
|
669
|
+
});
|
|
670
|
+
}
|
|
671
|
+
}
|
|
672
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "PATCH", "/parties/{partyId}/branding");
|
|
673
|
+
});
|
|
674
|
+
}
|
|
675
|
+
/**
|
|
676
|
+
* Create an upload for a business profile photo in Live using your own or delegated party update permission
|
|
677
|
+
*
|
|
678
|
+
* @param {Natural.CreateBrandingPhotoUploadPartiesRequest} request
|
|
679
|
+
* @param {PartiesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
680
|
+
*
|
|
681
|
+
* @throws {@link Natural.BadRequestError}
|
|
682
|
+
* @throws {@link Natural.UnauthorizedError}
|
|
683
|
+
* @throws {@link Natural.ForbiddenError}
|
|
684
|
+
* @throws {@link Natural.NotFoundError}
|
|
685
|
+
* @throws {@link Natural.ConflictError}
|
|
686
|
+
* @throws {@link Natural.UnprocessableEntityError}
|
|
687
|
+
* @throws {@link Natural.PreconditionError}
|
|
688
|
+
* @throws {@link Natural.TooManyRequestsError}
|
|
689
|
+
* @throws {@link Natural.InternalServerError}
|
|
690
|
+
* @throws {@link Natural.NotImplementedError}
|
|
691
|
+
* @throws {@link Natural.BadGatewayError}
|
|
692
|
+
* @throws {@link Natural.ServiceUnavailableError}
|
|
693
|
+
* @throws {@link errors.NaturalError}
|
|
694
|
+
* @throws {@link errors.NaturalTimeoutError}
|
|
695
|
+
*
|
|
696
|
+
* @example
|
|
697
|
+
* await client.parties.createBrandingPhotoUpload({
|
|
698
|
+
* partyId: "partyId",
|
|
699
|
+
* contentType: "image/png",
|
|
700
|
+
* sizeBytes: 128000
|
|
701
|
+
* })
|
|
702
|
+
*/
|
|
703
|
+
createBrandingPhotoUpload(request, requestOptions) {
|
|
704
|
+
return core.HttpResponsePromise.fromPromise(this.__createBrandingPhotoUpload(request, requestOptions));
|
|
705
|
+
}
|
|
706
|
+
__createBrandingPhotoUpload(request, requestOptions) {
|
|
707
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
708
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
709
|
+
const { partyId } = request, _body = __rest(request, ["partyId"]);
|
|
710
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
711
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.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);
|
|
712
|
+
const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
|
|
713
|
+
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`),
|
|
714
|
+
method: "POST",
|
|
715
|
+
headers: _headers,
|
|
716
|
+
contentType: "application/json",
|
|
717
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
718
|
+
requestType: "json",
|
|
719
|
+
body: (0, requestBody_js_1.mergeAdditionalBodyParameters)(serializers.CreateBrandingPhotoUploadPartiesRequest.jsonOrThrow(_body, {
|
|
720
|
+
unrecognizedObjectKeys: "strip",
|
|
721
|
+
omitUndefined: true,
|
|
722
|
+
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
|
|
723
|
+
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,
|
|
724
|
+
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,
|
|
725
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
726
|
+
fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
|
|
727
|
+
logging: this._options.logging,
|
|
728
|
+
});
|
|
729
|
+
if (_response.ok) {
|
|
730
|
+
return {
|
|
731
|
+
data: serializers.CreateBrandingPhotoUploadPartiesResponse.parseOrThrow(_response.body, {
|
|
732
|
+
unrecognizedObjectKeys: "passthrough",
|
|
733
|
+
allowUnrecognizedUnionMembers: true,
|
|
734
|
+
allowUnrecognizedEnumValues: true,
|
|
735
|
+
skipValidation: true,
|
|
736
|
+
breadcrumbsPrefix: ["response"],
|
|
737
|
+
}),
|
|
738
|
+
rawResponse: _response.rawResponse,
|
|
739
|
+
};
|
|
740
|
+
}
|
|
741
|
+
if (_response.error.reason === "status-code") {
|
|
742
|
+
switch (_response.error.statusCode) {
|
|
743
|
+
case 400:
|
|
744
|
+
throw new Natural.BadRequestError(_response.error.body, _response.rawResponse);
|
|
745
|
+
case 401:
|
|
746
|
+
throw new Natural.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
747
|
+
case 403:
|
|
748
|
+
throw new Natural.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
749
|
+
case 404:
|
|
750
|
+
throw new Natural.NotFoundError(_response.error.body, _response.rawResponse);
|
|
751
|
+
case 409:
|
|
752
|
+
throw new Natural.ConflictError(_response.error.body, _response.rawResponse);
|
|
753
|
+
case 422:
|
|
754
|
+
throw new Natural.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
755
|
+
case 428:
|
|
756
|
+
throw new Natural.PreconditionError(_response.error.body, _response.rawResponse);
|
|
757
|
+
case 429:
|
|
758
|
+
throw new Natural.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
759
|
+
case 500:
|
|
760
|
+
throw new Natural.InternalServerError(_response.error.body, _response.rawResponse);
|
|
761
|
+
case 501:
|
|
762
|
+
throw new Natural.NotImplementedError(_response.error.body, _response.rawResponse);
|
|
763
|
+
case 502:
|
|
764
|
+
throw new Natural.BadGatewayError(_response.error.body, _response.rawResponse);
|
|
765
|
+
case 503:
|
|
766
|
+
throw new Natural.ServiceUnavailableError(_response.error.body, _response.rawResponse);
|
|
767
|
+
default:
|
|
768
|
+
throw new errors.NaturalError({
|
|
769
|
+
statusCode: _response.error.statusCode,
|
|
770
|
+
body: _response.error.body,
|
|
771
|
+
rawResponse: _response.rawResponse,
|
|
772
|
+
});
|
|
773
|
+
}
|
|
774
|
+
}
|
|
775
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/parties/{partyId}/branding/photo-uploads");
|
|
776
|
+
});
|
|
777
|
+
}
|
|
463
778
|
/**
|
|
464
779
|
* Set your party's handle
|
|
465
780
|
*
|
package/dist/cjs/api/resources/parties/client/requests/CreateBrandingPhotoUploadPartiesRequest.d.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type * as Natural from "../../../../index.js";
|
|
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/cjs/api/resources/parties/client/requests/UpdateBrandingForPartyPartiesRequest.d.ts
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.js";
|
|
2
|
+
export type { GetBrandingForPartyPartiesRequest } from "./GetBrandingForPartyPartiesRequest.js";
|
|
1
3
|
export type { GetCompliancePartiesRequest } from "./GetCompliancePartiesRequest.js";
|
|
2
4
|
export type { ListMembersPartiesRequest } from "./ListMembersPartiesRequest.js";
|
|
3
5
|
export type { RemoveMemberPartiesRequest } from "./RemoveMemberPartiesRequest.js";
|
|
4
6
|
export type { SetHandlePartiesRequest } from "./SetHandlePartiesRequest.js";
|
|
5
7
|
export type { SetLimitsPartiesRequest } from "./SetLimitsPartiesRequest.js";
|
|
8
|
+
export type { UpdateBrandingForPartyPartiesRequest } from "./UpdateBrandingForPartyPartiesRequest.js";
|
|
6
9
|
export type { UpdMyPartyParams } from "./UpdMyPartyParams.js";
|
package/dist/cjs/api/resources/parties/types/CreateBrandingPhotoUploadPartiesRequestContentType.d.ts
ADDED
|
@@ -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];
|
package/dist/cjs/api/resources/parties/types/CreateBrandingPhotoUploadPartiesRequestContentType.js
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.CreateBrandingPhotoUploadPartiesRequestContentType = void 0;
|
|
5
|
+
/** Avatar image MIME type */
|
|
6
|
+
exports.CreateBrandingPhotoUploadPartiesRequestContentType = {
|
|
7
|
+
ImageJpeg: "image/jpeg",
|
|
8
|
+
ImagePng: "image/png",
|
|
9
|
+
ImageWebp: "image/webp",
|
|
10
|
+
};
|
package/dist/cjs/api/resources/parties/types/CreateBrandingPhotoUploadPartiesResponseData.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type * as Natural from "../../../index.js";
|
|
2
|
+
export interface CreateBrandingPhotoUploadPartiesResponseData {
|
|
3
|
+
type: Natural.CreateBrandingPhotoUploadPartiesResponseDataType;
|
|
4
|
+
id: string;
|
|
5
|
+
attributes: Natural.CreateBrandingPhotoUploadPartiesResponseDataAttributes;
|
|
6
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export interface CreateBrandingPhotoUploadPartiesResponseDataAttributes {
|
|
2
|
+
/** Presigned S3 POST URL for the avatar upload */
|
|
3
|
+
uploadUrl: string;
|
|
4
|
+
/** Form fields for the presigned S3 POST */
|
|
5
|
+
uploadFields: Record<string, string>;
|
|
6
|
+
/** Opaque avatar object key to pass to completeAvatarUpload */
|
|
7
|
+
objectKey: string;
|
|
8
|
+
}
|
package/dist/cjs/api/resources/parties/types/CreateBrandingPhotoUploadPartiesResponseDataType.d.ts
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const CreateBrandingPhotoUploadPartiesResponseDataType: {
|
|
2
|
+
readonly PartyAvatarUpload: "partyAvatarUpload";
|
|
3
|
+
};
|
|
4
|
+
export type CreateBrandingPhotoUploadPartiesResponseDataType = (typeof CreateBrandingPhotoUploadPartiesResponseDataType)[keyof typeof CreateBrandingPhotoUploadPartiesResponseDataType];
|
package/dist/cjs/api/resources/parties/types/CreateBrandingPhotoUploadPartiesResponseDataType.js
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.CreateBrandingPhotoUploadPartiesResponseDataType = void 0;
|
|
5
|
+
exports.CreateBrandingPhotoUploadPartiesResponseDataType = {
|
|
6
|
+
PartyAvatarUpload: "partyAvatarUpload",
|
|
7
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const GetBrandingForPartyPartiesResponseDataType: {
|
|
2
|
+
readonly PartyBranding: "partyBranding";
|
|
3
|
+
};
|
|
4
|
+
export type GetBrandingForPartyPartiesResponseDataType = (typeof GetBrandingForPartyPartiesResponseDataType)[keyof typeof GetBrandingForPartyPartiesResponseDataType];
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.GetBrandingForPartyPartiesResponseDataType = void 0;
|
|
5
|
+
exports.GetBrandingForPartyPartiesResponseDataType = {
|
|
6
|
+
PartyBranding: "partyBranding",
|
|
7
|
+
};
|
package/dist/cjs/api/resources/parties/types/UpdateBrandingForPartyPartiesResponseDataType.d.ts
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const UpdateBrandingForPartyPartiesResponseDataType: {
|
|
2
|
+
readonly PartyBranding: "partyBranding";
|
|
3
|
+
};
|
|
4
|
+
export type UpdateBrandingForPartyPartiesResponseDataType = (typeof UpdateBrandingForPartyPartiesResponseDataType)[keyof typeof UpdateBrandingForPartyPartiesResponseDataType];
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.UpdateBrandingForPartyPartiesResponseDataType = void 0;
|
|
5
|
+
exports.UpdateBrandingForPartyPartiesResponseDataType = {
|
|
6
|
+
PartyBranding: "partyBranding",
|
|
7
|
+
};
|
|
@@ -1,8 +1,17 @@
|
|
|
1
|
+
export * from "./CreateBrandingPhotoUploadPartiesRequestContentType.js";
|
|
2
|
+
export * from "./CreateBrandingPhotoUploadPartiesResponse.js";
|
|
3
|
+
export * from "./CreateBrandingPhotoUploadPartiesResponseData.js";
|
|
4
|
+
export * from "./CreateBrandingPhotoUploadPartiesResponseDataAttributes.js";
|
|
5
|
+
export * from "./CreateBrandingPhotoUploadPartiesResponseDataType.js";
|
|
1
6
|
export * from "./DisableLimitsPartiesResponse.js";
|
|
2
7
|
export * from "./DisableLimitsPartiesResponseData.js";
|
|
3
8
|
export * from "./DisableLimitsPartiesResponseDataAttributes.js";
|
|
4
9
|
export * from "./DisableLimitsPartiesResponseDataAttributesLimits.js";
|
|
5
10
|
export * from "./DisableLimitsPartiesResponseDataType.js";
|
|
11
|
+
export * from "./GetBrandingForPartyPartiesResponse.js";
|
|
12
|
+
export * from "./GetBrandingForPartyPartiesResponseData.js";
|
|
13
|
+
export * from "./GetBrandingForPartyPartiesResponseDataAttributes.js";
|
|
14
|
+
export * from "./GetBrandingForPartyPartiesResponseDataType.js";
|
|
6
15
|
export * from "./GetCompliancePartiesResponse.js";
|
|
7
16
|
export * from "./GetCompliancePartiesResponseData.js";
|
|
8
17
|
export * from "./GetCompliancePartiesResponseDataAttributes.js";
|
|
@@ -45,6 +54,10 @@ export * from "./SetLimitsPartiesResponseData.js";
|
|
|
45
54
|
export * from "./SetLimitsPartiesResponseDataAttributes.js";
|
|
46
55
|
export * from "./SetLimitsPartiesResponseDataAttributesLimits.js";
|
|
47
56
|
export * from "./SetLimitsPartiesResponseDataType.js";
|
|
57
|
+
export * from "./UpdateBrandingForPartyPartiesResponse.js";
|
|
58
|
+
export * from "./UpdateBrandingForPartyPartiesResponseData.js";
|
|
59
|
+
export * from "./UpdateBrandingForPartyPartiesResponseDataAttributes.js";
|
|
60
|
+
export * from "./UpdateBrandingForPartyPartiesResponseDataType.js";
|
|
48
61
|
export * from "./UpdatePartiesResponseDataAttributesPersona.js";
|
|
49
62
|
export * from "./UpdMyParty.js";
|
|
50
63
|
export * from "./UpdMyPartyAttrs.js";
|