export type BulkSendingCopyCustomField = {name?: string | undefined, value?: string | undefined}; export type BulkSendingCopyDocGenFormFieldRowValue = {docGenFormFieldList?: Array | undefined}; export type BulksendingCopyDocGenFormField = {name?: string | undefined, rowValues?: Array | undefined, value?: string | undefined}; export type BulkSendingCopyPrefillTab = {initialValue?: string | undefined, tabLabel?: string | undefined}; export type PropertyMetadata = {options?: Array | undefined, rights?: string | undefined}; export type RecipientEmailNotification = {emailBody?: string | undefined, emailBodyMetadata?: PropertyMetadata | undefined, emailSubject?: string | undefined, emailSubjectMetadata?: PropertyMetadata | undefined, supportedLanguage?: string | undefined, supportedLanguageMetadata?: PropertyMetadata | undefined}; export type AddressInformation = {address1?: string | undefined, address2?: string | undefined, city?: string | undefined, country?: string | undefined, fax?: string | undefined, phone?: string | undefined, postalCode?: string | undefined, stateOrProvince?: string | undefined, zipPlus4?: string | undefined}; export type AddressInformationInput = {addressInformation?: AddressInformation | undefined, displayLevelCode?: string | undefined, receiveInResponse?: string | undefined}; export type DobInformationInput = {dateOfBirth?: string | undefined, displayLevelCode?: string | undefined, receiveInResponse?: string | undefined}; export type Ssn4InformationInput = {displayLevelCode?: string | undefined, receiveInResponse?: string | undefined, ssn4?: string | undefined}; export type Ssn9InformationInput = {displayLevelCode?: string | undefined, ssn9?: string | undefined}; export type IdCheckInformationInput = {addressInformationInput?: AddressInformationInput | undefined, dobInformationInput?: DobInformationInput | undefined, ssn4InformationInput?: Ssn4InformationInput | undefined, ssn9InformationInput?: Ssn9InformationInput | undefined}; export type RecipientIdentityPhoneNumber = {countryCode?: string | undefined, countryCodeLock?: string | undefined, countryCodeMetadata?: PropertyMetadata | undefined, extension?: string | undefined, extensionMetadata?: PropertyMetadata | undefined, number?: string | undefined, numberMetadata?: PropertyMetadata | undefined}; export type RecipientIdentityInputOption = {name?: string | undefined, phoneNumberList?: Array | undefined, stringValue?: string | undefined, valueType?: string | undefined}; export type RecipientIdentityVerification = {inputOptions?: Array | undefined, workflowId?: string | undefined, workflowIdMetadata?: PropertyMetadata | undefined, workflowLabel?: string | undefined}; export type RecipientPhoneAuthentication = {recipMayProvideNumber?: string | undefined, recipMayProvideNumberMetadata?: PropertyMetadata | undefined, recordVoicePrint?: string | undefined, recordVoicePrintMetadata?: PropertyMetadata | undefined, senderProvidedNumbers?: Array | undefined, senderProvidedNumbersMetadata?: PropertyMetadata | undefined, validateRecipProvidedNumber?: string | undefined, validateRecipProvidedNumberMetadata?: PropertyMetadata | undefined}; export type RecipientSignatureProviderOptions = {cpfNumber?: string | undefined, cpfNumberMetadata?: PropertyMetadata | undefined, oneTimePassword?: string | undefined, oneTimePasswordMetadata?: PropertyMetadata | undefined, signerRole?: string | undefined, signerRoleMetadata?: PropertyMetadata | undefined, sms?: string | undefined, smsMetadata?: PropertyMetadata | undefined}; export type RecipientSignatureProvider = {sealDocumentsWithTabsOnly?: string | undefined, sealName?: string | undefined, signatureProviderName?: string | undefined, signatureProviderNameMetadata?: PropertyMetadata | undefined, signatureProviderOptions?: RecipientSignatureProviderOptions | undefined}; export type RecipientSMSAuthentication = {senderProvidedNumbers?: Array | undefined, senderProvidedNumbersMetadata?: PropertyMetadata | undefined}; export type SocialAuthentication = {authentication?: string | undefined}; export type BulkSendingCopyTab = {initialValue?: string | undefined, tabLabel?: string | undefined}; export type BulkSendingCopyRecipient = {accessCode?: string | undefined, clientUserId?: string | undefined, customFields?: Array | undefined, deliveryMethod?: string | undefined, email?: string | undefined, emailNotification?: RecipientEmailNotification | undefined, embeddedRecipientStartURL?: string | undefined, faxNumber?: string | undefined, hostEmail?: string | undefined, hostName?: string | undefined, idCheckConfigurationName?: string | undefined, idCheckInformationInput?: IdCheckInformationInput | undefined, identificationMethod?: string | undefined, identityVerification?: RecipientIdentityVerification | undefined, name?: string | undefined, note?: string | undefined, phoneAuthentication?: RecipientPhoneAuthentication | undefined, recipientId?: string | undefined, recipientSignatureProviders?: Array | undefined, roleName?: string | undefined, signerName?: string | undefined, signingGroupId?: string | undefined, smsAuthentication?: RecipientSMSAuthentication | undefined, socialAuthentications?: Array | undefined, tabs?: Array | undefined}; export type BulkSendingCopy = {customFields?: Array | undefined, docGenFormFields?: Array | undefined, emailBlurb?: string | undefined, emailSubject?: string | undefined, prefillTabs?: Array | undefined, recipients?: Array | undefined}; export type BulkSendingList = {bulkCopies?: Array | undefined, listId?: string | undefined, name?: string | undefined}; export type UpdateApiV21AccountsAccountIdBulkSendListsBulkSendListIdArgs = {accountId: string, bulkSendListId: string, body: BulkSendingList}; export type UpdateApiV21AccountsAccountIdBulkSendListsBulkSendListIdOptions = {baseUrl?: string | undefined, fetch?: typeof fetch | undefined}; /** * Updates a bulk send list. * * PUT /v2.1/accounts/{accountId}/bulk_send_lists/{bulkSendListId} */ export const updateApiV21AccountsAccountIdBulkSendListsBulkSendListId = async (args: UpdateApiV21AccountsAccountIdBulkSendListsBulkSendListIdArgs, options?: UpdateApiV21AccountsAccountIdBulkSendListsBulkSendListIdOptions) => { const {baseUrl = "https://www.docusign.net/restapi", fetch: fetchFn = fetch} = options ?? {} const query = new URLSearchParams() const headers = new Headers() headers.set('content-type', "application/json") headers.set('accept', "*/*") const url = `${baseUrl.replace(/\/+$/, '')}/v2.1/accounts/${encodeURIComponent(String(args.accountId))}/bulk_send_lists/${encodeURIComponent(String(args.bulkSendListId))}${query.size > 0 ? `?${query}` : ''}` const res = await fetchFn(url, {method: "PUT", headers, body: JSON.stringify(args.body)}) if (!res.ok) throw new Error(`Request failed with status ${res.status}`, {cause: {status: res.status, body: await res.text()}}) return res.blob() };