/* tslint:disable */ /* eslint-disable */ /** * Unlock Locksmith * Locksmith provides backend functionality for enabling ticketing, metadata storage, and notification hooks. * * The version of the OpenAPI document: 2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import { Configuration } from './configuration'; import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'; // Some imports not used depending on template conditions // @ts-ignore import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common'; // @ts-ignore import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from './base'; /** * * @export * @interface AddEventToCollectionBody */ export interface AddEventToCollectionBody { /** * * @type {string} * @memberof AddEventToCollectionBody */ 'eventSlug': string; } /** * * @export * @interface AddManagerBody */ export interface AddManagerBody { /** * * @type {string} * @memberof AddManagerBody */ 'newManagerAddress': string; } /** * * @export * @interface Application */ export interface Application { /** * * @type {number} * @memberof Application */ 'id'?: number; /** * * @type {string} * @memberof Application */ 'name'?: string; /** * * @type {string} * @memberof Application */ 'key'?: string | null; /** * * @type {string} * @memberof Application */ 'walletAddress'?: string; } /** * * @export * @interface ApplicationBody */ export interface ApplicationBody { /** * * @type {string} * @memberof ApplicationBody */ 'name'?: string; /** * * @type {string} * @memberof ApplicationBody */ 'key'?: string | null; /** * * @type {string} * @memberof ApplicationBody */ 'walletAddress'?: string; } /** * * @export * @interface Applications200Response */ export interface Applications200Response { /** * * @type {Array} * @memberof Applications200Response */ 'results'?: Array; } /** * * @export * @interface ApproveAttendeesRsvpRequest */ export interface ApproveAttendeesRsvpRequest { /** * * @type {Array} * @memberof ApproveAttendeesRsvpRequest */ 'recipients'?: Array; } /** * * @export * @interface ApproveEventBody */ export interface ApproveEventBody { /** * Slug of the event to approve. * @type {string} * @memberof ApproveEventBody */ 'eventSlug': string; } /** * * @export * @interface ApproveRefunds201Response */ export interface ApproveRefunds201Response { /** * * @type {string} * @memberof ApproveRefunds201Response */ 'format': string; /** * * @type {Array} * @memberof ApproveRefunds201Response */ 'values': Array; /** * * @type {Array} * @memberof ApproveRefunds201Response */ 'tree': Array; } /** * * @export * @interface ApproveRefundsRequest */ export interface ApproveRefundsRequest { /** * * @type {number} * @memberof ApproveRefundsRequest */ 'amount': number; /** * * @type {string} * @memberof ApproveRefundsRequest */ 'currency'?: string | null; /** * * @type {number} * @memberof ApproveRefundsRequest */ 'network': number; } /** * * @export * @interface ApprovedRefunds200Response */ export interface ApprovedRefunds200Response { /** * * @type {string} * @memberof ApprovedRefunds200Response */ 'format': ApprovedRefunds200ResponseFormatEnum; /** * * @type {Array} * @memberof ApprovedRefunds200Response */ 'leafEncoding'?: Array; /** * * @type {Array} * @memberof ApprovedRefunds200Response */ 'values': Array; /** * * @type {Array} * @memberof ApprovedRefunds200Response */ 'tree': Array; } export const ApprovedRefunds200ResponseFormatEnum = { StandardV1: 'standard-v1' } as const; export type ApprovedRefunds200ResponseFormatEnum = typeof ApprovedRefunds200ResponseFormatEnum[keyof typeof ApprovedRefunds200ResponseFormatEnum]; /** * * @export * @interface ApprovedRefunds200ResponseValuesInner */ export interface ApprovedRefunds200ResponseValuesInner { /** * * @type {Array} * @memberof ApprovedRefunds200ResponseValuesInner */ 'value'?: Array; /** * * @type {number} * @memberof ApprovedRefunds200ResponseValuesInner */ 'treeIndex'?: number; } /** * * @export * @interface Auth */ export interface Auth { /** * * @type {string} * @memberof Auth */ 'walletAddress': string; } /** * * @export * @interface AuthResult */ export interface AuthResult { /** * * @type {string} * @memberof AuthResult */ 'walletAddress': string | null; /** * * @type {string} * @memberof AuthResult */ 'accessToken': string; } /** * * @export * @interface Balance200ResponseValue */ export interface Balance200ResponseValue { /** * * @type {string} * @memberof Balance200ResponseValue */ 'address'?: string; /** * * @type {string} * @memberof Balance200ResponseValue */ 'name'?: string; /** * * @type {string} * @memberof Balance200ResponseValue */ 'balance'?: string; } /** * * @export * @interface BulkApproveEventsBody */ export interface BulkApproveEventsBody { /** * Array of event slugs to approve. * @type {Array} * @memberof BulkApproveEventsBody */ 'eventSlugs': Array; } /** * * @export * @interface BulkRemoveEventsBody */ export interface BulkRemoveEventsBody { /** * Array of event slugs to remove. * @type {Array} * @memberof BulkRemoveEventsBody */ 'eventSlugs': Array; } /** * * @export * @interface CapturePurchaseRequest */ export interface CapturePurchaseRequest { /** * * @type {Array} * @memberof CapturePurchaseRequest */ 'recipients'?: Array; /** * * @type {number} * @memberof CapturePurchaseRequest */ 'network': number; /** * * @type {string} * @memberof CapturePurchaseRequest */ 'lock': string; /** * * @type {string} * @memberof CapturePurchaseRequest */ 'userAddress': string; /** * * @type {string} * @memberof CapturePurchaseRequest */ 'paymentIntent': string; /** * * @type {Array} * @memberof CapturePurchaseRequest */ 'data'?: Array; /** * * @type {Array} * @memberof CapturePurchaseRequest */ 'referrers'?: Array; /** * whether to extend or purchase membership for the recipient. * @type {string} * @memberof CapturePurchaseRequest */ 'purchaseType'?: CapturePurchaseRequestPurchaseTypeEnum; } export const CapturePurchaseRequestPurchaseTypeEnum = { Extend: 'extend', Purchase: 'purchase' } as const; export type CapturePurchaseRequestPurchaseTypeEnum = typeof CapturePurchaseRequestPurchaseTypeEnum[keyof typeof CapturePurchaseRequestPurchaseTypeEnum]; /** * * @export * @interface CheckClaim200Response */ export interface CheckClaim200Response { /** * * @type {boolean} * @memberof CheckClaim200Response */ 'canClaim'?: boolean; } /** * * @export * @interface CheckClaimRequest */ export interface CheckClaimRequest { /** * * @type {Array} * @memberof CheckClaimRequest */ 'recipients'?: Array; /** * * @type {Array} * @memberof CheckClaimRequest */ 'data'?: Array; } /** * * @export * @interface CheckPrivyUser400Response */ export interface CheckPrivyUser400Response { /** * * @type {string} * @memberof CheckPrivyUser400Response */ 'error': string; } /** * * @export * @interface CheckPrivyUser500Response */ export interface CheckPrivyUser500Response { /** * * @type {string} * @memberof CheckPrivyUser500Response */ 'error': string; } /** * * @export * @interface CheckoutConfig */ export interface CheckoutConfig { /** * * @type {string} * @memberof CheckoutConfig */ 'id'?: string; /** * * @type {string} * @memberof CheckoutConfig */ 'name': string; /** * * @type {string} * @memberof CheckoutConfig */ 'by'?: string; /** * * @type {CheckoutConfigConfig} * @memberof CheckoutConfig */ 'config': CheckoutConfigConfig; /** * * @type {string} * @memberof CheckoutConfig */ 'createdAt'?: string; /** * * @type {string} * @memberof CheckoutConfig */ 'updatedAt'?: string; } /** * * @export * @interface CheckoutConfigConfig */ export interface CheckoutConfigConfig { [key: string]: any; /** * * @type {{ [key: string]: any; }} * @memberof CheckoutConfigConfig */ 'locks': { [key: string]: any; }; } /** * * @export * @interface Claim200Response */ export interface Claim200Response { /** * * @type {string} * @memberof Claim200Response */ 'transactionHash'?: string; /** * * @type {string} * @memberof Claim200Response */ 'owner'?: string; } /** * * @export * @interface ClaimRequest */ export interface ClaimRequest { /** * * @type {string} * @memberof ClaimRequest */ 'data'?: string; /** * Email address of the recipient * @type {string} * @memberof ClaimRequest */ 'email'?: string; /** * Recipient address for key * @type {string} * @memberof ClaimRequest */ 'recipient'?: string; /** * Referrer address used to mint. This may get overwritten. * @type {string} * @memberof ClaimRequest */ 'referrer'?: string; } /** * * @export * @interface ConnectStripeAccount200Response */ export interface ConnectStripeAccount200Response { /** * * @type {string} * @memberof ConnectStripeAccount200Response */ 'url'?: string; /** * * @type {number} * @memberof ConnectStripeAccount200Response */ 'created'?: number; /** * * @type {number} * @memberof ConnectStripeAccount200Response */ 'expiresAt'?: number; /** * * @type {string} * @memberof ConnectStripeAccount200Response */ 'object'?: string; } /** * * @export * @interface ConnectStripeAccountRequest */ export interface ConnectStripeAccountRequest { /** * * @type {string} * @memberof ConnectStripeAccountRequest */ 'baseUrl': string; /** * * @type {string} * @memberof ConnectStripeAccountRequest */ 'stripeAccount'?: string; } /** * * @export * @interface CreateDownloadReceiptsRequest200Response */ export interface CreateDownloadReceiptsRequest200Response { /** * * @type {string} * @memberof CreateDownloadReceiptsRequest200Response */ 'status': CreateDownloadReceiptsRequest200ResponseStatusEnum; } export const CreateDownloadReceiptsRequest200ResponseStatusEnum = { Pending: 'pending' } as const; export type CreateDownloadReceiptsRequest200ResponseStatusEnum = typeof CreateDownloadReceiptsRequest200ResponseStatusEnum[keyof typeof CreateDownloadReceiptsRequest200ResponseStatusEnum]; /** * * @export * @interface CreateLockContract201Response */ export interface CreateLockContract201Response { /** * * @type {string} * @memberof CreateLockContract201Response */ 'transactionHash'?: string; } /** * * @export * @interface CreateTransferCode200Response */ export interface CreateTransferCode200Response { /** * * @type {string} * @memberof CreateTransferCode200Response */ 'owner': string; /** * * @type {string} * @memberof CreateTransferCode200Response */ 'lock': string; /** * * @type {string} * @memberof CreateTransferCode200Response */ 'token': string; /** * * @type {number} * @memberof CreateTransferCode200Response */ 'deadline': number; /** * Part of the transfer code that is required to be used with the part sent to the recipient. * @type {string} * @memberof CreateTransferCode200Response */ 'transferCode': string; } /** * * @export * @interface CreateTransferCode404Response */ export interface CreateTransferCode404Response { /** * * @type {string} * @memberof CreateTransferCode404Response */ 'message': string; } /** * * @export * @interface CreateVerifierRequest */ export interface CreateVerifierRequest { /** * optional verifier name * @type {string} * @memberof CreateVerifierRequest */ 'verifierName'?: string; } /** * * @export * @interface EjectUser200Response */ export interface EjectUser200Response { /** * * @type {string} * @memberof EjectUser200Response */ 'publicKey'?: string; } /** * * @export * @interface EmailTicket200Response */ export interface EmailTicket200Response { /** * * @type {boolean} * @memberof EmailTicket200Response */ 'sent'?: boolean; } /** * * @export * @interface Event */ export interface Event { /** * * @type {string} * @memberof Event */ 'name': string; /** * * @type {string} * @memberof Event */ 'slug': string; /** * * @type {string} * @memberof Event */ 'image': string; /** * * @type {string} * @memberof Event */ 'description': string; /** * * @type {string} * @memberof Event */ 'status'?: EventStatusEnum; /** * * @type {string} * @memberof Event */ 'transactionHash'?: string; /** * * @type {Array} * @memberof Event */ 'attributes': Array; } export const EventStatusEnum = { Pending: 'pending', Deployed: 'deployed' } as const; export type EventStatusEnum = typeof EventStatusEnum[keyof typeof EventStatusEnum]; /** * * @export * @interface EventAttributesInner */ export interface EventAttributesInner { /** * * @type {string} * @memberof EventAttributesInner */ 'trait_type': string; /** * * @type {string} * @memberof EventAttributesInner */ 'value': string; } /** * * @export * @interface EventCollection */ export interface EventCollection { /** * * @type {string} * @memberof EventCollection */ 'slug'?: string; /** * * @type {string} * @memberof EventCollection */ 'title'?: string; /** * * @type {string} * @memberof EventCollection */ 'description'?: string; /** * * @type {string} * @memberof EventCollection */ 'coverImage'?: string; /** * * @type {string} * @memberof EventCollection */ 'banner'?: string; /** * * @type {{ [key: string]: string; }} * @memberof EventCollection */ 'links'?: { [key: string]: string; }; /** * * @type {Array} * @memberof EventCollection */ 'managerAddresses'?: Array; /** * * @type {string} * @memberof EventCollection */ 'createdAt'?: string; /** * * @type {string} * @memberof EventCollection */ 'updatedAt'?: string; /** * * @type {Array} * @memberof EventCollection */ 'events'?: Array; } /** * * @export * @interface EventCollectionAssociation */ export interface EventCollectionAssociation { /** * * @type {number} * @memberof EventCollectionAssociation */ 'id'?: number; /** * * @type {string} * @memberof EventCollectionAssociation */ 'eventSlug'?: string; /** * * @type {string} * @memberof EventCollectionAssociation */ 'collectionSlug'?: string; /** * * @type {boolean} * @memberof EventCollectionAssociation */ 'isApproved'?: boolean; /** * * @type {string} * @memberof EventCollectionAssociation */ 'createdAt'?: string; /** * * @type {string} * @memberof EventCollectionAssociation */ 'updatedAt'?: string; } /** * * @export * @interface EventCollectionBody */ export interface EventCollectionBody { /** * * @type {string} * @memberof EventCollectionBody */ 'title': string; /** * * @type {string} * @memberof EventCollectionBody */ 'description': string; /** * * @type {string} * @memberof EventCollectionBody */ 'coverImage'?: string; /** * * @type {string} * @memberof EventCollectionBody */ 'banner'?: string; /** * * @type {Array} * @memberof EventCollectionBody */ 'links'?: Array; /** * * @type {Array} * @memberof EventCollectionBody */ 'managerAddresses': Array; } /** * * @export * @interface EventCollectionBodyLinksInner */ export interface EventCollectionBodyLinksInner { /** * * @type {string} * @memberof EventCollectionBodyLinksInner */ 'type'?: string; /** * * @type {string} * @memberof EventCollectionBodyLinksInner */ 'url'?: string; } /** * * @export * @interface EventDetails */ export interface EventDetails { /** * * @type {string} * @memberof EventDetails */ 'eventName'?: string; /** * * @type {string} * @memberof EventDetails */ 'eventDescription'?: string; /** * * @type {string} * @memberof EventDetails */ 'eventDate'?: string; /** * * @type {string} * @memberof EventDetails */ 'eventTime'?: string; /** * * @type {string} * @memberof EventDetails */ 'eventAddress'?: string; /** * * @type {string} * @memberof EventDetails */ 'startDate'?: string; /** * * @type {string} * @memberof EventDetails */ 'endDate'?: string; /** * * @type {string} * @memberof EventDetails */ 'eventUrl'?: string; } /** * * @export * @interface EventsInCollection */ export interface EventsInCollection { /** * * @type {Array} * @memberof EventsInCollection */ 'events'?: Array; /** * * @type {number} * @memberof EventsInCollection */ 'totalCount'?: number; /** * * @type {number} * @memberof EventsInCollection */ 'currentPage'?: number; /** * * @type {number} * @memberof EventsInCollection */ 'totalPages'?: number; } /** * * @export * @interface ExportKeys200Response */ export interface ExportKeys200Response { /** * * @type {string} * @memberof ExportKeys200Response */ 'jobId'?: string; } /** * * @export * @interface GenerateGoogleWalletPass200Response */ export interface GenerateGoogleWalletPass200Response { /** * * @type {string} * @memberof GenerateGoogleWalletPass200Response */ 'passObjectUrl'?: string; } /** * * @export * @interface GenericInvalidBodyError */ export interface GenericInvalidBodyError { /** * * @type {string} * @memberof GenericInvalidBodyError */ 'message'?: string; /** * * @type {string} * @memberof GenericInvalidBodyError */ 'error'?: string | null; } /** * * @export * @interface GenericNotFound */ export interface GenericNotFound { /** * * @type {string} * @memberof GenericNotFound */ 'message'?: string; } /** * * @export * @interface GenericServerError */ export interface GenericServerError { /** * * @type {string} * @memberof GenericServerError */ 'message'?: string; } /** * * @export * @interface GenericSuccess */ export interface GenericSuccess { /** * * @type {string} * @memberof GenericSuccess */ 'message'?: string; } /** * * @export * @interface GetChargesForLock200Response */ export interface GetChargesForLock200Response { /** * * @type {number} * @memberof GetChargesForLock200Response */ 'total': number; /** * * @type {string} * @memberof GetChargesForLock200Response */ 'symbol'?: string; /** * * @type {number} * @memberof GetChargesForLock200Response */ 'creditCardProcessingFee'?: number; /** * * @type {number} * @memberof GetChargesForLock200Response */ 'unlockServiceFee': number; /** * * @type {number} * @memberof GetChargesForLock200Response */ 'gasCost': number; /** * * @type {Array} * @memberof GetChargesForLock200Response */ 'prices'?: Array; } /** * * @export * @interface GetChargesForLock200ResponsePricesInner */ export interface GetChargesForLock200ResponsePricesInner { /** * * @type {string} * @memberof GetChargesForLock200ResponsePricesInner */ 'userAddress': string; /** * * @type {string} * @memberof GetChargesForLock200ResponsePricesInner */ 'amount': string; /** * * @type {string} * @memberof GetChargesForLock200ResponsePricesInner */ 'symbol': string; } /** * * @export * @interface GetCustomEmailContent200Response */ export interface GetCustomEmailContent200Response { /** * * @type {string} * @memberof GetCustomEmailContent200Response */ 'lockAddress'?: string; /** * * @type {number} * @memberof GetCustomEmailContent200Response */ 'network'?: number; /** * * @type {string} * @memberof GetCustomEmailContent200Response */ 'template'?: string; /** * * @type {string} * @memberof GetCustomEmailContent200Response */ 'content'?: string; } /** * * @export * @interface GetDataForRecipientsAndCaptcha200Response */ export interface GetDataForRecipientsAndCaptcha200Response { /** * * @type {Array} * @memberof GetDataForRecipientsAndCaptcha200Response */ 'messages'?: Array; /** * * @type {string} * @memberof GetDataForRecipientsAndCaptcha200Response */ 'signer'?: string; /** * * @type {Array} * @memberof GetDataForRecipientsAndCaptcha200Response */ 'signatures'?: Array; } /** * * @export * @interface GetDataForRecipientsAndGuild200Response */ export interface GetDataForRecipientsAndGuild200Response { /** * * @type {Array} * @memberof GetDataForRecipientsAndGuild200Response */ 'result'?: Array; } /** * * @export * @interface GetEvent200Response */ export interface GetEvent200Response { /** * * @type {number} * @memberof GetEvent200Response */ 'id'?: number; /** * * @type {Event} * @memberof GetEvent200Response */ 'data'?: Event; /** * * @type {CheckoutConfig} * @memberof GetEvent200Response */ 'checkoutConfig'?: CheckoutConfig; /** * * @type {string} * @memberof GetEvent200Response */ 'slug'?: string; } /** * * @export * @interface GetEventTicket200Response */ export interface GetEventTicket200Response { /** * * @type {string} * @memberof GetEventTicket200Response */ 'keyId': string; /** * * @type {string} * @memberof GetEventTicket200Response */ 'name': string; /** * * @type {string} * @memberof GetEventTicket200Response */ 'owner': string; /** * * @type {string} * @memberof GetEventTicket200Response */ 'manager': string; /** * * @type {string} * @memberof GetEventTicket200Response */ 'lockAddress': string; /** * * @type {string} * @memberof GetEventTicket200Response */ 'image': string; /** * * @type {string} * @memberof GetEventTicket200Response */ 'description': string; /** * * @type {number} * @memberof GetEventTicket200Response */ 'checkedInAt'?: number; /** * * @type {{ [key: string]: any; }} * @memberof GetEventTicket200Response */ 'userMetadata': { [key: string]: any; }; /** * * @type {string} * @memberof GetEventTicket200Response */ 'expiration': string; /** * * @type {Array} * @memberof GetEventTicket200Response */ 'attributes': Array; /** * * @type {string} * @memberof GetEventTicket200Response */ 'publicLockVersion': string; /** * Whether the user who requested the ticket can verify the ticket. * @type {boolean} * @memberof GetEventTicket200Response */ 'isVerifier': boolean; } /** * * @export * @interface GetEventTicket200ResponseAttributesInner */ export interface GetEventTicket200ResponseAttributesInner { /** * * @type {string} * @memberof GetEventTicket200ResponseAttributesInner */ 'trait_type'?: string; /** * * @type {string} * @memberof GetEventTicket200ResponseAttributesInner */ 'value': string; /** * * @type {string} * @memberof GetEventTicket200ResponseAttributesInner */ 'display_type'?: string; } /** * * @export * @interface GetLockStripeConnectionDetails200Response */ export interface GetLockStripeConnectionDetails200Response { /** * * @type {GetLockStripeConnectionDetails200ResponseCountrySpec} * @memberof GetLockStripeConnectionDetails200Response */ 'countrySpec'?: GetLockStripeConnectionDetails200ResponseCountrySpec; /** * * @type {GetLockStripeConnectionDetails200ResponseAccount} * @memberof GetLockStripeConnectionDetails200Response */ 'account'?: GetLockStripeConnectionDetails200ResponseAccount; /** * * @type {number} * @memberof GetLockStripeConnectionDetails200Response */ 'connected'?: number; } /** * * @export * @interface GetLockStripeConnectionDetails200ResponseAccount */ export interface GetLockStripeConnectionDetails200ResponseAccount { /** * * @type {string} * @memberof GetLockStripeConnectionDetails200ResponseAccount */ 'id'?: string; /** * * @type {boolean} * @memberof GetLockStripeConnectionDetails200ResponseAccount */ 'charges_enabled'?: boolean; /** * * @type {boolean} * @memberof GetLockStripeConnectionDetails200ResponseAccount */ 'payouts_enabled'?: boolean; /** * * @type {GetLockStripeConnectionDetails200ResponseAccountRequirements} * @memberof GetLockStripeConnectionDetails200ResponseAccount */ 'requirements'?: GetLockStripeConnectionDetails200ResponseAccountRequirements; } /** * * @export * @interface GetLockStripeConnectionDetails200ResponseAccountRequirements */ export interface GetLockStripeConnectionDetails200ResponseAccountRequirements { /** * * @type {string} * @memberof GetLockStripeConnectionDetails200ResponseAccountRequirements */ 'disabled_reason'?: string; } /** * * @export * @interface GetLockStripeConnectionDetails200ResponseCountrySpec */ export interface GetLockStripeConnectionDetails200ResponseCountrySpec { /** * * @type {Array} * @memberof GetLockStripeConnectionDetails200ResponseCountrySpec */ 'supported_payment_currencies'?: Array; } /** * * @export * @interface GetReceipt200Response */ export interface GetReceipt200Response { /** * * @type {GetReceipt200ResponsePurchaser} * @memberof GetReceipt200Response */ 'purchaser'?: GetReceipt200ResponsePurchaser; /** * * @type {GetReceipt200ResponseSupplier} * @memberof GetReceipt200Response */ 'supplier'?: GetReceipt200ResponseSupplier; /** * * @type {GetReceipt200ResponseReceipt} * @memberof GetReceipt200Response */ 'receipt'?: GetReceipt200ResponseReceipt; } /** * * @export * @interface GetReceipt200ResponsePurchaser */ export interface GetReceipt200ResponsePurchaser { /** * * @type {string} * @memberof GetReceipt200ResponsePurchaser */ 'email'?: string; /** * * @type {string} * @memberof GetReceipt200ResponsePurchaser */ 'fullname'?: string; /** * * @type {string} * @memberof GetReceipt200ResponsePurchaser */ 'businessName'?: string; /** * * @type {string} * @memberof GetReceipt200ResponsePurchaser */ 'addressLine1'?: string; /** * * @type {string} * @memberof GetReceipt200ResponsePurchaser */ 'addressLine2'?: string; /** * * @type {string} * @memberof GetReceipt200ResponsePurchaser */ 'city'?: string; /** * * @type {string} * @memberof GetReceipt200ResponsePurchaser */ 'state'?: string; /** * * @type {string} * @memberof GetReceipt200ResponsePurchaser */ 'zip'?: string; /** * * @type {string} * @memberof GetReceipt200ResponsePurchaser */ 'country'?: string; } /** * * @export * @interface GetReceipt200ResponseReceipt */ export interface GetReceipt200ResponseReceipt { /** * * @type {string} * @memberof GetReceipt200ResponseReceipt */ 'id'?: string; /** * * @type {number} * @memberof GetReceipt200ResponseReceipt */ 'timestamp'?: number; /** * * @type {string} * @memberof GetReceipt200ResponseReceipt */ 'sender'?: string; /** * * @type {string} * @memberof GetReceipt200ResponseReceipt */ 'payer'?: string; /** * * @type {string} * @memberof GetReceipt200ResponseReceipt */ 'recipient'?: string; /** * * @type {string} * @memberof GetReceipt200ResponseReceipt */ 'lockAddress'?: string; /** * * @type {string} * @memberof GetReceipt200ResponseReceipt */ 'tokenAddress'?: string; /** * * @type {number} * @memberof GetReceipt200ResponseReceipt */ 'gasTotal'?: number; /** * * @type {number} * @memberof GetReceipt200ResponseReceipt */ 'amountTransferred'?: number; } /** * * @export * @interface GetReceipt200ResponseSupplier */ export interface GetReceipt200ResponseSupplier { /** * * @type {string} * @memberof GetReceipt200ResponseSupplier */ 'supplierName'?: string; /** * * @type {string} * @memberof GetReceipt200ResponseSupplier */ 'vat'?: string; /** * * @type {string} * @memberof GetReceipt200ResponseSupplier */ 'servicePerformed'?: string; /** * * @type {string} * @memberof GetReceipt200ResponseSupplier */ 'addressLine1'?: string; /** * * @type {string} * @memberof GetReceipt200ResponseSupplier */ 'addressLine2'?: string; /** * * @type {string} * @memberof GetReceipt200ResponseSupplier */ 'city'?: string; /** * * @type {string} * @memberof GetReceipt200ResponseSupplier */ 'state'?: string; /** * * @type {string} * @memberof GetReceipt200ResponseSupplier */ 'zip'?: string; /** * * @type {string} * @memberof GetReceipt200ResponseSupplier */ 'country'?: string; } /** * * @export * @interface GetReceipts200Response */ export interface GetReceipts200Response { /** * * @type {Array} * @memberof GetReceipts200Response */ 'items'?: Array; } /** * * @export * @interface GetReceipts200ResponseItemsInner */ export interface GetReceipts200ResponseItemsInner { /** * * @type {string} * @memberof GetReceipts200ResponseItemsInner */ 'id'?: string; /** * * @type {string} * @memberof GetReceipts200ResponseItemsInner */ 'receiptNumber'?: string; /** * * @type {string} * @memberof GetReceipts200ResponseItemsInner */ 'timestamp'?: string; /** * * @type {string} * @memberof GetReceipts200ResponseItemsInner */ 'sender'?: string; /** * * @type {string} * @memberof GetReceipts200ResponseItemsInner */ 'payer'?: string; /** * * @type {string} * @memberof GetReceipts200ResponseItemsInner */ 'recipient'?: string; /** * * @type {string} * @memberof GetReceipts200ResponseItemsInner */ 'lockAddress'?: string; /** * * @type {string} * @memberof GetReceipts200ResponseItemsInner */ 'tokenAddress'?: string; /** * * @type {string} * @memberof GetReceipts200ResponseItemsInner */ 'gasTotal'?: string; /** * * @type {string} * @memberof GetReceipts200ResponseItemsInner */ 'amountTransferred'?: string; /** * * @type {number} * @memberof GetReceipts200ResponseItemsInner */ 'network'?: number; /** * * @type {string} * @memberof GetReceipts200ResponseItemsInner */ 'supplierAddress'?: string; } /** * * @export * @interface GetReceiptsBase200Response */ export interface GetReceiptsBase200Response { /** * * @type {string} * @memberof GetReceiptsBase200Response */ 'supplierName'?: string; /** * * @type {string} * @memberof GetReceiptsBase200Response */ 'vat'?: string; /** * * @type {number} * @memberof GetReceiptsBase200Response */ 'vatBasisPointsRate'?: number; /** * * @type {string} * @memberof GetReceiptsBase200Response */ 'servicePerformed'?: string; /** * * @type {string} * @memberof GetReceiptsBase200Response */ 'addressLine1'?: string; /** * * @type {string} * @memberof GetReceiptsBase200Response */ 'addressLine2'?: string; /** * * @type {string} * @memberof GetReceiptsBase200Response */ 'city'?: string; /** * * @type {string} * @memberof GetReceiptsBase200Response */ 'state'?: string; /** * * @type {string} * @memberof GetReceiptsBase200Response */ 'zip'?: string; /** * * @type {string} * @memberof GetReceiptsBase200Response */ 'country'?: string; } /** * * @export * @interface GetReceiptsStatus200Response */ export interface GetReceiptsStatus200Response { /** * * @type {Array} * @memberof GetReceiptsStatus200Response */ 'items'?: Array; } /** * * @export * @interface GetReceiptsStatus200ResponseItemsInner */ export interface GetReceiptsStatus200ResponseItemsInner { /** * * @type {string} * @memberof GetReceiptsStatus200ResponseItemsInner */ 'id'?: string; /** * * @type {GetReceiptsStatus200ResponseItemsInnerPayload} * @memberof GetReceiptsStatus200ResponseItemsInner */ 'payload'?: GetReceiptsStatus200ResponseItemsInnerPayload; /** * * @type {string} * @memberof GetReceiptsStatus200ResponseItemsInner */ 'createdAt'?: string; /** * * @type {string} * @memberof GetReceiptsStatus200ResponseItemsInner */ 'updatedAt'?: string; } /** * * @export * @interface GetReceiptsStatus200ResponseItemsInnerPayload */ export interface GetReceiptsStatus200ResponseItemsInnerPayload { /** * * @type {string} * @memberof GetReceiptsStatus200ResponseItemsInnerPayload */ 'status'?: GetReceiptsStatus200ResponseItemsInnerPayloadStatusEnum; /** * * @type {string} * @memberof GetReceiptsStatus200ResponseItemsInnerPayload */ 'key'?: string; /** * * @type {Array} * @memberof GetReceiptsStatus200ResponseItemsInnerPayload */ 'result'?: Array; } export const GetReceiptsStatus200ResponseItemsInnerPayloadStatusEnum = { Pending: 'pending', Success: 'success', Failed: 'failed' } as const; export type GetReceiptsStatus200ResponseItemsInnerPayloadStatusEnum = typeof GetReceiptsStatus200ResponseItemsInnerPayloadStatusEnum[keyof typeof GetReceiptsStatus200ResponseItemsInnerPayloadStatusEnum]; /** * * @export * @interface GetStripeConnections200Response */ export interface GetStripeConnections200Response { /** * * @type {Array} * @memberof GetStripeConnections200Response */ 'result'?: Array; /** * * @type {string} * @memberof GetStripeConnections200Response */ 'error'?: string | null; } /** * * @export * @interface GetSubscription200Response */ export interface GetSubscription200Response { /** * * @type {Array} * @memberof GetSubscription200Response */ 'subscriptions'?: Array; } /** * * @export * @interface GetSubscription200ResponseSubscriptionsInner */ export interface GetSubscription200ResponseSubscriptionsInner { /** * * @type {number} * @memberof GetSubscription200ResponseSubscriptionsInner */ 'next'?: number | null; /** * * @type {GetSubscription200ResponseSubscriptionsInnerBalance} * @memberof GetSubscription200ResponseSubscriptionsInner */ 'balance'?: GetSubscription200ResponseSubscriptionsInnerBalance; /** * * @type {GetSubscription200ResponseSubscriptionsInnerBalance} * @memberof GetSubscription200ResponseSubscriptionsInner */ 'price'?: GetSubscription200ResponseSubscriptionsInnerBalance; /** * Approved number of renewals by user. * @type {string} * @memberof GetSubscription200ResponseSubscriptionsInner */ 'approvedRenewals'?: string; /** * Possible number of renewals based on the user account balance. * @type {string} * @memberof GetSubscription200ResponseSubscriptionsInner */ 'possibleRenewals'?: string; /** * The type of payment method used for the subscription. * @type {string} * @memberof GetSubscription200ResponseSubscriptionsInner */ 'type'?: GetSubscription200ResponseSubscriptionsInnerTypeEnum; } export const GetSubscription200ResponseSubscriptionsInnerTypeEnum = { Crypto: 'crypto', Fiat: 'fiat' } as const; export type GetSubscription200ResponseSubscriptionsInnerTypeEnum = typeof GetSubscription200ResponseSubscriptionsInnerTypeEnum[keyof typeof GetSubscription200ResponseSubscriptionsInnerTypeEnum]; /** * * @export * @interface GetSubscription200ResponseSubscriptionsInnerBalance */ export interface GetSubscription200ResponseSubscriptionsInnerBalance { /** * * @type {string} * @memberof GetSubscription200ResponseSubscriptionsInnerBalance */ 'symbol'?: string; /** * * @type {string} * @memberof GetSubscription200ResponseSubscriptionsInnerBalance */ 'amount'?: string; /** * * @type {number} * @memberof GetSubscription200ResponseSubscriptionsInnerBalance */ 'decimals'?: number; } /** * * @export * @interface GetUserAccountType200Response */ export interface GetUserAccountType200Response { /** * * @type {Array} * @memberof GetUserAccountType200Response */ 'userAccountType'?: Array; } export const GetUserAccountType200ResponseUserAccountTypeEnum = { UnlockAccount: 'UNLOCK_ACCOUNT', GoogleAccount: 'GOOGLE_ACCOUNT', PasskeyAccount: 'PASSKEY_ACCOUNT', EmailCode: 'EMAIL_CODE' } as const; export type GetUserAccountType200ResponseUserAccountTypeEnum = typeof GetUserAccountType200ResponseUserAccountTypeEnum[keyof typeof GetUserAccountType200ResponseUserAccountTypeEnum]; /** * * @export * @interface GetUserPrivateKey200Response */ export interface GetUserPrivateKey200Response { /** * * @type {string} * @memberof GetUserPrivateKey200Response */ 'passwordEncryptedPrivateKey'?: string; } /** * * @export * @interface GetUserRecoveryPhrase200Response */ export interface GetUserRecoveryPhrase200Response { /** * * @type {string} * @memberof GetUserRecoveryPhrase200Response */ 'emailAddress'?: string; /** * * @type {string} * @memberof GetUserRecoveryPhrase200Response */ 'recoveryPhrase'?: string; } /** * * @export * @interface GetWaasToken400Response */ export interface GetWaasToken400Response { /** * * @type {string} * @memberof GetWaasToken400Response */ 'error'?: string; } /** * * @export * @interface GetWaasTokenRequest */ export interface GetWaasTokenRequest { /** * * @type {string} * @memberof GetWaasTokenRequest */ 'token'?: string; } /** * * @export * @interface IsCardPaymentEnabledForLock200Response */ export interface IsCardPaymentEnabledForLock200Response { /** * * @type {boolean} * @memberof IsCardPaymentEnabledForLock200Response */ 'creditCardEnabled'?: boolean; } /** * * @export * @interface Key */ export interface Key { /** * * @type {string} * @memberof Key */ 'token'?: string; /** * * @type {string} * @memberof Key */ 'lockName'?: string; /** * * @type {string} * @memberof Key */ 'expiration'?: string; /** * * @type {string} * @memberof Key */ 'keyholderAddress'?: string; /** * * @type {string} * @memberof Key */ 'keyManager'?: string; /** * * @type {string} * @memberof Key */ 'lockAddress'?: string; /** * * @type {Array} * @memberof Key */ 'transactionsHash'?: Array; /** * * @type {string} * @memberof Key */ 'email'?: string; } /** * * @export * @interface KeyMetadata */ export interface KeyMetadata { /** * * @type {string} * @memberof KeyMetadata */ 'token'?: string; /** * * @type {string} * @memberof KeyMetadata */ 'lockName'?: string; /** * * @type {string} * @memberof KeyMetadata */ 'lockAddress'?: string; /** * * @type {number} * @memberof KeyMetadata */ 'expiration'?: number; /** * * @type {string} * @memberof KeyMetadata */ 'keyHolderAddress'?: string; } /** * * @export * @interface KeyMetadata200Response */ export interface KeyMetadata200Response { [key: string]: any; /** * * @type {string} * @memberof KeyMetadata200Response */ 'keyId'?: string; /** * * @type {string} * @memberof KeyMetadata200Response */ 'lockAddress'?: string; /** * * @type {number} * @memberof KeyMetadata200Response */ 'network'?: number; } /** * * @export * @interface KeysByPage200Response */ export interface KeysByPage200Response { /** * * @type {KeysByPage200ResponseMeta} * @memberof KeysByPage200Response */ 'meta'?: KeysByPage200ResponseMeta; /** * * @type {Array} * @memberof KeysByPage200Response */ 'keys'?: Array; } /** * * @export * @interface KeysByPage200ResponseMeta */ export interface KeysByPage200ResponseMeta { /** * * @type {number} * @memberof KeysByPage200ResponseMeta */ 'total'?: number; /** * * @type {number} * @memberof KeysByPage200ResponseMeta */ 'page'?: number; /** * * @type {number} * @memberof KeysByPage200ResponseMeta */ 'byPage'?: number; } /** * * @export * @interface ListCheckoutConfigs200Response */ export interface ListCheckoutConfigs200Response { /** * * @type {Array} * @memberof ListCheckoutConfigs200Response */ 'results'?: Array; } /** * * @export * @interface ListPaymentMethods200Response */ export interface ListPaymentMethods200Response { /** * * @type {Array} * @memberof ListPaymentMethods200Response */ 'methods'?: Array; } /** * * @export * @interface LockContractOptions */ export interface LockContractOptions { /** * * @type {string} * @memberof LockContractOptions */ 'name'?: string; /** * * @type {string} * @memberof LockContractOptions */ 'expirationDuration'?: string | null; /** * * @type {string} * @memberof LockContractOptions */ 'maxNumberOfKeys'?: string | null; /** * * @type {string} * @memberof LockContractOptions */ 'keyPrice'?: string; /** * * @type {string} * @memberof LockContractOptions */ 'creator'?: string | null; /** * * @type {string} * @memberof LockContractOptions */ 'currencyContractAddress'?: string | null; /** * * @type {number} * @memberof LockContractOptions */ 'publicLockVersion'?: number | null; } /** * * @export * @interface LockSettings */ export interface LockSettings { /** * * @type {string} * @memberof LockSettings */ 'lockAddress'?: string; /** * * @type {number} * @memberof LockSettings */ 'network'?: number; /** * * @type {boolean} * @memberof LockSettings */ 'sendEmail'?: boolean; /** * * @type {string} * @memberof LockSettings */ 'slug'?: string; /** * * @type {string} * @memberof LockSettings */ 'replyTo'?: string | null; /** * * @type {number} * @memberof LockSettings */ 'creditCardPrice'?: number | null; /** * * @type {string} * @memberof LockSettings */ 'emailSender'?: string | null; /** * * @type {string} * @memberof LockSettings */ 'checkoutConfigId'?: string | null; /** * * @type {string} * @memberof LockSettings */ 'hookGuildId'?: string | null; /** * * @type {boolean} * @memberof LockSettings */ 'unlockFeeChargedToUser'?: boolean; /** * * @type {string} * @memberof LockSettings */ 'creditCardCurrency'?: string; /** * * @type {string} * @memberof LockSettings */ 'crossmintClientId'?: string | null; /** * * @type {Array} * @memberof LockSettings */ 'promoCodes'?: Array; /** * * @type {Array} * @memberof LockSettings */ 'passwords'?: Array; /** * * @type {number} * @memberof LockSettings */ 'requiredGitcoinPassportScore'?: number | null; /** * * @type {Array} * @memberof LockSettings */ 'allowList'?: Array | null; } /** * * @export * @interface LoginRequest */ export interface LoginRequest { /** * * @type {string} * @memberof LoginRequest */ 'message'?: string; /** * * @type {string} * @memberof LoginRequest */ 'signature'?: string; } /** * * @export * @interface LoginWithPrivyRequest */ export interface LoginWithPrivyRequest { /** * The Privy access token to verify * @type {string} * @memberof LoginWithPrivyRequest */ 'accessToken': string; /** * The wallet address from the user * @type {string} * @memberof LoginWithPrivyRequest */ 'walletAddress': string; } /** * * @export * @interface NotAuthenticated */ export interface NotAuthenticated { /** * * @type {string} * @memberof NotAuthenticated */ 'message'?: string; } /** * * @export * @interface PaymentMethod */ export interface PaymentMethod { /** * * @type {string} * @memberof PaymentMethod */ 'id'?: string; /** * * @type {string} * @memberof PaymentMethod */ 'object'?: string; /** * * @type {PaymentMethodBillingDetails} * @memberof PaymentMethod */ 'billing_details'?: PaymentMethodBillingDetails; /** * * @type {PaymentMethodCard} * @memberof PaymentMethod */ 'card'?: PaymentMethodCard; /** * * @type {number} * @memberof PaymentMethod */ 'created'?: number; /** * * @type {string} * @memberof PaymentMethod */ 'customer'?: string; /** * * @type {boolean} * @memberof PaymentMethod */ 'livemode'?: boolean; /** * * @type {{ [key: string]: any; }} * @memberof PaymentMethod */ 'metadata'?: { [key: string]: any; }; /** * * @type {string} * @memberof PaymentMethod */ 'type'?: string; } /** * * @export * @interface PaymentMethodBillingDetails */ export interface PaymentMethodBillingDetails { /** * * @type {PaymentMethodBillingDetailsAddress} * @memberof PaymentMethodBillingDetails */ 'address'?: PaymentMethodBillingDetailsAddress; /** * * @type {string} * @memberof PaymentMethodBillingDetails */ 'email'?: string; /** * * @type {string} * @memberof PaymentMethodBillingDetails */ 'name'?: string; /** * * @type {string} * @memberof PaymentMethodBillingDetails */ 'phone'?: string; } /** * * @export * @interface PaymentMethodBillingDetailsAddress */ export interface PaymentMethodBillingDetailsAddress { /** * * @type {string} * @memberof PaymentMethodBillingDetailsAddress */ 'city'?: string; /** * * @type {string} * @memberof PaymentMethodBillingDetailsAddress */ 'country'?: string; /** * * @type {string} * @memberof PaymentMethodBillingDetailsAddress */ 'line1'?: string; /** * * @type {string} * @memberof PaymentMethodBillingDetailsAddress */ 'line2'?: string; /** * * @type {string} * @memberof PaymentMethodBillingDetailsAddress */ 'postal_code'?: string; /** * * @type {string} * @memberof PaymentMethodBillingDetailsAddress */ 'state'?: string; } /** * * @export * @interface PaymentMethodCard */ export interface PaymentMethodCard { /** * * @type {string} * @memberof PaymentMethodCard */ 'brand'?: string; /** * * @type {PaymentMethodCardChecks} * @memberof PaymentMethodCard */ 'checks'?: PaymentMethodCardChecks; /** * * @type {string} * @memberof PaymentMethodCard */ 'country'?: string; /** * * @type {number} * @memberof PaymentMethodCard */ 'exp_month'?: number; /** * * @type {number} * @memberof PaymentMethodCard */ 'exp_year'?: number; /** * * @type {string} * @memberof PaymentMethodCard */ 'fingerprint'?: string; /** * * @type {string} * @memberof PaymentMethodCard */ 'funding'?: string; /** * * @type {string} * @memberof PaymentMethodCard */ 'generated_from'?: string; /** * * @type {string} * @memberof PaymentMethodCard */ 'last4'?: string; /** * * @type {PaymentMethodCardNetworks} * @memberof PaymentMethodCard */ 'networks'?: PaymentMethodCardNetworks; /** * * @type {PaymentMethodCardThreeDSecureUsage} * @memberof PaymentMethodCard */ 'three_d_secure_usage'?: PaymentMethodCardThreeDSecureUsage; /** * * @type {string} * @memberof PaymentMethodCard */ 'wallet'?: string; } /** * * @export * @interface PaymentMethodCardChecks */ export interface PaymentMethodCardChecks { /** * * @type {string} * @memberof PaymentMethodCardChecks */ 'address_line1_check'?: string; /** * * @type {string} * @memberof PaymentMethodCardChecks */ 'address_postal_code_check'?: string; /** * * @type {string} * @memberof PaymentMethodCardChecks */ 'cvc_check'?: string; } /** * * @export * @interface PaymentMethodCardNetworks */ export interface PaymentMethodCardNetworks { /** * * @type {Array} * @memberof PaymentMethodCardNetworks */ 'available'?: Array; /** * * @type {string} * @memberof PaymentMethodCardNetworks */ 'preferred'?: string; } /** * * @export * @interface PaymentMethodCardThreeDSecureUsage */ export interface PaymentMethodCardThreeDSecureUsage { /** * * @type {boolean} * @memberof PaymentMethodCardThreeDSecureUsage */ 'supported'?: boolean; } /** * * @export * @interface Price200Response */ export interface Price200Response { /** * * @type {Price200ResponseResult} * @memberof Price200Response */ 'result'?: Price200ResponseResult; } /** * * @export * @interface Price200ResponseResult */ export interface Price200ResponseResult { /** * * @type {number} * @memberof Price200ResponseResult */ 'decimals'?: number | null; /** * * @type {number} * @memberof Price200ResponseResult */ 'price'?: number; /** * * @type {number} * @memberof Price200ResponseResult */ 'timestamp'?: number; /** * * @type {string} * @memberof Price200ResponseResult */ 'symbol'?: string; /** * * @type {number} * @memberof Price200ResponseResult */ 'confidence'?: number; /** * * @type {number} * @memberof Price200ResponseResult */ 'priceInAmount'?: number | null; } /** * @type PrivyUserCheckBody * @export */ export type PrivyUserCheckBody = any; /** * * @export * @interface PrivyUserResponse */ export interface PrivyUserResponse { /** * Whether the user exists in Privy * @type {boolean} * @memberof PrivyUserResponse */ 'exists': boolean; /** * * @type {PrivyUserResponseUser} * @memberof PrivyUserResponse */ 'user': PrivyUserResponseUser | null; } /** * * @export * @interface PrivyUserResponseUser */ export interface PrivyUserResponseUser { /** * * @type {string} * @memberof PrivyUserResponseUser */ 'id'?: string; /** * * @type {string} * @memberof PrivyUserResponseUser */ 'createdAt'?: string; /** * * @type {boolean} * @memberof PrivyUserResponseUser */ 'isGuest'?: boolean; /** * * @type {object} * @memberof PrivyUserResponseUser */ 'customMetadata'?: object; /** * * @type {Array} * @memberof PrivyUserResponseUser */ 'linkedAccounts'?: Array; /** * * @type {PrivyUserResponseUserEmail} * @memberof PrivyUserResponseUser */ 'email'?: PrivyUserResponseUserEmail; /** * * @type {PrivyUserResponseUserWallet} * @memberof PrivyUserResponseUser */ 'wallet'?: PrivyUserResponseUserWallet; } /** * * @export * @interface PrivyUserResponseUserEmail */ export interface PrivyUserResponseUserEmail { /** * * @type {string} * @memberof PrivyUserResponseUserEmail */ 'address'?: string; /** * * @type {string} * @memberof PrivyUserResponseUserEmail */ 'verifiedAt'?: string; /** * * @type {string} * @memberof PrivyUserResponseUserEmail */ 'firstVerifiedAt'?: string; /** * * @type {string} * @memberof PrivyUserResponseUserEmail */ 'latestVerifiedAt'?: string; } /** * * @export * @interface PrivyUserResponseUserWallet */ export interface PrivyUserResponseUserWallet { /** * * @type {string} * @memberof PrivyUserResponseUserWallet */ 'address'?: string; /** * * @type {string} * @memberof PrivyUserResponseUserWallet */ 'chainType'?: string; /** * * @type {string} * @memberof PrivyUserResponseUserWallet */ 'verifiedAt'?: string; /** * * @type {string} * @memberof PrivyUserResponseUserWallet */ 'firstVerifiedAt'?: string; /** * * @type {string} * @memberof PrivyUserResponseUserWallet */ 'latestVerifiedAt'?: string; } /** * * @export * @interface Purchase200Response */ export interface Purchase200Response { /** * * @type {string} * @memberof Purchase200Response */ 'clientSecret'?: string; /** * * @type {string} * @memberof Purchase200Response */ 'stripeAccount'?: string; /** * * @type {number} * @memberof Purchase200Response */ 'totalPriceInDents'?: number; /** * * @type {Purchase200ResponsePricing} * @memberof Purchase200Response */ 'pricing'?: Purchase200ResponsePricing | null; } /** * * @export * @interface Purchase200ResponsePricing */ export interface Purchase200ResponsePricing { /** * * @type {number} * @memberof Purchase200ResponsePricing */ 'keyPrice'?: number | null; /** * * @type {number} * @memberof Purchase200ResponsePricing */ 'unlockServiceFee'?: number | null; /** * * @type {number} * @memberof Purchase200ResponsePricing */ 'creditCardProcessing'?: number | null; } /** * * @export * @interface PurchaseRequest */ export interface PurchaseRequest { /** * * @type {Array} * @memberof PurchaseRequest */ 'recipients': Array; /** * * @type {string} * @memberof PurchaseRequest */ 'stripeTokenId': string; /** * * @type {number} * @memberof PurchaseRequest */ 'pricing': number; /** * * @type {number} * @memberof PurchaseRequest */ 'recurring'?: number | null; /** * * @type {Array} * @memberof PurchaseRequest */ 'data'?: Array; /** * * @type {Array} * @memberof PurchaseRequest */ 'referrers'?: Array; } /** * * @export * @interface RemoveEventBody */ export interface RemoveEventBody { /** * Slug of the event to remove. * @type {string} * @memberof RemoveEventBody */ 'eventSlug': string; } /** * * @export * @interface RemoveManagerBody */ export interface RemoveManagerBody { /** * * @type {string} * @memberof RemoveManagerBody */ 'managerAddressToRemove': string; } /** * * @export * @interface RemovePaymentMethods200Response */ export interface RemovePaymentMethods200Response { /** * * @type {boolean} * @memberof RemovePaymentMethods200Response */ 'success'?: boolean; } /** * * @export * @interface Rsvp */ export interface Rsvp { /** * * @type {string} * @memberof Rsvp */ 'lockAddress'?: string; /** * * @type {string} * @memberof Rsvp */ 'userAddress'?: string; /** * * @type {string} * @memberof Rsvp */ 'approval'?: string; /** * * @type {number} * @memberof Rsvp */ 'network'?: number; } /** * * @export * @interface RsvpRequest */ export interface RsvpRequest { /** * * @type {string} * @memberof RsvpRequest */ 'recipient'?: string; /** * * @type {string} * @memberof RsvpRequest */ 'email'?: string; /** * * @type {{ [key: string]: any; }} * @memberof RsvpRequest */ 'data'?: { [key: string]: any; }; } /** * * @export * @interface SaveEventDataRequest */ export interface SaveEventDataRequest { /** * * @type {{ [key: string]: any; }} * @memberof SaveEventDataRequest */ 'data'?: { [key: string]: any; }; /** * * @type {string} * @memberof SaveEventDataRequest */ 'status'?: SaveEventDataRequestStatusEnum; /** * * @type {string} * @memberof SaveEventDataRequest */ 'transactionHash'?: string; /** * * @type {CheckoutConfig} * @memberof SaveEventDataRequest */ 'checkoutConfig'?: CheckoutConfig; } export const SaveEventDataRequestStatusEnum = { Pending: 'pending', Deployed: 'deployed' } as const; export type SaveEventDataRequestStatusEnum = typeof SaveEventDataRequestStatusEnum[keyof typeof SaveEventDataRequestStatusEnum]; /** * * @export * @interface SaveLockSetting200Response */ export interface SaveLockSetting200Response { /** * * @type {boolean} * @memberof SaveLockSetting200Response */ 'sendEmail'?: boolean; } /** * * @export * @interface SaveMerkleTree200Response */ export interface SaveMerkleTree200Response { /** * The merkle tree root hash * @type {string} * @memberof SaveMerkleTree200Response */ 'root': string; } /** * * @export * @interface SaveMerkleTree400Response */ export interface SaveMerkleTree400Response { /** * * @type {SaveMerkleTree400ResponseError} * @memberof SaveMerkleTree400Response */ 'error': SaveMerkleTree400ResponseError; } /** * * @export * @interface SaveMerkleTree400ResponseError */ export interface SaveMerkleTree400ResponseError { /** * * @type {Array} * @memberof SaveMerkleTree400ResponseError */ 'issues': Array; } /** * * @export * @interface SaveMerkleTree400ResponseErrorIssuesInner */ export interface SaveMerkleTree400ResponseErrorIssuesInner { /** * * @type {string} * @memberof SaveMerkleTree400ResponseErrorIssuesInner */ 'code'?: string; /** * * @type {string} * @memberof SaveMerkleTree400ResponseErrorIssuesInner */ 'message'?: string; /** * * @type {Array} * @memberof SaveMerkleTree400ResponseErrorIssuesInner */ 'path'?: Array; } /** * @type SaveMerkleTreeRequestInner * @export */ export type SaveMerkleTreeRequestInner = Array | string; /** * @type SaveMerkleTreeRequestInnerOneOfInner * @export */ export type SaveMerkleTreeRequestInnerOneOfInner = SaveMerkleTreeRequestInnerOneOfInnerOneOf | string; /** * * @export * @interface SaveMerkleTreeRequestInnerOneOfInnerOneOf */ export interface SaveMerkleTreeRequestInnerOneOfInnerOneOf { /** * * @type {SaveMerkleTreeRequestInnerOneOfInnerOneOfAmount} * @memberof SaveMerkleTreeRequestInnerOneOfInnerOneOf */ 'amount'?: SaveMerkleTreeRequestInnerOneOfInnerOneOfAmount; } /** * @type SaveMerkleTreeRequestInnerOneOfInnerOneOfAmount * @export */ export type SaveMerkleTreeRequestInnerOneOfInnerOneOfAmount = number | string; /** * * @export * @interface SaveReceipt200Response */ export interface SaveReceipt200Response { /** * * @type {string} * @memberof SaveReceipt200Response */ 'fullname'?: string; /** * * @type {string} * @memberof SaveReceipt200Response */ 'businessName'?: string; /** * * @type {string} * @memberof SaveReceipt200Response */ 'addressLine1'?: string; /** * * @type {string} * @memberof SaveReceipt200Response */ 'addressLine2'?: string; /** * * @type {string} * @memberof SaveReceipt200Response */ 'city'?: string; /** * * @type {string} * @memberof SaveReceipt200Response */ 'state'?: string; /** * * @type {string} * @memberof SaveReceipt200Response */ 'zip'?: string; /** * * @type {string} * @memberof SaveReceipt200Response */ 'country'?: string; } /** * * @export * @interface SendCustomEmail200Response */ export interface SendCustomEmail200Response { /** * * @type {boolean} * @memberof SendCustomEmail200Response */ 'sent'?: boolean; } /** * * @export * @interface SendCustomEmailRequest */ export interface SendCustomEmailRequest { /** * * @type {string} * @memberof SendCustomEmailRequest */ 'subject'?: string; /** * * @type {string} * @memberof SendCustomEmailRequest */ 'content'?: string; } /** * * @export * @interface SendEventInvitesRequest */ export interface SendEventInvitesRequest { /** * * @type {Array} * @memberof SendEventInvitesRequest */ 'recipients'?: Array; } /** * * @export * @interface SendVerificationCode200Response */ export interface SendVerificationCode200Response { /** * * @type {string} * @memberof SendVerificationCode200Response */ 'message'?: string; } /** * * @export * @interface SetupPayment200Response */ export interface SetupPayment200Response { /** * * @type {string} * @memberof SetupPayment200Response */ 'clientSecret'?: string; } /** * * @export * @interface SignTicket200Response */ export interface SignTicket200Response { /** * * @type {string} * @memberof SignTicket200Response */ 'payload'?: string; /** * * @type {string} * @memberof SignTicket200Response */ 'signature'?: string; } /** * * @export * @interface TicketVerificationUrl200Response */ export interface TicketVerificationUrl200Response { /** * * @type {string} * @memberof TicketVerificationUrl200Response */ 'verificationUrl'?: string; } /** * * @export * @interface TransferDoneRequest */ export interface TransferDoneRequest { /** * The signature of the transfer code sent to the recipient. * @type {string} * @memberof TransferDoneRequest */ 'transferSignature': string; /** * * @type {string} * @memberof TransferDoneRequest */ 'owner': string; /** * * @type {string} * @memberof TransferDoneRequest */ 'lock': string; /** * * @type {string} * @memberof TransferDoneRequest */ 'token': string; /** * * @type {number} * @memberof TransferDoneRequest */ 'network': number; /** * * @type {number} * @memberof TransferDoneRequest */ 'deadline': number; } /** * * @export * @interface UpdateCheckoutConfigRequest */ export interface UpdateCheckoutConfigRequest { /** * * @type {string} * @memberof UpdateCheckoutConfigRequest */ 'name': string; /** * * @type {{ [key: string]: any; }} * @memberof UpdateCheckoutConfigRequest */ 'config': { [key: string]: any; }; } /** * * @export * @interface UpdateEventData200Response */ export interface UpdateEventData200Response { /** * * @type {string} * @memberof UpdateEventData200Response */ 'slug'?: string; /** * * @type {string} * @memberof UpdateEventData200Response */ 'status'?: string; /** * * @type {string} * @memberof UpdateEventData200Response */ 'transactionHash'?: string; } /** * * @export * @interface UpdateEventDataRequest */ export interface UpdateEventDataRequest { /** * * @type {string} * @memberof UpdateEventDataRequest */ 'status'?: UpdateEventDataRequestStatusEnum; /** * * @type {string} * @memberof UpdateEventDataRequest */ 'transactionHash'?: string; /** * * @type {CheckoutConfig} * @memberof UpdateEventDataRequest */ 'checkoutConfig'?: CheckoutConfig; } export const UpdateEventDataRequestStatusEnum = { Pending: 'pending', Deployed: 'deployed' } as const; export type UpdateEventDataRequestStatusEnum = typeof UpdateEventDataRequestStatusEnum[keyof typeof UpdateEventDataRequestStatusEnum]; /** * JSON metadata inside metadata field will be saved. * @export * @interface UpdateLockMetadataRequest */ export interface UpdateLockMetadataRequest { /** * * @type {{ [key: string]: any; }} * @memberof UpdateLockMetadataRequest */ 'metadata'?: { [key: string]: any; }; } /** * * @export * @interface UpdateUserEncryptedPrivateKey200Response */ export interface UpdateUserEncryptedPrivateKey200Response { /** * * @type {string} * @memberof UpdateUserEncryptedPrivateKey200Response */ 'emailAddress'?: string; /** * * @type {string} * @memberof UpdateUserEncryptedPrivateKey200Response */ 'user'?: string; } /** * * @export * @interface UpdateUserEncryptedPrivateKeyRequest */ export interface UpdateUserEncryptedPrivateKeyRequest { /** * * @type {string} * @memberof UpdateUserEncryptedPrivateKeyRequest */ 'user'?: string; /** * * @type {string} * @memberof UpdateUserEncryptedPrivateKeyRequest */ 'token'?: string; } /** * * @export * @interface UpdateUserMetadataRequest */ export interface UpdateUserMetadataRequest { /** * * @type {UserMetadataInput} * @memberof UpdateUserMetadataRequest */ 'metadata'?: UserMetadataInput; } /** * * @export * @interface UpdateUsersMetadata201Response */ export interface UpdateUsersMetadata201Response { /** * * @type {Array} * @memberof UpdateUsersMetadata201Response */ 'result'?: Array; /** * Array containing user addresses for which metadata was not created. * @type {Array} * @memberof UpdateUsersMetadata201Response */ 'error'?: Array; } /** * * @export * @interface UpdateUsersMetadataRequest */ export interface UpdateUsersMetadataRequest { /** * * @type {Array} * @memberof UpdateUsersMetadataRequest */ 'users'?: Array; } /** * * @export * @interface UploadImages201Response */ export interface UploadImages201Response { /** * * @type {Array} * @memberof UploadImages201Response */ 'results'?: Array; } /** * * @export * @interface UploadImages201ResponseResultsInner */ export interface UploadImages201ResponseResultsInner { /** * * @type {string} * @memberof UploadImages201ResponseResultsInner */ 'url'?: string; /** * * @type {string} * @memberof UploadImages201ResponseResultsInner */ 'publicUrl'?: string; /** * * @type {string} * @memberof UploadImages201ResponseResultsInner */ 'originamName'?: string; /** * * @type {string} * @memberof UploadImages201ResponseResultsInner */ 'mimetype'?: string; /** * * @type {string} * @memberof UploadImages201ResponseResultsInner */ 'contentType'?: string; /** * * @type {number} * @memberof UploadImages201ResponseResultsInner */ 'size'?: number; /** * * @type {string} * @memberof UploadImages201ResponseResultsInner */ 'key'?: string; /** * * @type {UploadImages201ResponseResultsInnerMetadata} * @memberof UploadImages201ResponseResultsInner */ 'metadata'?: UploadImages201ResponseResultsInnerMetadata; /** * * @type {string} * @memberof UploadImages201ResponseResultsInner */ 'encoding'?: string; } /** * * @export * @interface UploadImages201ResponseResultsInnerMetadata */ export interface UploadImages201ResponseResultsInnerMetadata { /** * * @type {string} * @memberof UploadImages201ResponseResultsInnerMetadata */ 'fieldName'?: string; /** * * @type {string} * @memberof UploadImages201ResponseResultsInnerMetadata */ 'createdBy'?: string; } /** * * @export * @interface UserMetadata */ export interface UserMetadata { /** * * @type {number} * @memberof UserMetadata */ 'network': number; /** * * @type {string} * @memberof UserMetadata */ 'lockAddress': string; /** * * @type {string} * @memberof UserMetadata */ 'userAddress': string; /** * * @type {UserMetadataInput} * @memberof UserMetadata */ 'metadata': UserMetadataInput; } /** * * @export * @interface UserMetadataInput */ export interface UserMetadataInput { /** * * @type {{ [key: string]: any; }} * @memberof UserMetadataInput */ 'public'?: { [key: string]: any; } | null; /** * * @type {{ [key: string]: any; }} * @memberof UserMetadataInput */ 'protected'?: { [key: string]: any; } | null; } /** * * @export * @interface Verifier */ export interface Verifier { /** * * @type {string} * @memberof Verifier */ 'address': string; /** * * @type {string} * @memberof Verifier */ 'lockAddress'?: string; /** * * @type {string} * @memberof Verifier */ 'lockManager'?: string; /** * * @type {number} * @memberof Verifier */ 'network'?: number; /** * * @type {string} * @memberof Verifier */ 'name'?: string | null; } /** * * @export * @interface Verifier200Response */ export interface Verifier200Response { /** * * @type {boolean} * @memberof Verifier200Response */ 'enabled'?: boolean; } /** * * @export * @interface Verifiers200Response */ export interface Verifiers200Response { /** * * @type {Array} * @memberof Verifiers200Response */ 'results'?: Array; } /** * * @export * @interface VerifyEmailCode200Response */ export interface VerifyEmailCode200Response { /** * * @type {string} * @memberof VerifyEmailCode200Response */ 'message'?: string; /** * * @type {string} * @memberof VerifyEmailCode200Response */ 'token'?: string; } /** * * @export * @interface VerifyEmailCodeRequest */ export interface VerifyEmailCodeRequest { /** * * @type {string} * @memberof VerifyEmailCodeRequest */ 'code'?: string; } /** * DefaultApi - axios parameter creator * @export */ export const DefaultApiAxiosParamCreator = function (configuration?: Configuration) { return { /** * Add an event to a collection * @param {string} slug * @param {AddEventToCollectionBody} addEventToCollectionBody * @param {*} [options] Override http request option. * @throws {RequiredError} */ addEventToCollection: async (slug: string, addEventToCollectionBody: AddEventToCollectionBody, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'slug' is not null or undefined assertParamExists('addEventToCollection', 'slug', slug) // verify required parameter 'addEventToCollectionBody' is not null or undefined assertParamExists('addEventToCollection', 'addEventToCollectionBody', addEventToCollectionBody) const localVarPath = `/v2/event-collection/{slug}/events` .replace(`{${"slug"}}`, encodeURIComponent(String(slug))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication User required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(addEventToCollectionBody, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Adds a verifier for an event. * @param {string} slug Slug * @param {string} verifierAddress User address to use as verifier * @param {CreateVerifierRequest} [createVerifierRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ addEventVerifier: async (slug: string, verifierAddress: string, createVerifierRequest?: CreateVerifierRequest, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'slug' is not null or undefined assertParamExists('addEventVerifier', 'slug', slug) // verify required parameter 'verifierAddress' is not null or undefined assertParamExists('addEventVerifier', 'verifierAddress', verifierAddress) const localVarPath = `/v2/events/{slug}/verifiers/{verifierAddress}` .replace(`{${"slug"}}`, encodeURIComponent(String(slug))) .replace(`{${"verifierAddress"}}`, encodeURIComponent(String(verifierAddress))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication User required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(createVerifierRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Add a new manager address to an event collection * @param {string} slug * @param {AddManagerBody} addManagerBody * @param {*} [options] Override http request option. * @throws {RequiredError} */ addManagerToEventCollection: async (slug: string, addManagerBody: AddManagerBody, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'slug' is not null or undefined assertParamExists('addManagerToEventCollection', 'slug', slug) // verify required parameter 'addManagerBody' is not null or undefined assertParamExists('addManagerToEventCollection', 'addManagerBody', addManagerBody) const localVarPath = `/v2/event-collection/{slug}/managers` .replace(`{${"slug"}}`, encodeURIComponent(String(slug))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication User required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(addManagerBody, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * List applications created the user. * @param {*} [options] Override http request option. * @throws {RequiredError} */ applications: async (options: AxiosRequestConfig = {}): Promise => { const localVarPath = `/v2/applications/list`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication User required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Approves users to attend an event. (does not airdrop!) * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {ApproveAttendeesRsvpRequest} approveAttendeesRsvpRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ approveAttendeesRsvp: async (network: number, lockAddress: string, approveAttendeesRsvpRequest: ApproveAttendeesRsvpRequest, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'network' is not null or undefined assertParamExists('approveAttendeesRsvp', 'network', network) // verify required parameter 'lockAddress' is not null or undefined assertParamExists('approveAttendeesRsvp', 'lockAddress', lockAddress) // verify required parameter 'approveAttendeesRsvpRequest' is not null or undefined assertParamExists('approveAttendeesRsvp', 'approveAttendeesRsvpRequest', approveAttendeesRsvpRequest) const localVarPath = `/v2/rsvp/{network}/{lockAddress}/approve` .replace(`{${"network"}}`, encodeURIComponent(String(network))) .replace(`{${"lockAddress"}}`, encodeURIComponent(String(lockAddress))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(approveAttendeesRsvpRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Approve a single event within an event collection. * @param {string} slug Slug of the event collection. * @param {ApproveEventBody} approveEventBody * @param {*} [options] Override http request option. * @throws {RequiredError} */ approveEvent: async (slug: string, approveEventBody: ApproveEventBody, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'slug' is not null or undefined assertParamExists('approveEvent', 'slug', slug) // verify required parameter 'approveEventBody' is not null or undefined assertParamExists('approveEvent', 'approveEventBody', approveEventBody) const localVarPath = `/v2/event-collection/{slug}/events/approve` .replace(`{${"slug"}}`, encodeURIComponent(String(slug))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication User required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(approveEventBody, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Approves refunds for an event. * @param {string} slug Slug * @param {ApproveRefundsRequest} approveRefundsRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ approveRefunds: async (slug: string, approveRefundsRequest: ApproveRefundsRequest, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'slug' is not null or undefined assertParamExists('approveRefunds', 'slug', slug) // verify required parameter 'approveRefundsRequest' is not null or undefined assertParamExists('approveRefunds', 'approveRefundsRequest', approveRefundsRequest) const localVarPath = `/v2/events/{slug}/approve-refunds` .replace(`{${"slug"}}`, encodeURIComponent(String(slug))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication User required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(approveRefundsRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Approves a user to attend an event. (does not airdrop!) * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {string} userAddress User address. * @param {*} [options] Override http request option. * @deprecated * @throws {RequiredError} */ approveRsvp: async (network: number, lockAddress: string, userAddress: string, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'network' is not null or undefined assertParamExists('approveRsvp', 'network', network) // verify required parameter 'lockAddress' is not null or undefined assertParamExists('approveRsvp', 'lockAddress', lockAddress) // verify required parameter 'userAddress' is not null or undefined assertParamExists('approveRsvp', 'userAddress', userAddress) const localVarPath = `/v2/rsvp/{network}/{lockAddress}/approve/{userAddress}` .replace(`{${"network"}}`, encodeURIComponent(String(network))) .replace(`{${"lockAddress"}}`, encodeURIComponent(String(lockAddress))) .replace(`{${"userAddress"}}`, encodeURIComponent(String(userAddress))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Returns the merkle proof of an approved refund. * @param {string} slug Slug * @param {*} [options] Override http request option. * @throws {RequiredError} */ approvedRefunds: async (slug: string, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'slug' is not null or undefined assertParamExists('approvedRefunds', 'slug', slug) const localVarPath = `/v2/events/approved-refunds/{slug}` .replace(`{${"slug"}}`, encodeURIComponent(String(slug))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {*} [options] Override http request option. * @throws {RequiredError} */ balance: async (options: AxiosRequestConfig = {}): Promise => { const localVarPath = `/purchase`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Bulk approve multiple events within an event collection. * @param {string} slug Slug of the event collection. * @param {BulkApproveEventsBody} bulkApproveEventsBody * @param {*} [options] Override http request option. * @throws {RequiredError} */ bulkApproveEvents: async (slug: string, bulkApproveEventsBody: BulkApproveEventsBody, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'slug' is not null or undefined assertParamExists('bulkApproveEvents', 'slug', slug) // verify required parameter 'bulkApproveEventsBody' is not null or undefined assertParamExists('bulkApproveEvents', 'bulkApproveEventsBody', bulkApproveEventsBody) const localVarPath = `/v2/event-collection/{slug}/events/bulk-approve` .replace(`{${"slug"}}`, encodeURIComponent(String(slug))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication User required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(bulkApproveEventsBody, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Bulk remove multiple events from an event collection. * @param {string} slug Slug of the event collection. * @param {BulkRemoveEventsBody} bulkRemoveEventsBody * @param {*} [options] Override http request option. * @throws {RequiredError} */ bulkRemoveEvents: async (slug: string, bulkRemoveEventsBody: BulkRemoveEventsBody, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'slug' is not null or undefined assertParamExists('bulkRemoveEvents', 'slug', slug) // verify required parameter 'bulkRemoveEventsBody' is not null or undefined assertParamExists('bulkRemoveEvents', 'bulkRemoveEventsBody', bulkRemoveEventsBody) const localVarPath = `/v2/event-collection/{slug}/events/bulk-remove` .replace(`{${"slug"}}`, encodeURIComponent(String(slug))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication User required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(bulkRemoveEventsBody, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Cancel a fiat subscription. * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {string} keyId Key Id. * @param {*} [options] Override http request option. * @throws {RequiredError} */ cancelSubscription: async (network: number, lockAddress: string, keyId: string, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'network' is not null or undefined assertParamExists('cancelSubscription', 'network', network) // verify required parameter 'lockAddress' is not null or undefined assertParamExists('cancelSubscription', 'lockAddress', lockAddress) // verify required parameter 'keyId' is not null or undefined assertParamExists('cancelSubscription', 'keyId', keyId) const localVarPath = `/v2/subscriptions/{network}/locks/{lockAddress}/keys/{keyId}` .replace(`{${"network"}}`, encodeURIComponent(String(network))) .replace(`{${"lockAddress"}}`, encodeURIComponent(String(lockAddress))) .replace(`{${"keyId"}}`, encodeURIComponent(String(keyId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication User required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Capture a purchase * @param {CapturePurchaseRequest} [capturePurchaseRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ capturePurchase: async (capturePurchaseRequest?: CapturePurchaseRequest, options: AxiosRequestConfig = {}): Promise => { const localVarPath = `/purchase/capture`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication User required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(capturePurchaseRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Check if claim is possible for a given purchase * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {CheckClaimRequest} [checkClaimRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ checkClaim: async (network: number, lockAddress: string, checkClaimRequest?: CheckClaimRequest, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'network' is not null or undefined assertParamExists('checkClaim', 'network', network) // verify required parameter 'lockAddress' is not null or undefined assertParamExists('checkClaim', 'lockAddress', lockAddress) const localVarPath = `/claim/{network}/locks/{lockAddress}` .replace(`{${"network"}}`, encodeURIComponent(String(network))) .replace(`{${"lockAddress"}}`, encodeURIComponent(String(lockAddress))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(checkClaimRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Mark an event ticket as checked in. * @param {string} slug Slug * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {string} keyId Key Id. * @param {*} [options] Override http request option. * @throws {RequiredError} */ checkEventTicket: async (slug: string, network: number, lockAddress: string, keyId: string, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'slug' is not null or undefined assertParamExists('checkEventTicket', 'slug', slug) // verify required parameter 'network' is not null or undefined assertParamExists('checkEventTicket', 'network', network) // verify required parameter 'lockAddress' is not null or undefined assertParamExists('checkEventTicket', 'lockAddress', lockAddress) // verify required parameter 'keyId' is not null or undefined assertParamExists('checkEventTicket', 'keyId', keyId) const localVarPath = `/v2/api/ticket/{slug}/{network}/lock/{lockAddress}/key/{keyId}/check` .replace(`{${"slug"}}`, encodeURIComponent(String(slug))) .replace(`{${"network"}}`, encodeURIComponent(String(network))) .replace(`{${"lockAddress"}}`, encodeURIComponent(String(lockAddress))) .replace(`{${"keyId"}}`, encodeURIComponent(String(keyId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication User required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Check if a user exists in Privy by email or wallet address * @param {PrivyUserCheckBody} privyUserCheckBody * @param {*} [options] Override http request option. * @throws {RequiredError} */ checkPrivyUser: async (privyUserCheckBody: PrivyUserCheckBody, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'privyUserCheckBody' is not null or undefined assertParamExists('checkPrivyUser', 'privyUserCheckBody', privyUserCheckBody) const localVarPath = `/v2/privy/check`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(privyUserCheckBody, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Mark a lock ticket as checked in. * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {string} keyId Key Id. * @param {*} [options] Override http request option. * @deprecated * @throws {RequiredError} */ checkTicket: async (network: number, lockAddress: string, keyId: string, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'network' is not null or undefined assertParamExists('checkTicket', 'network', network) // verify required parameter 'lockAddress' is not null or undefined assertParamExists('checkTicket', 'lockAddress', lockAddress) // verify required parameter 'keyId' is not null or undefined assertParamExists('checkTicket', 'keyId', keyId) const localVarPath = `/v2/api/ticket/{network}/lock/{lockAddress}/key/{keyId}/check` .replace(`{${"network"}}`, encodeURIComponent(String(network))) .replace(`{${"lockAddress"}}`, encodeURIComponent(String(lockAddress))) .replace(`{${"keyId"}}`, encodeURIComponent(String(keyId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication User required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Claim a membership key for a lock. If not authenticated, requires an email in the body. * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {string} captcha Recaptcha value to pass. * @param {ClaimRequest} claimRequest * @param {string} [recipient] Recipient address for key * @param {*} [options] Override http request option. * @throws {RequiredError} */ claim: async (network: number, lockAddress: string, captcha: string, claimRequest: ClaimRequest, recipient?: string, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'network' is not null or undefined assertParamExists('claim', 'network', network) // verify required parameter 'lockAddress' is not null or undefined assertParamExists('claim', 'lockAddress', lockAddress) // verify required parameter 'captcha' is not null or undefined assertParamExists('claim', 'captcha', captcha) // verify required parameter 'claimRequest' is not null or undefined assertParamExists('claim', 'claimRequest', claimRequest) const localVarPath = `/v2/claim/{network}/locks/{lockAddress}` .replace(`{${"network"}}`, encodeURIComponent(String(network))) .replace(`{${"lockAddress"}}`, encodeURIComponent(String(lockAddress))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication User required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) if (captcha !== undefined && captcha !== null) { localVarHeaderParameter['captcha'] = String(captcha); } if (recipient !== undefined && recipient !== null) { localVarHeaderParameter['recipient'] = String(recipient); } localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(claimRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Connect a stripe account to a lock * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {ConnectStripeAccountRequest} [connectStripeAccountRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ connectStripeAccount: async (network: number, lockAddress: string, connectStripeAccountRequest?: ConnectStripeAccountRequest, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'network' is not null or undefined assertParamExists('connectStripeAccount', 'network', network) // verify required parameter 'lockAddress' is not null or undefined assertParamExists('connectStripeAccount', 'lockAddress', lockAddress) const localVarPath = `/v2/stripe/connect/{network}/locks/{lockAddress}` .replace(`{${"network"}}`, encodeURIComponent(String(network))) .replace(`{${"lockAddress"}}`, encodeURIComponent(String(lockAddress))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication User required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(connectStripeAccountRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Create application associated with user wallet. * @param {ApplicationBody} applicationBody * @param {*} [options] Override http request option. * @throws {RequiredError} */ createApplication: async (applicationBody: ApplicationBody, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'applicationBody' is not null or undefined assertParamExists('createApplication', 'applicationBody', applicationBody) const localVarPath = `/v2/applications`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication User required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(applicationBody, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Request the creation of a ZIP file containing all receipts for a lock. * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {*} [options] Override http request option. * @throws {RequiredError} */ createDownloadReceiptsRequest: async (network: number, lockAddress: string, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'network' is not null or undefined assertParamExists('createDownloadReceiptsRequest', 'network', network) // verify required parameter 'lockAddress' is not null or undefined assertParamExists('createDownloadReceiptsRequest', 'lockAddress', lockAddress) const localVarPath = `/v2/receipts/all/{network}/{lockAddress}` .replace(`{${"network"}}`, encodeURIComponent(String(network))) .replace(`{${"lockAddress"}}`, encodeURIComponent(String(lockAddress))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication User required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Create a new event collection * @param {EventCollectionBody} eventCollectionBody * @param {*} [options] Override http request option. * @throws {RequiredError} */ createEventCollection: async (eventCollectionBody: EventCollectionBody, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'eventCollectionBody' is not null or undefined assertParamExists('createEventCollection', 'eventCollectionBody', eventCollectionBody) const localVarPath = `/v2/event-collection`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication User required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(eventCollectionBody, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {number} network Network id. * @param {string} captcha Recaptcha value to pass. * @param {LockContractOptions} lockContractOptions * @param {*} [options] Override http request option. * @throws {RequiredError} */ createLockContract: async (network: number, captcha: string, lockContractOptions: LockContractOptions, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'network' is not null or undefined assertParamExists('createLockContract', 'network', network) // verify required parameter 'captcha' is not null or undefined assertParamExists('createLockContract', 'captcha', captcha) // verify required parameter 'lockContractOptions' is not null or undefined assertParamExists('createLockContract', 'lockContractOptions', lockContractOptions) const localVarPath = `/v2/api/contracts/{network}/lock` .replace(`{${"network"}}`, encodeURIComponent(String(network))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication Application required await setApiKeyToObject(localVarQueryParameter, "api-key", configuration) // authentication User required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) if (captcha !== undefined && captcha !== null) { localVarHeaderParameter['captcha'] = String(captcha); } localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(lockContractOptions, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Create a transfer code to transfer an airdropped key to an email address. * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {string} keyId Key Id. * @param {*} [options] Override http request option. * @throws {RequiredError} */ createTransferCode: async (network: number, lockAddress: string, keyId: string, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'network' is not null or undefined assertParamExists('createTransferCode', 'network', network) // verify required parameter 'lockAddress' is not null or undefined assertParamExists('createTransferCode', 'lockAddress', lockAddress) // verify required parameter 'keyId' is not null or undefined assertParamExists('createTransferCode', 'keyId', keyId) const localVarPath = `/v2/transfer/{network}/locks/{lockAddress}/keys/{keyId}` .replace(`{${"network"}}`, encodeURIComponent(String(network))) .replace(`{${"lockAddress"}}`, encodeURIComponent(String(lockAddress))) .replace(`{${"keyId"}}`, encodeURIComponent(String(keyId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication User required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Create verifier. (deprecated in favor of addEventVerifier) * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {string} verifierAddress User address to use as verifier * @param {CreateVerifierRequest} [createVerifierRequest] * @param {*} [options] Override http request option. * @deprecated * @throws {RequiredError} */ createVerifier: async (network: number, lockAddress: string, verifierAddress: string, createVerifierRequest?: CreateVerifierRequest, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'network' is not null or undefined assertParamExists('createVerifier', 'network', network) // verify required parameter 'lockAddress' is not null or undefined assertParamExists('createVerifier', 'lockAddress', lockAddress) // verify required parameter 'verifierAddress' is not null or undefined assertParamExists('createVerifier', 'verifierAddress', verifierAddress) const localVarPath = `/v2/api/verifier/{network}/{lockAddress}/{verifierAddress}` .replace(`{${"network"}}`, encodeURIComponent(String(network))) .replace(`{${"lockAddress"}}`, encodeURIComponent(String(lockAddress))) .replace(`{${"verifierAddress"}}`, encodeURIComponent(String(verifierAddress))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication User required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(createVerifierRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Delete application by id. * @param {string} id Application id. * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteApplication: async (id: string, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('deleteApplication', 'id', id) const localVarPath = `/v2/applications/:id` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication User required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Delete a checkout config * @param {string} id The id of the checkout config * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteCheckoutConfig: async (id: string, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('deleteCheckoutConfig', 'id', id) const localVarPath = `/v2/checkout/{id}` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication User required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Removes a verifier for an event. * @param {string} slug Slug * @param {string} verifierAddress User address to use as verifier * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteEventVerifier: async (slug: string, verifierAddress: string, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'slug' is not null or undefined assertParamExists('deleteEventVerifier', 'slug', slug) // verify required parameter 'verifierAddress' is not null or undefined assertParamExists('deleteEventVerifier', 'verifierAddress', verifierAddress) const localVarPath = `/v2/events/{slug}/verifiers/{verifierAddress}` .replace(`{${"slug"}}`, encodeURIComponent(String(slug))) .replace(`{${"verifierAddress"}}`, encodeURIComponent(String(verifierAddress))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication User required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Remove verifier. (deprecated in favor of deleteEventVerifier) * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {string} verifierAddress User address to use as verifier * @param {*} [options] Override http request option. * @deprecated * @throws {RequiredError} */ deleteVerifier: async (network: number, lockAddress: string, verifierAddress: string, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'network' is not null or undefined assertParamExists('deleteVerifier', 'network', network) // verify required parameter 'lockAddress' is not null or undefined assertParamExists('deleteVerifier', 'lockAddress', lockAddress) // verify required parameter 'verifierAddress' is not null or undefined assertParamExists('deleteVerifier', 'verifierAddress', verifierAddress) const localVarPath = `/v2/api/verifier/{network}/{lockAddress}/{verifierAddress}` .replace(`{${"network"}}`, encodeURIComponent(String(network))) .replace(`{${"lockAddress"}}`, encodeURIComponent(String(lockAddress))) .replace(`{${"verifierAddress"}}`, encodeURIComponent(String(verifierAddress))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication User required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Denies users to attend an event. * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {ApproveAttendeesRsvpRequest} approveAttendeesRsvpRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ denyAttendeesRsvp: async (network: number, lockAddress: string, approveAttendeesRsvpRequest: ApproveAttendeesRsvpRequest, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'network' is not null or undefined assertParamExists('denyAttendeesRsvp', 'network', network) // verify required parameter 'lockAddress' is not null or undefined assertParamExists('denyAttendeesRsvp', 'lockAddress', lockAddress) // verify required parameter 'approveAttendeesRsvpRequest' is not null or undefined assertParamExists('denyAttendeesRsvp', 'approveAttendeesRsvpRequest', approveAttendeesRsvpRequest) const localVarPath = `/v2/rsvp/{network}/{lockAddress}/deny` .replace(`{${"network"}}`, encodeURIComponent(String(network))) .replace(`{${"lockAddress"}}`, encodeURIComponent(String(lockAddress))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(approveAttendeesRsvpRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Denies a user to attend an event. (does not airdrop!) * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {string} userAddress User address. * @param {*} [options] Override http request option. * @deprecated * @throws {RequiredError} */ denyRsvp: async (network: number, lockAddress: string, userAddress: string, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'network' is not null or undefined assertParamExists('denyRsvp', 'network', network) // verify required parameter 'lockAddress' is not null or undefined assertParamExists('denyRsvp', 'lockAddress', lockAddress) // verify required parameter 'userAddress' is not null or undefined assertParamExists('denyRsvp', 'userAddress', userAddress) const localVarPath = `/v2/rsvp/{network}/{lockAddress}/deny/{userAddress}` .replace(`{${"network"}}`, encodeURIComponent(String(network))) .replace(`{${"lockAddress"}}`, encodeURIComponent(String(lockAddress))) .replace(`{${"userAddress"}}`, encodeURIComponent(String(userAddress))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Disconnect stripe account. * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {*} [options] Override http request option. * @throws {RequiredError} */ disconnectStripe: async (network: number, lockAddress: string, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'network' is not null or undefined assertParamExists('disconnectStripe', 'network', network) // verify required parameter 'lockAddress' is not null or undefined assertParamExists('disconnectStripe', 'lockAddress', lockAddress) const localVarPath = `/{network}/lock/{lockAddress}/stripe` .replace(`{${"network"}}`, encodeURIComponent(String(network))) .replace(`{${"lockAddress"}}`, encodeURIComponent(String(lockAddress))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication User required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Download the ZIP file containing all receipts for a lock. * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {*} [options] Override http request option. * @throws {RequiredError} */ downloadReceipts: async (network: number, lockAddress: string, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'network' is not null or undefined assertParamExists('downloadReceipts', 'network', network) // verify required parameter 'lockAddress' is not null or undefined assertParamExists('downloadReceipts', 'lockAddress', lockAddress) const localVarPath = `/v2/receipts/download/{network}/{lockAddress}` .replace(`{${"network"}}`, encodeURIComponent(String(network))) .replace(`{${"lockAddress"}}`, encodeURIComponent(String(lockAddress))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication User required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Ejects a user given their public key. In the case of failure, a rejected promise is returned to the caller. * @param {string} publicKey * @param {{ [key: string]: any; }} requestBody Structured data used to generate the signature * @param {*} [options] Override http request option. * @throws {RequiredError} */ ejectUser: async (publicKey: string, requestBody: { [key: string]: any; }, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'publicKey' is not null or undefined assertParamExists('ejectUser', 'publicKey', publicKey) // verify required parameter 'requestBody' is not null or undefined assertParamExists('ejectUser', 'requestBody', requestBody) const localVarPath = `/users/{publicKey}/eject` .replace(`{${"publicKey"}}`, encodeURIComponent(String(publicKey))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication User required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(requestBody, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Send QR code by email. * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {string} keyId Key Id. * @param {*} [options] Override http request option. * @throws {RequiredError} */ emailTicket: async (network: number, lockAddress: string, keyId: string, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'network' is not null or undefined assertParamExists('emailTicket', 'network', network) // verify required parameter 'lockAddress' is not null or undefined assertParamExists('emailTicket', 'lockAddress', lockAddress) // verify required parameter 'keyId' is not null or undefined assertParamExists('emailTicket', 'keyId', keyId) const localVarPath = `/v2/api/ticket/{network}/{lockAddress}/{keyId}/email` .replace(`{${"network"}}`, encodeURIComponent(String(network))) .replace(`{${"lockAddress"}}`, encodeURIComponent(String(lockAddress))) .replace(`{${"keyId"}}`, encodeURIComponent(String(keyId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication User required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * List of verifiers for an event. * @param {string} slug Slug * @param {*} [options] Override http request option. * @throws {RequiredError} */ eventVerifiers: async (slug: string, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'slug' is not null or undefined assertParamExists('eventVerifiers', 'slug', slug) const localVarPath = `/v2/events/{slug}/verifiers` .replace(`{${"slug"}}`, encodeURIComponent(String(slug))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication User required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Starts Job process to get all the keys for the given lock * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {string} query Query you want to search for. * @param {string} filterKey The key you want to search on. * @param {string} [expiration] Expiration time * @param {string} [approval] Approval status (relevant for offchain approvals on events for example) * @param {*} [options] Override http request option. * @throws {RequiredError} */ exportKeys: async (network: number, lockAddress: string, query: string, filterKey: string, expiration?: string, approval?: string, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'network' is not null or undefined assertParamExists('exportKeys', 'network', network) // verify required parameter 'lockAddress' is not null or undefined assertParamExists('exportKeys', 'lockAddress', lockAddress) // verify required parameter 'query' is not null or undefined assertParamExists('exportKeys', 'query', query) // verify required parameter 'filterKey' is not null or undefined assertParamExists('exportKeys', 'filterKey', filterKey) const localVarPath = `/v2/api/{network}/locks/{lockAddress}/export-keys` .replace(`{${"network"}}`, encodeURIComponent(String(network))) .replace(`{${"lockAddress"}}`, encodeURIComponent(String(lockAddress))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication Application required await setApiKeyToObject(localVarQueryParameter, "api-key", configuration) // authentication User required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) if (query !== undefined) { localVarQueryParameter['query'] = query; } if (filterKey !== undefined) { localVarQueryParameter['filterKey'] = filterKey; } if (expiration !== undefined) { localVarQueryParameter['expiration'] = expiration; } if (approval !== undefined) { localVarQueryParameter['approval'] = approval; } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Generate and return an Apple Wallet pass for a specified key associated with a lock. * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {string} keyId Key Id. * @param {*} [options] Override http request option. * @throws {RequiredError} */ generateAppleWalletPass: async (network: number, lockAddress: string, keyId: string, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'network' is not null or undefined assertParamExists('generateAppleWalletPass', 'network', network) // verify required parameter 'lockAddress' is not null or undefined assertParamExists('generateAppleWalletPass', 'lockAddress', lockAddress) // verify required parameter 'keyId' is not null or undefined assertParamExists('generateAppleWalletPass', 'keyId', keyId) const localVarPath = `/v2/pass/{network}/{lockAddress}/{keyId}/ios` .replace(`{${"network"}}`, encodeURIComponent(String(network))) .replace(`{${"lockAddress"}}`, encodeURIComponent(String(lockAddress))) .replace(`{${"keyId"}}`, encodeURIComponent(String(keyId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication User required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Generate certificate for specific key * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {string} keyId Key Id. * @param {*} [options] Override http request option. * @throws {RequiredError} */ generateCertificate: async (network: number, lockAddress: string, keyId: string, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'network' is not null or undefined assertParamExists('generateCertificate', 'network', network) // verify required parameter 'lockAddress' is not null or undefined assertParamExists('generateCertificate', 'lockAddress', lockAddress) // verify required parameter 'keyId' is not null or undefined assertParamExists('generateCertificate', 'keyId', keyId) const localVarPath = `/v2/certificate/{network}/lock/{lockAddress}/key/{keyId}/generate` .replace(`{${"network"}}`, encodeURIComponent(String(network))) .replace(`{${"lockAddress"}}`, encodeURIComponent(String(lockAddress))) .replace(`{${"keyId"}}`, encodeURIComponent(String(keyId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Generate and return a Google Wallet pass for a specified key associated with a lock. * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {string} keyId Key Id. * @param {*} [options] Override http request option. * @throws {RequiredError} */ generateGoogleWalletPass: async (network: number, lockAddress: string, keyId: string, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'network' is not null or undefined assertParamExists('generateGoogleWalletPass', 'network', network) // verify required parameter 'lockAddress' is not null or undefined assertParamExists('generateGoogleWalletPass', 'lockAddress', lockAddress) // verify required parameter 'keyId' is not null or undefined assertParamExists('generateGoogleWalletPass', 'keyId', keyId) const localVarPath = `/v2/pass/{network}/{lockAddress}/{keyId}/android` .replace(`{${"network"}}`, encodeURIComponent(String(network))) .replace(`{${"lockAddress"}}`, encodeURIComponent(String(lockAddress))) .replace(`{${"keyId"}}`, encodeURIComponent(String(keyId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication User required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Generate a ticket for a key. * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {string} keyId Key Id. * @param {*} [options] Override http request option. * @throws {RequiredError} */ generateTicket: async (network: number, lockAddress: string, keyId: string, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'network' is not null or undefined assertParamExists('generateTicket', 'network', network) // verify required parameter 'lockAddress' is not null or undefined assertParamExists('generateTicket', 'lockAddress', lockAddress) // verify required parameter 'keyId' is not null or undefined assertParamExists('generateTicket', 'keyId', keyId) const localVarPath = `/v2/api/ticket/{network}/lock/{lockAddress}/key/{keyId}/generate` .replace(`{${"network"}}`, encodeURIComponent(String(network))) .replace(`{${"lockAddress"}}`, encodeURIComponent(String(lockAddress))) .replace(`{${"keyId"}}`, encodeURIComponent(String(keyId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication User required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Get the price breakdown for recipients & total charges with fees for a specific lock * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {Array} purchaseData The purchase data passed to the purchase function * @param {Array} recipients The recipients passed to the purchase function * @param {*} [options] Override http request option. * @throws {RequiredError} */ getChargesForLock: async (network: number, lockAddress: string, purchaseData: Array, recipients: Array, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'network' is not null or undefined assertParamExists('getChargesForLock', 'network', network) // verify required parameter 'lockAddress' is not null or undefined assertParamExists('getChargesForLock', 'lockAddress', lockAddress) // verify required parameter 'purchaseData' is not null or undefined assertParamExists('getChargesForLock', 'purchaseData', purchaseData) // verify required parameter 'recipients' is not null or undefined assertParamExists('getChargesForLock', 'recipients', recipients) const localVarPath = `/v2/api/charges/{network}/locks/{lockAddress}` .replace(`{${"network"}}`, encodeURIComponent(String(network))) .replace(`{${"lockAddress"}}`, encodeURIComponent(String(lockAddress))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; if (purchaseData) { localVarQueryParameter['purchaseData[]'] = purchaseData; } if (recipients) { localVarQueryParameter['recipients[]'] = recipients; } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {string} id The id of the checkout config * @param {*} [options] Override http request option. * @throws {RequiredError} */ getCheckoutConfig: async (id: string, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('getCheckoutConfig', 'id', id) const localVarPath = `/v2/checkout/{id}` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication User required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Get custom email content for a specific template and lock details * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {string} template Template id for email * @param {*} [options] Override http request option. * @throws {RequiredError} */ getCustomEmailContent: async (network: number, lockAddress: string, template: string, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'network' is not null or undefined assertParamExists('getCustomEmailContent', 'network', network) // verify required parameter 'lockAddress' is not null or undefined assertParamExists('getCustomEmailContent', 'lockAddress', lockAddress) // verify required parameter 'template' is not null or undefined assertParamExists('getCustomEmailContent', 'template', template) const localVarPath = `/v2/email/{network}/locks/{lockAddress}/custom/{template}` .replace(`{${"network"}}`, encodeURIComponent(String(network))) .replace(`{${"lockAddress"}}`, encodeURIComponent(String(lockAddress))) .replace(`{${"template"}}`, encodeURIComponent(String(template))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication User required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Retrieves data for recipients and captcha. * @param {Array} recipients * @param {string} captchaValue * @param {string} lockAddress * @param {number} network * @param {*} [options] Override http request option. * @throws {RequiredError} */ getDataForRecipientsAndCaptcha: async (recipients: Array, captchaValue: string, lockAddress: string, network: number, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'recipients' is not null or undefined assertParamExists('getDataForRecipientsAndCaptcha', 'recipients', recipients) // verify required parameter 'captchaValue' is not null or undefined assertParamExists('getDataForRecipientsAndCaptcha', 'captchaValue', captchaValue) // verify required parameter 'lockAddress' is not null or undefined assertParamExists('getDataForRecipientsAndCaptcha', 'lockAddress', lockAddress) // verify required parameter 'network' is not null or undefined assertParamExists('getDataForRecipientsAndCaptcha', 'network', network) const localVarPath = `/api/captcha`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication User required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) if (recipients) { localVarQueryParameter['recipients[]'] = recipients; } if (captchaValue !== undefined) { localVarQueryParameter['captchaValue'] = captchaValue; } if (lockAddress !== undefined) { localVarQueryParameter['lockAddress'] = lockAddress; } if (network !== undefined) { localVarQueryParameter['network'] = network; } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Get the data for recipients and gitcoin passport. This is to be used in conjunction with the Gitcoin passport scorer. * @param {number} network The network the lock is on * @param {string} [lockAddress] The address of the lock * @param {Array} [recipients] The list of recipients for the purchase * @param {*} [options] Override http request option. * @throws {RequiredError} */ getDataForRecipientsAndGitcoinPassport: async (network: number, lockAddress?: string, recipients?: Array, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'network' is not null or undefined assertParamExists('getDataForRecipientsAndGitcoinPassport', 'network', network) const localVarPath = `/v2/hooks/gitcoin`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; if (network !== undefined) { localVarQueryParameter['network'] = network; } if (lockAddress !== undefined) { localVarQueryParameter['lockAddress'] = lockAddress; } if (recipients) { localVarQueryParameter['recipients'] = recipients; } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Get the data for recipients and guild. This is to be used in conjunction with the Guild * @param {number} network The network the lock is on * @param {string} [lockAddress] The address of the lock * @param {Array} [recipients] The list of recipients for the purchase * @param {*} [options] Override http request option. * @throws {RequiredError} */ getDataForRecipientsAndGuild: async (network: number, lockAddress?: string, recipients?: Array, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'network' is not null or undefined assertParamExists('getDataForRecipientsAndGuild', 'network', network) const localVarPath = `/v2/hooks/guild`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; if (network !== undefined) { localVarQueryParameter['network'] = network; } if (lockAddress !== undefined) { localVarQueryParameter['lockAddress'] = lockAddress; } if (recipients) { localVarQueryParameter['recipients'] = recipients; } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Retrieves an event based on its slug. The event data including status and transactionHash can be accessed through the `data` property. * @param {string} slug Slug * @param {*} [options] Override http request option. * @throws {RequiredError} */ getEvent: async (slug: string, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'slug' is not null or undefined assertParamExists('getEvent', 'slug', slug) const localVarPath = `/v2/events/{slug}` .replace(`{${"slug"}}`, encodeURIComponent(String(slug))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Get details of an event collection * @param {string} slug * @param {*} [options] Override http request option. * @throws {RequiredError} */ getEventCollection: async (slug: string, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'slug' is not null or undefined assertParamExists('getEventCollection', 'slug', slug) const localVarPath = `/v2/event-collection/{slug}` .replace(`{${"slug"}}`, encodeURIComponent(String(slug))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Get the event details from lock * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {*} [options] Override http request option. * @deprecated * @throws {RequiredError} */ getEventDetails: async (network: number, lockAddress: string, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'network' is not null or undefined assertParamExists('getEventDetails', 'network', network) // verify required parameter 'lockAddress' is not null or undefined assertParamExists('getEventDetails', 'lockAddress', lockAddress) const localVarPath = `/v2/events/{network}/{lockAddress}` .replace(`{${"network"}}`, encodeURIComponent(String(network))) .replace(`{${"lockAddress"}}`, encodeURIComponent(String(lockAddress))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * get a ticket for a key by event. * @param {string} slug Slug * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {string} keyId Key Id. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getEventTicket: async (slug: string, network: number, lockAddress: string, keyId: string, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'slug' is not null or undefined assertParamExists('getEventTicket', 'slug', slug) // verify required parameter 'network' is not null or undefined assertParamExists('getEventTicket', 'network', network) // verify required parameter 'lockAddress' is not null or undefined assertParamExists('getEventTicket', 'lockAddress', lockAddress) // verify required parameter 'keyId' is not null or undefined assertParamExists('getEventTicket', 'keyId', keyId) const localVarPath = `/v2/api/ticket/{slug}/{network}/lock/{lockAddress}/key/{keyId}` .replace(`{${"slug"}}`, encodeURIComponent(String(slug))) .replace(`{${"network"}}`, encodeURIComponent(String(network))) .replace(`{${"lockAddress"}}`, encodeURIComponent(String(lockAddress))) .replace(`{${"keyId"}}`, encodeURIComponent(String(keyId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication User required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Get events in a collection * @param {string} slug * @param {number} [page] * @param {number} [pageSize] * @param {*} [options] Override http request option. * @throws {RequiredError} */ getEventsInCollection: async (slug: string, page?: number, pageSize?: number, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'slug' is not null or undefined assertParamExists('getEventsInCollection', 'slug', slug) const localVarPath = `/v2/event-collection/{slug}/events` .replace(`{${"slug"}}`, encodeURIComponent(String(slug))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; if (page !== undefined) { localVarQueryParameter['page'] = page; } if (pageSize !== undefined) { localVarQueryParameter['pageSize'] = pageSize; } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Get job result by job id * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {string} jobId Id of the exported job. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getExportedKeys: async (network: number, lockAddress: string, jobId: string, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'network' is not null or undefined assertParamExists('getExportedKeys', 'network', network) // verify required parameter 'lockAddress' is not null or undefined assertParamExists('getExportedKeys', 'lockAddress', lockAddress) // verify required parameter 'jobId' is not null or undefined assertParamExists('getExportedKeys', 'jobId', jobId) const localVarPath = `/v2/api/{network}/locks/{lockAddress}/export-keys/{jobId}` .replace(`{${"network"}}`, encodeURIComponent(String(network))) .replace(`{${"lockAddress"}}`, encodeURIComponent(String(lockAddress))) .replace(`{${"jobId"}}`, encodeURIComponent(String(jobId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication Application required await setApiKeyToObject(localVarQueryParameter, "api-key", configuration) // authentication User required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Get saved lock settings * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getLockSettings: async (network: number, lockAddress: string, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'network' is not null or undefined assertParamExists('getLockSettings', 'network', network) // verify required parameter 'lockAddress' is not null or undefined assertParamExists('getLockSettings', 'lockAddress', lockAddress) const localVarPath = `/v2/lock-settings/{network}/locks/{lockAddress}` .replace(`{${"network"}}`, encodeURIComponent(String(network))) .replace(`{${"lockAddress"}}`, encodeURIComponent(String(lockAddress))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Get lock setting by slug * @param {string} slug Slug * @param {*} [options] Override http request option. * @throws {RequiredError} */ getLockSettingsBySlug: async (slug: string, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'slug' is not null or undefined assertParamExists('getLockSettingsBySlug', 'slug', slug) const localVarPath = `/v2/lock-settings/slug/{slug}` .replace(`{${"slug"}}`, encodeURIComponent(String(slug))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Returns Stripe connection details * @param {string} lockAddress Lock address. * @param {number} chain Lock network * @param {*} [options] Override http request option. * @throws {RequiredError} */ getLockStripeConnectionDetails: async (lockAddress: string, chain: number, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'lockAddress' is not null or undefined assertParamExists('getLockStripeConnectionDetails', 'lockAddress', lockAddress) // verify required parameter 'chain' is not null or undefined assertParamExists('getLockStripeConnectionDetails', 'chain', chain) const localVarPath = `/lock/{lockAddress}/stripe-connected` .replace(`{${"lockAddress"}}`, encodeURIComponent(String(lockAddress))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; if (chain !== undefined) { localVarQueryParameter['chain'] = chain; } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Get receipt details * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {string} hash Hash * @param {*} [options] Override http request option. * @throws {RequiredError} */ getReceipt: async (network: number, lockAddress: string, hash: string, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'network' is not null or undefined assertParamExists('getReceipt', 'network', network) // verify required parameter 'lockAddress' is not null or undefined assertParamExists('getReceipt', 'lockAddress', lockAddress) // verify required parameter 'hash' is not null or undefined assertParamExists('getReceipt', 'hash', hash) const localVarPath = `/v2/receipts/{network}/{lockAddress}/{hash}` .replace(`{${"network"}}`, encodeURIComponent(String(network))) .replace(`{${"lockAddress"}}`, encodeURIComponent(String(lockAddress))) .replace(`{${"hash"}}`, encodeURIComponent(String(hash))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication User required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Get all receipts for a lock * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getReceipts: async (network: number, lockAddress: string, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'network' is not null or undefined assertParamExists('getReceipts', 'network', network) // verify required parameter 'lockAddress' is not null or undefined assertParamExists('getReceipts', 'lockAddress', lockAddress) const localVarPath = `/v2/receipts/{network}/{lockAddress}/all` .replace(`{${"network"}}`, encodeURIComponent(String(network))) .replace(`{${"lockAddress"}}`, encodeURIComponent(String(lockAddress))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication User required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Get supplier details * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getReceiptsBase: async (network: number, lockAddress: string, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'network' is not null or undefined assertParamExists('getReceiptsBase', 'network', network) // verify required parameter 'lockAddress' is not null or undefined assertParamExists('getReceiptsBase', 'lockAddress', lockAddress) const localVarPath = `/v2/receipts-base/{network}/{lockAddress}` .replace(`{${"network"}}`, encodeURIComponent(String(network))) .replace(`{${"lockAddress"}}`, encodeURIComponent(String(lockAddress))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication User required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Retrieve the status of receipt generation for a lock. * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getReceiptsStatus: async (network: number, lockAddress: string, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'network' is not null or undefined assertParamExists('getReceiptsStatus', 'network', network) // verify required parameter 'lockAddress' is not null or undefined assertParamExists('getReceiptsStatus', 'lockAddress', lockAddress) const localVarPath = `/v2/receipts/all/{network}/{lockAddress}` .replace(`{${"network"}}`, encodeURIComponent(String(network))) .replace(`{${"lockAddress"}}`, encodeURIComponent(String(lockAddress))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication User required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Lists the locks connected to Stripe for a user * @param {*} [options] Override http request option. * @throws {RequiredError} */ getStripeConnections: async (options: AxiosRequestConfig = {}): Promise => { const localVarPath = `/v2/stripe/connections`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication User required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Get an active subscription associated with the key. It can be fiat or crypto. * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {string} keyId Key Id. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getSubscription: async (network: number, lockAddress: string, keyId: string, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'network' is not null or undefined assertParamExists('getSubscription', 'network', network) // verify required parameter 'lockAddress' is not null or undefined assertParamExists('getSubscription', 'lockAddress', lockAddress) // verify required parameter 'keyId' is not null or undefined assertParamExists('getSubscription', 'keyId', keyId) const localVarPath = `/v2/subscriptions/{network}/locks/{lockAddress}/keys/{keyId}` .replace(`{${"network"}}`, encodeURIComponent(String(network))) .replace(`{${"lockAddress"}}`, encodeURIComponent(String(lockAddress))) .replace(`{${"keyId"}}`, encodeURIComponent(String(keyId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication User required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * get a ticket for a key by lock. * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {string} keyId Key Id. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getTicket: async (network: number, lockAddress: string, keyId: string, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'network' is not null or undefined assertParamExists('getTicket', 'network', network) // verify required parameter 'lockAddress' is not null or undefined assertParamExists('getTicket', 'lockAddress', lockAddress) // verify required parameter 'keyId' is not null or undefined assertParamExists('getTicket', 'keyId', keyId) const localVarPath = `/v2/api/ticket/{network}/lock/{lockAddress}/key/{keyId}` .replace(`{${"network"}}`, encodeURIComponent(String(network))) .replace(`{${"lockAddress"}}`, encodeURIComponent(String(lockAddress))) .replace(`{${"keyId"}}`, encodeURIComponent(String(keyId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication User required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Get unapproved events for a collection * @param {string} slug * @param {*} [options] Override http request option. * @throws {RequiredError} */ getUnapprovedEventsForCollection: async (slug: string, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'slug' is not null or undefined assertParamExists('getUnapprovedEventsForCollection', 'slug', slug) const localVarPath = `/v2/event-collection/{slug}/unapproved-events` .replace(`{${"slug"}}`, encodeURIComponent(String(slug))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication User required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Gets User account type by email. * @param {string} emailAddress * @param {*} [options] Override http request option. * @throws {RequiredError} */ getUserAccountType: async (emailAddress: string, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'emailAddress' is not null or undefined assertParamExists('getUserAccountType', 'emailAddress', emailAddress) const localVarPath = `/v2/api/users/{emailAddress}/existNextAuth` .replace(`{${"emailAddress"}}`, encodeURIComponent(String(emailAddress))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * get user metadata for a lock. * @param {string} lockAddress Lock address. * @param {string} userAddress User address. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getUserMetadata: async (lockAddress: string, userAddress: string, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'lockAddress' is not null or undefined assertParamExists('getUserMetadata', 'lockAddress', lockAddress) // verify required parameter 'userAddress' is not null or undefined assertParamExists('getUserMetadata', 'userAddress', userAddress) const localVarPath = `/v2/api/metadata/{network}/locks/{lockAddress}/users/{userAddress}` .replace(`{${"lockAddress"}}`, encodeURIComponent(String(lockAddress))) .replace(`{${"userAddress"}}`, encodeURIComponent(String(userAddress))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication User required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Given a user\'s email address, retrieves their private key. In the case of failure a rejected promise is returned to the caller. * @param {string} emailAddress * @param {*} [options] Override http request option. * @throws {RequiredError} */ getUserPrivateKey: async (emailAddress: string, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'emailAddress' is not null or undefined assertParamExists('getUserPrivateKey', 'emailAddress', emailAddress) const localVarPath = `/users/{emailAddress}/privatekey` .replace(`{${"emailAddress"}}`, encodeURIComponent(String(emailAddress))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication User required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Given a user\'s email address, retrieves their recovery phrase. In the case of failure a rejected promise is returned to the caller. * @param {string} emailAddress * @param {*} [options] Override http request option. * @throws {RequiredError} */ getUserRecoveryPhrase: async (emailAddress: string, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'emailAddress' is not null or undefined assertParamExists('getUserRecoveryPhrase', 'emailAddress', emailAddress) const localVarPath = `/users/{emailAddress}/recoveryphrase` .replace(`{${"emailAddress"}}`, encodeURIComponent(String(emailAddress))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication User required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Gets Coinbase WAAS token for user by email and selected provider. * @param {string} captcha Recaptcha value to pass. * @param {string} emailAddress * @param {string} selectedProvider * @param {GetWaasTokenRequest} getWaasTokenRequest JSON object containing sign in token * @param {*} [options] Override http request option. * @throws {RequiredError} */ getWaasToken: async (captcha: string, emailAddress: string, selectedProvider: string, getWaasTokenRequest: GetWaasTokenRequest, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'captcha' is not null or undefined assertParamExists('getWaasToken', 'captcha', captcha) // verify required parameter 'emailAddress' is not null or undefined assertParamExists('getWaasToken', 'emailAddress', emailAddress) // verify required parameter 'selectedProvider' is not null or undefined assertParamExists('getWaasToken', 'selectedProvider', selectedProvider) // verify required parameter 'getWaasTokenRequest' is not null or undefined assertParamExists('getWaasToken', 'getWaasTokenRequest', getWaasTokenRequest) const localVarPath = `/v2/api/users/{emailAddress}/{selectedProvider}/waas` .replace(`{${"emailAddress"}}`, encodeURIComponent(String(emailAddress))) .replace(`{${"selectedProvider"}}`, encodeURIComponent(String(selectedProvider))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; if (captcha !== undefined && captcha !== null) { localVarHeaderParameter['captcha'] = String(captcha); } localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(getWaasTokenRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Returns if credit card payment are enable for a lock * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {*} [options] Override http request option. * @throws {RequiredError} */ isCardPaymentEnabledForLock: async (network: number, lockAddress: string, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'network' is not null or undefined assertParamExists('isCardPaymentEnabledForLock', 'network', network) // verify required parameter 'lockAddress' is not null or undefined assertParamExists('isCardPaymentEnabledForLock', 'lockAddress', lockAddress) const localVarPath = `/v2/api/credit-card-details/{network}/locks/{lockAddress}` .replace(`{${"network"}}`, encodeURIComponent(String(network))) .replace(`{${"lockAddress"}}`, encodeURIComponent(String(lockAddress))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Get key and user metadata. * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {string} keyId Key Id. * @param {*} [options] Override http request option. * @throws {RequiredError} */ keyMetadata: async (network: number, lockAddress: string, keyId: string, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'network' is not null or undefined assertParamExists('keyMetadata', 'network', network) // verify required parameter 'lockAddress' is not null or undefined assertParamExists('keyMetadata', 'lockAddress', lockAddress) // verify required parameter 'keyId' is not null or undefined assertParamExists('keyMetadata', 'keyId', keyId) const localVarPath = `/v2/api/metadata/{network}/locks/{lockAddress}/keys/{keyId}` .replace(`{${"network"}}`, encodeURIComponent(String(network))) .replace(`{${"lockAddress"}}`, encodeURIComponent(String(lockAddress))) .replace(`{${"keyId"}}`, encodeURIComponent(String(keyId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication User required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * List of lock keys by network with additional metadata if the caller is the lockManager (deprecated, use keys-by-page) * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {string} query Query you want to search for. * @param {string} filterKey The key you want to search on. * @param {string} [expiration] Expiration time * @param {string} [approval] Approval status (relevant for offchain approvals on events for example) * @param {number} [page] Page number when paginating * @param {number} [max] Maximum number of items to get by page * @param {*} [options] Override http request option. * @deprecated * @throws {RequiredError} */ keys: async (network: number, lockAddress: string, query: string, filterKey: string, expiration?: string, approval?: string, page?: number, max?: number, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'network' is not null or undefined assertParamExists('keys', 'network', network) // verify required parameter 'lockAddress' is not null or undefined assertParamExists('keys', 'lockAddress', lockAddress) // verify required parameter 'query' is not null or undefined assertParamExists('keys', 'query', query) // verify required parameter 'filterKey' is not null or undefined assertParamExists('keys', 'filterKey', filterKey) const localVarPath = `/v2/api/{network}/locks/{lockAddress}/keys` .replace(`{${"network"}}`, encodeURIComponent(String(network))) .replace(`{${"lockAddress"}}`, encodeURIComponent(String(lockAddress))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication Application required await setApiKeyToObject(localVarQueryParameter, "api-key", configuration) // authentication User required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) if (query !== undefined) { localVarQueryParameter['query'] = query; } if (filterKey !== undefined) { localVarQueryParameter['filterKey'] = filterKey; } if (expiration !== undefined) { localVarQueryParameter['expiration'] = expiration; } if (approval !== undefined) { localVarQueryParameter['approval'] = approval; } if (page !== undefined) { localVarQueryParameter['page'] = page; } if (max !== undefined) { localVarQueryParameter['max'] = max; } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * List of lock keys by network with additional metadata if the caller is the lockManager * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {string} query Query you want to search for. * @param {string} filterKey The key you want to search on. * @param {string} [expiration] Expiration time * @param {string} [approval] Approval status (relevant for offchain approvals on events for example) * @param {number} [page] Page number when paginating * @param {number} [max] Maximum number of items to get by page * @param {*} [options] Override http request option. * @throws {RequiredError} */ keysByPage: async (network: number, lockAddress: string, query: string, filterKey: string, expiration?: string, approval?: string, page?: number, max?: number, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'network' is not null or undefined assertParamExists('keysByPage', 'network', network) // verify required parameter 'lockAddress' is not null or undefined assertParamExists('keysByPage', 'lockAddress', lockAddress) // verify required parameter 'query' is not null or undefined assertParamExists('keysByPage', 'query', query) // verify required parameter 'filterKey' is not null or undefined assertParamExists('keysByPage', 'filterKey', filterKey) const localVarPath = `/v2/api/{network}/locks/{lockAddress}/keys-by-page` .replace(`{${"network"}}`, encodeURIComponent(String(network))) .replace(`{${"lockAddress"}}`, encodeURIComponent(String(lockAddress))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication Application required await setApiKeyToObject(localVarQueryParameter, "api-key", configuration) // authentication User required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) if (query !== undefined) { localVarQueryParameter['query'] = query; } if (filterKey !== undefined) { localVarQueryParameter['filterKey'] = filterKey; } if (expiration !== undefined) { localVarQueryParameter['expiration'] = expiration; } if (approval !== undefined) { localVarQueryParameter['approval'] = approval; } if (page !== undefined) { localVarQueryParameter['page'] = page; } if (max !== undefined) { localVarQueryParameter['max'] = max; } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * A list of all checkout configs created by the user * @param {*} [options] Override http request option. * @throws {RequiredError} */ listCheckoutConfigs: async (options: AxiosRequestConfig = {}): Promise => { const localVarPath = `/v2/checkout/list`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication User required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * List payment methods for user. * @param {*} [options] Override http request option. * @throws {RequiredError} */ listPaymentMethods: async (options: AxiosRequestConfig = {}): Promise => { const localVarPath = `/v2/purchase/list`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication User required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Get metadata for lock address. * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {*} [options] Override http request option. * @throws {RequiredError} */ lockMetadata: async (network: number, lockAddress: string, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'network' is not null or undefined assertParamExists('lockMetadata', 'network', network) // verify required parameter 'lockAddress' is not null or undefined assertParamExists('lockMetadata', 'lockAddress', lockAddress) const localVarPath = `/v2/api/metadata/{network}/locks/{lockAddress}` .replace(`{${"network"}}`, encodeURIComponent(String(network))) .replace(`{${"lockAddress"}}`, encodeURIComponent(String(lockAddress))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Login as a user using Sign in with Ethereum message signed by the wallet address. * @param {LoginRequest} loginRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ login: async (loginRequest: LoginRequest, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'loginRequest' is not null or undefined assertParamExists('login', 'loginRequest', loginRequest) const localVarPath = `/v2/auth/login`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(loginRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Verify an access token using Privy\'s library and authenticate the user * @param {LoginWithPrivyRequest} loginWithPrivyRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ loginWithPrivy: async (loginWithPrivyRequest: LoginWithPrivyRequest, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'loginWithPrivyRequest' is not null or undefined assertParamExists('loginWithPrivy', 'loginWithPrivyRequest', loginWithPrivyRequest) const localVarPath = `/v2/auth/privy`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(loginWithPrivyRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Logout from locksmith. This will invalidate all your session tokens. * @param {*} [options] Override http request option. * @throws {RequiredError} */ logout: async (options: AxiosRequestConfig = {}): Promise => { const localVarPath = `/v2/auth/logout`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication User required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Provide a unique nonce for using in sign in with ethereum * @param {*} [options] Override http request option. * @throws {RequiredError} */ nonce: async (options: AxiosRequestConfig = {}): Promise => { const localVarPath = `/v2/auth/nonce`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {number} network Network id. * @param {number} [amount] Amount of tokens you want to get the price for in USD. * @param {string} [address] The erc20 address you want to get the price for. If nothing is passed, the API will return the native token price. * @param {*} [options] Override http request option. * @throws {RequiredError} */ price: async (network: number, amount?: number, address?: string, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'network' is not null or undefined assertParamExists('price', 'network', network) const localVarPath = `/v2/api/{network}/price` .replace(`{${"network"}}`, encodeURIComponent(String(network))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; if (amount !== undefined) { localVarQueryParameter['amount'] = amount; } if (address !== undefined) { localVarQueryParameter['address'] = address; } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Create purchase intent for stripe. * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {PurchaseRequest} purchaseRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ purchase: async (network: number, lockAddress: string, purchaseRequest: PurchaseRequest, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'network' is not null or undefined assertParamExists('purchase', 'network', network) // verify required parameter 'lockAddress' is not null or undefined assertParamExists('purchase', 'lockAddress', lockAddress) // verify required parameter 'purchaseRequest' is not null or undefined assertParamExists('purchase', 'purchaseRequest', purchaseRequest) const localVarPath = `/v2/purchase/intent/{network}/locks/{lockAddress}` .replace(`{${"network"}}`, encodeURIComponent(String(network))) .replace(`{${"lockAddress"}}`, encodeURIComponent(String(lockAddress))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication User required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(purchaseRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * resubscribe emails from lock * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {*} [options] Override http request option. * @throws {RequiredError} */ reSubscribeEmail: async (network: number, lockAddress: string, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'network' is not null or undefined assertParamExists('reSubscribeEmail', 'network', network) // verify required parameter 'lockAddress' is not null or undefined assertParamExists('reSubscribeEmail', 'lockAddress', lockAddress) const localVarPath = `/v2/email-subscriptions/subscribe/{network}/locks/{lockAddress}` .replace(`{${"network"}}`, encodeURIComponent(String(network))) .replace(`{${"lockAddress"}}`, encodeURIComponent(String(lockAddress))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication User required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Remove a single event from an event collection. * @param {string} slug Slug of the event collection. * @param {RemoveEventBody} removeEventBody * @param {*} [options] Override http request option. * @throws {RequiredError} */ removeEventFromCollection: async (slug: string, removeEventBody: RemoveEventBody, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'slug' is not null or undefined assertParamExists('removeEventFromCollection', 'slug', slug) // verify required parameter 'removeEventBody' is not null or undefined assertParamExists('removeEventFromCollection', 'removeEventBody', removeEventBody) const localVarPath = `/v2/event-collection/{slug}/events` .replace(`{${"slug"}}`, encodeURIComponent(String(slug))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication User required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(removeEventBody, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Remove a manager address from an event collection * @param {string} slug * @param {RemoveManagerBody} removeManagerBody * @param {*} [options] Override http request option. * @throws {RequiredError} */ removeManagerFromEventCollection: async (slug: string, removeManagerBody: RemoveManagerBody, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'slug' is not null or undefined assertParamExists('removeManagerFromEventCollection', 'slug', slug) // verify required parameter 'removeManagerBody' is not null or undefined assertParamExists('removeManagerFromEventCollection', 'removeManagerBody', removeManagerBody) const localVarPath = `/v2/event-collection/{slug}/managers` .replace(`{${"slug"}}`, encodeURIComponent(String(slug))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication User required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(removeManagerBody, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Remove all payment methods for a user * @param {*} [options] Override http request option. * @throws {RequiredError} */ removePaymentMethods: async (options: AxiosRequestConfig = {}): Promise => { const localVarPath = `/v2/purchase/payment-methods`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication User required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Invalidate a session. * @param {*} [options] Override http request option. * @throws {RequiredError} */ revoke: async (options: AxiosRequestConfig = {}): Promise => { const localVarPath = `/v2/auth/revoke`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication User required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * User applies to attend an event. * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {string} captcha Recaptcha value to pass. * @param {RsvpRequest} [rsvpRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ rsvp: async (network: number, lockAddress: string, captcha: string, rsvpRequest?: RsvpRequest, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'network' is not null or undefined assertParamExists('rsvp', 'network', network) // verify required parameter 'lockAddress' is not null or undefined assertParamExists('rsvp', 'lockAddress', lockAddress) // verify required parameter 'captcha' is not null or undefined assertParamExists('rsvp', 'captcha', captcha) const localVarPath = `/v2/rsvp/{network}/{lockAddress}` .replace(`{${"network"}}`, encodeURIComponent(String(network))) .replace(`{${"lockAddress"}}`, encodeURIComponent(String(lockAddress))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; if (captcha !== undefined && captcha !== null) { localVarHeaderParameter['captcha'] = String(captcha); } localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(rsvpRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Save custom email content for a specif lock. * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {string} template Template id for email * @param {*} [options] Override http request option. * @throws {RequiredError} */ saveCustomEmailContent: async (network: number, lockAddress: string, template: string, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'network' is not null or undefined assertParamExists('saveCustomEmailContent', 'network', network) // verify required parameter 'lockAddress' is not null or undefined assertParamExists('saveCustomEmailContent', 'lockAddress', lockAddress) // verify required parameter 'template' is not null or undefined assertParamExists('saveCustomEmailContent', 'template', template) const localVarPath = `/v2/email/{network}/locks/{lockAddress}/custom/{template}` .replace(`{${"network"}}`, encodeURIComponent(String(network))) .replace(`{${"lockAddress"}}`, encodeURIComponent(String(lockAddress))) .replace(`{${"template"}}`, encodeURIComponent(String(template))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication User required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Save event data * @param {SaveEventDataRequest} saveEventDataRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ saveEventData: async (saveEventDataRequest: SaveEventDataRequest, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'saveEventDataRequest' is not null or undefined assertParamExists('saveEventData', 'saveEventDataRequest', saveEventDataRequest) const localVarPath = `/v2/events/save`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication User required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(saveEventDataRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Save lock settings * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {LockSettings} [lockSettings] * @param {*} [options] Override http request option. * @throws {RequiredError} */ saveLockSetting: async (network: number, lockAddress: string, lockSettings?: LockSettings, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'network' is not null or undefined assertParamExists('saveLockSetting', 'network', network) // verify required parameter 'lockAddress' is not null or undefined assertParamExists('saveLockSetting', 'lockAddress', lockAddress) const localVarPath = `/v2/lock-settings/{network}/locks/{lockAddress}` .replace(`{${"network"}}`, encodeURIComponent(String(network))) .replace(`{${"lockAddress"}}`, encodeURIComponent(String(lockAddress))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication User required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(lockSettings, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Saves a merkle tree from either a list of addresses or a list of [address, amount] tuples. * @param {Array} saveMerkleTreeRequestInner * @param {*} [options] Override http request option. * @throws {RequiredError} */ saveMerkleTree: async (saveMerkleTreeRequestInner: Array, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'saveMerkleTreeRequestInner' is not null or undefined assertParamExists('saveMerkleTree', 'saveMerkleTreeRequestInner', saveMerkleTreeRequestInner) const localVarPath = `/v2/merkle-tree`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(saveMerkleTreeRequestInner, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Create purchaser details * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {string} hash Hash * @param {*} [options] Override http request option. * @throws {RequiredError} */ saveReceipt: async (network: number, lockAddress: string, hash: string, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'network' is not null or undefined assertParamExists('saveReceipt', 'network', network) // verify required parameter 'lockAddress' is not null or undefined assertParamExists('saveReceipt', 'lockAddress', lockAddress) // verify required parameter 'hash' is not null or undefined assertParamExists('saveReceipt', 'hash', hash) const localVarPath = `/v2/receipts/{network}/{lockAddress}/{hash}` .replace(`{${"network"}}`, encodeURIComponent(String(network))) .replace(`{${"lockAddress"}}`, encodeURIComponent(String(lockAddress))) .replace(`{${"hash"}}`, encodeURIComponent(String(hash))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication User required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Create supplier details. * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {*} [options] Override http request option. * @throws {RequiredError} */ saveReceiptsBase: async (network: number, lockAddress: string, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'network' is not null or undefined assertParamExists('saveReceiptsBase', 'network', network) // verify required parameter 'lockAddress' is not null or undefined assertParamExists('saveReceiptsBase', 'lockAddress', lockAddress) const localVarPath = `/v2/receipts-base/{network}/{lockAddress}` .replace(`{${"network"}}`, encodeURIComponent(String(network))) .replace(`{${"lockAddress"}}`, encodeURIComponent(String(lockAddress))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication User required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Send custom email to recipients * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {SendCustomEmailRequest} [sendCustomEmailRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ sendCustomEmail: async (network: number, lockAddress: string, sendCustomEmailRequest?: SendCustomEmailRequest, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'network' is not null or undefined assertParamExists('sendCustomEmail', 'network', network) // verify required parameter 'lockAddress' is not null or undefined assertParamExists('sendCustomEmail', 'lockAddress', lockAddress) const localVarPath = `/v2/email/{network}/locks/{lockAddress}/custom/send` .replace(`{${"network"}}`, encodeURIComponent(String(network))) .replace(`{${"lockAddress"}}`, encodeURIComponent(String(lockAddress))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication User required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(sendCustomEmailRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Send event invites to a list of recipients * @param {string} slug Slug * @param {SendEventInvitesRequest} [sendEventInvitesRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ sendEventInvites: async (slug: string, sendEventInvitesRequest?: SendEventInvitesRequest, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'slug' is not null or undefined assertParamExists('sendEventInvites', 'slug', slug) const localVarPath = `/v2/email/{slug}/invite` .replace(`{${"slug"}}`, encodeURIComponent(String(slug))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication User required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(sendEventInvitesRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Sends a verification code to the user\'s email if the current code is expired or does not exist. * @param {string} captcha Recaptcha value to pass. * @param {string} emailAddress * @param {*} [options] Override http request option. * @throws {RequiredError} */ sendVerificationCode: async (captcha: string, emailAddress: string, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'captcha' is not null or undefined assertParamExists('sendVerificationCode', 'captcha', captcha) // verify required parameter 'emailAddress' is not null or undefined assertParamExists('sendVerificationCode', 'emailAddress', emailAddress) const localVarPath = `/v2/api/users/{emailAddress}/send-verification-code` .replace(`{${"emailAddress"}}`, encodeURIComponent(String(emailAddress))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; if (captcha !== undefined && captcha !== null) { localVarHeaderParameter['captcha'] = String(captcha); } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Setup a payment method for user. * @param {*} [options] Override http request option. * @throws {RequiredError} */ setupPayment: async (options: AxiosRequestConfig = {}): Promise => { const localVarPath = `/v2/purchase/setup`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication User required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Generate signature to prove validity of token. * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {string} keyId Key Id. * @param {*} [options] Override http request option. * @throws {RequiredError} */ signTicket: async (network: number, lockAddress: string, keyId: string, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'network' is not null or undefined assertParamExists('signTicket', 'network', network) // verify required parameter 'lockAddress' is not null or undefined assertParamExists('signTicket', 'lockAddress', lockAddress) // verify required parameter 'keyId' is not null or undefined assertParamExists('signTicket', 'keyId', keyId) const localVarPath = `/v2/api/ticket/{network}/{lockAddress}/{keyId}/sign` .replace(`{${"network"}}`, encodeURIComponent(String(network))) .replace(`{${"lockAddress"}}`, encodeURIComponent(String(lockAddress))) .replace(`{${"keyId"}}`, encodeURIComponent(String(keyId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication User required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Get QR code for the key. * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {string} keyId Key Id. * @param {*} [options] Override http request option. * @throws {RequiredError} */ ticketQRCode: async (network: number, lockAddress: string, keyId: string, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'network' is not null or undefined assertParamExists('ticketQRCode', 'network', network) // verify required parameter 'lockAddress' is not null or undefined assertParamExists('ticketQRCode', 'lockAddress', lockAddress) // verify required parameter 'keyId' is not null or undefined assertParamExists('ticketQRCode', 'keyId', keyId) const localVarPath = `/v2/api/ticket/{network}/{lockAddress}/{keyId}/qr` .replace(`{${"network"}}`, encodeURIComponent(String(network))) .replace(`{${"lockAddress"}}`, encodeURIComponent(String(lockAddress))) .replace(`{${"keyId"}}`, encodeURIComponent(String(keyId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication User required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Get the verification URL for the key. * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {string} keyId Key Id. * @param {*} [options] Override http request option. * @throws {RequiredError} */ ticketVerificationUrl: async (network: number, lockAddress: string, keyId: string, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'network' is not null or undefined assertParamExists('ticketVerificationUrl', 'network', network) // verify required parameter 'lockAddress' is not null or undefined assertParamExists('ticketVerificationUrl', 'lockAddress', lockAddress) // verify required parameter 'keyId' is not null or undefined assertParamExists('ticketVerificationUrl', 'keyId', keyId) const localVarPath = `/v2/api/ticket/{network}/{lockAddress}/{keyId}/verification` .replace(`{${"network"}}`, encodeURIComponent(String(network))) .replace(`{${"lockAddress"}}`, encodeURIComponent(String(lockAddress))) .replace(`{${"keyId"}}`, encodeURIComponent(String(keyId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication User required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Finalize the transfer of a key to a recipient. This is to copy over any locksmith related data to the recipient\'s account. * @param {TransferDoneRequest} [transferDoneRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ transferDone: async (transferDoneRequest?: TransferDoneRequest, options: AxiosRequestConfig = {}): Promise => { const localVarPath = `/v2/transfer/done`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication User required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(transferDoneRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Unsubscribe email from lock * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {*} [options] Override http request option. * @throws {RequiredError} */ unsubscribeEmail: async (network: number, lockAddress: string, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'network' is not null or undefined assertParamExists('unsubscribeEmail', 'network', network) // verify required parameter 'lockAddress' is not null or undefined assertParamExists('unsubscribeEmail', 'lockAddress', lockAddress) const localVarPath = `/v2/email-subscriptions/unsubscribe/{network}/locks/{lockAddress}` .replace(`{${"network"}}`, encodeURIComponent(String(network))) .replace(`{${"lockAddress"}}`, encodeURIComponent(String(lockAddress))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication User required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Update application by id. * @param {string} id Application id. * @param {ApplicationBody} [applicationBody] * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateApplication: async (id: string, applicationBody?: ApplicationBody, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('updateApplication', 'id', id) const localVarPath = `/v2/applications/:id` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication User required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(applicationBody, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * A new checkout config is created or updated if it already exists * @param {string} id This is optional. If you don\'t pass an ID, a new config will be created. If you pass an ID, the config will be created. * @param {UpdateCheckoutConfigRequest} [updateCheckoutConfigRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateCheckoutConfig: async (id: string, updateCheckoutConfigRequest?: UpdateCheckoutConfigRequest, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('updateCheckoutConfig', 'id', id) const localVarPath = `/v2/checkout/{id}` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication User required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(updateCheckoutConfigRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Update an existing event collection * @param {string} slug * @param {EventCollectionBody} eventCollectionBody * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateEventCollection: async (slug: string, eventCollectionBody: EventCollectionBody, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'slug' is not null or undefined assertParamExists('updateEventCollection', 'slug', slug) // verify required parameter 'eventCollectionBody' is not null or undefined assertParamExists('updateEventCollection', 'eventCollectionBody', eventCollectionBody) const localVarPath = `/v2/event-collection/{slug}` .replace(`{${"slug"}}`, encodeURIComponent(String(slug))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication User required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(eventCollectionBody, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Update event data * @param {string} slug * @param {UpdateEventDataRequest} [updateEventDataRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateEventData: async (slug: string, updateEventDataRequest?: UpdateEventDataRequest, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'slug' is not null or undefined assertParamExists('updateEventData', 'slug', slug) const localVarPath = `/v2/events/update/{slug}` .replace(`{${"slug"}}`, encodeURIComponent(String(slug))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication User required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(updateEventDataRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Update or create metadata for key. * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {string} keyId Key Id. * @param {UpdateLockMetadataRequest} updateLockMetadataRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateKeyMetadata: async (network: number, lockAddress: string, keyId: string, updateLockMetadataRequest: UpdateLockMetadataRequest, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'network' is not null or undefined assertParamExists('updateKeyMetadata', 'network', network) // verify required parameter 'lockAddress' is not null or undefined assertParamExists('updateKeyMetadata', 'lockAddress', lockAddress) // verify required parameter 'keyId' is not null or undefined assertParamExists('updateKeyMetadata', 'keyId', keyId) // verify required parameter 'updateLockMetadataRequest' is not null or undefined assertParamExists('updateKeyMetadata', 'updateLockMetadataRequest', updateLockMetadataRequest) const localVarPath = `/v2/api/metadata/{network}/locks/{lockAddress}/keys/{keyId}` .replace(`{${"network"}}`, encodeURIComponent(String(network))) .replace(`{${"lockAddress"}}`, encodeURIComponent(String(lockAddress))) .replace(`{${"keyId"}}`, encodeURIComponent(String(keyId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication User required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(updateLockMetadataRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Update or create metadata for lock address. * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {UpdateLockMetadataRequest} updateLockMetadataRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateLockMetadata: async (network: number, lockAddress: string, updateLockMetadataRequest: UpdateLockMetadataRequest, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'network' is not null or undefined assertParamExists('updateLockMetadata', 'network', network) // verify required parameter 'lockAddress' is not null or undefined assertParamExists('updateLockMetadata', 'lockAddress', lockAddress) // verify required parameter 'updateLockMetadataRequest' is not null or undefined assertParamExists('updateLockMetadata', 'updateLockMetadataRequest', updateLockMetadataRequest) const localVarPath = `/v2/api/metadata/{network}/locks/{lockAddress}` .replace(`{${"network"}}`, encodeURIComponent(String(network))) .replace(`{${"lockAddress"}}`, encodeURIComponent(String(lockAddress))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication User required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(updateLockMetadataRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Updates a user\'s private key, using their email address as key. In the case of failure a rejected promise is returned to the caller. * @param {string} emailAddress * @param {UpdateUserEncryptedPrivateKeyRequest} updateUserEncryptedPrivateKeyRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateUserEncryptedPrivateKey: async (emailAddress: string, updateUserEncryptedPrivateKeyRequest: UpdateUserEncryptedPrivateKeyRequest, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'emailAddress' is not null or undefined assertParamExists('updateUserEncryptedPrivateKey', 'emailAddress', emailAddress) // verify required parameter 'updateUserEncryptedPrivateKeyRequest' is not null or undefined assertParamExists('updateUserEncryptedPrivateKey', 'updateUserEncryptedPrivateKeyRequest', updateUserEncryptedPrivateKeyRequest) const localVarPath = `/users/{emailAddress}/passwordEncryptedPrivateKey` .replace(`{${"emailAddress"}}`, encodeURIComponent(String(emailAddress))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication User required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(updateUserEncryptedPrivateKeyRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Update or create user metadata for lock. * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {string} userAddress User address. * @param {UpdateUserMetadataRequest} updateUserMetadataRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateUserMetadata: async (network: number, lockAddress: string, userAddress: string, updateUserMetadataRequest: UpdateUserMetadataRequest, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'network' is not null or undefined assertParamExists('updateUserMetadata', 'network', network) // verify required parameter 'lockAddress' is not null or undefined assertParamExists('updateUserMetadata', 'lockAddress', lockAddress) // verify required parameter 'userAddress' is not null or undefined assertParamExists('updateUserMetadata', 'userAddress', userAddress) // verify required parameter 'updateUserMetadataRequest' is not null or undefined assertParamExists('updateUserMetadata', 'updateUserMetadataRequest', updateUserMetadataRequest) const localVarPath = `/v2/api/metadata/{network}/locks/{lockAddress}/users/{userAddress}` .replace(`{${"network"}}`, encodeURIComponent(String(network))) .replace(`{${"lockAddress"}}`, encodeURIComponent(String(lockAddress))) .replace(`{${"userAddress"}}`, encodeURIComponent(String(userAddress))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication User required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(updateUserMetadataRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Update or create user metadata for lock. * @param {UpdateUsersMetadataRequest} updateUsersMetadataRequest users array containing user metadata. * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateUsersMetadata: async (updateUsersMetadataRequest: UpdateUsersMetadataRequest, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'updateUsersMetadataRequest' is not null or undefined assertParamExists('updateUsersMetadata', 'updateUsersMetadataRequest', updateUsersMetadataRequest) const localVarPath = `/v2/api/metadata/users`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication User required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(updateUsersMetadataRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Upload images to locksmith * @param {Array} [images] * @param {*} [options] Override http request option. * @throws {RequiredError} */ uploadImages: async (images?: Array, options: AxiosRequestConfig = {}): Promise => { const localVarPath = `/v2/images/upload`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)(); // authentication User required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) if (images) { images.forEach((element) => { localVarFormParams.append('images', element as any); }) } localVarHeaderParameter['Content-Type'] = 'multipart/form-data'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = localVarFormParams; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Get user details. * @param {*} [options] Override http request option. * @throws {RequiredError} */ user: async (options: AxiosRequestConfig = {}): Promise => { const localVarPath = `/v2/auth/user`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication User required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Check if an address is a verifier of the lock. (deprecated in favor of eventVerifier) * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {string} verifierAddress User address to use as verifier * @param {*} [options] Override http request option. * @deprecated * @throws {RequiredError} */ verifier: async (network: number, lockAddress: string, verifierAddress: string, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'network' is not null or undefined assertParamExists('verifier', 'network', network) // verify required parameter 'lockAddress' is not null or undefined assertParamExists('verifier', 'lockAddress', lockAddress) // verify required parameter 'verifierAddress' is not null or undefined assertParamExists('verifier', 'verifierAddress', verifierAddress) const localVarPath = `/v2/api/verifier/{network}/lock/{lockAddress}/address/{verifierAddress}` .replace(`{${"network"}}`, encodeURIComponent(String(network))) .replace(`{${"lockAddress"}}`, encodeURIComponent(String(lockAddress))) .replace(`{${"verifierAddress"}}`, encodeURIComponent(String(verifierAddress))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication User required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * List of verifiers for the lock address. (deprecated in favor of eventVerifiers) * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {*} [options] Override http request option. * @deprecated * @throws {RequiredError} */ verifiers: async (network: number, lockAddress: string, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'network' is not null or undefined assertParamExists('verifiers', 'network', network) // verify required parameter 'lockAddress' is not null or undefined assertParamExists('verifiers', 'lockAddress', lockAddress) const localVarPath = `/v2/api/verifier/list/{network}/{lockAddress}` .replace(`{${"network"}}`, encodeURIComponent(String(network))) .replace(`{${"lockAddress"}}`, encodeURIComponent(String(lockAddress))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication User required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Verifies the email code sent to the users email address. * @param {string} emailAddress * @param {VerifyEmailCodeRequest} verifyEmailCodeRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ verifyEmailCode: async (emailAddress: string, verifyEmailCodeRequest: VerifyEmailCodeRequest, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'emailAddress' is not null or undefined assertParamExists('verifyEmailCode', 'emailAddress', emailAddress) // verify required parameter 'verifyEmailCodeRequest' is not null or undefined assertParamExists('verifyEmailCode', 'verifyEmailCodeRequest', verifyEmailCodeRequest) const localVarPath = `/v2/api/users/{emailAddress}/verify-email-code` .replace(`{${"emailAddress"}}`, encodeURIComponent(String(emailAddress))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(verifyEmailCodeRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, } }; /** * DefaultApi - functional programming interface * @export */ export const DefaultApiFp = function(configuration?: Configuration) { const localVarAxiosParamCreator = DefaultApiAxiosParamCreator(configuration) return { /** * Add an event to a collection * @param {string} slug * @param {AddEventToCollectionBody} addEventToCollectionBody * @param {*} [options] Override http request option. * @throws {RequiredError} */ async addEventToCollection(slug: string, addEventToCollectionBody: AddEventToCollectionBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.addEventToCollection(slug, addEventToCollectionBody, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * Adds a verifier for an event. * @param {string} slug Slug * @param {string} verifierAddress User address to use as verifier * @param {CreateVerifierRequest} [createVerifierRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async addEventVerifier(slug: string, verifierAddress: string, createVerifierRequest?: CreateVerifierRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.addEventVerifier(slug, verifierAddress, createVerifierRequest, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * Add a new manager address to an event collection * @param {string} slug * @param {AddManagerBody} addManagerBody * @param {*} [options] Override http request option. * @throws {RequiredError} */ async addManagerToEventCollection(slug: string, addManagerBody: AddManagerBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.addManagerToEventCollection(slug, addManagerBody, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * List applications created the user. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async applications(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.applications(options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * Approves users to attend an event. (does not airdrop!) * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {ApproveAttendeesRsvpRequest} approveAttendeesRsvpRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ async approveAttendeesRsvp(network: number, lockAddress: string, approveAttendeesRsvpRequest: ApproveAttendeesRsvpRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.approveAttendeesRsvp(network, lockAddress, approveAttendeesRsvpRequest, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * Approve a single event within an event collection. * @param {string} slug Slug of the event collection. * @param {ApproveEventBody} approveEventBody * @param {*} [options] Override http request option. * @throws {RequiredError} */ async approveEvent(slug: string, approveEventBody: ApproveEventBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.approveEvent(slug, approveEventBody, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * Approves refunds for an event. * @param {string} slug Slug * @param {ApproveRefundsRequest} approveRefundsRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ async approveRefunds(slug: string, approveRefundsRequest: ApproveRefundsRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.approveRefunds(slug, approveRefundsRequest, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * Approves a user to attend an event. (does not airdrop!) * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {string} userAddress User address. * @param {*} [options] Override http request option. * @deprecated * @throws {RequiredError} */ async approveRsvp(network: number, lockAddress: string, userAddress: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.approveRsvp(network, lockAddress, userAddress, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * Returns the merkle proof of an approved refund. * @param {string} slug Slug * @param {*} [options] Override http request option. * @throws {RequiredError} */ async approvedRefunds(slug: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.approvedRefunds(slug, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {*} [options] Override http request option. * @throws {RequiredError} */ async balance(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<{ [key: string]: Balance200ResponseValue; }>> { const localVarAxiosArgs = await localVarAxiosParamCreator.balance(options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * Bulk approve multiple events within an event collection. * @param {string} slug Slug of the event collection. * @param {BulkApproveEventsBody} bulkApproveEventsBody * @param {*} [options] Override http request option. * @throws {RequiredError} */ async bulkApproveEvents(slug: string, bulkApproveEventsBody: BulkApproveEventsBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.bulkApproveEvents(slug, bulkApproveEventsBody, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * Bulk remove multiple events from an event collection. * @param {string} slug Slug of the event collection. * @param {BulkRemoveEventsBody} bulkRemoveEventsBody * @param {*} [options] Override http request option. * @throws {RequiredError} */ async bulkRemoveEvents(slug: string, bulkRemoveEventsBody: BulkRemoveEventsBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.bulkRemoveEvents(slug, bulkRemoveEventsBody, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * Cancel a fiat subscription. * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {string} keyId Key Id. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async cancelSubscription(network: number, lockAddress: string, keyId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.cancelSubscription(network, lockAddress, keyId, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * Capture a purchase * @param {CapturePurchaseRequest} [capturePurchaseRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async capturePurchase(capturePurchaseRequest?: CapturePurchaseRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.capturePurchase(capturePurchaseRequest, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * Check if claim is possible for a given purchase * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {CheckClaimRequest} [checkClaimRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async checkClaim(network: number, lockAddress: string, checkClaimRequest?: CheckClaimRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.checkClaim(network, lockAddress, checkClaimRequest, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * Mark an event ticket as checked in. * @param {string} slug Slug * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {string} keyId Key Id. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async checkEventTicket(slug: string, network: number, lockAddress: string, keyId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.checkEventTicket(slug, network, lockAddress, keyId, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * Check if a user exists in Privy by email or wallet address * @param {PrivyUserCheckBody} privyUserCheckBody * @param {*} [options] Override http request option. * @throws {RequiredError} */ async checkPrivyUser(privyUserCheckBody: PrivyUserCheckBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.checkPrivyUser(privyUserCheckBody, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * Mark a lock ticket as checked in. * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {string} keyId Key Id. * @param {*} [options] Override http request option. * @deprecated * @throws {RequiredError} */ async checkTicket(network: number, lockAddress: string, keyId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.checkTicket(network, lockAddress, keyId, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * Claim a membership key for a lock. If not authenticated, requires an email in the body. * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {string} captcha Recaptcha value to pass. * @param {ClaimRequest} claimRequest * @param {string} [recipient] Recipient address for key * @param {*} [options] Override http request option. * @throws {RequiredError} */ async claim(network: number, lockAddress: string, captcha: string, claimRequest: ClaimRequest, recipient?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.claim(network, lockAddress, captcha, claimRequest, recipient, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * Connect a stripe account to a lock * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {ConnectStripeAccountRequest} [connectStripeAccountRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async connectStripeAccount(network: number, lockAddress: string, connectStripeAccountRequest?: ConnectStripeAccountRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.connectStripeAccount(network, lockAddress, connectStripeAccountRequest, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * Create application associated with user wallet. * @param {ApplicationBody} applicationBody * @param {*} [options] Override http request option. * @throws {RequiredError} */ async createApplication(applicationBody: ApplicationBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createApplication(applicationBody, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * Request the creation of a ZIP file containing all receipts for a lock. * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async createDownloadReceiptsRequest(network: number, lockAddress: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createDownloadReceiptsRequest(network, lockAddress, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * Create a new event collection * @param {EventCollectionBody} eventCollectionBody * @param {*} [options] Override http request option. * @throws {RequiredError} */ async createEventCollection(eventCollectionBody: EventCollectionBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createEventCollection(eventCollectionBody, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {number} network Network id. * @param {string} captcha Recaptcha value to pass. * @param {LockContractOptions} lockContractOptions * @param {*} [options] Override http request option. * @throws {RequiredError} */ async createLockContract(network: number, captcha: string, lockContractOptions: LockContractOptions, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createLockContract(network, captcha, lockContractOptions, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * Create a transfer code to transfer an airdropped key to an email address. * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {string} keyId Key Id. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async createTransferCode(network: number, lockAddress: string, keyId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createTransferCode(network, lockAddress, keyId, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * Create verifier. (deprecated in favor of addEventVerifier) * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {string} verifierAddress User address to use as verifier * @param {CreateVerifierRequest} [createVerifierRequest] * @param {*} [options] Override http request option. * @deprecated * @throws {RequiredError} */ async createVerifier(network: number, lockAddress: string, verifierAddress: string, createVerifierRequest?: CreateVerifierRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createVerifier(network, lockAddress, verifierAddress, createVerifierRequest, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * Delete application by id. * @param {string} id Application id. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async deleteApplication(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.deleteApplication(id, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * Delete a checkout config * @param {string} id The id of the checkout config * @param {*} [options] Override http request option. * @throws {RequiredError} */ async deleteCheckoutConfig(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.deleteCheckoutConfig(id, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * Removes a verifier for an event. * @param {string} slug Slug * @param {string} verifierAddress User address to use as verifier * @param {*} [options] Override http request option. * @throws {RequiredError} */ async deleteEventVerifier(slug: string, verifierAddress: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.deleteEventVerifier(slug, verifierAddress, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * Remove verifier. (deprecated in favor of deleteEventVerifier) * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {string} verifierAddress User address to use as verifier * @param {*} [options] Override http request option. * @deprecated * @throws {RequiredError} */ async deleteVerifier(network: number, lockAddress: string, verifierAddress: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.deleteVerifier(network, lockAddress, verifierAddress, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * Denies users to attend an event. * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {ApproveAttendeesRsvpRequest} approveAttendeesRsvpRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ async denyAttendeesRsvp(network: number, lockAddress: string, approveAttendeesRsvpRequest: ApproveAttendeesRsvpRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.denyAttendeesRsvp(network, lockAddress, approveAttendeesRsvpRequest, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * Denies a user to attend an event. (does not airdrop!) * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {string} userAddress User address. * @param {*} [options] Override http request option. * @deprecated * @throws {RequiredError} */ async denyRsvp(network: number, lockAddress: string, userAddress: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.denyRsvp(network, lockAddress, userAddress, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * Disconnect stripe account. * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async disconnectStripe(network: number, lockAddress: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.disconnectStripe(network, lockAddress, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * Download the ZIP file containing all receipts for a lock. * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async downloadReceipts(network: number, lockAddress: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.downloadReceipts(network, lockAddress, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * Ejects a user given their public key. In the case of failure, a rejected promise is returned to the caller. * @param {string} publicKey * @param {{ [key: string]: any; }} requestBody Structured data used to generate the signature * @param {*} [options] Override http request option. * @throws {RequiredError} */ async ejectUser(publicKey: string, requestBody: { [key: string]: any; }, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.ejectUser(publicKey, requestBody, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * Send QR code by email. * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {string} keyId Key Id. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async emailTicket(network: number, lockAddress: string, keyId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.emailTicket(network, lockAddress, keyId, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * List of verifiers for an event. * @param {string} slug Slug * @param {*} [options] Override http request option. * @throws {RequiredError} */ async eventVerifiers(slug: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.eventVerifiers(slug, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * Starts Job process to get all the keys for the given lock * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {string} query Query you want to search for. * @param {string} filterKey The key you want to search on. * @param {string} [expiration] Expiration time * @param {string} [approval] Approval status (relevant for offchain approvals on events for example) * @param {*} [options] Override http request option. * @throws {RequiredError} */ async exportKeys(network: number, lockAddress: string, query: string, filterKey: string, expiration?: string, approval?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.exportKeys(network, lockAddress, query, filterKey, expiration, approval, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * Generate and return an Apple Wallet pass for a specified key associated with a lock. * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {string} keyId Key Id. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async generateAppleWalletPass(network: number, lockAddress: string, keyId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.generateAppleWalletPass(network, lockAddress, keyId, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * Generate certificate for specific key * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {string} keyId Key Id. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async generateCertificate(network: number, lockAddress: string, keyId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.generateCertificate(network, lockAddress, keyId, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * Generate and return a Google Wallet pass for a specified key associated with a lock. * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {string} keyId Key Id. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async generateGoogleWalletPass(network: number, lockAddress: string, keyId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.generateGoogleWalletPass(network, lockAddress, keyId, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * Generate a ticket for a key. * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {string} keyId Key Id. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async generateTicket(network: number, lockAddress: string, keyId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.generateTicket(network, lockAddress, keyId, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * Get the price breakdown for recipients & total charges with fees for a specific lock * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {Array} purchaseData The purchase data passed to the purchase function * @param {Array} recipients The recipients passed to the purchase function * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getChargesForLock(network: number, lockAddress: string, purchaseData: Array, recipients: Array, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getChargesForLock(network, lockAddress, purchaseData, recipients, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {string} id The id of the checkout config * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getCheckoutConfig(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getCheckoutConfig(id, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * Get custom email content for a specific template and lock details * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {string} template Template id for email * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getCustomEmailContent(network: number, lockAddress: string, template: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getCustomEmailContent(network, lockAddress, template, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * Retrieves data for recipients and captcha. * @param {Array} recipients * @param {string} captchaValue * @param {string} lockAddress * @param {number} network * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getDataForRecipientsAndCaptcha(recipients: Array, captchaValue: string, lockAddress: string, network: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getDataForRecipientsAndCaptcha(recipients, captchaValue, lockAddress, network, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * Get the data for recipients and gitcoin passport. This is to be used in conjunction with the Gitcoin passport scorer. * @param {number} network The network the lock is on * @param {string} [lockAddress] The address of the lock * @param {Array} [recipients] The list of recipients for the purchase * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getDataForRecipientsAndGitcoinPassport(network: number, lockAddress?: string, recipients?: Array, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getDataForRecipientsAndGitcoinPassport(network, lockAddress, recipients, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * Get the data for recipients and guild. This is to be used in conjunction with the Guild * @param {number} network The network the lock is on * @param {string} [lockAddress] The address of the lock * @param {Array} [recipients] The list of recipients for the purchase * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getDataForRecipientsAndGuild(network: number, lockAddress?: string, recipients?: Array, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getDataForRecipientsAndGuild(network, lockAddress, recipients, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * Retrieves an event based on its slug. The event data including status and transactionHash can be accessed through the `data` property. * @param {string} slug Slug * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getEvent(slug: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getEvent(slug, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * Get details of an event collection * @param {string} slug * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getEventCollection(slug: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getEventCollection(slug, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * Get the event details from lock * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {*} [options] Override http request option. * @deprecated * @throws {RequiredError} */ async getEventDetails(network: number, lockAddress: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getEventDetails(network, lockAddress, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * get a ticket for a key by event. * @param {string} slug Slug * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {string} keyId Key Id. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getEventTicket(slug: string, network: number, lockAddress: string, keyId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getEventTicket(slug, network, lockAddress, keyId, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * Get events in a collection * @param {string} slug * @param {number} [page] * @param {number} [pageSize] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getEventsInCollection(slug: string, page?: number, pageSize?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getEventsInCollection(slug, page, pageSize, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * Get job result by job id * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {string} jobId Id of the exported job. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getExportedKeys(network: number, lockAddress: string, jobId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getExportedKeys(network, lockAddress, jobId, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * Get saved lock settings * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getLockSettings(network: number, lockAddress: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getLockSettings(network, lockAddress, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * Get lock setting by slug * @param {string} slug Slug * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getLockSettingsBySlug(slug: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getLockSettingsBySlug(slug, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * Returns Stripe connection details * @param {string} lockAddress Lock address. * @param {number} chain Lock network * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getLockStripeConnectionDetails(lockAddress: string, chain: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getLockStripeConnectionDetails(lockAddress, chain, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * Get receipt details * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {string} hash Hash * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getReceipt(network: number, lockAddress: string, hash: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getReceipt(network, lockAddress, hash, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * Get all receipts for a lock * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getReceipts(network: number, lockAddress: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getReceipts(network, lockAddress, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * Get supplier details * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getReceiptsBase(network: number, lockAddress: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getReceiptsBase(network, lockAddress, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * Retrieve the status of receipt generation for a lock. * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getReceiptsStatus(network: number, lockAddress: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getReceiptsStatus(network, lockAddress, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * Lists the locks connected to Stripe for a user * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getStripeConnections(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getStripeConnections(options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * Get an active subscription associated with the key. It can be fiat or crypto. * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {string} keyId Key Id. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getSubscription(network: number, lockAddress: string, keyId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getSubscription(network, lockAddress, keyId, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * get a ticket for a key by lock. * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {string} keyId Key Id. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getTicket(network: number, lockAddress: string, keyId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getTicket(network, lockAddress, keyId, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * Get unapproved events for a collection * @param {string} slug * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getUnapprovedEventsForCollection(slug: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getUnapprovedEventsForCollection(slug, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * Gets User account type by email. * @param {string} emailAddress * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getUserAccountType(emailAddress: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getUserAccountType(emailAddress, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * get user metadata for a lock. * @param {string} lockAddress Lock address. * @param {string} userAddress User address. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getUserMetadata(lockAddress: string, userAddress: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getUserMetadata(lockAddress, userAddress, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * Given a user\'s email address, retrieves their private key. In the case of failure a rejected promise is returned to the caller. * @param {string} emailAddress * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getUserPrivateKey(emailAddress: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getUserPrivateKey(emailAddress, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * Given a user\'s email address, retrieves their recovery phrase. In the case of failure a rejected promise is returned to the caller. * @param {string} emailAddress * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getUserRecoveryPhrase(emailAddress: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getUserRecoveryPhrase(emailAddress, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * Gets Coinbase WAAS token for user by email and selected provider. * @param {string} captcha Recaptcha value to pass. * @param {string} emailAddress * @param {string} selectedProvider * @param {GetWaasTokenRequest} getWaasTokenRequest JSON object containing sign in token * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getWaasToken(captcha: string, emailAddress: string, selectedProvider: string, getWaasTokenRequest: GetWaasTokenRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getWaasToken(captcha, emailAddress, selectedProvider, getWaasTokenRequest, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * Returns if credit card payment are enable for a lock * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async isCardPaymentEnabledForLock(network: number, lockAddress: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.isCardPaymentEnabledForLock(network, lockAddress, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * Get key and user metadata. * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {string} keyId Key Id. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async keyMetadata(network: number, lockAddress: string, keyId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.keyMetadata(network, lockAddress, keyId, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * List of lock keys by network with additional metadata if the caller is the lockManager (deprecated, use keys-by-page) * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {string} query Query you want to search for. * @param {string} filterKey The key you want to search on. * @param {string} [expiration] Expiration time * @param {string} [approval] Approval status (relevant for offchain approvals on events for example) * @param {number} [page] Page number when paginating * @param {number} [max] Maximum number of items to get by page * @param {*} [options] Override http request option. * @deprecated * @throws {RequiredError} */ async keys(network: number, lockAddress: string, query: string, filterKey: string, expiration?: string, approval?: string, page?: number, max?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.keys(network, lockAddress, query, filterKey, expiration, approval, page, max, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * List of lock keys by network with additional metadata if the caller is the lockManager * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {string} query Query you want to search for. * @param {string} filterKey The key you want to search on. * @param {string} [expiration] Expiration time * @param {string} [approval] Approval status (relevant for offchain approvals on events for example) * @param {number} [page] Page number when paginating * @param {number} [max] Maximum number of items to get by page * @param {*} [options] Override http request option. * @throws {RequiredError} */ async keysByPage(network: number, lockAddress: string, query: string, filterKey: string, expiration?: string, approval?: string, page?: number, max?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.keysByPage(network, lockAddress, query, filterKey, expiration, approval, page, max, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * A list of all checkout configs created by the user * @param {*} [options] Override http request option. * @throws {RequiredError} */ async listCheckoutConfigs(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.listCheckoutConfigs(options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * List payment methods for user. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async listPaymentMethods(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.listPaymentMethods(options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * Get metadata for lock address. * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async lockMetadata(network: number, lockAddress: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<{ [key: string]: any; }>> { const localVarAxiosArgs = await localVarAxiosParamCreator.lockMetadata(network, lockAddress, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * Login as a user using Sign in with Ethereum message signed by the wallet address. * @param {LoginRequest} loginRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ async login(loginRequest: LoginRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.login(loginRequest, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * Verify an access token using Privy\'s library and authenticate the user * @param {LoginWithPrivyRequest} loginWithPrivyRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ async loginWithPrivy(loginWithPrivyRequest: LoginWithPrivyRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.loginWithPrivy(loginWithPrivyRequest, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * Logout from locksmith. This will invalidate all your session tokens. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async logout(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.logout(options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * Provide a unique nonce for using in sign in with ethereum * @param {*} [options] Override http request option. * @throws {RequiredError} */ async nonce(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.nonce(options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {number} network Network id. * @param {number} [amount] Amount of tokens you want to get the price for in USD. * @param {string} [address] The erc20 address you want to get the price for. If nothing is passed, the API will return the native token price. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async price(network: number, amount?: number, address?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.price(network, amount, address, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * Create purchase intent for stripe. * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {PurchaseRequest} purchaseRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ async purchase(network: number, lockAddress: string, purchaseRequest: PurchaseRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.purchase(network, lockAddress, purchaseRequest, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * resubscribe emails from lock * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async reSubscribeEmail(network: number, lockAddress: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.reSubscribeEmail(network, lockAddress, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * Remove a single event from an event collection. * @param {string} slug Slug of the event collection. * @param {RemoveEventBody} removeEventBody * @param {*} [options] Override http request option. * @throws {RequiredError} */ async removeEventFromCollection(slug: string, removeEventBody: RemoveEventBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.removeEventFromCollection(slug, removeEventBody, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * Remove a manager address from an event collection * @param {string} slug * @param {RemoveManagerBody} removeManagerBody * @param {*} [options] Override http request option. * @throws {RequiredError} */ async removeManagerFromEventCollection(slug: string, removeManagerBody: RemoveManagerBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.removeManagerFromEventCollection(slug, removeManagerBody, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * Remove all payment methods for a user * @param {*} [options] Override http request option. * @throws {RequiredError} */ async removePaymentMethods(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.removePaymentMethods(options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * Invalidate a session. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async revoke(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.revoke(options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * User applies to attend an event. * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {string} captcha Recaptcha value to pass. * @param {RsvpRequest} [rsvpRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async rsvp(network: number, lockAddress: string, captcha: string, rsvpRequest?: RsvpRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.rsvp(network, lockAddress, captcha, rsvpRequest, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * Save custom email content for a specif lock. * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {string} template Template id for email * @param {*} [options] Override http request option. * @throws {RequiredError} */ async saveCustomEmailContent(network: number, lockAddress: string, template: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.saveCustomEmailContent(network, lockAddress, template, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * Save event data * @param {SaveEventDataRequest} saveEventDataRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ async saveEventData(saveEventDataRequest: SaveEventDataRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.saveEventData(saveEventDataRequest, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * Save lock settings * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {LockSettings} [lockSettings] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async saveLockSetting(network: number, lockAddress: string, lockSettings?: LockSettings, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.saveLockSetting(network, lockAddress, lockSettings, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * Saves a merkle tree from either a list of addresses or a list of [address, amount] tuples. * @param {Array} saveMerkleTreeRequestInner * @param {*} [options] Override http request option. * @throws {RequiredError} */ async saveMerkleTree(saveMerkleTreeRequestInner: Array, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.saveMerkleTree(saveMerkleTreeRequestInner, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * Create purchaser details * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {string} hash Hash * @param {*} [options] Override http request option. * @throws {RequiredError} */ async saveReceipt(network: number, lockAddress: string, hash: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.saveReceipt(network, lockAddress, hash, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * Create supplier details. * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async saveReceiptsBase(network: number, lockAddress: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.saveReceiptsBase(network, lockAddress, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * Send custom email to recipients * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {SendCustomEmailRequest} [sendCustomEmailRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async sendCustomEmail(network: number, lockAddress: string, sendCustomEmailRequest?: SendCustomEmailRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.sendCustomEmail(network, lockAddress, sendCustomEmailRequest, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * Send event invites to a list of recipients * @param {string} slug Slug * @param {SendEventInvitesRequest} [sendEventInvitesRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async sendEventInvites(slug: string, sendEventInvitesRequest?: SendEventInvitesRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.sendEventInvites(slug, sendEventInvitesRequest, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * Sends a verification code to the user\'s email if the current code is expired or does not exist. * @param {string} captcha Recaptcha value to pass. * @param {string} emailAddress * @param {*} [options] Override http request option. * @throws {RequiredError} */ async sendVerificationCode(captcha: string, emailAddress: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.sendVerificationCode(captcha, emailAddress, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * Setup a payment method for user. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async setupPayment(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.setupPayment(options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * Generate signature to prove validity of token. * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {string} keyId Key Id. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async signTicket(network: number, lockAddress: string, keyId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.signTicket(network, lockAddress, keyId, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * Get QR code for the key. * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {string} keyId Key Id. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async ticketQRCode(network: number, lockAddress: string, keyId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.ticketQRCode(network, lockAddress, keyId, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * Get the verification URL for the key. * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {string} keyId Key Id. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async ticketVerificationUrl(network: number, lockAddress: string, keyId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.ticketVerificationUrl(network, lockAddress, keyId, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * Finalize the transfer of a key to a recipient. This is to copy over any locksmith related data to the recipient\'s account. * @param {TransferDoneRequest} [transferDoneRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async transferDone(transferDoneRequest?: TransferDoneRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.transferDone(transferDoneRequest, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * Unsubscribe email from lock * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async unsubscribeEmail(network: number, lockAddress: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.unsubscribeEmail(network, lockAddress, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * Update application by id. * @param {string} id Application id. * @param {ApplicationBody} [applicationBody] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async updateApplication(id: string, applicationBody?: ApplicationBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.updateApplication(id, applicationBody, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * A new checkout config is created or updated if it already exists * @param {string} id This is optional. If you don\'t pass an ID, a new config will be created. If you pass an ID, the config will be created. * @param {UpdateCheckoutConfigRequest} [updateCheckoutConfigRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async updateCheckoutConfig(id: string, updateCheckoutConfigRequest?: UpdateCheckoutConfigRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.updateCheckoutConfig(id, updateCheckoutConfigRequest, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * Update an existing event collection * @param {string} slug * @param {EventCollectionBody} eventCollectionBody * @param {*} [options] Override http request option. * @throws {RequiredError} */ async updateEventCollection(slug: string, eventCollectionBody: EventCollectionBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.updateEventCollection(slug, eventCollectionBody, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * Update event data * @param {string} slug * @param {UpdateEventDataRequest} [updateEventDataRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async updateEventData(slug: string, updateEventDataRequest?: UpdateEventDataRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.updateEventData(slug, updateEventDataRequest, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * Update or create metadata for key. * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {string} keyId Key Id. * @param {UpdateLockMetadataRequest} updateLockMetadataRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ async updateKeyMetadata(network: number, lockAddress: string, keyId: string, updateLockMetadataRequest: UpdateLockMetadataRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<{ [key: string]: any; }>> { const localVarAxiosArgs = await localVarAxiosParamCreator.updateKeyMetadata(network, lockAddress, keyId, updateLockMetadataRequest, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * Update or create metadata for lock address. * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {UpdateLockMetadataRequest} updateLockMetadataRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ async updateLockMetadata(network: number, lockAddress: string, updateLockMetadataRequest: UpdateLockMetadataRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<{ [key: string]: any; }>> { const localVarAxiosArgs = await localVarAxiosParamCreator.updateLockMetadata(network, lockAddress, updateLockMetadataRequest, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * Updates a user\'s private key, using their email address as key. In the case of failure a rejected promise is returned to the caller. * @param {string} emailAddress * @param {UpdateUserEncryptedPrivateKeyRequest} updateUserEncryptedPrivateKeyRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ async updateUserEncryptedPrivateKey(emailAddress: string, updateUserEncryptedPrivateKeyRequest: UpdateUserEncryptedPrivateKeyRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.updateUserEncryptedPrivateKey(emailAddress, updateUserEncryptedPrivateKeyRequest, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * Update or create user metadata for lock. * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {string} userAddress User address. * @param {UpdateUserMetadataRequest} updateUserMetadataRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ async updateUserMetadata(network: number, lockAddress: string, userAddress: string, updateUserMetadataRequest: UpdateUserMetadataRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<{ [key: string]: any; }>> { const localVarAxiosArgs = await localVarAxiosParamCreator.updateUserMetadata(network, lockAddress, userAddress, updateUserMetadataRequest, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * Update or create user metadata for lock. * @param {UpdateUsersMetadataRequest} updateUsersMetadataRequest users array containing user metadata. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async updateUsersMetadata(updateUsersMetadataRequest: UpdateUsersMetadataRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.updateUsersMetadata(updateUsersMetadataRequest, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * Upload images to locksmith * @param {Array} [images] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async uploadImages(images?: Array, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.uploadImages(images, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * Get user details. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async user(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.user(options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * Check if an address is a verifier of the lock. (deprecated in favor of eventVerifier) * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {string} verifierAddress User address to use as verifier * @param {*} [options] Override http request option. * @deprecated * @throws {RequiredError} */ async verifier(network: number, lockAddress: string, verifierAddress: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.verifier(network, lockAddress, verifierAddress, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * List of verifiers for the lock address. (deprecated in favor of eventVerifiers) * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {*} [options] Override http request option. * @deprecated * @throws {RequiredError} */ async verifiers(network: number, lockAddress: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.verifiers(network, lockAddress, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * Verifies the email code sent to the users email address. * @param {string} emailAddress * @param {VerifyEmailCodeRequest} verifyEmailCodeRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ async verifyEmailCode(emailAddress: string, verifyEmailCodeRequest: VerifyEmailCodeRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.verifyEmailCode(emailAddress, verifyEmailCodeRequest, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, } }; /** * DefaultApi - factory interface * @export */ export const DefaultApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { const localVarFp = DefaultApiFp(configuration) return { /** * Add an event to a collection * @param {string} slug * @param {AddEventToCollectionBody} addEventToCollectionBody * @param {*} [options] Override http request option. * @throws {RequiredError} */ addEventToCollection(slug: string, addEventToCollectionBody: AddEventToCollectionBody, options?: any): AxiosPromise { return localVarFp.addEventToCollection(slug, addEventToCollectionBody, options).then((request) => request(axios, basePath)); }, /** * Adds a verifier for an event. * @param {string} slug Slug * @param {string} verifierAddress User address to use as verifier * @param {CreateVerifierRequest} [createVerifierRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ addEventVerifier(slug: string, verifierAddress: string, createVerifierRequest?: CreateVerifierRequest, options?: any): AxiosPromise { return localVarFp.addEventVerifier(slug, verifierAddress, createVerifierRequest, options).then((request) => request(axios, basePath)); }, /** * Add a new manager address to an event collection * @param {string} slug * @param {AddManagerBody} addManagerBody * @param {*} [options] Override http request option. * @throws {RequiredError} */ addManagerToEventCollection(slug: string, addManagerBody: AddManagerBody, options?: any): AxiosPromise { return localVarFp.addManagerToEventCollection(slug, addManagerBody, options).then((request) => request(axios, basePath)); }, /** * List applications created the user. * @param {*} [options] Override http request option. * @throws {RequiredError} */ applications(options?: any): AxiosPromise { return localVarFp.applications(options).then((request) => request(axios, basePath)); }, /** * Approves users to attend an event. (does not airdrop!) * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {ApproveAttendeesRsvpRequest} approveAttendeesRsvpRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ approveAttendeesRsvp(network: number, lockAddress: string, approveAttendeesRsvpRequest: ApproveAttendeesRsvpRequest, options?: any): AxiosPromise { return localVarFp.approveAttendeesRsvp(network, lockAddress, approveAttendeesRsvpRequest, options).then((request) => request(axios, basePath)); }, /** * Approve a single event within an event collection. * @param {string} slug Slug of the event collection. * @param {ApproveEventBody} approveEventBody * @param {*} [options] Override http request option. * @throws {RequiredError} */ approveEvent(slug: string, approveEventBody: ApproveEventBody, options?: any): AxiosPromise { return localVarFp.approveEvent(slug, approveEventBody, options).then((request) => request(axios, basePath)); }, /** * Approves refunds for an event. * @param {string} slug Slug * @param {ApproveRefundsRequest} approveRefundsRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ approveRefunds(slug: string, approveRefundsRequest: ApproveRefundsRequest, options?: any): AxiosPromise { return localVarFp.approveRefunds(slug, approveRefundsRequest, options).then((request) => request(axios, basePath)); }, /** * Approves a user to attend an event. (does not airdrop!) * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {string} userAddress User address. * @param {*} [options] Override http request option. * @deprecated * @throws {RequiredError} */ approveRsvp(network: number, lockAddress: string, userAddress: string, options?: any): AxiosPromise { return localVarFp.approveRsvp(network, lockAddress, userAddress, options).then((request) => request(axios, basePath)); }, /** * Returns the merkle proof of an approved refund. * @param {string} slug Slug * @param {*} [options] Override http request option. * @throws {RequiredError} */ approvedRefunds(slug: string, options?: any): AxiosPromise { return localVarFp.approvedRefunds(slug, options).then((request) => request(axios, basePath)); }, /** * * @param {*} [options] Override http request option. * @throws {RequiredError} */ balance(options?: any): AxiosPromise<{ [key: string]: Balance200ResponseValue; }> { return localVarFp.balance(options).then((request) => request(axios, basePath)); }, /** * Bulk approve multiple events within an event collection. * @param {string} slug Slug of the event collection. * @param {BulkApproveEventsBody} bulkApproveEventsBody * @param {*} [options] Override http request option. * @throws {RequiredError} */ bulkApproveEvents(slug: string, bulkApproveEventsBody: BulkApproveEventsBody, options?: any): AxiosPromise> { return localVarFp.bulkApproveEvents(slug, bulkApproveEventsBody, options).then((request) => request(axios, basePath)); }, /** * Bulk remove multiple events from an event collection. * @param {string} slug Slug of the event collection. * @param {BulkRemoveEventsBody} bulkRemoveEventsBody * @param {*} [options] Override http request option. * @throws {RequiredError} */ bulkRemoveEvents(slug: string, bulkRemoveEventsBody: BulkRemoveEventsBody, options?: any): AxiosPromise { return localVarFp.bulkRemoveEvents(slug, bulkRemoveEventsBody, options).then((request) => request(axios, basePath)); }, /** * Cancel a fiat subscription. * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {string} keyId Key Id. * @param {*} [options] Override http request option. * @throws {RequiredError} */ cancelSubscription(network: number, lockAddress: string, keyId: string, options?: any): AxiosPromise { return localVarFp.cancelSubscription(network, lockAddress, keyId, options).then((request) => request(axios, basePath)); }, /** * Capture a purchase * @param {CapturePurchaseRequest} [capturePurchaseRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ capturePurchase(capturePurchaseRequest?: CapturePurchaseRequest, options?: any): AxiosPromise { return localVarFp.capturePurchase(capturePurchaseRequest, options).then((request) => request(axios, basePath)); }, /** * Check if claim is possible for a given purchase * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {CheckClaimRequest} [checkClaimRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ checkClaim(network: number, lockAddress: string, checkClaimRequest?: CheckClaimRequest, options?: any): AxiosPromise { return localVarFp.checkClaim(network, lockAddress, checkClaimRequest, options).then((request) => request(axios, basePath)); }, /** * Mark an event ticket as checked in. * @param {string} slug Slug * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {string} keyId Key Id. * @param {*} [options] Override http request option. * @throws {RequiredError} */ checkEventTicket(slug: string, network: number, lockAddress: string, keyId: string, options?: any): AxiosPromise { return localVarFp.checkEventTicket(slug, network, lockAddress, keyId, options).then((request) => request(axios, basePath)); }, /** * Check if a user exists in Privy by email or wallet address * @param {PrivyUserCheckBody} privyUserCheckBody * @param {*} [options] Override http request option. * @throws {RequiredError} */ checkPrivyUser(privyUserCheckBody: PrivyUserCheckBody, options?: any): AxiosPromise { return localVarFp.checkPrivyUser(privyUserCheckBody, options).then((request) => request(axios, basePath)); }, /** * Mark a lock ticket as checked in. * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {string} keyId Key Id. * @param {*} [options] Override http request option. * @deprecated * @throws {RequiredError} */ checkTicket(network: number, lockAddress: string, keyId: string, options?: any): AxiosPromise { return localVarFp.checkTicket(network, lockAddress, keyId, options).then((request) => request(axios, basePath)); }, /** * Claim a membership key for a lock. If not authenticated, requires an email in the body. * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {string} captcha Recaptcha value to pass. * @param {ClaimRequest} claimRequest * @param {string} [recipient] Recipient address for key * @param {*} [options] Override http request option. * @throws {RequiredError} */ claim(network: number, lockAddress: string, captcha: string, claimRequest: ClaimRequest, recipient?: string, options?: any): AxiosPromise { return localVarFp.claim(network, lockAddress, captcha, claimRequest, recipient, options).then((request) => request(axios, basePath)); }, /** * Connect a stripe account to a lock * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {ConnectStripeAccountRequest} [connectStripeAccountRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ connectStripeAccount(network: number, lockAddress: string, connectStripeAccountRequest?: ConnectStripeAccountRequest, options?: any): AxiosPromise { return localVarFp.connectStripeAccount(network, lockAddress, connectStripeAccountRequest, options).then((request) => request(axios, basePath)); }, /** * Create application associated with user wallet. * @param {ApplicationBody} applicationBody * @param {*} [options] Override http request option. * @throws {RequiredError} */ createApplication(applicationBody: ApplicationBody, options?: any): AxiosPromise { return localVarFp.createApplication(applicationBody, options).then((request) => request(axios, basePath)); }, /** * Request the creation of a ZIP file containing all receipts for a lock. * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {*} [options] Override http request option. * @throws {RequiredError} */ createDownloadReceiptsRequest(network: number, lockAddress: string, options?: any): AxiosPromise { return localVarFp.createDownloadReceiptsRequest(network, lockAddress, options).then((request) => request(axios, basePath)); }, /** * Create a new event collection * @param {EventCollectionBody} eventCollectionBody * @param {*} [options] Override http request option. * @throws {RequiredError} */ createEventCollection(eventCollectionBody: EventCollectionBody, options?: any): AxiosPromise { return localVarFp.createEventCollection(eventCollectionBody, options).then((request) => request(axios, basePath)); }, /** * * @param {number} network Network id. * @param {string} captcha Recaptcha value to pass. * @param {LockContractOptions} lockContractOptions * @param {*} [options] Override http request option. * @throws {RequiredError} */ createLockContract(network: number, captcha: string, lockContractOptions: LockContractOptions, options?: any): AxiosPromise { return localVarFp.createLockContract(network, captcha, lockContractOptions, options).then((request) => request(axios, basePath)); }, /** * Create a transfer code to transfer an airdropped key to an email address. * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {string} keyId Key Id. * @param {*} [options] Override http request option. * @throws {RequiredError} */ createTransferCode(network: number, lockAddress: string, keyId: string, options?: any): AxiosPromise { return localVarFp.createTransferCode(network, lockAddress, keyId, options).then((request) => request(axios, basePath)); }, /** * Create verifier. (deprecated in favor of addEventVerifier) * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {string} verifierAddress User address to use as verifier * @param {CreateVerifierRequest} [createVerifierRequest] * @param {*} [options] Override http request option. * @deprecated * @throws {RequiredError} */ createVerifier(network: number, lockAddress: string, verifierAddress: string, createVerifierRequest?: CreateVerifierRequest, options?: any): AxiosPromise { return localVarFp.createVerifier(network, lockAddress, verifierAddress, createVerifierRequest, options).then((request) => request(axios, basePath)); }, /** * Delete application by id. * @param {string} id Application id. * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteApplication(id: string, options?: any): AxiosPromise { return localVarFp.deleteApplication(id, options).then((request) => request(axios, basePath)); }, /** * Delete a checkout config * @param {string} id The id of the checkout config * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteCheckoutConfig(id: string, options?: any): AxiosPromise { return localVarFp.deleteCheckoutConfig(id, options).then((request) => request(axios, basePath)); }, /** * Removes a verifier for an event. * @param {string} slug Slug * @param {string} verifierAddress User address to use as verifier * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteEventVerifier(slug: string, verifierAddress: string, options?: any): AxiosPromise { return localVarFp.deleteEventVerifier(slug, verifierAddress, options).then((request) => request(axios, basePath)); }, /** * Remove verifier. (deprecated in favor of deleteEventVerifier) * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {string} verifierAddress User address to use as verifier * @param {*} [options] Override http request option. * @deprecated * @throws {RequiredError} */ deleteVerifier(network: number, lockAddress: string, verifierAddress: string, options?: any): AxiosPromise { return localVarFp.deleteVerifier(network, lockAddress, verifierAddress, options).then((request) => request(axios, basePath)); }, /** * Denies users to attend an event. * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {ApproveAttendeesRsvpRequest} approveAttendeesRsvpRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ denyAttendeesRsvp(network: number, lockAddress: string, approveAttendeesRsvpRequest: ApproveAttendeesRsvpRequest, options?: any): AxiosPromise { return localVarFp.denyAttendeesRsvp(network, lockAddress, approveAttendeesRsvpRequest, options).then((request) => request(axios, basePath)); }, /** * Denies a user to attend an event. (does not airdrop!) * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {string} userAddress User address. * @param {*} [options] Override http request option. * @deprecated * @throws {RequiredError} */ denyRsvp(network: number, lockAddress: string, userAddress: string, options?: any): AxiosPromise { return localVarFp.denyRsvp(network, lockAddress, userAddress, options).then((request) => request(axios, basePath)); }, /** * Disconnect stripe account. * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {*} [options] Override http request option. * @throws {RequiredError} */ disconnectStripe(network: number, lockAddress: string, options?: any): AxiosPromise { return localVarFp.disconnectStripe(network, lockAddress, options).then((request) => request(axios, basePath)); }, /** * Download the ZIP file containing all receipts for a lock. * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {*} [options] Override http request option. * @throws {RequiredError} */ downloadReceipts(network: number, lockAddress: string, options?: any): AxiosPromise { return localVarFp.downloadReceipts(network, lockAddress, options).then((request) => request(axios, basePath)); }, /** * Ejects a user given their public key. In the case of failure, a rejected promise is returned to the caller. * @param {string} publicKey * @param {{ [key: string]: any; }} requestBody Structured data used to generate the signature * @param {*} [options] Override http request option. * @throws {RequiredError} */ ejectUser(publicKey: string, requestBody: { [key: string]: any; }, options?: any): AxiosPromise { return localVarFp.ejectUser(publicKey, requestBody, options).then((request) => request(axios, basePath)); }, /** * Send QR code by email. * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {string} keyId Key Id. * @param {*} [options] Override http request option. * @throws {RequiredError} */ emailTicket(network: number, lockAddress: string, keyId: string, options?: any): AxiosPromise { return localVarFp.emailTicket(network, lockAddress, keyId, options).then((request) => request(axios, basePath)); }, /** * List of verifiers for an event. * @param {string} slug Slug * @param {*} [options] Override http request option. * @throws {RequiredError} */ eventVerifiers(slug: string, options?: any): AxiosPromise { return localVarFp.eventVerifiers(slug, options).then((request) => request(axios, basePath)); }, /** * Starts Job process to get all the keys for the given lock * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {string} query Query you want to search for. * @param {string} filterKey The key you want to search on. * @param {string} [expiration] Expiration time * @param {string} [approval] Approval status (relevant for offchain approvals on events for example) * @param {*} [options] Override http request option. * @throws {RequiredError} */ exportKeys(network: number, lockAddress: string, query: string, filterKey: string, expiration?: string, approval?: string, options?: any): AxiosPromise { return localVarFp.exportKeys(network, lockAddress, query, filterKey, expiration, approval, options).then((request) => request(axios, basePath)); }, /** * Generate and return an Apple Wallet pass for a specified key associated with a lock. * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {string} keyId Key Id. * @param {*} [options] Override http request option. * @throws {RequiredError} */ generateAppleWalletPass(network: number, lockAddress: string, keyId: string, options?: any): AxiosPromise { return localVarFp.generateAppleWalletPass(network, lockAddress, keyId, options).then((request) => request(axios, basePath)); }, /** * Generate certificate for specific key * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {string} keyId Key Id. * @param {*} [options] Override http request option. * @throws {RequiredError} */ generateCertificate(network: number, lockAddress: string, keyId: string, options?: any): AxiosPromise { return localVarFp.generateCertificate(network, lockAddress, keyId, options).then((request) => request(axios, basePath)); }, /** * Generate and return a Google Wallet pass for a specified key associated with a lock. * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {string} keyId Key Id. * @param {*} [options] Override http request option. * @throws {RequiredError} */ generateGoogleWalletPass(network: number, lockAddress: string, keyId: string, options?: any): AxiosPromise { return localVarFp.generateGoogleWalletPass(network, lockAddress, keyId, options).then((request) => request(axios, basePath)); }, /** * Generate a ticket for a key. * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {string} keyId Key Id. * @param {*} [options] Override http request option. * @throws {RequiredError} */ generateTicket(network: number, lockAddress: string, keyId: string, options?: any): AxiosPromise { return localVarFp.generateTicket(network, lockAddress, keyId, options).then((request) => request(axios, basePath)); }, /** * Get the price breakdown for recipients & total charges with fees for a specific lock * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {Array} purchaseData The purchase data passed to the purchase function * @param {Array} recipients The recipients passed to the purchase function * @param {*} [options] Override http request option. * @throws {RequiredError} */ getChargesForLock(network: number, lockAddress: string, purchaseData: Array, recipients: Array, options?: any): AxiosPromise { return localVarFp.getChargesForLock(network, lockAddress, purchaseData, recipients, options).then((request) => request(axios, basePath)); }, /** * * @param {string} id The id of the checkout config * @param {*} [options] Override http request option. * @throws {RequiredError} */ getCheckoutConfig(id: string, options?: any): AxiosPromise { return localVarFp.getCheckoutConfig(id, options).then((request) => request(axios, basePath)); }, /** * Get custom email content for a specific template and lock details * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {string} template Template id for email * @param {*} [options] Override http request option. * @throws {RequiredError} */ getCustomEmailContent(network: number, lockAddress: string, template: string, options?: any): AxiosPromise { return localVarFp.getCustomEmailContent(network, lockAddress, template, options).then((request) => request(axios, basePath)); }, /** * Retrieves data for recipients and captcha. * @param {Array} recipients * @param {string} captchaValue * @param {string} lockAddress * @param {number} network * @param {*} [options] Override http request option. * @throws {RequiredError} */ getDataForRecipientsAndCaptcha(recipients: Array, captchaValue: string, lockAddress: string, network: number, options?: any): AxiosPromise { return localVarFp.getDataForRecipientsAndCaptcha(recipients, captchaValue, lockAddress, network, options).then((request) => request(axios, basePath)); }, /** * Get the data for recipients and gitcoin passport. This is to be used in conjunction with the Gitcoin passport scorer. * @param {number} network The network the lock is on * @param {string} [lockAddress] The address of the lock * @param {Array} [recipients] The list of recipients for the purchase * @param {*} [options] Override http request option. * @throws {RequiredError} */ getDataForRecipientsAndGitcoinPassport(network: number, lockAddress?: string, recipients?: Array, options?: any): AxiosPromise { return localVarFp.getDataForRecipientsAndGitcoinPassport(network, lockAddress, recipients, options).then((request) => request(axios, basePath)); }, /** * Get the data for recipients and guild. This is to be used in conjunction with the Guild * @param {number} network The network the lock is on * @param {string} [lockAddress] The address of the lock * @param {Array} [recipients] The list of recipients for the purchase * @param {*} [options] Override http request option. * @throws {RequiredError} */ getDataForRecipientsAndGuild(network: number, lockAddress?: string, recipients?: Array, options?: any): AxiosPromise { return localVarFp.getDataForRecipientsAndGuild(network, lockAddress, recipients, options).then((request) => request(axios, basePath)); }, /** * Retrieves an event based on its slug. The event data including status and transactionHash can be accessed through the `data` property. * @param {string} slug Slug * @param {*} [options] Override http request option. * @throws {RequiredError} */ getEvent(slug: string, options?: any): AxiosPromise { return localVarFp.getEvent(slug, options).then((request) => request(axios, basePath)); }, /** * Get details of an event collection * @param {string} slug * @param {*} [options] Override http request option. * @throws {RequiredError} */ getEventCollection(slug: string, options?: any): AxiosPromise { return localVarFp.getEventCollection(slug, options).then((request) => request(axios, basePath)); }, /** * Get the event details from lock * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {*} [options] Override http request option. * @deprecated * @throws {RequiredError} */ getEventDetails(network: number, lockAddress: string, options?: any): AxiosPromise { return localVarFp.getEventDetails(network, lockAddress, options).then((request) => request(axios, basePath)); }, /** * get a ticket for a key by event. * @param {string} slug Slug * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {string} keyId Key Id. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getEventTicket(slug: string, network: number, lockAddress: string, keyId: string, options?: any): AxiosPromise { return localVarFp.getEventTicket(slug, network, lockAddress, keyId, options).then((request) => request(axios, basePath)); }, /** * Get events in a collection * @param {string} slug * @param {number} [page] * @param {number} [pageSize] * @param {*} [options] Override http request option. * @throws {RequiredError} */ getEventsInCollection(slug: string, page?: number, pageSize?: number, options?: any): AxiosPromise { return localVarFp.getEventsInCollection(slug, page, pageSize, options).then((request) => request(axios, basePath)); }, /** * Get job result by job id * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {string} jobId Id of the exported job. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getExportedKeys(network: number, lockAddress: string, jobId: string, options?: any): AxiosPromise { return localVarFp.getExportedKeys(network, lockAddress, jobId, options).then((request) => request(axios, basePath)); }, /** * Get saved lock settings * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getLockSettings(network: number, lockAddress: string, options?: any): AxiosPromise { return localVarFp.getLockSettings(network, lockAddress, options).then((request) => request(axios, basePath)); }, /** * Get lock setting by slug * @param {string} slug Slug * @param {*} [options] Override http request option. * @throws {RequiredError} */ getLockSettingsBySlug(slug: string, options?: any): AxiosPromise { return localVarFp.getLockSettingsBySlug(slug, options).then((request) => request(axios, basePath)); }, /** * Returns Stripe connection details * @param {string} lockAddress Lock address. * @param {number} chain Lock network * @param {*} [options] Override http request option. * @throws {RequiredError} */ getLockStripeConnectionDetails(lockAddress: string, chain: number, options?: any): AxiosPromise { return localVarFp.getLockStripeConnectionDetails(lockAddress, chain, options).then((request) => request(axios, basePath)); }, /** * Get receipt details * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {string} hash Hash * @param {*} [options] Override http request option. * @throws {RequiredError} */ getReceipt(network: number, lockAddress: string, hash: string, options?: any): AxiosPromise { return localVarFp.getReceipt(network, lockAddress, hash, options).then((request) => request(axios, basePath)); }, /** * Get all receipts for a lock * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getReceipts(network: number, lockAddress: string, options?: any): AxiosPromise { return localVarFp.getReceipts(network, lockAddress, options).then((request) => request(axios, basePath)); }, /** * Get supplier details * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getReceiptsBase(network: number, lockAddress: string, options?: any): AxiosPromise { return localVarFp.getReceiptsBase(network, lockAddress, options).then((request) => request(axios, basePath)); }, /** * Retrieve the status of receipt generation for a lock. * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getReceiptsStatus(network: number, lockAddress: string, options?: any): AxiosPromise { return localVarFp.getReceiptsStatus(network, lockAddress, options).then((request) => request(axios, basePath)); }, /** * Lists the locks connected to Stripe for a user * @param {*} [options] Override http request option. * @throws {RequiredError} */ getStripeConnections(options?: any): AxiosPromise { return localVarFp.getStripeConnections(options).then((request) => request(axios, basePath)); }, /** * Get an active subscription associated with the key. It can be fiat or crypto. * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {string} keyId Key Id. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getSubscription(network: number, lockAddress: string, keyId: string, options?: any): AxiosPromise { return localVarFp.getSubscription(network, lockAddress, keyId, options).then((request) => request(axios, basePath)); }, /** * get a ticket for a key by lock. * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {string} keyId Key Id. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getTicket(network: number, lockAddress: string, keyId: string, options?: any): AxiosPromise { return localVarFp.getTicket(network, lockAddress, keyId, options).then((request) => request(axios, basePath)); }, /** * Get unapproved events for a collection * @param {string} slug * @param {*} [options] Override http request option. * @throws {RequiredError} */ getUnapprovedEventsForCollection(slug: string, options?: any): AxiosPromise { return localVarFp.getUnapprovedEventsForCollection(slug, options).then((request) => request(axios, basePath)); }, /** * Gets User account type by email. * @param {string} emailAddress * @param {*} [options] Override http request option. * @throws {RequiredError} */ getUserAccountType(emailAddress: string, options?: any): AxiosPromise { return localVarFp.getUserAccountType(emailAddress, options).then((request) => request(axios, basePath)); }, /** * get user metadata for a lock. * @param {string} lockAddress Lock address. * @param {string} userAddress User address. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getUserMetadata(lockAddress: string, userAddress: string, options?: any): AxiosPromise { return localVarFp.getUserMetadata(lockAddress, userAddress, options).then((request) => request(axios, basePath)); }, /** * Given a user\'s email address, retrieves their private key. In the case of failure a rejected promise is returned to the caller. * @param {string} emailAddress * @param {*} [options] Override http request option. * @throws {RequiredError} */ getUserPrivateKey(emailAddress: string, options?: any): AxiosPromise { return localVarFp.getUserPrivateKey(emailAddress, options).then((request) => request(axios, basePath)); }, /** * Given a user\'s email address, retrieves their recovery phrase. In the case of failure a rejected promise is returned to the caller. * @param {string} emailAddress * @param {*} [options] Override http request option. * @throws {RequiredError} */ getUserRecoveryPhrase(emailAddress: string, options?: any): AxiosPromise { return localVarFp.getUserRecoveryPhrase(emailAddress, options).then((request) => request(axios, basePath)); }, /** * Gets Coinbase WAAS token for user by email and selected provider. * @param {string} captcha Recaptcha value to pass. * @param {string} emailAddress * @param {string} selectedProvider * @param {GetWaasTokenRequest} getWaasTokenRequest JSON object containing sign in token * @param {*} [options] Override http request option. * @throws {RequiredError} */ getWaasToken(captcha: string, emailAddress: string, selectedProvider: string, getWaasTokenRequest: GetWaasTokenRequest, options?: any): AxiosPromise { return localVarFp.getWaasToken(captcha, emailAddress, selectedProvider, getWaasTokenRequest, options).then((request) => request(axios, basePath)); }, /** * Returns if credit card payment are enable for a lock * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {*} [options] Override http request option. * @throws {RequiredError} */ isCardPaymentEnabledForLock(network: number, lockAddress: string, options?: any): AxiosPromise { return localVarFp.isCardPaymentEnabledForLock(network, lockAddress, options).then((request) => request(axios, basePath)); }, /** * Get key and user metadata. * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {string} keyId Key Id. * @param {*} [options] Override http request option. * @throws {RequiredError} */ keyMetadata(network: number, lockAddress: string, keyId: string, options?: any): AxiosPromise { return localVarFp.keyMetadata(network, lockAddress, keyId, options).then((request) => request(axios, basePath)); }, /** * List of lock keys by network with additional metadata if the caller is the lockManager (deprecated, use keys-by-page) * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {string} query Query you want to search for. * @param {string} filterKey The key you want to search on. * @param {string} [expiration] Expiration time * @param {string} [approval] Approval status (relevant for offchain approvals on events for example) * @param {number} [page] Page number when paginating * @param {number} [max] Maximum number of items to get by page * @param {*} [options] Override http request option. * @deprecated * @throws {RequiredError} */ keys(network: number, lockAddress: string, query: string, filterKey: string, expiration?: string, approval?: string, page?: number, max?: number, options?: any): AxiosPromise> { return localVarFp.keys(network, lockAddress, query, filterKey, expiration, approval, page, max, options).then((request) => request(axios, basePath)); }, /** * List of lock keys by network with additional metadata if the caller is the lockManager * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {string} query Query you want to search for. * @param {string} filterKey The key you want to search on. * @param {string} [expiration] Expiration time * @param {string} [approval] Approval status (relevant for offchain approvals on events for example) * @param {number} [page] Page number when paginating * @param {number} [max] Maximum number of items to get by page * @param {*} [options] Override http request option. * @throws {RequiredError} */ keysByPage(network: number, lockAddress: string, query: string, filterKey: string, expiration?: string, approval?: string, page?: number, max?: number, options?: any): AxiosPromise { return localVarFp.keysByPage(network, lockAddress, query, filterKey, expiration, approval, page, max, options).then((request) => request(axios, basePath)); }, /** * A list of all checkout configs created by the user * @param {*} [options] Override http request option. * @throws {RequiredError} */ listCheckoutConfigs(options?: any): AxiosPromise { return localVarFp.listCheckoutConfigs(options).then((request) => request(axios, basePath)); }, /** * List payment methods for user. * @param {*} [options] Override http request option. * @throws {RequiredError} */ listPaymentMethods(options?: any): AxiosPromise { return localVarFp.listPaymentMethods(options).then((request) => request(axios, basePath)); }, /** * Get metadata for lock address. * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {*} [options] Override http request option. * @throws {RequiredError} */ lockMetadata(network: number, lockAddress: string, options?: any): AxiosPromise<{ [key: string]: any; }> { return localVarFp.lockMetadata(network, lockAddress, options).then((request) => request(axios, basePath)); }, /** * Login as a user using Sign in with Ethereum message signed by the wallet address. * @param {LoginRequest} loginRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ login(loginRequest: LoginRequest, options?: any): AxiosPromise { return localVarFp.login(loginRequest, options).then((request) => request(axios, basePath)); }, /** * Verify an access token using Privy\'s library and authenticate the user * @param {LoginWithPrivyRequest} loginWithPrivyRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ loginWithPrivy(loginWithPrivyRequest: LoginWithPrivyRequest, options?: any): AxiosPromise { return localVarFp.loginWithPrivy(loginWithPrivyRequest, options).then((request) => request(axios, basePath)); }, /** * Logout from locksmith. This will invalidate all your session tokens. * @param {*} [options] Override http request option. * @throws {RequiredError} */ logout(options?: any): AxiosPromise { return localVarFp.logout(options).then((request) => request(axios, basePath)); }, /** * Provide a unique nonce for using in sign in with ethereum * @param {*} [options] Override http request option. * @throws {RequiredError} */ nonce(options?: any): AxiosPromise { return localVarFp.nonce(options).then((request) => request(axios, basePath)); }, /** * * @param {number} network Network id. * @param {number} [amount] Amount of tokens you want to get the price for in USD. * @param {string} [address] The erc20 address you want to get the price for. If nothing is passed, the API will return the native token price. * @param {*} [options] Override http request option. * @throws {RequiredError} */ price(network: number, amount?: number, address?: string, options?: any): AxiosPromise { return localVarFp.price(network, amount, address, options).then((request) => request(axios, basePath)); }, /** * Create purchase intent for stripe. * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {PurchaseRequest} purchaseRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ purchase(network: number, lockAddress: string, purchaseRequest: PurchaseRequest, options?: any): AxiosPromise { return localVarFp.purchase(network, lockAddress, purchaseRequest, options).then((request) => request(axios, basePath)); }, /** * resubscribe emails from lock * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {*} [options] Override http request option. * @throws {RequiredError} */ reSubscribeEmail(network: number, lockAddress: string, options?: any): AxiosPromise { return localVarFp.reSubscribeEmail(network, lockAddress, options).then((request) => request(axios, basePath)); }, /** * Remove a single event from an event collection. * @param {string} slug Slug of the event collection. * @param {RemoveEventBody} removeEventBody * @param {*} [options] Override http request option. * @throws {RequiredError} */ removeEventFromCollection(slug: string, removeEventBody: RemoveEventBody, options?: any): AxiosPromise { return localVarFp.removeEventFromCollection(slug, removeEventBody, options).then((request) => request(axios, basePath)); }, /** * Remove a manager address from an event collection * @param {string} slug * @param {RemoveManagerBody} removeManagerBody * @param {*} [options] Override http request option. * @throws {RequiredError} */ removeManagerFromEventCollection(slug: string, removeManagerBody: RemoveManagerBody, options?: any): AxiosPromise { return localVarFp.removeManagerFromEventCollection(slug, removeManagerBody, options).then((request) => request(axios, basePath)); }, /** * Remove all payment methods for a user * @param {*} [options] Override http request option. * @throws {RequiredError} */ removePaymentMethods(options?: any): AxiosPromise { return localVarFp.removePaymentMethods(options).then((request) => request(axios, basePath)); }, /** * Invalidate a session. * @param {*} [options] Override http request option. * @throws {RequiredError} */ revoke(options?: any): AxiosPromise { return localVarFp.revoke(options).then((request) => request(axios, basePath)); }, /** * User applies to attend an event. * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {string} captcha Recaptcha value to pass. * @param {RsvpRequest} [rsvpRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ rsvp(network: number, lockAddress: string, captcha: string, rsvpRequest?: RsvpRequest, options?: any): AxiosPromise { return localVarFp.rsvp(network, lockAddress, captcha, rsvpRequest, options).then((request) => request(axios, basePath)); }, /** * Save custom email content for a specif lock. * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {string} template Template id for email * @param {*} [options] Override http request option. * @throws {RequiredError} */ saveCustomEmailContent(network: number, lockAddress: string, template: string, options?: any): AxiosPromise { return localVarFp.saveCustomEmailContent(network, lockAddress, template, options).then((request) => request(axios, basePath)); }, /** * Save event data * @param {SaveEventDataRequest} saveEventDataRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ saveEventData(saveEventDataRequest: SaveEventDataRequest, options?: any): AxiosPromise { return localVarFp.saveEventData(saveEventDataRequest, options).then((request) => request(axios, basePath)); }, /** * Save lock settings * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {LockSettings} [lockSettings] * @param {*} [options] Override http request option. * @throws {RequiredError} */ saveLockSetting(network: number, lockAddress: string, lockSettings?: LockSettings, options?: any): AxiosPromise { return localVarFp.saveLockSetting(network, lockAddress, lockSettings, options).then((request) => request(axios, basePath)); }, /** * Saves a merkle tree from either a list of addresses or a list of [address, amount] tuples. * @param {Array} saveMerkleTreeRequestInner * @param {*} [options] Override http request option. * @throws {RequiredError} */ saveMerkleTree(saveMerkleTreeRequestInner: Array, options?: any): AxiosPromise { return localVarFp.saveMerkleTree(saveMerkleTreeRequestInner, options).then((request) => request(axios, basePath)); }, /** * Create purchaser details * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {string} hash Hash * @param {*} [options] Override http request option. * @throws {RequiredError} */ saveReceipt(network: number, lockAddress: string, hash: string, options?: any): AxiosPromise { return localVarFp.saveReceipt(network, lockAddress, hash, options).then((request) => request(axios, basePath)); }, /** * Create supplier details. * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {*} [options] Override http request option. * @throws {RequiredError} */ saveReceiptsBase(network: number, lockAddress: string, options?: any): AxiosPromise { return localVarFp.saveReceiptsBase(network, lockAddress, options).then((request) => request(axios, basePath)); }, /** * Send custom email to recipients * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {SendCustomEmailRequest} [sendCustomEmailRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ sendCustomEmail(network: number, lockAddress: string, sendCustomEmailRequest?: SendCustomEmailRequest, options?: any): AxiosPromise { return localVarFp.sendCustomEmail(network, lockAddress, sendCustomEmailRequest, options).then((request) => request(axios, basePath)); }, /** * Send event invites to a list of recipients * @param {string} slug Slug * @param {SendEventInvitesRequest} [sendEventInvitesRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ sendEventInvites(slug: string, sendEventInvitesRequest?: SendEventInvitesRequest, options?: any): AxiosPromise { return localVarFp.sendEventInvites(slug, sendEventInvitesRequest, options).then((request) => request(axios, basePath)); }, /** * Sends a verification code to the user\'s email if the current code is expired or does not exist. * @param {string} captcha Recaptcha value to pass. * @param {string} emailAddress * @param {*} [options] Override http request option. * @throws {RequiredError} */ sendVerificationCode(captcha: string, emailAddress: string, options?: any): AxiosPromise { return localVarFp.sendVerificationCode(captcha, emailAddress, options).then((request) => request(axios, basePath)); }, /** * Setup a payment method for user. * @param {*} [options] Override http request option. * @throws {RequiredError} */ setupPayment(options?: any): AxiosPromise { return localVarFp.setupPayment(options).then((request) => request(axios, basePath)); }, /** * Generate signature to prove validity of token. * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {string} keyId Key Id. * @param {*} [options] Override http request option. * @throws {RequiredError} */ signTicket(network: number, lockAddress: string, keyId: string, options?: any): AxiosPromise { return localVarFp.signTicket(network, lockAddress, keyId, options).then((request) => request(axios, basePath)); }, /** * Get QR code for the key. * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {string} keyId Key Id. * @param {*} [options] Override http request option. * @throws {RequiredError} */ ticketQRCode(network: number, lockAddress: string, keyId: string, options?: any): AxiosPromise { return localVarFp.ticketQRCode(network, lockAddress, keyId, options).then((request) => request(axios, basePath)); }, /** * Get the verification URL for the key. * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {string} keyId Key Id. * @param {*} [options] Override http request option. * @throws {RequiredError} */ ticketVerificationUrl(network: number, lockAddress: string, keyId: string, options?: any): AxiosPromise { return localVarFp.ticketVerificationUrl(network, lockAddress, keyId, options).then((request) => request(axios, basePath)); }, /** * Finalize the transfer of a key to a recipient. This is to copy over any locksmith related data to the recipient\'s account. * @param {TransferDoneRequest} [transferDoneRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ transferDone(transferDoneRequest?: TransferDoneRequest, options?: any): AxiosPromise { return localVarFp.transferDone(transferDoneRequest, options).then((request) => request(axios, basePath)); }, /** * Unsubscribe email from lock * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {*} [options] Override http request option. * @throws {RequiredError} */ unsubscribeEmail(network: number, lockAddress: string, options?: any): AxiosPromise { return localVarFp.unsubscribeEmail(network, lockAddress, options).then((request) => request(axios, basePath)); }, /** * Update application by id. * @param {string} id Application id. * @param {ApplicationBody} [applicationBody] * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateApplication(id: string, applicationBody?: ApplicationBody, options?: any): AxiosPromise { return localVarFp.updateApplication(id, applicationBody, options).then((request) => request(axios, basePath)); }, /** * A new checkout config is created or updated if it already exists * @param {string} id This is optional. If you don\'t pass an ID, a new config will be created. If you pass an ID, the config will be created. * @param {UpdateCheckoutConfigRequest} [updateCheckoutConfigRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateCheckoutConfig(id: string, updateCheckoutConfigRequest?: UpdateCheckoutConfigRequest, options?: any): AxiosPromise { return localVarFp.updateCheckoutConfig(id, updateCheckoutConfigRequest, options).then((request) => request(axios, basePath)); }, /** * Update an existing event collection * @param {string} slug * @param {EventCollectionBody} eventCollectionBody * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateEventCollection(slug: string, eventCollectionBody: EventCollectionBody, options?: any): AxiosPromise { return localVarFp.updateEventCollection(slug, eventCollectionBody, options).then((request) => request(axios, basePath)); }, /** * Update event data * @param {string} slug * @param {UpdateEventDataRequest} [updateEventDataRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateEventData(slug: string, updateEventDataRequest?: UpdateEventDataRequest, options?: any): AxiosPromise { return localVarFp.updateEventData(slug, updateEventDataRequest, options).then((request) => request(axios, basePath)); }, /** * Update or create metadata for key. * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {string} keyId Key Id. * @param {UpdateLockMetadataRequest} updateLockMetadataRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateKeyMetadata(network: number, lockAddress: string, keyId: string, updateLockMetadataRequest: UpdateLockMetadataRequest, options?: any): AxiosPromise<{ [key: string]: any; }> { return localVarFp.updateKeyMetadata(network, lockAddress, keyId, updateLockMetadataRequest, options).then((request) => request(axios, basePath)); }, /** * Update or create metadata for lock address. * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {UpdateLockMetadataRequest} updateLockMetadataRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateLockMetadata(network: number, lockAddress: string, updateLockMetadataRequest: UpdateLockMetadataRequest, options?: any): AxiosPromise<{ [key: string]: any; }> { return localVarFp.updateLockMetadata(network, lockAddress, updateLockMetadataRequest, options).then((request) => request(axios, basePath)); }, /** * Updates a user\'s private key, using their email address as key. In the case of failure a rejected promise is returned to the caller. * @param {string} emailAddress * @param {UpdateUserEncryptedPrivateKeyRequest} updateUserEncryptedPrivateKeyRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateUserEncryptedPrivateKey(emailAddress: string, updateUserEncryptedPrivateKeyRequest: UpdateUserEncryptedPrivateKeyRequest, options?: any): AxiosPromise { return localVarFp.updateUserEncryptedPrivateKey(emailAddress, updateUserEncryptedPrivateKeyRequest, options).then((request) => request(axios, basePath)); }, /** * Update or create user metadata for lock. * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {string} userAddress User address. * @param {UpdateUserMetadataRequest} updateUserMetadataRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateUserMetadata(network: number, lockAddress: string, userAddress: string, updateUserMetadataRequest: UpdateUserMetadataRequest, options?: any): AxiosPromise<{ [key: string]: any; }> { return localVarFp.updateUserMetadata(network, lockAddress, userAddress, updateUserMetadataRequest, options).then((request) => request(axios, basePath)); }, /** * Update or create user metadata for lock. * @param {UpdateUsersMetadataRequest} updateUsersMetadataRequest users array containing user metadata. * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateUsersMetadata(updateUsersMetadataRequest: UpdateUsersMetadataRequest, options?: any): AxiosPromise { return localVarFp.updateUsersMetadata(updateUsersMetadataRequest, options).then((request) => request(axios, basePath)); }, /** * Upload images to locksmith * @param {Array} [images] * @param {*} [options] Override http request option. * @throws {RequiredError} */ uploadImages(images?: Array, options?: any): AxiosPromise { return localVarFp.uploadImages(images, options).then((request) => request(axios, basePath)); }, /** * Get user details. * @param {*} [options] Override http request option. * @throws {RequiredError} */ user(options?: any): AxiosPromise { return localVarFp.user(options).then((request) => request(axios, basePath)); }, /** * Check if an address is a verifier of the lock. (deprecated in favor of eventVerifier) * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {string} verifierAddress User address to use as verifier * @param {*} [options] Override http request option. * @deprecated * @throws {RequiredError} */ verifier(network: number, lockAddress: string, verifierAddress: string, options?: any): AxiosPromise { return localVarFp.verifier(network, lockAddress, verifierAddress, options).then((request) => request(axios, basePath)); }, /** * List of verifiers for the lock address. (deprecated in favor of eventVerifiers) * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {*} [options] Override http request option. * @deprecated * @throws {RequiredError} */ verifiers(network: number, lockAddress: string, options?: any): AxiosPromise { return localVarFp.verifiers(network, lockAddress, options).then((request) => request(axios, basePath)); }, /** * Verifies the email code sent to the users email address. * @param {string} emailAddress * @param {VerifyEmailCodeRequest} verifyEmailCodeRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ verifyEmailCode(emailAddress: string, verifyEmailCodeRequest: VerifyEmailCodeRequest, options?: any): AxiosPromise { return localVarFp.verifyEmailCode(emailAddress, verifyEmailCodeRequest, options).then((request) => request(axios, basePath)); }, }; }; /** * DefaultApi - object-oriented interface * @export * @class DefaultApi * @extends {BaseAPI} */ export class DefaultApi extends BaseAPI { /** * Add an event to a collection * @param {string} slug * @param {AddEventToCollectionBody} addEventToCollectionBody * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public addEventToCollection(slug: string, addEventToCollectionBody: AddEventToCollectionBody, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration).addEventToCollection(slug, addEventToCollectionBody, options).then((request) => request(this.axios, this.basePath)); } /** * Adds a verifier for an event. * @param {string} slug Slug * @param {string} verifierAddress User address to use as verifier * @param {CreateVerifierRequest} [createVerifierRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public addEventVerifier(slug: string, verifierAddress: string, createVerifierRequest?: CreateVerifierRequest, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration).addEventVerifier(slug, verifierAddress, createVerifierRequest, options).then((request) => request(this.axios, this.basePath)); } /** * Add a new manager address to an event collection * @param {string} slug * @param {AddManagerBody} addManagerBody * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public addManagerToEventCollection(slug: string, addManagerBody: AddManagerBody, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration).addManagerToEventCollection(slug, addManagerBody, options).then((request) => request(this.axios, this.basePath)); } /** * List applications created the user. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public applications(options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration).applications(options).then((request) => request(this.axios, this.basePath)); } /** * Approves users to attend an event. (does not airdrop!) * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {ApproveAttendeesRsvpRequest} approveAttendeesRsvpRequest * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public approveAttendeesRsvp(network: number, lockAddress: string, approveAttendeesRsvpRequest: ApproveAttendeesRsvpRequest, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration).approveAttendeesRsvp(network, lockAddress, approveAttendeesRsvpRequest, options).then((request) => request(this.axios, this.basePath)); } /** * Approve a single event within an event collection. * @param {string} slug Slug of the event collection. * @param {ApproveEventBody} approveEventBody * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public approveEvent(slug: string, approveEventBody: ApproveEventBody, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration).approveEvent(slug, approveEventBody, options).then((request) => request(this.axios, this.basePath)); } /** * Approves refunds for an event. * @param {string} slug Slug * @param {ApproveRefundsRequest} approveRefundsRequest * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public approveRefunds(slug: string, approveRefundsRequest: ApproveRefundsRequest, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration).approveRefunds(slug, approveRefundsRequest, options).then((request) => request(this.axios, this.basePath)); } /** * Approves a user to attend an event. (does not airdrop!) * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {string} userAddress User address. * @param {*} [options] Override http request option. * @deprecated * @throws {RequiredError} * @memberof DefaultApi */ public approveRsvp(network: number, lockAddress: string, userAddress: string, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration).approveRsvp(network, lockAddress, userAddress, options).then((request) => request(this.axios, this.basePath)); } /** * Returns the merkle proof of an approved refund. * @param {string} slug Slug * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public approvedRefunds(slug: string, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration).approvedRefunds(slug, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public balance(options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration).balance(options).then((request) => request(this.axios, this.basePath)); } /** * Bulk approve multiple events within an event collection. * @param {string} slug Slug of the event collection. * @param {BulkApproveEventsBody} bulkApproveEventsBody * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public bulkApproveEvents(slug: string, bulkApproveEventsBody: BulkApproveEventsBody, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration).bulkApproveEvents(slug, bulkApproveEventsBody, options).then((request) => request(this.axios, this.basePath)); } /** * Bulk remove multiple events from an event collection. * @param {string} slug Slug of the event collection. * @param {BulkRemoveEventsBody} bulkRemoveEventsBody * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public bulkRemoveEvents(slug: string, bulkRemoveEventsBody: BulkRemoveEventsBody, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration).bulkRemoveEvents(slug, bulkRemoveEventsBody, options).then((request) => request(this.axios, this.basePath)); } /** * Cancel a fiat subscription. * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {string} keyId Key Id. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public cancelSubscription(network: number, lockAddress: string, keyId: string, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration).cancelSubscription(network, lockAddress, keyId, options).then((request) => request(this.axios, this.basePath)); } /** * Capture a purchase * @param {CapturePurchaseRequest} [capturePurchaseRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public capturePurchase(capturePurchaseRequest?: CapturePurchaseRequest, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration).capturePurchase(capturePurchaseRequest, options).then((request) => request(this.axios, this.basePath)); } /** * Check if claim is possible for a given purchase * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {CheckClaimRequest} [checkClaimRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public checkClaim(network: number, lockAddress: string, checkClaimRequest?: CheckClaimRequest, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration).checkClaim(network, lockAddress, checkClaimRequest, options).then((request) => request(this.axios, this.basePath)); } /** * Mark an event ticket as checked in. * @param {string} slug Slug * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {string} keyId Key Id. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public checkEventTicket(slug: string, network: number, lockAddress: string, keyId: string, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration).checkEventTicket(slug, network, lockAddress, keyId, options).then((request) => request(this.axios, this.basePath)); } /** * Check if a user exists in Privy by email or wallet address * @param {PrivyUserCheckBody} privyUserCheckBody * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public checkPrivyUser(privyUserCheckBody: PrivyUserCheckBody, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration).checkPrivyUser(privyUserCheckBody, options).then((request) => request(this.axios, this.basePath)); } /** * Mark a lock ticket as checked in. * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {string} keyId Key Id. * @param {*} [options] Override http request option. * @deprecated * @throws {RequiredError} * @memberof DefaultApi */ public checkTicket(network: number, lockAddress: string, keyId: string, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration).checkTicket(network, lockAddress, keyId, options).then((request) => request(this.axios, this.basePath)); } /** * Claim a membership key for a lock. If not authenticated, requires an email in the body. * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {string} captcha Recaptcha value to pass. * @param {ClaimRequest} claimRequest * @param {string} [recipient] Recipient address for key * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public claim(network: number, lockAddress: string, captcha: string, claimRequest: ClaimRequest, recipient?: string, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration).claim(network, lockAddress, captcha, claimRequest, recipient, options).then((request) => request(this.axios, this.basePath)); } /** * Connect a stripe account to a lock * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {ConnectStripeAccountRequest} [connectStripeAccountRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public connectStripeAccount(network: number, lockAddress: string, connectStripeAccountRequest?: ConnectStripeAccountRequest, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration).connectStripeAccount(network, lockAddress, connectStripeAccountRequest, options).then((request) => request(this.axios, this.basePath)); } /** * Create application associated with user wallet. * @param {ApplicationBody} applicationBody * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public createApplication(applicationBody: ApplicationBody, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration).createApplication(applicationBody, options).then((request) => request(this.axios, this.basePath)); } /** * Request the creation of a ZIP file containing all receipts for a lock. * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public createDownloadReceiptsRequest(network: number, lockAddress: string, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration).createDownloadReceiptsRequest(network, lockAddress, options).then((request) => request(this.axios, this.basePath)); } /** * Create a new event collection * @param {EventCollectionBody} eventCollectionBody * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public createEventCollection(eventCollectionBody: EventCollectionBody, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration).createEventCollection(eventCollectionBody, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {number} network Network id. * @param {string} captcha Recaptcha value to pass. * @param {LockContractOptions} lockContractOptions * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public createLockContract(network: number, captcha: string, lockContractOptions: LockContractOptions, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration).createLockContract(network, captcha, lockContractOptions, options).then((request) => request(this.axios, this.basePath)); } /** * Create a transfer code to transfer an airdropped key to an email address. * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {string} keyId Key Id. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public createTransferCode(network: number, lockAddress: string, keyId: string, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration).createTransferCode(network, lockAddress, keyId, options).then((request) => request(this.axios, this.basePath)); } /** * Create verifier. (deprecated in favor of addEventVerifier) * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {string} verifierAddress User address to use as verifier * @param {CreateVerifierRequest} [createVerifierRequest] * @param {*} [options] Override http request option. * @deprecated * @throws {RequiredError} * @memberof DefaultApi */ public createVerifier(network: number, lockAddress: string, verifierAddress: string, createVerifierRequest?: CreateVerifierRequest, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration).createVerifier(network, lockAddress, verifierAddress, createVerifierRequest, options).then((request) => request(this.axios, this.basePath)); } /** * Delete application by id. * @param {string} id Application id. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public deleteApplication(id: string, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration).deleteApplication(id, options).then((request) => request(this.axios, this.basePath)); } /** * Delete a checkout config * @param {string} id The id of the checkout config * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public deleteCheckoutConfig(id: string, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration).deleteCheckoutConfig(id, options).then((request) => request(this.axios, this.basePath)); } /** * Removes a verifier for an event. * @param {string} slug Slug * @param {string} verifierAddress User address to use as verifier * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public deleteEventVerifier(slug: string, verifierAddress: string, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration).deleteEventVerifier(slug, verifierAddress, options).then((request) => request(this.axios, this.basePath)); } /** * Remove verifier. (deprecated in favor of deleteEventVerifier) * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {string} verifierAddress User address to use as verifier * @param {*} [options] Override http request option. * @deprecated * @throws {RequiredError} * @memberof DefaultApi */ public deleteVerifier(network: number, lockAddress: string, verifierAddress: string, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration).deleteVerifier(network, lockAddress, verifierAddress, options).then((request) => request(this.axios, this.basePath)); } /** * Denies users to attend an event. * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {ApproveAttendeesRsvpRequest} approveAttendeesRsvpRequest * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public denyAttendeesRsvp(network: number, lockAddress: string, approveAttendeesRsvpRequest: ApproveAttendeesRsvpRequest, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration).denyAttendeesRsvp(network, lockAddress, approveAttendeesRsvpRequest, options).then((request) => request(this.axios, this.basePath)); } /** * Denies a user to attend an event. (does not airdrop!) * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {string} userAddress User address. * @param {*} [options] Override http request option. * @deprecated * @throws {RequiredError} * @memberof DefaultApi */ public denyRsvp(network: number, lockAddress: string, userAddress: string, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration).denyRsvp(network, lockAddress, userAddress, options).then((request) => request(this.axios, this.basePath)); } /** * Disconnect stripe account. * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public disconnectStripe(network: number, lockAddress: string, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration).disconnectStripe(network, lockAddress, options).then((request) => request(this.axios, this.basePath)); } /** * Download the ZIP file containing all receipts for a lock. * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public downloadReceipts(network: number, lockAddress: string, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration).downloadReceipts(network, lockAddress, options).then((request) => request(this.axios, this.basePath)); } /** * Ejects a user given their public key. In the case of failure, a rejected promise is returned to the caller. * @param {string} publicKey * @param {{ [key: string]: any; }} requestBody Structured data used to generate the signature * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public ejectUser(publicKey: string, requestBody: { [key: string]: any; }, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration).ejectUser(publicKey, requestBody, options).then((request) => request(this.axios, this.basePath)); } /** * Send QR code by email. * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {string} keyId Key Id. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public emailTicket(network: number, lockAddress: string, keyId: string, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration).emailTicket(network, lockAddress, keyId, options).then((request) => request(this.axios, this.basePath)); } /** * List of verifiers for an event. * @param {string} slug Slug * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public eventVerifiers(slug: string, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration).eventVerifiers(slug, options).then((request) => request(this.axios, this.basePath)); } /** * Starts Job process to get all the keys for the given lock * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {string} query Query you want to search for. * @param {string} filterKey The key you want to search on. * @param {string} [expiration] Expiration time * @param {string} [approval] Approval status (relevant for offchain approvals on events for example) * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public exportKeys(network: number, lockAddress: string, query: string, filterKey: string, expiration?: string, approval?: string, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration).exportKeys(network, lockAddress, query, filterKey, expiration, approval, options).then((request) => request(this.axios, this.basePath)); } /** * Generate and return an Apple Wallet pass for a specified key associated with a lock. * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {string} keyId Key Id. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public generateAppleWalletPass(network: number, lockAddress: string, keyId: string, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration).generateAppleWalletPass(network, lockAddress, keyId, options).then((request) => request(this.axios, this.basePath)); } /** * Generate certificate for specific key * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {string} keyId Key Id. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public generateCertificate(network: number, lockAddress: string, keyId: string, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration).generateCertificate(network, lockAddress, keyId, options).then((request) => request(this.axios, this.basePath)); } /** * Generate and return a Google Wallet pass for a specified key associated with a lock. * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {string} keyId Key Id. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public generateGoogleWalletPass(network: number, lockAddress: string, keyId: string, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration).generateGoogleWalletPass(network, lockAddress, keyId, options).then((request) => request(this.axios, this.basePath)); } /** * Generate a ticket for a key. * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {string} keyId Key Id. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public generateTicket(network: number, lockAddress: string, keyId: string, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration).generateTicket(network, lockAddress, keyId, options).then((request) => request(this.axios, this.basePath)); } /** * Get the price breakdown for recipients & total charges with fees for a specific lock * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {Array} purchaseData The purchase data passed to the purchase function * @param {Array} recipients The recipients passed to the purchase function * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public getChargesForLock(network: number, lockAddress: string, purchaseData: Array, recipients: Array, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration).getChargesForLock(network, lockAddress, purchaseData, recipients, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {string} id The id of the checkout config * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public getCheckoutConfig(id: string, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration).getCheckoutConfig(id, options).then((request) => request(this.axios, this.basePath)); } /** * Get custom email content for a specific template and lock details * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {string} template Template id for email * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public getCustomEmailContent(network: number, lockAddress: string, template: string, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration).getCustomEmailContent(network, lockAddress, template, options).then((request) => request(this.axios, this.basePath)); } /** * Retrieves data for recipients and captcha. * @param {Array} recipients * @param {string} captchaValue * @param {string} lockAddress * @param {number} network * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public getDataForRecipientsAndCaptcha(recipients: Array, captchaValue: string, lockAddress: string, network: number, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration).getDataForRecipientsAndCaptcha(recipients, captchaValue, lockAddress, network, options).then((request) => request(this.axios, this.basePath)); } /** * Get the data for recipients and gitcoin passport. This is to be used in conjunction with the Gitcoin passport scorer. * @param {number} network The network the lock is on * @param {string} [lockAddress] The address of the lock * @param {Array} [recipients] The list of recipients for the purchase * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public getDataForRecipientsAndGitcoinPassport(network: number, lockAddress?: string, recipients?: Array, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration).getDataForRecipientsAndGitcoinPassport(network, lockAddress, recipients, options).then((request) => request(this.axios, this.basePath)); } /** * Get the data for recipients and guild. This is to be used in conjunction with the Guild * @param {number} network The network the lock is on * @param {string} [lockAddress] The address of the lock * @param {Array} [recipients] The list of recipients for the purchase * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public getDataForRecipientsAndGuild(network: number, lockAddress?: string, recipients?: Array, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration).getDataForRecipientsAndGuild(network, lockAddress, recipients, options).then((request) => request(this.axios, this.basePath)); } /** * Retrieves an event based on its slug. The event data including status and transactionHash can be accessed through the `data` property. * @param {string} slug Slug * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public getEvent(slug: string, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration).getEvent(slug, options).then((request) => request(this.axios, this.basePath)); } /** * Get details of an event collection * @param {string} slug * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public getEventCollection(slug: string, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration).getEventCollection(slug, options).then((request) => request(this.axios, this.basePath)); } /** * Get the event details from lock * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {*} [options] Override http request option. * @deprecated * @throws {RequiredError} * @memberof DefaultApi */ public getEventDetails(network: number, lockAddress: string, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration).getEventDetails(network, lockAddress, options).then((request) => request(this.axios, this.basePath)); } /** * get a ticket for a key by event. * @param {string} slug Slug * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {string} keyId Key Id. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public getEventTicket(slug: string, network: number, lockAddress: string, keyId: string, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration).getEventTicket(slug, network, lockAddress, keyId, options).then((request) => request(this.axios, this.basePath)); } /** * Get events in a collection * @param {string} slug * @param {number} [page] * @param {number} [pageSize] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public getEventsInCollection(slug: string, page?: number, pageSize?: number, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration).getEventsInCollection(slug, page, pageSize, options).then((request) => request(this.axios, this.basePath)); } /** * Get job result by job id * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {string} jobId Id of the exported job. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public getExportedKeys(network: number, lockAddress: string, jobId: string, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration).getExportedKeys(network, lockAddress, jobId, options).then((request) => request(this.axios, this.basePath)); } /** * Get saved lock settings * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public getLockSettings(network: number, lockAddress: string, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration).getLockSettings(network, lockAddress, options).then((request) => request(this.axios, this.basePath)); } /** * Get lock setting by slug * @param {string} slug Slug * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public getLockSettingsBySlug(slug: string, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration).getLockSettingsBySlug(slug, options).then((request) => request(this.axios, this.basePath)); } /** * Returns Stripe connection details * @param {string} lockAddress Lock address. * @param {number} chain Lock network * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public getLockStripeConnectionDetails(lockAddress: string, chain: number, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration).getLockStripeConnectionDetails(lockAddress, chain, options).then((request) => request(this.axios, this.basePath)); } /** * Get receipt details * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {string} hash Hash * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public getReceipt(network: number, lockAddress: string, hash: string, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration).getReceipt(network, lockAddress, hash, options).then((request) => request(this.axios, this.basePath)); } /** * Get all receipts for a lock * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public getReceipts(network: number, lockAddress: string, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration).getReceipts(network, lockAddress, options).then((request) => request(this.axios, this.basePath)); } /** * Get supplier details * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public getReceiptsBase(network: number, lockAddress: string, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration).getReceiptsBase(network, lockAddress, options).then((request) => request(this.axios, this.basePath)); } /** * Retrieve the status of receipt generation for a lock. * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public getReceiptsStatus(network: number, lockAddress: string, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration).getReceiptsStatus(network, lockAddress, options).then((request) => request(this.axios, this.basePath)); } /** * Lists the locks connected to Stripe for a user * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public getStripeConnections(options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration).getStripeConnections(options).then((request) => request(this.axios, this.basePath)); } /** * Get an active subscription associated with the key. It can be fiat or crypto. * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {string} keyId Key Id. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public getSubscription(network: number, lockAddress: string, keyId: string, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration).getSubscription(network, lockAddress, keyId, options).then((request) => request(this.axios, this.basePath)); } /** * get a ticket for a key by lock. * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {string} keyId Key Id. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public getTicket(network: number, lockAddress: string, keyId: string, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration).getTicket(network, lockAddress, keyId, options).then((request) => request(this.axios, this.basePath)); } /** * Get unapproved events for a collection * @param {string} slug * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public getUnapprovedEventsForCollection(slug: string, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration).getUnapprovedEventsForCollection(slug, options).then((request) => request(this.axios, this.basePath)); } /** * Gets User account type by email. * @param {string} emailAddress * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public getUserAccountType(emailAddress: string, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration).getUserAccountType(emailAddress, options).then((request) => request(this.axios, this.basePath)); } /** * get user metadata for a lock. * @param {string} lockAddress Lock address. * @param {string} userAddress User address. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public getUserMetadata(lockAddress: string, userAddress: string, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration).getUserMetadata(lockAddress, userAddress, options).then((request) => request(this.axios, this.basePath)); } /** * Given a user\'s email address, retrieves their private key. In the case of failure a rejected promise is returned to the caller. * @param {string} emailAddress * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public getUserPrivateKey(emailAddress: string, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration).getUserPrivateKey(emailAddress, options).then((request) => request(this.axios, this.basePath)); } /** * Given a user\'s email address, retrieves their recovery phrase. In the case of failure a rejected promise is returned to the caller. * @param {string} emailAddress * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public getUserRecoveryPhrase(emailAddress: string, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration).getUserRecoveryPhrase(emailAddress, options).then((request) => request(this.axios, this.basePath)); } /** * Gets Coinbase WAAS token for user by email and selected provider. * @param {string} captcha Recaptcha value to pass. * @param {string} emailAddress * @param {string} selectedProvider * @param {GetWaasTokenRequest} getWaasTokenRequest JSON object containing sign in token * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public getWaasToken(captcha: string, emailAddress: string, selectedProvider: string, getWaasTokenRequest: GetWaasTokenRequest, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration).getWaasToken(captcha, emailAddress, selectedProvider, getWaasTokenRequest, options).then((request) => request(this.axios, this.basePath)); } /** * Returns if credit card payment are enable for a lock * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public isCardPaymentEnabledForLock(network: number, lockAddress: string, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration).isCardPaymentEnabledForLock(network, lockAddress, options).then((request) => request(this.axios, this.basePath)); } /** * Get key and user metadata. * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {string} keyId Key Id. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public keyMetadata(network: number, lockAddress: string, keyId: string, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration).keyMetadata(network, lockAddress, keyId, options).then((request) => request(this.axios, this.basePath)); } /** * List of lock keys by network with additional metadata if the caller is the lockManager (deprecated, use keys-by-page) * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {string} query Query you want to search for. * @param {string} filterKey The key you want to search on. * @param {string} [expiration] Expiration time * @param {string} [approval] Approval status (relevant for offchain approvals on events for example) * @param {number} [page] Page number when paginating * @param {number} [max] Maximum number of items to get by page * @param {*} [options] Override http request option. * @deprecated * @throws {RequiredError} * @memberof DefaultApi */ public keys(network: number, lockAddress: string, query: string, filterKey: string, expiration?: string, approval?: string, page?: number, max?: number, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration).keys(network, lockAddress, query, filterKey, expiration, approval, page, max, options).then((request) => request(this.axios, this.basePath)); } /** * List of lock keys by network with additional metadata if the caller is the lockManager * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {string} query Query you want to search for. * @param {string} filterKey The key you want to search on. * @param {string} [expiration] Expiration time * @param {string} [approval] Approval status (relevant for offchain approvals on events for example) * @param {number} [page] Page number when paginating * @param {number} [max] Maximum number of items to get by page * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public keysByPage(network: number, lockAddress: string, query: string, filterKey: string, expiration?: string, approval?: string, page?: number, max?: number, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration).keysByPage(network, lockAddress, query, filterKey, expiration, approval, page, max, options).then((request) => request(this.axios, this.basePath)); } /** * A list of all checkout configs created by the user * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public listCheckoutConfigs(options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration).listCheckoutConfigs(options).then((request) => request(this.axios, this.basePath)); } /** * List payment methods for user. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public listPaymentMethods(options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration).listPaymentMethods(options).then((request) => request(this.axios, this.basePath)); } /** * Get metadata for lock address. * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public lockMetadata(network: number, lockAddress: string, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration).lockMetadata(network, lockAddress, options).then((request) => request(this.axios, this.basePath)); } /** * Login as a user using Sign in with Ethereum message signed by the wallet address. * @param {LoginRequest} loginRequest * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public login(loginRequest: LoginRequest, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration).login(loginRequest, options).then((request) => request(this.axios, this.basePath)); } /** * Verify an access token using Privy\'s library and authenticate the user * @param {LoginWithPrivyRequest} loginWithPrivyRequest * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public loginWithPrivy(loginWithPrivyRequest: LoginWithPrivyRequest, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration).loginWithPrivy(loginWithPrivyRequest, options).then((request) => request(this.axios, this.basePath)); } /** * Logout from locksmith. This will invalidate all your session tokens. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public logout(options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration).logout(options).then((request) => request(this.axios, this.basePath)); } /** * Provide a unique nonce for using in sign in with ethereum * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public nonce(options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration).nonce(options).then((request) => request(this.axios, this.basePath)); } /** * * @param {number} network Network id. * @param {number} [amount] Amount of tokens you want to get the price for in USD. * @param {string} [address] The erc20 address you want to get the price for. If nothing is passed, the API will return the native token price. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public price(network: number, amount?: number, address?: string, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration).price(network, amount, address, options).then((request) => request(this.axios, this.basePath)); } /** * Create purchase intent for stripe. * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {PurchaseRequest} purchaseRequest * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public purchase(network: number, lockAddress: string, purchaseRequest: PurchaseRequest, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration).purchase(network, lockAddress, purchaseRequest, options).then((request) => request(this.axios, this.basePath)); } /** * resubscribe emails from lock * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public reSubscribeEmail(network: number, lockAddress: string, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration).reSubscribeEmail(network, lockAddress, options).then((request) => request(this.axios, this.basePath)); } /** * Remove a single event from an event collection. * @param {string} slug Slug of the event collection. * @param {RemoveEventBody} removeEventBody * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public removeEventFromCollection(slug: string, removeEventBody: RemoveEventBody, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration).removeEventFromCollection(slug, removeEventBody, options).then((request) => request(this.axios, this.basePath)); } /** * Remove a manager address from an event collection * @param {string} slug * @param {RemoveManagerBody} removeManagerBody * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public removeManagerFromEventCollection(slug: string, removeManagerBody: RemoveManagerBody, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration).removeManagerFromEventCollection(slug, removeManagerBody, options).then((request) => request(this.axios, this.basePath)); } /** * Remove all payment methods for a user * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public removePaymentMethods(options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration).removePaymentMethods(options).then((request) => request(this.axios, this.basePath)); } /** * Invalidate a session. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public revoke(options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration).revoke(options).then((request) => request(this.axios, this.basePath)); } /** * User applies to attend an event. * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {string} captcha Recaptcha value to pass. * @param {RsvpRequest} [rsvpRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public rsvp(network: number, lockAddress: string, captcha: string, rsvpRequest?: RsvpRequest, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration).rsvp(network, lockAddress, captcha, rsvpRequest, options).then((request) => request(this.axios, this.basePath)); } /** * Save custom email content for a specif lock. * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {string} template Template id for email * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public saveCustomEmailContent(network: number, lockAddress: string, template: string, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration).saveCustomEmailContent(network, lockAddress, template, options).then((request) => request(this.axios, this.basePath)); } /** * Save event data * @param {SaveEventDataRequest} saveEventDataRequest * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public saveEventData(saveEventDataRequest: SaveEventDataRequest, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration).saveEventData(saveEventDataRequest, options).then((request) => request(this.axios, this.basePath)); } /** * Save lock settings * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {LockSettings} [lockSettings] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public saveLockSetting(network: number, lockAddress: string, lockSettings?: LockSettings, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration).saveLockSetting(network, lockAddress, lockSettings, options).then((request) => request(this.axios, this.basePath)); } /** * Saves a merkle tree from either a list of addresses or a list of [address, amount] tuples. * @param {Array} saveMerkleTreeRequestInner * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public saveMerkleTree(saveMerkleTreeRequestInner: Array, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration).saveMerkleTree(saveMerkleTreeRequestInner, options).then((request) => request(this.axios, this.basePath)); } /** * Create purchaser details * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {string} hash Hash * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public saveReceipt(network: number, lockAddress: string, hash: string, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration).saveReceipt(network, lockAddress, hash, options).then((request) => request(this.axios, this.basePath)); } /** * Create supplier details. * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public saveReceiptsBase(network: number, lockAddress: string, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration).saveReceiptsBase(network, lockAddress, options).then((request) => request(this.axios, this.basePath)); } /** * Send custom email to recipients * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {SendCustomEmailRequest} [sendCustomEmailRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public sendCustomEmail(network: number, lockAddress: string, sendCustomEmailRequest?: SendCustomEmailRequest, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration).sendCustomEmail(network, lockAddress, sendCustomEmailRequest, options).then((request) => request(this.axios, this.basePath)); } /** * Send event invites to a list of recipients * @param {string} slug Slug * @param {SendEventInvitesRequest} [sendEventInvitesRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public sendEventInvites(slug: string, sendEventInvitesRequest?: SendEventInvitesRequest, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration).sendEventInvites(slug, sendEventInvitesRequest, options).then((request) => request(this.axios, this.basePath)); } /** * Sends a verification code to the user\'s email if the current code is expired or does not exist. * @param {string} captcha Recaptcha value to pass. * @param {string} emailAddress * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public sendVerificationCode(captcha: string, emailAddress: string, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration).sendVerificationCode(captcha, emailAddress, options).then((request) => request(this.axios, this.basePath)); } /** * Setup a payment method for user. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public setupPayment(options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration).setupPayment(options).then((request) => request(this.axios, this.basePath)); } /** * Generate signature to prove validity of token. * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {string} keyId Key Id. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public signTicket(network: number, lockAddress: string, keyId: string, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration).signTicket(network, lockAddress, keyId, options).then((request) => request(this.axios, this.basePath)); } /** * Get QR code for the key. * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {string} keyId Key Id. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public ticketQRCode(network: number, lockAddress: string, keyId: string, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration).ticketQRCode(network, lockAddress, keyId, options).then((request) => request(this.axios, this.basePath)); } /** * Get the verification URL for the key. * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {string} keyId Key Id. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public ticketVerificationUrl(network: number, lockAddress: string, keyId: string, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration).ticketVerificationUrl(network, lockAddress, keyId, options).then((request) => request(this.axios, this.basePath)); } /** * Finalize the transfer of a key to a recipient. This is to copy over any locksmith related data to the recipient\'s account. * @param {TransferDoneRequest} [transferDoneRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public transferDone(transferDoneRequest?: TransferDoneRequest, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration).transferDone(transferDoneRequest, options).then((request) => request(this.axios, this.basePath)); } /** * Unsubscribe email from lock * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public unsubscribeEmail(network: number, lockAddress: string, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration).unsubscribeEmail(network, lockAddress, options).then((request) => request(this.axios, this.basePath)); } /** * Update application by id. * @param {string} id Application id. * @param {ApplicationBody} [applicationBody] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public updateApplication(id: string, applicationBody?: ApplicationBody, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration).updateApplication(id, applicationBody, options).then((request) => request(this.axios, this.basePath)); } /** * A new checkout config is created or updated if it already exists * @param {string} id This is optional. If you don\'t pass an ID, a new config will be created. If you pass an ID, the config will be created. * @param {UpdateCheckoutConfigRequest} [updateCheckoutConfigRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public updateCheckoutConfig(id: string, updateCheckoutConfigRequest?: UpdateCheckoutConfigRequest, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration).updateCheckoutConfig(id, updateCheckoutConfigRequest, options).then((request) => request(this.axios, this.basePath)); } /** * Update an existing event collection * @param {string} slug * @param {EventCollectionBody} eventCollectionBody * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public updateEventCollection(slug: string, eventCollectionBody: EventCollectionBody, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration).updateEventCollection(slug, eventCollectionBody, options).then((request) => request(this.axios, this.basePath)); } /** * Update event data * @param {string} slug * @param {UpdateEventDataRequest} [updateEventDataRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public updateEventData(slug: string, updateEventDataRequest?: UpdateEventDataRequest, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration).updateEventData(slug, updateEventDataRequest, options).then((request) => request(this.axios, this.basePath)); } /** * Update or create metadata for key. * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {string} keyId Key Id. * @param {UpdateLockMetadataRequest} updateLockMetadataRequest * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public updateKeyMetadata(network: number, lockAddress: string, keyId: string, updateLockMetadataRequest: UpdateLockMetadataRequest, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration).updateKeyMetadata(network, lockAddress, keyId, updateLockMetadataRequest, options).then((request) => request(this.axios, this.basePath)); } /** * Update or create metadata for lock address. * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {UpdateLockMetadataRequest} updateLockMetadataRequest * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public updateLockMetadata(network: number, lockAddress: string, updateLockMetadataRequest: UpdateLockMetadataRequest, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration).updateLockMetadata(network, lockAddress, updateLockMetadataRequest, options).then((request) => request(this.axios, this.basePath)); } /** * Updates a user\'s private key, using their email address as key. In the case of failure a rejected promise is returned to the caller. * @param {string} emailAddress * @param {UpdateUserEncryptedPrivateKeyRequest} updateUserEncryptedPrivateKeyRequest * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public updateUserEncryptedPrivateKey(emailAddress: string, updateUserEncryptedPrivateKeyRequest: UpdateUserEncryptedPrivateKeyRequest, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration).updateUserEncryptedPrivateKey(emailAddress, updateUserEncryptedPrivateKeyRequest, options).then((request) => request(this.axios, this.basePath)); } /** * Update or create user metadata for lock. * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {string} userAddress User address. * @param {UpdateUserMetadataRequest} updateUserMetadataRequest * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public updateUserMetadata(network: number, lockAddress: string, userAddress: string, updateUserMetadataRequest: UpdateUserMetadataRequest, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration).updateUserMetadata(network, lockAddress, userAddress, updateUserMetadataRequest, options).then((request) => request(this.axios, this.basePath)); } /** * Update or create user metadata for lock. * @param {UpdateUsersMetadataRequest} updateUsersMetadataRequest users array containing user metadata. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public updateUsersMetadata(updateUsersMetadataRequest: UpdateUsersMetadataRequest, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration).updateUsersMetadata(updateUsersMetadataRequest, options).then((request) => request(this.axios, this.basePath)); } /** * Upload images to locksmith * @param {Array} [images] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public uploadImages(images?: Array, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration).uploadImages(images, options).then((request) => request(this.axios, this.basePath)); } /** * Get user details. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public user(options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration).user(options).then((request) => request(this.axios, this.basePath)); } /** * Check if an address is a verifier of the lock. (deprecated in favor of eventVerifier) * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {string} verifierAddress User address to use as verifier * @param {*} [options] Override http request option. * @deprecated * @throws {RequiredError} * @memberof DefaultApi */ public verifier(network: number, lockAddress: string, verifierAddress: string, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration).verifier(network, lockAddress, verifierAddress, options).then((request) => request(this.axios, this.basePath)); } /** * List of verifiers for the lock address. (deprecated in favor of eventVerifiers) * @param {number} network Network id. * @param {string} lockAddress Lock address. * @param {*} [options] Override http request option. * @deprecated * @throws {RequiredError} * @memberof DefaultApi */ public verifiers(network: number, lockAddress: string, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration).verifiers(network, lockAddress, options).then((request) => request(this.axios, this.basePath)); } /** * Verifies the email code sent to the users email address. * @param {string} emailAddress * @param {VerifyEmailCodeRequest} verifyEmailCodeRequest * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi */ public verifyEmailCode(emailAddress: string, verifyEmailCodeRequest: VerifyEmailCodeRequest, options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration).verifyEmailCode(emailAddress, verifyEmailCodeRequest, options).then((request) => request(this.axios, this.basePath)); } }