@createiq/backend 1.0.63 → 1.0.64

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/client/sdk.gen.ts CHANGED
@@ -1,10 +1,10 @@
1
1
  // This file is auto-generated by @hey-api/openapi-ts
2
2
 
3
- import { type Options as ClientOptions, type TDataShape, type Client, formDataBodySerializer } from '@hey-api/client-fetch';
4
- import type { GetNegotiationDeltas_Data, GetAmendDefaults_Data, GetAmendDefaults_Response, NegotiationRenderTemplate_Data, NegotiationRenderTemplate_Response, CancelNegotiationsJobCount_Data, CancelNegotiationsJobCount_Response, AuditTrailForSubAccountAsJson_Data, AuditTrailForSubAccountAsJson_Response, GetDocumentSchema_Data, GetDocumentSchema_Response, AuditTrailForAccountAsJson_Data, AuditTrailForAccountAsJson_Response, SendBulkSetToCounterpartiesInitial_Data, SendBulkSetToCounterpartiesInitial_Response, GetWatchers_Data, GetWatchers_Response, AddWatchers_Data, AddWatchers_Response, GetUserStatistics_Data, GetUserStatistics_Response, RevertToAmending_Data, RevertToAmending_Response, SetReceiverEntity_Data, SetReceiverEntity_Response, MarkCommentEventsAsViewed_Data, PresetSetFinalApproval_Data, PresetSetFinalApproval_Response, AuthPing_Data, ListAllPresetsForSubAccountV1_Data, ListAllPresetsForSubAccountV1_Response, CreatePreset_Data, CreatePreset_Response, PresetGetMultipleNestedAnswers_Data, PresetGetMultipleNestedAnswers_Response, PresetSetMultipleNestedAnswers_Data, PresetSetMultipleNestedAnswers_Response, Approve_Data, Approve_Response, UpdateCommentReaction_Data, UpdateCommentReaction_Response, OverrideApproveFinalDocument_Data, DeleteEntity_Data, DeleteEntity_Response, GetSecurityContext_Data, GetSecurityContext_Response, UpdateSelectedElections_Data, UpdateSelectedElections_Response, GenerateAuditTrailForAccountAsExcel_Data, PresetEditAnswers_Data, PresetEditAnswers_Response, DeleteComment_Data, DeleteComment_Response, UpdateComment_Data, UpdateComment_Response, DeleteGeneralCoverNote_Data, DeleteGeneralCoverNote_Response, SetGeneralCoverNote_Data, SetGeneralCoverNote_Response, PublisherSummaries_Data, PublisherSummaries_Response, ValidateEntities_Data, ValidateEntities_Response, GrantAllNegotiationsAccess_Data, GrantAllNegotiationsAccess_Response, GetNegotiationESignStatus_Data, GetNegotiationESignStatus_Response, Unsubscribe_Data, OverrideRejectFinalDocument_Data, Version_Data, UpdateExtractionFeedback_Data, UpdateExtractionFeedback_Response, GetLatestDocumentSchema_Data, GetLatestDocumentSchema_Response, GetPreviousMajorVersionsNestedAnswerIds_Data, GetPreviousMajorVersionsNestedAnswerIds_Response, AddElectionRejection_Data, AddElectionRejection_Response, ListPresets_Data, ListPresets_Response, GetTimeline_Data, MarkEventsAsViewed_Data, NegotiationForkHistory_Data, NegotiationForkHistory_Response, MoveEntity_Data, MoveEntity_Response, ListEntities_Data, ListEntities_Response, ShareSubAccount_Data, ShareSubAccount_Response, AssignEntity_Data, AssignEntity_Response, SetFinalApproval_Data, SetFinalApproval_Response, SetElectionApproval_Data, SetElectionApproval_Response, GetPotentialReplacementApprovers_Data, GetPotentialReplacementApprovers_Response, DeleteApprovalComment_Data, EditApprovalComment_Data, EditApprovalComment_Response, DeleteExternalAttachment_Data, DeleteExternalAttachment_Response, GetExternalAttachment_Data, GetExternalAttachment_Response, ListPotentialNegotiationAdvisors_Data, ListPotentialNegotiationAdvisors_Response, GetAccessibleNegotiation_Data, GetAccessibleNegotiation_Response, GenerateNegotiationsReport_Data, ForkNegotiation_Data, ForkNegotiation_Response, NegotiationGetDocumentSchema_Data, NegotiationGetDocumentSchema_Response, UpdateGroupName_Data, ChangeSigningMode_Data, ChangeSigningMode_Response, SendToCounterparty_Data, SendToCounterparty_Response, VoidESignEnvelopeForNegotiation_Data, DeleteDocumentDraftingNote_Data, UpdateDocumentDraftingNote_Data, UpdateDocumentDraftingNote_Response, ShareNegotiation_Data, ShareNegotiation_Response, SetBulkSetAttachments_Data, SetBulkSetAttachments_Response, AddElectionApproval_Data, AddElectionApproval_Response, AcceptAllCounterpartyPositions_Data, AcceptAllCounterpartyPositions_Response, RejectFinalDocument_Data, GenerateAndMaybeSendEnvelope_Data, GetElectionAnswer_Data, GetElectionAnswer_Response, CreateAuditTrailJson_Data, CreateAuditTrailJson_Response, UpdateNegotiationsToMatch_Data, GetApprovalHistory_Data, GetApprovalHistory_Response, BulkSetsJobCount_Data, BulkSetsJobCount_Response, EditDefaultAnswers_Data, EditDefaultAnswers_Response, PresetSendForApproval_Data, PresetSendForApproval_Response, FixApprovalRules_Data, FixApprovalRules_Response, GetSubscribedPublishers_Data, GetSubscribedPublishers_Response, SendGroupToCounterparty_Data, SendGroupToCounterparty_Response, BreakingChanges_Data, BreakingChanges_Response, GetOtherPartyAnswers_Data, GetOtherPartyAnswers_Response, OverrideElectionRejection_Data, OverrideElectionRejection_Response, OverrideElectionApproval_Data, OverrideElectionApproval_Response, GetAllVersions_Data, GetAllVersions_Response, ListPotentialPresetAdvisors_Data, ListPotentialPresetAdvisors_Response, GetAsCdm_Data, GetAsCdm_Response, GetApprovalRound_Data, GetApprovalRound_Response, GetPreviousActiveUsers_Data, GetPreviousActiveUsers_Response, RevokePresetsAccess_Data, RevokePresetsAccess_Response, GrantPresetsAccess_Data, GrantPresetsAccess_Response, NotifyOfDraft_Data, RemoveWatchers_Data, RemoveWatchers_Response, GetNegotiation_Data, GetNegotiation_Response, UpdateMetadata_Data, UpdateMetadata_Response, GetDownloadExecutedNegotiationsAsExcel_Data, GetDownloadExecutedNegotiationsAsExcel_Response, GenerateExecutedNegotiationsReportAsExcel_Data, DeleteSignedSignaturePageForParty_Data, SetSignedSignaturePageForParty_Data, SetSignedSignaturePageForParty_Response, SuggestGroupName_Data, SuggestGroupName_Response, MarkActivityEventsAsViewed_Data, CancelExtraction_Data, CancelExtraction_Response, PatchAnswers_Data, PatchAnswers_Response, EditAnswers_Data, EditAnswers_Response, GetComments_Data, ContactForNewApprover_Data, GetDraftingNotesDocument_Data, GetDraftingNotesDocument_Response, AcceptAllPositionsFromFork_Data, AcceptAllPositionsFromFork_Response, AcceptAllPresetPositions_Data, AcceptAllPresetPositions_Response, SendChaserEmail_Data, CreateSigningPack_Data, CreateSigningPack_Response, GetGroupNames_Data, GetGroupNames_Response, CreateGroup_Data, CreateGroup_Response, GetNegotiationFilesSummary_Data, GetNegotiationFilesSummary_Response, GetUsers_Data, GetUsers_Response, GetSettings_Data, GetSettings_Response, Confirm_Data, Confirm_Response, SendDocumentApprovalReminder_Data, GetStatistics_Data, GetStatistics_Response, PresetSwapParties_Data, PresetSwapParties_Response, ApproveFinalDocument_Data, NegotiationRenderCounterpartyTemplate_Data, NegotiationRenderCounterpartyTemplate_Response, ResetUserAnswers_Data, ResetUserAnswers_Response, UpdateUserAnswers_Data, UpdateUserAnswers_Response, GetMajorVersions_Data, GetMajorVersions_Response, DeleteDocumentElectionDraftingNote_Data, UpdateDocumentElectionDraftingNote_Data, UpdateDocumentElectionDraftingNote_Response, AssignToMe_Data, AssignToMe_Response, UpdateGroupMembers_Data, GetSignedSignaturePagePdf_Data, GetSignedSignaturePagePdf_Response, PresetGetDocumentSchema_Data, PresetGetDocumentSchema_Response, ListSubAccounts_Data, DocumentsFilter_Data, DocumentsFilter_Response, MarkAsOffline_Data, MarkAsOffline_Response, CheckSignedSignaturePagePdf_Data, CheckSignedSignaturePagePdf_Response, GetAnnotatedOfflineNegotiatedDocument_Data, GetAnnotatedOfflineNegotiatedDocument_Response, DeleteAuxiliaryDocument_Data, DeleteAuxiliaryDocument_Response, GetAuxiliaryDocument_Data, GetAuxiliaryDocument_Response, SetAuxiliaryDocument_Data, SetAuxiliaryDocument_Response, DownloadPreExecutionCounterpartyNegotiation_Data, DownloadPreExecutionCounterpartyNegotiation_Response, Cancel_Data, Cancel_Response, RevokeNegotiationsAccess_Data, RevokeNegotiationsAccess_Response, GrantNegotiationsAccess_Data, GrantNegotiationsAccess_Response, ListDocuments_Data, ListDocuments_Response, GetPartyAnswers_Data, GetPartyAnswers_Response, DeletePreset_Data, GetPreset_Data, GetPreset_Response, CreatePresetAuditTrailJson_Data, CreatePresetAuditTrailJson_Response, GetPotentialUsers_Data, GetPotentialUsers_Response, GetNegotiationsGroup_Data, GetNegotiationsGroup_Response, ConsentCodeCallback_Data, GetOfflineNegotiatedDocumentAnnotations_Data, GetOfflineNegotiatedDocumentAnnotations_Response, AcceptAllCustodianTemplatePositions_Data, AcceptAllCustodianTemplatePositions_Response, AccountSummary_Data, AccountSummary_Response, GetApprovalComments_Data, GetApprovalComments_Response, ListAdvisorsForWorkspace_Data, ListAdvisorsForWorkspace_Response, CheckOfflineNegotiatedDocument_Data, CheckOfflineNegotiatedDocument_Response, DownloadPreset_Data, DownloadPreset_Response, AssignUser_Data, AssignUser_Response, GenerateCommentsReport_Data, GetExtractionResults_Data, GetExtractionResults_Response, ApplyExtractedAnswers_Data, ApplyExtractedAnswers_Response, GetOriginalAnswersForForkNegotiation_Data, GetOriginalAnswersForForkNegotiation_Response, MarkAsFinal_Data, MarkAsFinal_Response, GetPreviousMajorVersionsNestedAnswerElections_Data, GetPreviousMajorVersionsNestedAnswerElections_Response, ListNegotiations_Data, ListNegotiations_Response, CreateNegotiation_Data, CreateNegotiation_Response, PresetGetNestedAnswers_Data, PresetGetNestedAnswers_Response, PresetSetNestedAnswers_Data, PresetSetNestedAnswers_Response, CreatePresetAuditTrailXlsx_Data, CreatePresetAuditTrailXlsx_Response, ClonePreset_Data, ClonePreset_Response, ObtainConsent_Data, CheckAuxiliaryDocument_Data, CheckAuxiliaryDocument_Response, ListDocumentsWithPagination_Data, ListDocumentsWithPagination_Response, EmailPreferences_Data, EmailPreferences_Response, PatchEmailPreferences_Data, ConfirmExecutionVersion_Data, ConfirmExecutionVersion_Response, ListAllPresetsForSubAccountV2_Data, ListAllPresetsForSubAccountV2_Response, ListExternalAttachments_Data, ListExternalAttachments_Response, SetExternalAttachments_Data, SetExternalAttachments_Response, SetExternalAttachment_Data, SetExternalAttachment_Response, GenerateAuditTrailForSubAccountAsExcel_Data, ValidateDraftReceiverEmails_Data, ValidateDraftReceiverEmails_Response, DownloadPostExecutionPack_Data, DownloadPostExecutionPack_Response, MarkApprovalCommentsAsViewed_Data, AcceptCounterpartyPosition_Data, AcceptCounterpartyPosition_Response, CancelNegotiations_Data, CancelNegotiations_Response, GetNegotiationDraftingNotes_Data, GetNegotiationDraftingNotes_Response, AuditTrailFilters_Data, AuditTrailFilters_Response, GetCommentSummary_Data, DeleteExecutionAttachment_Data, DeleteExecutionAttachment_Response, GetExecutionAttachment_Data, GetExecutionAttachment_Response, SyncNewApprover_Data, GetMultipleNestedAnswers_Data, GetMultipleNestedAnswers_Response, SetMultipleNestedAnswers_Data, SetMultipleNestedAnswers_Response, GetDocument_Data, GetDocument_Response, ListBulkSets_Data, CreateBulkSet_Data, CreateBulkSet_Response, AddApprovalComment_Data, AddApprovalComment_Response, GetUsersForPicker_Data, GetUsersForPicker_Response, ScheduleExtraction_Data, ScheduleExtraction_Response, ApproveAccessRequest_Data, ApproveAccessRequest_Response, NegotiationsFilter_Data, NegotiationsFilter_Response, CreateAuditTrailXlsx_Data, CreateAuditTrailXlsx_Response, SetPreset_Data, SetPreset_Response, CheckForBrokenApprovers_Data, CheckForBrokenApprovers_Response, DeleteBulkSetAttachment_Data, DeleteBulkSetAttachment_Response, GetBulkSetAttachment_Data, GetBulkSetAttachment_Response, UsersWithNegotiationAccess_Data, UsersWithNegotiationAccess_Response, GetStatisticsOverview_Data, GetStatisticsOverview_Response, GetSubAccount_Data, UpdateSubAccount_Data, PresetRequestApproval_Data, PresetRequestApproval_Response, RejectPresetApproval_Data, RejectPresetApproval_Response, SetOwnerEntity_Data, SetOwnerEntity_Response, NegotiationSendForApproval_Data, NegotiationSendForApproval_Response, SearchEntity_Data, SearchEntity_Response, ListDocumentsVersionsSummary_Data, ListDocumentsVersionsSummary_Response, Retract_Data, Retract_Response, AcceptAllPositionsFromPreviousVersion_Data, AcceptAllPositionsFromPreviousVersion_Response, RenameExecutionAttachment_Data, RenameExecutionAttachment_Response, GetNestedAnswers_Data, GetNestedAnswers_Response, SetNestedAnswers_Data, SetNestedAnswers_Response, GetBulkSet_Data, GetBulkSet_Response, ListExecutionAttachments_Data, ListExecutionAttachments_Response, SetExecutionAttachments_Data, SetExecutionAttachments_Response, SetExecutionAttachment_Data, SetExecutionAttachment_Response, CheckSignedExecutedVersion_Data, CheckSignedExecutedVersion_Response, CancelExtractionSimilarity_Data, GetDownloadActiveNegotiationsReportAsExcel_Data, GetDownloadActiveNegotiationsReportAsExcel_Response, GenerateActiveNegotiationsReportAsExcel_Data, Phase1Answers_Data, Phase1Answers_Response, SetCounterparties_Data, SetCounterparties_Response, GetLegacyStatistics_Data, GetLegacyStatistics_Response, GetChannelTimeline_Data, SchemaAvailableAsCdm_Data, SchemaAvailableAsCdm_Response, RevokeWindow_Data, GetWindow_Data, GetWindow_Response, GrantWindow_Data, GrantWindow_Response, ExtendWindow_Data, ExtendWindow_Response, DeleteOfflineNegotiatedDocument_Data, DeleteOfflineNegotiatedDocument_Response, GetOfflineNegotiatedDocument_Data, GetOfflineNegotiatedDocument_Response, SetOfflineNegotiatedDocument_Data, SetOfflineNegotiatedDocument_Response, DeleteSignedExecutedVersion_Data, DeleteSignedExecutedVersion_Response, GetSignedExecutedVersion_Data, GetSignedExecutedVersion_Response, SetSignedExecutedVersion_Data, SetSignedExecutedVersion_Response, DeleteCoverNote_Data, DeleteCoverNote_Response, UpdateCoverNote_Data, UpdateCoverNote_Response, QueueGenerateNegotiationDocumentJob_Data, QueueGenerateNegotiationDocumentJob_Response, CreateSignaturePagePdf_Data, CreateSignaturePagePdf_Response, UpgradePresetSchema_Data, UpgradePresetSchema_Response, SendToCounterpartyInitial_Data, SendToCounterpartyInitial_Response, DocumentRenderTemplate_Data, DocumentRenderTemplate_Response, GetAccountRelationshipSummaries_Data, GetAccountRelationshipSummaries_Response, PresetRenderTemplate_Data, PresetRenderTemplate_Response, AddComment_Data, AddComment_Response, PresetSetElectionApproval_Data, PresetSetElectionApproval_Response, GetSsoConfig_Data, GetSsoConfig_Response, UpdateCustomFields_Data, UpdateCustomFields_Response, SendElectionApprovalReminder_Data, RejectAccessRequest_Data, RejectAccessRequest_Response, GetExecutedNegotiationSummary_Data, GetExecutedNegotiationSummary_Response, SwapParties_Data, SwapParties_Response, AcceptNestedAnswersCounterpartyPosition_Data, AcceptNestedAnswersCounterpartyPosition_Response, UpgradeSchema_Data, UpgradeSchema_Response, UpdateAttachDocx_Data, UpdateAttachDocx_Response, GetCompanyByEntityId_Data, GetCompanyByEntityId_Response, DeleteDraftingNotesDocument_Data, GetDraftingNotes_Data, GetDraftingNotes_Response, UpdateDraftingNotes_Data, UpdateDraftingNotes_Response, CreateAuditTrailPdf_Data, CreateAuditTrailPdf_Response, ListRecentExtractions_Data, ListRecentExtractions_Response, InitialAnswers_Data, InitialAnswers_Response, DownloadNegotiation_Data, DownloadNegotiation_Response, GetTimelineActivity_Data, GetProfile_Data, GetProfile_Response } from './types.gen';
5
- import { client as _heyApiClient } from './client.gen';
3
+ import { type Client, formDataBodySerializer, type Options as Options2, type TDataShape } from './client';
4
+ import { client } from './client.gen';
5
+ import type { acceptAllCounterpartyPositionsData, acceptAllCounterpartyPositionsErrors, acceptAllCounterpartyPositionsResponses, acceptAllCustodianTemplatePositionsData, acceptAllCustodianTemplatePositionsErrors, acceptAllCustodianTemplatePositionsResponses, acceptAllPositionsFromForkData, acceptAllPositionsFromForkErrors, acceptAllPositionsFromForkResponses, acceptAllPositionsFromPreviousVersionData, acceptAllPositionsFromPreviousVersionErrors, acceptAllPositionsFromPreviousVersionResponses, acceptAllPresetPositionsData, acceptAllPresetPositionsErrors, acceptAllPresetPositionsResponses, acceptCounterpartyPositionData, acceptCounterpartyPositionErrors, acceptCounterpartyPositionResponses, acceptNestedAnswersCounterpartyPositionData, acceptNestedAnswersCounterpartyPositionErrors, acceptNestedAnswersCounterpartyPositionResponses, accountSummaryData, accountSummaryErrors, accountSummaryResponses, addApprovalCommentData, addApprovalCommentErrors, addApprovalCommentResponses, addCommentData, addCommentResponses, addElectionApprovalData, addElectionApprovalErrors, addElectionApprovalResponses, addElectionRejectionData, addElectionRejectionErrors, addElectionRejectionResponses, addWatchersData, addWatchersErrors, addWatchersResponses, applyExtractedAnswersData, applyExtractedAnswersErrors, applyExtractedAnswersResponses, approveAccessRequestData, approveAccessRequestErrors, approveAccessRequestResponses, approveData, approveErrors, approveFinalDocumentData, approveFinalDocumentErrors, approveFinalDocumentResponses, approveResponses, assignEntityData, assignEntityErrors, assignEntityResponses, assignToMeData, assignToMeErrors, assignToMeResponses, assignUserData, assignUserErrors, assignUserResponses, auditTrailFiltersData, auditTrailFiltersResponses, auditTrailForAccountAsJsonData, auditTrailForAccountAsJsonResponses, auditTrailForSubAccountAsJsonData, auditTrailForSubAccountAsJsonResponses, authPingData, authPingErrors, authPingResponses, breakingChangesData, breakingChangesResponses, bulkSetsJobCountData, bulkSetsJobCountResponses, cancelData, cancelErrors, cancelExtractionData, cancelExtractionErrors, cancelExtractionResponses, cancelExtractionSimilarityData, cancelExtractionSimilarityErrors, cancelExtractionSimilarityResponses, cancelNegotiationsData, cancelNegotiationsJobCountData, cancelNegotiationsJobCountResponses, cancelNegotiationsResponses, cancelResponses, changeSigningModeData, changeSigningModeErrors, changeSigningModeResponses, checkAuxiliaryDocumentData, checkAuxiliaryDocumentErrors, checkAuxiliaryDocumentResponses, checkForBrokenApproversData, checkForBrokenApproversResponses, checkOfflineNegotiatedDocumentData, checkOfflineNegotiatedDocumentErrors, checkOfflineNegotiatedDocumentResponses, checkSignedExecutedVersionData, checkSignedExecutedVersionErrors, checkSignedExecutedVersionResponses, checkSignedSignaturePagePDFData, checkSignedSignaturePagePDFErrors, checkSignedSignaturePagePDFResponses, clonePresetData, clonePresetErrors, clonePresetResponses, confirmData, confirmErrors, confirmExecutionVersionData, confirmExecutionVersionErrors, confirmExecutionVersionResponses, confirmResponses, consentCodeCallbackData, contactForNewApproverData, contactForNewApproverErrors, contactForNewApproverResponses, createAuditTrailJsonData, createAuditTrailJsonResponses, createAuditTrailPDFData, createAuditTrailPDFResponses, createAuditTrailXLSXData, createAuditTrailXLSXResponses, createBulkSetData, createBulkSetResponses, createGroupData, createGroupResponses, createNegotiationData, createNegotiationErrors, createNegotiationResponses, createPresetAuditTrailJsonData, createPresetAuditTrailJsonResponses, createPresetAuditTrailXLSXData, createPresetAuditTrailXLSXResponses, createPresetData, createPresetErrors, createPresetResponses, createSignaturePagePDFData, createSignaturePagePDFResponses, createSigningPackData, createSigningPackResponses, deleteApprovalCommentData, deleteApprovalCommentErrors, deleteApprovalCommentResponses, deleteAuxiliaryDocumentData, deleteAuxiliaryDocumentResponses, deleteBulkSetAttachmentData, deleteBulkSetAttachmentResponses, deleteCommentData, deleteCommentResponses, deleteCoverNoteData, deleteCoverNoteResponses, deleteDocumentDraftingNoteData, deleteDocumentDraftingNoteErrors, deleteDocumentDraftingNoteResponses, deleteDocumentElectionDraftingNoteData, deleteDocumentElectionDraftingNoteErrors, deleteDocumentElectionDraftingNoteResponses, deleteDraftingNotesDocumentData, deleteDraftingNotesDocumentResponses, deleteEntityData, deleteEntityErrors, deleteEntityResponses, deleteExecutionAttachmentData, deleteExecutionAttachmentResponses, deleteExternalAttachmentData, deleteExternalAttachmentResponses, deleteGeneralCoverNoteData, deleteGeneralCoverNoteErrors, deleteGeneralCoverNoteResponses, deleteOfflineNegotiatedDocumentData, deleteOfflineNegotiatedDocumentResponses, deletePresetData, deletePresetResponses, deleteSignedExecutedVersionData, deleteSignedExecutedVersionErrors, deleteSignedExecutedVersionResponses, deleteSignedSignaturePageForPartyData, deleteSignedSignaturePageForPartyResponses, documentRenderTemplateData, documentRenderTemplateErrors, documentRenderTemplateResponses, documentsFilterData, documentsFilterErrors, documentsFilterResponses, downloadNegotiationData, downloadNegotiationResponses, downloadPostExecutionPackData, downloadPostExecutionPackResponses, downloadPreExecutionCounterpartyNegotiationData, downloadPreExecutionCounterpartyNegotiationResponses, downloadPresetData, downloadPresetResponses, editAnswersData, editAnswersErrors, editAnswersResponses, editApprovalCommentData, editApprovalCommentErrors, editApprovalCommentResponses, editDefaultAnswersData, editDefaultAnswersErrors, editDefaultAnswersResponses, emailPreferencesData, emailPreferencesResponses, extendWindowData, extendWindowErrors, extendWindowResponses, fixApprovalRulesData, fixApprovalRulesResponses, forkNegotiationData, forkNegotiationErrors, forkNegotiationResponses, generateActiveNegotiationsReportAsExcelData, generateActiveNegotiationsReportAsExcelResponses, generateAndMaybeSendEnvelopeData, generateAndMaybeSendEnvelopeErrors, generateAndMaybeSendEnvelopeResponses, generateAuditTrailForAccountAsExcelData, generateAuditTrailForAccountAsExcelResponses, generateAuditTrailForSubAccountAsExcelData, generateAuditTrailForSubAccountAsExcelResponses, generateCommentsReportData, generateCommentsReportResponses, generateExecutedNegotiationsReportAsExcelData, generateExecutedNegotiationsReportAsExcelErrors, generateExecutedNegotiationsReportAsExcelResponses, generateNegotiationsReportData, generateNegotiationsReportResponses, getAccessibleNegotiationData, getAccessibleNegotiationResponses, getAccountRelationshipSummariesData, getAccountRelationshipSummariesErrors, getAccountRelationshipSummariesResponses, getAllVersionsData, getAllVersionsErrors, getAllVersionsResponses, getAmendDefaultsData, getAmendDefaultsErrors, getAmendDefaultsResponses, getAnnotatedOfflineNegotiatedDocumentData, getAnnotatedOfflineNegotiatedDocumentErrors, getAnnotatedOfflineNegotiatedDocumentResponses, getApprovalCommentsData, getApprovalCommentsErrors, getApprovalCommentsResponses, getApprovalHistoryData, getApprovalHistoryResponses, getApprovalRoundData, getApprovalRoundResponses, getAsCDMData, getAsCDMErrors, getAsCDMResponses, getAuxiliaryDocumentData, getAuxiliaryDocumentErrors, getAuxiliaryDocumentResponses, getBulkSetAttachmentData, getBulkSetAttachmentResponses, getBulkSetData, getBulkSetResponses, getChannelTimelineData, getChannelTimelineErrors, getChannelTimelineResponses, getCommentsData, getCommentsErrors, getCommentsResponses, getCommentSummaryData, getCommentSummaryErrors, getCommentSummaryResponses, getCompanyByEntityIdData, getCompanyByEntityIdErrors, getCompanyByEntityIdResponses, getDocumentData, getDocumentErrors, getDocumentResponses, getDocumentSchemaData, getDocumentSchemaErrors, getDocumentSchemaResponses, getDownloadActiveNegotiationsReportAsExcelData, getDownloadActiveNegotiationsReportAsExcelErrors, getDownloadActiveNegotiationsReportAsExcelResponses, getDownloadExecutedNegotiationsAsExcelData, getDownloadExecutedNegotiationsAsExcelErrors, getDownloadExecutedNegotiationsAsExcelResponses, getDraftingNotesData, getDraftingNotesDocumentData, getDraftingNotesDocumentResponses, getDraftingNotesResponses, getElectionAnswerData, getElectionAnswerErrors, getElectionAnswerResponses, getExecutedNegotiationSummaryData, getExecutedNegotiationSummaryErrors, getExecutedNegotiationSummaryResponses, getExecutionAttachmentData, getExecutionAttachmentErrors, getExecutionAttachmentResponses, getExternalAttachmentData, getExternalAttachmentErrors, getExternalAttachmentResponses, getExtractionResultsData, getExtractionResultsErrors, getExtractionResultsResponses, getGroupNamesData, getGroupNamesResponses, getLatestDocumentSchemaData, getLatestDocumentSchemaErrors, getLatestDocumentSchemaResponses, getLegacyStatisticsData, getLegacyStatisticsErrors, getLegacyStatisticsResponses, getMajorVersionsData, getMajorVersionsErrors, getMajorVersionsResponses, getMultipleNestedAnswersData, getMultipleNestedAnswersErrors, getMultipleNestedAnswersResponses, getNegotiationData, getNegotiationDeltasData, getNegotiationDeltasResponses, getNegotiationDraftingNotesData, getNegotiationDraftingNotesResponses, getNegotiationESignStatusData, getNegotiationESignStatusResponses, getNegotiationFilesSummaryData, getNegotiationFilesSummaryErrors, getNegotiationFilesSummaryResponses, getNegotiationResponses, getNegotiationsGroupData, getNegotiationsGroupResponses, getNestedAnswersData, getNestedAnswersErrors, getNestedAnswersResponses, getOfflineNegotiatedDocumentAnnotationsData, getOfflineNegotiatedDocumentAnnotationsErrors, getOfflineNegotiatedDocumentAnnotationsResponses, getOfflineNegotiatedDocumentData, getOfflineNegotiatedDocumentErrors, getOfflineNegotiatedDocumentResponses, getOriginalAnswersForForkNegotiationData, getOriginalAnswersForForkNegotiationErrors, getOriginalAnswersForForkNegotiationResponses, getOtherPartyAnswersData, getOtherPartyAnswersErrors, getOtherPartyAnswersResponses, getPartyAnswersData, getPartyAnswersErrors, getPartyAnswersResponses, getPotentialReplacementApproversData, getPotentialReplacementApproversResponses, getPotentialUsersData, getPotentialUsersErrors, getPotentialUsersResponses, getPresetData, getPresetResponses, getPreviousActiveUsersData, getPreviousActiveUsersErrors, getPreviousActiveUsersResponses, getPreviousMajorVersionsNestedAnswerElectionsData, getPreviousMajorVersionsNestedAnswerElectionsErrors, getPreviousMajorVersionsNestedAnswerElectionsResponses, getPreviousMajorVersionsNestedAnswerIdsData, getPreviousMajorVersionsNestedAnswerIdsErrors, getPreviousMajorVersionsNestedAnswerIdsResponses, getProfileData, getProfileResponses, getSecurityContextData, getSecurityContextResponses, getSettingsData, getSettingsErrors, getSettingsResponses, getSignedExecutedVersionData, getSignedExecutedVersionErrors, getSignedExecutedVersionResponses, getSignedSignaturePagePDFData, getSignedSignaturePagePDFErrors, getSignedSignaturePagePDFResponses, getSSOConfigData, getSSOConfigResponses, getStatisticsData, getStatisticsErrors, getStatisticsOverviewData, getStatisticsOverviewErrors, getStatisticsOverviewResponses, getStatisticsResponses, getSubAccountData, getSubAccountResponses, getSubscribedPublishersData, getSubscribedPublishersResponses, getTimelineActivityData, getTimelineActivityErrors, getTimelineActivityResponses, getTimelineData, getTimelineErrors, getTimelineResponses, getUsersData, getUsersErrors, getUsersForPickerData, getUsersForPickerErrors, getUsersForPickerResponses, getUsersResponses, getUserStatisticsData, getUserStatisticsErrors, getUserStatisticsResponses, getWatchersData, getWatchersErrors, getWatchersResponses, getWindowData, getWindowErrors, getWindowResponses, grantAllNegotiationsAccessData, grantAllNegotiationsAccessResponses, grantNegotiationsAccessData, grantNegotiationsAccessResponses, grantPresetsAccessData, grantPresetsAccessResponses, grantWindowData, grantWindowErrors, grantWindowResponses, initialAnswersData, initialAnswersErrors, initialAnswersResponses, listAdvisorsForWorkspaceData, listAdvisorsForWorkspaceResponses, listAllPresetsForSubAccountV1Data, listAllPresetsForSubAccountV1Responses, listAllPresetsForSubAccountV2Data, listAllPresetsForSubAccountV2Responses, listBulkSetsData, listBulkSetsResponses, listDocumentsData, listDocumentsResponses, listDocumentsVersionsSummaryData, listDocumentsVersionsSummaryResponses, listDocumentsWithPaginationData, listDocumentsWithPaginationResponses, listEntitiesData, listEntitiesResponses, listExecutionAttachmentsData, listExecutionAttachmentsErrors, listExecutionAttachmentsResponses, listExternalAttachmentsData, listExternalAttachmentsErrors, listExternalAttachmentsResponses, listNegotiationsData, listNegotiationsResponses, listPotentialNegotiationAdvisorsData, listPotentialNegotiationAdvisorsResponses, listPotentialPresetAdvisorsData, listPotentialPresetAdvisorsResponses, listPresetsData, listPresetsResponses, listRecentExtractionsData, listRecentExtractionsResponses, listSubAccountsData, listSubAccountsResponses, markActivityEventsAsViewedData, markActivityEventsAsViewedErrors, markActivityEventsAsViewedResponses, markApprovalCommentsAsViewedData, markApprovalCommentsAsViewedErrors, markApprovalCommentsAsViewedResponses, markAsFinalData, markAsFinalErrors, markAsFinalResponses, markAsOfflineData, markAsOfflineErrors, markAsOfflineResponses, markCommentEventsAsViewedData, markCommentEventsAsViewedErrors, markCommentEventsAsViewedResponses, markEventsAsViewedData, markEventsAsViewedErrors, markEventsAsViewedResponses, moveEntityData, moveEntityErrors, moveEntityResponses, negotiationForkHistoryData, negotiationForkHistoryErrors, negotiationForkHistoryResponses, negotiationGetDocumentSchemaData, negotiationGetDocumentSchemaErrors, negotiationGetDocumentSchemaResponses, negotiationRenderCounterpartyTemplateData, negotiationRenderCounterpartyTemplateErrors, negotiationRenderCounterpartyTemplateResponses, negotiationRenderTemplateData, negotiationRenderTemplateErrors, negotiationRenderTemplateResponses, negotiationSendForApprovalData, negotiationSendForApprovalErrors, negotiationSendForApprovalResponses, negotiationsFilterData, negotiationsFilterErrors, negotiationsFilterResponses, notifyOfDraftData, notifyOfDraftErrors, notifyOfDraftResponses, obtainConsentData, overrideApproveFinalDocumentData, overrideApproveFinalDocumentErrors, overrideApproveFinalDocumentResponses, overrideElectionApprovalData, overrideElectionApprovalErrors, overrideElectionApprovalResponses, overrideElectionRejectionData, overrideElectionRejectionErrors, overrideElectionRejectionResponses, overrideRejectFinalDocumentData, overrideRejectFinalDocumentErrors, overrideRejectFinalDocumentResponses, patchAnswersData, patchAnswersErrors, patchAnswersResponses, patchEmailPreferencesData, patchEmailPreferencesResponses, phase1AnswersData, phase1AnswersErrors, phase1AnswersResponses, presetEditAnswersData, presetEditAnswersErrors, presetEditAnswersResponses, presetGetDocumentSchemaData, presetGetDocumentSchemaErrors, presetGetDocumentSchemaResponses, presetGetMultipleNestedAnswersData, presetGetMultipleNestedAnswersErrors, presetGetMultipleNestedAnswersResponses, presetGetNestedAnswersData, presetGetNestedAnswersErrors, presetGetNestedAnswersResponses, presetRenderTemplateData, presetRenderTemplateErrors, presetRenderTemplateResponses, presetRequestApprovalData, presetRequestApprovalErrors, presetRequestApprovalResponses, presetSendForApprovalData, presetSendForApprovalErrors, presetSendForApprovalResponses, presetSetElectionApprovalData, presetSetElectionApprovalErrors, presetSetElectionApprovalResponses, presetSetFinalApprovalData, presetSetFinalApprovalErrors, presetSetFinalApprovalResponses, presetSetMultipleNestedAnswersData, presetSetMultipleNestedAnswersErrors, presetSetMultipleNestedAnswersResponses, presetSetNestedAnswersData, presetSetNestedAnswersErrors, presetSetNestedAnswersResponses, presetSwapPartiesData, presetSwapPartiesErrors, presetSwapPartiesResponses, publisherSummariesData, publisherSummariesResponses, queueGenerateNegotiationDocumentJobData, queueGenerateNegotiationDocumentJobResponses, rejectAccessRequestData, rejectAccessRequestErrors, rejectAccessRequestResponses, rejectFinalDocumentData, rejectFinalDocumentErrors, rejectFinalDocumentResponses, rejectPresetApprovalData, rejectPresetApprovalErrors, rejectPresetApprovalResponses, removeWatchersData, removeWatchersErrors, removeWatchersResponses, renameExecutionAttachmentData, renameExecutionAttachmentErrors, renameExecutionAttachmentResponses, resetUserAnswersData, resetUserAnswersErrors, resetUserAnswersResponses, retractData, retractErrors, retractResponses, revertToAmendingData, revertToAmendingErrors, revertToAmendingResponses, revokeNegotiationsAccessData, revokeNegotiationsAccessResponses, revokePresetsAccessData, revokePresetsAccessResponses, revokeWindowData, revokeWindowResponses, scheduleExtractionData, scheduleExtractionErrors, scheduleExtractionResponses, schemaAvailableAsCDMData, schemaAvailableAsCDMErrors, schemaAvailableAsCDMResponses, searchEntityData, searchEntityResponses, sendBulkSetToCounterpartiesInitialData, sendBulkSetToCounterpartiesInitialResponses, sendChaserEmailData, sendChaserEmailErrors, sendChaserEmailResponses, sendDocumentApprovalReminderData, sendDocumentApprovalReminderErrors, sendDocumentApprovalReminderResponses, sendElectionApprovalReminderData, sendElectionApprovalReminderErrors, sendElectionApprovalReminderResponses, sendGroupToCounterpartyData, sendGroupToCounterpartyErrors, sendGroupToCounterpartyResponses, sendToCounterpartyData, sendToCounterpartyErrors, sendToCounterpartyInitialData, sendToCounterpartyInitialErrors, sendToCounterpartyInitialResponses, sendToCounterpartyResponses, setAuxiliaryDocumentData, setAuxiliaryDocumentErrors, setAuxiliaryDocumentResponses, setBulkSetAttachmentsData, setBulkSetAttachmentsErrors, setBulkSetAttachmentsResponses, setCounterpartiesData, setCounterpartiesErrors, setCounterpartiesResponses, setElectionApprovalData, setElectionApprovalErrors, setElectionApprovalResponses, setExecutionAttachmentData, setExecutionAttachmentErrors, setExecutionAttachmentResponses, setExecutionAttachmentsData, setExecutionAttachmentsErrors, setExecutionAttachmentsResponses, setExternalAttachmentData, setExternalAttachmentErrors, setExternalAttachmentResponses, setExternalAttachmentsData, setExternalAttachmentsErrors, setExternalAttachmentsResponses, setFinalApprovalData, setFinalApprovalResponses, setGeneralCoverNoteData, setGeneralCoverNoteErrors, setGeneralCoverNoteResponses, setMultipleNestedAnswersData, setMultipleNestedAnswersErrors, setMultipleNestedAnswersResponses, setNestedAnswersData, setNestedAnswersErrors, setNestedAnswersResponses, setOfflineNegotiatedDocumentData, setOfflineNegotiatedDocumentErrors, setOfflineNegotiatedDocumentResponses, setOwnerEntityData, setOwnerEntityErrors, setOwnerEntityResponses, setPresetData, setPresetErrors, setPresetResponses, setReceiverEntityData, setReceiverEntityErrors, setReceiverEntityResponses, setSignedExecutedVersionData, setSignedExecutedVersionErrors, setSignedExecutedVersionResponses, setSignedSignaturePageForPartyData, setSignedSignaturePageForPartyResponses, shareNegotiationData, shareNegotiationErrors, shareNegotiationResponses, shareSubAccountData, shareSubAccountErrors, shareSubAccountResponses, suggestGroupNameData, suggestGroupNameResponses, swapPartiesData, swapPartiesErrors, swapPartiesResponses, syncNewApproverData, syncNewApproverResponses, unsubscribeData, unsubscribeErrors, unsubscribeResponses, updateAttachDocxData, updateAttachDocxResponses, updateCommentData, updateCommentReactionData, updateCommentReactionResponses, updateCommentResponses, updateCoverNoteData, updateCoverNoteResponses, updateCustomFieldsData, updateCustomFieldsErrors, updateCustomFieldsResponses, updateDocumentDraftingNoteData, updateDocumentDraftingNoteErrors, updateDocumentDraftingNoteResponses, updateDocumentElectionDraftingNoteData, updateDocumentElectionDraftingNoteErrors, updateDocumentElectionDraftingNoteResponses, updateDraftingNotesData, updateDraftingNotesErrors, updateDraftingNotesResponses, updateExtractionFeedbackData, updateExtractionFeedbackErrors, updateExtractionFeedbackResponses, updateGroupMembersData, updateGroupMembersErrors, updateGroupMembersResponses, updateGroupNameData, updateGroupNameErrors, updateGroupNameResponses, updateMetadataData, updateMetadataErrors, updateMetadataResponses, updateNegotiationsToMatchData, updateNegotiationsToMatchErrors, updateNegotiationsToMatchResponses, updateSelectedElectionsData, updateSelectedElectionsErrors, updateSelectedElectionsResponses, updateSubAccountData, updateSubAccountErrors, updateSubAccountResponses, updateUserAnswersData, updateUserAnswersErrors, updateUserAnswersResponses, upgradePresetSchemaData, upgradePresetSchemaErrors, upgradePresetSchemaResponses, upgradeSchemaData, upgradeSchemaResponses, usersWithNegotiationAccessData, usersWithNegotiationAccessResponses, validateDraftReceiverEmailsData, validateDraftReceiverEmailsResponses, validateEntitiesData, validateEntitiesResponses, versionData, versionResponses, voidESignEnvelopeForNegotiationData, voidESignEnvelopeForNegotiationErrors, voidESignEnvelopeForNegotiationResponses } from './types.gen';
6
6
 
7
- export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = ClientOptions<TData, ThrowOnError> & {
7
+ export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = Options2<TData, ThrowOnError> & {
8
8
  /**
9
9
  * You can provide a client instance returned by `createClient()` instead of
10
10
  * individual options. This might be also useful if you want to implement a
@@ -20,10 +20,11 @@ export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends
20
20
 
21
21
  /**
22
22
  * Calculates the delta of each negotiation from the signature of the group as defined by the majority
23
+ *
23
24
  * Calculates the delta of each negotiation from the signature of the group as defined by the majority.
24
25
  */
25
- export const getNegotiationDeltas = <ThrowOnError extends boolean = false>(options: Options<GetNegotiationDeltas_Data, ThrowOnError>) => {
26
- return (options.client ?? _heyApiClient).put<unknown, unknown, ThrowOnError>({
26
+ export const getNegotiationDeltas = <ThrowOnError extends boolean = false>(options: Options<getNegotiationDeltasData, ThrowOnError>) => {
27
+ return (options.client ?? client).put<getNegotiationDeltasResponses, unknown, ThrowOnError>({
27
28
  security: [
28
29
  {
29
30
  name: 'Authorization',
@@ -34,17 +35,18 @@ export const getNegotiationDeltas = <ThrowOnError extends boolean = false>(optio
34
35
  ...options,
35
36
  headers: {
36
37
  'Content-Type': 'application/json',
37
- ...options?.headers
38
+ ...options.headers
38
39
  }
39
40
  });
40
41
  };
41
42
 
42
43
  /**
43
44
  * Get the default values for amendable elections for the specified schema version
45
+ *
44
46
  * Get the default values for amendable elections for the specified schema version.
45
47
  */
46
- export const getAmendDefaults = <ThrowOnError extends boolean = false>(options: Options<GetAmendDefaults_Data, ThrowOnError>) => {
47
- return (options.client ?? _heyApiClient).get<GetAmendDefaults_Response, unknown, ThrowOnError>({
48
+ export const getAmendDefaults = <ThrowOnError extends boolean = false>(options: Options<getAmendDefaultsData, ThrowOnError>) => {
49
+ return (options.client ?? client).get<getAmendDefaultsResponses, getAmendDefaultsErrors, ThrowOnError>({
48
50
  security: [
49
51
  {
50
52
  name: 'Authorization',
@@ -58,10 +60,11 @@ export const getAmendDefaults = <ThrowOnError extends boolean = false>(options:
58
60
 
59
61
  /**
60
62
  * Render a preview of the document template using the current answers
63
+ *
61
64
  * Render a preview of the document template using the current answers.
62
65
  */
63
- export const negotiationRenderTemplate = <ThrowOnError extends boolean = false>(options: Options<NegotiationRenderTemplate_Data, ThrowOnError>) => {
64
- return (options.client ?? _heyApiClient).get<NegotiationRenderTemplate_Response, unknown, ThrowOnError>({
66
+ export const negotiationRenderTemplate = <ThrowOnError extends boolean = false>(options: Options<negotiationRenderTemplateData, ThrowOnError>) => {
67
+ return (options.client ?? client).get<negotiationRenderTemplateResponses, negotiationRenderTemplateErrors, ThrowOnError>({
65
68
  security: [
66
69
  {
67
70
  name: 'Authorization',
@@ -75,10 +78,11 @@ export const negotiationRenderTemplate = <ThrowOnError extends boolean = false>(
75
78
 
76
79
  /**
77
80
  * Gets the count of cancel negotiation jobs for a Sub-Account
81
+ *
78
82
  * Gets the count of cancel negotiation jobs for a Sub-Account.
79
83
  */
80
- export const cancelNegotiationsJobCount = <ThrowOnError extends boolean = false>(options: Options<CancelNegotiationsJobCount_Data, ThrowOnError>) => {
81
- return (options.client ?? _heyApiClient).get<CancelNegotiationsJobCount_Response, unknown, ThrowOnError>({
84
+ export const cancelNegotiationsJobCount = <ThrowOnError extends boolean = false>(options: Options<cancelNegotiationsJobCountData, ThrowOnError>) => {
85
+ return (options.client ?? client).get<cancelNegotiationsJobCountResponses, unknown, ThrowOnError>({
82
86
  security: [
83
87
  {
84
88
  name: 'Authorization',
@@ -92,10 +96,11 @@ export const cancelNegotiationsJobCount = <ThrowOnError extends boolean = false>
92
96
 
93
97
  /**
94
98
  * View the audit trail for a Sub-Account as JSON
99
+ *
95
100
  * View the audit trail for a Sub-Account as JSON.
96
101
  */
97
- export const auditTrailForSubAccountAsJson = <ThrowOnError extends boolean = false>(options: Options<AuditTrailForSubAccountAsJson_Data, ThrowOnError>) => {
98
- return (options.client ?? _heyApiClient).get<AuditTrailForSubAccountAsJson_Response, unknown, ThrowOnError>({
102
+ export const auditTrailForSubAccountAsJson = <ThrowOnError extends boolean = false>(options: Options<auditTrailForSubAccountAsJsonData, ThrowOnError>) => {
103
+ return (options.client ?? client).get<auditTrailForSubAccountAsJsonResponses, unknown, ThrowOnError>({
99
104
  security: [
100
105
  {
101
106
  name: 'Authorization',
@@ -109,10 +114,11 @@ export const auditTrailForSubAccountAsJson = <ThrowOnError extends boolean = fal
109
114
 
110
115
  /**
111
116
  * View the schema for a document
117
+ *
112
118
  * View the schema for a document.
113
119
  */
114
- export const getDocumentSchema = <ThrowOnError extends boolean = false>(options: Options<GetDocumentSchema_Data, ThrowOnError>) => {
115
- return (options.client ?? _heyApiClient).get<GetDocumentSchema_Response, unknown, ThrowOnError>({
120
+ export const getDocumentSchema = <ThrowOnError extends boolean = false>(options: Options<getDocumentSchemaData, ThrowOnError>) => {
121
+ return (options.client ?? client).get<getDocumentSchemaResponses, getDocumentSchemaErrors, ThrowOnError>({
116
122
  security: [
117
123
  {
118
124
  name: 'Authorization',
@@ -126,10 +132,11 @@ export const getDocumentSchema = <ThrowOnError extends boolean = false>(options:
126
132
 
127
133
  /**
128
134
  * View an audit trail for an account as JSON
135
+ *
129
136
  * View an audit trail for an account as JSON.
130
137
  */
131
- export const auditTrailForAccountAsJson = <ThrowOnError extends boolean = false>(options: Options<AuditTrailForAccountAsJson_Data, ThrowOnError>) => {
132
- return (options.client ?? _heyApiClient).get<AuditTrailForAccountAsJson_Response, unknown, ThrowOnError>({
138
+ export const auditTrailForAccountAsJson = <ThrowOnError extends boolean = false>(options: Options<auditTrailForAccountAsJsonData, ThrowOnError>) => {
139
+ return (options.client ?? client).get<auditTrailForAccountAsJsonResponses, unknown, ThrowOnError>({
133
140
  security: [
134
141
  {
135
142
  name: 'Authorization',
@@ -143,10 +150,11 @@ export const auditTrailForAccountAsJson = <ThrowOnError extends boolean = false>
143
150
 
144
151
  /**
145
152
  * Performs an "initial send to counterparty" for each negotiation specified
153
+ *
146
154
  * Performs an "initial send to counterparty" for each negotiation specified.
147
155
  */
148
- export const sendBulkSetToCounterpartiesInitial = <ThrowOnError extends boolean = false>(options: Options<SendBulkSetToCounterpartiesInitial_Data, ThrowOnError>) => {
149
- return (options.client ?? _heyApiClient).put<SendBulkSetToCounterpartiesInitial_Response, unknown, ThrowOnError>({
156
+ export const sendBulkSetToCounterpartiesInitial = <ThrowOnError extends boolean = false>(options: Options<sendBulkSetToCounterpartiesInitialData, ThrowOnError>) => {
157
+ return (options.client ?? client).put<sendBulkSetToCounterpartiesInitialResponses, unknown, ThrowOnError>({
150
158
  security: [
151
159
  {
152
160
  name: 'Authorization',
@@ -160,10 +168,11 @@ export const sendBulkSetToCounterpartiesInitial = <ThrowOnError extends boolean
160
168
 
161
169
  /**
162
170
  * List all negotiation watchers for a negotiation in a subaccount
171
+ *
163
172
  * List all negotiation watchers for a negotiation in a subaccount.
164
173
  */
165
- export const getWatchers = <ThrowOnError extends boolean = false>(options: Options<GetWatchers_Data, ThrowOnError>) => {
166
- return (options.client ?? _heyApiClient).get<GetWatchers_Response, unknown, ThrowOnError>({
174
+ export const getWatchers = <ThrowOnError extends boolean = false>(options: Options<getWatchersData, ThrowOnError>) => {
175
+ return (options.client ?? client).get<getWatchersResponses, getWatchersErrors, ThrowOnError>({
167
176
  security: [
168
177
  {
169
178
  name: 'Authorization',
@@ -177,10 +186,11 @@ export const getWatchers = <ThrowOnError extends boolean = false>(options: Optio
177
186
 
178
187
  /**
179
188
  * Append specified negotiation watchers to existing watchers for a negotiation in a subaccount
189
+ *
180
190
  * Append specified negotiation watchers to existing watchers for a negotiation in a subaccount.
181
191
  */
182
- export const addWatchers = <ThrowOnError extends boolean = false>(options: Options<AddWatchers_Data, ThrowOnError>) => {
183
- return (options.client ?? _heyApiClient).post<AddWatchers_Response, unknown, ThrowOnError>({
192
+ export const addWatchers = <ThrowOnError extends boolean = false>(options: Options<addWatchersData, ThrowOnError>) => {
193
+ return (options.client ?? client).post<addWatchersResponses, addWatchersErrors, ThrowOnError>({
184
194
  security: [
185
195
  {
186
196
  name: 'Authorization',
@@ -191,17 +201,18 @@ export const addWatchers = <ThrowOnError extends boolean = false>(options: Optio
191
201
  ...options,
192
202
  headers: {
193
203
  'Content-Type': 'application/json',
194
- ...options?.headers
204
+ ...options.headers
195
205
  }
196
206
  });
197
207
  };
198
208
 
199
209
  /**
200
210
  * View aggregate statistics for the user in a Sub-Account
211
+ *
201
212
  * View aggregate statistics for the user in a Sub-Account.
202
213
  */
203
- export const getUserStatistics = <ThrowOnError extends boolean = false>(options: Options<GetUserStatistics_Data, ThrowOnError>) => {
204
- return (options.client ?? _heyApiClient).get<GetUserStatistics_Response, unknown, ThrowOnError>({
214
+ export const getUserStatistics = <ThrowOnError extends boolean = false>(options: Options<getUserStatisticsData, ThrowOnError>) => {
215
+ return (options.client ?? client).get<getUserStatisticsResponses, getUserStatisticsErrors, ThrowOnError>({
205
216
  security: [
206
217
  {
207
218
  name: 'Authorization',
@@ -215,10 +226,11 @@ export const getUserStatistics = <ThrowOnError extends boolean = false>(options:
215
226
 
216
227
  /**
217
228
  * Reverts a negotiation that has not yet been finalised so that election answers can be amended
229
+ *
218
230
  * Reverts a negotiation that has not yet been finalised so that election answers can be amended.
219
231
  */
220
- export const revertToAmending = <ThrowOnError extends boolean = false>(options: Options<RevertToAmending_Data, ThrowOnError>) => {
221
- return (options.client ?? _heyApiClient).put<RevertToAmending_Response, unknown, ThrowOnError>({
232
+ export const revertToAmending = <ThrowOnError extends boolean = false>(options: Options<revertToAmendingData, ThrowOnError>) => {
233
+ return (options.client ?? client).put<revertToAmendingResponses, revertToAmendingErrors, ThrowOnError>({
222
234
  security: [
223
235
  {
224
236
  name: 'Authorization',
@@ -229,17 +241,18 @@ export const revertToAmending = <ThrowOnError extends boolean = false>(options:
229
241
  ...options,
230
242
  headers: {
231
243
  'Content-Type': 'application/json',
232
- ...options?.headers
244
+ ...options.headers
233
245
  }
234
246
  });
235
247
  };
236
248
 
237
249
  /**
238
250
  * Set the receiving party's entity for a negotiation
251
+ *
239
252
  * Set the receiving party's entity for a negotiation.
240
253
  */
241
- export const setReceiverEntity = <ThrowOnError extends boolean = false>(options: Options<SetReceiverEntity_Data, ThrowOnError>) => {
242
- return (options.client ?? _heyApiClient).put<SetReceiverEntity_Response, unknown, ThrowOnError>({
254
+ export const setReceiverEntity = <ThrowOnError extends boolean = false>(options: Options<setReceiverEntityData, ThrowOnError>) => {
255
+ return (options.client ?? client).put<setReceiverEntityResponses, setReceiverEntityErrors, ThrowOnError>({
243
256
  security: [
244
257
  {
245
258
  name: 'Authorization',
@@ -250,17 +263,18 @@ export const setReceiverEntity = <ThrowOnError extends boolean = false>(options:
250
263
  ...options,
251
264
  headers: {
252
265
  'Content-Type': 'application/json',
253
- ...options?.headers
266
+ ...options.headers
254
267
  }
255
268
  });
256
269
  };
257
270
 
258
271
  /**
259
272
  * Mark comments timeline events associated with a negotiation and requesting user as read
273
+ *
260
274
  * Mark comments timeline events associated with a negotiation and requesting user as read.
261
275
  */
262
- export const markCommentEventsAsViewed = <ThrowOnError extends boolean = false>(options: Options<MarkCommentEventsAsViewed_Data, ThrowOnError>) => {
263
- return (options.client ?? _heyApiClient).put<unknown, unknown, ThrowOnError>({
276
+ export const markCommentEventsAsViewed = <ThrowOnError extends boolean = false>(options: Options<markCommentEventsAsViewedData, ThrowOnError>) => {
277
+ return (options.client ?? client).put<markCommentEventsAsViewedResponses, markCommentEventsAsViewedErrors, ThrowOnError>({
264
278
  security: [
265
279
  {
266
280
  name: 'Authorization',
@@ -271,17 +285,18 @@ export const markCommentEventsAsViewed = <ThrowOnError extends boolean = false>(
271
285
  ...options,
272
286
  headers: {
273
287
  'Content-Type': 'application/json',
274
- ...options?.headers
288
+ ...options.headers
275
289
  }
276
290
  });
277
291
  };
278
292
 
279
293
  /**
280
294
  * Update the document approval rules for a preset
295
+ *
281
296
  * Update the document approval rules for a preset.
282
297
  */
283
- export const presetSetFinalApproval = <ThrowOnError extends boolean = false>(options: Options<PresetSetFinalApproval_Data, ThrowOnError>) => {
284
- return (options.client ?? _heyApiClient).put<PresetSetFinalApproval_Response, unknown, ThrowOnError>({
298
+ export const presetSetFinalApproval = <ThrowOnError extends boolean = false>(options: Options<presetSetFinalApprovalData, ThrowOnError>) => {
299
+ return (options.client ?? client).put<presetSetFinalApprovalResponses, presetSetFinalApprovalErrors, ThrowOnError>({
285
300
  security: [
286
301
  {
287
302
  name: 'Authorization',
@@ -292,17 +307,18 @@ export const presetSetFinalApproval = <ThrowOnError extends boolean = false>(opt
292
307
  ...options,
293
308
  headers: {
294
309
  'Content-Type': 'application/json',
295
- ...options?.headers
310
+ ...options.headers
296
311
  }
297
312
  });
298
313
  };
299
314
 
300
315
  /**
301
316
  * Check that your access token is valid
317
+ *
302
318
  * Check that your access token is valid with this ping endpoint that requires authentication.
303
319
  */
304
- export const authPing = <ThrowOnError extends boolean = false>(options?: Options<AuthPing_Data, ThrowOnError>) => {
305
- return (options?.client ?? _heyApiClient).get<unknown, unknown, ThrowOnError>({
320
+ export const authPing = <ThrowOnError extends boolean = false>(options?: Options<authPingData, ThrowOnError>) => {
321
+ return (options?.client ?? client).get<authPingResponses, authPingErrors, ThrowOnError>({
306
322
  url: '/api/v1/authPing',
307
323
  ...options
308
324
  });
@@ -310,10 +326,11 @@ export const authPing = <ThrowOnError extends boolean = false>(options?: Options
310
326
 
311
327
  /**
312
328
  * View a list of the presets in a Sub-Account
329
+ *
313
330
  * View a list of the presets in a Sub-Account.
314
331
  */
315
- export const listAllPresetsForSubAccountV1 = <ThrowOnError extends boolean = false>(options: Options<ListAllPresetsForSubAccountV1_Data, ThrowOnError>) => {
316
- return (options.client ?? _heyApiClient).get<ListAllPresetsForSubAccountV1_Response, unknown, ThrowOnError>({
332
+ export const listAllPresetsForSubAccountV1 = <ThrowOnError extends boolean = false>(options: Options<listAllPresetsForSubAccountV1Data, ThrowOnError>) => {
333
+ return (options.client ?? client).get<listAllPresetsForSubAccountV1Responses, unknown, ThrowOnError>({
317
334
  security: [
318
335
  {
319
336
  name: 'Authorization',
@@ -327,10 +344,11 @@ export const listAllPresetsForSubAccountV1 = <ThrowOnError extends boolean = fal
327
344
 
328
345
  /**
329
346
  * Create a preset
347
+ *
330
348
  * Create a preset.
331
349
  */
332
- export const createPreset = <ThrowOnError extends boolean = false>(options: Options<CreatePreset_Data, ThrowOnError>) => {
333
- return (options.client ?? _heyApiClient).post<CreatePreset_Response, unknown, ThrowOnError>({
350
+ export const createPreset = <ThrowOnError extends boolean = false>(options: Options<createPresetData, ThrowOnError>) => {
351
+ return (options.client ?? client).post<createPresetResponses, createPresetErrors, ThrowOnError>({
334
352
  security: [
335
353
  {
336
354
  name: 'Authorization',
@@ -341,17 +359,18 @@ export const createPreset = <ThrowOnError extends boolean = false>(options: Opti
341
359
  ...options,
342
360
  headers: {
343
361
  'Content-Type': 'application/json',
344
- ...options?.headers
362
+ ...options.headers
345
363
  }
346
364
  });
347
365
  };
348
366
 
349
367
  /**
350
368
  * Get the value for multiple nested answers
369
+ *
351
370
  * Get the value for multiple nested answers.
352
371
  */
353
- export const presetGetMultipleNestedAnswers = <ThrowOnError extends boolean = false>(options: Options<PresetGetMultipleNestedAnswers_Data, ThrowOnError>) => {
354
- return (options.client ?? _heyApiClient).post<PresetGetMultipleNestedAnswers_Response, unknown, ThrowOnError>({
372
+ export const presetGetMultipleNestedAnswers = <ThrowOnError extends boolean = false>(options: Options<presetGetMultipleNestedAnswersData, ThrowOnError>) => {
373
+ return (options.client ?? client).post<presetGetMultipleNestedAnswersResponses, presetGetMultipleNestedAnswersErrors, ThrowOnError>({
355
374
  security: [
356
375
  {
357
376
  name: 'Authorization',
@@ -362,17 +381,18 @@ export const presetGetMultipleNestedAnswers = <ThrowOnError extends boolean = fa
362
381
  ...options,
363
382
  headers: {
364
383
  'Content-Type': 'application/json',
365
- ...options?.headers
384
+ ...options.headers
366
385
  }
367
386
  });
368
387
  };
369
388
 
370
389
  /**
371
390
  * Sets the values for multiple nested answers
391
+ *
372
392
  * Sets the values for multiple nested answers, used in umbrella agreements.
373
393
  */
374
- export const presetSetMultipleNestedAnswers = <ThrowOnError extends boolean = false>(options: Options<PresetSetMultipleNestedAnswers_Data, ThrowOnError>) => {
375
- return (options.client ?? _heyApiClient).put<PresetSetMultipleNestedAnswers_Response, unknown, ThrowOnError>({
394
+ export const presetSetMultipleNestedAnswers = <ThrowOnError extends boolean = false>(options: Options<presetSetMultipleNestedAnswersData, ThrowOnError>) => {
395
+ return (options.client ?? client).put<presetSetMultipleNestedAnswersResponses, presetSetMultipleNestedAnswersErrors, ThrowOnError>({
376
396
  security: [
377
397
  {
378
398
  name: 'Authorization',
@@ -383,17 +403,18 @@ export const presetSetMultipleNestedAnswers = <ThrowOnError extends boolean = fa
383
403
  ...options,
384
404
  headers: {
385
405
  'Content-Type': 'application/json',
386
- ...options?.headers
406
+ ...options.headers
387
407
  }
388
408
  });
389
409
  };
390
410
 
391
411
  /**
392
412
  * Approve a preset that has been sent for approval
413
+ *
393
414
  * Approve a preset that has been sent for approval.
394
415
  */
395
- export const approve = <ThrowOnError extends boolean = false>(options: Options<Approve_Data, ThrowOnError>) => {
396
- return (options.client ?? _heyApiClient).put<Approve_Response, unknown, ThrowOnError>({
416
+ export const approve = <ThrowOnError extends boolean = false>(options: Options<approveData, ThrowOnError>) => {
417
+ return (options.client ?? client).put<approveResponses, approveErrors, ThrowOnError>({
397
418
  security: [
398
419
  {
399
420
  name: 'Authorization',
@@ -407,10 +428,11 @@ export const approve = <ThrowOnError extends boolean = false>(options: Options<A
407
428
 
408
429
  /**
409
430
  * Add or remove a reaction to a comment
431
+ *
410
432
  * Add or remove a reaction to a comment.
411
433
  */
412
- export const updateCommentReaction = <ThrowOnError extends boolean = false>(options: Options<UpdateCommentReaction_Data, ThrowOnError>) => {
413
- return (options.client ?? _heyApiClient).put<UpdateCommentReaction_Response, unknown, ThrowOnError>({
434
+ export const updateCommentReaction = <ThrowOnError extends boolean = false>(options: Options<updateCommentReactionData, ThrowOnError>) => {
435
+ return (options.client ?? client).put<updateCommentReactionResponses, unknown, ThrowOnError>({
414
436
  security: [
415
437
  {
416
438
  name: 'Authorization',
@@ -421,17 +443,18 @@ export const updateCommentReaction = <ThrowOnError extends boolean = false>(opti
421
443
  ...options,
422
444
  headers: {
423
445
  'Content-Type': 'application/json',
424
- ...options?.headers
446
+ ...options.headers
425
447
  }
426
448
  });
427
449
  };
428
450
 
429
451
  /**
430
452
  * Override Approve the final document before working towards Agreed form
453
+ *
431
454
  * Override Approve the final document before working towards Agreed form.
432
455
  */
433
- export const overrideApproveFinalDocument = <ThrowOnError extends boolean = false>(options: Options<OverrideApproveFinalDocument_Data, ThrowOnError>) => {
434
- return (options.client ?? _heyApiClient).put<unknown, unknown, ThrowOnError>({
456
+ export const overrideApproveFinalDocument = <ThrowOnError extends boolean = false>(options: Options<overrideApproveFinalDocumentData, ThrowOnError>) => {
457
+ return (options.client ?? client).put<overrideApproveFinalDocumentResponses, overrideApproveFinalDocumentErrors, ThrowOnError>({
435
458
  security: [
436
459
  {
437
460
  name: 'Authorization',
@@ -442,17 +465,18 @@ export const overrideApproveFinalDocument = <ThrowOnError extends boolean = fals
442
465
  ...options,
443
466
  headers: {
444
467
  'Content-Type': 'application/json',
445
- ...options?.headers
468
+ ...options.headers
446
469
  }
447
470
  });
448
471
  };
449
472
 
450
473
  /**
451
474
  * Delete an entity from an account when it's not used in any non final negotiation
475
+ *
452
476
  * Delete an entity from an account when it's not used in any non final negotiation.
453
477
  */
454
- export const deleteEntity = <ThrowOnError extends boolean = false>(options: Options<DeleteEntity_Data, ThrowOnError>) => {
455
- return (options.client ?? _heyApiClient).delete<DeleteEntity_Response, unknown, ThrowOnError>({
478
+ export const deleteEntity = <ThrowOnError extends boolean = false>(options: Options<deleteEntityData, ThrowOnError>) => {
479
+ return (options.client ?? client).delete<deleteEntityResponses, deleteEntityErrors, ThrowOnError>({
456
480
  security: [
457
481
  {
458
482
  name: 'Authorization',
@@ -466,10 +490,11 @@ export const deleteEntity = <ThrowOnError extends boolean = false>(options: Opti
466
490
 
467
491
  /**
468
492
  * View information about you, your abilities and permissions
493
+ *
469
494
  * View information about you, your abilities and permissions.
470
495
  */
471
- export const getSecurityContext = <ThrowOnError extends boolean = false>(options?: Options<GetSecurityContext_Data, ThrowOnError>) => {
472
- return (options?.client ?? _heyApiClient).get<GetSecurityContext_Response, unknown, ThrowOnError>({
496
+ export const getSecurityContext = <ThrowOnError extends boolean = false>(options?: Options<getSecurityContextData, ThrowOnError>) => {
497
+ return (options?.client ?? client).get<getSecurityContextResponses, unknown, ThrowOnError>({
473
498
  security: [
474
499
  {
475
500
  name: 'Authorization',
@@ -483,10 +508,11 @@ export const getSecurityContext = <ThrowOnError extends boolean = false>(options
483
508
 
484
509
  /**
485
510
  * Overwrite the extraction selected elections.
511
+ *
486
512
  * Overwrite the extraction selected elections.
487
513
  */
488
- export const updateSelectedElections = <ThrowOnError extends boolean = false>(options: Options<UpdateSelectedElections_Data, ThrowOnError>) => {
489
- return (options.client ?? _heyApiClient).put<UpdateSelectedElections_Response, unknown, ThrowOnError>({
514
+ export const updateSelectedElections = <ThrowOnError extends boolean = false>(options: Options<updateSelectedElectionsData, ThrowOnError>) => {
515
+ return (options.client ?? client).put<updateSelectedElectionsResponses, updateSelectedElectionsErrors, ThrowOnError>({
490
516
  security: [
491
517
  {
492
518
  name: 'Authorization',
@@ -497,17 +523,18 @@ export const updateSelectedElections = <ThrowOnError extends boolean = false>(op
497
523
  ...options,
498
524
  headers: {
499
525
  'Content-Type': 'application/json',
500
- ...options?.headers
526
+ ...options.headers
501
527
  }
502
528
  });
503
529
  };
504
530
 
505
531
  /**
506
532
  * Generate the audit trail for an account as XLSX and send the download email
533
+ *
507
534
  * Generate the audit trail for an account as XLSX and send the download email.
508
535
  */
509
- export const generateAuditTrailForAccountAsExcel = <ThrowOnError extends boolean = false>(options: Options<GenerateAuditTrailForAccountAsExcel_Data, ThrowOnError>) => {
510
- return (options.client ?? _heyApiClient).get<unknown, unknown, ThrowOnError>({
536
+ export const generateAuditTrailForAccountAsExcel = <ThrowOnError extends boolean = false>(options: Options<generateAuditTrailForAccountAsExcelData, ThrowOnError>) => {
537
+ return (options.client ?? client).get<generateAuditTrailForAccountAsExcelResponses, unknown, ThrowOnError>({
511
538
  security: [
512
539
  {
513
540
  name: 'Authorization',
@@ -521,10 +548,11 @@ export const generateAuditTrailForAccountAsExcel = <ThrowOnError extends boolean
521
548
 
522
549
  /**
523
550
  * Update the answers for a preset
551
+ *
524
552
  * Update the answers for a preset.
525
553
  */
526
- export const presetEditAnswers = <ThrowOnError extends boolean = false>(options: Options<PresetEditAnswers_Data, ThrowOnError>) => {
527
- return (options.client ?? _heyApiClient).put<PresetEditAnswers_Response, unknown, ThrowOnError>({
554
+ export const presetEditAnswers = <ThrowOnError extends boolean = false>(options: Options<presetEditAnswersData, ThrowOnError>) => {
555
+ return (options.client ?? client).put<presetEditAnswersResponses, presetEditAnswersErrors, ThrowOnError>({
528
556
  security: [
529
557
  {
530
558
  name: 'Authorization',
@@ -535,17 +563,18 @@ export const presetEditAnswers = <ThrowOnError extends boolean = false>(options:
535
563
  ...options,
536
564
  headers: {
537
565
  'Content-Type': 'application/json',
538
- ...options?.headers
566
+ ...options.headers
539
567
  }
540
568
  });
541
569
  };
542
570
 
543
571
  /**
544
572
  * Delete a comment that has not yet been published
573
+ *
545
574
  * Delete a comment that has not yet been published.
546
575
  */
547
- export const deleteComment = <ThrowOnError extends boolean = false>(options: Options<DeleteComment_Data, ThrowOnError>) => {
548
- return (options.client ?? _heyApiClient).delete<DeleteComment_Response, unknown, ThrowOnError>({
576
+ export const deleteComment = <ThrowOnError extends boolean = false>(options: Options<deleteCommentData, ThrowOnError>) => {
577
+ return (options.client ?? client).delete<deleteCommentResponses, unknown, ThrowOnError>({
549
578
  security: [
550
579
  {
551
580
  name: 'Authorization',
@@ -556,17 +585,18 @@ export const deleteComment = <ThrowOnError extends boolean = false>(options: Opt
556
585
  ...options,
557
586
  headers: {
558
587
  'Content-Type': 'application/json',
559
- ...options?.headers
588
+ ...options.headers
560
589
  }
561
590
  });
562
591
  };
563
592
 
564
593
  /**
565
594
  * Amend a comment
595
+ *
566
596
  * Amend a comment.
567
597
  */
568
- export const updateComment = <ThrowOnError extends boolean = false>(options: Options<UpdateComment_Data, ThrowOnError>) => {
569
- return (options.client ?? _heyApiClient).put<UpdateComment_Response, unknown, ThrowOnError>({
598
+ export const updateComment = <ThrowOnError extends boolean = false>(options: Options<updateCommentData, ThrowOnError>) => {
599
+ return (options.client ?? client).put<updateCommentResponses, unknown, ThrowOnError>({
570
600
  security: [
571
601
  {
572
602
  name: 'Authorization',
@@ -577,17 +607,18 @@ export const updateComment = <ThrowOnError extends boolean = false>(options: Opt
577
607
  ...options,
578
608
  headers: {
579
609
  'Content-Type': 'application/json',
580
- ...options?.headers
610
+ ...options.headers
581
611
  }
582
612
  });
583
613
  };
584
614
 
585
615
  /**
586
616
  * Delete a cover note from a draft negotiation
617
+ *
587
618
  * Delete a cover note from a draft negotiation.
588
619
  */
589
- export const deleteGeneralCoverNote = <ThrowOnError extends boolean = false>(options: Options<DeleteGeneralCoverNote_Data, ThrowOnError>) => {
590
- return (options.client ?? _heyApiClient).delete<DeleteGeneralCoverNote_Response, unknown, ThrowOnError>({
620
+ export const deleteGeneralCoverNote = <ThrowOnError extends boolean = false>(options: Options<deleteGeneralCoverNoteData, ThrowOnError>) => {
621
+ return (options.client ?? client).delete<deleteGeneralCoverNoteResponses, deleteGeneralCoverNoteErrors, ThrowOnError>({
591
622
  security: [
592
623
  {
593
624
  name: 'Authorization',
@@ -601,10 +632,11 @@ export const deleteGeneralCoverNote = <ThrowOnError extends boolean = false>(opt
601
632
 
602
633
  /**
603
634
  * Adds or updates a covering note on a draft negotiation
635
+ *
604
636
  * Adds or updates a covering note on a draft negotiation.
605
637
  */
606
- export const setGeneralCoverNote = <ThrowOnError extends boolean = false>(options: Options<SetGeneralCoverNote_Data, ThrowOnError>) => {
607
- return (options.client ?? _heyApiClient).put<SetGeneralCoverNote_Response, unknown, ThrowOnError>({
638
+ export const setGeneralCoverNote = <ThrowOnError extends boolean = false>(options: Options<setGeneralCoverNoteData, ThrowOnError>) => {
639
+ return (options.client ?? client).put<setGeneralCoverNoteResponses, setGeneralCoverNoteErrors, ThrowOnError>({
608
640
  security: [
609
641
  {
610
642
  name: 'Authorization',
@@ -615,17 +647,18 @@ export const setGeneralCoverNote = <ThrowOnError extends boolean = false>(option
615
647
  ...options,
616
648
  headers: {
617
649
  'Content-Type': 'application/json',
618
- ...options?.headers
650
+ ...options.headers
619
651
  }
620
652
  });
621
653
  };
622
654
 
623
655
  /**
624
656
  * Lists all the document publisher summaries
657
+ *
625
658
  * Lists all the document publisher summaries.
626
659
  */
627
- export const publisherSummaries = <ThrowOnError extends boolean = false>(options?: Options<PublisherSummaries_Data, ThrowOnError>) => {
628
- return (options?.client ?? _heyApiClient).get<PublisherSummaries_Response, unknown, ThrowOnError>({
660
+ export const publisherSummaries = <ThrowOnError extends boolean = false>(options?: Options<publisherSummariesData, ThrowOnError>) => {
661
+ return (options?.client ?? client).get<publisherSummariesResponses, unknown, ThrowOnError>({
629
662
  security: [
630
663
  {
631
664
  name: 'Authorization',
@@ -639,10 +672,11 @@ export const publisherSummaries = <ThrowOnError extends boolean = false>(options
639
672
 
640
673
  /**
641
674
  * Send a list of entities to validate against the GLEIF database
675
+ *
642
676
  * Send a list of entities to validate against the GLEIF database.
643
677
  */
644
- export const validateEntities = <ThrowOnError extends boolean = false>(options: Options<ValidateEntities_Data, ThrowOnError>) => {
645
- return (options.client ?? _heyApiClient).post<ValidateEntities_Response, unknown, ThrowOnError>({
678
+ export const validateEntities = <ThrowOnError extends boolean = false>(options: Options<validateEntitiesData, ThrowOnError>) => {
679
+ return (options.client ?? client).post<validateEntitiesResponses, unknown, ThrowOnError>({
646
680
  security: [
647
681
  {
648
682
  name: 'Authorization',
@@ -653,17 +687,18 @@ export const validateEntities = <ThrowOnError extends boolean = false>(options:
653
687
  ...options,
654
688
  headers: {
655
689
  'Content-Type': 'application/json',
656
- ...options?.headers
690
+ ...options.headers
657
691
  }
658
692
  });
659
693
  };
660
694
 
661
695
  /**
662
696
  * Grant access to all negotiations in a subaccount to an Advisor
697
+ *
663
698
  * Grant access to all negotiations in a subaccount to an Advisor.
664
699
  */
665
- export const grantAllNegotiationsAccess = <ThrowOnError extends boolean = false>(options: Options<GrantAllNegotiationsAccess_Data, ThrowOnError>) => {
666
- return (options.client ?? _heyApiClient).put<GrantAllNegotiationsAccess_Response, unknown, ThrowOnError>({
700
+ export const grantAllNegotiationsAccess = <ThrowOnError extends boolean = false>(options: Options<grantAllNegotiationsAccessData, ThrowOnError>) => {
701
+ return (options.client ?? client).put<grantAllNegotiationsAccessResponses, unknown, ThrowOnError>({
667
702
  security: [
668
703
  {
669
704
  name: 'Authorization',
@@ -677,10 +712,11 @@ export const grantAllNegotiationsAccess = <ThrowOnError extends boolean = false>
677
712
 
678
713
  /**
679
714
  * Obtain signing status corresponding to a negotiation
715
+ *
680
716
  * Obtain signing status corresponding to a negotiation.
681
717
  */
682
- export const getNegotiationESignStatus = <ThrowOnError extends boolean = false>(options: Options<GetNegotiationESignStatus_Data, ThrowOnError>) => {
683
- return (options.client ?? _heyApiClient).get<GetNegotiationESignStatus_Response, unknown, ThrowOnError>({
718
+ export const getNegotiationESignStatus = <ThrowOnError extends boolean = false>(options: Options<getNegotiationESignStatusData, ThrowOnError>) => {
719
+ return (options.client ?? client).get<getNegotiationESignStatusResponses, unknown, ThrowOnError>({
684
720
  security: [
685
721
  {
686
722
  name: 'Authorization',
@@ -694,10 +730,11 @@ export const getNegotiationESignStatus = <ThrowOnError extends boolean = false>(
694
730
 
695
731
  /**
696
732
  * Stop receiving emails relating to the specified notification
733
+ *
697
734
  * Stop receiving emails relating to the specified notification.
698
735
  */
699
- export const unsubscribe = <ThrowOnError extends boolean = false>(options: Options<Unsubscribe_Data, ThrowOnError>) => {
700
- return (options.client ?? _heyApiClient).post<unknown, unknown, ThrowOnError>({
736
+ export const unsubscribe = <ThrowOnError extends boolean = false>(options: Options<unsubscribeData, ThrowOnError>) => {
737
+ return (options.client ?? client).post<unsubscribeResponses, unsubscribeErrors, ThrowOnError>({
701
738
  security: [
702
739
  {
703
740
  name: 'Authorization',
@@ -708,17 +745,18 @@ export const unsubscribe = <ThrowOnError extends boolean = false>(options: Optio
708
745
  ...options,
709
746
  headers: {
710
747
  'Content-Type': 'application/json',
711
- ...options?.headers
748
+ ...options.headers
712
749
  }
713
750
  });
714
751
  };
715
752
 
716
753
  /**
717
754
  * Override Reject the final document and revert to an amending state
755
+ *
718
756
  * Override Reject the final document and revert to an amending state.
719
757
  */
720
- export const overrideRejectFinalDocument = <ThrowOnError extends boolean = false>(options: Options<OverrideRejectFinalDocument_Data, ThrowOnError>) => {
721
- return (options.client ?? _heyApiClient).put<unknown, unknown, ThrowOnError>({
758
+ export const overrideRejectFinalDocument = <ThrowOnError extends boolean = false>(options: Options<overrideRejectFinalDocumentData, ThrowOnError>) => {
759
+ return (options.client ?? client).put<overrideRejectFinalDocumentResponses, overrideRejectFinalDocumentErrors, ThrowOnError>({
722
760
  security: [
723
761
  {
724
762
  name: 'Authorization',
@@ -729,17 +767,18 @@ export const overrideRejectFinalDocument = <ThrowOnError extends boolean = false
729
767
  ...options,
730
768
  headers: {
731
769
  'Content-Type': 'application/json',
732
- ...options?.headers
770
+ ...options.headers
733
771
  }
734
772
  });
735
773
  };
736
774
 
737
775
  /**
738
776
  * View information about the version of the platform that is currently deployed
777
+ *
739
778
  * View information about the version of the platform that is currently deployed.
740
779
  */
741
- export const version = <ThrowOnError extends boolean = false>(options?: Options<Version_Data, ThrowOnError>) => {
742
- return (options?.client ?? _heyApiClient).get<unknown, unknown, ThrowOnError>({
780
+ export const version = <ThrowOnError extends boolean = false>(options?: Options<versionData, ThrowOnError>) => {
781
+ return (options?.client ?? client).get<versionResponses, unknown, ThrowOnError>({
743
782
  security: [
744
783
  {
745
784
  name: 'Authorization',
@@ -753,10 +792,11 @@ export const version = <ThrowOnError extends boolean = false>(options?: Options<
753
792
 
754
793
  /**
755
794
  * Overwrite the extraction feedback for the negotiation.
795
+ *
756
796
  * Overwrite the extraction feedback for the negotiation.
757
797
  */
758
- export const updateExtractionFeedback = <ThrowOnError extends boolean = false>(options: Options<UpdateExtractionFeedback_Data, ThrowOnError>) => {
759
- return (options.client ?? _heyApiClient).put<UpdateExtractionFeedback_Response, unknown, ThrowOnError>({
798
+ export const updateExtractionFeedback = <ThrowOnError extends boolean = false>(options: Options<updateExtractionFeedbackData, ThrowOnError>) => {
799
+ return (options.client ?? client).put<updateExtractionFeedbackResponses, updateExtractionFeedbackErrors, ThrowOnError>({
760
800
  security: [
761
801
  {
762
802
  name: 'Authorization',
@@ -767,17 +807,18 @@ export const updateExtractionFeedback = <ThrowOnError extends boolean = false>(o
767
807
  ...options,
768
808
  headers: {
769
809
  'Content-Type': 'application/json',
770
- ...options?.headers
810
+ ...options.headers
771
811
  }
772
812
  });
773
813
  };
774
814
 
775
815
  /**
776
816
  * View the latest schema for a document
817
+ *
777
818
  * View the latest schema for a document.
778
819
  */
779
- export const getLatestDocumentSchema = <ThrowOnError extends boolean = false>(options: Options<GetLatestDocumentSchema_Data, ThrowOnError>) => {
780
- return (options.client ?? _heyApiClient).get<GetLatestDocumentSchema_Response, unknown, ThrowOnError>({
820
+ export const getLatestDocumentSchema = <ThrowOnError extends boolean = false>(options: Options<getLatestDocumentSchemaData, ThrowOnError>) => {
821
+ return (options.client ?? client).get<getLatestDocumentSchemaResponses, getLatestDocumentSchemaErrors, ThrowOnError>({
781
822
  security: [
782
823
  {
783
824
  name: 'Authorization',
@@ -791,10 +832,11 @@ export const getLatestDocumentSchema = <ThrowOnError extends boolean = false>(op
791
832
 
792
833
  /**
793
834
  * Get the nested answer IDs of all parties for all previous major versions
835
+ *
794
836
  * Get the value for a nested answer IDs of all parties for all previous major versions.
795
837
  */
796
- export const getPreviousMajorVersionsNestedAnswerIds = <ThrowOnError extends boolean = false>(options: Options<GetPreviousMajorVersionsNestedAnswerIds_Data, ThrowOnError>) => {
797
- return (options.client ?? _heyApiClient).get<GetPreviousMajorVersionsNestedAnswerIds_Response, unknown, ThrowOnError>({
838
+ export const getPreviousMajorVersionsNestedAnswerIds = <ThrowOnError extends boolean = false>(options: Options<getPreviousMajorVersionsNestedAnswerIdsData, ThrowOnError>) => {
839
+ return (options.client ?? client).get<getPreviousMajorVersionsNestedAnswerIdsResponses, getPreviousMajorVersionsNestedAnswerIdsErrors, ThrowOnError>({
798
840
  security: [
799
841
  {
800
842
  name: 'Authorization',
@@ -808,10 +850,11 @@ export const getPreviousMajorVersionsNestedAnswerIds = <ThrowOnError extends boo
808
850
 
809
851
  /**
810
852
  * Reject an election
853
+ *
811
854
  * Reject an election.
812
855
  */
813
- export const addElectionRejection = <ThrowOnError extends boolean = false>(options: Options<AddElectionRejection_Data, ThrowOnError>) => {
814
- return (options.client ?? _heyApiClient).put<AddElectionRejection_Response, unknown, ThrowOnError>({
856
+ export const addElectionRejection = <ThrowOnError extends boolean = false>(options: Options<addElectionRejectionData, ThrowOnError>) => {
857
+ return (options.client ?? client).put<addElectionRejectionResponses, addElectionRejectionErrors, ThrowOnError>({
815
858
  security: [
816
859
  {
817
860
  name: 'Authorization',
@@ -822,17 +865,18 @@ export const addElectionRejection = <ThrowOnError extends boolean = false>(optio
822
865
  ...options,
823
866
  headers: {
824
867
  'Content-Type': 'application/json',
825
- ...options?.headers
868
+ ...options.headers
826
869
  }
827
870
  });
828
871
  };
829
872
 
830
873
  /**
831
874
  * View a list of the presets with a documentId in a Sub-Account
875
+ *
832
876
  * View a list of the presets with a documentId in a Sub-Account.
833
877
  */
834
- export const listPresets = <ThrowOnError extends boolean = false>(options: Options<ListPresets_Data, ThrowOnError>) => {
835
- return (options.client ?? _heyApiClient).get<ListPresets_Response, unknown, ThrowOnError>({
878
+ export const listPresets = <ThrowOnError extends boolean = false>(options: Options<listPresetsData, ThrowOnError>) => {
879
+ return (options.client ?? client).get<listPresetsResponses, unknown, ThrowOnError>({
836
880
  security: [
837
881
  {
838
882
  name: 'Authorization',
@@ -846,10 +890,11 @@ export const listPresets = <ThrowOnError extends boolean = false>(options: Optio
846
890
 
847
891
  /**
848
892
  * View all timeline events associated with a negotiation
893
+ *
849
894
  * View all timeline events associated with a negotiation.
850
895
  */
851
- export const getTimeline = <ThrowOnError extends boolean = false>(options: Options<GetTimeline_Data, ThrowOnError>) => {
852
- return (options.client ?? _heyApiClient).get<unknown, unknown, ThrowOnError>({
896
+ export const getTimeline = <ThrowOnError extends boolean = false>(options: Options<getTimelineData, ThrowOnError>) => {
897
+ return (options.client ?? client).get<getTimelineResponses, getTimelineErrors, ThrowOnError>({
853
898
  security: [
854
899
  {
855
900
  name: 'Authorization',
@@ -863,10 +908,11 @@ export const getTimeline = <ThrowOnError extends boolean = false>(options: Optio
863
908
 
864
909
  /**
865
910
  * Mark all timeline events associated with a negotiation and requesting user as read
911
+ *
866
912
  * Mark all timeline events associated with a negotiation and requesting user as read.
867
913
  */
868
- export const markEventsAsViewed = <ThrowOnError extends boolean = false>(options: Options<MarkEventsAsViewed_Data, ThrowOnError>) => {
869
- return (options.client ?? _heyApiClient).post<unknown, unknown, ThrowOnError>({
914
+ export const markEventsAsViewed = <ThrowOnError extends boolean = false>(options: Options<markEventsAsViewedData, ThrowOnError>) => {
915
+ return (options.client ?? client).post<markEventsAsViewedResponses, markEventsAsViewedErrors, ThrowOnError>({
870
916
  security: [
871
917
  {
872
918
  name: 'Authorization',
@@ -880,10 +926,11 @@ export const markEventsAsViewed = <ThrowOnError extends boolean = false>(options
880
926
 
881
927
  /**
882
928
  * See the history of restatements for this negotiation
929
+ *
883
930
  * Shows the full restatement history for this negotiation starting at the original and ending with the most recent restatement.
884
931
  */
885
- export const negotiationForkHistory = <ThrowOnError extends boolean = false>(options: Options<NegotiationForkHistory_Data, ThrowOnError>) => {
886
- return (options.client ?? _heyApiClient).get<NegotiationForkHistory_Response, unknown, ThrowOnError>({
932
+ export const negotiationForkHistory = <ThrowOnError extends boolean = false>(options: Options<negotiationForkHistoryData, ThrowOnError>) => {
933
+ return (options.client ?? client).get<negotiationForkHistoryResponses, negotiationForkHistoryErrors, ThrowOnError>({
887
934
  security: [
888
935
  {
889
936
  name: 'Authorization',
@@ -897,10 +944,11 @@ export const negotiationForkHistory = <ThrowOnError extends boolean = false>(opt
897
944
 
898
945
  /**
899
946
  * Move an entity from one Sub-Account to another
947
+ *
900
948
  * Move an entity (and it's associated negotiations) from one Sub-Account to another.
901
949
  */
902
- export const moveEntity = <ThrowOnError extends boolean = false>(options: Options<MoveEntity_Data, ThrowOnError>) => {
903
- return (options.client ?? _heyApiClient).put<MoveEntity_Response, unknown, ThrowOnError>({
950
+ export const moveEntity = <ThrowOnError extends boolean = false>(options: Options<moveEntityData, ThrowOnError>) => {
951
+ return (options.client ?? client).put<moveEntityResponses, moveEntityErrors, ThrowOnError>({
904
952
  security: [
905
953
  {
906
954
  name: 'Authorization',
@@ -911,17 +959,18 @@ export const moveEntity = <ThrowOnError extends boolean = false>(options: Option
911
959
  ...options,
912
960
  headers: {
913
961
  'Content-Type': 'application/json',
914
- ...options?.headers
962
+ ...options.headers
915
963
  }
916
964
  });
917
965
  };
918
966
 
919
967
  /**
920
968
  * View a list of all entities assigned to Sub-Accounts, account-wide
969
+ *
921
970
  * View a list of all entities assigned to Sub-Accounts, account-wide.
922
971
  */
923
- export const listEntities = <ThrowOnError extends boolean = false>(options?: Options<ListEntities_Data, ThrowOnError>) => {
924
- return (options?.client ?? _heyApiClient).get<ListEntities_Response, unknown, ThrowOnError>({
972
+ export const listEntities = <ThrowOnError extends boolean = false>(options?: Options<listEntitiesData, ThrowOnError>) => {
973
+ return (options?.client ?? client).get<listEntitiesResponses, unknown, ThrowOnError>({
925
974
  security: [
926
975
  {
927
976
  name: 'Authorization',
@@ -935,10 +984,11 @@ export const listEntities = <ThrowOnError extends boolean = false>(options?: Opt
935
984
 
936
985
  /**
937
986
  * Share a workspace with specified users.
987
+ *
938
988
  * Share a workspace with specified users. Grants or requests access to the workspace if required.
939
989
  */
940
- export const shareSubAccount = <ThrowOnError extends boolean = false>(options: Options<ShareSubAccount_Data, ThrowOnError>) => {
941
- return (options.client ?? _heyApiClient).post<ShareSubAccount_Response, unknown, ThrowOnError>({
990
+ export const shareSubAccount = <ThrowOnError extends boolean = false>(options: Options<shareSubAccountData, ThrowOnError>) => {
991
+ return (options.client ?? client).post<shareSubAccountResponses, shareSubAccountErrors, ThrowOnError>({
942
992
  security: [
943
993
  {
944
994
  name: 'Authorization',
@@ -949,17 +999,18 @@ export const shareSubAccount = <ThrowOnError extends boolean = false>(options: O
949
999
  ...options,
950
1000
  headers: {
951
1001
  'Content-Type': 'application/json',
952
- ...options?.headers
1002
+ ...options.headers
953
1003
  }
954
1004
  });
955
1005
  };
956
1006
 
957
1007
  /**
958
1008
  * Assign an entity to a Sub-Account
1009
+ *
959
1010
  * Assign an entity to a subaccount.
960
1011
  */
961
- export const assignEntity = <ThrowOnError extends boolean = false>(options: Options<AssignEntity_Data, ThrowOnError>) => {
962
- return (options.client ?? _heyApiClient).put<AssignEntity_Response, unknown, ThrowOnError>({
1012
+ export const assignEntity = <ThrowOnError extends boolean = false>(options: Options<assignEntityData, ThrowOnError>) => {
1013
+ return (options.client ?? client).put<assignEntityResponses, assignEntityErrors, ThrowOnError>({
963
1014
  security: [
964
1015
  {
965
1016
  name: 'Authorization',
@@ -970,17 +1021,18 @@ export const assignEntity = <ThrowOnError extends boolean = false>(options: Opti
970
1021
  ...options,
971
1022
  headers: {
972
1023
  'Content-Type': 'application/json',
973
- ...options?.headers
1024
+ ...options.headers
974
1025
  }
975
1026
  });
976
1027
  };
977
1028
 
978
1029
  /**
979
1030
  * Update the document approval rules for a negotiation
1031
+ *
980
1032
  * Update the document approval rules for a negotiation.
981
1033
  */
982
- export const setFinalApproval = <ThrowOnError extends boolean = false>(options: Options<SetFinalApproval_Data, ThrowOnError>) => {
983
- return (options.client ?? _heyApiClient).put<SetFinalApproval_Response, unknown, ThrowOnError>({
1034
+ export const setFinalApproval = <ThrowOnError extends boolean = false>(options: Options<setFinalApprovalData, ThrowOnError>) => {
1035
+ return (options.client ?? client).put<setFinalApprovalResponses, unknown, ThrowOnError>({
984
1036
  security: [
985
1037
  {
986
1038
  name: 'Authorization',
@@ -991,17 +1043,18 @@ export const setFinalApproval = <ThrowOnError extends boolean = false>(options:
991
1043
  ...options,
992
1044
  headers: {
993
1045
  'Content-Type': 'application/json',
994
- ...options?.headers
1046
+ ...options.headers
995
1047
  }
996
1048
  });
997
1049
  };
998
1050
 
999
1051
  /**
1000
1052
  * Update the approval rules for an election
1053
+ *
1001
1054
  * Update the approval rules for an election.
1002
1055
  */
1003
- export const setElectionApproval = <ThrowOnError extends boolean = false>(options: Options<SetElectionApproval_Data, ThrowOnError>) => {
1004
- return (options.client ?? _heyApiClient).put<SetElectionApproval_Response, unknown, ThrowOnError>({
1056
+ export const setElectionApproval = <ThrowOnError extends boolean = false>(options: Options<setElectionApprovalData, ThrowOnError>) => {
1057
+ return (options.client ?? client).put<setElectionApprovalResponses, setElectionApprovalErrors, ThrowOnError>({
1005
1058
  security: [
1006
1059
  {
1007
1060
  name: 'Authorization',
@@ -1012,17 +1065,18 @@ export const setElectionApproval = <ThrowOnError extends boolean = false>(option
1012
1065
  ...options,
1013
1066
  headers: {
1014
1067
  'Content-Type': 'application/json',
1015
- ...options?.headers
1068
+ ...options.headers
1016
1069
  }
1017
1070
  });
1018
1071
  };
1019
1072
 
1020
1073
  /**
1021
1074
  * Gets a list of potential replacement approvers for a specific negotiation, including users who can be promoted
1075
+ *
1022
1076
  * Gets a list of potential replacement approvers for a specific negotiation, including users who can be promoted.
1023
1077
  */
1024
- export const getPotentialReplacementApprovers = <ThrowOnError extends boolean = false>(options: Options<GetPotentialReplacementApprovers_Data, ThrowOnError>) => {
1025
- return (options.client ?? _heyApiClient).get<GetPotentialReplacementApprovers_Response, unknown, ThrowOnError>({
1078
+ export const getPotentialReplacementApprovers = <ThrowOnError extends boolean = false>(options: Options<getPotentialReplacementApproversData, ThrowOnError>) => {
1079
+ return (options.client ?? client).get<getPotentialReplacementApproversResponses, unknown, ThrowOnError>({
1026
1080
  security: [
1027
1081
  {
1028
1082
  name: 'Authorization',
@@ -1036,10 +1090,11 @@ export const getPotentialReplacementApprovers = <ThrowOnError extends boolean =
1036
1090
 
1037
1091
  /**
1038
1092
  * Delete an approval comment
1093
+ *
1039
1094
  * Delete an approval comment.
1040
1095
  */
1041
- export const deleteApprovalComment = <ThrowOnError extends boolean = false>(options: Options<DeleteApprovalComment_Data, ThrowOnError>) => {
1042
- return (options.client ?? _heyApiClient).delete<unknown, unknown, ThrowOnError>({
1096
+ export const deleteApprovalComment = <ThrowOnError extends boolean = false>(options: Options<deleteApprovalCommentData, ThrowOnError>) => {
1097
+ return (options.client ?? client).delete<deleteApprovalCommentResponses, deleteApprovalCommentErrors, ThrowOnError>({
1043
1098
  security: [
1044
1099
  {
1045
1100
  name: 'Authorization',
@@ -1053,10 +1108,11 @@ export const deleteApprovalComment = <ThrowOnError extends boolean = false>(opti
1053
1108
 
1054
1109
  /**
1055
1110
  * Amend an approval comment
1111
+ *
1056
1112
  * Amend an approval comment.
1057
1113
  */
1058
- export const editApprovalComment = <ThrowOnError extends boolean = false>(options: Options<EditApprovalComment_Data, ThrowOnError>) => {
1059
- return (options.client ?? _heyApiClient).put<EditApprovalComment_Response, unknown, ThrowOnError>({
1114
+ export const editApprovalComment = <ThrowOnError extends boolean = false>(options: Options<editApprovalCommentData, ThrowOnError>) => {
1115
+ return (options.client ?? client).put<editApprovalCommentResponses, editApprovalCommentErrors, ThrowOnError>({
1060
1116
  security: [
1061
1117
  {
1062
1118
  name: 'Authorization',
@@ -1067,17 +1123,18 @@ export const editApprovalComment = <ThrowOnError extends boolean = false>(option
1067
1123
  ...options,
1068
1124
  headers: {
1069
1125
  'Content-Type': 'application/json',
1070
- ...options?.headers
1126
+ ...options.headers
1071
1127
  }
1072
1128
  });
1073
1129
  };
1074
1130
 
1075
1131
  /**
1076
1132
  * Delete an invite attachment from a negotiation
1133
+ *
1077
1134
  * Delete an invite attachment from a negotiation.
1078
1135
  */
1079
- export const deleteExternalAttachment = <ThrowOnError extends boolean = false>(options: Options<DeleteExternalAttachment_Data, ThrowOnError>) => {
1080
- return (options.client ?? _heyApiClient).delete<DeleteExternalAttachment_Response, unknown, ThrowOnError>({
1136
+ export const deleteExternalAttachment = <ThrowOnError extends boolean = false>(options: Options<deleteExternalAttachmentData, ThrowOnError>) => {
1137
+ return (options.client ?? client).delete<deleteExternalAttachmentResponses, unknown, ThrowOnError>({
1081
1138
  security: [
1082
1139
  {
1083
1140
  name: 'Authorization',
@@ -1091,10 +1148,11 @@ export const deleteExternalAttachment = <ThrowOnError extends boolean = false>(o
1091
1148
 
1092
1149
  /**
1093
1150
  * Download an invite attachment that has been uploaded for a negotiation
1151
+ *
1094
1152
  * Download an invite attachment that has been uploaded for a negotiation.
1095
1153
  */
1096
- export const getExternalAttachment = <ThrowOnError extends boolean = false>(options: Options<GetExternalAttachment_Data, ThrowOnError>) => {
1097
- return (options.client ?? _heyApiClient).get<GetExternalAttachment_Response, unknown, ThrowOnError>({
1154
+ export const getExternalAttachment = <ThrowOnError extends boolean = false>(options: Options<getExternalAttachmentData, ThrowOnError>) => {
1155
+ return (options.client ?? client).get<getExternalAttachmentResponses, getExternalAttachmentErrors, ThrowOnError>({
1098
1156
  security: [
1099
1157
  {
1100
1158
  name: 'Authorization',
@@ -1108,10 +1166,11 @@ export const getExternalAttachment = <ThrowOnError extends boolean = false>(opti
1108
1166
 
1109
1167
  /**
1110
1168
  * Get a list of all advisors that can be given access to the specified negotiation
1169
+ *
1111
1170
  * Get a list of all advisors that can be given access to the specified negotiation. Dont include advisors that already have access.
1112
1171
  */
1113
- export const listPotentialNegotiationAdvisors = <ThrowOnError extends boolean = false>(options: Options<ListPotentialNegotiationAdvisors_Data, ThrowOnError>) => {
1114
- return (options.client ?? _heyApiClient).get<ListPotentialNegotiationAdvisors_Response, unknown, ThrowOnError>({
1172
+ export const listPotentialNegotiationAdvisors = <ThrowOnError extends boolean = false>(options: Options<listPotentialNegotiationAdvisorsData, ThrowOnError>) => {
1173
+ return (options.client ?? client).get<listPotentialNegotiationAdvisorsResponses, unknown, ThrowOnError>({
1115
1174
  security: [
1116
1175
  {
1117
1176
  name: 'Authorization',
@@ -1125,10 +1184,11 @@ export const listPotentialNegotiationAdvisors = <ThrowOnError extends boolean =
1125
1184
 
1126
1185
  /**
1127
1186
  * View a negotiation, if you have access to it. Searches all of your Sub-Accounts
1187
+ *
1128
1188
  * View a negotiation, if you have access to it. Searches all of your Sub-Accounts.
1129
1189
  */
1130
- export const getAccessibleNegotiation = <ThrowOnError extends boolean = false>(options: Options<GetAccessibleNegotiation_Data, ThrowOnError>) => {
1131
- return (options.client ?? _heyApiClient).get<GetAccessibleNegotiation_Response, unknown, ThrowOnError>({
1190
+ export const getAccessibleNegotiation = <ThrowOnError extends boolean = false>(options: Options<getAccessibleNegotiationData, ThrowOnError>) => {
1191
+ return (options.client ?? client).get<getAccessibleNegotiationResponses, unknown, ThrowOnError>({
1132
1192
  security: [
1133
1193
  {
1134
1194
  name: 'Authorization',
@@ -1142,10 +1202,11 @@ export const getAccessibleNegotiation = <ThrowOnError extends boolean = false>(o
1142
1202
 
1143
1203
  /**
1144
1204
  * Generate negotiations report in a Sub-Account and send the download email
1205
+ *
1145
1206
  * Generate negotiations report in a Sub-Account and send the download email.
1146
1207
  */
1147
- export const generateNegotiationsReport = <ThrowOnError extends boolean = false>(options: Options<GenerateNegotiationsReport_Data, ThrowOnError>) => {
1148
- return (options.client ?? _heyApiClient).get<unknown, unknown, ThrowOnError>({
1208
+ export const generateNegotiationsReport = <ThrowOnError extends boolean = false>(options: Options<generateNegotiationsReportData, ThrowOnError>) => {
1209
+ return (options.client ?? client).get<generateNegotiationsReportResponses, unknown, ThrowOnError>({
1149
1210
  security: [
1150
1211
  {
1151
1212
  name: 'Authorization',
@@ -1159,10 +1220,11 @@ export const generateNegotiationsReport = <ThrowOnError extends boolean = false>
1159
1220
 
1160
1221
  /**
1161
1222
  * Restate an existing executed negotiation
1223
+ *
1162
1224
  * Starts a new negotiation where all elections are prefilled from the specified negotiation. Once the new negotiation is executed, the documents produced will indicate that they restate the original documents. In order to restate a negotiation it must be executed, the document must support restatement and there must not be any other sequential restatements for this negotiation. Any subsequent restatement should be made from the the latest executed restatement.
1163
1225
  */
1164
- export const forkNegotiation = <ThrowOnError extends boolean = false>(options: Options<ForkNegotiation_Data, ThrowOnError>) => {
1165
- return (options.client ?? _heyApiClient).post<ForkNegotiation_Response, unknown, ThrowOnError>({
1226
+ export const forkNegotiation = <ThrowOnError extends boolean = false>(options: Options<forkNegotiationData, ThrowOnError>) => {
1227
+ return (options.client ?? client).post<forkNegotiationResponses, forkNegotiationErrors, ThrowOnError>({
1166
1228
  security: [
1167
1229
  {
1168
1230
  name: 'Authorization',
@@ -1176,10 +1238,11 @@ export const forkNegotiation = <ThrowOnError extends boolean = false>(options: O
1176
1238
 
1177
1239
  /**
1178
1240
  * View the schema for a negotiation's document
1241
+ *
1179
1242
  * View the schema for a negotiation's document.
1180
1243
  */
1181
- export const negotiationGetDocumentSchema = <ThrowOnError extends boolean = false>(options: Options<NegotiationGetDocumentSchema_Data, ThrowOnError>) => {
1182
- return (options.client ?? _heyApiClient).get<NegotiationGetDocumentSchema_Response, unknown, ThrowOnError>({
1244
+ export const negotiationGetDocumentSchema = <ThrowOnError extends boolean = false>(options: Options<negotiationGetDocumentSchemaData, ThrowOnError>) => {
1245
+ return (options.client ?? client).get<negotiationGetDocumentSchemaResponses, negotiationGetDocumentSchemaErrors, ThrowOnError>({
1183
1246
  security: [
1184
1247
  {
1185
1248
  name: 'Authorization',
@@ -1193,10 +1256,11 @@ export const negotiationGetDocumentSchema = <ThrowOnError extends boolean = fals
1193
1256
 
1194
1257
  /**
1195
1258
  * Update the name for a negotiation group
1259
+ *
1196
1260
  * Update the name for a negotiation group.
1197
1261
  */
1198
- export const updateGroupName = <ThrowOnError extends boolean = false>(options: Options<UpdateGroupName_Data, ThrowOnError>) => {
1199
- return (options.client ?? _heyApiClient).put<unknown, unknown, ThrowOnError>({
1262
+ export const updateGroupName = <ThrowOnError extends boolean = false>(options: Options<updateGroupNameData, ThrowOnError>) => {
1263
+ return (options.client ?? client).put<updateGroupNameResponses, updateGroupNameErrors, ThrowOnError>({
1200
1264
  security: [
1201
1265
  {
1202
1266
  name: 'Authorization',
@@ -1207,17 +1271,18 @@ export const updateGroupName = <ThrowOnError extends boolean = false>(options: O
1207
1271
  ...options,
1208
1272
  headers: {
1209
1273
  'Content-Type': 'application/json',
1210
- ...options?.headers
1274
+ ...options.headers
1211
1275
  }
1212
1276
  });
1213
1277
  };
1214
1278
 
1215
1279
  /**
1216
1280
  * Change the Signing Mode for a negotiation in Execution
1281
+ *
1217
1282
  * Change the Signing Mode for a negotiation in Execution.
1218
1283
  */
1219
- export const changeSigningMode = <ThrowOnError extends boolean = false>(options: Options<ChangeSigningMode_Data, ThrowOnError>) => {
1220
- return (options.client ?? _heyApiClient).put<ChangeSigningMode_Response, unknown, ThrowOnError>({
1284
+ export const changeSigningMode = <ThrowOnError extends boolean = false>(options: Options<changeSigningModeData, ThrowOnError>) => {
1285
+ return (options.client ?? client).put<changeSigningModeResponses, changeSigningModeErrors, ThrowOnError>({
1221
1286
  security: [
1222
1287
  {
1223
1288
  name: 'Authorization',
@@ -1228,17 +1293,18 @@ export const changeSigningMode = <ThrowOnError extends boolean = false>(options:
1228
1293
  ...options,
1229
1294
  headers: {
1230
1295
  'Content-Type': 'application/json',
1231
- ...options?.headers
1296
+ ...options.headers
1232
1297
  }
1233
1298
  });
1234
1299
  };
1235
1300
 
1236
1301
  /**
1237
1302
  * Send a negotiation back to the counterparty
1303
+ *
1238
1304
  * Send a negotiation back to the counterparty.
1239
1305
  */
1240
- export const sendToCounterparty = <ThrowOnError extends boolean = false>(options: Options<SendToCounterparty_Data, ThrowOnError>) => {
1241
- return (options.client ?? _heyApiClient).put<SendToCounterparty_Response, unknown, ThrowOnError>({
1306
+ export const sendToCounterparty = <ThrowOnError extends boolean = false>(options: Options<sendToCounterpartyData, ThrowOnError>) => {
1307
+ return (options.client ?? client).put<sendToCounterpartyResponses, sendToCounterpartyErrors, ThrowOnError>({
1242
1308
  security: [
1243
1309
  {
1244
1310
  name: 'Authorization',
@@ -1249,17 +1315,18 @@ export const sendToCounterparty = <ThrowOnError extends boolean = false>(options
1249
1315
  ...options,
1250
1316
  headers: {
1251
1317
  'Content-Type': 'application/json',
1252
- ...options?.headers
1318
+ ...options.headers
1253
1319
  }
1254
1320
  });
1255
1321
  };
1256
1322
 
1257
1323
  /**
1258
1324
  * Cancel an ESign active signing session
1325
+ *
1259
1326
  * Cancel an ESign active signing session by voiding the envelope.
1260
1327
  */
1261
- export const voidESignEnvelopeForNegotiation = <ThrowOnError extends boolean = false>(options: Options<VoidESignEnvelopeForNegotiation_Data, ThrowOnError>) => {
1262
- return (options.client ?? _heyApiClient).put<unknown, unknown, ThrowOnError>({
1328
+ export const voidESignEnvelopeForNegotiation = <ThrowOnError extends boolean = false>(options: Options<voidESignEnvelopeForNegotiationData, ThrowOnError>) => {
1329
+ return (options.client ?? client).put<voidESignEnvelopeForNegotiationResponses, voidESignEnvelopeForNegotiationErrors, ThrowOnError>({
1263
1330
  security: [
1264
1331
  {
1265
1332
  name: 'Authorization',
@@ -1273,10 +1340,11 @@ export const voidESignEnvelopeForNegotiation = <ThrowOnError extends boolean = f
1273
1340
 
1274
1341
  /**
1275
1342
  * Delete a document level drafting note for the specified note type. Fails if note doesn't exists
1343
+ *
1276
1344
  * Delete a document level drafting note for the specified note type. Fails if note doesn't exists.
1277
1345
  */
1278
- export const deleteDocumentDraftingNote = <ThrowOnError extends boolean = false>(options: Options<DeleteDocumentDraftingNote_Data, ThrowOnError>) => {
1279
- return (options.client ?? _heyApiClient).delete<unknown, unknown, ThrowOnError>({
1346
+ export const deleteDocumentDraftingNote = <ThrowOnError extends boolean = false>(options: Options<deleteDocumentDraftingNoteData, ThrowOnError>) => {
1347
+ return (options.client ?? client).delete<deleteDocumentDraftingNoteResponses, deleteDocumentDraftingNoteErrors, ThrowOnError>({
1280
1348
  security: [
1281
1349
  {
1282
1350
  name: 'Authorization',
@@ -1290,10 +1358,11 @@ export const deleteDocumentDraftingNote = <ThrowOnError extends boolean = false>
1290
1358
 
1291
1359
  /**
1292
1360
  * Update a document drafting note for the specified note type. Adds a new one if no note exists before
1361
+ *
1293
1362
  * Update a document drafting note for the specified note type. Adds a new one if no note exists before.
1294
1363
  */
1295
- export const updateDocumentDraftingNote = <ThrowOnError extends boolean = false>(options: Options<UpdateDocumentDraftingNote_Data, ThrowOnError>) => {
1296
- return (options.client ?? _heyApiClient).put<UpdateDocumentDraftingNote_Response, unknown, ThrowOnError>({
1364
+ export const updateDocumentDraftingNote = <ThrowOnError extends boolean = false>(options: Options<updateDocumentDraftingNoteData, ThrowOnError>) => {
1365
+ return (options.client ?? client).put<updateDocumentDraftingNoteResponses, updateDocumentDraftingNoteErrors, ThrowOnError>({
1297
1366
  security: [
1298
1367
  {
1299
1368
  name: 'Authorization',
@@ -1307,10 +1376,11 @@ export const updateDocumentDraftingNote = <ThrowOnError extends boolean = false>
1307
1376
 
1308
1377
  /**
1309
1378
  * Share a negotiation with specified users.
1379
+ *
1310
1380
  * Share a negotiation with specified users. Grants or requests access to the negotiations workspace if required.
1311
1381
  */
1312
- export const shareNegotiation = <ThrowOnError extends boolean = false>(options: Options<ShareNegotiation_Data, ThrowOnError>) => {
1313
- return (options.client ?? _heyApiClient).post<ShareNegotiation_Response, unknown, ThrowOnError>({
1382
+ export const shareNegotiation = <ThrowOnError extends boolean = false>(options: Options<shareNegotiationData, ThrowOnError>) => {
1383
+ return (options.client ?? client).post<shareNegotiationResponses, shareNegotiationErrors, ThrowOnError>({
1314
1384
  security: [
1315
1385
  {
1316
1386
  name: 'Authorization',
@@ -1321,17 +1391,18 @@ export const shareNegotiation = <ThrowOnError extends boolean = false>(options:
1321
1391
  ...options,
1322
1392
  headers: {
1323
1393
  'Content-Type': 'application/json',
1324
- ...options?.headers
1394
+ ...options.headers
1325
1395
  }
1326
1396
  });
1327
1397
  };
1328
1398
 
1329
1399
  /**
1330
1400
  * Upload one or more bulk set attachments for a bulk set
1401
+ *
1331
1402
  * Upload one or more bulk set attachments for a bulk set.
1332
1403
  */
1333
- export const setBulkSetAttachments = <ThrowOnError extends boolean = false>(options: Options<SetBulkSetAttachments_Data, ThrowOnError>) => {
1334
- return (options.client ?? _heyApiClient).post<SetBulkSetAttachments_Response, unknown, ThrowOnError>({
1404
+ export const setBulkSetAttachments = <ThrowOnError extends boolean = false>(options: Options<setBulkSetAttachmentsData, ThrowOnError>) => {
1405
+ return (options.client ?? client).post<setBulkSetAttachmentsResponses, setBulkSetAttachmentsErrors, ThrowOnError>({
1335
1406
  ...formDataBodySerializer,
1336
1407
  security: [
1337
1408
  {
@@ -1343,17 +1414,18 @@ export const setBulkSetAttachments = <ThrowOnError extends boolean = false>(opti
1343
1414
  ...options,
1344
1415
  headers: {
1345
1416
  'Content-Type': null,
1346
- ...options?.headers
1417
+ ...options.headers
1347
1418
  }
1348
1419
  });
1349
1420
  };
1350
1421
 
1351
1422
  /**
1352
1423
  * Approve an election
1424
+ *
1353
1425
  * Approve an election.
1354
1426
  */
1355
- export const addElectionApproval = <ThrowOnError extends boolean = false>(options: Options<AddElectionApproval_Data, ThrowOnError>) => {
1356
- return (options.client ?? _heyApiClient).put<AddElectionApproval_Response, unknown, ThrowOnError>({
1427
+ export const addElectionApproval = <ThrowOnError extends boolean = false>(options: Options<addElectionApprovalData, ThrowOnError>) => {
1428
+ return (options.client ?? client).put<addElectionApprovalResponses, addElectionApprovalErrors, ThrowOnError>({
1357
1429
  security: [
1358
1430
  {
1359
1431
  name: 'Authorization',
@@ -1364,17 +1436,18 @@ export const addElectionApproval = <ThrowOnError extends boolean = false>(option
1364
1436
  ...options,
1365
1437
  headers: {
1366
1438
  'Content-Type': 'application/json',
1367
- ...options?.headers
1439
+ ...options.headers
1368
1440
  }
1369
1441
  });
1370
1442
  };
1371
1443
 
1372
1444
  /**
1373
1445
  * Accept the counterparty position for all elections of a negotiation
1446
+ *
1374
1447
  * Accept the counterparty position for all elections of a negotiation.
1375
1448
  */
1376
- export const acceptAllCounterpartyPositions = <ThrowOnError extends boolean = false>(options: Options<AcceptAllCounterpartyPositions_Data, ThrowOnError>) => {
1377
- return (options.client ?? _heyApiClient).put<AcceptAllCounterpartyPositions_Response, unknown, ThrowOnError>({
1449
+ export const acceptAllCounterpartyPositions = <ThrowOnError extends boolean = false>(options: Options<acceptAllCounterpartyPositionsData, ThrowOnError>) => {
1450
+ return (options.client ?? client).put<acceptAllCounterpartyPositionsResponses, acceptAllCounterpartyPositionsErrors, ThrowOnError>({
1378
1451
  security: [
1379
1452
  {
1380
1453
  name: 'Authorization',
@@ -1388,10 +1461,11 @@ export const acceptAllCounterpartyPositions = <ThrowOnError extends boolean = fa
1388
1461
 
1389
1462
  /**
1390
1463
  * Reject the final document and revert to an amending state
1464
+ *
1391
1465
  * Reject the final document and revert to an amending state.
1392
1466
  */
1393
- export const rejectFinalDocument = <ThrowOnError extends boolean = false>(options: Options<RejectFinalDocument_Data, ThrowOnError>) => {
1394
- return (options.client ?? _heyApiClient).put<unknown, unknown, ThrowOnError>({
1467
+ export const rejectFinalDocument = <ThrowOnError extends boolean = false>(options: Options<rejectFinalDocumentData, ThrowOnError>) => {
1468
+ return (options.client ?? client).put<rejectFinalDocumentResponses, rejectFinalDocumentErrors, ThrowOnError>({
1395
1469
  security: [
1396
1470
  {
1397
1471
  name: 'Authorization',
@@ -1402,17 +1476,18 @@ export const rejectFinalDocument = <ThrowOnError extends boolean = false>(option
1402
1476
  ...options,
1403
1477
  headers: {
1404
1478
  'Content-Type': 'application/json',
1405
- ...options?.headers
1479
+ ...options.headers
1406
1480
  }
1407
1481
  });
1408
1482
  };
1409
1483
 
1410
1484
  /**
1411
1485
  * Sign document via DocuSign
1486
+ *
1412
1487
  * Sign document via DocuSign.
1413
1488
  */
1414
- export const generateAndMaybeSendEnvelope = <ThrowOnError extends boolean = false>(options: Options<GenerateAndMaybeSendEnvelope_Data, ThrowOnError>) => {
1415
- return (options.client ?? _heyApiClient).get<unknown, unknown, ThrowOnError>({
1489
+ export const generateAndMaybeSendEnvelope = <ThrowOnError extends boolean = false>(options: Options<generateAndMaybeSendEnvelopeData, ThrowOnError>) => {
1490
+ return (options.client ?? client).get<generateAndMaybeSendEnvelopeResponses, generateAndMaybeSendEnvelopeErrors, ThrowOnError>({
1416
1491
  security: [
1417
1492
  {
1418
1493
  name: 'Authorization',
@@ -1426,10 +1501,11 @@ export const generateAndMaybeSendEnvelope = <ThrowOnError extends boolean = fals
1426
1501
 
1427
1502
  /**
1428
1503
  * View the answer for a specific election
1504
+ *
1429
1505
  * View answer for a specific election.
1430
1506
  */
1431
- export const getElectionAnswer = <ThrowOnError extends boolean = false>(options: Options<GetElectionAnswer_Data, ThrowOnError>) => {
1432
- return (options.client ?? _heyApiClient).get<GetElectionAnswer_Response, unknown, ThrowOnError>({
1507
+ export const getElectionAnswer = <ThrowOnError extends boolean = false>(options: Options<getElectionAnswerData, ThrowOnError>) => {
1508
+ return (options.client ?? client).get<getElectionAnswerResponses, getElectionAnswerErrors, ThrowOnError>({
1433
1509
  security: [
1434
1510
  {
1435
1511
  name: 'Authorization',
@@ -1443,10 +1519,11 @@ export const getElectionAnswer = <ThrowOnError extends boolean = false>(options:
1443
1519
 
1444
1520
  /**
1445
1521
  * Download the audit trail for a negotiation as a Json
1522
+ *
1446
1523
  * Download the audit trail for a negotiation as a Json.
1447
1524
  */
1448
- export const createAuditTrailJson = <ThrowOnError extends boolean = false>(options: Options<CreateAuditTrailJson_Data, ThrowOnError>) => {
1449
- return (options.client ?? _heyApiClient).get<CreateAuditTrailJson_Response, unknown, ThrowOnError>({
1525
+ export const createAuditTrailJson = <ThrowOnError extends boolean = false>(options: Options<createAuditTrailJsonData, ThrowOnError>) => {
1526
+ return (options.client ?? client).get<createAuditTrailJsonResponses, unknown, ThrowOnError>({
1450
1527
  security: [
1451
1528
  {
1452
1529
  name: 'Authorization',
@@ -1460,10 +1537,11 @@ export const createAuditTrailJson = <ThrowOnError extends boolean = false>(optio
1460
1537
 
1461
1538
  /**
1462
1539
  * Updates the provided negotiations with their corresponding deltas
1540
+ *
1463
1541
  * Updates the provided negotiations with their corresponding deltas.
1464
1542
  */
1465
- export const updateNegotiationsToMatch = <ThrowOnError extends boolean = false>(options: Options<UpdateNegotiationsToMatch_Data, ThrowOnError>) => {
1466
- return (options.client ?? _heyApiClient).put<unknown, unknown, ThrowOnError>({
1543
+ export const updateNegotiationsToMatch = <ThrowOnError extends boolean = false>(options: Options<updateNegotiationsToMatchData, ThrowOnError>) => {
1544
+ return (options.client ?? client).put<updateNegotiationsToMatchResponses, updateNegotiationsToMatchErrors, ThrowOnError>({
1467
1545
  security: [
1468
1546
  {
1469
1547
  name: 'Authorization',
@@ -1474,17 +1552,18 @@ export const updateNegotiationsToMatch = <ThrowOnError extends boolean = false>(
1474
1552
  ...options,
1475
1553
  headers: {
1476
1554
  'Content-Type': 'application/json',
1477
- ...options?.headers
1555
+ ...options.headers
1478
1556
  }
1479
1557
  });
1480
1558
  };
1481
1559
 
1482
1560
  /**
1483
1561
  * View the approval history of a negotiation
1562
+ *
1484
1563
  * View the approval history of a negotiation. Includes document and election approval.
1485
1564
  */
1486
- export const getApprovalHistory = <ThrowOnError extends boolean = false>(options: Options<GetApprovalHistory_Data, ThrowOnError>) => {
1487
- return (options.client ?? _heyApiClient).get<GetApprovalHistory_Response, unknown, ThrowOnError>({
1565
+ export const getApprovalHistory = <ThrowOnError extends boolean = false>(options: Options<getApprovalHistoryData, ThrowOnError>) => {
1566
+ return (options.client ?? client).get<getApprovalHistoryResponses, unknown, ThrowOnError>({
1488
1567
  security: [
1489
1568
  {
1490
1569
  name: 'Authorization',
@@ -1498,10 +1577,11 @@ export const getApprovalHistory = <ThrowOnError extends boolean = false>(options
1498
1577
 
1499
1578
  /**
1500
1579
  * Gets the count of bulk sets job for a Sub-Account
1580
+ *
1501
1581
  * Gets the count of bulk sets job for a Sub-Account.
1502
1582
  */
1503
- export const bulkSetsJobCount = <ThrowOnError extends boolean = false>(options: Options<BulkSetsJobCount_Data, ThrowOnError>) => {
1504
- return (options.client ?? _heyApiClient).get<BulkSetsJobCount_Response, unknown, ThrowOnError>({
1583
+ export const bulkSetsJobCount = <ThrowOnError extends boolean = false>(options: Options<bulkSetsJobCountData, ThrowOnError>) => {
1584
+ return (options.client ?? client).get<bulkSetsJobCountResponses, unknown, ThrowOnError>({
1505
1585
  security: [
1506
1586
  {
1507
1587
  name: 'Authorization',
@@ -1515,10 +1595,11 @@ export const bulkSetsJobCount = <ThrowOnError extends boolean = false>(options:
1515
1595
 
1516
1596
  /**
1517
1597
  * Set the inital election values (answers) of a negotiation.
1598
+ *
1518
1599
  * Set the inital election values (answers) of a negotiation.
1519
1600
  */
1520
- export const editDefaultAnswers = <ThrowOnError extends boolean = false>(options: Options<EditDefaultAnswers_Data, ThrowOnError>) => {
1521
- return (options.client ?? _heyApiClient).put<EditDefaultAnswers_Response, unknown, ThrowOnError>({
1601
+ export const editDefaultAnswers = <ThrowOnError extends boolean = false>(options: Options<editDefaultAnswersData, ThrowOnError>) => {
1602
+ return (options.client ?? client).put<editDefaultAnswersResponses, editDefaultAnswersErrors, ThrowOnError>({
1522
1603
  security: [
1523
1604
  {
1524
1605
  name: 'Authorization',
@@ -1529,17 +1610,18 @@ export const editDefaultAnswers = <ThrowOnError extends boolean = false>(options
1529
1610
  ...options,
1530
1611
  headers: {
1531
1612
  'Content-Type': 'application/json',
1532
- ...options?.headers
1613
+ ...options.headers
1533
1614
  }
1534
1615
  });
1535
1616
  };
1536
1617
 
1537
1618
  /**
1538
1619
  * Submit a preset for approval
1620
+ *
1539
1621
  * Submit the preset for approval.
1540
1622
  */
1541
- export const presetSendForApproval = <ThrowOnError extends boolean = false>(options: Options<PresetSendForApproval_Data, ThrowOnError>) => {
1542
- return (options.client ?? _heyApiClient).put<PresetSendForApproval_Response, unknown, ThrowOnError>({
1623
+ export const presetSendForApproval = <ThrowOnError extends boolean = false>(options: Options<presetSendForApprovalData, ThrowOnError>) => {
1624
+ return (options.client ?? client).put<presetSendForApprovalResponses, presetSendForApprovalErrors, ThrowOnError>({
1543
1625
  security: [
1544
1626
  {
1545
1627
  name: 'Authorization',
@@ -1553,10 +1635,11 @@ export const presetSendForApproval = <ThrowOnError extends boolean = false>(opti
1553
1635
 
1554
1636
  /**
1555
1637
  * Add a new approver to all broken approval rules for a negotiation
1638
+ *
1556
1639
  * Add a new approver to all broken approval rules for a negotiation.
1557
1640
  */
1558
- export const fixApprovalRules = <ThrowOnError extends boolean = false>(options: Options<FixApprovalRules_Data, ThrowOnError>) => {
1559
- return (options.client ?? _heyApiClient).put<FixApprovalRules_Response, unknown, ThrowOnError>({
1641
+ export const fixApprovalRules = <ThrowOnError extends boolean = false>(options: Options<fixApprovalRulesData, ThrowOnError>) => {
1642
+ return (options.client ?? client).put<fixApprovalRulesResponses, unknown, ThrowOnError>({
1560
1643
  security: [
1561
1644
  {
1562
1645
  name: 'Authorization',
@@ -1567,17 +1650,18 @@ export const fixApprovalRules = <ThrowOnError extends boolean = false>(options:
1567
1650
  ...options,
1568
1651
  headers: {
1569
1652
  'Content-Type': 'application/json',
1570
- ...options?.headers
1653
+ ...options.headers
1571
1654
  }
1572
1655
  });
1573
1656
  };
1574
1657
 
1575
1658
  /**
1576
1659
  * Lists publishers where pack subscriptions are held
1660
+ *
1577
1661
  * Lists publishers where pack subscriptions are held.
1578
1662
  */
1579
- export const getSubscribedPublishers = <ThrowOnError extends boolean = false>(options?: Options<GetSubscribedPublishers_Data, ThrowOnError>) => {
1580
- return (options?.client ?? _heyApiClient).get<GetSubscribedPublishers_Response, unknown, ThrowOnError>({
1663
+ export const getSubscribedPublishers = <ThrowOnError extends boolean = false>(options?: Options<getSubscribedPublishersData, ThrowOnError>) => {
1664
+ return (options?.client ?? client).get<getSubscribedPublishersResponses, unknown, ThrowOnError>({
1581
1665
  security: [
1582
1666
  {
1583
1667
  name: 'Authorization',
@@ -1591,10 +1675,11 @@ export const getSubscribedPublishers = <ThrowOnError extends boolean = false>(op
1591
1675
 
1592
1676
  /**
1593
1677
  * Send negotiations in a group to the counterparty
1678
+ *
1594
1679
  * Send negotiations in a group to the counterparty. It should be used for the initial send as well.
1595
1680
  */
1596
- export const sendGroupToCounterparty = <ThrowOnError extends boolean = false>(options: Options<SendGroupToCounterparty_Data, ThrowOnError>) => {
1597
- return (options.client ?? _heyApiClient).put<SendGroupToCounterparty_Response, unknown, ThrowOnError>({
1681
+ export const sendGroupToCounterparty = <ThrowOnError extends boolean = false>(options: Options<sendGroupToCounterpartyData, ThrowOnError>) => {
1682
+ return (options.client ?? client).put<sendGroupToCounterpartyResponses, sendGroupToCounterpartyErrors, ThrowOnError>({
1598
1683
  security: [
1599
1684
  {
1600
1685
  name: 'Authorization',
@@ -1605,17 +1690,18 @@ export const sendGroupToCounterparty = <ThrowOnError extends boolean = false>(op
1605
1690
  ...options,
1606
1691
  headers: {
1607
1692
  'Content-Type': 'application/json',
1608
- ...options?.headers
1693
+ ...options.headers
1609
1694
  }
1610
1695
  });
1611
1696
  };
1612
1697
 
1613
1698
  /**
1614
1699
  * Get the breaking changes for a negotiation using older version of a published document
1700
+ *
1615
1701
  * Get the breaking changes for a negotiation using older version of a published document.
1616
1702
  */
1617
- export const breakingChanges = <ThrowOnError extends boolean = false>(options: Options<BreakingChanges_Data, ThrowOnError>) => {
1618
- return (options.client ?? _heyApiClient).get<BreakingChanges_Response, unknown, ThrowOnError>({
1703
+ export const breakingChanges = <ThrowOnError extends boolean = false>(options: Options<breakingChangesData, ThrowOnError>) => {
1704
+ return (options.client ?? client).get<breakingChangesResponses, unknown, ThrowOnError>({
1619
1705
  security: [
1620
1706
  {
1621
1707
  name: 'Authorization',
@@ -1629,10 +1715,11 @@ export const breakingChanges = <ThrowOnError extends boolean = false>(options: O
1629
1715
 
1630
1716
  /**
1631
1717
  * View all answers for the major version numbers of the other party in a sided negotiation
1718
+ *
1632
1719
  * View all answers for the major version numbers of the other party in a sided negotiation.
1633
1720
  */
1634
- export const getOtherPartyAnswers = <ThrowOnError extends boolean = false>(options: Options<GetOtherPartyAnswers_Data, ThrowOnError>) => {
1635
- return (options.client ?? _heyApiClient).get<GetOtherPartyAnswers_Response, unknown, ThrowOnError>({
1721
+ export const getOtherPartyAnswers = <ThrowOnError extends boolean = false>(options: Options<getOtherPartyAnswersData, ThrowOnError>) => {
1722
+ return (options.client ?? client).get<getOtherPartyAnswersResponses, getOtherPartyAnswersErrors, ThrowOnError>({
1636
1723
  security: [
1637
1724
  {
1638
1725
  name: 'Authorization',
@@ -1646,10 +1733,11 @@ export const getOtherPartyAnswers = <ThrowOnError extends boolean = false>(optio
1646
1733
 
1647
1734
  /**
1648
1735
  * Override reject an election
1736
+ *
1649
1737
  * Override reject an election.
1650
1738
  */
1651
- export const overrideElectionRejection = <ThrowOnError extends boolean = false>(options: Options<OverrideElectionRejection_Data, ThrowOnError>) => {
1652
- return (options.client ?? _heyApiClient).put<OverrideElectionRejection_Response, unknown, ThrowOnError>({
1739
+ export const overrideElectionRejection = <ThrowOnError extends boolean = false>(options: Options<overrideElectionRejectionData, ThrowOnError>) => {
1740
+ return (options.client ?? client).put<overrideElectionRejectionResponses, overrideElectionRejectionErrors, ThrowOnError>({
1653
1741
  security: [
1654
1742
  {
1655
1743
  name: 'Authorization',
@@ -1660,17 +1748,18 @@ export const overrideElectionRejection = <ThrowOnError extends boolean = false>(
1660
1748
  ...options,
1661
1749
  headers: {
1662
1750
  'Content-Type': 'application/json',
1663
- ...options?.headers
1751
+ ...options.headers
1664
1752
  }
1665
1753
  });
1666
1754
  };
1667
1755
 
1668
1756
  /**
1669
1757
  * Override approve an election
1758
+ *
1670
1759
  * Override approve an election.
1671
1760
  */
1672
- export const overrideElectionApproval = <ThrowOnError extends boolean = false>(options: Options<OverrideElectionApproval_Data, ThrowOnError>) => {
1673
- return (options.client ?? _heyApiClient).put<OverrideElectionApproval_Response, unknown, ThrowOnError>({
1761
+ export const overrideElectionApproval = <ThrowOnError extends boolean = false>(options: Options<overrideElectionApprovalData, ThrowOnError>) => {
1762
+ return (options.client ?? client).put<overrideElectionApprovalResponses, overrideElectionApprovalErrors, ThrowOnError>({
1674
1763
  security: [
1675
1764
  {
1676
1765
  name: 'Authorization',
@@ -1681,17 +1770,18 @@ export const overrideElectionApproval = <ThrowOnError extends boolean = false>(o
1681
1770
  ...options,
1682
1771
  headers: {
1683
1772
  'Content-Type': 'application/json',
1684
- ...options?.headers
1773
+ ...options.headers
1685
1774
  }
1686
1775
  });
1687
1776
  };
1688
1777
 
1689
1778
  /**
1690
1779
  * View all version numbers of the negotiation in a Sub-Account with their creation times
1780
+ *
1691
1781
  * View all the version numbers of the negotiation in a Sub-Account with their respective creation times.
1692
1782
  */
1693
- export const getAllVersions = <ThrowOnError extends boolean = false>(options: Options<GetAllVersions_Data, ThrowOnError>) => {
1694
- return (options.client ?? _heyApiClient).get<GetAllVersions_Response, unknown, ThrowOnError>({
1783
+ export const getAllVersions = <ThrowOnError extends boolean = false>(options: Options<getAllVersionsData, ThrowOnError>) => {
1784
+ return (options.client ?? client).get<getAllVersionsResponses, getAllVersionsErrors, ThrowOnError>({
1695
1785
  security: [
1696
1786
  {
1697
1787
  name: 'Authorization',
@@ -1705,10 +1795,11 @@ export const getAllVersions = <ThrowOnError extends boolean = false>(options: Op
1705
1795
 
1706
1796
  /**
1707
1797
  * Get a list of all advisors that can be given access to the specified preset
1798
+ *
1708
1799
  * Get a list of all advisors that can be given access to the specified preset. Dont include advisors that already have access.
1709
1800
  */
1710
- export const listPotentialPresetAdvisors = <ThrowOnError extends boolean = false>(options: Options<ListPotentialPresetAdvisors_Data, ThrowOnError>) => {
1711
- return (options.client ?? _heyApiClient).get<ListPotentialPresetAdvisors_Response, unknown, ThrowOnError>({
1801
+ export const listPotentialPresetAdvisors = <ThrowOnError extends boolean = false>(options: Options<listPotentialPresetAdvisorsData, ThrowOnError>) => {
1802
+ return (options.client ?? client).get<listPotentialPresetAdvisorsResponses, unknown, ThrowOnError>({
1712
1803
  security: [
1713
1804
  {
1714
1805
  name: 'Authorization',
@@ -1722,10 +1813,11 @@ export const listPotentialPresetAdvisors = <ThrowOnError extends boolean = false
1722
1813
 
1723
1814
  /**
1724
1815
  * View CDM metadata for a negotiation
1816
+ *
1725
1817
  * View CDM metadata for a negotiation.
1726
1818
  */
1727
- export const getAsCdm = <ThrowOnError extends boolean = false>(options: Options<GetAsCdm_Data, ThrowOnError>) => {
1728
- return (options.client ?? _heyApiClient).get<GetAsCdm_Response, unknown, ThrowOnError>({
1819
+ export const getAsCDM = <ThrowOnError extends boolean = false>(options: Options<getAsCDMData, ThrowOnError>) => {
1820
+ return (options.client ?? client).get<getAsCDMResponses, getAsCDMErrors, ThrowOnError>({
1729
1821
  security: [
1730
1822
  {
1731
1823
  name: 'Authorization',
@@ -1739,10 +1831,11 @@ export const getAsCdm = <ThrowOnError extends boolean = false>(options: Options<
1739
1831
 
1740
1832
  /**
1741
1833
  * View the approval history of a negotiation, limited to a specific round
1834
+ *
1742
1835
  * View the approval history of a negotiation, limited to a specific round.
1743
1836
  */
1744
- export const getApprovalRound = <ThrowOnError extends boolean = false>(options: Options<GetApprovalRound_Data, ThrowOnError>) => {
1745
- return (options.client ?? _heyApiClient).get<GetApprovalRound_Response, unknown, ThrowOnError>({
1837
+ export const getApprovalRound = <ThrowOnError extends boolean = false>(options: Options<getApprovalRoundData, ThrowOnError>) => {
1838
+ return (options.client ?? client).get<getApprovalRoundResponses, unknown, ThrowOnError>({
1746
1839
  security: [
1747
1840
  {
1748
1841
  name: 'Authorization',
@@ -1756,10 +1849,11 @@ export const getApprovalRound = <ThrowOnError extends boolean = false>(options:
1756
1849
 
1757
1850
  /**
1758
1851
  * Gets previous active users in a negotiation. Doesn't gets the current active user in that list
1852
+ *
1759
1853
  * Gets previous active users in a negotiation. Doesn't gets the current active user in that list.
1760
1854
  */
1761
- export const getPreviousActiveUsers = <ThrowOnError extends boolean = false>(options: Options<GetPreviousActiveUsers_Data, ThrowOnError>) => {
1762
- return (options.client ?? _heyApiClient).get<GetPreviousActiveUsers_Response, unknown, ThrowOnError>({
1855
+ export const getPreviousActiveUsers = <ThrowOnError extends boolean = false>(options: Options<getPreviousActiveUsersData, ThrowOnError>) => {
1856
+ return (options.client ?? client).get<getPreviousActiveUsersResponses, getPreviousActiveUsersErrors, ThrowOnError>({
1763
1857
  security: [
1764
1858
  {
1765
1859
  name: 'Authorization',
@@ -1773,10 +1867,11 @@ export const getPreviousActiveUsers = <ThrowOnError extends boolean = false>(opt
1773
1867
 
1774
1868
  /**
1775
1869
  * Revoke preset access from Advisor
1870
+ *
1776
1871
  * Revoke existing advisor access over specified presets. All supplied presets are removed from existing list.
1777
1872
  */
1778
- export const revokePresetsAccess = <ThrowOnError extends boolean = false>(options: Options<RevokePresetsAccess_Data, ThrowOnError>) => {
1779
- return (options.client ?? _heyApiClient).delete<RevokePresetsAccess_Response, unknown, ThrowOnError>({
1873
+ export const revokePresetsAccess = <ThrowOnError extends boolean = false>(options: Options<revokePresetsAccessData, ThrowOnError>) => {
1874
+ return (options.client ?? client).delete<revokePresetsAccessResponses, unknown, ThrowOnError>({
1780
1875
  security: [
1781
1876
  {
1782
1877
  name: 'Authorization',
@@ -1787,17 +1882,18 @@ export const revokePresetsAccess = <ThrowOnError extends boolean = false>(option
1787
1882
  ...options,
1788
1883
  headers: {
1789
1884
  'Content-Type': 'application/json',
1790
- ...options?.headers
1885
+ ...options.headers
1791
1886
  }
1792
1887
  });
1793
1888
  };
1794
1889
 
1795
1890
  /**
1796
1891
  * Grant preset access to Advisor
1892
+ *
1797
1893
  * Grant existing advisor access over specified presets. All supplied presets are appended to existing list.
1798
1894
  */
1799
- export const grantPresetsAccess = <ThrowOnError extends boolean = false>(options: Options<GrantPresetsAccess_Data, ThrowOnError>) => {
1800
- return (options.client ?? _heyApiClient).post<GrantPresetsAccess_Response, unknown, ThrowOnError>({
1895
+ export const grantPresetsAccess = <ThrowOnError extends boolean = false>(options: Options<grantPresetsAccessData, ThrowOnError>) => {
1896
+ return (options.client ?? client).post<grantPresetsAccessResponses, unknown, ThrowOnError>({
1801
1897
  security: [
1802
1898
  {
1803
1899
  name: 'Authorization',
@@ -1808,17 +1904,18 @@ export const grantPresetsAccess = <ThrowOnError extends boolean = false>(options
1808
1904
  ...options,
1809
1905
  headers: {
1810
1906
  'Content-Type': 'application/json',
1811
- ...options?.headers
1907
+ ...options.headers
1812
1908
  }
1813
1909
  });
1814
1910
  };
1815
1911
 
1816
1912
  /**
1817
1913
  * Notify all named approvers in your subaccount that a specific draft negotiation exists
1914
+ *
1818
1915
  * Notify all named approvers in your subaccount that a specific draft negotiation exists.
1819
1916
  */
1820
- export const notifyOfDraft = <ThrowOnError extends boolean = false>(options: Options<NotifyOfDraft_Data, ThrowOnError>) => {
1821
- return (options.client ?? _heyApiClient).post<unknown, unknown, ThrowOnError>({
1917
+ export const notifyOfDraft = <ThrowOnError extends boolean = false>(options: Options<notifyOfDraftData, ThrowOnError>) => {
1918
+ return (options.client ?? client).post<notifyOfDraftResponses, notifyOfDraftErrors, ThrowOnError>({
1822
1919
  security: [
1823
1920
  {
1824
1921
  name: 'Authorization',
@@ -1832,10 +1929,11 @@ export const notifyOfDraft = <ThrowOnError extends boolean = false>(options: Opt
1832
1929
 
1833
1930
  /**
1834
1931
  * Remove specified negotiation watchers from existing watchers for a negotiation in a subaccount
1932
+ *
1835
1933
  * Remove specified negotiation watchers from existing watchers for a negotiation in a subaccount.
1836
1934
  */
1837
- export const removeWatchers = <ThrowOnError extends boolean = false>(options: Options<RemoveWatchers_Data, ThrowOnError>) => {
1838
- return (options.client ?? _heyApiClient).post<RemoveWatchers_Response, unknown, ThrowOnError>({
1935
+ export const removeWatchers = <ThrowOnError extends boolean = false>(options: Options<removeWatchersData, ThrowOnError>) => {
1936
+ return (options.client ?? client).post<removeWatchersResponses, removeWatchersErrors, ThrowOnError>({
1839
1937
  security: [
1840
1938
  {
1841
1939
  name: 'Authorization',
@@ -1846,17 +1944,18 @@ export const removeWatchers = <ThrowOnError extends boolean = false>(options: Op
1846
1944
  ...options,
1847
1945
  headers: {
1848
1946
  'Content-Type': 'application/json',
1849
- ...options?.headers
1947
+ ...options.headers
1850
1948
  }
1851
1949
  });
1852
1950
  };
1853
1951
 
1854
1952
  /**
1855
1953
  * View a negotiation from a specific Sub-Account
1954
+ *
1856
1955
  * View a negotiation from a specific Sub-Account.
1857
1956
  */
1858
- export const getNegotiation = <ThrowOnError extends boolean = false>(options: Options<GetNegotiation_Data, ThrowOnError>) => {
1859
- return (options.client ?? _heyApiClient).get<GetNegotiation_Response, unknown, ThrowOnError>({
1957
+ export const getNegotiation = <ThrowOnError extends boolean = false>(options: Options<getNegotiationData, ThrowOnError>) => {
1958
+ return (options.client ?? client).get<getNegotiationResponses, unknown, ThrowOnError>({
1860
1959
  security: [
1861
1960
  {
1862
1961
  name: 'Authorization',
@@ -1870,10 +1969,11 @@ export const getNegotiation = <ThrowOnError extends boolean = false>(options: Op
1870
1969
 
1871
1970
  /**
1872
1971
  * Update metadata for a preset
1972
+ *
1873
1973
  * Update metadata for a preset.
1874
1974
  */
1875
- export const updateMetadata = <ThrowOnError extends boolean = false>(options: Options<UpdateMetadata_Data, ThrowOnError>) => {
1876
- return (options.client ?? _heyApiClient).put<UpdateMetadata_Response, unknown, ThrowOnError>({
1975
+ export const updateMetadata = <ThrowOnError extends boolean = false>(options: Options<updateMetadataData, ThrowOnError>) => {
1976
+ return (options.client ?? client).put<updateMetadataResponses, updateMetadataErrors, ThrowOnError>({
1877
1977
  security: [
1878
1978
  {
1879
1979
  name: 'Authorization',
@@ -1884,17 +1984,18 @@ export const updateMetadata = <ThrowOnError extends boolean = false>(options: Op
1884
1984
  ...options,
1885
1985
  headers: {
1886
1986
  'Content-Type': 'application/json',
1887
- ...options?.headers
1987
+ ...options.headers
1888
1988
  }
1889
1989
  });
1890
1990
  };
1891
1991
 
1892
1992
  /**
1893
1993
  * View election data for all executed negotiations in a Sub-Account
1994
+ *
1894
1995
  * View election data for all executed negotiations in a Sub-Account.
1895
1996
  */
1896
- export const getDownloadExecutedNegotiationsAsExcel = <ThrowOnError extends boolean = false>(options: Options<GetDownloadExecutedNegotiationsAsExcel_Data, ThrowOnError>) => {
1897
- return (options.client ?? _heyApiClient).get<GetDownloadExecutedNegotiationsAsExcel_Response, unknown, ThrowOnError>({
1997
+ export const getDownloadExecutedNegotiationsAsExcel = <ThrowOnError extends boolean = false>(options: Options<getDownloadExecutedNegotiationsAsExcelData, ThrowOnError>) => {
1998
+ return (options.client ?? client).get<getDownloadExecutedNegotiationsAsExcelResponses, getDownloadExecutedNegotiationsAsExcelErrors, ThrowOnError>({
1898
1999
  security: [
1899
2000
  {
1900
2001
  name: 'Authorization',
@@ -1908,10 +2009,11 @@ export const getDownloadExecutedNegotiationsAsExcel = <ThrowOnError extends bool
1908
2009
 
1909
2010
  /**
1910
2011
  * Generate report for all executed negotiations in a Sub-Account and send the download email
2012
+ *
1911
2013
  * Generate report for all executed negotiations in a Sub-Account and send the download email.
1912
2014
  */
1913
- export const generateExecutedNegotiationsReportAsExcel = <ThrowOnError extends boolean = false>(options: Options<GenerateExecutedNegotiationsReportAsExcel_Data, ThrowOnError>) => {
1914
- return (options.client ?? _heyApiClient).post<unknown, unknown, ThrowOnError>({
2015
+ export const generateExecutedNegotiationsReportAsExcel = <ThrowOnError extends boolean = false>(options: Options<generateExecutedNegotiationsReportAsExcelData, ThrowOnError>) => {
2016
+ return (options.client ?? client).post<generateExecutedNegotiationsReportAsExcelResponses, generateExecutedNegotiationsReportAsExcelErrors, ThrowOnError>({
1915
2017
  security: [
1916
2018
  {
1917
2019
  name: 'Authorization',
@@ -1922,17 +2024,18 @@ export const generateExecutedNegotiationsReportAsExcel = <ThrowOnError extends b
1922
2024
  ...options,
1923
2025
  headers: {
1924
2026
  'Content-Type': 'application/json',
1925
- ...options?.headers
2027
+ ...options.headers
1926
2028
  }
1927
2029
  });
1928
2030
  };
1929
2031
 
1930
2032
  /**
1931
2033
  * Delete a signed signature page for a specific party
2034
+ *
1932
2035
  * Delete a signed signature page for a specific party.
1933
2036
  */
1934
- export const deleteSignedSignaturePageForParty = <ThrowOnError extends boolean = false>(options: Options<DeleteSignedSignaturePageForParty_Data, ThrowOnError>) => {
1935
- return (options.client ?? _heyApiClient).delete<unknown, unknown, ThrowOnError>({
2037
+ export const deleteSignedSignaturePageForParty = <ThrowOnError extends boolean = false>(options: Options<deleteSignedSignaturePageForPartyData, ThrowOnError>) => {
2038
+ return (options.client ?? client).delete<deleteSignedSignaturePageForPartyResponses, unknown, ThrowOnError>({
1936
2039
  security: [
1937
2040
  {
1938
2041
  name: 'Authorization',
@@ -1946,10 +2049,11 @@ export const deleteSignedSignaturePageForParty = <ThrowOnError extends boolean =
1946
2049
 
1947
2050
  /**
1948
2051
  * Upload a signed signature page for a specific party as a PDF
2052
+ *
1949
2053
  * Upload a signed signature page for a specific party as a PDF.
1950
2054
  */
1951
- export const setSignedSignaturePageForParty = <ThrowOnError extends boolean = false>(options: Options<SetSignedSignaturePageForParty_Data, ThrowOnError>) => {
1952
- return (options.client ?? _heyApiClient).put<SetSignedSignaturePageForParty_Response, unknown, ThrowOnError>({
2055
+ export const setSignedSignaturePageForParty = <ThrowOnError extends boolean = false>(options: Options<setSignedSignaturePageForPartyData, ThrowOnError>) => {
2056
+ return (options.client ?? client).put<setSignedSignaturePageForPartyResponses, unknown, ThrowOnError>({
1953
2057
  security: [
1954
2058
  {
1955
2059
  name: 'Authorization',
@@ -1960,17 +2064,18 @@ export const setSignedSignaturePageForParty = <ThrowOnError extends boolean = fa
1960
2064
  ...options,
1961
2065
  headers: {
1962
2066
  'Content-Type': 'application/pdf',
1963
- ...options?.headers
2067
+ ...options.headers
1964
2068
  }
1965
2069
  });
1966
2070
  };
1967
2071
 
1968
2072
  /**
1969
2073
  * Validate a potential negotiation group name, and display alternatives if it is taken
2074
+ *
1970
2075
  * Validate a potential negotiation group name, and display alternatives if it is taken.
1971
2076
  */
1972
- export const suggestGroupName = <ThrowOnError extends boolean = false>(options: Options<SuggestGroupName_Data, ThrowOnError>) => {
1973
- return (options.client ?? _heyApiClient).get<SuggestGroupName_Response, unknown, ThrowOnError>({
2077
+ export const suggestGroupName = <ThrowOnError extends boolean = false>(options: Options<suggestGroupNameData, ThrowOnError>) => {
2078
+ return (options.client ?? client).get<suggestGroupNameResponses, unknown, ThrowOnError>({
1974
2079
  security: [
1975
2080
  {
1976
2081
  name: 'Authorization',
@@ -1984,10 +2089,11 @@ export const suggestGroupName = <ThrowOnError extends boolean = false>(options:
1984
2089
 
1985
2090
  /**
1986
2091
  * Mark activity timeline events associated with a negotiation and requesting user as read
2092
+ *
1987
2093
  * Mark activity timeline events associated with a negotiation and requesting user as read.
1988
2094
  */
1989
- export const markActivityEventsAsViewed = <ThrowOnError extends boolean = false>(options: Options<MarkActivityEventsAsViewed_Data, ThrowOnError>) => {
1990
- return (options.client ?? _heyApiClient).put<unknown, unknown, ThrowOnError>({
2095
+ export const markActivityEventsAsViewed = <ThrowOnError extends boolean = false>(options: Options<markActivityEventsAsViewedData, ThrowOnError>) => {
2096
+ return (options.client ?? client).put<markActivityEventsAsViewedResponses, markActivityEventsAsViewedErrors, ThrowOnError>({
1991
2097
  security: [
1992
2098
  {
1993
2099
  name: 'Authorization',
@@ -1998,17 +2104,18 @@ export const markActivityEventsAsViewed = <ThrowOnError extends boolean = false>
1998
2104
  ...options,
1999
2105
  headers: {
2000
2106
  'Content-Type': 'application/json',
2001
- ...options?.headers
2107
+ ...options.headers
2002
2108
  }
2003
2109
  });
2004
2110
  };
2005
2111
 
2006
2112
  /**
2007
2113
  * Cancel extraction that is in progress or in the review stage
2114
+ *
2008
2115
  * Cancel extraction that is in progress or in the review stage.
2009
2116
  */
2010
- export const cancelExtraction = <ThrowOnError extends boolean = false>(options: Options<CancelExtraction_Data, ThrowOnError>) => {
2011
- return (options.client ?? _heyApiClient).put<CancelExtraction_Response, unknown, ThrowOnError>({
2117
+ export const cancelExtraction = <ThrowOnError extends boolean = false>(options: Options<cancelExtractionData, ThrowOnError>) => {
2118
+ return (options.client ?? client).put<cancelExtractionResponses, cancelExtractionErrors, ThrowOnError>({
2012
2119
  security: [
2013
2120
  {
2014
2121
  name: 'Authorization',
@@ -2022,10 +2129,11 @@ export const cancelExtraction = <ThrowOnError extends boolean = false>(options:
2022
2129
 
2023
2130
  /**
2024
2131
  * Patch the election values (answers) of a negotiation
2132
+ *
2025
2133
  * Patch the election values (answers) of a negotiation.
2026
2134
  */
2027
- export const patchAnswers = <ThrowOnError extends boolean = false>(options: Options<PatchAnswers_Data, ThrowOnError>) => {
2028
- return (options.client ?? _heyApiClient).patch<PatchAnswers_Response, unknown, ThrowOnError>({
2135
+ export const patchAnswers = <ThrowOnError extends boolean = false>(options: Options<patchAnswersData, ThrowOnError>) => {
2136
+ return (options.client ?? client).patch<patchAnswersResponses, patchAnswersErrors, ThrowOnError>({
2029
2137
  security: [
2030
2138
  {
2031
2139
  name: 'Authorization',
@@ -2036,17 +2144,18 @@ export const patchAnswers = <ThrowOnError extends boolean = false>(options: Opti
2036
2144
  ...options,
2037
2145
  headers: {
2038
2146
  'Content-Type': 'application/json-patch+json',
2039
- ...options?.headers
2147
+ ...options.headers
2040
2148
  }
2041
2149
  });
2042
2150
  };
2043
2151
 
2044
2152
  /**
2045
2153
  * Overwrite the election values (answers) of a negotiation
2154
+ *
2046
2155
  * Overwrite the election values (answers) of a negotiation.
2047
2156
  */
2048
- export const editAnswers = <ThrowOnError extends boolean = false>(options: Options<EditAnswers_Data, ThrowOnError>) => {
2049
- return (options.client ?? _heyApiClient).put<EditAnswers_Response, unknown, ThrowOnError>({
2157
+ export const editAnswers = <ThrowOnError extends boolean = false>(options: Options<editAnswersData, ThrowOnError>) => {
2158
+ return (options.client ?? client).put<editAnswersResponses, editAnswersErrors, ThrowOnError>({
2050
2159
  security: [
2051
2160
  {
2052
2161
  name: 'Authorization',
@@ -2057,17 +2166,18 @@ export const editAnswers = <ThrowOnError extends boolean = false>(options: Optio
2057
2166
  ...options,
2058
2167
  headers: {
2059
2168
  'Content-Type': 'application/json',
2060
- ...options?.headers
2169
+ ...options.headers
2061
2170
  }
2062
2171
  });
2063
2172
  };
2064
2173
 
2065
2174
  /**
2066
2175
  * View all comments associated with a negotiation
2176
+ *
2067
2177
  * View all comments associated with a negotiation.
2068
2178
  */
2069
- export const getComments = <ThrowOnError extends boolean = false>(options: Options<GetComments_Data, ThrowOnError>) => {
2070
- return (options.client ?? _heyApiClient).get<unknown, unknown, ThrowOnError>({
2179
+ export const getComments = <ThrowOnError extends boolean = false>(options: Options<getCommentsData, ThrowOnError>) => {
2180
+ return (options.client ?? client).get<getCommentsResponses, getCommentsErrors, ThrowOnError>({
2071
2181
  security: [
2072
2182
  {
2073
2183
  name: 'Authorization',
@@ -2081,10 +2191,11 @@ export const getComments = <ThrowOnError extends boolean = false>(options: Optio
2081
2191
 
2082
2192
  /**
2083
2193
  * Trigger email to contact the Super Manager and Manager to prompt them to assign a new approver
2194
+ *
2084
2195
  * Contact Super Manager and Manager to prompt them to assign a new approver.
2085
2196
  */
2086
- export const contactForNewApprover = <ThrowOnError extends boolean = false>(options: Options<ContactForNewApprover_Data, ThrowOnError>) => {
2087
- return (options.client ?? _heyApiClient).post<unknown, unknown, ThrowOnError>({
2197
+ export const contactForNewApprover = <ThrowOnError extends boolean = false>(options: Options<contactForNewApproverData, ThrowOnError>) => {
2198
+ return (options.client ?? client).post<contactForNewApproverResponses, contactForNewApproverErrors, ThrowOnError>({
2088
2199
  security: [
2089
2200
  {
2090
2201
  name: 'Authorization',
@@ -2098,10 +2209,11 @@ export const contactForNewApprover = <ThrowOnError extends boolean = false>(opti
2098
2209
 
2099
2210
  /**
2100
2211
  * Get drafting notes flag for documents
2212
+ *
2101
2213
  * Get drafting notes flag for documents.
2102
2214
  */
2103
- export const getDraftingNotesDocument = <ThrowOnError extends boolean = false>(options: Options<GetDraftingNotesDocument_Data, ThrowOnError>) => {
2104
- return (options.client ?? _heyApiClient).get<GetDraftingNotesDocument_Response, unknown, ThrowOnError>({
2215
+ export const getDraftingNotesDocument = <ThrowOnError extends boolean = false>(options: Options<getDraftingNotesDocumentData, ThrowOnError>) => {
2216
+ return (options.client ?? client).get<getDraftingNotesDocumentResponses, unknown, ThrowOnError>({
2105
2217
  security: [
2106
2218
  {
2107
2219
  name: 'Authorization',
@@ -2115,10 +2227,11 @@ export const getDraftingNotesDocument = <ThrowOnError extends boolean = false>(o
2115
2227
 
2116
2228
  /**
2117
2229
  * Accept the fork position for all elections of a negotiation at the specified version
2230
+ *
2118
2231
  * Accept the fork position for all elections of a negotiation at the specified version.
2119
2232
  */
2120
- export const acceptAllPositionsFromFork = <ThrowOnError extends boolean = false>(options: Options<AcceptAllPositionsFromFork_Data, ThrowOnError>) => {
2121
- return (options.client ?? _heyApiClient).put<AcceptAllPositionsFromFork_Response, unknown, ThrowOnError>({
2233
+ export const acceptAllPositionsFromFork = <ThrowOnError extends boolean = false>(options: Options<acceptAllPositionsFromForkData, ThrowOnError>) => {
2234
+ return (options.client ?? client).put<acceptAllPositionsFromForkResponses, acceptAllPositionsFromForkErrors, ThrowOnError>({
2122
2235
  security: [
2123
2236
  {
2124
2237
  name: 'Authorization',
@@ -2132,10 +2245,11 @@ export const acceptAllPositionsFromFork = <ThrowOnError extends boolean = false>
2132
2245
 
2133
2246
  /**
2134
2247
  * Accept the preset position for all elections of a negotiation
2248
+ *
2135
2249
  * Accept the preset position for all elections of a negotiation.
2136
2250
  */
2137
- export const acceptAllPresetPositions = <ThrowOnError extends boolean = false>(options: Options<AcceptAllPresetPositions_Data, ThrowOnError>) => {
2138
- return (options.client ?? _heyApiClient).put<AcceptAllPresetPositions_Response, unknown, ThrowOnError>({
2251
+ export const acceptAllPresetPositions = <ThrowOnError extends boolean = false>(options: Options<acceptAllPresetPositionsData, ThrowOnError>) => {
2252
+ return (options.client ?? client).put<acceptAllPresetPositionsResponses, acceptAllPresetPositionsErrors, ThrowOnError>({
2139
2253
  security: [
2140
2254
  {
2141
2255
  name: 'Authorization',
@@ -2149,10 +2263,11 @@ export const acceptAllPresetPositions = <ThrowOnError extends boolean = false>(o
2149
2263
 
2150
2264
  /**
2151
2265
  * Send a chaser email to your counterparty to remind them a response is required
2266
+ *
2152
2267
  * Send a chaser email to your counterparty to remind them a response is required.
2153
2268
  */
2154
- export const sendChaserEmail = <ThrowOnError extends boolean = false>(options: Options<SendChaserEmail_Data, ThrowOnError>) => {
2155
- return (options.client ?? _heyApiClient).post<unknown, unknown, ThrowOnError>({
2269
+ export const sendChaserEmail = <ThrowOnError extends boolean = false>(options: Options<sendChaserEmailData, ThrowOnError>) => {
2270
+ return (options.client ?? client).post<sendChaserEmailResponses, sendChaserEmailErrors, ThrowOnError>({
2156
2271
  security: [
2157
2272
  {
2158
2273
  name: 'Authorization',
@@ -2166,10 +2281,11 @@ export const sendChaserEmail = <ThrowOnError extends boolean = false>(options: O
2166
2281
 
2167
2282
  /**
2168
2283
  * Download signing pack zip including execution version of the document and signature pages for all parties as PDFs
2284
+ *
2169
2285
  * Download signing pack zip including execution version of the document and signature pages for all parties as PDFs.
2170
2286
  */
2171
- export const createSigningPack = <ThrowOnError extends boolean = false>(options: Options<CreateSigningPack_Data, ThrowOnError>) => {
2172
- return (options.client ?? _heyApiClient).get<CreateSigningPack_Response, unknown, ThrowOnError>({
2287
+ export const createSigningPack = <ThrowOnError extends boolean = false>(options: Options<createSigningPackData, ThrowOnError>) => {
2288
+ return (options.client ?? client).get<createSigningPackResponses, unknown, ThrowOnError>({
2173
2289
  security: [
2174
2290
  {
2175
2291
  name: 'Authorization',
@@ -2183,10 +2299,11 @@ export const createSigningPack = <ThrowOnError extends boolean = false>(options:
2183
2299
 
2184
2300
  /**
2185
2301
  * Gets the names of the groups within a Sub-Account
2302
+ *
2186
2303
  * Gets the names of the groups within a Sub-Account.
2187
2304
  */
2188
- export const getGroupNames = <ThrowOnError extends boolean = false>(options: Options<GetGroupNames_Data, ThrowOnError>) => {
2189
- return (options.client ?? _heyApiClient).get<GetGroupNames_Response, unknown, ThrowOnError>({
2305
+ export const getGroupNames = <ThrowOnError extends boolean = false>(options: Options<getGroupNamesData, ThrowOnError>) => {
2306
+ return (options.client ?? client).get<getGroupNamesResponses, unknown, ThrowOnError>({
2190
2307
  security: [
2191
2308
  {
2192
2309
  name: 'Authorization',
@@ -2200,10 +2317,11 @@ export const getGroupNames = <ThrowOnError extends boolean = false>(options: Opt
2200
2317
 
2201
2318
  /**
2202
2319
  * Create a negotiation group
2320
+ *
2203
2321
  * Create a negotiation group.
2204
2322
  */
2205
- export const createGroup = <ThrowOnError extends boolean = false>(options: Options<CreateGroup_Data, ThrowOnError>) => {
2206
- return (options.client ?? _heyApiClient).post<CreateGroup_Response, unknown, ThrowOnError>({
2323
+ export const createGroup = <ThrowOnError extends boolean = false>(options: Options<createGroupData, ThrowOnError>) => {
2324
+ return (options.client ?? client).post<createGroupResponses, unknown, ThrowOnError>({
2207
2325
  security: [
2208
2326
  {
2209
2327
  name: 'Authorization',
@@ -2214,17 +2332,18 @@ export const createGroup = <ThrowOnError extends boolean = false>(options: Optio
2214
2332
  ...options,
2215
2333
  headers: {
2216
2334
  'Content-Type': 'application/json',
2217
- ...options?.headers
2335
+ ...options.headers
2218
2336
  }
2219
2337
  });
2220
2338
  };
2221
2339
 
2222
2340
  /**
2223
2341
  * Get the summary of negotiations files present for a negotiation
2342
+ *
2224
2343
  * Get the summary of negotiations files present for a negotiation.
2225
2344
  */
2226
- export const getNegotiationFilesSummary = <ThrowOnError extends boolean = false>(options: Options<GetNegotiationFilesSummary_Data, ThrowOnError>) => {
2227
- return (options.client ?? _heyApiClient).get<GetNegotiationFilesSummary_Response, unknown, ThrowOnError>({
2345
+ export const getNegotiationFilesSummary = <ThrowOnError extends boolean = false>(options: Options<getNegotiationFilesSummaryData, ThrowOnError>) => {
2346
+ return (options.client ?? client).get<getNegotiationFilesSummaryResponses, getNegotiationFilesSummaryErrors, ThrowOnError>({
2228
2347
  security: [
2229
2348
  {
2230
2349
  name: 'Authorization',
@@ -2238,10 +2357,11 @@ export const getNegotiationFilesSummary = <ThrowOnError extends boolean = false>
2238
2357
 
2239
2358
  /**
2240
2359
  * View a list of the active users in a Sub-Account
2360
+ *
2241
2361
  * View a list of the active users in a Sub-Account.
2242
2362
  */
2243
- export const getUsers = <ThrowOnError extends boolean = false>(options: Options<GetUsers_Data, ThrowOnError>) => {
2244
- return (options.client ?? _heyApiClient).get<GetUsers_Response, unknown, ThrowOnError>({
2363
+ export const getUsers = <ThrowOnError extends boolean = false>(options: Options<getUsersData, ThrowOnError>) => {
2364
+ return (options.client ?? client).get<getUsersResponses, getUsersErrors, ThrowOnError>({
2245
2365
  security: [
2246
2366
  {
2247
2367
  name: 'Authorization',
@@ -2255,10 +2375,11 @@ export const getUsers = <ThrowOnError extends boolean = false>(options: Options<
2255
2375
 
2256
2376
  /**
2257
2377
  * View information about your account
2378
+ *
2258
2379
  * View information about your account.
2259
2380
  */
2260
- export const getSettings = <ThrowOnError extends boolean = false>(options?: Options<GetSettings_Data, ThrowOnError>) => {
2261
- return (options?.client ?? _heyApiClient).get<GetSettings_Response, unknown, ThrowOnError>({
2381
+ export const getSettings = <ThrowOnError extends boolean = false>(options?: Options<getSettingsData, ThrowOnError>) => {
2382
+ return (options?.client ?? client).get<getSettingsResponses, getSettingsErrors, ThrowOnError>({
2262
2383
  security: [
2263
2384
  {
2264
2385
  name: 'Authorization',
@@ -2272,10 +2393,11 @@ export const getSettings = <ThrowOnError extends boolean = false>(options?: Opti
2272
2393
 
2273
2394
  /**
2274
2395
  * Confirm that you are happy for this negotiation to go to agreed form
2396
+ *
2275
2397
  * Confirm that you are happy for this negotiation to go to agreed form.
2276
2398
  */
2277
- export const confirm = <ThrowOnError extends boolean = false>(options: Options<Confirm_Data, ThrowOnError>) => {
2278
- return (options.client ?? _heyApiClient).put<Confirm_Response, unknown, ThrowOnError>({
2399
+ export const confirm = <ThrowOnError extends boolean = false>(options: Options<confirmData, ThrowOnError>) => {
2400
+ return (options.client ?? client).put<confirmResponses, confirmErrors, ThrowOnError>({
2279
2401
  security: [
2280
2402
  {
2281
2403
  name: 'Authorization',
@@ -2289,10 +2411,11 @@ export const confirm = <ThrowOnError extends boolean = false>(options: Options<C
2289
2411
 
2290
2412
  /**
2291
2413
  * Sends the approval reminder email to pending approvers in a quorum for the document
2414
+ *
2292
2415
  * Sends the approval reminder email to pending approvers in a quorum for the document.
2293
2416
  */
2294
- export const sendDocumentApprovalReminder = <ThrowOnError extends boolean = false>(options: Options<SendDocumentApprovalReminder_Data, ThrowOnError>) => {
2295
- return (options.client ?? _heyApiClient).put<unknown, unknown, ThrowOnError>({
2417
+ export const sendDocumentApprovalReminder = <ThrowOnError extends boolean = false>(options: Options<sendDocumentApprovalReminderData, ThrowOnError>) => {
2418
+ return (options.client ?? client).put<sendDocumentApprovalReminderResponses, sendDocumentApprovalReminderErrors, ThrowOnError>({
2296
2419
  security: [
2297
2420
  {
2298
2421
  name: 'Authorization',
@@ -2306,10 +2429,11 @@ export const sendDocumentApprovalReminder = <ThrowOnError extends boolean = fals
2306
2429
 
2307
2430
  /**
2308
2431
  * View aggregate statistics for a Sub-Account
2432
+ *
2309
2433
  * View aggregate statistics for a Sub-Account.
2310
2434
  */
2311
- export const getStatistics = <ThrowOnError extends boolean = false>(options: Options<GetStatistics_Data, ThrowOnError>) => {
2312
- return (options.client ?? _heyApiClient).get<GetStatistics_Response, unknown, ThrowOnError>({
2435
+ export const getStatistics = <ThrowOnError extends boolean = false>(options: Options<getStatisticsData, ThrowOnError>) => {
2436
+ return (options.client ?? client).get<getStatisticsResponses, getStatisticsErrors, ThrowOnError>({
2313
2437
  security: [
2314
2438
  {
2315
2439
  name: 'Authorization',
@@ -2323,10 +2447,11 @@ export const getStatistics = <ThrowOnError extends boolean = false>(options: Opt
2323
2447
 
2324
2448
  /**
2325
2449
  * Perform a party swap for a preset
2450
+ *
2326
2451
  * Perform a party swap for a preset.
2327
2452
  */
2328
- export const presetSwapParties = <ThrowOnError extends boolean = false>(options: Options<PresetSwapParties_Data, ThrowOnError>) => {
2329
- return (options.client ?? _heyApiClient).put<PresetSwapParties_Response, unknown, ThrowOnError>({
2453
+ export const presetSwapParties = <ThrowOnError extends boolean = false>(options: Options<presetSwapPartiesData, ThrowOnError>) => {
2454
+ return (options.client ?? client).put<presetSwapPartiesResponses, presetSwapPartiesErrors, ThrowOnError>({
2330
2455
  security: [
2331
2456
  {
2332
2457
  name: 'Authorization',
@@ -2340,10 +2465,11 @@ export const presetSwapParties = <ThrowOnError extends boolean = false>(options:
2340
2465
 
2341
2466
  /**
2342
2467
  * Approve the final document before working towards Agreed form
2468
+ *
2343
2469
  * Approve the final document before working towards Agreed form.
2344
2470
  */
2345
- export const approveFinalDocument = <ThrowOnError extends boolean = false>(options: Options<ApproveFinalDocument_Data, ThrowOnError>) => {
2346
- return (options.client ?? _heyApiClient).put<unknown, unknown, ThrowOnError>({
2471
+ export const approveFinalDocument = <ThrowOnError extends boolean = false>(options: Options<approveFinalDocumentData, ThrowOnError>) => {
2472
+ return (options.client ?? client).put<approveFinalDocumentResponses, approveFinalDocumentErrors, ThrowOnError>({
2347
2473
  security: [
2348
2474
  {
2349
2475
  name: 'Authorization',
@@ -2354,17 +2480,18 @@ export const approveFinalDocument = <ThrowOnError extends boolean = false>(optio
2354
2480
  ...options,
2355
2481
  headers: {
2356
2482
  'Content-Type': 'application/json',
2357
- ...options?.headers
2483
+ ...options.headers
2358
2484
  }
2359
2485
  });
2360
2486
  };
2361
2487
 
2362
2488
  /**
2363
2489
  * Render a preview of the counterparty's document template using the current answers
2490
+ *
2364
2491
  * Render a preview of the counterparty's document template using the current answers.
2365
2492
  */
2366
- export const negotiationRenderCounterpartyTemplate = <ThrowOnError extends boolean = false>(options: Options<NegotiationRenderCounterpartyTemplate_Data, ThrowOnError>) => {
2367
- return (options.client ?? _heyApiClient).get<NegotiationRenderCounterpartyTemplate_Response, unknown, ThrowOnError>({
2493
+ export const negotiationRenderCounterpartyTemplate = <ThrowOnError extends boolean = false>(options: Options<negotiationRenderCounterpartyTemplateData, ThrowOnError>) => {
2494
+ return (options.client ?? client).get<negotiationRenderCounterpartyTemplateResponses, negotiationRenderCounterpartyTemplateErrors, ThrowOnError>({
2368
2495
  security: [
2369
2496
  {
2370
2497
  name: 'Authorization',
@@ -2378,10 +2505,11 @@ export const negotiationRenderCounterpartyTemplate = <ThrowOnError extends boole
2378
2505
 
2379
2506
  /**
2380
2507
  * Overwrite the extraction election values (answers) of a negotiation
2508
+ *
2381
2509
  * Overwrite the extraction election values (answers) of a negotiation.
2382
2510
  */
2383
- export const resetUserAnswers = <ThrowOnError extends boolean = false>(options: Options<ResetUserAnswers_Data, ThrowOnError>) => {
2384
- return (options.client ?? _heyApiClient).post<ResetUserAnswers_Response, unknown, ThrowOnError>({
2511
+ export const resetUserAnswers = <ThrowOnError extends boolean = false>(options: Options<resetUserAnswersData, ThrowOnError>) => {
2512
+ return (options.client ?? client).post<resetUserAnswersResponses, resetUserAnswersErrors, ThrowOnError>({
2385
2513
  security: [
2386
2514
  {
2387
2515
  name: 'Authorization',
@@ -2392,17 +2520,18 @@ export const resetUserAnswers = <ThrowOnError extends boolean = false>(options:
2392
2520
  ...options,
2393
2521
  headers: {
2394
2522
  'Content-Type': 'application/json',
2395
- ...options?.headers
2523
+ ...options.headers
2396
2524
  }
2397
2525
  });
2398
2526
  };
2399
2527
 
2400
2528
  /**
2401
2529
  * Overwrite the extraction election values (answers) of a negotiation
2530
+ *
2402
2531
  * Overwrite the extraction election values (answers) of a negotiation.
2403
2532
  */
2404
- export const updateUserAnswers = <ThrowOnError extends boolean = false>(options: Options<UpdateUserAnswers_Data, ThrowOnError>) => {
2405
- return (options.client ?? _heyApiClient).put<UpdateUserAnswers_Response, unknown, ThrowOnError>({
2533
+ export const updateUserAnswers = <ThrowOnError extends boolean = false>(options: Options<updateUserAnswersData, ThrowOnError>) => {
2534
+ return (options.client ?? client).put<updateUserAnswersResponses, updateUserAnswersErrors, ThrowOnError>({
2406
2535
  security: [
2407
2536
  {
2408
2537
  name: 'Authorization',
@@ -2413,17 +2542,18 @@ export const updateUserAnswers = <ThrowOnError extends boolean = false>(options:
2413
2542
  ...options,
2414
2543
  headers: {
2415
2544
  'Content-Type': 'application/json',
2416
- ...options?.headers
2545
+ ...options.headers
2417
2546
  }
2418
2547
  });
2419
2548
  };
2420
2549
 
2421
2550
  /**
2422
2551
  * View all the major version numbers of the negotiation in a Sub-Account
2552
+ *
2423
2553
  * View all the major version numbers of the negotiation in a Sub-Account.
2424
2554
  */
2425
- export const getMajorVersions = <ThrowOnError extends boolean = false>(options: Options<GetMajorVersions_Data, ThrowOnError>) => {
2426
- return (options.client ?? _heyApiClient).get<GetMajorVersions_Response, unknown, ThrowOnError>({
2555
+ export const getMajorVersions = <ThrowOnError extends boolean = false>(options: Options<getMajorVersionsData, ThrowOnError>) => {
2556
+ return (options.client ?? client).get<getMajorVersionsResponses, getMajorVersionsErrors, ThrowOnError>({
2427
2557
  security: [
2428
2558
  {
2429
2559
  name: 'Authorization',
@@ -2437,10 +2567,11 @@ export const getMajorVersions = <ThrowOnError extends boolean = false>(options:
2437
2567
 
2438
2568
  /**
2439
2569
  * Delete a document election level drafting note for the specified note type. Fails if note doesn't exists
2570
+ *
2440
2571
  * Delete a document election level drafting note for the specified note type. Fails if note doesn't exists.
2441
2572
  */
2442
- export const deleteDocumentElectionDraftingNote = <ThrowOnError extends boolean = false>(options: Options<DeleteDocumentElectionDraftingNote_Data, ThrowOnError>) => {
2443
- return (options.client ?? _heyApiClient).delete<unknown, unknown, ThrowOnError>({
2573
+ export const deleteDocumentElectionDraftingNote = <ThrowOnError extends boolean = false>(options: Options<deleteDocumentElectionDraftingNoteData, ThrowOnError>) => {
2574
+ return (options.client ?? client).delete<deleteDocumentElectionDraftingNoteResponses, deleteDocumentElectionDraftingNoteErrors, ThrowOnError>({
2444
2575
  security: [
2445
2576
  {
2446
2577
  name: 'Authorization',
@@ -2454,10 +2585,11 @@ export const deleteDocumentElectionDraftingNote = <ThrowOnError extends boolean
2454
2585
 
2455
2586
  /**
2456
2587
  * Update a document election drafting note for the specified note type. Adds a new one if no note exists before
2588
+ *
2457
2589
  * Update a document election drafting note for the specified note type. Adds a new one if no note exists before.
2458
2590
  */
2459
- export const updateDocumentElectionDraftingNote = <ThrowOnError extends boolean = false>(options: Options<UpdateDocumentElectionDraftingNote_Data, ThrowOnError>) => {
2460
- return (options.client ?? _heyApiClient).put<UpdateDocumentElectionDraftingNote_Response, unknown, ThrowOnError>({
2591
+ export const updateDocumentElectionDraftingNote = <ThrowOnError extends boolean = false>(options: Options<updateDocumentElectionDraftingNoteData, ThrowOnError>) => {
2592
+ return (options.client ?? client).put<updateDocumentElectionDraftingNoteResponses, updateDocumentElectionDraftingNoteErrors, ThrowOnError>({
2461
2593
  security: [
2462
2594
  {
2463
2595
  name: 'Authorization',
@@ -2471,10 +2603,11 @@ export const updateDocumentElectionDraftingNote = <ThrowOnError extends boolean
2471
2603
 
2472
2604
  /**
2473
2605
  * Assign yourself to a negotiation
2606
+ *
2474
2607
  * Assign yourself to a negotiation.
2475
2608
  */
2476
- export const assignToMe = <ThrowOnError extends boolean = false>(options: Options<AssignToMe_Data, ThrowOnError>) => {
2477
- return (options.client ?? _heyApiClient).put<AssignToMe_Response, unknown, ThrowOnError>({
2609
+ export const assignToMe = <ThrowOnError extends boolean = false>(options: Options<assignToMeData, ThrowOnError>) => {
2610
+ return (options.client ?? client).put<assignToMeResponses, assignToMeErrors, ThrowOnError>({
2478
2611
  security: [
2479
2612
  {
2480
2613
  name: 'Authorization',
@@ -2488,10 +2621,11 @@ export const assignToMe = <ThrowOnError extends boolean = false>(options: Option
2488
2621
 
2489
2622
  /**
2490
2623
  * Add or remove negotiations from a negotiation group
2624
+ *
2491
2625
  * Add or remove negotiations from a negotiation group.
2492
2626
  */
2493
- export const updateGroupMembers = <ThrowOnError extends boolean = false>(options: Options<UpdateGroupMembers_Data, ThrowOnError>) => {
2494
- return (options.client ?? _heyApiClient).put<unknown, unknown, ThrowOnError>({
2627
+ export const updateGroupMembers = <ThrowOnError extends boolean = false>(options: Options<updateGroupMembersData, ThrowOnError>) => {
2628
+ return (options.client ?? client).put<updateGroupMembersResponses, updateGroupMembersErrors, ThrowOnError>({
2495
2629
  security: [
2496
2630
  {
2497
2631
  name: 'Authorization',
@@ -2502,17 +2636,18 @@ export const updateGroupMembers = <ThrowOnError extends boolean = false>(options
2502
2636
  ...options,
2503
2637
  headers: {
2504
2638
  'Content-Type': 'application/json',
2505
- ...options?.headers
2639
+ ...options.headers
2506
2640
  }
2507
2641
  });
2508
2642
  };
2509
2643
 
2510
2644
  /**
2511
2645
  * Download the signed signature page for a party as a PDF
2646
+ *
2512
2647
  * Download the signed signature page for a party as a PDF.
2513
2648
  */
2514
- export const getSignedSignaturePagePdf = <ThrowOnError extends boolean = false>(options: Options<GetSignedSignaturePagePdf_Data, ThrowOnError>) => {
2515
- return (options.client ?? _heyApiClient).get<GetSignedSignaturePagePdf_Response, unknown, ThrowOnError>({
2649
+ export const getSignedSignaturePagePDF = <ThrowOnError extends boolean = false>(options: Options<getSignedSignaturePagePDFData, ThrowOnError>) => {
2650
+ return (options.client ?? client).get<getSignedSignaturePagePDFResponses, getSignedSignaturePagePDFErrors, ThrowOnError>({
2516
2651
  security: [
2517
2652
  {
2518
2653
  name: 'Authorization',
@@ -2526,10 +2661,11 @@ export const getSignedSignaturePagePdf = <ThrowOnError extends boolean = false>(
2526
2661
 
2527
2662
  /**
2528
2663
  * View the schema for a preset's document
2664
+ *
2529
2665
  * View the schema for a preset's document.
2530
2666
  */
2531
- export const presetGetDocumentSchema = <ThrowOnError extends boolean = false>(options: Options<PresetGetDocumentSchema_Data, ThrowOnError>) => {
2532
- return (options.client ?? _heyApiClient).get<PresetGetDocumentSchema_Response, unknown, ThrowOnError>({
2667
+ export const presetGetDocumentSchema = <ThrowOnError extends boolean = false>(options: Options<presetGetDocumentSchemaData, ThrowOnError>) => {
2668
+ return (options.client ?? client).get<presetGetDocumentSchemaResponses, presetGetDocumentSchemaErrors, ThrowOnError>({
2533
2669
  security: [
2534
2670
  {
2535
2671
  name: 'Authorization',
@@ -2543,10 +2679,11 @@ export const presetGetDocumentSchema = <ThrowOnError extends boolean = false>(op
2543
2679
 
2544
2680
  /**
2545
2681
  * View a list of Sub-Accounts in your account
2682
+ *
2546
2683
  * View a list of Sub-Accounts in your account.
2547
2684
  */
2548
- export const listSubAccounts = <ThrowOnError extends boolean = false>(options?: Options<ListSubAccounts_Data, ThrowOnError>) => {
2549
- return (options?.client ?? _heyApiClient).get<unknown, unknown, ThrowOnError>({
2685
+ export const listSubAccounts = <ThrowOnError extends boolean = false>(options?: Options<listSubAccountsData, ThrowOnError>) => {
2686
+ return (options?.client ?? client).get<listSubAccountsResponses, unknown, ThrowOnError>({
2550
2687
  security: [
2551
2688
  {
2552
2689
  name: 'Authorization',
@@ -2560,10 +2697,11 @@ export const listSubAccounts = <ThrowOnError extends boolean = false>(options?:
2560
2697
 
2561
2698
  /**
2562
2699
  * Get the names of the matching items for the specified free text under a particular `filter`
2700
+ *
2563
2701
  * Get the names of the matching items for the specified free text under a particular `filter`.
2564
2702
  */
2565
- export const documentsFilter = <ThrowOnError extends boolean = false>(options: Options<DocumentsFilter_Data, ThrowOnError>) => {
2566
- return (options.client ?? _heyApiClient).get<DocumentsFilter_Response, unknown, ThrowOnError>({
2703
+ export const documentsFilter = <ThrowOnError extends boolean = false>(options: Options<documentsFilterData, ThrowOnError>) => {
2704
+ return (options.client ?? client).get<documentsFilterResponses, documentsFilterErrors, ThrowOnError>({
2567
2705
  security: [
2568
2706
  {
2569
2707
  name: 'Authorization',
@@ -2577,10 +2715,11 @@ export const documentsFilter = <ThrowOnError extends boolean = false>(options: O
2577
2715
 
2578
2716
  /**
2579
2717
  * Mark a negotiation as offline
2718
+ *
2580
2719
  * Mark a negotiation as offline.
2581
2720
  */
2582
- export const markAsOffline = <ThrowOnError extends boolean = false>(options: Options<MarkAsOffline_Data, ThrowOnError>) => {
2583
- return (options.client ?? _heyApiClient).put<MarkAsOffline_Response, unknown, ThrowOnError>({
2721
+ export const markAsOffline = <ThrowOnError extends boolean = false>(options: Options<markAsOfflineData, ThrowOnError>) => {
2722
+ return (options.client ?? client).put<markAsOfflineResponses, markAsOfflineErrors, ThrowOnError>({
2584
2723
  security: [
2585
2724
  {
2586
2725
  name: 'Authorization',
@@ -2594,10 +2733,11 @@ export const markAsOffline = <ThrowOnError extends boolean = false>(options: Opt
2594
2733
 
2595
2734
  /**
2596
2735
  * Determine whether a party has a signed signature page, or not
2736
+ *
2597
2737
  * Determine whether a party has a signed signature page, or not.
2598
2738
  */
2599
- export const checkSignedSignaturePagePdf = <ThrowOnError extends boolean = false>(options: Options<CheckSignedSignaturePagePdf_Data, ThrowOnError>) => {
2600
- return (options.client ?? _heyApiClient).get<CheckSignedSignaturePagePdf_Response, unknown, ThrowOnError>({
2739
+ export const checkSignedSignaturePagePDF = <ThrowOnError extends boolean = false>(options: Options<checkSignedSignaturePagePDFData, ThrowOnError>) => {
2740
+ return (options.client ?? client).get<checkSignedSignaturePagePDFResponses, checkSignedSignaturePagePDFErrors, ThrowOnError>({
2601
2741
  security: [
2602
2742
  {
2603
2743
  name: 'Authorization',
@@ -2611,10 +2751,11 @@ export const checkSignedSignaturePagePdf = <ThrowOnError extends boolean = false
2611
2751
 
2612
2752
  /**
2613
2753
  * Download an uploaded offline negotiated document for a negotiation, annotated with extracted terms
2754
+ *
2614
2755
  * Download an uploaded offline negotiated document for a negotiation, annotated with extracted terms.
2615
2756
  */
2616
- export const getAnnotatedOfflineNegotiatedDocument = <ThrowOnError extends boolean = false>(options: Options<GetAnnotatedOfflineNegotiatedDocument_Data, ThrowOnError>) => {
2617
- return (options.client ?? _heyApiClient).get<GetAnnotatedOfflineNegotiatedDocument_Response, unknown, ThrowOnError>({
2757
+ export const getAnnotatedOfflineNegotiatedDocument = <ThrowOnError extends boolean = false>(options: Options<getAnnotatedOfflineNegotiatedDocumentData, ThrowOnError>) => {
2758
+ return (options.client ?? client).get<getAnnotatedOfflineNegotiatedDocumentResponses, getAnnotatedOfflineNegotiatedDocumentErrors, ThrowOnError>({
2618
2759
  security: [
2619
2760
  {
2620
2761
  name: 'Authorization',
@@ -2628,10 +2769,11 @@ export const getAnnotatedOfflineNegotiatedDocument = <ThrowOnError extends boole
2628
2769
 
2629
2770
  /**
2630
2771
  * Delete an auxiliary document from a negotiation
2772
+ *
2631
2773
  * Delete an auxiliary document from a negotiation.
2632
2774
  */
2633
- export const deleteAuxiliaryDocument = <ThrowOnError extends boolean = false>(options: Options<DeleteAuxiliaryDocument_Data, ThrowOnError>) => {
2634
- return (options.client ?? _heyApiClient).delete<DeleteAuxiliaryDocument_Response, unknown, ThrowOnError>({
2775
+ export const deleteAuxiliaryDocument = <ThrowOnError extends boolean = false>(options: Options<deleteAuxiliaryDocumentData, ThrowOnError>) => {
2776
+ return (options.client ?? client).delete<deleteAuxiliaryDocumentResponses, unknown, ThrowOnError>({
2635
2777
  security: [
2636
2778
  {
2637
2779
  name: 'Authorization',
@@ -2645,10 +2787,11 @@ export const deleteAuxiliaryDocument = <ThrowOnError extends boolean = false>(op
2645
2787
 
2646
2788
  /**
2647
2789
  * Download an uploaded auxiliary document that has been uploaded for a negotiation
2790
+ *
2648
2791
  * Download an uploaded auxiliary document that has been uploaded for a negotiation.
2649
2792
  */
2650
- export const getAuxiliaryDocument = <ThrowOnError extends boolean = false>(options: Options<GetAuxiliaryDocument_Data, ThrowOnError>) => {
2651
- return (options.client ?? _heyApiClient).get<GetAuxiliaryDocument_Response, unknown, ThrowOnError>({
2793
+ export const getAuxiliaryDocument = <ThrowOnError extends boolean = false>(options: Options<getAuxiliaryDocumentData, ThrowOnError>) => {
2794
+ return (options.client ?? client).get<getAuxiliaryDocumentResponses, getAuxiliaryDocumentErrors, ThrowOnError>({
2652
2795
  security: [
2653
2796
  {
2654
2797
  name: 'Authorization',
@@ -2662,10 +2805,11 @@ export const getAuxiliaryDocument = <ThrowOnError extends boolean = false>(optio
2662
2805
 
2663
2806
  /**
2664
2807
  * Upload an auxiliary document for a negotiation
2808
+ *
2665
2809
  * Upload an auxiliary document for a negotiation.
2666
2810
  */
2667
- export const setAuxiliaryDocument = <ThrowOnError extends boolean = false>(options: Options<SetAuxiliaryDocument_Data, ThrowOnError>) => {
2668
- return (options.client ?? _heyApiClient).put<SetAuxiliaryDocument_Response, unknown, ThrowOnError>({
2811
+ export const setAuxiliaryDocument = <ThrowOnError extends boolean = false>(options: Options<setAuxiliaryDocumentData, ThrowOnError>) => {
2812
+ return (options.client ?? client).put<setAuxiliaryDocumentResponses, setAuxiliaryDocumentErrors, ThrowOnError>({
2669
2813
  security: [
2670
2814
  {
2671
2815
  name: 'Authorization',
@@ -2676,17 +2820,18 @@ export const setAuxiliaryDocument = <ThrowOnError extends boolean = false>(optio
2676
2820
  ...options,
2677
2821
  headers: {
2678
2822
  'Content-Type': 'application/pdf',
2679
- ...options?.headers
2823
+ ...options.headers
2680
2824
  }
2681
2825
  });
2682
2826
  };
2683
2827
 
2684
2828
  /**
2685
2829
  * Download the pre-execution version of a negotiation as a DOCX or PDF
2830
+ *
2686
2831
  * Download the pre-execution version of a negotiation as a DOCX or PDF.
2687
2832
  */
2688
- export const downloadPreExecutionCounterpartyNegotiation = <ThrowOnError extends boolean = false>(options: Options<DownloadPreExecutionCounterpartyNegotiation_Data, ThrowOnError>) => {
2689
- return (options.client ?? _heyApiClient).get<DownloadPreExecutionCounterpartyNegotiation_Response, unknown, ThrowOnError>({
2833
+ export const downloadPreExecutionCounterpartyNegotiation = <ThrowOnError extends boolean = false>(options: Options<downloadPreExecutionCounterpartyNegotiationData, ThrowOnError>) => {
2834
+ return (options.client ?? client).get<downloadPreExecutionCounterpartyNegotiationResponses, unknown, ThrowOnError>({
2690
2835
  security: [
2691
2836
  {
2692
2837
  name: 'Authorization',
@@ -2700,10 +2845,11 @@ export const downloadPreExecutionCounterpartyNegotiation = <ThrowOnError extends
2700
2845
 
2701
2846
  /**
2702
2847
  * Cancel a negotiation
2848
+ *
2703
2849
  * Cancels a negotiation.
2704
2850
  */
2705
- export const cancel = <ThrowOnError extends boolean = false>(options: Options<Cancel_Data, ThrowOnError>) => {
2706
- return (options.client ?? _heyApiClient).put<Cancel_Response, unknown, ThrowOnError>({
2851
+ export const cancel = <ThrowOnError extends boolean = false>(options: Options<cancelData, ThrowOnError>) => {
2852
+ return (options.client ?? client).put<cancelResponses, cancelErrors, ThrowOnError>({
2707
2853
  security: [
2708
2854
  {
2709
2855
  name: 'Authorization',
@@ -2714,17 +2860,18 @@ export const cancel = <ThrowOnError extends boolean = false>(options: Options<Ca
2714
2860
  ...options,
2715
2861
  headers: {
2716
2862
  'Content-Type': 'application/json',
2717
- ...options?.headers
2863
+ ...options.headers
2718
2864
  }
2719
2865
  });
2720
2866
  };
2721
2867
 
2722
2868
  /**
2723
2869
  * Revoke negotiation access from Advisor
2870
+ *
2724
2871
  * Revoke existing advisor access over specified negotiations. All supplied negotiations are removed from existing list.
2725
2872
  */
2726
- export const revokeNegotiationsAccess = <ThrowOnError extends boolean = false>(options: Options<RevokeNegotiationsAccess_Data, ThrowOnError>) => {
2727
- return (options.client ?? _heyApiClient).delete<RevokeNegotiationsAccess_Response, unknown, ThrowOnError>({
2873
+ export const revokeNegotiationsAccess = <ThrowOnError extends boolean = false>(options: Options<revokeNegotiationsAccessData, ThrowOnError>) => {
2874
+ return (options.client ?? client).delete<revokeNegotiationsAccessResponses, unknown, ThrowOnError>({
2728
2875
  security: [
2729
2876
  {
2730
2877
  name: 'Authorization',
@@ -2735,17 +2882,18 @@ export const revokeNegotiationsAccess = <ThrowOnError extends boolean = false>(o
2735
2882
  ...options,
2736
2883
  headers: {
2737
2884
  'Content-Type': 'application/json',
2738
- ...options?.headers
2885
+ ...options.headers
2739
2886
  }
2740
2887
  });
2741
2888
  };
2742
2889
 
2743
2890
  /**
2744
2891
  * Grant access for specific negotiations to an Advisor
2892
+ *
2745
2893
  * Grant existing advisor access over specified negotiations. All supplied negotiations are appended to existing list.
2746
2894
  */
2747
- export const grantNegotiationsAccess = <ThrowOnError extends boolean = false>(options: Options<GrantNegotiationsAccess_Data, ThrowOnError>) => {
2748
- return (options.client ?? _heyApiClient).post<GrantNegotiationsAccess_Response, unknown, ThrowOnError>({
2895
+ export const grantNegotiationsAccess = <ThrowOnError extends boolean = false>(options: Options<grantNegotiationsAccessData, ThrowOnError>) => {
2896
+ return (options.client ?? client).post<grantNegotiationsAccessResponses, unknown, ThrowOnError>({
2749
2897
  security: [
2750
2898
  {
2751
2899
  name: 'Authorization',
@@ -2756,17 +2904,18 @@ export const grantNegotiationsAccess = <ThrowOnError extends boolean = false>(op
2756
2904
  ...options,
2757
2905
  headers: {
2758
2906
  'Content-Type': 'application/json',
2759
- ...options?.headers
2907
+ ...options.headers
2760
2908
  }
2761
2909
  });
2762
2910
  };
2763
2911
 
2764
2912
  /**
2765
2913
  * View a list of documents available to you
2914
+ *
2766
2915
  * List of documents that can be downloaded, with a list of supported extensions for each one.
2767
2916
  */
2768
- export const listDocuments = <ThrowOnError extends boolean = false>(options: Options<ListDocuments_Data, ThrowOnError>) => {
2769
- return (options.client ?? _heyApiClient).get<ListDocuments_Response, unknown, ThrowOnError>({
2917
+ export const listDocuments = <ThrowOnError extends boolean = false>(options: Options<listDocumentsData, ThrowOnError>) => {
2918
+ return (options.client ?? client).get<listDocumentsResponses, unknown, ThrowOnError>({
2770
2919
  security: [
2771
2920
  {
2772
2921
  name: 'Authorization',
@@ -2780,10 +2929,11 @@ export const listDocuments = <ThrowOnError extends boolean = false>(options: Opt
2780
2929
 
2781
2930
  /**
2782
2931
  * View all answers for the major version numbers of the negotiation in a Sub-Account
2932
+ *
2783
2933
  * View all answers for the major version numbers of the negotiation in a Sub-Account.
2784
2934
  */
2785
- export const getPartyAnswers = <ThrowOnError extends boolean = false>(options: Options<GetPartyAnswers_Data, ThrowOnError>) => {
2786
- return (options.client ?? _heyApiClient).get<GetPartyAnswers_Response, unknown, ThrowOnError>({
2935
+ export const getPartyAnswers = <ThrowOnError extends boolean = false>(options: Options<getPartyAnswersData, ThrowOnError>) => {
2936
+ return (options.client ?? client).get<getPartyAnswersResponses, getPartyAnswersErrors, ThrowOnError>({
2787
2937
  security: [
2788
2938
  {
2789
2939
  name: 'Authorization',
@@ -2797,10 +2947,11 @@ export const getPartyAnswers = <ThrowOnError extends boolean = false>(options: O
2797
2947
 
2798
2948
  /**
2799
2949
  * Delete a preset
2950
+ *
2800
2951
  * Delete a preset.
2801
2952
  */
2802
- export const deletePreset = <ThrowOnError extends boolean = false>(options: Options<DeletePreset_Data, ThrowOnError>) => {
2803
- return (options.client ?? _heyApiClient).delete<unknown, unknown, ThrowOnError>({
2953
+ export const deletePreset = <ThrowOnError extends boolean = false>(options: Options<deletePresetData, ThrowOnError>) => {
2954
+ return (options.client ?? client).delete<deletePresetResponses, unknown, ThrowOnError>({
2804
2955
  security: [
2805
2956
  {
2806
2957
  name: 'Authorization',
@@ -2814,10 +2965,11 @@ export const deletePreset = <ThrowOnError extends boolean = false>(options: Opti
2814
2965
 
2815
2966
  /**
2816
2967
  * View a specific preset
2968
+ *
2817
2969
  * View a specific preset.
2818
2970
  */
2819
- export const getPreset = <ThrowOnError extends boolean = false>(options: Options<GetPreset_Data, ThrowOnError>) => {
2820
- return (options.client ?? _heyApiClient).get<GetPreset_Response, unknown, ThrowOnError>({
2971
+ export const getPreset = <ThrowOnError extends boolean = false>(options: Options<getPresetData, ThrowOnError>) => {
2972
+ return (options.client ?? client).get<getPresetResponses, unknown, ThrowOnError>({
2821
2973
  security: [
2822
2974
  {
2823
2975
  name: 'Authorization',
@@ -2831,10 +2983,11 @@ export const getPreset = <ThrowOnError extends boolean = false>(options: Options
2831
2983
 
2832
2984
  /**
2833
2985
  * Download the audit trail for a preset as JSON
2986
+ *
2834
2987
  * Download the audit trail for a preset as JSON.
2835
2988
  */
2836
- export const createPresetAuditTrailJson = <ThrowOnError extends boolean = false>(options: Options<CreatePresetAuditTrailJson_Data, ThrowOnError>) => {
2837
- return (options.client ?? _heyApiClient).get<CreatePresetAuditTrailJson_Response, unknown, ThrowOnError>({
2989
+ export const createPresetAuditTrailJson = <ThrowOnError extends boolean = false>(options: Options<createPresetAuditTrailJsonData, ThrowOnError>) => {
2990
+ return (options.client ?? client).get<createPresetAuditTrailJsonResponses, unknown, ThrowOnError>({
2838
2991
  security: [
2839
2992
  {
2840
2993
  name: 'Authorization',
@@ -2848,10 +3001,11 @@ export const createPresetAuditTrailJson = <ThrowOnError extends boolean = false>
2848
3001
 
2849
3002
  /**
2850
3003
  * View a list of users in the account that is the parent of the specified Sub-Account.
3004
+ *
2851
3005
  * View a list of users in the account that is the parent of the specified Sub-Account.
2852
3006
  */
2853
- export const getPotentialUsers = <ThrowOnError extends boolean = false>(options: Options<GetPotentialUsers_Data, ThrowOnError>) => {
2854
- return (options.client ?? _heyApiClient).get<GetPotentialUsers_Response, unknown, ThrowOnError>({
3007
+ export const getPotentialUsers = <ThrowOnError extends boolean = false>(options: Options<getPotentialUsersData, ThrowOnError>) => {
3008
+ return (options.client ?? client).get<getPotentialUsersResponses, getPotentialUsersErrors, ThrowOnError>({
2855
3009
  security: [
2856
3010
  {
2857
3011
  name: 'Authorization',
@@ -2865,10 +3019,11 @@ export const getPotentialUsers = <ThrowOnError extends boolean = false>(options:
2865
3019
 
2866
3020
  /**
2867
3021
  * View a negotiation group, and the negotiations within it
3022
+ *
2868
3023
  * View a negotiation group, and the negotiations within it.
2869
3024
  */
2870
- export const getNegotiationsGroup = <ThrowOnError extends boolean = false>(options: Options<GetNegotiationsGroup_Data, ThrowOnError>) => {
2871
- return (options.client ?? _heyApiClient).get<GetNegotiationsGroup_Response, unknown, ThrowOnError>({
3025
+ export const getNegotiationsGroup = <ThrowOnError extends boolean = false>(options: Options<getNegotiationsGroupData, ThrowOnError>) => {
3026
+ return (options.client ?? client).get<getNegotiationsGroupResponses, unknown, ThrowOnError>({
2872
3027
  security: [
2873
3028
  {
2874
3029
  name: 'Authorization',
@@ -2882,10 +3037,11 @@ export const getNegotiationsGroup = <ThrowOnError extends boolean = false>(optio
2882
3037
 
2883
3038
  /**
2884
3039
  * Endpoint used for callback from DocuSign
3040
+ *
2885
3041
  * Connect CIQ account with DocuSign.
2886
3042
  */
2887
- export const consentCodeCallback = <ThrowOnError extends boolean = false>(options?: Options<ConsentCodeCallback_Data, ThrowOnError>) => {
2888
- return (options?.client ?? _heyApiClient).get<unknown, unknown, ThrowOnError>({
3043
+ export const consentCodeCallback = <ThrowOnError extends boolean = false>(options?: Options<consentCodeCallbackData, ThrowOnError>) => {
3044
+ return (options?.client ?? client).get<unknown, unknown, ThrowOnError>({
2889
3045
  security: [
2890
3046
  {
2891
3047
  name: 'Authorization',
@@ -2899,10 +3055,11 @@ export const consentCodeCallback = <ThrowOnError extends boolean = false>(option
2899
3055
 
2900
3056
  /**
2901
3057
  * Get the annotated extracted terms for an extracted document
3058
+ *
2902
3059
  * Get the annotated extracted terms for an extracted document.
2903
3060
  */
2904
- export const getOfflineNegotiatedDocumentAnnotations = <ThrowOnError extends boolean = false>(options: Options<GetOfflineNegotiatedDocumentAnnotations_Data, ThrowOnError>) => {
2905
- return (options.client ?? _heyApiClient).get<GetOfflineNegotiatedDocumentAnnotations_Response, unknown, ThrowOnError>({
3061
+ export const getOfflineNegotiatedDocumentAnnotations = <ThrowOnError extends boolean = false>(options: Options<getOfflineNegotiatedDocumentAnnotationsData, ThrowOnError>) => {
3062
+ return (options.client ?? client).get<getOfflineNegotiatedDocumentAnnotationsResponses, getOfflineNegotiatedDocumentAnnotationsErrors, ThrowOnError>({
2906
3063
  security: [
2907
3064
  {
2908
3065
  name: 'Authorization',
@@ -2916,10 +3073,11 @@ export const getOfflineNegotiatedDocumentAnnotations = <ThrowOnError extends boo
2916
3073
 
2917
3074
  /**
2918
3075
  * Accept the custodian template position for all elections of a negotiation
3076
+ *
2919
3077
  * Accept the custodian template position for all elections of a negotiation.
2920
3078
  */
2921
- export const acceptAllCustodianTemplatePositions = <ThrowOnError extends boolean = false>(options: Options<AcceptAllCustodianTemplatePositions_Data, ThrowOnError>) => {
2922
- return (options.client ?? _heyApiClient).put<AcceptAllCustodianTemplatePositions_Response, unknown, ThrowOnError>({
3079
+ export const acceptAllCustodianTemplatePositions = <ThrowOnError extends boolean = false>(options: Options<acceptAllCustodianTemplatePositionsData, ThrowOnError>) => {
3080
+ return (options.client ?? client).put<acceptAllCustodianTemplatePositionsResponses, acceptAllCustodianTemplatePositionsErrors, ThrowOnError>({
2923
3081
  security: [
2924
3082
  {
2925
3083
  name: 'Authorization',
@@ -2933,10 +3091,11 @@ export const acceptAllCustodianTemplatePositions = <ThrowOnError extends boolean
2933
3091
 
2934
3092
  /**
2935
3093
  * View information about your account, its Sub-Accounts and entities
3094
+ *
2936
3095
  * View information about your account, its Sub-Accounts and entities.
2937
3096
  */
2938
- export const accountSummary = <ThrowOnError extends boolean = false>(options?: Options<AccountSummary_Data, ThrowOnError>) => {
2939
- return (options?.client ?? _heyApiClient).get<AccountSummary_Response, unknown, ThrowOnError>({
3097
+ export const accountSummary = <ThrowOnError extends boolean = false>(options?: Options<accountSummaryData, ThrowOnError>) => {
3098
+ return (options?.client ?? client).get<accountSummaryResponses, accountSummaryErrors, ThrowOnError>({
2940
3099
  security: [
2941
3100
  {
2942
3101
  name: 'Authorization',
@@ -2950,10 +3109,11 @@ export const accountSummary = <ThrowOnError extends boolean = false>(options?: O
2950
3109
 
2951
3110
  /**
2952
3111
  * View all approval comments associated with a negotiation
3112
+ *
2953
3113
  * View all approval comments associated with a negotiation.
2954
3114
  */
2955
- export const getApprovalComments = <ThrowOnError extends boolean = false>(options: Options<GetApprovalComments_Data, ThrowOnError>) => {
2956
- return (options.client ?? _heyApiClient).get<GetApprovalComments_Response, unknown, ThrowOnError>({
3115
+ export const getApprovalComments = <ThrowOnError extends boolean = false>(options: Options<getApprovalCommentsData, ThrowOnError>) => {
3116
+ return (options.client ?? client).get<getApprovalCommentsResponses, getApprovalCommentsErrors, ThrowOnError>({
2957
3117
  security: [
2958
3118
  {
2959
3119
  name: 'Authorization',
@@ -2967,10 +3127,11 @@ export const getApprovalComments = <ThrowOnError extends boolean = false>(option
2967
3127
 
2968
3128
  /**
2969
3129
  * Get a list of all advisors accounts that have access to the specified workspace
3130
+ *
2970
3131
  * Get a list of all advisors accounts that have access to the specified workspace. Only lists active relationships.
2971
3132
  */
2972
- export const listAdvisorsForWorkspace = <ThrowOnError extends boolean = false>(options: Options<ListAdvisorsForWorkspace_Data, ThrowOnError>) => {
2973
- return (options.client ?? _heyApiClient).get<ListAdvisorsForWorkspace_Response, unknown, ThrowOnError>({
3133
+ export const listAdvisorsForWorkspace = <ThrowOnError extends boolean = false>(options: Options<listAdvisorsForWorkspaceData, ThrowOnError>) => {
3134
+ return (options.client ?? client).get<listAdvisorsForWorkspaceResponses, unknown, ThrowOnError>({
2974
3135
  security: [
2975
3136
  {
2976
3137
  name: 'Authorization',
@@ -2984,10 +3145,11 @@ export const listAdvisorsForWorkspace = <ThrowOnError extends boolean = false>(o
2984
3145
 
2985
3146
  /**
2986
3147
  * Determine whether an offline negotiated document has been uploaded, or not
3148
+ *
2987
3149
  * Determine whether an offline negotiated document has been uploaded, or not.
2988
3150
  */
2989
- export const checkOfflineNegotiatedDocument = <ThrowOnError extends boolean = false>(options: Options<CheckOfflineNegotiatedDocument_Data, ThrowOnError>) => {
2990
- return (options.client ?? _heyApiClient).get<CheckOfflineNegotiatedDocument_Response, unknown, ThrowOnError>({
3151
+ export const checkOfflineNegotiatedDocument = <ThrowOnError extends boolean = false>(options: Options<checkOfflineNegotiatedDocumentData, ThrowOnError>) => {
3152
+ return (options.client ?? client).get<checkOfflineNegotiatedDocumentResponses, checkOfflineNegotiatedDocumentErrors, ThrowOnError>({
2991
3153
  security: [
2992
3154
  {
2993
3155
  name: 'Authorization',
@@ -3001,10 +3163,11 @@ export const checkOfflineNegotiatedDocument = <ThrowOnError extends boolean = fa
3001
3163
 
3002
3164
  /**
3003
3165
  * Download a preset in PDF or DOCX format
3166
+ *
3004
3167
  * Download a preset in PDF or DOCX format.
3005
3168
  */
3006
- export const downloadPreset = <ThrowOnError extends boolean = false>(options: Options<DownloadPreset_Data, ThrowOnError>) => {
3007
- return (options.client ?? _heyApiClient).get<DownloadPreset_Response, unknown, ThrowOnError>({
3169
+ export const downloadPreset = <ThrowOnError extends boolean = false>(options: Options<downloadPresetData, ThrowOnError>) => {
3170
+ return (options.client ?? client).get<downloadPresetResponses, unknown, ThrowOnError>({
3008
3171
  security: [
3009
3172
  {
3010
3173
  name: 'Authorization',
@@ -3018,10 +3181,11 @@ export const downloadPreset = <ThrowOnError extends boolean = false>(options: Op
3018
3181
 
3019
3182
  /**
3020
3183
  * Assign a user to a negotiation
3184
+ *
3021
3185
  * Assign a user to a negotiation.
3022
3186
  */
3023
- export const assignUser = <ThrowOnError extends boolean = false>(options: Options<AssignUser_Data, ThrowOnError>) => {
3024
- return (options.client ?? _heyApiClient).put<AssignUser_Response, unknown, ThrowOnError>({
3187
+ export const assignUser = <ThrowOnError extends boolean = false>(options: Options<assignUserData, ThrowOnError>) => {
3188
+ return (options.client ?? client).put<assignUserResponses, assignUserErrors, ThrowOnError>({
3025
3189
  security: [
3026
3190
  {
3027
3191
  name: 'Authorization',
@@ -3035,10 +3199,11 @@ export const assignUser = <ThrowOnError extends boolean = false>(options: Option
3035
3199
 
3036
3200
  /**
3037
3201
  * Generate excel report containing comments for all negotiations that belongs to the Sub-Account and send the download email
3202
+ *
3038
3203
  * Generate excel report containing comments for all negotiations that belongs to the Sub-Account and send the download email.
3039
3204
  */
3040
- export const generateCommentsReport = <ThrowOnError extends boolean = false>(options: Options<GenerateCommentsReport_Data, ThrowOnError>) => {
3041
- return (options.client ?? _heyApiClient).get<unknown, unknown, ThrowOnError>({
3205
+ export const generateCommentsReport = <ThrowOnError extends boolean = false>(options: Options<generateCommentsReportData, ThrowOnError>) => {
3206
+ return (options.client ?? client).get<generateCommentsReportResponses, unknown, ThrowOnError>({
3042
3207
  security: [
3043
3208
  {
3044
3209
  name: 'Authorization',
@@ -3052,10 +3217,11 @@ export const generateCommentsReport = <ThrowOnError extends boolean = false>(opt
3052
3217
 
3053
3218
  /**
3054
3219
  * Get the current extraction status and results
3220
+ *
3055
3221
  * Get the current extraction status and results.
3056
3222
  */
3057
- export const getExtractionResults = <ThrowOnError extends boolean = false>(options: Options<GetExtractionResults_Data, ThrowOnError>) => {
3058
- return (options.client ?? _heyApiClient).get<GetExtractionResults_Response, unknown, ThrowOnError>({
3223
+ export const getExtractionResults = <ThrowOnError extends boolean = false>(options: Options<getExtractionResultsData, ThrowOnError>) => {
3224
+ return (options.client ?? client).get<getExtractionResultsResponses, getExtractionResultsErrors, ThrowOnError>({
3059
3225
  security: [
3060
3226
  {
3061
3227
  name: 'Authorization',
@@ -3069,10 +3235,11 @@ export const getExtractionResults = <ThrowOnError extends boolean = false>(optio
3069
3235
 
3070
3236
  /**
3071
3237
  * Apply extracted answers to the negotiation
3238
+ *
3072
3239
  * Apply extracted answers to the negotiation.
3073
3240
  */
3074
- export const applyExtractedAnswers = <ThrowOnError extends boolean = false>(options: Options<ApplyExtractedAnswers_Data, ThrowOnError>) => {
3075
- return (options.client ?? _heyApiClient).put<ApplyExtractedAnswers_Response, unknown, ThrowOnError>({
3241
+ export const applyExtractedAnswers = <ThrowOnError extends boolean = false>(options: Options<applyExtractedAnswersData, ThrowOnError>) => {
3242
+ return (options.client ?? client).put<applyExtractedAnswersResponses, applyExtractedAnswersErrors, ThrowOnError>({
3076
3243
  security: [
3077
3244
  {
3078
3245
  name: 'Authorization',
@@ -3086,10 +3253,11 @@ export const applyExtractedAnswers = <ThrowOnError extends boolean = false>(opti
3086
3253
 
3087
3254
  /**
3088
3255
  * Get original negotiations answers before a restatement
3256
+ *
3089
3257
  * Get original negotiations answers before a restatement.
3090
3258
  */
3091
- export const getOriginalAnswersForForkNegotiation = <ThrowOnError extends boolean = false>(options: Options<GetOriginalAnswersForForkNegotiation_Data, ThrowOnError>) => {
3092
- return (options.client ?? _heyApiClient).get<GetOriginalAnswersForForkNegotiation_Response, unknown, ThrowOnError>({
3259
+ export const getOriginalAnswersForForkNegotiation = <ThrowOnError extends boolean = false>(options: Options<getOriginalAnswersForForkNegotiationData, ThrowOnError>) => {
3260
+ return (options.client ?? client).get<getOriginalAnswersForForkNegotiationResponses, getOriginalAnswersForForkNegotiationErrors, ThrowOnError>({
3093
3261
  security: [
3094
3262
  {
3095
3263
  name: 'Authorization',
@@ -3103,10 +3271,11 @@ export const getOriginalAnswersForForkNegotiation = <ThrowOnError extends boolea
3103
3271
 
3104
3272
  /**
3105
3273
  * Mark an offline negotiation as final
3274
+ *
3106
3275
  * Mark an offline negotiation as final.
3107
3276
  */
3108
- export const markAsFinal = <ThrowOnError extends boolean = false>(options: Options<MarkAsFinal_Data, ThrowOnError>) => {
3109
- return (options.client ?? _heyApiClient).put<MarkAsFinal_Response, unknown, ThrowOnError>({
3277
+ export const markAsFinal = <ThrowOnError extends boolean = false>(options: Options<markAsFinalData, ThrowOnError>) => {
3278
+ return (options.client ?? client).put<markAsFinalResponses, markAsFinalErrors, ThrowOnError>({
3110
3279
  security: [
3111
3280
  {
3112
3281
  name: 'Authorization',
@@ -3120,10 +3289,11 @@ export const markAsFinal = <ThrowOnError extends boolean = false>(options: Optio
3120
3289
 
3121
3290
  /**
3122
3291
  * Get the nested election IDs of all parties for all previous major versions
3292
+ *
3123
3293
  * Get the value for a nested election IDs of all parties for all previous major versions.
3124
3294
  */
3125
- export const getPreviousMajorVersionsNestedAnswerElections = <ThrowOnError extends boolean = false>(options: Options<GetPreviousMajorVersionsNestedAnswerElections_Data, ThrowOnError>) => {
3126
- return (options.client ?? _heyApiClient).get<GetPreviousMajorVersionsNestedAnswerElections_Response, unknown, ThrowOnError>({
3295
+ export const getPreviousMajorVersionsNestedAnswerElections = <ThrowOnError extends boolean = false>(options: Options<getPreviousMajorVersionsNestedAnswerElectionsData, ThrowOnError>) => {
3296
+ return (options.client ?? client).get<getPreviousMajorVersionsNestedAnswerElectionsResponses, getPreviousMajorVersionsNestedAnswerElectionsErrors, ThrowOnError>({
3127
3297
  security: [
3128
3298
  {
3129
3299
  name: 'Authorization',
@@ -3137,10 +3307,11 @@ export const getPreviousMajorVersionsNestedAnswerElections = <ThrowOnError exten
3137
3307
 
3138
3308
  /**
3139
3309
  * List negotiations in a Sub-Account
3310
+ *
3140
3311
  * List negotiations in a Sub-Account.
3141
3312
  */
3142
- export const listNegotiations = <ThrowOnError extends boolean = false>(options: Options<ListNegotiations_Data, ThrowOnError>) => {
3143
- return (options.client ?? _heyApiClient).get<ListNegotiations_Response, unknown, ThrowOnError>({
3313
+ export const listNegotiations = <ThrowOnError extends boolean = false>(options: Options<listNegotiationsData, ThrowOnError>) => {
3314
+ return (options.client ?? client).get<listNegotiationsResponses, unknown, ThrowOnError>({
3144
3315
  security: [
3145
3316
  {
3146
3317
  name: 'Authorization',
@@ -3154,10 +3325,11 @@ export const listNegotiations = <ThrowOnError extends boolean = false>(options:
3154
3325
 
3155
3326
  /**
3156
3327
  * Create an empty negotiation from a preset, document or template negotiation
3328
+ *
3157
3329
  * Create an empty negotiation from a preset, document or template negotiation.
3158
3330
  */
3159
- export const createNegotiation = <ThrowOnError extends boolean = false>(options: Options<CreateNegotiation_Data, ThrowOnError>) => {
3160
- return (options.client ?? _heyApiClient).post<CreateNegotiation_Response, unknown, ThrowOnError>({
3331
+ export const createNegotiation = <ThrowOnError extends boolean = false>(options: Options<createNegotiationData, ThrowOnError>) => {
3332
+ return (options.client ?? client).post<createNegotiationResponses, createNegotiationErrors, ThrowOnError>({
3161
3333
  security: [
3162
3334
  {
3163
3335
  name: 'Authorization',
@@ -3168,17 +3340,18 @@ export const createNegotiation = <ThrowOnError extends boolean = false>(options:
3168
3340
  ...options,
3169
3341
  headers: {
3170
3342
  'Content-Type': 'application/json',
3171
- ...options?.headers
3343
+ ...options.headers
3172
3344
  }
3173
3345
  });
3174
3346
  };
3175
3347
 
3176
3348
  /**
3177
3349
  * Get the value for a nested answer
3350
+ *
3178
3351
  * Get the value for a nested answer.
3179
3352
  */
3180
- export const presetGetNestedAnswers = <ThrowOnError extends boolean = false>(options: Options<PresetGetNestedAnswers_Data, ThrowOnError>) => {
3181
- return (options.client ?? _heyApiClient).get<PresetGetNestedAnswers_Response, unknown, ThrowOnError>({
3353
+ export const presetGetNestedAnswers = <ThrowOnError extends boolean = false>(options: Options<presetGetNestedAnswersData, ThrowOnError>) => {
3354
+ return (options.client ?? client).get<presetGetNestedAnswersResponses, presetGetNestedAnswersErrors, ThrowOnError>({
3182
3355
  security: [
3183
3356
  {
3184
3357
  name: 'Authorization',
@@ -3192,10 +3365,11 @@ export const presetGetNestedAnswers = <ThrowOnError extends boolean = false>(opt
3192
3365
 
3193
3366
  /**
3194
3367
  * Sets the value for a nested answer
3368
+ *
3195
3369
  * Sets the value for a nested answer.
3196
3370
  */
3197
- export const presetSetNestedAnswers = <ThrowOnError extends boolean = false>(options: Options<PresetSetNestedAnswers_Data, ThrowOnError>) => {
3198
- return (options.client ?? _heyApiClient).put<PresetSetNestedAnswers_Response, unknown, ThrowOnError>({
3371
+ export const presetSetNestedAnswers = <ThrowOnError extends boolean = false>(options: Options<presetSetNestedAnswersData, ThrowOnError>) => {
3372
+ return (options.client ?? client).put<presetSetNestedAnswersResponses, presetSetNestedAnswersErrors, ThrowOnError>({
3199
3373
  security: [
3200
3374
  {
3201
3375
  name: 'Authorization',
@@ -3206,17 +3380,18 @@ export const presetSetNestedAnswers = <ThrowOnError extends boolean = false>(opt
3206
3380
  ...options,
3207
3381
  headers: {
3208
3382
  'Content-Type': 'application/json',
3209
- ...options?.headers
3383
+ ...options.headers
3210
3384
  }
3211
3385
  });
3212
3386
  };
3213
3387
 
3214
3388
  /**
3215
3389
  * Download the audit trail for a preset as XLSX
3390
+ *
3216
3391
  * Download the audit trail for a preset as XLSX.
3217
3392
  */
3218
- export const createPresetAuditTrailXlsx = <ThrowOnError extends boolean = false>(options: Options<CreatePresetAuditTrailXlsx_Data, ThrowOnError>) => {
3219
- return (options.client ?? _heyApiClient).get<CreatePresetAuditTrailXlsx_Response, unknown, ThrowOnError>({
3393
+ export const createPresetAuditTrailXLSX = <ThrowOnError extends boolean = false>(options: Options<createPresetAuditTrailXLSXData, ThrowOnError>) => {
3394
+ return (options.client ?? client).get<createPresetAuditTrailXLSXResponses, unknown, ThrowOnError>({
3220
3395
  security: [
3221
3396
  {
3222
3397
  name: 'Authorization',
@@ -3230,10 +3405,11 @@ export const createPresetAuditTrailXlsx = <ThrowOnError extends boolean = false>
3230
3405
 
3231
3406
  /**
3232
3407
  * Create a copy of a preset
3408
+ *
3233
3409
  * Create a copy of a preset.
3234
3410
  */
3235
- export const clonePreset = <ThrowOnError extends boolean = false>(options: Options<ClonePreset_Data, ThrowOnError>) => {
3236
- return (options.client ?? _heyApiClient).post<ClonePreset_Response, unknown, ThrowOnError>({
3411
+ export const clonePreset = <ThrowOnError extends boolean = false>(options: Options<clonePresetData, ThrowOnError>) => {
3412
+ return (options.client ?? client).post<clonePresetResponses, clonePresetErrors, ThrowOnError>({
3237
3413
  security: [
3238
3414
  {
3239
3415
  name: 'Authorization',
@@ -3244,17 +3420,18 @@ export const clonePreset = <ThrowOnError extends boolean = false>(options: Optio
3244
3420
  ...options,
3245
3421
  headers: {
3246
3422
  'Content-Type': 'application/json',
3247
- ...options?.headers
3423
+ ...options.headers
3248
3424
  }
3249
3425
  });
3250
3426
  };
3251
3427
 
3252
3428
  /**
3253
3429
  * Connect CIQ account with DocuSign
3430
+ *
3254
3431
  * Connect CIQ account with DocuSign.
3255
3432
  */
3256
- export const obtainConsent = <ThrowOnError extends boolean = false>(options?: Options<ObtainConsent_Data, ThrowOnError>) => {
3257
- return (options?.client ?? _heyApiClient).get<unknown, unknown, ThrowOnError>({
3433
+ export const obtainConsent = <ThrowOnError extends boolean = false>(options?: Options<obtainConsentData, ThrowOnError>) => {
3434
+ return (options?.client ?? client).get<unknown, unknown, ThrowOnError>({
3258
3435
  security: [
3259
3436
  {
3260
3437
  name: 'Authorization',
@@ -3268,10 +3445,11 @@ export const obtainConsent = <ThrowOnError extends boolean = false>(options?: Op
3268
3445
 
3269
3446
  /**
3270
3447
  * Determine whether an auxiliary document has been uploaded, or not
3448
+ *
3271
3449
  * Determine whether an auxiliary document has been uploaded, or not.
3272
3450
  */
3273
- export const checkAuxiliaryDocument = <ThrowOnError extends boolean = false>(options: Options<CheckAuxiliaryDocument_Data, ThrowOnError>) => {
3274
- return (options.client ?? _heyApiClient).get<CheckAuxiliaryDocument_Response, unknown, ThrowOnError>({
3451
+ export const checkAuxiliaryDocument = <ThrowOnError extends boolean = false>(options: Options<checkAuxiliaryDocumentData, ThrowOnError>) => {
3452
+ return (options.client ?? client).get<checkAuxiliaryDocumentResponses, checkAuxiliaryDocumentErrors, ThrowOnError>({
3275
3453
  security: [
3276
3454
  {
3277
3455
  name: 'Authorization',
@@ -3285,10 +3463,11 @@ export const checkAuxiliaryDocument = <ThrowOnError extends boolean = false>(opt
3285
3463
 
3286
3464
  /**
3287
3465
  * View a paginated list of documents available to an account user
3466
+ *
3288
3467
  * Paginated list of documents that can be downloaded, with a list of supported extensions for each one.
3289
3468
  */
3290
- export const listDocumentsWithPagination = <ThrowOnError extends boolean = false>(options: Options<ListDocumentsWithPagination_Data, ThrowOnError>) => {
3291
- return (options.client ?? _heyApiClient).get<ListDocumentsWithPagination_Response, unknown, ThrowOnError>({
3469
+ export const listDocumentsWithPagination = <ThrowOnError extends boolean = false>(options: Options<listDocumentsWithPaginationData, ThrowOnError>) => {
3470
+ return (options.client ?? client).get<listDocumentsWithPaginationResponses, unknown, ThrowOnError>({
3292
3471
  security: [
3293
3472
  {
3294
3473
  name: 'Authorization',
@@ -3302,10 +3481,11 @@ export const listDocumentsWithPagination = <ThrowOnError extends boolean = false
3302
3481
 
3303
3482
  /**
3304
3483
  * View your email preferences
3484
+ *
3305
3485
  * View your email preferences.
3306
3486
  */
3307
- export const emailPreferences = <ThrowOnError extends boolean = false>(options?: Options<EmailPreferences_Data, ThrowOnError>) => {
3308
- return (options?.client ?? _heyApiClient).get<EmailPreferences_Response, unknown, ThrowOnError>({
3487
+ export const emailPreferences = <ThrowOnError extends boolean = false>(options?: Options<emailPreferencesData, ThrowOnError>) => {
3488
+ return (options?.client ?? client).get<emailPreferencesResponses, unknown, ThrowOnError>({
3309
3489
  security: [
3310
3490
  {
3311
3491
  name: 'Authorization',
@@ -3319,10 +3499,11 @@ export const emailPreferences = <ThrowOnError extends boolean = false>(options?:
3319
3499
 
3320
3500
  /**
3321
3501
  * Submit partial or complete changes to your email preferences
3502
+ *
3322
3503
  * Submit partial or complete changes to your email preferences.
3323
3504
  */
3324
- export const patchEmailPreferences = <ThrowOnError extends boolean = false>(options: Options<PatchEmailPreferences_Data, ThrowOnError>) => {
3325
- return (options.client ?? _heyApiClient).patch<unknown, unknown, ThrowOnError>({
3505
+ export const patchEmailPreferences = <ThrowOnError extends boolean = false>(options: Options<patchEmailPreferencesData, ThrowOnError>) => {
3506
+ return (options.client ?? client).patch<patchEmailPreferencesResponses, unknown, ThrowOnError>({
3326
3507
  security: [
3327
3508
  {
3328
3509
  name: 'Authorization',
@@ -3333,17 +3514,18 @@ export const patchEmailPreferences = <ThrowOnError extends boolean = false>(opti
3333
3514
  ...options,
3334
3515
  headers: {
3335
3516
  'Content-Type': 'application/json',
3336
- ...options?.headers
3517
+ ...options.headers
3337
3518
  }
3338
3519
  });
3339
3520
  };
3340
3521
 
3341
3522
  /**
3342
3523
  * Confirm the execution version of a negotiation
3524
+ *
3343
3525
  * Confirm the execution version of a negotiation.
3344
3526
  */
3345
- export const confirmExecutionVersion = <ThrowOnError extends boolean = false>(options: Options<ConfirmExecutionVersion_Data, ThrowOnError>) => {
3346
- return (options.client ?? _heyApiClient).put<ConfirmExecutionVersion_Response, unknown, ThrowOnError>({
3527
+ export const confirmExecutionVersion = <ThrowOnError extends boolean = false>(options: Options<confirmExecutionVersionData, ThrowOnError>) => {
3528
+ return (options.client ?? client).put<confirmExecutionVersionResponses, confirmExecutionVersionErrors, ThrowOnError>({
3347
3529
  security: [
3348
3530
  {
3349
3531
  name: 'Authorization',
@@ -3357,10 +3539,11 @@ export const confirmExecutionVersion = <ThrowOnError extends boolean = false>(op
3357
3539
 
3358
3540
  /**
3359
3541
  * View a list of the presets in a Sub-Account
3542
+ *
3360
3543
  * View a list of the presets in a Sub-Account.
3361
3544
  */
3362
- export const listAllPresetsForSubAccountV2 = <ThrowOnError extends boolean = false>(options: Options<ListAllPresetsForSubAccountV2_Data, ThrowOnError>) => {
3363
- return (options.client ?? _heyApiClient).get<ListAllPresetsForSubAccountV2_Response, unknown, ThrowOnError>({
3545
+ export const listAllPresetsForSubAccountV2 = <ThrowOnError extends boolean = false>(options: Options<listAllPresetsForSubAccountV2Data, ThrowOnError>) => {
3546
+ return (options.client ?? client).get<listAllPresetsForSubAccountV2Responses, unknown, ThrowOnError>({
3364
3547
  security: [
3365
3548
  {
3366
3549
  name: 'Authorization',
@@ -3374,10 +3557,11 @@ export const listAllPresetsForSubAccountV2 = <ThrowOnError extends boolean = fal
3374
3557
 
3375
3558
  /**
3376
3559
  * List uploaded invite attachments for a negotiation
3560
+ *
3377
3561
  * List uploaded invite attachments for a negotiation.
3378
3562
  */
3379
- export const listExternalAttachments = <ThrowOnError extends boolean = false>(options: Options<ListExternalAttachments_Data, ThrowOnError>) => {
3380
- return (options.client ?? _heyApiClient).get<ListExternalAttachments_Response, unknown, ThrowOnError>({
3563
+ export const listExternalAttachments = <ThrowOnError extends boolean = false>(options: Options<listExternalAttachmentsData, ThrowOnError>) => {
3564
+ return (options.client ?? client).get<listExternalAttachmentsResponses, listExternalAttachmentsErrors, ThrowOnError>({
3381
3565
  security: [
3382
3566
  {
3383
3567
  name: 'Authorization',
@@ -3391,10 +3575,11 @@ export const listExternalAttachments = <ThrowOnError extends boolean = false>(op
3391
3575
 
3392
3576
  /**
3393
3577
  * Upload one or more invite attachments for a negotiation
3578
+ *
3394
3579
  * Upload one or more invite attachments for a negotiation.
3395
3580
  */
3396
- export const setExternalAttachments = <ThrowOnError extends boolean = false>(options: Options<SetExternalAttachments_Data, ThrowOnError>) => {
3397
- return (options.client ?? _heyApiClient).post<SetExternalAttachments_Response, unknown, ThrowOnError>({
3581
+ export const setExternalAttachments = <ThrowOnError extends boolean = false>(options: Options<setExternalAttachmentsData, ThrowOnError>) => {
3582
+ return (options.client ?? client).post<setExternalAttachmentsResponses, setExternalAttachmentsErrors, ThrowOnError>({
3398
3583
  ...formDataBodySerializer,
3399
3584
  security: [
3400
3585
  {
@@ -3406,17 +3591,19 @@ export const setExternalAttachments = <ThrowOnError extends boolean = false>(opt
3406
3591
  ...options,
3407
3592
  headers: {
3408
3593
  'Content-Type': null,
3409
- ...options?.headers
3594
+ ...options.headers
3410
3595
  }
3411
3596
  });
3412
3597
  };
3413
3598
 
3414
3599
  /**
3415
3600
  * Upload an invite attachment for a negotiation
3601
+ *
3416
3602
  * Upload an invite attachment for a negotiation.
3417
3603
  */
3418
- export const setExternalAttachment = <ThrowOnError extends boolean = false>(options: Options<SetExternalAttachment_Data, ThrowOnError>) => {
3419
- return (options.client ?? _heyApiClient).put<SetExternalAttachment_Response, unknown, ThrowOnError>({
3604
+ export const setExternalAttachment = <ThrowOnError extends boolean = false>(options: Options<setExternalAttachmentData, ThrowOnError>) => {
3605
+ return (options.client ?? client).put<setExternalAttachmentResponses, setExternalAttachmentErrors, ThrowOnError>({
3606
+ bodySerializer: null,
3420
3607
  security: [
3421
3608
  {
3422
3609
  name: 'Authorization',
@@ -3427,17 +3614,18 @@ export const setExternalAttachment = <ThrowOnError extends boolean = false>(opti
3427
3614
  ...options,
3428
3615
  headers: {
3429
3616
  'Content-Type': 'application/octet-stream',
3430
- ...options?.headers
3617
+ ...options.headers
3431
3618
  }
3432
3619
  });
3433
3620
  };
3434
3621
 
3435
3622
  /**
3436
3623
  * Generate the audit trail for a Sub-Account as XLSX and send the download email
3624
+ *
3437
3625
  * Generate the audit trail for a Sub-Account as XLSX and send the download email.
3438
3626
  */
3439
- export const generateAuditTrailForSubAccountAsExcel = <ThrowOnError extends boolean = false>(options: Options<GenerateAuditTrailForSubAccountAsExcel_Data, ThrowOnError>) => {
3440
- return (options.client ?? _heyApiClient).get<unknown, unknown, ThrowOnError>({
3627
+ export const generateAuditTrailForSubAccountAsExcel = <ThrowOnError extends boolean = false>(options: Options<generateAuditTrailForSubAccountAsExcelData, ThrowOnError>) => {
3628
+ return (options.client ?? client).get<generateAuditTrailForSubAccountAsExcelResponses, unknown, ThrowOnError>({
3441
3629
  security: [
3442
3630
  {
3443
3631
  name: 'Authorization',
@@ -3451,10 +3639,11 @@ export const generateAuditTrailForSubAccountAsExcel = <ThrowOnError extends bool
3451
3639
 
3452
3640
  /**
3453
3641
  * Validates sets of proposed receiver email addresses to be used in bulk creation
3642
+ *
3454
3643
  * Validates sets of proposed receiver email addresses to be used in bulk creation.
3455
3644
  */
3456
- export const validateDraftReceiverEmails = <ThrowOnError extends boolean = false>(options: Options<ValidateDraftReceiverEmails_Data, ThrowOnError>) => {
3457
- return (options.client ?? _heyApiClient).post<ValidateDraftReceiverEmails_Response, unknown, ThrowOnError>({
3645
+ export const validateDraftReceiverEmails = <ThrowOnError extends boolean = false>(options: Options<validateDraftReceiverEmailsData, ThrowOnError>) => {
3646
+ return (options.client ?? client).post<validateDraftReceiverEmailsResponses, unknown, ThrowOnError>({
3458
3647
  security: [
3459
3648
  {
3460
3649
  name: 'Authorization',
@@ -3465,17 +3654,18 @@ export const validateDraftReceiverEmails = <ThrowOnError extends boolean = false
3465
3654
  ...options,
3466
3655
  headers: {
3467
3656
  'Content-Type': 'application/json',
3468
- ...options?.headers
3657
+ ...options.headers
3469
3658
  }
3470
3659
  });
3471
3660
  };
3472
3661
 
3473
3662
  /**
3474
3663
  * Download post execution pack zip including executed version of the document, negotiation audit trail, schedule files (optional) and additional files (optional) for all parties as PDFs
3664
+ *
3475
3665
  * Download post execution pack zip including executed version of the document, negotiation audit trail, schedule files (optional) and additional files (optional) for all parties as PDFs.
3476
3666
  */
3477
- export const downloadPostExecutionPack = <ThrowOnError extends boolean = false>(options: Options<DownloadPostExecutionPack_Data, ThrowOnError>) => {
3478
- return (options.client ?? _heyApiClient).get<DownloadPostExecutionPack_Response, unknown, ThrowOnError>({
3667
+ export const downloadPostExecutionPack = <ThrowOnError extends boolean = false>(options: Options<downloadPostExecutionPackData, ThrowOnError>) => {
3668
+ return (options.client ?? client).get<downloadPostExecutionPackResponses, unknown, ThrowOnError>({
3479
3669
  security: [
3480
3670
  {
3481
3671
  name: 'Authorization',
@@ -3489,10 +3679,11 @@ export const downloadPostExecutionPack = <ThrowOnError extends boolean = false>(
3489
3679
 
3490
3680
  /**
3491
3681
  * Mark approval comments associated with a negotiation and requesting user as read
3682
+ *
3492
3683
  * Mark approval comments associated with a negotiation and requesting user as read.
3493
3684
  */
3494
- export const markApprovalCommentsAsViewed = <ThrowOnError extends boolean = false>(options: Options<MarkApprovalCommentsAsViewed_Data, ThrowOnError>) => {
3495
- return (options.client ?? _heyApiClient).put<unknown, unknown, ThrowOnError>({
3685
+ export const markApprovalCommentsAsViewed = <ThrowOnError extends boolean = false>(options: Options<markApprovalCommentsAsViewedData, ThrowOnError>) => {
3686
+ return (options.client ?? client).put<markApprovalCommentsAsViewedResponses, markApprovalCommentsAsViewedErrors, ThrowOnError>({
3496
3687
  security: [
3497
3688
  {
3498
3689
  name: 'Authorization',
@@ -3503,17 +3694,18 @@ export const markApprovalCommentsAsViewed = <ThrowOnError extends boolean = fals
3503
3694
  ...options,
3504
3695
  headers: {
3505
3696
  'Content-Type': 'application/json',
3506
- ...options?.headers
3697
+ ...options.headers
3507
3698
  }
3508
3699
  });
3509
3700
  };
3510
3701
 
3511
3702
  /**
3512
3703
  * Accept the counterparty position for a specific election
3704
+ *
3513
3705
  * Accept the counterparty position for a specific election.
3514
3706
  */
3515
- export const acceptCounterpartyPosition = <ThrowOnError extends boolean = false>(options: Options<AcceptCounterpartyPosition_Data, ThrowOnError>) => {
3516
- return (options.client ?? _heyApiClient).put<AcceptCounterpartyPosition_Response, unknown, ThrowOnError>({
3707
+ export const acceptCounterpartyPosition = <ThrowOnError extends boolean = false>(options: Options<acceptCounterpartyPositionData, ThrowOnError>) => {
3708
+ return (options.client ?? client).put<acceptCounterpartyPositionResponses, acceptCounterpartyPositionErrors, ThrowOnError>({
3517
3709
  security: [
3518
3710
  {
3519
3711
  name: 'Authorization',
@@ -3527,10 +3719,11 @@ export const acceptCounterpartyPosition = <ThrowOnError extends boolean = false>
3527
3719
 
3528
3720
  /**
3529
3721
  * Cancel selected negotiations
3722
+ *
3530
3723
  * Cancel selected negotiations.
3531
3724
  */
3532
- export const cancelNegotiations = <ThrowOnError extends boolean = false>(options: Options<CancelNegotiations_Data, ThrowOnError>) => {
3533
- return (options.client ?? _heyApiClient).put<CancelNegotiations_Response, unknown, ThrowOnError>({
3725
+ export const cancelNegotiations = <ThrowOnError extends boolean = false>(options: Options<cancelNegotiationsData, ThrowOnError>) => {
3726
+ return (options.client ?? client).put<cancelNegotiationsResponses, unknown, ThrowOnError>({
3534
3727
  security: [
3535
3728
  {
3536
3729
  name: 'Authorization',
@@ -3541,17 +3734,18 @@ export const cancelNegotiations = <ThrowOnError extends boolean = false>(options
3541
3734
  ...options,
3542
3735
  headers: {
3543
3736
  'Content-Type': 'application/json',
3544
- ...options?.headers
3737
+ ...options.headers
3545
3738
  }
3546
3739
  });
3547
3740
  };
3548
3741
 
3549
3742
  /**
3550
3743
  * Get any drafting notes for a negotiations document - includes external notes set by the initiator
3744
+ *
3551
3745
  * Get any drafting notes for a negotiations document - includes external notes set by the initiator.
3552
3746
  */
3553
- export const getNegotiationDraftingNotes = <ThrowOnError extends boolean = false>(options: Options<GetNegotiationDraftingNotes_Data, ThrowOnError>) => {
3554
- return (options.client ?? _heyApiClient).get<GetNegotiationDraftingNotes_Response, unknown, ThrowOnError>({
3747
+ export const getNegotiationDraftingNotes = <ThrowOnError extends boolean = false>(options: Options<getNegotiationDraftingNotesData, ThrowOnError>) => {
3748
+ return (options.client ?? client).get<getNegotiationDraftingNotesResponses, unknown, ThrowOnError>({
3555
3749
  security: [
3556
3750
  {
3557
3751
  name: 'Authorization',
@@ -3565,10 +3759,11 @@ export const getNegotiationDraftingNotes = <ThrowOnError extends boolean = false
3565
3759
 
3566
3760
  /**
3567
3761
  * View your available audit log filters
3762
+ *
3568
3763
  * View your available audit log filters.
3569
3764
  */
3570
- export const auditTrailFilters = <ThrowOnError extends boolean = false>(options?: Options<AuditTrailFilters_Data, ThrowOnError>) => {
3571
- return (options?.client ?? _heyApiClient).get<AuditTrailFilters_Response, unknown, ThrowOnError>({
3765
+ export const auditTrailFilters = <ThrowOnError extends boolean = false>(options?: Options<auditTrailFiltersData, ThrowOnError>) => {
3766
+ return (options?.client ?? client).get<auditTrailFiltersResponses, unknown, ThrowOnError>({
3572
3767
  security: [
3573
3768
  {
3574
3769
  name: 'Authorization',
@@ -3582,10 +3777,11 @@ export const auditTrailFilters = <ThrowOnError extends boolean = false>(options?
3582
3777
 
3583
3778
  /**
3584
3779
  * Use generative AI to summarise negotiation comments
3780
+ *
3585
3781
  * Use generative AI to summarise negotiation comments. Generates summaries for a specified set of comments.
3586
3782
  */
3587
- export const getCommentSummary = <ThrowOnError extends boolean = false>(options: Options<GetCommentSummary_Data, ThrowOnError>) => {
3588
- return (options.client ?? _heyApiClient).get<unknown, unknown, ThrowOnError>({
3783
+ export const getCommentSummary = <ThrowOnError extends boolean = false>(options: Options<getCommentSummaryData, ThrowOnError>) => {
3784
+ return (options.client ?? client).get<getCommentSummaryResponses, getCommentSummaryErrors, ThrowOnError>({
3589
3785
  security: [
3590
3786
  {
3591
3787
  name: 'Authorization',
@@ -3599,10 +3795,11 @@ export const getCommentSummary = <ThrowOnError extends boolean = false>(options:
3599
3795
 
3600
3796
  /**
3601
3797
  * Delete an execution attachment from a negotiation
3798
+ *
3602
3799
  * Delete an execution attachment from a negotiation.
3603
3800
  */
3604
- export const deleteExecutionAttachment = <ThrowOnError extends boolean = false>(options: Options<DeleteExecutionAttachment_Data, ThrowOnError>) => {
3605
- return (options.client ?? _heyApiClient).delete<DeleteExecutionAttachment_Response, unknown, ThrowOnError>({
3801
+ export const deleteExecutionAttachment = <ThrowOnError extends boolean = false>(options: Options<deleteExecutionAttachmentData, ThrowOnError>) => {
3802
+ return (options.client ?? client).delete<deleteExecutionAttachmentResponses, unknown, ThrowOnError>({
3606
3803
  security: [
3607
3804
  {
3608
3805
  name: 'Authorization',
@@ -3616,10 +3813,11 @@ export const deleteExecutionAttachment = <ThrowOnError extends boolean = false>(
3616
3813
 
3617
3814
  /**
3618
3815
  * Download an execution attachment that has been uploaded for a negotiation
3816
+ *
3619
3817
  * Download an execution attachment that has been uploaded for a negotiation.
3620
3818
  */
3621
- export const getExecutionAttachment = <ThrowOnError extends boolean = false>(options: Options<GetExecutionAttachment_Data, ThrowOnError>) => {
3622
- return (options.client ?? _heyApiClient).get<GetExecutionAttachment_Response, unknown, ThrowOnError>({
3819
+ export const getExecutionAttachment = <ThrowOnError extends boolean = false>(options: Options<getExecutionAttachmentData, ThrowOnError>) => {
3820
+ return (options.client ?? client).get<getExecutionAttachmentResponses, getExecutionAttachmentErrors, ThrowOnError>({
3623
3821
  security: [
3624
3822
  {
3625
3823
  name: 'Authorization',
@@ -3633,10 +3831,11 @@ export const getExecutionAttachment = <ThrowOnError extends boolean = false>(opt
3633
3831
 
3634
3832
  /**
3635
3833
  * Assign a new approver to every approval for which an existing user is already an approver
3834
+ *
3636
3835
  * Sync a given user to all the approval rules of an existing user for templates and in-flight and future negotiations. Optionally, replace a previous approver or restrict to a specific sub-account.
3637
3836
  */
3638
- export const syncNewApprover = <ThrowOnError extends boolean = false>(options: Options<SyncNewApprover_Data, ThrowOnError>) => {
3639
- return (options.client ?? _heyApiClient).put<unknown, unknown, ThrowOnError>({
3837
+ export const syncNewApprover = <ThrowOnError extends boolean = false>(options: Options<syncNewApproverData, ThrowOnError>) => {
3838
+ return (options.client ?? client).put<syncNewApproverResponses, unknown, ThrowOnError>({
3640
3839
  security: [
3641
3840
  {
3642
3841
  name: 'Authorization',
@@ -3647,17 +3846,18 @@ export const syncNewApprover = <ThrowOnError extends boolean = false>(options: O
3647
3846
  ...options,
3648
3847
  headers: {
3649
3848
  'Content-Type': 'application/json',
3650
- ...options?.headers
3849
+ ...options.headers
3651
3850
  }
3652
3851
  });
3653
3852
  };
3654
3853
 
3655
3854
  /**
3656
3855
  * Get the value for multiple nested answers
3856
+ *
3657
3857
  * Get the value for multiple nested answers, used in umbrella agreements.
3658
3858
  */
3659
- export const getMultipleNestedAnswers = <ThrowOnError extends boolean = false>(options: Options<GetMultipleNestedAnswers_Data, ThrowOnError>) => {
3660
- return (options.client ?? _heyApiClient).post<GetMultipleNestedAnswers_Response, unknown, ThrowOnError>({
3859
+ export const getMultipleNestedAnswers = <ThrowOnError extends boolean = false>(options: Options<getMultipleNestedAnswersData, ThrowOnError>) => {
3860
+ return (options.client ?? client).post<getMultipleNestedAnswersResponses, getMultipleNestedAnswersErrors, ThrowOnError>({
3661
3861
  security: [
3662
3862
  {
3663
3863
  name: 'Authorization',
@@ -3668,17 +3868,18 @@ export const getMultipleNestedAnswers = <ThrowOnError extends boolean = false>(o
3668
3868
  ...options,
3669
3869
  headers: {
3670
3870
  'Content-Type': 'application/json',
3671
- ...options?.headers
3871
+ ...options.headers
3672
3872
  }
3673
3873
  });
3674
3874
  };
3675
3875
 
3676
3876
  /**
3677
3877
  * Sets the values for multiple nested answers
3878
+ *
3678
3879
  * Sets the values for multiple nested answers, used in umbrella agreements.
3679
3880
  */
3680
- export const setMultipleNestedAnswers = <ThrowOnError extends boolean = false>(options: Options<SetMultipleNestedAnswers_Data, ThrowOnError>) => {
3681
- return (options.client ?? _heyApiClient).put<SetMultipleNestedAnswers_Response, unknown, ThrowOnError>({
3881
+ export const setMultipleNestedAnswers = <ThrowOnError extends boolean = false>(options: Options<setMultipleNestedAnswersData, ThrowOnError>) => {
3882
+ return (options.client ?? client).put<setMultipleNestedAnswersResponses, setMultipleNestedAnswersErrors, ThrowOnError>({
3682
3883
  security: [
3683
3884
  {
3684
3885
  name: 'Authorization',
@@ -3689,17 +3890,18 @@ export const setMultipleNestedAnswers = <ThrowOnError extends boolean = false>(o
3689
3890
  ...options,
3690
3891
  headers: {
3691
3892
  'Content-Type': 'application/json',
3692
- ...options?.headers
3893
+ ...options.headers
3693
3894
  }
3694
3895
  });
3695
3896
  };
3696
3897
 
3697
3898
  /**
3698
3899
  * View a document
3900
+ *
3699
3901
  * View a document.
3700
3902
  */
3701
- export const getDocument = <ThrowOnError extends boolean = false>(options: Options<GetDocument_Data, ThrowOnError>) => {
3702
- return (options.client ?? _heyApiClient).get<GetDocument_Response, unknown, ThrowOnError>({
3903
+ export const getDocument = <ThrowOnError extends boolean = false>(options: Options<getDocumentData, ThrowOnError>) => {
3904
+ return (options.client ?? client).get<getDocumentResponses, getDocumentErrors, ThrowOnError>({
3703
3905
  security: [
3704
3906
  {
3705
3907
  name: 'Authorization',
@@ -3713,10 +3915,11 @@ export const getDocument = <ThrowOnError extends boolean = false>(options: Optio
3713
3915
 
3714
3916
  /**
3715
3917
  * List bulk sets for a Sub-Account, and their bulk set ID
3918
+ *
3716
3919
  * List bulk sets for a Sub-Account, and their bulk set ID.
3717
3920
  */
3718
- export const listBulkSets = <ThrowOnError extends boolean = false>(options: Options<ListBulkSets_Data, ThrowOnError>) => {
3719
- return (options.client ?? _heyApiClient).get<unknown, unknown, ThrowOnError>({
3921
+ export const listBulkSets = <ThrowOnError extends boolean = false>(options: Options<listBulkSetsData, ThrowOnError>) => {
3922
+ return (options.client ?? client).get<listBulkSetsResponses, unknown, ThrowOnError>({
3720
3923
  security: [
3721
3924
  {
3722
3925
  name: 'Authorization',
@@ -3730,10 +3933,11 @@ export const listBulkSets = <ThrowOnError extends boolean = false>(options: Opti
3730
3933
 
3731
3934
  /**
3732
3935
  * Create a bulk set
3936
+ *
3733
3937
  * Create a bulk set.
3734
3938
  */
3735
- export const createBulkSet = <ThrowOnError extends boolean = false>(options: Options<CreateBulkSet_Data, ThrowOnError>) => {
3736
- return (options.client ?? _heyApiClient).post<CreateBulkSet_Response, unknown, ThrowOnError>({
3939
+ export const createBulkSet = <ThrowOnError extends boolean = false>(options: Options<createBulkSetData, ThrowOnError>) => {
3940
+ return (options.client ?? client).post<createBulkSetResponses, unknown, ThrowOnError>({
3737
3941
  security: [
3738
3942
  {
3739
3943
  name: 'Authorization',
@@ -3744,17 +3948,18 @@ export const createBulkSet = <ThrowOnError extends boolean = false>(options: Opt
3744
3948
  ...options,
3745
3949
  headers: {
3746
3950
  'Content-Type': 'application/json',
3747
- ...options?.headers
3951
+ ...options.headers
3748
3952
  }
3749
3953
  });
3750
3954
  };
3751
3955
 
3752
3956
  /**
3753
3957
  * Add an approval comment on a negotiation
3958
+ *
3754
3959
  * Add an approval comment on a negotiation.
3755
3960
  */
3756
- export const addApprovalComment = <ThrowOnError extends boolean = false>(options: Options<AddApprovalComment_Data, ThrowOnError>) => {
3757
- return (options.client ?? _heyApiClient).post<AddApprovalComment_Response, unknown, ThrowOnError>({
3961
+ export const addApprovalComment = <ThrowOnError extends boolean = false>(options: Options<addApprovalCommentData, ThrowOnError>) => {
3962
+ return (options.client ?? client).post<addApprovalCommentResponses, addApprovalCommentErrors, ThrowOnError>({
3758
3963
  security: [
3759
3964
  {
3760
3965
  name: 'Authorization',
@@ -3765,17 +3970,18 @@ export const addApprovalComment = <ThrowOnError extends boolean = false>(options
3765
3970
  ...options,
3766
3971
  headers: {
3767
3972
  'Content-Type': 'application/json',
3768
- ...options?.headers
3973
+ ...options.headers
3769
3974
  }
3770
3975
  });
3771
3976
  };
3772
3977
 
3773
3978
  /**
3774
3979
  * View a list of the active users in a Sub-Account.
3980
+ *
3775
3981
  * View a list of the active users in a Sub-Account. Returns a minimal set of data for the user picker. Returns only fully-registered users.
3776
3982
  */
3777
- export const getUsersForPicker = <ThrowOnError extends boolean = false>(options: Options<GetUsersForPicker_Data, ThrowOnError>) => {
3778
- return (options.client ?? _heyApiClient).get<GetUsersForPicker_Response, unknown, ThrowOnError>({
3983
+ export const getUsersForPicker = <ThrowOnError extends boolean = false>(options: Options<getUsersForPickerData, ThrowOnError>) => {
3984
+ return (options.client ?? client).get<getUsersForPickerResponses, getUsersForPickerErrors, ThrowOnError>({
3779
3985
  security: [
3780
3986
  {
3781
3987
  name: 'Authorization',
@@ -3789,10 +3995,11 @@ export const getUsersForPicker = <ThrowOnError extends boolean = false>(options:
3789
3995
 
3790
3996
  /**
3791
3997
  * Extract answers from the offline negotiated document linked to the negotiation
3998
+ *
3792
3999
  * Extract answers from the offline negotiated document linked to the negotiation.
3793
4000
  */
3794
- export const scheduleExtraction = <ThrowOnError extends boolean = false>(options: Options<ScheduleExtraction_Data, ThrowOnError>) => {
3795
- return (options.client ?? _heyApiClient).put<ScheduleExtraction_Response, unknown, ThrowOnError>({
4001
+ export const scheduleExtraction = <ThrowOnError extends boolean = false>(options: Options<scheduleExtractionData, ThrowOnError>) => {
4002
+ return (options.client ?? client).put<scheduleExtractionResponses, scheduleExtractionErrors, ThrowOnError>({
3796
4003
  security: [
3797
4004
  {
3798
4005
  name: 'Authorization',
@@ -3806,10 +4013,11 @@ export const scheduleExtraction = <ThrowOnError extends boolean = false>(options
3806
4013
 
3807
4014
  /**
3808
4015
  * Approve a request to grant access to a workspace.
4016
+ *
3809
4017
  * Approve a request to grant access to a workspace.
3810
4018
  */
3811
- export const approveAccessRequest = <ThrowOnError extends boolean = false>(options: Options<ApproveAccessRequest_Data, ThrowOnError>) => {
3812
- return (options.client ?? _heyApiClient).put<ApproveAccessRequest_Response, unknown, ThrowOnError>({
4019
+ export const approveAccessRequest = <ThrowOnError extends boolean = false>(options: Options<approveAccessRequestData, ThrowOnError>) => {
4020
+ return (options.client ?? client).put<approveAccessRequestResponses, approveAccessRequestErrors, ThrowOnError>({
3813
4021
  security: [
3814
4022
  {
3815
4023
  name: 'Authorization',
@@ -3823,10 +4031,11 @@ export const approveAccessRequest = <ThrowOnError extends boolean = false>(optio
3823
4031
 
3824
4032
  /**
3825
4033
  * Get the names of the matching items for the specified free text under a particular `filter`
4034
+ *
3826
4035
  * Get the names of the matching items for the specified free text under a particular `filter`.
3827
4036
  */
3828
- export const negotiationsFilter = <ThrowOnError extends boolean = false>(options: Options<NegotiationsFilter_Data, ThrowOnError>) => {
3829
- return (options.client ?? _heyApiClient).get<NegotiationsFilter_Response, unknown, ThrowOnError>({
4037
+ export const negotiationsFilter = <ThrowOnError extends boolean = false>(options: Options<negotiationsFilterData, ThrowOnError>) => {
4038
+ return (options.client ?? client).get<negotiationsFilterResponses, negotiationsFilterErrors, ThrowOnError>({
3830
4039
  security: [
3831
4040
  {
3832
4041
  name: 'Authorization',
@@ -3840,10 +4049,11 @@ export const negotiationsFilter = <ThrowOnError extends boolean = false>(options
3840
4049
 
3841
4050
  /**
3842
4051
  * Download the audit trail for a negotiation as a XLSX
4052
+ *
3843
4053
  * Download the audit trail for a negotiation as a XLSX.
3844
4054
  */
3845
- export const createAuditTrailXlsx = <ThrowOnError extends boolean = false>(options: Options<CreateAuditTrailXlsx_Data, ThrowOnError>) => {
3846
- return (options.client ?? _heyApiClient).get<CreateAuditTrailXlsx_Response, unknown, ThrowOnError>({
4055
+ export const createAuditTrailXLSX = <ThrowOnError extends boolean = false>(options: Options<createAuditTrailXLSXData, ThrowOnError>) => {
4056
+ return (options.client ?? client).get<createAuditTrailXLSXResponses, unknown, ThrowOnError>({
3847
4057
  security: [
3848
4058
  {
3849
4059
  name: 'Authorization',
@@ -3857,10 +4067,11 @@ export const createAuditTrailXlsx = <ThrowOnError extends boolean = false>(optio
3857
4067
 
3858
4068
  /**
3859
4069
  * Apply a preset to a negotiation
4070
+ *
3860
4071
  * Apply a preset to a negotiation.
3861
4072
  */
3862
- export const setPreset = <ThrowOnError extends boolean = false>(options: Options<SetPreset_Data, ThrowOnError>) => {
3863
- return (options.client ?? _heyApiClient).put<SetPreset_Response, unknown, ThrowOnError>({
4073
+ export const setPreset = <ThrowOnError extends boolean = false>(options: Options<setPresetData, ThrowOnError>) => {
4074
+ return (options.client ?? client).put<setPresetResponses, setPresetErrors, ThrowOnError>({
3864
4075
  security: [
3865
4076
  {
3866
4077
  name: 'Authorization',
@@ -3871,17 +4082,18 @@ export const setPreset = <ThrowOnError extends boolean = false>(options: Options
3871
4082
  ...options,
3872
4083
  headers: {
3873
4084
  'Content-Type': 'application/json',
3874
- ...options?.headers
4085
+ ...options.headers
3875
4086
  }
3876
4087
  });
3877
4088
  };
3878
4089
 
3879
4090
  /**
3880
4091
  * Checks for broken-approver negotiations/presets in connection to a specific user ID
4092
+ *
3881
4093
  * Checks for broken-approver negotiations/presets in connection to a specific user ID. Returns a summary of affected workspaces, and potential replacement users.
3882
4094
  */
3883
- export const checkForBrokenApprovers = <ThrowOnError extends boolean = false>(options: Options<CheckForBrokenApprovers_Data, ThrowOnError>) => {
3884
- return (options.client ?? _heyApiClient).get<CheckForBrokenApprovers_Response, unknown, ThrowOnError>({
4095
+ export const checkForBrokenApprovers = <ThrowOnError extends boolean = false>(options: Options<checkForBrokenApproversData, ThrowOnError>) => {
4096
+ return (options.client ?? client).get<checkForBrokenApproversResponses, unknown, ThrowOnError>({
3885
4097
  security: [
3886
4098
  {
3887
4099
  name: 'Authorization',
@@ -3895,10 +4107,11 @@ export const checkForBrokenApprovers = <ThrowOnError extends boolean = false>(op
3895
4107
 
3896
4108
  /**
3897
4109
  * Delete a bulk set attachment from a bulk set
4110
+ *
3898
4111
  * Delete a bulk set attachment from a bulk set.
3899
4112
  */
3900
- export const deleteBulkSetAttachment = <ThrowOnError extends boolean = false>(options: Options<DeleteBulkSetAttachment_Data, ThrowOnError>) => {
3901
- return (options.client ?? _heyApiClient).delete<DeleteBulkSetAttachment_Response, unknown, ThrowOnError>({
4113
+ export const deleteBulkSetAttachment = <ThrowOnError extends boolean = false>(options: Options<deleteBulkSetAttachmentData, ThrowOnError>) => {
4114
+ return (options.client ?? client).delete<deleteBulkSetAttachmentResponses, unknown, ThrowOnError>({
3902
4115
  security: [
3903
4116
  {
3904
4117
  name: 'Authorization',
@@ -3912,10 +4125,11 @@ export const deleteBulkSetAttachment = <ThrowOnError extends boolean = false>(op
3912
4125
 
3913
4126
  /**
3914
4127
  * Download a bulk set attachment that has been uploaded for a bulk set
4128
+ *
3915
4129
  * Download a bulk set attachment that has been uploaded for a bulk set.
3916
4130
  */
3917
- export const getBulkSetAttachment = <ThrowOnError extends boolean = false>(options: Options<GetBulkSetAttachment_Data, ThrowOnError>) => {
3918
- return (options.client ?? _heyApiClient).get<GetBulkSetAttachment_Response, unknown, ThrowOnError>({
4131
+ export const getBulkSetAttachment = <ThrowOnError extends boolean = false>(options: Options<getBulkSetAttachmentData, ThrowOnError>) => {
4132
+ return (options.client ?? client).get<getBulkSetAttachmentResponses, unknown, ThrowOnError>({
3919
4133
  security: [
3920
4134
  {
3921
4135
  name: 'Authorization',
@@ -3929,10 +4143,11 @@ export const getBulkSetAttachment = <ThrowOnError extends boolean = false>(optio
3929
4143
 
3930
4144
  /**
3931
4145
  * Search for users with negotiation permissions
4146
+ *
3932
4147
  * Returns users who can access a sided negotiation.
3933
4148
  */
3934
- export const usersWithNegotiationAccess = <ThrowOnError extends boolean = false>(options: Options<UsersWithNegotiationAccess_Data, ThrowOnError>) => {
3935
- return (options.client ?? _heyApiClient).get<UsersWithNegotiationAccess_Response, unknown, ThrowOnError>({
4149
+ export const usersWithNegotiationAccess = <ThrowOnError extends boolean = false>(options: Options<usersWithNegotiationAccessData, ThrowOnError>) => {
4150
+ return (options.client ?? client).get<usersWithNegotiationAccessResponses, unknown, ThrowOnError>({
3936
4151
  security: [
3937
4152
  {
3938
4153
  name: 'Authorization',
@@ -3946,10 +4161,11 @@ export const usersWithNegotiationAccess = <ThrowOnError extends boolean = false>
3946
4161
 
3947
4162
  /**
3948
4163
  * View aggregate statistics overview for the requester
4164
+ *
3949
4165
  * View aggregate statistics overview for the requester.
3950
4166
  */
3951
- export const getStatisticsOverview = <ThrowOnError extends boolean = false>(options: Options<GetStatisticsOverview_Data, ThrowOnError>) => {
3952
- return (options.client ?? _heyApiClient).get<GetStatisticsOverview_Response, unknown, ThrowOnError>({
4167
+ export const getStatisticsOverview = <ThrowOnError extends boolean = false>(options: Options<getStatisticsOverviewData, ThrowOnError>) => {
4168
+ return (options.client ?? client).get<getStatisticsOverviewResponses, getStatisticsOverviewErrors, ThrowOnError>({
3953
4169
  security: [
3954
4170
  {
3955
4171
  name: 'Authorization',
@@ -3963,10 +4179,11 @@ export const getStatisticsOverview = <ThrowOnError extends boolean = false>(opti
3963
4179
 
3964
4180
  /**
3965
4181
  * View information about a Sub-Account
4182
+ *
3966
4183
  * View information about a Sub-Account.
3967
4184
  */
3968
- export const getSubAccount = <ThrowOnError extends boolean = false>(options: Options<GetSubAccount_Data, ThrowOnError>) => {
3969
- return (options.client ?? _heyApiClient).get<unknown, unknown, ThrowOnError>({
4185
+ export const getSubAccount = <ThrowOnError extends boolean = false>(options: Options<getSubAccountData, ThrowOnError>) => {
4186
+ return (options.client ?? client).get<getSubAccountResponses, unknown, ThrowOnError>({
3970
4187
  security: [
3971
4188
  {
3972
4189
  name: 'Authorization',
@@ -3980,10 +4197,11 @@ export const getSubAccount = <ThrowOnError extends boolean = false>(options: Opt
3980
4197
 
3981
4198
  /**
3982
4199
  * Update the details of one of your Sub-Accounts
4200
+ *
3983
4201
  * Update the details of one of your Sub-Accounts.
3984
4202
  */
3985
- export const updateSubAccount = <ThrowOnError extends boolean = false>(options: Options<UpdateSubAccount_Data, ThrowOnError>) => {
3986
- return (options.client ?? _heyApiClient).put<unknown, unknown, ThrowOnError>({
4203
+ export const updateSubAccount = <ThrowOnError extends boolean = false>(options: Options<updateSubAccountData, ThrowOnError>) => {
4204
+ return (options.client ?? client).put<updateSubAccountResponses, updateSubAccountErrors, ThrowOnError>({
3987
4205
  security: [
3988
4206
  {
3989
4207
  name: 'Authorization',
@@ -3994,17 +4212,18 @@ export const updateSubAccount = <ThrowOnError extends boolean = false>(options:
3994
4212
  ...options,
3995
4213
  headers: {
3996
4214
  'Content-Type': 'application/json',
3997
- ...options?.headers
4215
+ ...options.headers
3998
4216
  }
3999
4217
  });
4000
4218
  };
4001
4219
 
4002
4220
  /**
4003
4221
  * Submit a preset for approval
4222
+ *
4004
4223
  * Submit the preset for approval.
4005
4224
  */
4006
- export const presetRequestApproval = <ThrowOnError extends boolean = false>(options: Options<PresetRequestApproval_Data, ThrowOnError>) => {
4007
- return (options.client ?? _heyApiClient).put<PresetRequestApproval_Response, unknown, ThrowOnError>({
4225
+ export const presetRequestApproval = <ThrowOnError extends boolean = false>(options: Options<presetRequestApprovalData, ThrowOnError>) => {
4226
+ return (options.client ?? client).put<presetRequestApprovalResponses, presetRequestApprovalErrors, ThrowOnError>({
4008
4227
  security: [
4009
4228
  {
4010
4229
  name: 'Authorization',
@@ -4018,10 +4237,11 @@ export const presetRequestApproval = <ThrowOnError extends boolean = false>(opti
4018
4237
 
4019
4238
  /**
4020
4239
  * Reject a preset that has been sent for approval
4240
+ *
4021
4241
  * Reject a preset that has been sent for approval.
4022
4242
  */
4023
- export const rejectPresetApproval = <ThrowOnError extends boolean = false>(options: Options<RejectPresetApproval_Data, ThrowOnError>) => {
4024
- return (options.client ?? _heyApiClient).put<RejectPresetApproval_Response, unknown, ThrowOnError>({
4243
+ export const rejectPresetApproval = <ThrowOnError extends boolean = false>(options: Options<rejectPresetApprovalData, ThrowOnError>) => {
4244
+ return (options.client ?? client).put<rejectPresetApprovalResponses, rejectPresetApprovalErrors, ThrowOnError>({
4025
4245
  security: [
4026
4246
  {
4027
4247
  name: 'Authorization',
@@ -4032,17 +4252,18 @@ export const rejectPresetApproval = <ThrowOnError extends boolean = false>(optio
4032
4252
  ...options,
4033
4253
  headers: {
4034
4254
  'Content-Type': 'application/json',
4035
- ...options?.headers
4255
+ ...options.headers
4036
4256
  }
4037
4257
  });
4038
4258
  };
4039
4259
 
4040
4260
  /**
4041
4261
  * Set the initiating party's entity for a negotiation
4262
+ *
4042
4263
  * Set the initiating party's entity for a negotiation.
4043
4264
  */
4044
- export const setOwnerEntity = <ThrowOnError extends boolean = false>(options: Options<SetOwnerEntity_Data, ThrowOnError>) => {
4045
- return (options.client ?? _heyApiClient).put<SetOwnerEntity_Response, unknown, ThrowOnError>({
4265
+ export const setOwnerEntity = <ThrowOnError extends boolean = false>(options: Options<setOwnerEntityData, ThrowOnError>) => {
4266
+ return (options.client ?? client).put<setOwnerEntityResponses, setOwnerEntityErrors, ThrowOnError>({
4046
4267
  security: [
4047
4268
  {
4048
4269
  name: 'Authorization',
@@ -4053,17 +4274,18 @@ export const setOwnerEntity = <ThrowOnError extends boolean = false>(options: Op
4053
4274
  ...options,
4054
4275
  headers: {
4055
4276
  'Content-Type': 'application/json',
4056
- ...options?.headers
4277
+ ...options.headers
4057
4278
  }
4058
4279
  });
4059
4280
  };
4060
4281
 
4061
4282
  /**
4062
4283
  * Send a negotiation for either election or document approval, depending on the state of the negotiation
4284
+ *
4063
4285
  * Send a negotiation for either election or document approval, depending on the state of the negotiation.
4064
4286
  */
4065
- export const negotiationSendForApproval = <ThrowOnError extends boolean = false>(options: Options<NegotiationSendForApproval_Data, ThrowOnError>) => {
4066
- return (options.client ?? _heyApiClient).put<NegotiationSendForApproval_Response, unknown, ThrowOnError>({
4287
+ export const negotiationSendForApproval = <ThrowOnError extends boolean = false>(options: Options<negotiationSendForApprovalData, ThrowOnError>) => {
4288
+ return (options.client ?? client).put<negotiationSendForApprovalResponses, negotiationSendForApprovalErrors, ThrowOnError>({
4067
4289
  security: [
4068
4290
  {
4069
4291
  name: 'Authorization',
@@ -4074,17 +4296,18 @@ export const negotiationSendForApproval = <ThrowOnError extends boolean = false>
4074
4296
  ...options,
4075
4297
  headers: {
4076
4298
  'Content-Type': 'application/json',
4077
- ...options?.headers
4299
+ ...options.headers
4078
4300
  }
4079
4301
  });
4080
4302
  };
4081
4303
 
4082
4304
  /**
4083
4305
  * View entities that match a list of search terms
4306
+ *
4084
4307
  * View entities that match a list of search terms.
4085
4308
  */
4086
- export const searchEntity = <ThrowOnError extends boolean = false>(options: Options<SearchEntity_Data, ThrowOnError>) => {
4087
- return (options.client ?? _heyApiClient).get<SearchEntity_Response, unknown, ThrowOnError>({
4309
+ export const searchEntity = <ThrowOnError extends boolean = false>(options: Options<searchEntityData, ThrowOnError>) => {
4310
+ return (options.client ?? client).get<searchEntityResponses, unknown, ThrowOnError>({
4088
4311
  security: [
4089
4312
  {
4090
4313
  name: 'Authorization',
@@ -4098,10 +4321,11 @@ export const searchEntity = <ThrowOnError extends boolean = false>(options: Opti
4098
4321
 
4099
4322
  /**
4100
4323
  * List all the versions of all documents available to you
4324
+ *
4101
4325
  * List all the versions of all documents available to you.
4102
4326
  */
4103
- export const listDocumentsVersionsSummary = <ThrowOnError extends boolean = false>(options: Options<ListDocumentsVersionsSummary_Data, ThrowOnError>) => {
4104
- return (options.client ?? _heyApiClient).get<ListDocumentsVersionsSummary_Response, unknown, ThrowOnError>({
4327
+ export const listDocumentsVersionsSummary = <ThrowOnError extends boolean = false>(options: Options<listDocumentsVersionsSummaryData, ThrowOnError>) => {
4328
+ return (options.client ?? client).get<listDocumentsVersionsSummaryResponses, unknown, ThrowOnError>({
4105
4329
  security: [
4106
4330
  {
4107
4331
  name: 'Authorization',
@@ -4115,10 +4339,11 @@ export const listDocumentsVersionsSummary = <ThrowOnError extends boolean = fals
4115
4339
 
4116
4340
  /**
4117
4341
  * Retract an invitation to negotiate
4342
+ *
4118
4343
  * Cancels an unaccepted invitation to negotiate, and creates a new draft negotiation containing the same values so that errors in the initial invitation can be corrected.
4119
4344
  */
4120
- export const retract = <ThrowOnError extends boolean = false>(options: Options<Retract_Data, ThrowOnError>) => {
4121
- return (options.client ?? _heyApiClient).put<Retract_Response, unknown, ThrowOnError>({
4345
+ export const retract = <ThrowOnError extends boolean = false>(options: Options<retractData, ThrowOnError>) => {
4346
+ return (options.client ?? client).put<retractResponses, retractErrors, ThrowOnError>({
4122
4347
  security: [
4123
4348
  {
4124
4349
  name: 'Authorization',
@@ -4129,17 +4354,18 @@ export const retract = <ThrowOnError extends boolean = false>(options: Options<R
4129
4354
  ...options,
4130
4355
  headers: {
4131
4356
  'Content-Type': 'application/json',
4132
- ...options?.headers
4357
+ ...options.headers
4133
4358
  }
4134
4359
  });
4135
4360
  };
4136
4361
 
4137
4362
  /**
4138
4363
  * Accept the previous positions for all elections of a negotiation at the specified version
4364
+ *
4139
4365
  * Accept the previous positions for all elections of a negotiation at the specified version.
4140
4366
  */
4141
- export const acceptAllPositionsFromPreviousVersion = <ThrowOnError extends boolean = false>(options: Options<AcceptAllPositionsFromPreviousVersion_Data, ThrowOnError>) => {
4142
- return (options.client ?? _heyApiClient).put<AcceptAllPositionsFromPreviousVersion_Response, unknown, ThrowOnError>({
4367
+ export const acceptAllPositionsFromPreviousVersion = <ThrowOnError extends boolean = false>(options: Options<acceptAllPositionsFromPreviousVersionData, ThrowOnError>) => {
4368
+ return (options.client ?? client).put<acceptAllPositionsFromPreviousVersionResponses, acceptAllPositionsFromPreviousVersionErrors, ThrowOnError>({
4143
4369
  security: [
4144
4370
  {
4145
4371
  name: 'Authorization',
@@ -4153,10 +4379,11 @@ export const acceptAllPositionsFromPreviousVersion = <ThrowOnError extends boole
4153
4379
 
4154
4380
  /**
4155
4381
  * Upload an execution attachment for a negotiation
4382
+ *
4156
4383
  * Upload an execution attachment for a negotiation.
4157
4384
  */
4158
- export const renameExecutionAttachment = <ThrowOnError extends boolean = false>(options: Options<RenameExecutionAttachment_Data, ThrowOnError>) => {
4159
- return (options.client ?? _heyApiClient).patch<RenameExecutionAttachment_Response, unknown, ThrowOnError>({
4385
+ export const renameExecutionAttachment = <ThrowOnError extends boolean = false>(options: Options<renameExecutionAttachmentData, ThrowOnError>) => {
4386
+ return (options.client ?? client).patch<renameExecutionAttachmentResponses, renameExecutionAttachmentErrors, ThrowOnError>({
4160
4387
  security: [
4161
4388
  {
4162
4389
  name: 'Authorization',
@@ -4167,17 +4394,18 @@ export const renameExecutionAttachment = <ThrowOnError extends boolean = false>(
4167
4394
  ...options,
4168
4395
  headers: {
4169
4396
  'Content-Type': 'application/json',
4170
- ...options?.headers
4397
+ ...options.headers
4171
4398
  }
4172
4399
  });
4173
4400
  };
4174
4401
 
4175
4402
  /**
4176
4403
  * Get the value for a nested answer
4404
+ *
4177
4405
  * Get the value for a nested answer, used in umbrella agreements.
4178
4406
  */
4179
- export const getNestedAnswers = <ThrowOnError extends boolean = false>(options: Options<GetNestedAnswers_Data, ThrowOnError>) => {
4180
- return (options.client ?? _heyApiClient).get<GetNestedAnswers_Response, unknown, ThrowOnError>({
4407
+ export const getNestedAnswers = <ThrowOnError extends boolean = false>(options: Options<getNestedAnswersData, ThrowOnError>) => {
4408
+ return (options.client ?? client).get<getNestedAnswersResponses, getNestedAnswersErrors, ThrowOnError>({
4181
4409
  security: [
4182
4410
  {
4183
4411
  name: 'Authorization',
@@ -4191,10 +4419,11 @@ export const getNestedAnswers = <ThrowOnError extends boolean = false>(options:
4191
4419
 
4192
4420
  /**
4193
4421
  * Sets the value for a nested answer
4422
+ *
4194
4423
  * Sets the value for a nested answer.
4195
4424
  */
4196
- export const setNestedAnswers = <ThrowOnError extends boolean = false>(options: Options<SetNestedAnswers_Data, ThrowOnError>) => {
4197
- return (options.client ?? _heyApiClient).put<SetNestedAnswers_Response, unknown, ThrowOnError>({
4425
+ export const setNestedAnswers = <ThrowOnError extends boolean = false>(options: Options<setNestedAnswersData, ThrowOnError>) => {
4426
+ return (options.client ?? client).put<setNestedAnswersResponses, setNestedAnswersErrors, ThrowOnError>({
4198
4427
  security: [
4199
4428
  {
4200
4429
  name: 'Authorization',
@@ -4205,17 +4434,18 @@ export const setNestedAnswers = <ThrowOnError extends boolean = false>(options:
4205
4434
  ...options,
4206
4435
  headers: {
4207
4436
  'Content-Type': 'application/json',
4208
- ...options?.headers
4437
+ ...options.headers
4209
4438
  }
4210
4439
  });
4211
4440
  };
4212
4441
 
4213
4442
  /**
4214
4443
  * Get information about a bulk set.
4444
+ *
4215
4445
  * Get information about a bulk set.
4216
4446
  */
4217
- export const getBulkSet = <ThrowOnError extends boolean = false>(options: Options<GetBulkSet_Data, ThrowOnError>) => {
4218
- return (options.client ?? _heyApiClient).get<GetBulkSet_Response, unknown, ThrowOnError>({
4447
+ export const getBulkSet = <ThrowOnError extends boolean = false>(options: Options<getBulkSetData, ThrowOnError>) => {
4448
+ return (options.client ?? client).get<getBulkSetResponses, unknown, ThrowOnError>({
4219
4449
  security: [
4220
4450
  {
4221
4451
  name: 'Authorization',
@@ -4229,10 +4459,11 @@ export const getBulkSet = <ThrowOnError extends boolean = false>(options: Option
4229
4459
 
4230
4460
  /**
4231
4461
  * List execution attachments for a negotiation
4462
+ *
4232
4463
  * List execution attachments for a negotiation.
4233
4464
  */
4234
- export const listExecutionAttachments = <ThrowOnError extends boolean = false>(options: Options<ListExecutionAttachments_Data, ThrowOnError>) => {
4235
- return (options.client ?? _heyApiClient).get<ListExecutionAttachments_Response, unknown, ThrowOnError>({
4465
+ export const listExecutionAttachments = <ThrowOnError extends boolean = false>(options: Options<listExecutionAttachmentsData, ThrowOnError>) => {
4466
+ return (options.client ?? client).get<listExecutionAttachmentsResponses, listExecutionAttachmentsErrors, ThrowOnError>({
4236
4467
  security: [
4237
4468
  {
4238
4469
  name: 'Authorization',
@@ -4246,10 +4477,11 @@ export const listExecutionAttachments = <ThrowOnError extends boolean = false>(o
4246
4477
 
4247
4478
  /**
4248
4479
  * Upload one or more execution attachments for a negotiation
4480
+ *
4249
4481
  * Upload one or more execution attachments for a negotiation.
4250
4482
  */
4251
- export const setExecutionAttachments = <ThrowOnError extends boolean = false>(options: Options<SetExecutionAttachments_Data, ThrowOnError>) => {
4252
- return (options.client ?? _heyApiClient).post<SetExecutionAttachments_Response, unknown, ThrowOnError>({
4483
+ export const setExecutionAttachments = <ThrowOnError extends boolean = false>(options: Options<setExecutionAttachmentsData, ThrowOnError>) => {
4484
+ return (options.client ?? client).post<setExecutionAttachmentsResponses, setExecutionAttachmentsErrors, ThrowOnError>({
4253
4485
  ...formDataBodySerializer,
4254
4486
  security: [
4255
4487
  {
@@ -4261,17 +4493,18 @@ export const setExecutionAttachments = <ThrowOnError extends boolean = false>(op
4261
4493
  ...options,
4262
4494
  headers: {
4263
4495
  'Content-Type': null,
4264
- ...options?.headers
4496
+ ...options.headers
4265
4497
  }
4266
4498
  });
4267
4499
  };
4268
4500
 
4269
4501
  /**
4270
4502
  * Upload an execution attachment for a negotiation
4503
+ *
4271
4504
  * Upload an execution attachment for a negotiation.
4272
4505
  */
4273
- export const setExecutionAttachment = <ThrowOnError extends boolean = false>(options: Options<SetExecutionAttachment_Data, ThrowOnError>) => {
4274
- return (options.client ?? _heyApiClient).put<SetExecutionAttachment_Response, unknown, ThrowOnError>({
4506
+ export const setExecutionAttachment = <ThrowOnError extends boolean = false>(options: Options<setExecutionAttachmentData, ThrowOnError>) => {
4507
+ return (options.client ?? client).put<setExecutionAttachmentResponses, setExecutionAttachmentErrors, ThrowOnError>({
4275
4508
  security: [
4276
4509
  {
4277
4510
  name: 'Authorization',
@@ -4282,17 +4515,18 @@ export const setExecutionAttachment = <ThrowOnError extends boolean = false>(opt
4282
4515
  ...options,
4283
4516
  headers: {
4284
4517
  'Content-Type': 'application/pdf',
4285
- ...options?.headers
4518
+ ...options.headers
4286
4519
  }
4287
4520
  });
4288
4521
  };
4289
4522
 
4290
4523
  /**
4291
4524
  * Determine whether an executed version has been generated, or not
4525
+ *
4292
4526
  * Determine whether an executed version has been generated, or not.
4293
4527
  */
4294
- export const checkSignedExecutedVersion = <ThrowOnError extends boolean = false>(options: Options<CheckSignedExecutedVersion_Data, ThrowOnError>) => {
4295
- return (options.client ?? _heyApiClient).get<CheckSignedExecutedVersion_Response, unknown, ThrowOnError>({
4528
+ export const checkSignedExecutedVersion = <ThrowOnError extends boolean = false>(options: Options<checkSignedExecutedVersionData, ThrowOnError>) => {
4529
+ return (options.client ?? client).get<checkSignedExecutedVersionResponses, checkSignedExecutedVersionErrors, ThrowOnError>({
4296
4530
  security: [
4297
4531
  {
4298
4532
  name: 'Authorization',
@@ -4306,10 +4540,11 @@ export const checkSignedExecutedVersion = <ThrowOnError extends boolean = false>
4306
4540
 
4307
4541
  /**
4308
4542
  * Cancel extraction similarity test that is in progress
4543
+ *
4309
4544
  * Cancel extraction similarity test that is in progress.
4310
4545
  */
4311
- export const cancelExtractionSimilarity = <ThrowOnError extends boolean = false>(options: Options<CancelExtractionSimilarity_Data, ThrowOnError>) => {
4312
- return (options.client ?? _heyApiClient).put<unknown, unknown, ThrowOnError>({
4546
+ export const cancelExtractionSimilarity = <ThrowOnError extends boolean = false>(options: Options<cancelExtractionSimilarityData, ThrowOnError>) => {
4547
+ return (options.client ?? client).put<cancelExtractionSimilarityResponses, cancelExtractionSimilarityErrors, ThrowOnError>({
4313
4548
  security: [
4314
4549
  {
4315
4550
  name: 'Authorization',
@@ -4323,10 +4558,11 @@ export const cancelExtractionSimilarity = <ThrowOnError extends boolean = false>
4323
4558
 
4324
4559
  /**
4325
4560
  * View an election analytics report for all negotiations that you can access in a Sub-Account
4561
+ *
4326
4562
  * View an election analytics report for all negotiations that you can access in a Sub-Account.
4327
4563
  */
4328
- export const getDownloadActiveNegotiationsReportAsExcel = <ThrowOnError extends boolean = false>(options: Options<GetDownloadActiveNegotiationsReportAsExcel_Data, ThrowOnError>) => {
4329
- return (options.client ?? _heyApiClient).get<GetDownloadActiveNegotiationsReportAsExcel_Response, unknown, ThrowOnError>({
4564
+ export const getDownloadActiveNegotiationsReportAsExcel = <ThrowOnError extends boolean = false>(options: Options<getDownloadActiveNegotiationsReportAsExcelData, ThrowOnError>) => {
4565
+ return (options.client ?? client).get<getDownloadActiveNegotiationsReportAsExcelResponses, getDownloadActiveNegotiationsReportAsExcelErrors, ThrowOnError>({
4330
4566
  security: [
4331
4567
  {
4332
4568
  name: 'Authorization',
@@ -4340,10 +4576,11 @@ export const getDownloadActiveNegotiationsReportAsExcel = <ThrowOnError extends
4340
4576
 
4341
4577
  /**
4342
4578
  * Generate the election analytics report for all negotiations for a Sub-Account and send the download email
4579
+ *
4343
4580
  * Generate the election analytics report for all negotiations for a Sub-Account and send the download email.
4344
4581
  */
4345
- export const generateActiveNegotiationsReportAsExcel = <ThrowOnError extends boolean = false>(options: Options<GenerateActiveNegotiationsReportAsExcel_Data, ThrowOnError>) => {
4346
- return (options.client ?? _heyApiClient).post<unknown, unknown, ThrowOnError>({
4582
+ export const generateActiveNegotiationsReportAsExcel = <ThrowOnError extends boolean = false>(options: Options<generateActiveNegotiationsReportAsExcelData, ThrowOnError>) => {
4583
+ return (options.client ?? client).post<generateActiveNegotiationsReportAsExcelResponses, unknown, ThrowOnError>({
4347
4584
  security: [
4348
4585
  {
4349
4586
  name: 'Authorization',
@@ -4354,17 +4591,18 @@ export const generateActiveNegotiationsReportAsExcel = <ThrowOnError extends boo
4354
4591
  ...options,
4355
4592
  headers: {
4356
4593
  'Content-Type': 'application/json',
4357
- ...options?.headers
4594
+ ...options.headers
4358
4595
  }
4359
4596
  });
4360
4597
  };
4361
4598
 
4362
4599
  /**
4363
4600
  * View the phase one answers for a negotiation
4601
+ *
4364
4602
  * View the phase one answers for a negotiation, returns no answers if the negotiation isnt a stage 2 negotiation.
4365
4603
  */
4366
- export const phase1Answers = <ThrowOnError extends boolean = false>(options: Options<Phase1Answers_Data, ThrowOnError>) => {
4367
- return (options.client ?? _heyApiClient).get<Phase1Answers_Response, unknown, ThrowOnError>({
4604
+ export const phase1Answers = <ThrowOnError extends boolean = false>(options: Options<phase1AnswersData, ThrowOnError>) => {
4605
+ return (options.client ?? client).get<phase1AnswersResponses, phase1AnswersErrors, ThrowOnError>({
4368
4606
  security: [
4369
4607
  {
4370
4608
  name: 'Authorization',
@@ -4378,10 +4616,11 @@ export const phase1Answers = <ThrowOnError extends boolean = false>(options: Opt
4378
4616
 
4379
4617
  /**
4380
4618
  * Set one or more counterparties for a negotiation
4619
+ *
4381
4620
  * Set one or more counterparties for a negotiation.
4382
4621
  */
4383
- export const setCounterparties = <ThrowOnError extends boolean = false>(options: Options<SetCounterparties_Data, ThrowOnError>) => {
4384
- return (options.client ?? _heyApiClient).put<SetCounterparties_Response, unknown, ThrowOnError>({
4622
+ export const setCounterparties = <ThrowOnError extends boolean = false>(options: Options<setCounterpartiesData, ThrowOnError>) => {
4623
+ return (options.client ?? client).put<setCounterpartiesResponses, setCounterpartiesErrors, ThrowOnError>({
4385
4624
  security: [
4386
4625
  {
4387
4626
  name: 'Authorization',
@@ -4392,17 +4631,18 @@ export const setCounterparties = <ThrowOnError extends boolean = false>(options:
4392
4631
  ...options,
4393
4632
  headers: {
4394
4633
  'Content-Type': 'application/json',
4395
- ...options?.headers
4634
+ ...options.headers
4396
4635
  }
4397
4636
  });
4398
4637
  };
4399
4638
 
4400
4639
  /**
4401
4640
  * View aggregate statistics for a Sub-Account
4641
+ *
4402
4642
  * View aggregate statistics for a Sub-Account.
4403
4643
  */
4404
- export const getLegacyStatistics = <ThrowOnError extends boolean = false>(options: Options<GetLegacyStatistics_Data, ThrowOnError>) => {
4405
- return (options.client ?? _heyApiClient).get<GetLegacyStatistics_Response, unknown, ThrowOnError>({
4644
+ export const getLegacyStatistics = <ThrowOnError extends boolean = false>(options: Options<getLegacyStatisticsData, ThrowOnError>) => {
4645
+ return (options.client ?? client).get<getLegacyStatisticsResponses, getLegacyStatisticsErrors, ThrowOnError>({
4406
4646
  security: [
4407
4647
  {
4408
4648
  name: 'Authorization',
@@ -4416,10 +4656,11 @@ export const getLegacyStatistics = <ThrowOnError extends boolean = false>(option
4416
4656
 
4417
4657
  /**
4418
4658
  * View a negotiation's timeline, including comments
4659
+ *
4419
4660
  * View a negotiation's timeline, including comments.
4420
4661
  */
4421
- export const getChannelTimeline = <ThrowOnError extends boolean = false>(options: Options<GetChannelTimeline_Data, ThrowOnError>) => {
4422
- return (options.client ?? _heyApiClient).get<unknown, unknown, ThrowOnError>({
4662
+ export const getChannelTimeline = <ThrowOnError extends boolean = false>(options: Options<getChannelTimelineData, ThrowOnError>) => {
4663
+ return (options.client ?? client).get<getChannelTimelineResponses, getChannelTimelineErrors, ThrowOnError>({
4423
4664
  security: [
4424
4665
  {
4425
4666
  name: 'Authorization',
@@ -4433,10 +4674,11 @@ export const getChannelTimeline = <ThrowOnError extends boolean = false>(options
4433
4674
 
4434
4675
  /**
4435
4676
  * See whether CDM is supported for a given document schema
4677
+ *
4436
4678
  * See whether CDM is supported for a given document schema.
4437
4679
  */
4438
- export const schemaAvailableAsCdm = <ThrowOnError extends boolean = false>(options: Options<SchemaAvailableAsCdm_Data, ThrowOnError>) => {
4439
- return (options.client ?? _heyApiClient).get<SchemaAvailableAsCdm_Response, unknown, ThrowOnError>({
4680
+ export const schemaAvailableAsCDM = <ThrowOnError extends boolean = false>(options: Options<schemaAvailableAsCDMData, ThrowOnError>) => {
4681
+ return (options.client ?? client).get<schemaAvailableAsCDMResponses, schemaAvailableAsCDMErrors, ThrowOnError>({
4440
4682
  security: [
4441
4683
  {
4442
4684
  name: 'Authorization',
@@ -4450,10 +4692,11 @@ export const schemaAvailableAsCdm = <ThrowOnError extends boolean = false>(optio
4450
4692
 
4451
4693
  /**
4452
4694
  * Revoke access of client account from CreateiQ Support
4695
+ *
4453
4696
  * Revoke access of client account from CreateiQ Support.
4454
4697
  */
4455
- export const revokeWindow = <ThrowOnError extends boolean = false>(options?: Options<RevokeWindow_Data, ThrowOnError>) => {
4456
- return (options?.client ?? _heyApiClient).delete<unknown, unknown, ThrowOnError>({
4698
+ export const revokeWindow = <ThrowOnError extends boolean = false>(options?: Options<revokeWindowData, ThrowOnError>) => {
4699
+ return (options?.client ?? client).delete<revokeWindowResponses, unknown, ThrowOnError>({
4457
4700
  security: [
4458
4701
  {
4459
4702
  name: 'Authorization',
@@ -4467,10 +4710,11 @@ export const revokeWindow = <ThrowOnError extends boolean = false>(options?: Opt
4467
4710
 
4468
4711
  /**
4469
4712
  * Provides expiry time of CreateiQ Support access for a client account
4713
+ *
4470
4714
  * Provides expiry time of CreateiQ Support access for a client account.
4471
4715
  */
4472
- export const getWindow = <ThrowOnError extends boolean = false>(options?: Options<GetWindow_Data, ThrowOnError>) => {
4473
- return (options?.client ?? _heyApiClient).get<GetWindow_Response, unknown, ThrowOnError>({
4716
+ export const getWindow = <ThrowOnError extends boolean = false>(options?: Options<getWindowData, ThrowOnError>) => {
4717
+ return (options?.client ?? client).get<getWindowResponses, getWindowErrors, ThrowOnError>({
4474
4718
  security: [
4475
4719
  {
4476
4720
  name: 'Authorization',
@@ -4484,10 +4728,11 @@ export const getWindow = <ThrowOnError extends boolean = false>(options?: Option
4484
4728
 
4485
4729
  /**
4486
4730
  * Grants access of client account to CreateiQ Support for 24 hours
4731
+ *
4487
4732
  * Grants access of client account to CreateiQ Support for 24 hours.
4488
4733
  */
4489
- export const grantWindow = <ThrowOnError extends boolean = false>(options?: Options<GrantWindow_Data, ThrowOnError>) => {
4490
- return (options?.client ?? _heyApiClient).post<GrantWindow_Response, unknown, ThrowOnError>({
4734
+ export const grantWindow = <ThrowOnError extends boolean = false>(options?: Options<grantWindowData, ThrowOnError>) => {
4735
+ return (options?.client ?? client).post<grantWindowResponses, grantWindowErrors, ThrowOnError>({
4491
4736
  security: [
4492
4737
  {
4493
4738
  name: 'Authorization',
@@ -4501,10 +4746,11 @@ export const grantWindow = <ThrowOnError extends boolean = false>(options?: Opti
4501
4746
 
4502
4747
  /**
4503
4748
  * Extends access of client account to CreateiQ Support by 24 hours. The maximum duration to which support access can be granted is one week
4749
+ *
4504
4750
  * Extends access of client account to CreateiQ Support by 24 hours. The maximum duration to which support access can be granted is one week.
4505
4751
  */
4506
- export const extendWindow = <ThrowOnError extends boolean = false>(options?: Options<ExtendWindow_Data, ThrowOnError>) => {
4507
- return (options?.client ?? _heyApiClient).put<ExtendWindow_Response, unknown, ThrowOnError>({
4752
+ export const extendWindow = <ThrowOnError extends boolean = false>(options?: Options<extendWindowData, ThrowOnError>) => {
4753
+ return (options?.client ?? client).put<extendWindowResponses, extendWindowErrors, ThrowOnError>({
4508
4754
  security: [
4509
4755
  {
4510
4756
  name: 'Authorization',
@@ -4518,10 +4764,11 @@ export const extendWindow = <ThrowOnError extends boolean = false>(options?: Opt
4518
4764
 
4519
4765
  /**
4520
4766
  * Delete an offline negotiated document from a negotiation
4767
+ *
4521
4768
  * Delete an offline negotiated document from a negotiation.
4522
4769
  */
4523
- export const deleteOfflineNegotiatedDocument = <ThrowOnError extends boolean = false>(options: Options<DeleteOfflineNegotiatedDocument_Data, ThrowOnError>) => {
4524
- return (options.client ?? _heyApiClient).delete<DeleteOfflineNegotiatedDocument_Response, unknown, ThrowOnError>({
4770
+ export const deleteOfflineNegotiatedDocument = <ThrowOnError extends boolean = false>(options: Options<deleteOfflineNegotiatedDocumentData, ThrowOnError>) => {
4771
+ return (options.client ?? client).delete<deleteOfflineNegotiatedDocumentResponses, unknown, ThrowOnError>({
4525
4772
  security: [
4526
4773
  {
4527
4774
  name: 'Authorization',
@@ -4535,10 +4782,11 @@ export const deleteOfflineNegotiatedDocument = <ThrowOnError extends boolean = f
4535
4782
 
4536
4783
  /**
4537
4784
  * Download an uploaded offline negotiated document for a negotiation
4785
+ *
4538
4786
  * Download an uploaded offline negotiated document for a negotiation.
4539
4787
  */
4540
- export const getOfflineNegotiatedDocument = <ThrowOnError extends boolean = false>(options: Options<GetOfflineNegotiatedDocument_Data, ThrowOnError>) => {
4541
- return (options.client ?? _heyApiClient).get<GetOfflineNegotiatedDocument_Response, unknown, ThrowOnError>({
4788
+ export const getOfflineNegotiatedDocument = <ThrowOnError extends boolean = false>(options: Options<getOfflineNegotiatedDocumentData, ThrowOnError>) => {
4789
+ return (options.client ?? client).get<getOfflineNegotiatedDocumentResponses, getOfflineNegotiatedDocumentErrors, ThrowOnError>({
4542
4790
  security: [
4543
4791
  {
4544
4792
  name: 'Authorization',
@@ -4552,10 +4800,11 @@ export const getOfflineNegotiatedDocument = <ThrowOnError extends boolean = fals
4552
4800
 
4553
4801
  /**
4554
4802
  * Upload an offline negotiated document for a negotiation
4803
+ *
4555
4804
  * Upload an offline negotiated document for a negotiation.
4556
4805
  */
4557
- export const setOfflineNegotiatedDocument = <ThrowOnError extends boolean = false>(options: Options<SetOfflineNegotiatedDocument_Data, ThrowOnError>) => {
4558
- return (options.client ?? _heyApiClient).put<SetOfflineNegotiatedDocument_Response, unknown, ThrowOnError>({
4806
+ export const setOfflineNegotiatedDocument = <ThrowOnError extends boolean = false>(options: Options<setOfflineNegotiatedDocumentData, ThrowOnError>) => {
4807
+ return (options.client ?? client).put<setOfflineNegotiatedDocumentResponses, setOfflineNegotiatedDocumentErrors, ThrowOnError>({
4559
4808
  security: [
4560
4809
  {
4561
4810
  name: 'Authorization',
@@ -4566,17 +4815,18 @@ export const setOfflineNegotiatedDocument = <ThrowOnError extends boolean = fals
4566
4815
  ...options,
4567
4816
  headers: {
4568
4817
  'Content-Type': 'application/pdf',
4569
- ...options?.headers
4818
+ ...options.headers
4570
4819
  }
4571
4820
  });
4572
4821
  };
4573
4822
 
4574
4823
  /**
4575
4824
  * Delete an executed version from a negotiation
4825
+ *
4576
4826
  * Delete an executed version from a negotiation.
4577
4827
  */
4578
- export const deleteSignedExecutedVersion = <ThrowOnError extends boolean = false>(options: Options<DeleteSignedExecutedVersion_Data, ThrowOnError>) => {
4579
- return (options.client ?? _heyApiClient).delete<DeleteSignedExecutedVersion_Response, unknown, ThrowOnError>({
4828
+ export const deleteSignedExecutedVersion = <ThrowOnError extends boolean = false>(options: Options<deleteSignedExecutedVersionData, ThrowOnError>) => {
4829
+ return (options.client ?? client).delete<deleteSignedExecutedVersionResponses, deleteSignedExecutedVersionErrors, ThrowOnError>({
4580
4830
  security: [
4581
4831
  {
4582
4832
  name: 'Authorization',
@@ -4590,10 +4840,11 @@ export const deleteSignedExecutedVersion = <ThrowOnError extends boolean = false
4590
4840
 
4591
4841
  /**
4592
4842
  * Download the executed version of a negotiation as a PDF
4843
+ *
4593
4844
  * Download the executed version of a negotiation as a PDF.
4594
4845
  */
4595
- export const getSignedExecutedVersion = <ThrowOnError extends boolean = false>(options: Options<GetSignedExecutedVersion_Data, ThrowOnError>) => {
4596
- return (options.client ?? _heyApiClient).get<GetSignedExecutedVersion_Response, unknown, ThrowOnError>({
4846
+ export const getSignedExecutedVersion = <ThrowOnError extends boolean = false>(options: Options<getSignedExecutedVersionData, ThrowOnError>) => {
4847
+ return (options.client ?? client).get<getSignedExecutedVersionResponses, getSignedExecutedVersionErrors, ThrowOnError>({
4597
4848
  security: [
4598
4849
  {
4599
4850
  name: 'Authorization',
@@ -4607,10 +4858,11 @@ export const getSignedExecutedVersion = <ThrowOnError extends boolean = false>(o
4607
4858
 
4608
4859
  /**
4609
4860
  * Upload an executed version for a negotiation
4861
+ *
4610
4862
  * Upload an executed version for a negotiation.
4611
4863
  */
4612
- export const setSignedExecutedVersion = <ThrowOnError extends boolean = false>(options: Options<SetSignedExecutedVersion_Data, ThrowOnError>) => {
4613
- return (options.client ?? _heyApiClient).put<SetSignedExecutedVersion_Response, unknown, ThrowOnError>({
4864
+ export const setSignedExecutedVersion = <ThrowOnError extends boolean = false>(options: Options<setSignedExecutedVersionData, ThrowOnError>) => {
4865
+ return (options.client ?? client).put<setSignedExecutedVersionResponses, setSignedExecutedVersionErrors, ThrowOnError>({
4614
4866
  security: [
4615
4867
  {
4616
4868
  name: 'Authorization',
@@ -4621,17 +4873,18 @@ export const setSignedExecutedVersion = <ThrowOnError extends boolean = false>(o
4621
4873
  ...options,
4622
4874
  headers: {
4623
4875
  'Content-Type': 'application/pdf',
4624
- ...options?.headers
4876
+ ...options.headers
4625
4877
  }
4626
4878
  });
4627
4879
  };
4628
4880
 
4629
4881
  /**
4630
4882
  * Delete the cover note for the bulk set.
4883
+ *
4631
4884
  * Delete the cover note for the bulk set.
4632
4885
  */
4633
- export const deleteCoverNote = <ThrowOnError extends boolean = false>(options: Options<DeleteCoverNote_Data, ThrowOnError>) => {
4634
- return (options.client ?? _heyApiClient).delete<DeleteCoverNote_Response, unknown, ThrowOnError>({
4886
+ export const deleteCoverNote = <ThrowOnError extends boolean = false>(options: Options<deleteCoverNoteData, ThrowOnError>) => {
4887
+ return (options.client ?? client).delete<deleteCoverNoteResponses, unknown, ThrowOnError>({
4635
4888
  security: [
4636
4889
  {
4637
4890
  name: 'Authorization',
@@ -4645,10 +4898,11 @@ export const deleteCoverNote = <ThrowOnError extends boolean = false>(options: O
4645
4898
 
4646
4899
  /**
4647
4900
  * Add a cover note for the bulk set that will be sent to each recipient when the bulk set is sent.
4901
+ *
4648
4902
  * Add a cover note for the bulk set that will be sent to each recipient when the bulk set is sent.
4649
4903
  */
4650
- export const updateCoverNote = <ThrowOnError extends boolean = false>(options: Options<UpdateCoverNote_Data, ThrowOnError>) => {
4651
- return (options.client ?? _heyApiClient).put<UpdateCoverNote_Response, unknown, ThrowOnError>({
4904
+ export const updateCoverNote = <ThrowOnError extends boolean = false>(options: Options<updateCoverNoteData, ThrowOnError>) => {
4905
+ return (options.client ?? client).put<updateCoverNoteResponses, unknown, ThrowOnError>({
4652
4906
  security: [
4653
4907
  {
4654
4908
  name: 'Authorization',
@@ -4659,17 +4913,18 @@ export const updateCoverNote = <ThrowOnError extends boolean = false>(options: O
4659
4913
  ...options,
4660
4914
  headers: {
4661
4915
  'Content-Type': 'application/json',
4662
- ...options?.headers
4916
+ ...options.headers
4663
4917
  }
4664
4918
  });
4665
4919
  };
4666
4920
 
4667
4921
  /**
4668
4922
  * Enqueues a job to generate negotiation document and sends it as an email attachment to the reqeusting user
4923
+ *
4669
4924
  * Enqueues a job to generate negotiation document and sends it as an email attachment to the reqeusting user.
4670
4925
  */
4671
- export const queueGenerateNegotiationDocumentJob = <ThrowOnError extends boolean = false>(options: Options<QueueGenerateNegotiationDocumentJob_Data, ThrowOnError>) => {
4672
- return (options.client ?? _heyApiClient).post<QueueGenerateNegotiationDocumentJob_Response, unknown, ThrowOnError>({
4926
+ export const queueGenerateNegotiationDocumentJob = <ThrowOnError extends boolean = false>(options: Options<queueGenerateNegotiationDocumentJobData, ThrowOnError>) => {
4927
+ return (options.client ?? client).post<queueGenerateNegotiationDocumentJobResponses, unknown, ThrowOnError>({
4673
4928
  security: [
4674
4929
  {
4675
4930
  name: 'Authorization',
@@ -4680,17 +4935,18 @@ export const queueGenerateNegotiationDocumentJob = <ThrowOnError extends boolean
4680
4935
  ...options,
4681
4936
  headers: {
4682
4937
  'Content-Type': 'application/json',
4683
- ...options?.headers
4938
+ ...options.headers
4684
4939
  }
4685
4940
  });
4686
4941
  };
4687
4942
 
4688
4943
  /**
4689
4944
  * Download unsigned signature page for a party as a PDF
4945
+ *
4690
4946
  * Download unsigned signature page for a party as a PDF.
4691
4947
  */
4692
- export const createSignaturePagePdf = <ThrowOnError extends boolean = false>(options: Options<CreateSignaturePagePdf_Data, ThrowOnError>) => {
4693
- return (options.client ?? _heyApiClient).get<CreateSignaturePagePdf_Response, unknown, ThrowOnError>({
4948
+ export const createSignaturePagePDF = <ThrowOnError extends boolean = false>(options: Options<createSignaturePagePDFData, ThrowOnError>) => {
4949
+ return (options.client ?? client).get<createSignaturePagePDFResponses, unknown, ThrowOnError>({
4694
4950
  security: [
4695
4951
  {
4696
4952
  name: 'Authorization',
@@ -4704,10 +4960,11 @@ export const createSignaturePagePdf = <ThrowOnError extends boolean = false>(opt
4704
4960
 
4705
4961
  /**
4706
4962
  * Create a new version of this preset with the latest schema
4963
+ *
4707
4964
  * Create a new version of this preset with the latest schema.
4708
4965
  */
4709
- export const upgradePresetSchema = <ThrowOnError extends boolean = false>(options: Options<UpgradePresetSchema_Data, ThrowOnError>) => {
4710
- return (options.client ?? _heyApiClient).put<UpgradePresetSchema_Response, unknown, ThrowOnError>({
4966
+ export const upgradePresetSchema = <ThrowOnError extends boolean = false>(options: Options<upgradePresetSchemaData, ThrowOnError>) => {
4967
+ return (options.client ?? client).put<upgradePresetSchemaResponses, upgradePresetSchemaErrors, ThrowOnError>({
4711
4968
  security: [
4712
4969
  {
4713
4970
  name: 'Authorization',
@@ -4721,10 +4978,11 @@ export const upgradePresetSchema = <ThrowOnError extends boolean = false>(option
4721
4978
 
4722
4979
  /**
4723
4980
  * Send a negotiation to all counterparties for the first time
4981
+ *
4724
4982
  * Send a negotiation to all counterparties for the first time.
4725
4983
  */
4726
- export const sendToCounterpartyInitial = <ThrowOnError extends boolean = false>(options: Options<SendToCounterpartyInitial_Data, ThrowOnError>) => {
4727
- return (options.client ?? _heyApiClient).put<SendToCounterpartyInitial_Response, unknown, ThrowOnError>({
4984
+ export const sendToCounterpartyInitial = <ThrowOnError extends boolean = false>(options: Options<sendToCounterpartyInitialData, ThrowOnError>) => {
4985
+ return (options.client ?? client).put<sendToCounterpartyInitialResponses, sendToCounterpartyInitialErrors, ThrowOnError>({
4728
4986
  security: [
4729
4987
  {
4730
4988
  name: 'Authorization',
@@ -4735,17 +4993,18 @@ export const sendToCounterpartyInitial = <ThrowOnError extends boolean = false>(
4735
4993
  ...options,
4736
4994
  headers: {
4737
4995
  'Content-Type': 'application/json',
4738
- ...options?.headers
4996
+ ...options.headers
4739
4997
  }
4740
4998
  });
4741
4999
  };
4742
5000
 
4743
5001
  /**
4744
5002
  * Render a preview of the document template for the specified schema version
5003
+ *
4745
5004
  * Render a preview of the document template for the specified schema version.
4746
5005
  */
4747
- export const documentRenderTemplate = <ThrowOnError extends boolean = false>(options: Options<DocumentRenderTemplate_Data, ThrowOnError>) => {
4748
- return (options.client ?? _heyApiClient).get<DocumentRenderTemplate_Response, unknown, ThrowOnError>({
5006
+ export const documentRenderTemplate = <ThrowOnError extends boolean = false>(options: Options<documentRenderTemplateData, ThrowOnError>) => {
5007
+ return (options.client ?? client).get<documentRenderTemplateResponses, documentRenderTemplateErrors, ThrowOnError>({
4749
5008
  security: [
4750
5009
  {
4751
5010
  name: 'Authorization',
@@ -4759,10 +5018,11 @@ export const documentRenderTemplate = <ThrowOnError extends boolean = false>(opt
4759
5018
 
4760
5019
  /**
4761
5020
  * Get a list of all the relationships where a user is an advisor or is a client in a given account
5021
+ *
4762
5022
  * Get a list of all the relationships where a user is an advisor or is a client in a given account.
4763
5023
  */
4764
- export const getAccountRelationshipSummaries = <ThrowOnError extends boolean = false>(options?: Options<GetAccountRelationshipSummaries_Data, ThrowOnError>) => {
4765
- return (options?.client ?? _heyApiClient).get<GetAccountRelationshipSummaries_Response, unknown, ThrowOnError>({
5024
+ export const getAccountRelationshipSummaries = <ThrowOnError extends boolean = false>(options?: Options<getAccountRelationshipSummariesData, ThrowOnError>) => {
5025
+ return (options?.client ?? client).get<getAccountRelationshipSummariesResponses, getAccountRelationshipSummariesErrors, ThrowOnError>({
4766
5026
  security: [
4767
5027
  {
4768
5028
  name: 'Authorization',
@@ -4776,10 +5036,11 @@ export const getAccountRelationshipSummaries = <ThrowOnError extends boolean = f
4776
5036
 
4777
5037
  /**
4778
5038
  * Render a preview of the document template using the current answers
5039
+ *
4779
5040
  * Render a preview of the document template using the current answers.
4780
5041
  */
4781
- export const presetRenderTemplate = <ThrowOnError extends boolean = false>(options: Options<PresetRenderTemplate_Data, ThrowOnError>) => {
4782
- return (options.client ?? _heyApiClient).get<PresetRenderTemplate_Response, unknown, ThrowOnError>({
5042
+ export const presetRenderTemplate = <ThrowOnError extends boolean = false>(options: Options<presetRenderTemplateData, ThrowOnError>) => {
5043
+ return (options.client ?? client).get<presetRenderTemplateResponses, presetRenderTemplateErrors, ThrowOnError>({
4783
5044
  security: [
4784
5045
  {
4785
5046
  name: 'Authorization',
@@ -4793,10 +5054,11 @@ export const presetRenderTemplate = <ThrowOnError extends boolean = false>(optio
4793
5054
 
4794
5055
  /**
4795
5056
  * Add an internal or external comment on a negotiation
5057
+ *
4796
5058
  * Add an internal or external comment on a negotiation.
4797
5059
  */
4798
- export const addComment = <ThrowOnError extends boolean = false>(options: Options<AddComment_Data, ThrowOnError>) => {
4799
- return (options.client ?? _heyApiClient).post<AddComment_Response, unknown, ThrowOnError>({
5060
+ export const addComment = <ThrowOnError extends boolean = false>(options: Options<addCommentData, ThrowOnError>) => {
5061
+ return (options.client ?? client).post<addCommentResponses, unknown, ThrowOnError>({
4800
5062
  security: [
4801
5063
  {
4802
5064
  name: 'Authorization',
@@ -4807,17 +5069,18 @@ export const addComment = <ThrowOnError extends boolean = false>(options: Option
4807
5069
  ...options,
4808
5070
  headers: {
4809
5071
  'Content-Type': 'application/json',
4810
- ...options?.headers
5072
+ ...options.headers
4811
5073
  }
4812
5074
  });
4813
5075
  };
4814
5076
 
4815
5077
  /**
4816
5078
  * Update the election-level approval rules for an election in a preset
5079
+ *
4817
5080
  * Update the election-level approval rules for an election in a preset.
4818
5081
  */
4819
- export const presetSetElectionApproval = <ThrowOnError extends boolean = false>(options: Options<PresetSetElectionApproval_Data, ThrowOnError>) => {
4820
- return (options.client ?? _heyApiClient).put<PresetSetElectionApproval_Response, unknown, ThrowOnError>({
5082
+ export const presetSetElectionApproval = <ThrowOnError extends boolean = false>(options: Options<presetSetElectionApprovalData, ThrowOnError>) => {
5083
+ return (options.client ?? client).put<presetSetElectionApprovalResponses, presetSetElectionApprovalErrors, ThrowOnError>({
4821
5084
  security: [
4822
5085
  {
4823
5086
  name: 'Authorization',
@@ -4828,17 +5091,18 @@ export const presetSetElectionApproval = <ThrowOnError extends boolean = false>(
4828
5091
  ...options,
4829
5092
  headers: {
4830
5093
  'Content-Type': 'application/json',
4831
- ...options?.headers
5094
+ ...options.headers
4832
5095
  }
4833
5096
  });
4834
5097
  };
4835
5098
 
4836
5099
  /**
4837
5100
  * View the single sign-on settings for your account
5101
+ *
4838
5102
  * View the single sign-on settings for your account.
4839
5103
  */
4840
- export const getSsoConfig = <ThrowOnError extends boolean = false>(options?: Options<GetSsoConfig_Data, ThrowOnError>) => {
4841
- return (options?.client ?? _heyApiClient).get<GetSsoConfig_Response, unknown, ThrowOnError>({
5104
+ export const getSSOConfig = <ThrowOnError extends boolean = false>(options?: Options<getSSOConfigData, ThrowOnError>) => {
5105
+ return (options?.client ?? client).get<getSSOConfigResponses, unknown, ThrowOnError>({
4842
5106
  security: [
4843
5107
  {
4844
5108
  name: 'Authorization',
@@ -4852,10 +5116,11 @@ export const getSsoConfig = <ThrowOnError extends boolean = false>(options?: Opt
4852
5116
 
4853
5117
  /**
4854
5118
  * Update the custom fields for a negotiation
5119
+ *
4855
5120
  * Update the custom fields for a negotiation.
4856
5121
  */
4857
- export const updateCustomFields = <ThrowOnError extends boolean = false>(options: Options<UpdateCustomFields_Data, ThrowOnError>) => {
4858
- return (options.client ?? _heyApiClient).put<UpdateCustomFields_Response, unknown, ThrowOnError>({
5122
+ export const updateCustomFields = <ThrowOnError extends boolean = false>(options: Options<updateCustomFieldsData, ThrowOnError>) => {
5123
+ return (options.client ?? client).put<updateCustomFieldsResponses, updateCustomFieldsErrors, ThrowOnError>({
4859
5124
  security: [
4860
5125
  {
4861
5126
  name: 'Authorization',
@@ -4866,17 +5131,18 @@ export const updateCustomFields = <ThrowOnError extends boolean = false>(options
4866
5131
  ...options,
4867
5132
  headers: {
4868
5133
  'Content-Type': 'application/json',
4869
- ...options?.headers
5134
+ ...options.headers
4870
5135
  }
4871
5136
  });
4872
5137
  };
4873
5138
 
4874
5139
  /**
4875
5140
  * Sends the approval reminder email to all approvers in a quorum for an election
5141
+ *
4876
5142
  * Sends the approval reminder email to all approvers in a quorum for an election.
4877
5143
  */
4878
- export const sendElectionApprovalReminder = <ThrowOnError extends boolean = false>(options: Options<SendElectionApprovalReminder_Data, ThrowOnError>) => {
4879
- return (options.client ?? _heyApiClient).put<unknown, unknown, ThrowOnError>({
5144
+ export const sendElectionApprovalReminder = <ThrowOnError extends boolean = false>(options: Options<sendElectionApprovalReminderData, ThrowOnError>) => {
5145
+ return (options.client ?? client).put<sendElectionApprovalReminderResponses, sendElectionApprovalReminderErrors, ThrowOnError>({
4880
5146
  security: [
4881
5147
  {
4882
5148
  name: 'Authorization',
@@ -4890,10 +5156,11 @@ export const sendElectionApprovalReminder = <ThrowOnError extends boolean = fals
4890
5156
 
4891
5157
  /**
4892
5158
  * Reject a request to grant access to a workspace.
5159
+ *
4893
5160
  * Reject a request to grant access to a workspace.
4894
5161
  */
4895
- export const rejectAccessRequest = <ThrowOnError extends boolean = false>(options: Options<RejectAccessRequest_Data, ThrowOnError>) => {
4896
- return (options.client ?? _heyApiClient).put<RejectAccessRequest_Response, unknown, ThrowOnError>({
5162
+ export const rejectAccessRequest = <ThrowOnError extends boolean = false>(options: Options<rejectAccessRequestData, ThrowOnError>) => {
5163
+ return (options.client ?? client).put<rejectAccessRequestResponses, rejectAccessRequestErrors, ThrowOnError>({
4897
5164
  security: [
4898
5165
  {
4899
5166
  name: 'Authorization',
@@ -4907,10 +5174,11 @@ export const rejectAccessRequest = <ThrowOnError extends boolean = false>(option
4907
5174
 
4908
5175
  /**
4909
5176
  * View metadata for an executed negotiation
5177
+ *
4910
5178
  * View metadata for an executed negotiation.
4911
5179
  */
4912
- export const getExecutedNegotiationSummary = <ThrowOnError extends boolean = false>(options: Options<GetExecutedNegotiationSummary_Data, ThrowOnError>) => {
4913
- return (options.client ?? _heyApiClient).get<GetExecutedNegotiationSummary_Response, unknown, ThrowOnError>({
5180
+ export const getExecutedNegotiationSummary = <ThrowOnError extends boolean = false>(options: Options<getExecutedNegotiationSummaryData, ThrowOnError>) => {
5181
+ return (options.client ?? client).get<getExecutedNegotiationSummaryResponses, getExecutedNegotiationSummaryErrors, ThrowOnError>({
4914
5182
  security: [
4915
5183
  {
4916
5184
  name: 'Authorization',
@@ -4924,10 +5192,11 @@ export const getExecutedNegotiationSummary = <ThrowOnError extends boolean = fal
4924
5192
 
4925
5193
  /**
4926
5194
  * Change your party in a negotiation (A->B or B->A)
5195
+ *
4927
5196
  * Change your party in a negotiation (A->B or B->A).
4928
5197
  */
4929
- export const swapParties = <ThrowOnError extends boolean = false>(options: Options<SwapParties_Data, ThrowOnError>) => {
4930
- return (options.client ?? _heyApiClient).put<SwapParties_Response, unknown, ThrowOnError>({
5198
+ export const swapParties = <ThrowOnError extends boolean = false>(options: Options<swapPartiesData, ThrowOnError>) => {
5199
+ return (options.client ?? client).put<swapPartiesResponses, swapPartiesErrors, ThrowOnError>({
4931
5200
  security: [
4932
5201
  {
4933
5202
  name: 'Authorization',
@@ -4941,10 +5210,11 @@ export const swapParties = <ThrowOnError extends boolean = false>(options: Optio
4941
5210
 
4942
5211
  /**
4943
5212
  * Accept the counterparty position for a nested answer
5213
+ *
4944
5214
  * Accept the counterparty position for a nested answer.
4945
5215
  */
4946
- export const acceptNestedAnswersCounterpartyPosition = <ThrowOnError extends boolean = false>(options: Options<AcceptNestedAnswersCounterpartyPosition_Data, ThrowOnError>) => {
4947
- return (options.client ?? _heyApiClient).put<AcceptNestedAnswersCounterpartyPosition_Response, unknown, ThrowOnError>({
5216
+ export const acceptNestedAnswersCounterpartyPosition = <ThrowOnError extends boolean = false>(options: Options<acceptNestedAnswersCounterpartyPositionData, ThrowOnError>) => {
5217
+ return (options.client ?? client).put<acceptNestedAnswersCounterpartyPositionResponses, acceptNestedAnswersCounterpartyPositionErrors, ThrowOnError>({
4948
5218
  security: [
4949
5219
  {
4950
5220
  name: 'Authorization',
@@ -4958,10 +5228,11 @@ export const acceptNestedAnswersCounterpartyPosition = <ThrowOnError extends boo
4958
5228
 
4959
5229
  /**
4960
5230
  * Upgrade the specified side's answers to the latest document schema
5231
+ *
4961
5232
  * Upgrade the specified side's answers to the latest document schema.
4962
5233
  */
4963
- export const upgradeSchema = <ThrowOnError extends boolean = false>(options: Options<UpgradeSchema_Data, ThrowOnError>) => {
4964
- return (options.client ?? _heyApiClient).put<UpgradeSchema_Response, unknown, ThrowOnError>({
5234
+ export const upgradeSchema = <ThrowOnError extends boolean = false>(options: Options<upgradeSchemaData, ThrowOnError>) => {
5235
+ return (options.client ?? client).put<upgradeSchemaResponses, unknown, ThrowOnError>({
4965
5236
  security: [
4966
5237
  {
4967
5238
  name: 'Authorization',
@@ -4975,10 +5246,11 @@ export const upgradeSchema = <ThrowOnError extends boolean = false>(options: Opt
4975
5246
 
4976
5247
  /**
4977
5248
  * Update the attachDocx setting for all of the receivers, for every negotiation in the bulk set
5249
+ *
4978
5250
  * Update the attachDocx setting for all of the receivers, for every negotiation in the bulk set.
4979
5251
  */
4980
- export const updateAttachDocx = <ThrowOnError extends boolean = false>(options: Options<UpdateAttachDocx_Data, ThrowOnError>) => {
4981
- return (options.client ?? _heyApiClient).put<UpdateAttachDocx_Response, unknown, ThrowOnError>({
5252
+ export const updateAttachDocx = <ThrowOnError extends boolean = false>(options: Options<updateAttachDocxData, ThrowOnError>) => {
5253
+ return (options.client ?? client).put<updateAttachDocxResponses, unknown, ThrowOnError>({
4982
5254
  security: [
4983
5255
  {
4984
5256
  name: 'Authorization',
@@ -4992,10 +5264,11 @@ export const updateAttachDocx = <ThrowOnError extends boolean = false>(options:
4992
5264
 
4993
5265
  /**
4994
5266
  * View information about a specific entity
5267
+ *
4995
5268
  * View information about a specific entity.
4996
5269
  */
4997
- export const getCompanyByEntityId = <ThrowOnError extends boolean = false>(options: Options<GetCompanyByEntityId_Data, ThrowOnError>) => {
4998
- return (options.client ?? _heyApiClient).get<GetCompanyByEntityId_Response, unknown, ThrowOnError>({
5270
+ export const getCompanyByEntityId = <ThrowOnError extends boolean = false>(options: Options<getCompanyByEntityIdData, ThrowOnError>) => {
5271
+ return (options.client ?? client).get<getCompanyByEntityIdResponses, getCompanyByEntityIdErrors, ThrowOnError>({
4999
5272
  security: [
5000
5273
  {
5001
5274
  name: 'Authorization',
@@ -5009,10 +5282,11 @@ export const getCompanyByEntityId = <ThrowOnError extends boolean = false>(optio
5009
5282
 
5010
5283
  /**
5011
5284
  * Delete drafting notes of a document
5285
+ *
5012
5286
  * Delete drafting notes of a document.
5013
5287
  */
5014
- export const deleteDraftingNotesDocument = <ThrowOnError extends boolean = false>(options: Options<DeleteDraftingNotesDocument_Data, ThrowOnError>) => {
5015
- return (options.client ?? _heyApiClient).delete<unknown, unknown, ThrowOnError>({
5288
+ export const deleteDraftingNotesDocument = <ThrowOnError extends boolean = false>(options: Options<deleteDraftingNotesDocumentData, ThrowOnError>) => {
5289
+ return (options.client ?? client).delete<deleteDraftingNotesDocumentResponses, unknown, ThrowOnError>({
5016
5290
  security: [
5017
5291
  {
5018
5292
  name: 'Authorization',
@@ -5026,10 +5300,11 @@ export const deleteDraftingNotesDocument = <ThrowOnError extends boolean = false
5026
5300
 
5027
5301
  /**
5028
5302
  * Get all drafting notes for a document
5303
+ *
5029
5304
  * Get all drafting notes for a document.
5030
5305
  */
5031
- export const getDraftingNotes = <ThrowOnError extends boolean = false>(options: Options<GetDraftingNotes_Data, ThrowOnError>) => {
5032
- return (options.client ?? _heyApiClient).get<GetDraftingNotes_Response, unknown, ThrowOnError>({
5306
+ export const getDraftingNotes = <ThrowOnError extends boolean = false>(options: Options<getDraftingNotesData, ThrowOnError>) => {
5307
+ return (options.client ?? client).get<getDraftingNotesResponses, unknown, ThrowOnError>({
5033
5308
  security: [
5034
5309
  {
5035
5310
  name: 'Authorization',
@@ -5043,10 +5318,11 @@ export const getDraftingNotes = <ThrowOnError extends boolean = false>(options:
5043
5318
 
5044
5319
  /**
5045
5320
  * Update internal drafting notes in a document. These are not visible to counterparties when negotiating
5321
+ *
5046
5322
  * Update internal drafting notes in a document. These are not visible to counterparties when negotiating.
5047
5323
  */
5048
- export const updateDraftingNotes = <ThrowOnError extends boolean = false>(options: Options<UpdateDraftingNotes_Data, ThrowOnError>) => {
5049
- return (options.client ?? _heyApiClient).post<UpdateDraftingNotes_Response, unknown, ThrowOnError>({
5324
+ export const updateDraftingNotes = <ThrowOnError extends boolean = false>(options: Options<updateDraftingNotesData, ThrowOnError>) => {
5325
+ return (options.client ?? client).post<updateDraftingNotesResponses, updateDraftingNotesErrors, ThrowOnError>({
5050
5326
  security: [
5051
5327
  {
5052
5328
  name: 'Authorization',
@@ -5060,10 +5336,11 @@ export const updateDraftingNotes = <ThrowOnError extends boolean = false>(option
5060
5336
 
5061
5337
  /**
5062
5338
  * Download the audit trail for a negotiation as a PDF
5339
+ *
5063
5340
  * Download the audit trail for a negotiation as a PDF.
5064
5341
  */
5065
- export const createAuditTrailPdf = <ThrowOnError extends boolean = false>(options: Options<CreateAuditTrailPdf_Data, ThrowOnError>) => {
5066
- return (options.client ?? _heyApiClient).get<CreateAuditTrailPdf_Response, unknown, ThrowOnError>({
5342
+ export const createAuditTrailPDF = <ThrowOnError extends boolean = false>(options: Options<createAuditTrailPDFData, ThrowOnError>) => {
5343
+ return (options.client ?? client).get<createAuditTrailPDFResponses, unknown, ThrowOnError>({
5067
5344
  security: [
5068
5345
  {
5069
5346
  name: 'Authorization',
@@ -5077,10 +5354,11 @@ export const createAuditTrailPdf = <ThrowOnError extends boolean = false>(option
5077
5354
 
5078
5355
  /**
5079
5356
  * List all extraction results that have been updated in the last hour for the given workspace
5357
+ *
5080
5358
  * List all extraction results that have been updated in the last hour for the given workspace.
5081
5359
  */
5082
- export const listRecentExtractions = <ThrowOnError extends boolean = false>(options: Options<ListRecentExtractions_Data, ThrowOnError>) => {
5083
- return (options.client ?? _heyApiClient).get<ListRecentExtractions_Response, unknown, ThrowOnError>({
5360
+ export const listRecentExtractions = <ThrowOnError extends boolean = false>(options: Options<listRecentExtractionsData, ThrowOnError>) => {
5361
+ return (options.client ?? client).get<listRecentExtractionsResponses, unknown, ThrowOnError>({
5084
5362
  security: [
5085
5363
  {
5086
5364
  name: 'Authorization',
@@ -5094,10 +5372,11 @@ export const listRecentExtractions = <ThrowOnError extends boolean = false>(opti
5094
5372
 
5095
5373
  /**
5096
5374
  * View the initial set of answers for a negotiation
5375
+ *
5097
5376
  * View the initial set of answers for a negotiation.
5098
5377
  */
5099
- export const initialAnswers = <ThrowOnError extends boolean = false>(options: Options<InitialAnswers_Data, ThrowOnError>) => {
5100
- return (options.client ?? _heyApiClient).get<InitialAnswers_Response, unknown, ThrowOnError>({
5378
+ export const initialAnswers = <ThrowOnError extends boolean = false>(options: Options<initialAnswersData, ThrowOnError>) => {
5379
+ return (options.client ?? client).get<initialAnswersResponses, initialAnswersErrors, ThrowOnError>({
5101
5380
  security: [
5102
5381
  {
5103
5382
  name: 'Authorization',
@@ -5111,10 +5390,11 @@ export const initialAnswers = <ThrowOnError extends boolean = false>(options: Op
5111
5390
 
5112
5391
  /**
5113
5392
  * Download the execution version of a negotiation as a DOCX or PDF
5393
+ *
5114
5394
  * Download the execution version of a negotiation as a DOCX or PDF.
5115
5395
  */
5116
- export const downloadNegotiation = <ThrowOnError extends boolean = false>(options: Options<DownloadNegotiation_Data, ThrowOnError>) => {
5117
- return (options.client ?? _heyApiClient).get<DownloadNegotiation_Response, unknown, ThrowOnError>({
5396
+ export const downloadNegotiation = <ThrowOnError extends boolean = false>(options: Options<downloadNegotiationData, ThrowOnError>) => {
5397
+ return (options.client ?? client).get<downloadNegotiationResponses, unknown, ThrowOnError>({
5118
5398
  security: [
5119
5399
  {
5120
5400
  name: 'Authorization',
@@ -5128,10 +5408,11 @@ export const downloadNegotiation = <ThrowOnError extends boolean = false>(option
5128
5408
 
5129
5409
  /**
5130
5410
  * View all timeline activities (non-comments) associated with a negotiation
5411
+ *
5131
5412
  * View all timeline activities (non-comments) associated with a negotiation.
5132
5413
  */
5133
- export const getTimelineActivity = <ThrowOnError extends boolean = false>(options: Options<GetTimelineActivity_Data, ThrowOnError>) => {
5134
- return (options.client ?? _heyApiClient).get<unknown, unknown, ThrowOnError>({
5414
+ export const getTimelineActivity = <ThrowOnError extends boolean = false>(options: Options<getTimelineActivityData, ThrowOnError>) => {
5415
+ return (options.client ?? client).get<getTimelineActivityResponses, getTimelineActivityErrors, ThrowOnError>({
5135
5416
  security: [
5136
5417
  {
5137
5418
  name: 'Authorization',
@@ -5145,10 +5426,11 @@ export const getTimelineActivity = <ThrowOnError extends boolean = false>(option
5145
5426
 
5146
5427
  /**
5147
5428
  * View your user profile
5429
+ *
5148
5430
  * View your user profile.
5149
5431
  */
5150
- export const getProfile = <ThrowOnError extends boolean = false>(options?: Options<GetProfile_Data, ThrowOnError>) => {
5151
- return (options?.client ?? _heyApiClient).get<GetProfile_Response, unknown, ThrowOnError>({
5432
+ export const getProfile = <ThrowOnError extends boolean = false>(options?: Options<getProfileData, ThrowOnError>) => {
5433
+ return (options?.client ?? client).get<getProfileResponses, unknown, ThrowOnError>({
5152
5434
  security: [
5153
5435
  {
5154
5436
  name: 'Authorization',
@@ -5158,4 +5440,4 @@ export const getProfile = <ThrowOnError extends boolean = false>(options?: Optio
5158
5440
  url: '/api/v1/user/profile',
5159
5441
  ...options
5160
5442
  });
5161
- };
5443
+ };