api.ts 444 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964
  1. /* tslint:disable */
  2. /* eslint-disable */
  3. /**
  4. * Immich
  5. * Immich API
  6. *
  7. * The version of the OpenAPI document: 1.71.0
  8. *
  9. *
  10. * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
  11. * https://openapi-generator.tech
  12. * Do not edit the class manually.
  13. */
  14. import type { Configuration } from './configuration';
  15. import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
  16. import globalAxios from 'axios';
  17. // Some imports not used depending on template conditions
  18. // @ts-ignore
  19. import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';
  20. import type { RequestArgs } from './base';
  21. // @ts-ignore
  22. import { BASE_PATH, COLLECTION_FORMATS, BaseAPI, RequiredError } from './base';
  23. /**
  24. *
  25. * @export
  26. * @interface APIKeyCreateDto
  27. */
  28. export interface APIKeyCreateDto {
  29. /**
  30. *
  31. * @type {string}
  32. * @memberof APIKeyCreateDto
  33. */
  34. 'name'?: string;
  35. }
  36. /**
  37. *
  38. * @export
  39. * @interface APIKeyCreateResponseDto
  40. */
  41. export interface APIKeyCreateResponseDto {
  42. /**
  43. *
  44. * @type {APIKeyResponseDto}
  45. * @memberof APIKeyCreateResponseDto
  46. */
  47. 'apiKey': APIKeyResponseDto;
  48. /**
  49. *
  50. * @type {string}
  51. * @memberof APIKeyCreateResponseDto
  52. */
  53. 'secret': string;
  54. }
  55. /**
  56. *
  57. * @export
  58. * @interface APIKeyResponseDto
  59. */
  60. export interface APIKeyResponseDto {
  61. /**
  62. *
  63. * @type {string}
  64. * @memberof APIKeyResponseDto
  65. */
  66. 'createdAt': string;
  67. /**
  68. *
  69. * @type {string}
  70. * @memberof APIKeyResponseDto
  71. */
  72. 'id': string;
  73. /**
  74. *
  75. * @type {string}
  76. * @memberof APIKeyResponseDto
  77. */
  78. 'name': string;
  79. /**
  80. *
  81. * @type {string}
  82. * @memberof APIKeyResponseDto
  83. */
  84. 'updatedAt': string;
  85. }
  86. /**
  87. *
  88. * @export
  89. * @interface APIKeyUpdateDto
  90. */
  91. export interface APIKeyUpdateDto {
  92. /**
  93. *
  94. * @type {string}
  95. * @memberof APIKeyUpdateDto
  96. */
  97. 'name': string;
  98. }
  99. /**
  100. *
  101. * @export
  102. * @interface AddUsersDto
  103. */
  104. export interface AddUsersDto {
  105. /**
  106. *
  107. * @type {Array<string>}
  108. * @memberof AddUsersDto
  109. */
  110. 'sharedUserIds': Array<string>;
  111. }
  112. /**
  113. *
  114. * @export
  115. * @interface AdminSignupResponseDto
  116. */
  117. export interface AdminSignupResponseDto {
  118. /**
  119. *
  120. * @type {string}
  121. * @memberof AdminSignupResponseDto
  122. */
  123. 'createdAt': string;
  124. /**
  125. *
  126. * @type {string}
  127. * @memberof AdminSignupResponseDto
  128. */
  129. 'email': string;
  130. /**
  131. *
  132. * @type {string}
  133. * @memberof AdminSignupResponseDto
  134. */
  135. 'firstName': string;
  136. /**
  137. *
  138. * @type {string}
  139. * @memberof AdminSignupResponseDto
  140. */
  141. 'id': string;
  142. /**
  143. *
  144. * @type {string}
  145. * @memberof AdminSignupResponseDto
  146. */
  147. 'lastName': string;
  148. }
  149. /**
  150. *
  151. * @export
  152. * @interface AlbumCountResponseDto
  153. */
  154. export interface AlbumCountResponseDto {
  155. /**
  156. *
  157. * @type {number}
  158. * @memberof AlbumCountResponseDto
  159. */
  160. 'notShared': number;
  161. /**
  162. *
  163. * @type {number}
  164. * @memberof AlbumCountResponseDto
  165. */
  166. 'owned': number;
  167. /**
  168. *
  169. * @type {number}
  170. * @memberof AlbumCountResponseDto
  171. */
  172. 'shared': number;
  173. }
  174. /**
  175. *
  176. * @export
  177. * @interface AlbumResponseDto
  178. */
  179. export interface AlbumResponseDto {
  180. /**
  181. *
  182. * @type {string}
  183. * @memberof AlbumResponseDto
  184. */
  185. 'albumName': string;
  186. /**
  187. *
  188. * @type {string}
  189. * @memberof AlbumResponseDto
  190. */
  191. 'albumThumbnailAssetId': string | null;
  192. /**
  193. *
  194. * @type {number}
  195. * @memberof AlbumResponseDto
  196. */
  197. 'assetCount': number;
  198. /**
  199. *
  200. * @type {Array<AssetResponseDto>}
  201. * @memberof AlbumResponseDto
  202. */
  203. 'assets': Array<AssetResponseDto>;
  204. /**
  205. *
  206. * @type {string}
  207. * @memberof AlbumResponseDto
  208. */
  209. 'createdAt': string;
  210. /**
  211. *
  212. * @type {string}
  213. * @memberof AlbumResponseDto
  214. */
  215. 'id': string;
  216. /**
  217. *
  218. * @type {string}
  219. * @memberof AlbumResponseDto
  220. */
  221. 'lastModifiedAssetTimestamp'?: string;
  222. /**
  223. *
  224. * @type {UserResponseDto}
  225. * @memberof AlbumResponseDto
  226. */
  227. 'owner': UserResponseDto;
  228. /**
  229. *
  230. * @type {string}
  231. * @memberof AlbumResponseDto
  232. */
  233. 'ownerId': string;
  234. /**
  235. *
  236. * @type {boolean}
  237. * @memberof AlbumResponseDto
  238. */
  239. 'shared': boolean;
  240. /**
  241. *
  242. * @type {Array<UserResponseDto>}
  243. * @memberof AlbumResponseDto
  244. */
  245. 'sharedUsers': Array<UserResponseDto>;
  246. /**
  247. *
  248. * @type {string}
  249. * @memberof AlbumResponseDto
  250. */
  251. 'updatedAt': string;
  252. }
  253. /**
  254. *
  255. * @export
  256. * @interface AllJobStatusResponseDto
  257. */
  258. export interface AllJobStatusResponseDto {
  259. /**
  260. *
  261. * @type {JobStatusDto}
  262. * @memberof AllJobStatusResponseDto
  263. */
  264. 'backgroundTask': JobStatusDto;
  265. /**
  266. *
  267. * @type {JobStatusDto}
  268. * @memberof AllJobStatusResponseDto
  269. */
  270. 'clipEncoding': JobStatusDto;
  271. /**
  272. *
  273. * @type {JobStatusDto}
  274. * @memberof AllJobStatusResponseDto
  275. */
  276. 'metadataExtraction': JobStatusDto;
  277. /**
  278. *
  279. * @type {JobStatusDto}
  280. * @memberof AllJobStatusResponseDto
  281. */
  282. 'objectTagging': JobStatusDto;
  283. /**
  284. *
  285. * @type {JobStatusDto}
  286. * @memberof AllJobStatusResponseDto
  287. */
  288. 'recognizeFaces': JobStatusDto;
  289. /**
  290. *
  291. * @type {JobStatusDto}
  292. * @memberof AllJobStatusResponseDto
  293. */
  294. 'search': JobStatusDto;
  295. /**
  296. *
  297. * @type {JobStatusDto}
  298. * @memberof AllJobStatusResponseDto
  299. */
  300. 'sidecar': JobStatusDto;
  301. /**
  302. *
  303. * @type {JobStatusDto}
  304. * @memberof AllJobStatusResponseDto
  305. */
  306. 'storageTemplateMigration': JobStatusDto;
  307. /**
  308. *
  309. * @type {JobStatusDto}
  310. * @memberof AllJobStatusResponseDto
  311. */
  312. 'thumbnailGeneration': JobStatusDto;
  313. /**
  314. *
  315. * @type {JobStatusDto}
  316. * @memberof AllJobStatusResponseDto
  317. */
  318. 'videoConversion': JobStatusDto;
  319. }
  320. /**
  321. *
  322. * @export
  323. * @interface AssetBulkUploadCheckDto
  324. */
  325. export interface AssetBulkUploadCheckDto {
  326. /**
  327. *
  328. * @type {Array<AssetBulkUploadCheckItem>}
  329. * @memberof AssetBulkUploadCheckDto
  330. */
  331. 'assets': Array<AssetBulkUploadCheckItem>;
  332. }
  333. /**
  334. *
  335. * @export
  336. * @interface AssetBulkUploadCheckItem
  337. */
  338. export interface AssetBulkUploadCheckItem {
  339. /**
  340. * base64 or hex encoded sha1 hash
  341. * @type {string}
  342. * @memberof AssetBulkUploadCheckItem
  343. */
  344. 'checksum': string;
  345. /**
  346. *
  347. * @type {string}
  348. * @memberof AssetBulkUploadCheckItem
  349. */
  350. 'id': string;
  351. }
  352. /**
  353. *
  354. * @export
  355. * @interface AssetBulkUploadCheckResponseDto
  356. */
  357. export interface AssetBulkUploadCheckResponseDto {
  358. /**
  359. *
  360. * @type {Array<AssetBulkUploadCheckResult>}
  361. * @memberof AssetBulkUploadCheckResponseDto
  362. */
  363. 'results': Array<AssetBulkUploadCheckResult>;
  364. }
  365. /**
  366. *
  367. * @export
  368. * @interface AssetBulkUploadCheckResult
  369. */
  370. export interface AssetBulkUploadCheckResult {
  371. /**
  372. *
  373. * @type {string}
  374. * @memberof AssetBulkUploadCheckResult
  375. */
  376. 'action': AssetBulkUploadCheckResultActionEnum;
  377. /**
  378. *
  379. * @type {string}
  380. * @memberof AssetBulkUploadCheckResult
  381. */
  382. 'assetId'?: string;
  383. /**
  384. *
  385. * @type {string}
  386. * @memberof AssetBulkUploadCheckResult
  387. */
  388. 'id': string;
  389. /**
  390. *
  391. * @type {string}
  392. * @memberof AssetBulkUploadCheckResult
  393. */
  394. 'reason'?: AssetBulkUploadCheckResultReasonEnum;
  395. }
  396. export const AssetBulkUploadCheckResultActionEnum = {
  397. Accept: 'accept',
  398. Reject: 'reject'
  399. } as const;
  400. export type AssetBulkUploadCheckResultActionEnum = typeof AssetBulkUploadCheckResultActionEnum[keyof typeof AssetBulkUploadCheckResultActionEnum];
  401. export const AssetBulkUploadCheckResultReasonEnum = {
  402. Duplicate: 'duplicate',
  403. UnsupportedFormat: 'unsupported-format'
  404. } as const;
  405. export type AssetBulkUploadCheckResultReasonEnum = typeof AssetBulkUploadCheckResultReasonEnum[keyof typeof AssetBulkUploadCheckResultReasonEnum];
  406. /**
  407. *
  408. * @export
  409. * @interface AssetCountByTimeBucket
  410. */
  411. export interface AssetCountByTimeBucket {
  412. /**
  413. *
  414. * @type {number}
  415. * @memberof AssetCountByTimeBucket
  416. */
  417. 'count': number;
  418. /**
  419. *
  420. * @type {string}
  421. * @memberof AssetCountByTimeBucket
  422. */
  423. 'timeBucket': string;
  424. }
  425. /**
  426. *
  427. * @export
  428. * @interface AssetCountByTimeBucketResponseDto
  429. */
  430. export interface AssetCountByTimeBucketResponseDto {
  431. /**
  432. *
  433. * @type {Array<AssetCountByTimeBucket>}
  434. * @memberof AssetCountByTimeBucketResponseDto
  435. */
  436. 'buckets': Array<AssetCountByTimeBucket>;
  437. /**
  438. *
  439. * @type {number}
  440. * @memberof AssetCountByTimeBucketResponseDto
  441. */
  442. 'totalCount': number;
  443. }
  444. /**
  445. *
  446. * @export
  447. * @interface AssetFileUploadResponseDto
  448. */
  449. export interface AssetFileUploadResponseDto {
  450. /**
  451. *
  452. * @type {boolean}
  453. * @memberof AssetFileUploadResponseDto
  454. */
  455. 'duplicate': boolean;
  456. /**
  457. *
  458. * @type {string}
  459. * @memberof AssetFileUploadResponseDto
  460. */
  461. 'id': string;
  462. }
  463. /**
  464. *
  465. * @export
  466. * @interface AssetIdsDto
  467. */
  468. export interface AssetIdsDto {
  469. /**
  470. *
  471. * @type {Array<string>}
  472. * @memberof AssetIdsDto
  473. */
  474. 'assetIds': Array<string>;
  475. }
  476. /**
  477. *
  478. * @export
  479. * @interface AssetIdsResponseDto
  480. */
  481. export interface AssetIdsResponseDto {
  482. /**
  483. *
  484. * @type {string}
  485. * @memberof AssetIdsResponseDto
  486. */
  487. 'assetId': string;
  488. /**
  489. *
  490. * @type {string}
  491. * @memberof AssetIdsResponseDto
  492. */
  493. 'error'?: AssetIdsResponseDtoErrorEnum;
  494. /**
  495. *
  496. * @type {boolean}
  497. * @memberof AssetIdsResponseDto
  498. */
  499. 'success': boolean;
  500. }
  501. export const AssetIdsResponseDtoErrorEnum = {
  502. Duplicate: 'duplicate',
  503. NoPermission: 'no_permission',
  504. NotFound: 'not_found'
  505. } as const;
  506. export type AssetIdsResponseDtoErrorEnum = typeof AssetIdsResponseDtoErrorEnum[keyof typeof AssetIdsResponseDtoErrorEnum];
  507. /**
  508. *
  509. * @export
  510. * @interface AssetResponseDto
  511. */
  512. export interface AssetResponseDto {
  513. /**
  514. * base64 encoded sha1 hash
  515. * @type {string}
  516. * @memberof AssetResponseDto
  517. */
  518. 'checksum': string;
  519. /**
  520. *
  521. * @type {string}
  522. * @memberof AssetResponseDto
  523. */
  524. 'deviceAssetId': string;
  525. /**
  526. *
  527. * @type {string}
  528. * @memberof AssetResponseDto
  529. */
  530. 'deviceId': string;
  531. /**
  532. *
  533. * @type {string}
  534. * @memberof AssetResponseDto
  535. */
  536. 'duration': string;
  537. /**
  538. *
  539. * @type {ExifResponseDto}
  540. * @memberof AssetResponseDto
  541. */
  542. 'exifInfo'?: ExifResponseDto;
  543. /**
  544. *
  545. * @type {string}
  546. * @memberof AssetResponseDto
  547. */
  548. 'fileCreatedAt': string;
  549. /**
  550. *
  551. * @type {string}
  552. * @memberof AssetResponseDto
  553. */
  554. 'fileModifiedAt': string;
  555. /**
  556. *
  557. * @type {string}
  558. * @memberof AssetResponseDto
  559. */
  560. 'id': string;
  561. /**
  562. *
  563. * @type {boolean}
  564. * @memberof AssetResponseDto
  565. */
  566. 'isArchived': boolean;
  567. /**
  568. *
  569. * @type {boolean}
  570. * @memberof AssetResponseDto
  571. */
  572. 'isFavorite': boolean;
  573. /**
  574. *
  575. * @type {string}
  576. * @memberof AssetResponseDto
  577. */
  578. 'livePhotoVideoId'?: string | null;
  579. /**
  580. *
  581. * @type {string}
  582. * @memberof AssetResponseDto
  583. */
  584. 'originalFileName': string;
  585. /**
  586. *
  587. * @type {string}
  588. * @memberof AssetResponseDto
  589. */
  590. 'originalPath': string;
  591. /**
  592. *
  593. * @type {string}
  594. * @memberof AssetResponseDto
  595. */
  596. 'ownerId': string;
  597. /**
  598. *
  599. * @type {Array<PersonResponseDto>}
  600. * @memberof AssetResponseDto
  601. */
  602. 'people'?: Array<PersonResponseDto>;
  603. /**
  604. *
  605. * @type {boolean}
  606. * @memberof AssetResponseDto
  607. */
  608. 'resized': boolean;
  609. /**
  610. *
  611. * @type {SmartInfoResponseDto}
  612. * @memberof AssetResponseDto
  613. */
  614. 'smartInfo'?: SmartInfoResponseDto;
  615. /**
  616. *
  617. * @type {Array<TagResponseDto>}
  618. * @memberof AssetResponseDto
  619. */
  620. 'tags'?: Array<TagResponseDto>;
  621. /**
  622. * base64 encoded thumbhash
  623. * @type {string}
  624. * @memberof AssetResponseDto
  625. */
  626. 'thumbhash': string | null;
  627. /**
  628. *
  629. * @type {AssetTypeEnum}
  630. * @memberof AssetResponseDto
  631. */
  632. 'type': AssetTypeEnum;
  633. /**
  634. *
  635. * @type {string}
  636. * @memberof AssetResponseDto
  637. */
  638. 'updatedAt': string;
  639. }
  640. /**
  641. *
  642. * @export
  643. * @interface AssetStatsResponseDto
  644. */
  645. export interface AssetStatsResponseDto {
  646. /**
  647. *
  648. * @type {number}
  649. * @memberof AssetStatsResponseDto
  650. */
  651. 'images': number;
  652. /**
  653. *
  654. * @type {number}
  655. * @memberof AssetStatsResponseDto
  656. */
  657. 'total': number;
  658. /**
  659. *
  660. * @type {number}
  661. * @memberof AssetStatsResponseDto
  662. */
  663. 'videos': number;
  664. }
  665. /**
  666. *
  667. * @export
  668. * @enum {string}
  669. */
  670. export const AssetTypeEnum = {
  671. Image: 'IMAGE',
  672. Video: 'VIDEO',
  673. Audio: 'AUDIO',
  674. Other: 'OTHER'
  675. } as const;
  676. export type AssetTypeEnum = typeof AssetTypeEnum[keyof typeof AssetTypeEnum];
  677. /**
  678. *
  679. * @export
  680. * @enum {string}
  681. */
  682. export const AudioCodec = {
  683. Mp3: 'mp3',
  684. Aac: 'aac',
  685. Opus: 'opus'
  686. } as const;
  687. export type AudioCodec = typeof AudioCodec[keyof typeof AudioCodec];
  688. /**
  689. *
  690. * @export
  691. * @interface AuthDeviceResponseDto
  692. */
  693. export interface AuthDeviceResponseDto {
  694. /**
  695. *
  696. * @type {string}
  697. * @memberof AuthDeviceResponseDto
  698. */
  699. 'createdAt': string;
  700. /**
  701. *
  702. * @type {boolean}
  703. * @memberof AuthDeviceResponseDto
  704. */
  705. 'current': boolean;
  706. /**
  707. *
  708. * @type {string}
  709. * @memberof AuthDeviceResponseDto
  710. */
  711. 'deviceOS': string;
  712. /**
  713. *
  714. * @type {string}
  715. * @memberof AuthDeviceResponseDto
  716. */
  717. 'deviceType': string;
  718. /**
  719. *
  720. * @type {string}
  721. * @memberof AuthDeviceResponseDto
  722. */
  723. 'id': string;
  724. /**
  725. *
  726. * @type {string}
  727. * @memberof AuthDeviceResponseDto
  728. */
  729. 'updatedAt': string;
  730. }
  731. /**
  732. *
  733. * @export
  734. * @interface BulkIdResponseDto
  735. */
  736. export interface BulkIdResponseDto {
  737. /**
  738. *
  739. * @type {string}
  740. * @memberof BulkIdResponseDto
  741. */
  742. 'error'?: BulkIdResponseDtoErrorEnum;
  743. /**
  744. *
  745. * @type {string}
  746. * @memberof BulkIdResponseDto
  747. */
  748. 'id': string;
  749. /**
  750. *
  751. * @type {boolean}
  752. * @memberof BulkIdResponseDto
  753. */
  754. 'success': boolean;
  755. }
  756. export const BulkIdResponseDtoErrorEnum = {
  757. Duplicate: 'duplicate',
  758. NoPermission: 'no_permission',
  759. NotFound: 'not_found',
  760. Unknown: 'unknown'
  761. } as const;
  762. export type BulkIdResponseDtoErrorEnum = typeof BulkIdResponseDtoErrorEnum[keyof typeof BulkIdResponseDtoErrorEnum];
  763. /**
  764. *
  765. * @export
  766. * @interface BulkIdsDto
  767. */
  768. export interface BulkIdsDto {
  769. /**
  770. *
  771. * @type {Array<string>}
  772. * @memberof BulkIdsDto
  773. */
  774. 'ids': Array<string>;
  775. }
  776. /**
  777. *
  778. * @export
  779. * @interface ChangePasswordDto
  780. */
  781. export interface ChangePasswordDto {
  782. /**
  783. *
  784. * @type {string}
  785. * @memberof ChangePasswordDto
  786. */
  787. 'newPassword': string;
  788. /**
  789. *
  790. * @type {string}
  791. * @memberof ChangePasswordDto
  792. */
  793. 'password': string;
  794. }
  795. /**
  796. *
  797. * @export
  798. * @interface CheckDuplicateAssetDto
  799. */
  800. export interface CheckDuplicateAssetDto {
  801. /**
  802. *
  803. * @type {string}
  804. * @memberof CheckDuplicateAssetDto
  805. */
  806. 'deviceAssetId': string;
  807. /**
  808. *
  809. * @type {string}
  810. * @memberof CheckDuplicateAssetDto
  811. */
  812. 'deviceId': string;
  813. }
  814. /**
  815. *
  816. * @export
  817. * @interface CheckDuplicateAssetResponseDto
  818. */
  819. export interface CheckDuplicateAssetResponseDto {
  820. /**
  821. *
  822. * @type {string}
  823. * @memberof CheckDuplicateAssetResponseDto
  824. */
  825. 'id'?: string;
  826. /**
  827. *
  828. * @type {boolean}
  829. * @memberof CheckDuplicateAssetResponseDto
  830. */
  831. 'isExist': boolean;
  832. }
  833. /**
  834. *
  835. * @export
  836. * @interface CheckExistingAssetsDto
  837. */
  838. export interface CheckExistingAssetsDto {
  839. /**
  840. *
  841. * @type {Array<string>}
  842. * @memberof CheckExistingAssetsDto
  843. */
  844. 'deviceAssetIds': Array<string>;
  845. /**
  846. *
  847. * @type {string}
  848. * @memberof CheckExistingAssetsDto
  849. */
  850. 'deviceId': string;
  851. }
  852. /**
  853. *
  854. * @export
  855. * @interface CheckExistingAssetsResponseDto
  856. */
  857. export interface CheckExistingAssetsResponseDto {
  858. /**
  859. *
  860. * @type {Array<string>}
  861. * @memberof CheckExistingAssetsResponseDto
  862. */
  863. 'existingIds': Array<string>;
  864. }
  865. /**
  866. *
  867. * @export
  868. * @interface CreateAlbumDto
  869. */
  870. export interface CreateAlbumDto {
  871. /**
  872. *
  873. * @type {string}
  874. * @memberof CreateAlbumDto
  875. */
  876. 'albumName': string;
  877. /**
  878. *
  879. * @type {Array<string>}
  880. * @memberof CreateAlbumDto
  881. */
  882. 'assetIds'?: Array<string>;
  883. /**
  884. *
  885. * @type {Array<string>}
  886. * @memberof CreateAlbumDto
  887. */
  888. 'sharedWithUserIds'?: Array<string>;
  889. }
  890. /**
  891. *
  892. * @export
  893. * @interface CreateProfileImageResponseDto
  894. */
  895. export interface CreateProfileImageResponseDto {
  896. /**
  897. *
  898. * @type {string}
  899. * @memberof CreateProfileImageResponseDto
  900. */
  901. 'profileImagePath': string;
  902. /**
  903. *
  904. * @type {string}
  905. * @memberof CreateProfileImageResponseDto
  906. */
  907. 'userId': string;
  908. }
  909. /**
  910. *
  911. * @export
  912. * @interface CreateTagDto
  913. */
  914. export interface CreateTagDto {
  915. /**
  916. *
  917. * @type {string}
  918. * @memberof CreateTagDto
  919. */
  920. 'name': string;
  921. /**
  922. *
  923. * @type {TagTypeEnum}
  924. * @memberof CreateTagDto
  925. */
  926. 'type': TagTypeEnum;
  927. }
  928. /**
  929. *
  930. * @export
  931. * @interface CreateUserDto
  932. */
  933. export interface CreateUserDto {
  934. /**
  935. *
  936. * @type {string}
  937. * @memberof CreateUserDto
  938. */
  939. 'email': string;
  940. /**
  941. *
  942. * @type {string}
  943. * @memberof CreateUserDto
  944. */
  945. 'externalPath'?: string | null;
  946. /**
  947. *
  948. * @type {string}
  949. * @memberof CreateUserDto
  950. */
  951. 'firstName': string;
  952. /**
  953. *
  954. * @type {string}
  955. * @memberof CreateUserDto
  956. */
  957. 'lastName': string;
  958. /**
  959. *
  960. * @type {string}
  961. * @memberof CreateUserDto
  962. */
  963. 'password': string;
  964. /**
  965. *
  966. * @type {string}
  967. * @memberof CreateUserDto
  968. */
  969. 'storageLabel'?: string | null;
  970. }
  971. /**
  972. *
  973. * @export
  974. * @interface CuratedLocationsResponseDto
  975. */
  976. export interface CuratedLocationsResponseDto {
  977. /**
  978. *
  979. * @type {string}
  980. * @memberof CuratedLocationsResponseDto
  981. */
  982. 'city': string;
  983. /**
  984. *
  985. * @type {string}
  986. * @memberof CuratedLocationsResponseDto
  987. */
  988. 'deviceAssetId': string;
  989. /**
  990. *
  991. * @type {string}
  992. * @memberof CuratedLocationsResponseDto
  993. */
  994. 'deviceId': string;
  995. /**
  996. *
  997. * @type {string}
  998. * @memberof CuratedLocationsResponseDto
  999. */
  1000. 'id': string;
  1001. /**
  1002. *
  1003. * @type {string}
  1004. * @memberof CuratedLocationsResponseDto
  1005. */
  1006. 'resizePath': string;
  1007. }
  1008. /**
  1009. *
  1010. * @export
  1011. * @interface CuratedObjectsResponseDto
  1012. */
  1013. export interface CuratedObjectsResponseDto {
  1014. /**
  1015. *
  1016. * @type {string}
  1017. * @memberof CuratedObjectsResponseDto
  1018. */
  1019. 'deviceAssetId': string;
  1020. /**
  1021. *
  1022. * @type {string}
  1023. * @memberof CuratedObjectsResponseDto
  1024. */
  1025. 'deviceId': string;
  1026. /**
  1027. *
  1028. * @type {string}
  1029. * @memberof CuratedObjectsResponseDto
  1030. */
  1031. 'id': string;
  1032. /**
  1033. *
  1034. * @type {string}
  1035. * @memberof CuratedObjectsResponseDto
  1036. */
  1037. 'object': string;
  1038. /**
  1039. *
  1040. * @type {string}
  1041. * @memberof CuratedObjectsResponseDto
  1042. */
  1043. 'resizePath': string;
  1044. }
  1045. /**
  1046. *
  1047. * @export
  1048. * @interface DeleteAssetDto
  1049. */
  1050. export interface DeleteAssetDto {
  1051. /**
  1052. *
  1053. * @type {Array<string>}
  1054. * @memberof DeleteAssetDto
  1055. */
  1056. 'ids': Array<string>;
  1057. }
  1058. /**
  1059. *
  1060. * @export
  1061. * @interface DeleteAssetResponseDto
  1062. */
  1063. export interface DeleteAssetResponseDto {
  1064. /**
  1065. *
  1066. * @type {string}
  1067. * @memberof DeleteAssetResponseDto
  1068. */
  1069. 'id': string;
  1070. /**
  1071. *
  1072. * @type {DeleteAssetStatus}
  1073. * @memberof DeleteAssetResponseDto
  1074. */
  1075. 'status': DeleteAssetStatus;
  1076. }
  1077. /**
  1078. *
  1079. * @export
  1080. * @enum {string}
  1081. */
  1082. export const DeleteAssetStatus = {
  1083. Success: 'SUCCESS',
  1084. Failed: 'FAILED'
  1085. } as const;
  1086. export type DeleteAssetStatus = typeof DeleteAssetStatus[keyof typeof DeleteAssetStatus];
  1087. /**
  1088. *
  1089. * @export
  1090. * @interface DownloadArchiveInfo
  1091. */
  1092. export interface DownloadArchiveInfo {
  1093. /**
  1094. *
  1095. * @type {Array<string>}
  1096. * @memberof DownloadArchiveInfo
  1097. */
  1098. 'assetIds': Array<string>;
  1099. /**
  1100. *
  1101. * @type {number}
  1102. * @memberof DownloadArchiveInfo
  1103. */
  1104. 'size': number;
  1105. }
  1106. /**
  1107. *
  1108. * @export
  1109. * @interface DownloadResponseDto
  1110. */
  1111. export interface DownloadResponseDto {
  1112. /**
  1113. *
  1114. * @type {Array<DownloadArchiveInfo>}
  1115. * @memberof DownloadResponseDto
  1116. */
  1117. 'archives': Array<DownloadArchiveInfo>;
  1118. /**
  1119. *
  1120. * @type {number}
  1121. * @memberof DownloadResponseDto
  1122. */
  1123. 'totalSize': number;
  1124. }
  1125. /**
  1126. *
  1127. * @export
  1128. * @interface ExifResponseDto
  1129. */
  1130. export interface ExifResponseDto {
  1131. /**
  1132. *
  1133. * @type {string}
  1134. * @memberof ExifResponseDto
  1135. */
  1136. 'city'?: string | null;
  1137. /**
  1138. *
  1139. * @type {string}
  1140. * @memberof ExifResponseDto
  1141. */
  1142. 'country'?: string | null;
  1143. /**
  1144. *
  1145. * @type {string}
  1146. * @memberof ExifResponseDto
  1147. */
  1148. 'dateTimeOriginal'?: string | null;
  1149. /**
  1150. *
  1151. * @type {string}
  1152. * @memberof ExifResponseDto
  1153. */
  1154. 'description'?: string | null;
  1155. /**
  1156. *
  1157. * @type {number}
  1158. * @memberof ExifResponseDto
  1159. */
  1160. 'exifImageHeight'?: number | null;
  1161. /**
  1162. *
  1163. * @type {number}
  1164. * @memberof ExifResponseDto
  1165. */
  1166. 'exifImageWidth'?: number | null;
  1167. /**
  1168. *
  1169. * @type {string}
  1170. * @memberof ExifResponseDto
  1171. */
  1172. 'exposureTime'?: string | null;
  1173. /**
  1174. *
  1175. * @type {number}
  1176. * @memberof ExifResponseDto
  1177. */
  1178. 'fNumber'?: number | null;
  1179. /**
  1180. *
  1181. * @type {number}
  1182. * @memberof ExifResponseDto
  1183. */
  1184. 'fileSizeInByte'?: number | null;
  1185. /**
  1186. *
  1187. * @type {number}
  1188. * @memberof ExifResponseDto
  1189. */
  1190. 'focalLength'?: number | null;
  1191. /**
  1192. *
  1193. * @type {number}
  1194. * @memberof ExifResponseDto
  1195. */
  1196. 'iso'?: number | null;
  1197. /**
  1198. *
  1199. * @type {number}
  1200. * @memberof ExifResponseDto
  1201. */
  1202. 'latitude'?: number | null;
  1203. /**
  1204. *
  1205. * @type {string}
  1206. * @memberof ExifResponseDto
  1207. */
  1208. 'lensModel'?: string | null;
  1209. /**
  1210. *
  1211. * @type {number}
  1212. * @memberof ExifResponseDto
  1213. */
  1214. 'longitude'?: number | null;
  1215. /**
  1216. *
  1217. * @type {string}
  1218. * @memberof ExifResponseDto
  1219. */
  1220. 'make'?: string | null;
  1221. /**
  1222. *
  1223. * @type {string}
  1224. * @memberof ExifResponseDto
  1225. */
  1226. 'model'?: string | null;
  1227. /**
  1228. *
  1229. * @type {string}
  1230. * @memberof ExifResponseDto
  1231. */
  1232. 'modifyDate'?: string | null;
  1233. /**
  1234. *
  1235. * @type {string}
  1236. * @memberof ExifResponseDto
  1237. */
  1238. 'orientation'?: string | null;
  1239. /**
  1240. *
  1241. * @type {string}
  1242. * @memberof ExifResponseDto
  1243. */
  1244. 'projectionType'?: string | null;
  1245. /**
  1246. *
  1247. * @type {string}
  1248. * @memberof ExifResponseDto
  1249. */
  1250. 'state'?: string | null;
  1251. /**
  1252. *
  1253. * @type {string}
  1254. * @memberof ExifResponseDto
  1255. */
  1256. 'timeZone'?: string | null;
  1257. }
  1258. /**
  1259. *
  1260. * @export
  1261. * @interface GetAssetByTimeBucketDto
  1262. */
  1263. export interface GetAssetByTimeBucketDto {
  1264. /**
  1265. *
  1266. * @type {Array<string>}
  1267. * @memberof GetAssetByTimeBucketDto
  1268. */
  1269. 'timeBucket': Array<string>;
  1270. /**
  1271. *
  1272. * @type {string}
  1273. * @memberof GetAssetByTimeBucketDto
  1274. */
  1275. 'userId'?: string;
  1276. /**
  1277. * Include assets without thumbnails
  1278. * @type {boolean}
  1279. * @memberof GetAssetByTimeBucketDto
  1280. */
  1281. 'withoutThumbs'?: boolean;
  1282. }
  1283. /**
  1284. *
  1285. * @export
  1286. * @interface GetAssetCountByTimeBucketDto
  1287. */
  1288. export interface GetAssetCountByTimeBucketDto {
  1289. /**
  1290. *
  1291. * @type {TimeGroupEnum}
  1292. * @memberof GetAssetCountByTimeBucketDto
  1293. */
  1294. 'timeGroup': TimeGroupEnum;
  1295. /**
  1296. *
  1297. * @type {string}
  1298. * @memberof GetAssetCountByTimeBucketDto
  1299. */
  1300. 'userId'?: string;
  1301. /**
  1302. * Include assets without thumbnails
  1303. * @type {boolean}
  1304. * @memberof GetAssetCountByTimeBucketDto
  1305. */
  1306. 'withoutThumbs'?: boolean;
  1307. }
  1308. /**
  1309. *
  1310. * @export
  1311. * @interface ImportAssetDto
  1312. */
  1313. export interface ImportAssetDto {
  1314. /**
  1315. *
  1316. * @type {string}
  1317. * @memberof ImportAssetDto
  1318. */
  1319. 'assetPath': string;
  1320. /**
  1321. *
  1322. * @type {string}
  1323. * @memberof ImportAssetDto
  1324. */
  1325. 'deviceAssetId': string;
  1326. /**
  1327. *
  1328. * @type {string}
  1329. * @memberof ImportAssetDto
  1330. */
  1331. 'deviceId': string;
  1332. /**
  1333. *
  1334. * @type {string}
  1335. * @memberof ImportAssetDto
  1336. */
  1337. 'duration'?: string;
  1338. /**
  1339. *
  1340. * @type {string}
  1341. * @memberof ImportAssetDto
  1342. */
  1343. 'fileCreatedAt': string;
  1344. /**
  1345. *
  1346. * @type {string}
  1347. * @memberof ImportAssetDto
  1348. */
  1349. 'fileModifiedAt': string;
  1350. /**
  1351. *
  1352. * @type {boolean}
  1353. * @memberof ImportAssetDto
  1354. */
  1355. 'isArchived'?: boolean;
  1356. /**
  1357. *
  1358. * @type {boolean}
  1359. * @memberof ImportAssetDto
  1360. */
  1361. 'isFavorite': boolean;
  1362. /**
  1363. *
  1364. * @type {boolean}
  1365. * @memberof ImportAssetDto
  1366. */
  1367. 'isReadOnly'?: boolean;
  1368. /**
  1369. *
  1370. * @type {boolean}
  1371. * @memberof ImportAssetDto
  1372. */
  1373. 'isVisible'?: boolean;
  1374. /**
  1375. *
  1376. * @type {string}
  1377. * @memberof ImportAssetDto
  1378. */
  1379. 'sidecarPath'?: string;
  1380. }
  1381. /**
  1382. *
  1383. * @export
  1384. * @enum {string}
  1385. */
  1386. export const JobCommand = {
  1387. Start: 'start',
  1388. Pause: 'pause',
  1389. Resume: 'resume',
  1390. Empty: 'empty'
  1391. } as const;
  1392. export type JobCommand = typeof JobCommand[keyof typeof JobCommand];
  1393. /**
  1394. *
  1395. * @export
  1396. * @interface JobCommandDto
  1397. */
  1398. export interface JobCommandDto {
  1399. /**
  1400. *
  1401. * @type {JobCommand}
  1402. * @memberof JobCommandDto
  1403. */
  1404. 'command': JobCommand;
  1405. /**
  1406. *
  1407. * @type {boolean}
  1408. * @memberof JobCommandDto
  1409. */
  1410. 'force': boolean;
  1411. }
  1412. /**
  1413. *
  1414. * @export
  1415. * @interface JobCountsDto
  1416. */
  1417. export interface JobCountsDto {
  1418. /**
  1419. *
  1420. * @type {number}
  1421. * @memberof JobCountsDto
  1422. */
  1423. 'active': number;
  1424. /**
  1425. *
  1426. * @type {number}
  1427. * @memberof JobCountsDto
  1428. */
  1429. 'completed': number;
  1430. /**
  1431. *
  1432. * @type {number}
  1433. * @memberof JobCountsDto
  1434. */
  1435. 'delayed': number;
  1436. /**
  1437. *
  1438. * @type {number}
  1439. * @memberof JobCountsDto
  1440. */
  1441. 'failed': number;
  1442. /**
  1443. *
  1444. * @type {number}
  1445. * @memberof JobCountsDto
  1446. */
  1447. 'paused': number;
  1448. /**
  1449. *
  1450. * @type {number}
  1451. * @memberof JobCountsDto
  1452. */
  1453. 'waiting': number;
  1454. }
  1455. /**
  1456. *
  1457. * @export
  1458. * @enum {string}
  1459. */
  1460. export const JobName = {
  1461. ThumbnailGeneration: 'thumbnailGeneration',
  1462. MetadataExtraction: 'metadataExtraction',
  1463. VideoConversion: 'videoConversion',
  1464. ObjectTagging: 'objectTagging',
  1465. RecognizeFaces: 'recognizeFaces',
  1466. ClipEncoding: 'clipEncoding',
  1467. BackgroundTask: 'backgroundTask',
  1468. StorageTemplateMigration: 'storageTemplateMigration',
  1469. Search: 'search',
  1470. Sidecar: 'sidecar'
  1471. } as const;
  1472. export type JobName = typeof JobName[keyof typeof JobName];
  1473. /**
  1474. *
  1475. * @export
  1476. * @interface JobSettingsDto
  1477. */
  1478. export interface JobSettingsDto {
  1479. /**
  1480. *
  1481. * @type {number}
  1482. * @memberof JobSettingsDto
  1483. */
  1484. 'concurrency': number;
  1485. }
  1486. /**
  1487. *
  1488. * @export
  1489. * @interface JobStatusDto
  1490. */
  1491. export interface JobStatusDto {
  1492. /**
  1493. *
  1494. * @type {JobCountsDto}
  1495. * @memberof JobStatusDto
  1496. */
  1497. 'jobCounts': JobCountsDto;
  1498. /**
  1499. *
  1500. * @type {QueueStatusDto}
  1501. * @memberof JobStatusDto
  1502. */
  1503. 'queueStatus': QueueStatusDto;
  1504. }
  1505. /**
  1506. *
  1507. * @export
  1508. * @interface LoginCredentialDto
  1509. */
  1510. export interface LoginCredentialDto {
  1511. /**
  1512. *
  1513. * @type {string}
  1514. * @memberof LoginCredentialDto
  1515. */
  1516. 'email': string;
  1517. /**
  1518. *
  1519. * @type {string}
  1520. * @memberof LoginCredentialDto
  1521. */
  1522. 'password': string;
  1523. }
  1524. /**
  1525. *
  1526. * @export
  1527. * @interface LoginResponseDto
  1528. */
  1529. export interface LoginResponseDto {
  1530. /**
  1531. *
  1532. * @type {string}
  1533. * @memberof LoginResponseDto
  1534. */
  1535. 'accessToken': string;
  1536. /**
  1537. *
  1538. * @type {string}
  1539. * @memberof LoginResponseDto
  1540. */
  1541. 'firstName': string;
  1542. /**
  1543. *
  1544. * @type {boolean}
  1545. * @memberof LoginResponseDto
  1546. */
  1547. 'isAdmin': boolean;
  1548. /**
  1549. *
  1550. * @type {string}
  1551. * @memberof LoginResponseDto
  1552. */
  1553. 'lastName': string;
  1554. /**
  1555. *
  1556. * @type {string}
  1557. * @memberof LoginResponseDto
  1558. */
  1559. 'profileImagePath': string;
  1560. /**
  1561. *
  1562. * @type {boolean}
  1563. * @memberof LoginResponseDto
  1564. */
  1565. 'shouldChangePassword': boolean;
  1566. /**
  1567. *
  1568. * @type {string}
  1569. * @memberof LoginResponseDto
  1570. */
  1571. 'userEmail': string;
  1572. /**
  1573. *
  1574. * @type {string}
  1575. * @memberof LoginResponseDto
  1576. */
  1577. 'userId': string;
  1578. }
  1579. /**
  1580. *
  1581. * @export
  1582. * @interface LogoutResponseDto
  1583. */
  1584. export interface LogoutResponseDto {
  1585. /**
  1586. *
  1587. * @type {string}
  1588. * @memberof LogoutResponseDto
  1589. */
  1590. 'redirectUri': string;
  1591. /**
  1592. *
  1593. * @type {boolean}
  1594. * @memberof LogoutResponseDto
  1595. */
  1596. 'successful': boolean;
  1597. }
  1598. /**
  1599. *
  1600. * @export
  1601. * @interface MapMarkerResponseDto
  1602. */
  1603. export interface MapMarkerResponseDto {
  1604. /**
  1605. *
  1606. * @type {string}
  1607. * @memberof MapMarkerResponseDto
  1608. */
  1609. 'id': string;
  1610. /**
  1611. *
  1612. * @type {number}
  1613. * @memberof MapMarkerResponseDto
  1614. */
  1615. 'lat': number;
  1616. /**
  1617. *
  1618. * @type {number}
  1619. * @memberof MapMarkerResponseDto
  1620. */
  1621. 'lon': number;
  1622. }
  1623. /**
  1624. *
  1625. * @export
  1626. * @interface MemoryLaneResponseDto
  1627. */
  1628. export interface MemoryLaneResponseDto {
  1629. /**
  1630. *
  1631. * @type {Array<AssetResponseDto>}
  1632. * @memberof MemoryLaneResponseDto
  1633. */
  1634. 'assets': Array<AssetResponseDto>;
  1635. /**
  1636. *
  1637. * @type {string}
  1638. * @memberof MemoryLaneResponseDto
  1639. */
  1640. 'title': string;
  1641. }
  1642. /**
  1643. *
  1644. * @export
  1645. * @interface MergePersonDto
  1646. */
  1647. export interface MergePersonDto {
  1648. /**
  1649. *
  1650. * @type {Array<string>}
  1651. * @memberof MergePersonDto
  1652. */
  1653. 'ids': Array<string>;
  1654. }
  1655. /**
  1656. *
  1657. * @export
  1658. * @interface OAuthCallbackDto
  1659. */
  1660. export interface OAuthCallbackDto {
  1661. /**
  1662. *
  1663. * @type {string}
  1664. * @memberof OAuthCallbackDto
  1665. */
  1666. 'url': string;
  1667. }
  1668. /**
  1669. *
  1670. * @export
  1671. * @interface OAuthConfigDto
  1672. */
  1673. export interface OAuthConfigDto {
  1674. /**
  1675. *
  1676. * @type {string}
  1677. * @memberof OAuthConfigDto
  1678. */
  1679. 'redirectUri': string;
  1680. }
  1681. /**
  1682. *
  1683. * @export
  1684. * @interface OAuthConfigResponseDto
  1685. */
  1686. export interface OAuthConfigResponseDto {
  1687. /**
  1688. *
  1689. * @type {boolean}
  1690. * @memberof OAuthConfigResponseDto
  1691. */
  1692. 'autoLaunch'?: boolean;
  1693. /**
  1694. *
  1695. * @type {string}
  1696. * @memberof OAuthConfigResponseDto
  1697. */
  1698. 'buttonText'?: string;
  1699. /**
  1700. *
  1701. * @type {boolean}
  1702. * @memberof OAuthConfigResponseDto
  1703. */
  1704. 'enabled': boolean;
  1705. /**
  1706. *
  1707. * @type {boolean}
  1708. * @memberof OAuthConfigResponseDto
  1709. */
  1710. 'passwordLoginEnabled': boolean;
  1711. /**
  1712. *
  1713. * @type {string}
  1714. * @memberof OAuthConfigResponseDto
  1715. */
  1716. 'url'?: string;
  1717. }
  1718. /**
  1719. *
  1720. * @export
  1721. * @interface PeopleResponseDto
  1722. */
  1723. export interface PeopleResponseDto {
  1724. /**
  1725. *
  1726. * @type {Array<PersonResponseDto>}
  1727. * @memberof PeopleResponseDto
  1728. */
  1729. 'people': Array<PersonResponseDto>;
  1730. /**
  1731. *
  1732. * @type {number}
  1733. * @memberof PeopleResponseDto
  1734. */
  1735. 'total': number;
  1736. /**
  1737. *
  1738. * @type {number}
  1739. * @memberof PeopleResponseDto
  1740. */
  1741. 'visible': number;
  1742. }
  1743. /**
  1744. *
  1745. * @export
  1746. * @interface PeopleUpdateDto
  1747. */
  1748. export interface PeopleUpdateDto {
  1749. /**
  1750. *
  1751. * @type {Array<PeopleUpdateItem>}
  1752. * @memberof PeopleUpdateDto
  1753. */
  1754. 'people': Array<PeopleUpdateItem>;
  1755. }
  1756. /**
  1757. *
  1758. * @export
  1759. * @interface PeopleUpdateItem
  1760. */
  1761. export interface PeopleUpdateItem {
  1762. /**
  1763. * Asset is used to get the feature face thumbnail.
  1764. * @type {string}
  1765. * @memberof PeopleUpdateItem
  1766. */
  1767. 'featureFaceAssetId'?: string;
  1768. /**
  1769. * Person id.
  1770. * @type {string}
  1771. * @memberof PeopleUpdateItem
  1772. */
  1773. 'id': string;
  1774. /**
  1775. * Person visibility
  1776. * @type {boolean}
  1777. * @memberof PeopleUpdateItem
  1778. */
  1779. 'isHidden'?: boolean;
  1780. /**
  1781. * Person name.
  1782. * @type {string}
  1783. * @memberof PeopleUpdateItem
  1784. */
  1785. 'name'?: string;
  1786. }
  1787. /**
  1788. *
  1789. * @export
  1790. * @interface PersonResponseDto
  1791. */
  1792. export interface PersonResponseDto {
  1793. /**
  1794. *
  1795. * @type {string}
  1796. * @memberof PersonResponseDto
  1797. */
  1798. 'id': string;
  1799. /**
  1800. *
  1801. * @type {boolean}
  1802. * @memberof PersonResponseDto
  1803. */
  1804. 'isHidden': boolean;
  1805. /**
  1806. *
  1807. * @type {string}
  1808. * @memberof PersonResponseDto
  1809. */
  1810. 'name': string;
  1811. /**
  1812. *
  1813. * @type {string}
  1814. * @memberof PersonResponseDto
  1815. */
  1816. 'thumbnailPath': string;
  1817. }
  1818. /**
  1819. *
  1820. * @export
  1821. * @interface PersonUpdateDto
  1822. */
  1823. export interface PersonUpdateDto {
  1824. /**
  1825. * Asset is used to get the feature face thumbnail.
  1826. * @type {string}
  1827. * @memberof PersonUpdateDto
  1828. */
  1829. 'featureFaceAssetId'?: string;
  1830. /**
  1831. * Person visibility
  1832. * @type {boolean}
  1833. * @memberof PersonUpdateDto
  1834. */
  1835. 'isHidden'?: boolean;
  1836. /**
  1837. * Person name.
  1838. * @type {string}
  1839. * @memberof PersonUpdateDto
  1840. */
  1841. 'name'?: string;
  1842. }
  1843. /**
  1844. *
  1845. * @export
  1846. * @interface QueueStatusDto
  1847. */
  1848. export interface QueueStatusDto {
  1849. /**
  1850. *
  1851. * @type {boolean}
  1852. * @memberof QueueStatusDto
  1853. */
  1854. 'isActive': boolean;
  1855. /**
  1856. *
  1857. * @type {boolean}
  1858. * @memberof QueueStatusDto
  1859. */
  1860. 'isPaused': boolean;
  1861. }
  1862. /**
  1863. *
  1864. * @export
  1865. * @interface SearchAlbumResponseDto
  1866. */
  1867. export interface SearchAlbumResponseDto {
  1868. /**
  1869. *
  1870. * @type {number}
  1871. * @memberof SearchAlbumResponseDto
  1872. */
  1873. 'count': number;
  1874. /**
  1875. *
  1876. * @type {Array<SearchFacetResponseDto>}
  1877. * @memberof SearchAlbumResponseDto
  1878. */
  1879. 'facets': Array<SearchFacetResponseDto>;
  1880. /**
  1881. *
  1882. * @type {Array<AlbumResponseDto>}
  1883. * @memberof SearchAlbumResponseDto
  1884. */
  1885. 'items': Array<AlbumResponseDto>;
  1886. /**
  1887. *
  1888. * @type {number}
  1889. * @memberof SearchAlbumResponseDto
  1890. */
  1891. 'total': number;
  1892. }
  1893. /**
  1894. *
  1895. * @export
  1896. * @interface SearchAssetDto
  1897. */
  1898. export interface SearchAssetDto {
  1899. /**
  1900. *
  1901. * @type {string}
  1902. * @memberof SearchAssetDto
  1903. */
  1904. 'searchTerm': string;
  1905. }
  1906. /**
  1907. *
  1908. * @export
  1909. * @interface SearchAssetResponseDto
  1910. */
  1911. export interface SearchAssetResponseDto {
  1912. /**
  1913. *
  1914. * @type {number}
  1915. * @memberof SearchAssetResponseDto
  1916. */
  1917. 'count': number;
  1918. /**
  1919. *
  1920. * @type {Array<SearchFacetResponseDto>}
  1921. * @memberof SearchAssetResponseDto
  1922. */
  1923. 'facets': Array<SearchFacetResponseDto>;
  1924. /**
  1925. *
  1926. * @type {Array<AssetResponseDto>}
  1927. * @memberof SearchAssetResponseDto
  1928. */
  1929. 'items': Array<AssetResponseDto>;
  1930. /**
  1931. *
  1932. * @type {number}
  1933. * @memberof SearchAssetResponseDto
  1934. */
  1935. 'total': number;
  1936. }
  1937. /**
  1938. *
  1939. * @export
  1940. * @interface SearchConfigResponseDto
  1941. */
  1942. export interface SearchConfigResponseDto {
  1943. /**
  1944. *
  1945. * @type {boolean}
  1946. * @memberof SearchConfigResponseDto
  1947. */
  1948. 'enabled': boolean;
  1949. }
  1950. /**
  1951. *
  1952. * @export
  1953. * @interface SearchExploreItem
  1954. */
  1955. export interface SearchExploreItem {
  1956. /**
  1957. *
  1958. * @type {AssetResponseDto}
  1959. * @memberof SearchExploreItem
  1960. */
  1961. 'data': AssetResponseDto;
  1962. /**
  1963. *
  1964. * @type {string}
  1965. * @memberof SearchExploreItem
  1966. */
  1967. 'value': string;
  1968. }
  1969. /**
  1970. *
  1971. * @export
  1972. * @interface SearchExploreResponseDto
  1973. */
  1974. export interface SearchExploreResponseDto {
  1975. /**
  1976. *
  1977. * @type {string}
  1978. * @memberof SearchExploreResponseDto
  1979. */
  1980. 'fieldName': string;
  1981. /**
  1982. *
  1983. * @type {Array<SearchExploreItem>}
  1984. * @memberof SearchExploreResponseDto
  1985. */
  1986. 'items': Array<SearchExploreItem>;
  1987. }
  1988. /**
  1989. *
  1990. * @export
  1991. * @interface SearchFacetCountResponseDto
  1992. */
  1993. export interface SearchFacetCountResponseDto {
  1994. /**
  1995. *
  1996. * @type {number}
  1997. * @memberof SearchFacetCountResponseDto
  1998. */
  1999. 'count': number;
  2000. /**
  2001. *
  2002. * @type {string}
  2003. * @memberof SearchFacetCountResponseDto
  2004. */
  2005. 'value': string;
  2006. }
  2007. /**
  2008. *
  2009. * @export
  2010. * @interface SearchFacetResponseDto
  2011. */
  2012. export interface SearchFacetResponseDto {
  2013. /**
  2014. *
  2015. * @type {Array<SearchFacetCountResponseDto>}
  2016. * @memberof SearchFacetResponseDto
  2017. */
  2018. 'counts': Array<SearchFacetCountResponseDto>;
  2019. /**
  2020. *
  2021. * @type {string}
  2022. * @memberof SearchFacetResponseDto
  2023. */
  2024. 'fieldName': string;
  2025. }
  2026. /**
  2027. *
  2028. * @export
  2029. * @interface SearchResponseDto
  2030. */
  2031. export interface SearchResponseDto {
  2032. /**
  2033. *
  2034. * @type {SearchAlbumResponseDto}
  2035. * @memberof SearchResponseDto
  2036. */
  2037. 'albums': SearchAlbumResponseDto;
  2038. /**
  2039. *
  2040. * @type {SearchAssetResponseDto}
  2041. * @memberof SearchResponseDto
  2042. */
  2043. 'assets': SearchAssetResponseDto;
  2044. }
  2045. /**
  2046. *
  2047. * @export
  2048. * @interface ServerInfoResponseDto
  2049. */
  2050. export interface ServerInfoResponseDto {
  2051. /**
  2052. *
  2053. * @type {string}
  2054. * @memberof ServerInfoResponseDto
  2055. */
  2056. 'diskAvailable': string;
  2057. /**
  2058. *
  2059. * @type {number}
  2060. * @memberof ServerInfoResponseDto
  2061. */
  2062. 'diskAvailableRaw': number;
  2063. /**
  2064. *
  2065. * @type {string}
  2066. * @memberof ServerInfoResponseDto
  2067. */
  2068. 'diskSize': string;
  2069. /**
  2070. *
  2071. * @type {number}
  2072. * @memberof ServerInfoResponseDto
  2073. */
  2074. 'diskSizeRaw': number;
  2075. /**
  2076. *
  2077. * @type {number}
  2078. * @memberof ServerInfoResponseDto
  2079. */
  2080. 'diskUsagePercentage': number;
  2081. /**
  2082. *
  2083. * @type {string}
  2084. * @memberof ServerInfoResponseDto
  2085. */
  2086. 'diskUse': string;
  2087. /**
  2088. *
  2089. * @type {number}
  2090. * @memberof ServerInfoResponseDto
  2091. */
  2092. 'diskUseRaw': number;
  2093. }
  2094. /**
  2095. *
  2096. * @export
  2097. * @interface ServerMediaTypesResponseDto
  2098. */
  2099. export interface ServerMediaTypesResponseDto {
  2100. /**
  2101. *
  2102. * @type {Array<string>}
  2103. * @memberof ServerMediaTypesResponseDto
  2104. */
  2105. 'image': Array<string>;
  2106. /**
  2107. *
  2108. * @type {Array<string>}
  2109. * @memberof ServerMediaTypesResponseDto
  2110. */
  2111. 'sidecar': Array<string>;
  2112. /**
  2113. *
  2114. * @type {Array<string>}
  2115. * @memberof ServerMediaTypesResponseDto
  2116. */
  2117. 'video': Array<string>;
  2118. }
  2119. /**
  2120. *
  2121. * @export
  2122. * @interface ServerPingResponse
  2123. */
  2124. export interface ServerPingResponse {
  2125. /**
  2126. *
  2127. * @type {string}
  2128. * @memberof ServerPingResponse
  2129. */
  2130. 'res': string;
  2131. }
  2132. /**
  2133. *
  2134. * @export
  2135. * @interface ServerStatsResponseDto
  2136. */
  2137. export interface ServerStatsResponseDto {
  2138. /**
  2139. *
  2140. * @type {number}
  2141. * @memberof ServerStatsResponseDto
  2142. */
  2143. 'photos': number;
  2144. /**
  2145. *
  2146. * @type {number}
  2147. * @memberof ServerStatsResponseDto
  2148. */
  2149. 'usage': number;
  2150. /**
  2151. *
  2152. * @type {Array<UsageByUserDto>}
  2153. * @memberof ServerStatsResponseDto
  2154. */
  2155. 'usageByUser': Array<UsageByUserDto>;
  2156. /**
  2157. *
  2158. * @type {number}
  2159. * @memberof ServerStatsResponseDto
  2160. */
  2161. 'videos': number;
  2162. }
  2163. /**
  2164. *
  2165. * @export
  2166. * @interface ServerVersionReponseDto
  2167. */
  2168. export interface ServerVersionReponseDto {
  2169. /**
  2170. *
  2171. * @type {number}
  2172. * @memberof ServerVersionReponseDto
  2173. */
  2174. 'major': number;
  2175. /**
  2176. *
  2177. * @type {number}
  2178. * @memberof ServerVersionReponseDto
  2179. */
  2180. 'minor': number;
  2181. /**
  2182. *
  2183. * @type {number}
  2184. * @memberof ServerVersionReponseDto
  2185. */
  2186. 'patch': number;
  2187. }
  2188. /**
  2189. *
  2190. * @export
  2191. * @interface SharedLinkCreateDto
  2192. */
  2193. export interface SharedLinkCreateDto {
  2194. /**
  2195. *
  2196. * @type {string}
  2197. * @memberof SharedLinkCreateDto
  2198. */
  2199. 'albumId'?: string;
  2200. /**
  2201. *
  2202. * @type {boolean}
  2203. * @memberof SharedLinkCreateDto
  2204. */
  2205. 'allowDownload'?: boolean;
  2206. /**
  2207. *
  2208. * @type {boolean}
  2209. * @memberof SharedLinkCreateDto
  2210. */
  2211. 'allowUpload'?: boolean;
  2212. /**
  2213. *
  2214. * @type {Array<string>}
  2215. * @memberof SharedLinkCreateDto
  2216. */
  2217. 'assetIds'?: Array<string>;
  2218. /**
  2219. *
  2220. * @type {string}
  2221. * @memberof SharedLinkCreateDto
  2222. */
  2223. 'description'?: string;
  2224. /**
  2225. *
  2226. * @type {string}
  2227. * @memberof SharedLinkCreateDto
  2228. */
  2229. 'expiresAt'?: string | null;
  2230. /**
  2231. *
  2232. * @type {boolean}
  2233. * @memberof SharedLinkCreateDto
  2234. */
  2235. 'showExif'?: boolean;
  2236. /**
  2237. *
  2238. * @type {SharedLinkType}
  2239. * @memberof SharedLinkCreateDto
  2240. */
  2241. 'type': SharedLinkType;
  2242. }
  2243. /**
  2244. *
  2245. * @export
  2246. * @interface SharedLinkEditDto
  2247. */
  2248. export interface SharedLinkEditDto {
  2249. /**
  2250. *
  2251. * @type {boolean}
  2252. * @memberof SharedLinkEditDto
  2253. */
  2254. 'allowDownload'?: boolean;
  2255. /**
  2256. *
  2257. * @type {boolean}
  2258. * @memberof SharedLinkEditDto
  2259. */
  2260. 'allowUpload'?: boolean;
  2261. /**
  2262. *
  2263. * @type {string}
  2264. * @memberof SharedLinkEditDto
  2265. */
  2266. 'description'?: string;
  2267. /**
  2268. *
  2269. * @type {string}
  2270. * @memberof SharedLinkEditDto
  2271. */
  2272. 'expiresAt'?: string | null;
  2273. /**
  2274. *
  2275. * @type {boolean}
  2276. * @memberof SharedLinkEditDto
  2277. */
  2278. 'showExif'?: boolean;
  2279. }
  2280. /**
  2281. *
  2282. * @export
  2283. * @interface SharedLinkResponseDto
  2284. */
  2285. export interface SharedLinkResponseDto {
  2286. /**
  2287. *
  2288. * @type {AlbumResponseDto}
  2289. * @memberof SharedLinkResponseDto
  2290. */
  2291. 'album'?: AlbumResponseDto;
  2292. /**
  2293. *
  2294. * @type {boolean}
  2295. * @memberof SharedLinkResponseDto
  2296. */
  2297. 'allowDownload': boolean;
  2298. /**
  2299. *
  2300. * @type {boolean}
  2301. * @memberof SharedLinkResponseDto
  2302. */
  2303. 'allowUpload': boolean;
  2304. /**
  2305. *
  2306. * @type {Array<AssetResponseDto>}
  2307. * @memberof SharedLinkResponseDto
  2308. */
  2309. 'assets': Array<AssetResponseDto>;
  2310. /**
  2311. *
  2312. * @type {string}
  2313. * @memberof SharedLinkResponseDto
  2314. */
  2315. 'createdAt': string;
  2316. /**
  2317. *
  2318. * @type {string}
  2319. * @memberof SharedLinkResponseDto
  2320. */
  2321. 'description': string | null;
  2322. /**
  2323. *
  2324. * @type {string}
  2325. * @memberof SharedLinkResponseDto
  2326. */
  2327. 'expiresAt': string | null;
  2328. /**
  2329. *
  2330. * @type {string}
  2331. * @memberof SharedLinkResponseDto
  2332. */
  2333. 'id': string;
  2334. /**
  2335. *
  2336. * @type {string}
  2337. * @memberof SharedLinkResponseDto
  2338. */
  2339. 'key': string;
  2340. /**
  2341. *
  2342. * @type {boolean}
  2343. * @memberof SharedLinkResponseDto
  2344. */
  2345. 'showExif': boolean;
  2346. /**
  2347. *
  2348. * @type {SharedLinkType}
  2349. * @memberof SharedLinkResponseDto
  2350. */
  2351. 'type': SharedLinkType;
  2352. /**
  2353. *
  2354. * @type {string}
  2355. * @memberof SharedLinkResponseDto
  2356. */
  2357. 'userId': string;
  2358. }
  2359. /**
  2360. *
  2361. * @export
  2362. * @enum {string}
  2363. */
  2364. export const SharedLinkType = {
  2365. Album: 'ALBUM',
  2366. Individual: 'INDIVIDUAL'
  2367. } as const;
  2368. export type SharedLinkType = typeof SharedLinkType[keyof typeof SharedLinkType];
  2369. /**
  2370. *
  2371. * @export
  2372. * @interface SignUpDto
  2373. */
  2374. export interface SignUpDto {
  2375. /**
  2376. *
  2377. * @type {string}
  2378. * @memberof SignUpDto
  2379. */
  2380. 'email': string;
  2381. /**
  2382. *
  2383. * @type {string}
  2384. * @memberof SignUpDto
  2385. */
  2386. 'firstName': string;
  2387. /**
  2388. *
  2389. * @type {string}
  2390. * @memberof SignUpDto
  2391. */
  2392. 'lastName': string;
  2393. /**
  2394. *
  2395. * @type {string}
  2396. * @memberof SignUpDto
  2397. */
  2398. 'password': string;
  2399. }
  2400. /**
  2401. *
  2402. * @export
  2403. * @interface SmartInfoResponseDto
  2404. */
  2405. export interface SmartInfoResponseDto {
  2406. /**
  2407. *
  2408. * @type {Array<string>}
  2409. * @memberof SmartInfoResponseDto
  2410. */
  2411. 'objects'?: Array<string> | null;
  2412. /**
  2413. *
  2414. * @type {Array<string>}
  2415. * @memberof SmartInfoResponseDto
  2416. */
  2417. 'tags'?: Array<string> | null;
  2418. }
  2419. /**
  2420. *
  2421. * @export
  2422. * @interface SystemConfigDto
  2423. */
  2424. export interface SystemConfigDto {
  2425. /**
  2426. *
  2427. * @type {SystemConfigFFmpegDto}
  2428. * @memberof SystemConfigDto
  2429. */
  2430. 'ffmpeg': SystemConfigFFmpegDto;
  2431. /**
  2432. *
  2433. * @type {SystemConfigJobDto}
  2434. * @memberof SystemConfigDto
  2435. */
  2436. 'job': SystemConfigJobDto;
  2437. /**
  2438. *
  2439. * @type {SystemConfigOAuthDto}
  2440. * @memberof SystemConfigDto
  2441. */
  2442. 'oauth': SystemConfigOAuthDto;
  2443. /**
  2444. *
  2445. * @type {SystemConfigPasswordLoginDto}
  2446. * @memberof SystemConfigDto
  2447. */
  2448. 'passwordLogin': SystemConfigPasswordLoginDto;
  2449. /**
  2450. *
  2451. * @type {SystemConfigStorageTemplateDto}
  2452. * @memberof SystemConfigDto
  2453. */
  2454. 'storageTemplate': SystemConfigStorageTemplateDto;
  2455. }
  2456. /**
  2457. *
  2458. * @export
  2459. * @interface SystemConfigFFmpegDto
  2460. */
  2461. export interface SystemConfigFFmpegDto {
  2462. /**
  2463. *
  2464. * @type {TranscodeHWAccel}
  2465. * @memberof SystemConfigFFmpegDto
  2466. */
  2467. 'accel': TranscodeHWAccel;
  2468. /**
  2469. *
  2470. * @type {number}
  2471. * @memberof SystemConfigFFmpegDto
  2472. */
  2473. 'crf': number;
  2474. /**
  2475. *
  2476. * @type {string}
  2477. * @memberof SystemConfigFFmpegDto
  2478. */
  2479. 'maxBitrate': string;
  2480. /**
  2481. *
  2482. * @type {string}
  2483. * @memberof SystemConfigFFmpegDto
  2484. */
  2485. 'preset': string;
  2486. /**
  2487. *
  2488. * @type {AudioCodec}
  2489. * @memberof SystemConfigFFmpegDto
  2490. */
  2491. 'targetAudioCodec': AudioCodec;
  2492. /**
  2493. *
  2494. * @type {string}
  2495. * @memberof SystemConfigFFmpegDto
  2496. */
  2497. 'targetResolution': string;
  2498. /**
  2499. *
  2500. * @type {VideoCodec}
  2501. * @memberof SystemConfigFFmpegDto
  2502. */
  2503. 'targetVideoCodec': VideoCodec;
  2504. /**
  2505. *
  2506. * @type {number}
  2507. * @memberof SystemConfigFFmpegDto
  2508. */
  2509. 'threads': number;
  2510. /**
  2511. *
  2512. * @type {TranscodePolicy}
  2513. * @memberof SystemConfigFFmpegDto
  2514. */
  2515. 'transcode': TranscodePolicy;
  2516. /**
  2517. *
  2518. * @type {boolean}
  2519. * @memberof SystemConfigFFmpegDto
  2520. */
  2521. 'twoPass': boolean;
  2522. }
  2523. /**
  2524. *
  2525. * @export
  2526. * @interface SystemConfigJobDto
  2527. */
  2528. export interface SystemConfigJobDto {
  2529. /**
  2530. *
  2531. * @type {JobSettingsDto}
  2532. * @memberof SystemConfigJobDto
  2533. */
  2534. 'backgroundTask': JobSettingsDto;
  2535. /**
  2536. *
  2537. * @type {JobSettingsDto}
  2538. * @memberof SystemConfigJobDto
  2539. */
  2540. 'clipEncoding': JobSettingsDto;
  2541. /**
  2542. *
  2543. * @type {JobSettingsDto}
  2544. * @memberof SystemConfigJobDto
  2545. */
  2546. 'metadataExtraction': JobSettingsDto;
  2547. /**
  2548. *
  2549. * @type {JobSettingsDto}
  2550. * @memberof SystemConfigJobDto
  2551. */
  2552. 'objectTagging': JobSettingsDto;
  2553. /**
  2554. *
  2555. * @type {JobSettingsDto}
  2556. * @memberof SystemConfigJobDto
  2557. */
  2558. 'recognizeFaces': JobSettingsDto;
  2559. /**
  2560. *
  2561. * @type {JobSettingsDto}
  2562. * @memberof SystemConfigJobDto
  2563. */
  2564. 'search': JobSettingsDto;
  2565. /**
  2566. *
  2567. * @type {JobSettingsDto}
  2568. * @memberof SystemConfigJobDto
  2569. */
  2570. 'sidecar': JobSettingsDto;
  2571. /**
  2572. *
  2573. * @type {JobSettingsDto}
  2574. * @memberof SystemConfigJobDto
  2575. */
  2576. 'storageTemplateMigration': JobSettingsDto;
  2577. /**
  2578. *
  2579. * @type {JobSettingsDto}
  2580. * @memberof SystemConfigJobDto
  2581. */
  2582. 'thumbnailGeneration': JobSettingsDto;
  2583. /**
  2584. *
  2585. * @type {JobSettingsDto}
  2586. * @memberof SystemConfigJobDto
  2587. */
  2588. 'videoConversion': JobSettingsDto;
  2589. }
  2590. /**
  2591. *
  2592. * @export
  2593. * @interface SystemConfigOAuthDto
  2594. */
  2595. export interface SystemConfigOAuthDto {
  2596. /**
  2597. *
  2598. * @type {boolean}
  2599. * @memberof SystemConfigOAuthDto
  2600. */
  2601. 'autoLaunch': boolean;
  2602. /**
  2603. *
  2604. * @type {boolean}
  2605. * @memberof SystemConfigOAuthDto
  2606. */
  2607. 'autoRegister': boolean;
  2608. /**
  2609. *
  2610. * @type {string}
  2611. * @memberof SystemConfigOAuthDto
  2612. */
  2613. 'buttonText': string;
  2614. /**
  2615. *
  2616. * @type {string}
  2617. * @memberof SystemConfigOAuthDto
  2618. */
  2619. 'clientId': string;
  2620. /**
  2621. *
  2622. * @type {string}
  2623. * @memberof SystemConfigOAuthDto
  2624. */
  2625. 'clientSecret': string;
  2626. /**
  2627. *
  2628. * @type {boolean}
  2629. * @memberof SystemConfigOAuthDto
  2630. */
  2631. 'enabled': boolean;
  2632. /**
  2633. *
  2634. * @type {string}
  2635. * @memberof SystemConfigOAuthDto
  2636. */
  2637. 'issuerUrl': string;
  2638. /**
  2639. *
  2640. * @type {boolean}
  2641. * @memberof SystemConfigOAuthDto
  2642. */
  2643. 'mobileOverrideEnabled': boolean;
  2644. /**
  2645. *
  2646. * @type {string}
  2647. * @memberof SystemConfigOAuthDto
  2648. */
  2649. 'mobileRedirectUri': string;
  2650. /**
  2651. *
  2652. * @type {string}
  2653. * @memberof SystemConfigOAuthDto
  2654. */
  2655. 'scope': string;
  2656. /**
  2657. *
  2658. * @type {string}
  2659. * @memberof SystemConfigOAuthDto
  2660. */
  2661. 'storageLabelClaim': string;
  2662. }
  2663. /**
  2664. *
  2665. * @export
  2666. * @interface SystemConfigPasswordLoginDto
  2667. */
  2668. export interface SystemConfigPasswordLoginDto {
  2669. /**
  2670. *
  2671. * @type {boolean}
  2672. * @memberof SystemConfigPasswordLoginDto
  2673. */
  2674. 'enabled': boolean;
  2675. }
  2676. /**
  2677. *
  2678. * @export
  2679. * @interface SystemConfigStorageTemplateDto
  2680. */
  2681. export interface SystemConfigStorageTemplateDto {
  2682. /**
  2683. *
  2684. * @type {string}
  2685. * @memberof SystemConfigStorageTemplateDto
  2686. */
  2687. 'template': string;
  2688. }
  2689. /**
  2690. *
  2691. * @export
  2692. * @interface SystemConfigTemplateStorageOptionDto
  2693. */
  2694. export interface SystemConfigTemplateStorageOptionDto {
  2695. /**
  2696. *
  2697. * @type {Array<string>}
  2698. * @memberof SystemConfigTemplateStorageOptionDto
  2699. */
  2700. 'dayOptions': Array<string>;
  2701. /**
  2702. *
  2703. * @type {Array<string>}
  2704. * @memberof SystemConfigTemplateStorageOptionDto
  2705. */
  2706. 'hourOptions': Array<string>;
  2707. /**
  2708. *
  2709. * @type {Array<string>}
  2710. * @memberof SystemConfigTemplateStorageOptionDto
  2711. */
  2712. 'minuteOptions': Array<string>;
  2713. /**
  2714. *
  2715. * @type {Array<string>}
  2716. * @memberof SystemConfigTemplateStorageOptionDto
  2717. */
  2718. 'monthOptions': Array<string>;
  2719. /**
  2720. *
  2721. * @type {Array<string>}
  2722. * @memberof SystemConfigTemplateStorageOptionDto
  2723. */
  2724. 'presetOptions': Array<string>;
  2725. /**
  2726. *
  2727. * @type {Array<string>}
  2728. * @memberof SystemConfigTemplateStorageOptionDto
  2729. */
  2730. 'secondOptions': Array<string>;
  2731. /**
  2732. *
  2733. * @type {Array<string>}
  2734. * @memberof SystemConfigTemplateStorageOptionDto
  2735. */
  2736. 'yearOptions': Array<string>;
  2737. }
  2738. /**
  2739. *
  2740. * @export
  2741. * @interface TagResponseDto
  2742. */
  2743. export interface TagResponseDto {
  2744. /**
  2745. *
  2746. * @type {string}
  2747. * @memberof TagResponseDto
  2748. */
  2749. 'id': string;
  2750. /**
  2751. *
  2752. * @type {string}
  2753. * @memberof TagResponseDto
  2754. */
  2755. 'name': string;
  2756. /**
  2757. *
  2758. * @type {TagTypeEnum}
  2759. * @memberof TagResponseDto
  2760. */
  2761. 'type': TagTypeEnum;
  2762. /**
  2763. *
  2764. * @type {string}
  2765. * @memberof TagResponseDto
  2766. */
  2767. 'userId': string;
  2768. }
  2769. /**
  2770. *
  2771. * @export
  2772. * @enum {string}
  2773. */
  2774. export const TagTypeEnum = {
  2775. Object: 'OBJECT',
  2776. Face: 'FACE',
  2777. Custom: 'CUSTOM'
  2778. } as const;
  2779. export type TagTypeEnum = typeof TagTypeEnum[keyof typeof TagTypeEnum];
  2780. /**
  2781. *
  2782. * @export
  2783. * @enum {string}
  2784. */
  2785. export const ThumbnailFormat = {
  2786. Jpeg: 'JPEG',
  2787. Webp: 'WEBP'
  2788. } as const;
  2789. export type ThumbnailFormat = typeof ThumbnailFormat[keyof typeof ThumbnailFormat];
  2790. /**
  2791. *
  2792. * @export
  2793. * @enum {string}
  2794. */
  2795. export const TimeGroupEnum = {
  2796. Day: 'day',
  2797. Month: 'month'
  2798. } as const;
  2799. export type TimeGroupEnum = typeof TimeGroupEnum[keyof typeof TimeGroupEnum];
  2800. /**
  2801. *
  2802. * @export
  2803. * @enum {string}
  2804. */
  2805. export const TranscodeHWAccel = {
  2806. Nvenc: 'nvenc',
  2807. Qsv: 'qsv',
  2808. Vaapi: 'vaapi',
  2809. Disabled: 'disabled'
  2810. } as const;
  2811. export type TranscodeHWAccel = typeof TranscodeHWAccel[keyof typeof TranscodeHWAccel];
  2812. /**
  2813. *
  2814. * @export
  2815. * @enum {string}
  2816. */
  2817. export const TranscodePolicy = {
  2818. All: 'all',
  2819. Optimal: 'optimal',
  2820. Required: 'required',
  2821. Disabled: 'disabled'
  2822. } as const;
  2823. export type TranscodePolicy = typeof TranscodePolicy[keyof typeof TranscodePolicy];
  2824. /**
  2825. *
  2826. * @export
  2827. * @interface UpdateAlbumDto
  2828. */
  2829. export interface UpdateAlbumDto {
  2830. /**
  2831. *
  2832. * @type {string}
  2833. * @memberof UpdateAlbumDto
  2834. */
  2835. 'albumName'?: string;
  2836. /**
  2837. *
  2838. * @type {string}
  2839. * @memberof UpdateAlbumDto
  2840. */
  2841. 'albumThumbnailAssetId'?: string;
  2842. }
  2843. /**
  2844. *
  2845. * @export
  2846. * @interface UpdateAssetDto
  2847. */
  2848. export interface UpdateAssetDto {
  2849. /**
  2850. *
  2851. * @type {string}
  2852. * @memberof UpdateAssetDto
  2853. */
  2854. 'description'?: string;
  2855. /**
  2856. *
  2857. * @type {boolean}
  2858. * @memberof UpdateAssetDto
  2859. */
  2860. 'isArchived'?: boolean;
  2861. /**
  2862. *
  2863. * @type {boolean}
  2864. * @memberof UpdateAssetDto
  2865. */
  2866. 'isFavorite'?: boolean;
  2867. /**
  2868. *
  2869. * @type {Array<string>}
  2870. * @memberof UpdateAssetDto
  2871. */
  2872. 'tagIds'?: Array<string>;
  2873. }
  2874. /**
  2875. *
  2876. * @export
  2877. * @interface UpdateTagDto
  2878. */
  2879. export interface UpdateTagDto {
  2880. /**
  2881. *
  2882. * @type {string}
  2883. * @memberof UpdateTagDto
  2884. */
  2885. 'name'?: string;
  2886. }
  2887. /**
  2888. *
  2889. * @export
  2890. * @interface UpdateUserDto
  2891. */
  2892. export interface UpdateUserDto {
  2893. /**
  2894. *
  2895. * @type {string}
  2896. * @memberof UpdateUserDto
  2897. */
  2898. 'email'?: string;
  2899. /**
  2900. *
  2901. * @type {string}
  2902. * @memberof UpdateUserDto
  2903. */
  2904. 'externalPath'?: string;
  2905. /**
  2906. *
  2907. * @type {string}
  2908. * @memberof UpdateUserDto
  2909. */
  2910. 'firstName'?: string;
  2911. /**
  2912. *
  2913. * @type {string}
  2914. * @memberof UpdateUserDto
  2915. */
  2916. 'id': string;
  2917. /**
  2918. *
  2919. * @type {boolean}
  2920. * @memberof UpdateUserDto
  2921. */
  2922. 'isAdmin'?: boolean;
  2923. /**
  2924. *
  2925. * @type {string}
  2926. * @memberof UpdateUserDto
  2927. */
  2928. 'lastName'?: string;
  2929. /**
  2930. *
  2931. * @type {string}
  2932. * @memberof UpdateUserDto
  2933. */
  2934. 'password'?: string;
  2935. /**
  2936. *
  2937. * @type {boolean}
  2938. * @memberof UpdateUserDto
  2939. */
  2940. 'shouldChangePassword'?: boolean;
  2941. /**
  2942. *
  2943. * @type {string}
  2944. * @memberof UpdateUserDto
  2945. */
  2946. 'storageLabel'?: string;
  2947. }
  2948. /**
  2949. *
  2950. * @export
  2951. * @interface UsageByUserDto
  2952. */
  2953. export interface UsageByUserDto {
  2954. /**
  2955. *
  2956. * @type {number}
  2957. * @memberof UsageByUserDto
  2958. */
  2959. 'photos': number;
  2960. /**
  2961. *
  2962. * @type {number}
  2963. * @memberof UsageByUserDto
  2964. */
  2965. 'usage': number;
  2966. /**
  2967. *
  2968. * @type {string}
  2969. * @memberof UsageByUserDto
  2970. */
  2971. 'userFirstName': string;
  2972. /**
  2973. *
  2974. * @type {string}
  2975. * @memberof UsageByUserDto
  2976. */
  2977. 'userId': string;
  2978. /**
  2979. *
  2980. * @type {string}
  2981. * @memberof UsageByUserDto
  2982. */
  2983. 'userLastName': string;
  2984. /**
  2985. *
  2986. * @type {number}
  2987. * @memberof UsageByUserDto
  2988. */
  2989. 'videos': number;
  2990. }
  2991. /**
  2992. *
  2993. * @export
  2994. * @interface UserCountResponseDto
  2995. */
  2996. export interface UserCountResponseDto {
  2997. /**
  2998. *
  2999. * @type {number}
  3000. * @memberof UserCountResponseDto
  3001. */
  3002. 'userCount': number;
  3003. }
  3004. /**
  3005. *
  3006. * @export
  3007. * @interface UserResponseDto
  3008. */
  3009. export interface UserResponseDto {
  3010. /**
  3011. *
  3012. * @type {string}
  3013. * @memberof UserResponseDto
  3014. */
  3015. 'createdAt': string;
  3016. /**
  3017. *
  3018. * @type {string}
  3019. * @memberof UserResponseDto
  3020. */
  3021. 'deletedAt': string | null;
  3022. /**
  3023. *
  3024. * @type {string}
  3025. * @memberof UserResponseDto
  3026. */
  3027. 'email': string;
  3028. /**
  3029. *
  3030. * @type {string}
  3031. * @memberof UserResponseDto
  3032. */
  3033. 'externalPath': string | null;
  3034. /**
  3035. *
  3036. * @type {string}
  3037. * @memberof UserResponseDto
  3038. */
  3039. 'firstName': string;
  3040. /**
  3041. *
  3042. * @type {string}
  3043. * @memberof UserResponseDto
  3044. */
  3045. 'id': string;
  3046. /**
  3047. *
  3048. * @type {boolean}
  3049. * @memberof UserResponseDto
  3050. */
  3051. 'isAdmin': boolean;
  3052. /**
  3053. *
  3054. * @type {string}
  3055. * @memberof UserResponseDto
  3056. */
  3057. 'lastName': string;
  3058. /**
  3059. *
  3060. * @type {string}
  3061. * @memberof UserResponseDto
  3062. */
  3063. 'oauthId': string;
  3064. /**
  3065. *
  3066. * @type {string}
  3067. * @memberof UserResponseDto
  3068. */
  3069. 'profileImagePath': string;
  3070. /**
  3071. *
  3072. * @type {boolean}
  3073. * @memberof UserResponseDto
  3074. */
  3075. 'shouldChangePassword': boolean;
  3076. /**
  3077. *
  3078. * @type {string}
  3079. * @memberof UserResponseDto
  3080. */
  3081. 'storageLabel': string | null;
  3082. /**
  3083. *
  3084. * @type {string}
  3085. * @memberof UserResponseDto
  3086. */
  3087. 'updatedAt': string;
  3088. }
  3089. /**
  3090. *
  3091. * @export
  3092. * @interface ValidateAccessTokenResponseDto
  3093. */
  3094. export interface ValidateAccessTokenResponseDto {
  3095. /**
  3096. *
  3097. * @type {boolean}
  3098. * @memberof ValidateAccessTokenResponseDto
  3099. */
  3100. 'authStatus': boolean;
  3101. }
  3102. /**
  3103. *
  3104. * @export
  3105. * @enum {string}
  3106. */
  3107. export const VideoCodec = {
  3108. H264: 'h264',
  3109. Hevc: 'hevc',
  3110. Vp9: 'vp9'
  3111. } as const;
  3112. export type VideoCodec = typeof VideoCodec[keyof typeof VideoCodec];
  3113. /**
  3114. * APIKeyApi - axios parameter creator
  3115. * @export
  3116. */
  3117. export const APIKeyApiAxiosParamCreator = function (configuration?: Configuration) {
  3118. return {
  3119. /**
  3120. *
  3121. * @param {APIKeyCreateDto} aPIKeyCreateDto
  3122. * @param {*} [options] Override http request option.
  3123. * @throws {RequiredError}
  3124. */
  3125. createKey: async (aPIKeyCreateDto: APIKeyCreateDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  3126. // verify required parameter 'aPIKeyCreateDto' is not null or undefined
  3127. assertParamExists('createKey', 'aPIKeyCreateDto', aPIKeyCreateDto)
  3128. const localVarPath = `/api-key`;
  3129. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  3130. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  3131. let baseOptions;
  3132. if (configuration) {
  3133. baseOptions = configuration.baseOptions;
  3134. }
  3135. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  3136. const localVarHeaderParameter = {} as any;
  3137. const localVarQueryParameter = {} as any;
  3138. // authentication cookie required
  3139. // authentication api_key required
  3140. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  3141. // authentication bearer required
  3142. // http bearer authentication required
  3143. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  3144. localVarHeaderParameter['Content-Type'] = 'application/json';
  3145. setSearchParams(localVarUrlObj, localVarQueryParameter);
  3146. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  3147. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  3148. localVarRequestOptions.data = serializeDataIfNeeded(aPIKeyCreateDto, localVarRequestOptions, configuration)
  3149. return {
  3150. url: toPathString(localVarUrlObj),
  3151. options: localVarRequestOptions,
  3152. };
  3153. },
  3154. /**
  3155. *
  3156. * @param {string} id
  3157. * @param {*} [options] Override http request option.
  3158. * @throws {RequiredError}
  3159. */
  3160. deleteKey: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  3161. // verify required parameter 'id' is not null or undefined
  3162. assertParamExists('deleteKey', 'id', id)
  3163. const localVarPath = `/api-key/{id}`
  3164. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  3165. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  3166. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  3167. let baseOptions;
  3168. if (configuration) {
  3169. baseOptions = configuration.baseOptions;
  3170. }
  3171. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  3172. const localVarHeaderParameter = {} as any;
  3173. const localVarQueryParameter = {} as any;
  3174. // authentication cookie required
  3175. // authentication api_key required
  3176. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  3177. // authentication bearer required
  3178. // http bearer authentication required
  3179. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  3180. setSearchParams(localVarUrlObj, localVarQueryParameter);
  3181. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  3182. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  3183. return {
  3184. url: toPathString(localVarUrlObj),
  3185. options: localVarRequestOptions,
  3186. };
  3187. },
  3188. /**
  3189. *
  3190. * @param {string} id
  3191. * @param {*} [options] Override http request option.
  3192. * @throws {RequiredError}
  3193. */
  3194. getKey: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  3195. // verify required parameter 'id' is not null or undefined
  3196. assertParamExists('getKey', 'id', id)
  3197. const localVarPath = `/api-key/{id}`
  3198. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  3199. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  3200. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  3201. let baseOptions;
  3202. if (configuration) {
  3203. baseOptions = configuration.baseOptions;
  3204. }
  3205. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  3206. const localVarHeaderParameter = {} as any;
  3207. const localVarQueryParameter = {} as any;
  3208. // authentication cookie required
  3209. // authentication api_key required
  3210. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  3211. // authentication bearer required
  3212. // http bearer authentication required
  3213. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  3214. setSearchParams(localVarUrlObj, localVarQueryParameter);
  3215. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  3216. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  3217. return {
  3218. url: toPathString(localVarUrlObj),
  3219. options: localVarRequestOptions,
  3220. };
  3221. },
  3222. /**
  3223. *
  3224. * @param {*} [options] Override http request option.
  3225. * @throws {RequiredError}
  3226. */
  3227. getKeys: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  3228. const localVarPath = `/api-key`;
  3229. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  3230. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  3231. let baseOptions;
  3232. if (configuration) {
  3233. baseOptions = configuration.baseOptions;
  3234. }
  3235. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  3236. const localVarHeaderParameter = {} as any;
  3237. const localVarQueryParameter = {} as any;
  3238. // authentication cookie required
  3239. // authentication api_key required
  3240. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  3241. // authentication bearer required
  3242. // http bearer authentication required
  3243. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  3244. setSearchParams(localVarUrlObj, localVarQueryParameter);
  3245. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  3246. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  3247. return {
  3248. url: toPathString(localVarUrlObj),
  3249. options: localVarRequestOptions,
  3250. };
  3251. },
  3252. /**
  3253. *
  3254. * @param {string} id
  3255. * @param {APIKeyUpdateDto} aPIKeyUpdateDto
  3256. * @param {*} [options] Override http request option.
  3257. * @throws {RequiredError}
  3258. */
  3259. updateKey: async (id: string, aPIKeyUpdateDto: APIKeyUpdateDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  3260. // verify required parameter 'id' is not null or undefined
  3261. assertParamExists('updateKey', 'id', id)
  3262. // verify required parameter 'aPIKeyUpdateDto' is not null or undefined
  3263. assertParamExists('updateKey', 'aPIKeyUpdateDto', aPIKeyUpdateDto)
  3264. const localVarPath = `/api-key/{id}`
  3265. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  3266. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  3267. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  3268. let baseOptions;
  3269. if (configuration) {
  3270. baseOptions = configuration.baseOptions;
  3271. }
  3272. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  3273. const localVarHeaderParameter = {} as any;
  3274. const localVarQueryParameter = {} as any;
  3275. // authentication cookie required
  3276. // authentication api_key required
  3277. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  3278. // authentication bearer required
  3279. // http bearer authentication required
  3280. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  3281. localVarHeaderParameter['Content-Type'] = 'application/json';
  3282. setSearchParams(localVarUrlObj, localVarQueryParameter);
  3283. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  3284. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  3285. localVarRequestOptions.data = serializeDataIfNeeded(aPIKeyUpdateDto, localVarRequestOptions, configuration)
  3286. return {
  3287. url: toPathString(localVarUrlObj),
  3288. options: localVarRequestOptions,
  3289. };
  3290. },
  3291. }
  3292. };
  3293. /**
  3294. * APIKeyApi - functional programming interface
  3295. * @export
  3296. */
  3297. export const APIKeyApiFp = function(configuration?: Configuration) {
  3298. const localVarAxiosParamCreator = APIKeyApiAxiosParamCreator(configuration)
  3299. return {
  3300. /**
  3301. *
  3302. * @param {APIKeyCreateDto} aPIKeyCreateDto
  3303. * @param {*} [options] Override http request option.
  3304. * @throws {RequiredError}
  3305. */
  3306. async createKey(aPIKeyCreateDto: APIKeyCreateDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<APIKeyCreateResponseDto>> {
  3307. const localVarAxiosArgs = await localVarAxiosParamCreator.createKey(aPIKeyCreateDto, options);
  3308. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  3309. },
  3310. /**
  3311. *
  3312. * @param {string} id
  3313. * @param {*} [options] Override http request option.
  3314. * @throws {RequiredError}
  3315. */
  3316. async deleteKey(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  3317. const localVarAxiosArgs = await localVarAxiosParamCreator.deleteKey(id, options);
  3318. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  3319. },
  3320. /**
  3321. *
  3322. * @param {string} id
  3323. * @param {*} [options] Override http request option.
  3324. * @throws {RequiredError}
  3325. */
  3326. async getKey(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<APIKeyResponseDto>> {
  3327. const localVarAxiosArgs = await localVarAxiosParamCreator.getKey(id, options);
  3328. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  3329. },
  3330. /**
  3331. *
  3332. * @param {*} [options] Override http request option.
  3333. * @throws {RequiredError}
  3334. */
  3335. async getKeys(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<APIKeyResponseDto>>> {
  3336. const localVarAxiosArgs = await localVarAxiosParamCreator.getKeys(options);
  3337. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  3338. },
  3339. /**
  3340. *
  3341. * @param {string} id
  3342. * @param {APIKeyUpdateDto} aPIKeyUpdateDto
  3343. * @param {*} [options] Override http request option.
  3344. * @throws {RequiredError}
  3345. */
  3346. async updateKey(id: string, aPIKeyUpdateDto: APIKeyUpdateDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<APIKeyResponseDto>> {
  3347. const localVarAxiosArgs = await localVarAxiosParamCreator.updateKey(id, aPIKeyUpdateDto, options);
  3348. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  3349. },
  3350. }
  3351. };
  3352. /**
  3353. * APIKeyApi - factory interface
  3354. * @export
  3355. */
  3356. export const APIKeyApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  3357. const localVarFp = APIKeyApiFp(configuration)
  3358. return {
  3359. /**
  3360. *
  3361. * @param {APIKeyCreateDto} aPIKeyCreateDto
  3362. * @param {*} [options] Override http request option.
  3363. * @throws {RequiredError}
  3364. */
  3365. createKey(aPIKeyCreateDto: APIKeyCreateDto, options?: any): AxiosPromise<APIKeyCreateResponseDto> {
  3366. return localVarFp.createKey(aPIKeyCreateDto, options).then((request) => request(axios, basePath));
  3367. },
  3368. /**
  3369. *
  3370. * @param {string} id
  3371. * @param {*} [options] Override http request option.
  3372. * @throws {RequiredError}
  3373. */
  3374. deleteKey(id: string, options?: any): AxiosPromise<void> {
  3375. return localVarFp.deleteKey(id, options).then((request) => request(axios, basePath));
  3376. },
  3377. /**
  3378. *
  3379. * @param {string} id
  3380. * @param {*} [options] Override http request option.
  3381. * @throws {RequiredError}
  3382. */
  3383. getKey(id: string, options?: any): AxiosPromise<APIKeyResponseDto> {
  3384. return localVarFp.getKey(id, options).then((request) => request(axios, basePath));
  3385. },
  3386. /**
  3387. *
  3388. * @param {*} [options] Override http request option.
  3389. * @throws {RequiredError}
  3390. */
  3391. getKeys(options?: any): AxiosPromise<Array<APIKeyResponseDto>> {
  3392. return localVarFp.getKeys(options).then((request) => request(axios, basePath));
  3393. },
  3394. /**
  3395. *
  3396. * @param {string} id
  3397. * @param {APIKeyUpdateDto} aPIKeyUpdateDto
  3398. * @param {*} [options] Override http request option.
  3399. * @throws {RequiredError}
  3400. */
  3401. updateKey(id: string, aPIKeyUpdateDto: APIKeyUpdateDto, options?: any): AxiosPromise<APIKeyResponseDto> {
  3402. return localVarFp.updateKey(id, aPIKeyUpdateDto, options).then((request) => request(axios, basePath));
  3403. },
  3404. };
  3405. };
  3406. /**
  3407. * Request parameters for createKey operation in APIKeyApi.
  3408. * @export
  3409. * @interface APIKeyApiCreateKeyRequest
  3410. */
  3411. export interface APIKeyApiCreateKeyRequest {
  3412. /**
  3413. *
  3414. * @type {APIKeyCreateDto}
  3415. * @memberof APIKeyApiCreateKey
  3416. */
  3417. readonly aPIKeyCreateDto: APIKeyCreateDto
  3418. }
  3419. /**
  3420. * Request parameters for deleteKey operation in APIKeyApi.
  3421. * @export
  3422. * @interface APIKeyApiDeleteKeyRequest
  3423. */
  3424. export interface APIKeyApiDeleteKeyRequest {
  3425. /**
  3426. *
  3427. * @type {string}
  3428. * @memberof APIKeyApiDeleteKey
  3429. */
  3430. readonly id: string
  3431. }
  3432. /**
  3433. * Request parameters for getKey operation in APIKeyApi.
  3434. * @export
  3435. * @interface APIKeyApiGetKeyRequest
  3436. */
  3437. export interface APIKeyApiGetKeyRequest {
  3438. /**
  3439. *
  3440. * @type {string}
  3441. * @memberof APIKeyApiGetKey
  3442. */
  3443. readonly id: string
  3444. }
  3445. /**
  3446. * Request parameters for updateKey operation in APIKeyApi.
  3447. * @export
  3448. * @interface APIKeyApiUpdateKeyRequest
  3449. */
  3450. export interface APIKeyApiUpdateKeyRequest {
  3451. /**
  3452. *
  3453. * @type {string}
  3454. * @memberof APIKeyApiUpdateKey
  3455. */
  3456. readonly id: string
  3457. /**
  3458. *
  3459. * @type {APIKeyUpdateDto}
  3460. * @memberof APIKeyApiUpdateKey
  3461. */
  3462. readonly aPIKeyUpdateDto: APIKeyUpdateDto
  3463. }
  3464. /**
  3465. * APIKeyApi - object-oriented interface
  3466. * @export
  3467. * @class APIKeyApi
  3468. * @extends {BaseAPI}
  3469. */
  3470. export class APIKeyApi extends BaseAPI {
  3471. /**
  3472. *
  3473. * @param {APIKeyApiCreateKeyRequest} requestParameters Request parameters.
  3474. * @param {*} [options] Override http request option.
  3475. * @throws {RequiredError}
  3476. * @memberof APIKeyApi
  3477. */
  3478. public createKey(requestParameters: APIKeyApiCreateKeyRequest, options?: AxiosRequestConfig) {
  3479. return APIKeyApiFp(this.configuration).createKey(requestParameters.aPIKeyCreateDto, options).then((request) => request(this.axios, this.basePath));
  3480. }
  3481. /**
  3482. *
  3483. * @param {APIKeyApiDeleteKeyRequest} requestParameters Request parameters.
  3484. * @param {*} [options] Override http request option.
  3485. * @throws {RequiredError}
  3486. * @memberof APIKeyApi
  3487. */
  3488. public deleteKey(requestParameters: APIKeyApiDeleteKeyRequest, options?: AxiosRequestConfig) {
  3489. return APIKeyApiFp(this.configuration).deleteKey(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  3490. }
  3491. /**
  3492. *
  3493. * @param {APIKeyApiGetKeyRequest} requestParameters Request parameters.
  3494. * @param {*} [options] Override http request option.
  3495. * @throws {RequiredError}
  3496. * @memberof APIKeyApi
  3497. */
  3498. public getKey(requestParameters: APIKeyApiGetKeyRequest, options?: AxiosRequestConfig) {
  3499. return APIKeyApiFp(this.configuration).getKey(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  3500. }
  3501. /**
  3502. *
  3503. * @param {*} [options] Override http request option.
  3504. * @throws {RequiredError}
  3505. * @memberof APIKeyApi
  3506. */
  3507. public getKeys(options?: AxiosRequestConfig) {
  3508. return APIKeyApiFp(this.configuration).getKeys(options).then((request) => request(this.axios, this.basePath));
  3509. }
  3510. /**
  3511. *
  3512. * @param {APIKeyApiUpdateKeyRequest} requestParameters Request parameters.
  3513. * @param {*} [options] Override http request option.
  3514. * @throws {RequiredError}
  3515. * @memberof APIKeyApi
  3516. */
  3517. public updateKey(requestParameters: APIKeyApiUpdateKeyRequest, options?: AxiosRequestConfig) {
  3518. return APIKeyApiFp(this.configuration).updateKey(requestParameters.id, requestParameters.aPIKeyUpdateDto, options).then((request) => request(this.axios, this.basePath));
  3519. }
  3520. }
  3521. /**
  3522. * AlbumApi - axios parameter creator
  3523. * @export
  3524. */
  3525. export const AlbumApiAxiosParamCreator = function (configuration?: Configuration) {
  3526. return {
  3527. /**
  3528. *
  3529. * @param {string} id
  3530. * @param {BulkIdsDto} bulkIdsDto
  3531. * @param {string} [key]
  3532. * @param {*} [options] Override http request option.
  3533. * @throws {RequiredError}
  3534. */
  3535. addAssetsToAlbum: async (id: string, bulkIdsDto: BulkIdsDto, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  3536. // verify required parameter 'id' is not null or undefined
  3537. assertParamExists('addAssetsToAlbum', 'id', id)
  3538. // verify required parameter 'bulkIdsDto' is not null or undefined
  3539. assertParamExists('addAssetsToAlbum', 'bulkIdsDto', bulkIdsDto)
  3540. const localVarPath = `/album/{id}/assets`
  3541. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  3542. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  3543. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  3544. let baseOptions;
  3545. if (configuration) {
  3546. baseOptions = configuration.baseOptions;
  3547. }
  3548. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  3549. const localVarHeaderParameter = {} as any;
  3550. const localVarQueryParameter = {} as any;
  3551. // authentication cookie required
  3552. // authentication api_key required
  3553. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  3554. // authentication bearer required
  3555. // http bearer authentication required
  3556. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  3557. if (key !== undefined) {
  3558. localVarQueryParameter['key'] = key;
  3559. }
  3560. localVarHeaderParameter['Content-Type'] = 'application/json';
  3561. setSearchParams(localVarUrlObj, localVarQueryParameter);
  3562. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  3563. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  3564. localVarRequestOptions.data = serializeDataIfNeeded(bulkIdsDto, localVarRequestOptions, configuration)
  3565. return {
  3566. url: toPathString(localVarUrlObj),
  3567. options: localVarRequestOptions,
  3568. };
  3569. },
  3570. /**
  3571. *
  3572. * @param {string} id
  3573. * @param {AddUsersDto} addUsersDto
  3574. * @param {*} [options] Override http request option.
  3575. * @throws {RequiredError}
  3576. */
  3577. addUsersToAlbum: async (id: string, addUsersDto: AddUsersDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  3578. // verify required parameter 'id' is not null or undefined
  3579. assertParamExists('addUsersToAlbum', 'id', id)
  3580. // verify required parameter 'addUsersDto' is not null or undefined
  3581. assertParamExists('addUsersToAlbum', 'addUsersDto', addUsersDto)
  3582. const localVarPath = `/album/{id}/users`
  3583. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  3584. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  3585. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  3586. let baseOptions;
  3587. if (configuration) {
  3588. baseOptions = configuration.baseOptions;
  3589. }
  3590. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  3591. const localVarHeaderParameter = {} as any;
  3592. const localVarQueryParameter = {} as any;
  3593. // authentication cookie required
  3594. // authentication api_key required
  3595. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  3596. // authentication bearer required
  3597. // http bearer authentication required
  3598. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  3599. localVarHeaderParameter['Content-Type'] = 'application/json';
  3600. setSearchParams(localVarUrlObj, localVarQueryParameter);
  3601. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  3602. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  3603. localVarRequestOptions.data = serializeDataIfNeeded(addUsersDto, localVarRequestOptions, configuration)
  3604. return {
  3605. url: toPathString(localVarUrlObj),
  3606. options: localVarRequestOptions,
  3607. };
  3608. },
  3609. /**
  3610. *
  3611. * @param {CreateAlbumDto} createAlbumDto
  3612. * @param {*} [options] Override http request option.
  3613. * @throws {RequiredError}
  3614. */
  3615. createAlbum: async (createAlbumDto: CreateAlbumDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  3616. // verify required parameter 'createAlbumDto' is not null or undefined
  3617. assertParamExists('createAlbum', 'createAlbumDto', createAlbumDto)
  3618. const localVarPath = `/album`;
  3619. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  3620. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  3621. let baseOptions;
  3622. if (configuration) {
  3623. baseOptions = configuration.baseOptions;
  3624. }
  3625. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  3626. const localVarHeaderParameter = {} as any;
  3627. const localVarQueryParameter = {} as any;
  3628. // authentication cookie required
  3629. // authentication api_key required
  3630. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  3631. // authentication bearer required
  3632. // http bearer authentication required
  3633. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  3634. localVarHeaderParameter['Content-Type'] = 'application/json';
  3635. setSearchParams(localVarUrlObj, localVarQueryParameter);
  3636. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  3637. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  3638. localVarRequestOptions.data = serializeDataIfNeeded(createAlbumDto, localVarRequestOptions, configuration)
  3639. return {
  3640. url: toPathString(localVarUrlObj),
  3641. options: localVarRequestOptions,
  3642. };
  3643. },
  3644. /**
  3645. *
  3646. * @param {string} id
  3647. * @param {*} [options] Override http request option.
  3648. * @throws {RequiredError}
  3649. */
  3650. deleteAlbum: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  3651. // verify required parameter 'id' is not null or undefined
  3652. assertParamExists('deleteAlbum', 'id', id)
  3653. const localVarPath = `/album/{id}`
  3654. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  3655. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  3656. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  3657. let baseOptions;
  3658. if (configuration) {
  3659. baseOptions = configuration.baseOptions;
  3660. }
  3661. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  3662. const localVarHeaderParameter = {} as any;
  3663. const localVarQueryParameter = {} as any;
  3664. // authentication cookie required
  3665. // authentication api_key required
  3666. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  3667. // authentication bearer required
  3668. // http bearer authentication required
  3669. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  3670. setSearchParams(localVarUrlObj, localVarQueryParameter);
  3671. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  3672. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  3673. return {
  3674. url: toPathString(localVarUrlObj),
  3675. options: localVarRequestOptions,
  3676. };
  3677. },
  3678. /**
  3679. *
  3680. * @param {*} [options] Override http request option.
  3681. * @throws {RequiredError}
  3682. */
  3683. getAlbumCount: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  3684. const localVarPath = `/album/count`;
  3685. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  3686. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  3687. let baseOptions;
  3688. if (configuration) {
  3689. baseOptions = configuration.baseOptions;
  3690. }
  3691. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  3692. const localVarHeaderParameter = {} as any;
  3693. const localVarQueryParameter = {} as any;
  3694. // authentication cookie required
  3695. // authentication api_key required
  3696. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  3697. // authentication bearer required
  3698. // http bearer authentication required
  3699. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  3700. setSearchParams(localVarUrlObj, localVarQueryParameter);
  3701. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  3702. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  3703. return {
  3704. url: toPathString(localVarUrlObj),
  3705. options: localVarRequestOptions,
  3706. };
  3707. },
  3708. /**
  3709. *
  3710. * @param {string} id
  3711. * @param {string} [key]
  3712. * @param {*} [options] Override http request option.
  3713. * @throws {RequiredError}
  3714. */
  3715. getAlbumInfo: async (id: string, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  3716. // verify required parameter 'id' is not null or undefined
  3717. assertParamExists('getAlbumInfo', 'id', id)
  3718. const localVarPath = `/album/{id}`
  3719. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  3720. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  3721. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  3722. let baseOptions;
  3723. if (configuration) {
  3724. baseOptions = configuration.baseOptions;
  3725. }
  3726. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  3727. const localVarHeaderParameter = {} as any;
  3728. const localVarQueryParameter = {} as any;
  3729. // authentication cookie required
  3730. // authentication api_key required
  3731. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  3732. // authentication bearer required
  3733. // http bearer authentication required
  3734. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  3735. if (key !== undefined) {
  3736. localVarQueryParameter['key'] = key;
  3737. }
  3738. setSearchParams(localVarUrlObj, localVarQueryParameter);
  3739. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  3740. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  3741. return {
  3742. url: toPathString(localVarUrlObj),
  3743. options: localVarRequestOptions,
  3744. };
  3745. },
  3746. /**
  3747. *
  3748. * @param {boolean} [shared]
  3749. * @param {string} [assetId] Only returns albums that contain the asset Ignores the shared parameter undefined: get all albums
  3750. * @param {*} [options] Override http request option.
  3751. * @throws {RequiredError}
  3752. */
  3753. getAllAlbums: async (shared?: boolean, assetId?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  3754. const localVarPath = `/album`;
  3755. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  3756. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  3757. let baseOptions;
  3758. if (configuration) {
  3759. baseOptions = configuration.baseOptions;
  3760. }
  3761. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  3762. const localVarHeaderParameter = {} as any;
  3763. const localVarQueryParameter = {} as any;
  3764. // authentication cookie required
  3765. // authentication api_key required
  3766. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  3767. // authentication bearer required
  3768. // http bearer authentication required
  3769. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  3770. if (shared !== undefined) {
  3771. localVarQueryParameter['shared'] = shared;
  3772. }
  3773. if (assetId !== undefined) {
  3774. localVarQueryParameter['assetId'] = assetId;
  3775. }
  3776. setSearchParams(localVarUrlObj, localVarQueryParameter);
  3777. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  3778. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  3779. return {
  3780. url: toPathString(localVarUrlObj),
  3781. options: localVarRequestOptions,
  3782. };
  3783. },
  3784. /**
  3785. *
  3786. * @param {string} id
  3787. * @param {BulkIdsDto} bulkIdsDto
  3788. * @param {*} [options] Override http request option.
  3789. * @throws {RequiredError}
  3790. */
  3791. removeAssetFromAlbum: async (id: string, bulkIdsDto: BulkIdsDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  3792. // verify required parameter 'id' is not null or undefined
  3793. assertParamExists('removeAssetFromAlbum', 'id', id)
  3794. // verify required parameter 'bulkIdsDto' is not null or undefined
  3795. assertParamExists('removeAssetFromAlbum', 'bulkIdsDto', bulkIdsDto)
  3796. const localVarPath = `/album/{id}/assets`
  3797. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  3798. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  3799. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  3800. let baseOptions;
  3801. if (configuration) {
  3802. baseOptions = configuration.baseOptions;
  3803. }
  3804. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  3805. const localVarHeaderParameter = {} as any;
  3806. const localVarQueryParameter = {} as any;
  3807. // authentication cookie required
  3808. // authentication api_key required
  3809. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  3810. // authentication bearer required
  3811. // http bearer authentication required
  3812. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  3813. localVarHeaderParameter['Content-Type'] = 'application/json';
  3814. setSearchParams(localVarUrlObj, localVarQueryParameter);
  3815. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  3816. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  3817. localVarRequestOptions.data = serializeDataIfNeeded(bulkIdsDto, localVarRequestOptions, configuration)
  3818. return {
  3819. url: toPathString(localVarUrlObj),
  3820. options: localVarRequestOptions,
  3821. };
  3822. },
  3823. /**
  3824. *
  3825. * @param {string} id
  3826. * @param {string} userId
  3827. * @param {*} [options] Override http request option.
  3828. * @throws {RequiredError}
  3829. */
  3830. removeUserFromAlbum: async (id: string, userId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  3831. // verify required parameter 'id' is not null or undefined
  3832. assertParamExists('removeUserFromAlbum', 'id', id)
  3833. // verify required parameter 'userId' is not null or undefined
  3834. assertParamExists('removeUserFromAlbum', 'userId', userId)
  3835. const localVarPath = `/album/{id}/user/{userId}`
  3836. .replace(`{${"id"}}`, encodeURIComponent(String(id)))
  3837. .replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
  3838. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  3839. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  3840. let baseOptions;
  3841. if (configuration) {
  3842. baseOptions = configuration.baseOptions;
  3843. }
  3844. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  3845. const localVarHeaderParameter = {} as any;
  3846. const localVarQueryParameter = {} as any;
  3847. // authentication cookie required
  3848. // authentication api_key required
  3849. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  3850. // authentication bearer required
  3851. // http bearer authentication required
  3852. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  3853. setSearchParams(localVarUrlObj, localVarQueryParameter);
  3854. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  3855. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  3856. return {
  3857. url: toPathString(localVarUrlObj),
  3858. options: localVarRequestOptions,
  3859. };
  3860. },
  3861. /**
  3862. *
  3863. * @param {string} id
  3864. * @param {UpdateAlbumDto} updateAlbumDto
  3865. * @param {*} [options] Override http request option.
  3866. * @throws {RequiredError}
  3867. */
  3868. updateAlbumInfo: async (id: string, updateAlbumDto: UpdateAlbumDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  3869. // verify required parameter 'id' is not null or undefined
  3870. assertParamExists('updateAlbumInfo', 'id', id)
  3871. // verify required parameter 'updateAlbumDto' is not null or undefined
  3872. assertParamExists('updateAlbumInfo', 'updateAlbumDto', updateAlbumDto)
  3873. const localVarPath = `/album/{id}`
  3874. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  3875. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  3876. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  3877. let baseOptions;
  3878. if (configuration) {
  3879. baseOptions = configuration.baseOptions;
  3880. }
  3881. const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
  3882. const localVarHeaderParameter = {} as any;
  3883. const localVarQueryParameter = {} as any;
  3884. // authentication cookie required
  3885. // authentication api_key required
  3886. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  3887. // authentication bearer required
  3888. // http bearer authentication required
  3889. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  3890. localVarHeaderParameter['Content-Type'] = 'application/json';
  3891. setSearchParams(localVarUrlObj, localVarQueryParameter);
  3892. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  3893. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  3894. localVarRequestOptions.data = serializeDataIfNeeded(updateAlbumDto, localVarRequestOptions, configuration)
  3895. return {
  3896. url: toPathString(localVarUrlObj),
  3897. options: localVarRequestOptions,
  3898. };
  3899. },
  3900. }
  3901. };
  3902. /**
  3903. * AlbumApi - functional programming interface
  3904. * @export
  3905. */
  3906. export const AlbumApiFp = function(configuration?: Configuration) {
  3907. const localVarAxiosParamCreator = AlbumApiAxiosParamCreator(configuration)
  3908. return {
  3909. /**
  3910. *
  3911. * @param {string} id
  3912. * @param {BulkIdsDto} bulkIdsDto
  3913. * @param {string} [key]
  3914. * @param {*} [options] Override http request option.
  3915. * @throws {RequiredError}
  3916. */
  3917. async addAssetsToAlbum(id: string, bulkIdsDto: BulkIdsDto, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<BulkIdResponseDto>>> {
  3918. const localVarAxiosArgs = await localVarAxiosParamCreator.addAssetsToAlbum(id, bulkIdsDto, key, options);
  3919. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  3920. },
  3921. /**
  3922. *
  3923. * @param {string} id
  3924. * @param {AddUsersDto} addUsersDto
  3925. * @param {*} [options] Override http request option.
  3926. * @throws {RequiredError}
  3927. */
  3928. async addUsersToAlbum(id: string, addUsersDto: AddUsersDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AlbumResponseDto>> {
  3929. const localVarAxiosArgs = await localVarAxiosParamCreator.addUsersToAlbum(id, addUsersDto, options);
  3930. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  3931. },
  3932. /**
  3933. *
  3934. * @param {CreateAlbumDto} createAlbumDto
  3935. * @param {*} [options] Override http request option.
  3936. * @throws {RequiredError}
  3937. */
  3938. async createAlbum(createAlbumDto: CreateAlbumDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AlbumResponseDto>> {
  3939. const localVarAxiosArgs = await localVarAxiosParamCreator.createAlbum(createAlbumDto, options);
  3940. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  3941. },
  3942. /**
  3943. *
  3944. * @param {string} id
  3945. * @param {*} [options] Override http request option.
  3946. * @throws {RequiredError}
  3947. */
  3948. async deleteAlbum(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  3949. const localVarAxiosArgs = await localVarAxiosParamCreator.deleteAlbum(id, options);
  3950. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  3951. },
  3952. /**
  3953. *
  3954. * @param {*} [options] Override http request option.
  3955. * @throws {RequiredError}
  3956. */
  3957. async getAlbumCount(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AlbumCountResponseDto>> {
  3958. const localVarAxiosArgs = await localVarAxiosParamCreator.getAlbumCount(options);
  3959. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  3960. },
  3961. /**
  3962. *
  3963. * @param {string} id
  3964. * @param {string} [key]
  3965. * @param {*} [options] Override http request option.
  3966. * @throws {RequiredError}
  3967. */
  3968. async getAlbumInfo(id: string, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AlbumResponseDto>> {
  3969. const localVarAxiosArgs = await localVarAxiosParamCreator.getAlbumInfo(id, key, options);
  3970. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  3971. },
  3972. /**
  3973. *
  3974. * @param {boolean} [shared]
  3975. * @param {string} [assetId] Only returns albums that contain the asset Ignores the shared parameter undefined: get all albums
  3976. * @param {*} [options] Override http request option.
  3977. * @throws {RequiredError}
  3978. */
  3979. async getAllAlbums(shared?: boolean, assetId?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AlbumResponseDto>>> {
  3980. const localVarAxiosArgs = await localVarAxiosParamCreator.getAllAlbums(shared, assetId, options);
  3981. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  3982. },
  3983. /**
  3984. *
  3985. * @param {string} id
  3986. * @param {BulkIdsDto} bulkIdsDto
  3987. * @param {*} [options] Override http request option.
  3988. * @throws {RequiredError}
  3989. */
  3990. async removeAssetFromAlbum(id: string, bulkIdsDto: BulkIdsDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<BulkIdResponseDto>>> {
  3991. const localVarAxiosArgs = await localVarAxiosParamCreator.removeAssetFromAlbum(id, bulkIdsDto, options);
  3992. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  3993. },
  3994. /**
  3995. *
  3996. * @param {string} id
  3997. * @param {string} userId
  3998. * @param {*} [options] Override http request option.
  3999. * @throws {RequiredError}
  4000. */
  4001. async removeUserFromAlbum(id: string, userId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  4002. const localVarAxiosArgs = await localVarAxiosParamCreator.removeUserFromAlbum(id, userId, options);
  4003. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4004. },
  4005. /**
  4006. *
  4007. * @param {string} id
  4008. * @param {UpdateAlbumDto} updateAlbumDto
  4009. * @param {*} [options] Override http request option.
  4010. * @throws {RequiredError}
  4011. */
  4012. async updateAlbumInfo(id: string, updateAlbumDto: UpdateAlbumDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AlbumResponseDto>> {
  4013. const localVarAxiosArgs = await localVarAxiosParamCreator.updateAlbumInfo(id, updateAlbumDto, options);
  4014. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4015. },
  4016. }
  4017. };
  4018. /**
  4019. * AlbumApi - factory interface
  4020. * @export
  4021. */
  4022. export const AlbumApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  4023. const localVarFp = AlbumApiFp(configuration)
  4024. return {
  4025. /**
  4026. *
  4027. * @param {string} id
  4028. * @param {BulkIdsDto} bulkIdsDto
  4029. * @param {string} [key]
  4030. * @param {*} [options] Override http request option.
  4031. * @throws {RequiredError}
  4032. */
  4033. addAssetsToAlbum(id: string, bulkIdsDto: BulkIdsDto, key?: string, options?: any): AxiosPromise<Array<BulkIdResponseDto>> {
  4034. return localVarFp.addAssetsToAlbum(id, bulkIdsDto, key, options).then((request) => request(axios, basePath));
  4035. },
  4036. /**
  4037. *
  4038. * @param {string} id
  4039. * @param {AddUsersDto} addUsersDto
  4040. * @param {*} [options] Override http request option.
  4041. * @throws {RequiredError}
  4042. */
  4043. addUsersToAlbum(id: string, addUsersDto: AddUsersDto, options?: any): AxiosPromise<AlbumResponseDto> {
  4044. return localVarFp.addUsersToAlbum(id, addUsersDto, options).then((request) => request(axios, basePath));
  4045. },
  4046. /**
  4047. *
  4048. * @param {CreateAlbumDto} createAlbumDto
  4049. * @param {*} [options] Override http request option.
  4050. * @throws {RequiredError}
  4051. */
  4052. createAlbum(createAlbumDto: CreateAlbumDto, options?: any): AxiosPromise<AlbumResponseDto> {
  4053. return localVarFp.createAlbum(createAlbumDto, options).then((request) => request(axios, basePath));
  4054. },
  4055. /**
  4056. *
  4057. * @param {string} id
  4058. * @param {*} [options] Override http request option.
  4059. * @throws {RequiredError}
  4060. */
  4061. deleteAlbum(id: string, options?: any): AxiosPromise<void> {
  4062. return localVarFp.deleteAlbum(id, options).then((request) => request(axios, basePath));
  4063. },
  4064. /**
  4065. *
  4066. * @param {*} [options] Override http request option.
  4067. * @throws {RequiredError}
  4068. */
  4069. getAlbumCount(options?: any): AxiosPromise<AlbumCountResponseDto> {
  4070. return localVarFp.getAlbumCount(options).then((request) => request(axios, basePath));
  4071. },
  4072. /**
  4073. *
  4074. * @param {string} id
  4075. * @param {string} [key]
  4076. * @param {*} [options] Override http request option.
  4077. * @throws {RequiredError}
  4078. */
  4079. getAlbumInfo(id: string, key?: string, options?: any): AxiosPromise<AlbumResponseDto> {
  4080. return localVarFp.getAlbumInfo(id, key, options).then((request) => request(axios, basePath));
  4081. },
  4082. /**
  4083. *
  4084. * @param {boolean} [shared]
  4085. * @param {string} [assetId] Only returns albums that contain the asset Ignores the shared parameter undefined: get all albums
  4086. * @param {*} [options] Override http request option.
  4087. * @throws {RequiredError}
  4088. */
  4089. getAllAlbums(shared?: boolean, assetId?: string, options?: any): AxiosPromise<Array<AlbumResponseDto>> {
  4090. return localVarFp.getAllAlbums(shared, assetId, options).then((request) => request(axios, basePath));
  4091. },
  4092. /**
  4093. *
  4094. * @param {string} id
  4095. * @param {BulkIdsDto} bulkIdsDto
  4096. * @param {*} [options] Override http request option.
  4097. * @throws {RequiredError}
  4098. */
  4099. removeAssetFromAlbum(id: string, bulkIdsDto: BulkIdsDto, options?: any): AxiosPromise<Array<BulkIdResponseDto>> {
  4100. return localVarFp.removeAssetFromAlbum(id, bulkIdsDto, options).then((request) => request(axios, basePath));
  4101. },
  4102. /**
  4103. *
  4104. * @param {string} id
  4105. * @param {string} userId
  4106. * @param {*} [options] Override http request option.
  4107. * @throws {RequiredError}
  4108. */
  4109. removeUserFromAlbum(id: string, userId: string, options?: any): AxiosPromise<void> {
  4110. return localVarFp.removeUserFromAlbum(id, userId, options).then((request) => request(axios, basePath));
  4111. },
  4112. /**
  4113. *
  4114. * @param {string} id
  4115. * @param {UpdateAlbumDto} updateAlbumDto
  4116. * @param {*} [options] Override http request option.
  4117. * @throws {RequiredError}
  4118. */
  4119. updateAlbumInfo(id: string, updateAlbumDto: UpdateAlbumDto, options?: any): AxiosPromise<AlbumResponseDto> {
  4120. return localVarFp.updateAlbumInfo(id, updateAlbumDto, options).then((request) => request(axios, basePath));
  4121. },
  4122. };
  4123. };
  4124. /**
  4125. * Request parameters for addAssetsToAlbum operation in AlbumApi.
  4126. * @export
  4127. * @interface AlbumApiAddAssetsToAlbumRequest
  4128. */
  4129. export interface AlbumApiAddAssetsToAlbumRequest {
  4130. /**
  4131. *
  4132. * @type {string}
  4133. * @memberof AlbumApiAddAssetsToAlbum
  4134. */
  4135. readonly id: string
  4136. /**
  4137. *
  4138. * @type {BulkIdsDto}
  4139. * @memberof AlbumApiAddAssetsToAlbum
  4140. */
  4141. readonly bulkIdsDto: BulkIdsDto
  4142. /**
  4143. *
  4144. * @type {string}
  4145. * @memberof AlbumApiAddAssetsToAlbum
  4146. */
  4147. readonly key?: string
  4148. }
  4149. /**
  4150. * Request parameters for addUsersToAlbum operation in AlbumApi.
  4151. * @export
  4152. * @interface AlbumApiAddUsersToAlbumRequest
  4153. */
  4154. export interface AlbumApiAddUsersToAlbumRequest {
  4155. /**
  4156. *
  4157. * @type {string}
  4158. * @memberof AlbumApiAddUsersToAlbum
  4159. */
  4160. readonly id: string
  4161. /**
  4162. *
  4163. * @type {AddUsersDto}
  4164. * @memberof AlbumApiAddUsersToAlbum
  4165. */
  4166. readonly addUsersDto: AddUsersDto
  4167. }
  4168. /**
  4169. * Request parameters for createAlbum operation in AlbumApi.
  4170. * @export
  4171. * @interface AlbumApiCreateAlbumRequest
  4172. */
  4173. export interface AlbumApiCreateAlbumRequest {
  4174. /**
  4175. *
  4176. * @type {CreateAlbumDto}
  4177. * @memberof AlbumApiCreateAlbum
  4178. */
  4179. readonly createAlbumDto: CreateAlbumDto
  4180. }
  4181. /**
  4182. * Request parameters for deleteAlbum operation in AlbumApi.
  4183. * @export
  4184. * @interface AlbumApiDeleteAlbumRequest
  4185. */
  4186. export interface AlbumApiDeleteAlbumRequest {
  4187. /**
  4188. *
  4189. * @type {string}
  4190. * @memberof AlbumApiDeleteAlbum
  4191. */
  4192. readonly id: string
  4193. }
  4194. /**
  4195. * Request parameters for getAlbumInfo operation in AlbumApi.
  4196. * @export
  4197. * @interface AlbumApiGetAlbumInfoRequest
  4198. */
  4199. export interface AlbumApiGetAlbumInfoRequest {
  4200. /**
  4201. *
  4202. * @type {string}
  4203. * @memberof AlbumApiGetAlbumInfo
  4204. */
  4205. readonly id: string
  4206. /**
  4207. *
  4208. * @type {string}
  4209. * @memberof AlbumApiGetAlbumInfo
  4210. */
  4211. readonly key?: string
  4212. }
  4213. /**
  4214. * Request parameters for getAllAlbums operation in AlbumApi.
  4215. * @export
  4216. * @interface AlbumApiGetAllAlbumsRequest
  4217. */
  4218. export interface AlbumApiGetAllAlbumsRequest {
  4219. /**
  4220. *
  4221. * @type {boolean}
  4222. * @memberof AlbumApiGetAllAlbums
  4223. */
  4224. readonly shared?: boolean
  4225. /**
  4226. * Only returns albums that contain the asset Ignores the shared parameter undefined: get all albums
  4227. * @type {string}
  4228. * @memberof AlbumApiGetAllAlbums
  4229. */
  4230. readonly assetId?: string
  4231. }
  4232. /**
  4233. * Request parameters for removeAssetFromAlbum operation in AlbumApi.
  4234. * @export
  4235. * @interface AlbumApiRemoveAssetFromAlbumRequest
  4236. */
  4237. export interface AlbumApiRemoveAssetFromAlbumRequest {
  4238. /**
  4239. *
  4240. * @type {string}
  4241. * @memberof AlbumApiRemoveAssetFromAlbum
  4242. */
  4243. readonly id: string
  4244. /**
  4245. *
  4246. * @type {BulkIdsDto}
  4247. * @memberof AlbumApiRemoveAssetFromAlbum
  4248. */
  4249. readonly bulkIdsDto: BulkIdsDto
  4250. }
  4251. /**
  4252. * Request parameters for removeUserFromAlbum operation in AlbumApi.
  4253. * @export
  4254. * @interface AlbumApiRemoveUserFromAlbumRequest
  4255. */
  4256. export interface AlbumApiRemoveUserFromAlbumRequest {
  4257. /**
  4258. *
  4259. * @type {string}
  4260. * @memberof AlbumApiRemoveUserFromAlbum
  4261. */
  4262. readonly id: string
  4263. /**
  4264. *
  4265. * @type {string}
  4266. * @memberof AlbumApiRemoveUserFromAlbum
  4267. */
  4268. readonly userId: string
  4269. }
  4270. /**
  4271. * Request parameters for updateAlbumInfo operation in AlbumApi.
  4272. * @export
  4273. * @interface AlbumApiUpdateAlbumInfoRequest
  4274. */
  4275. export interface AlbumApiUpdateAlbumInfoRequest {
  4276. /**
  4277. *
  4278. * @type {string}
  4279. * @memberof AlbumApiUpdateAlbumInfo
  4280. */
  4281. readonly id: string
  4282. /**
  4283. *
  4284. * @type {UpdateAlbumDto}
  4285. * @memberof AlbumApiUpdateAlbumInfo
  4286. */
  4287. readonly updateAlbumDto: UpdateAlbumDto
  4288. }
  4289. /**
  4290. * AlbumApi - object-oriented interface
  4291. * @export
  4292. * @class AlbumApi
  4293. * @extends {BaseAPI}
  4294. */
  4295. export class AlbumApi extends BaseAPI {
  4296. /**
  4297. *
  4298. * @param {AlbumApiAddAssetsToAlbumRequest} requestParameters Request parameters.
  4299. * @param {*} [options] Override http request option.
  4300. * @throws {RequiredError}
  4301. * @memberof AlbumApi
  4302. */
  4303. public addAssetsToAlbum(requestParameters: AlbumApiAddAssetsToAlbumRequest, options?: AxiosRequestConfig) {
  4304. return AlbumApiFp(this.configuration).addAssetsToAlbum(requestParameters.id, requestParameters.bulkIdsDto, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  4305. }
  4306. /**
  4307. *
  4308. * @param {AlbumApiAddUsersToAlbumRequest} requestParameters Request parameters.
  4309. * @param {*} [options] Override http request option.
  4310. * @throws {RequiredError}
  4311. * @memberof AlbumApi
  4312. */
  4313. public addUsersToAlbum(requestParameters: AlbumApiAddUsersToAlbumRequest, options?: AxiosRequestConfig) {
  4314. return AlbumApiFp(this.configuration).addUsersToAlbum(requestParameters.id, requestParameters.addUsersDto, options).then((request) => request(this.axios, this.basePath));
  4315. }
  4316. /**
  4317. *
  4318. * @param {AlbumApiCreateAlbumRequest} requestParameters Request parameters.
  4319. * @param {*} [options] Override http request option.
  4320. * @throws {RequiredError}
  4321. * @memberof AlbumApi
  4322. */
  4323. public createAlbum(requestParameters: AlbumApiCreateAlbumRequest, options?: AxiosRequestConfig) {
  4324. return AlbumApiFp(this.configuration).createAlbum(requestParameters.createAlbumDto, options).then((request) => request(this.axios, this.basePath));
  4325. }
  4326. /**
  4327. *
  4328. * @param {AlbumApiDeleteAlbumRequest} requestParameters Request parameters.
  4329. * @param {*} [options] Override http request option.
  4330. * @throws {RequiredError}
  4331. * @memberof AlbumApi
  4332. */
  4333. public deleteAlbum(requestParameters: AlbumApiDeleteAlbumRequest, options?: AxiosRequestConfig) {
  4334. return AlbumApiFp(this.configuration).deleteAlbum(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  4335. }
  4336. /**
  4337. *
  4338. * @param {*} [options] Override http request option.
  4339. * @throws {RequiredError}
  4340. * @memberof AlbumApi
  4341. */
  4342. public getAlbumCount(options?: AxiosRequestConfig) {
  4343. return AlbumApiFp(this.configuration).getAlbumCount(options).then((request) => request(this.axios, this.basePath));
  4344. }
  4345. /**
  4346. *
  4347. * @param {AlbumApiGetAlbumInfoRequest} requestParameters Request parameters.
  4348. * @param {*} [options] Override http request option.
  4349. * @throws {RequiredError}
  4350. * @memberof AlbumApi
  4351. */
  4352. public getAlbumInfo(requestParameters: AlbumApiGetAlbumInfoRequest, options?: AxiosRequestConfig) {
  4353. return AlbumApiFp(this.configuration).getAlbumInfo(requestParameters.id, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  4354. }
  4355. /**
  4356. *
  4357. * @param {AlbumApiGetAllAlbumsRequest} requestParameters Request parameters.
  4358. * @param {*} [options] Override http request option.
  4359. * @throws {RequiredError}
  4360. * @memberof AlbumApi
  4361. */
  4362. public getAllAlbums(requestParameters: AlbumApiGetAllAlbumsRequest = {}, options?: AxiosRequestConfig) {
  4363. return AlbumApiFp(this.configuration).getAllAlbums(requestParameters.shared, requestParameters.assetId, options).then((request) => request(this.axios, this.basePath));
  4364. }
  4365. /**
  4366. *
  4367. * @param {AlbumApiRemoveAssetFromAlbumRequest} requestParameters Request parameters.
  4368. * @param {*} [options] Override http request option.
  4369. * @throws {RequiredError}
  4370. * @memberof AlbumApi
  4371. */
  4372. public removeAssetFromAlbum(requestParameters: AlbumApiRemoveAssetFromAlbumRequest, options?: AxiosRequestConfig) {
  4373. return AlbumApiFp(this.configuration).removeAssetFromAlbum(requestParameters.id, requestParameters.bulkIdsDto, options).then((request) => request(this.axios, this.basePath));
  4374. }
  4375. /**
  4376. *
  4377. * @param {AlbumApiRemoveUserFromAlbumRequest} requestParameters Request parameters.
  4378. * @param {*} [options] Override http request option.
  4379. * @throws {RequiredError}
  4380. * @memberof AlbumApi
  4381. */
  4382. public removeUserFromAlbum(requestParameters: AlbumApiRemoveUserFromAlbumRequest, options?: AxiosRequestConfig) {
  4383. return AlbumApiFp(this.configuration).removeUserFromAlbum(requestParameters.id, requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
  4384. }
  4385. /**
  4386. *
  4387. * @param {AlbumApiUpdateAlbumInfoRequest} requestParameters Request parameters.
  4388. * @param {*} [options] Override http request option.
  4389. * @throws {RequiredError}
  4390. * @memberof AlbumApi
  4391. */
  4392. public updateAlbumInfo(requestParameters: AlbumApiUpdateAlbumInfoRequest, options?: AxiosRequestConfig) {
  4393. return AlbumApiFp(this.configuration).updateAlbumInfo(requestParameters.id, requestParameters.updateAlbumDto, options).then((request) => request(this.axios, this.basePath));
  4394. }
  4395. }
  4396. /**
  4397. * AssetApi - axios parameter creator
  4398. * @export
  4399. */
  4400. export const AssetApiAxiosParamCreator = function (configuration?: Configuration) {
  4401. return {
  4402. /**
  4403. * Checks if assets exist by checksums
  4404. * @param {AssetBulkUploadCheckDto} assetBulkUploadCheckDto
  4405. * @param {*} [options] Override http request option.
  4406. * @throws {RequiredError}
  4407. */
  4408. bulkUploadCheck: async (assetBulkUploadCheckDto: AssetBulkUploadCheckDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4409. // verify required parameter 'assetBulkUploadCheckDto' is not null or undefined
  4410. assertParamExists('bulkUploadCheck', 'assetBulkUploadCheckDto', assetBulkUploadCheckDto)
  4411. const localVarPath = `/asset/bulk-upload-check`;
  4412. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4413. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4414. let baseOptions;
  4415. if (configuration) {
  4416. baseOptions = configuration.baseOptions;
  4417. }
  4418. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  4419. const localVarHeaderParameter = {} as any;
  4420. const localVarQueryParameter = {} as any;
  4421. // authentication cookie required
  4422. // authentication api_key required
  4423. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4424. // authentication bearer required
  4425. // http bearer authentication required
  4426. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4427. localVarHeaderParameter['Content-Type'] = 'application/json';
  4428. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4429. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4430. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4431. localVarRequestOptions.data = serializeDataIfNeeded(assetBulkUploadCheckDto, localVarRequestOptions, configuration)
  4432. return {
  4433. url: toPathString(localVarUrlObj),
  4434. options: localVarRequestOptions,
  4435. };
  4436. },
  4437. /**
  4438. * Check duplicated asset before uploading - for Web upload used
  4439. * @param {CheckDuplicateAssetDto} checkDuplicateAssetDto
  4440. * @param {string} [key]
  4441. * @param {*} [options] Override http request option.
  4442. * @throws {RequiredError}
  4443. */
  4444. checkDuplicateAsset: async (checkDuplicateAssetDto: CheckDuplicateAssetDto, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4445. // verify required parameter 'checkDuplicateAssetDto' is not null or undefined
  4446. assertParamExists('checkDuplicateAsset', 'checkDuplicateAssetDto', checkDuplicateAssetDto)
  4447. const localVarPath = `/asset/check`;
  4448. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4449. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4450. let baseOptions;
  4451. if (configuration) {
  4452. baseOptions = configuration.baseOptions;
  4453. }
  4454. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  4455. const localVarHeaderParameter = {} as any;
  4456. const localVarQueryParameter = {} as any;
  4457. // authentication cookie required
  4458. // authentication api_key required
  4459. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4460. // authentication bearer required
  4461. // http bearer authentication required
  4462. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4463. if (key !== undefined) {
  4464. localVarQueryParameter['key'] = key;
  4465. }
  4466. localVarHeaderParameter['Content-Type'] = 'application/json';
  4467. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4468. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4469. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4470. localVarRequestOptions.data = serializeDataIfNeeded(checkDuplicateAssetDto, localVarRequestOptions, configuration)
  4471. return {
  4472. url: toPathString(localVarUrlObj),
  4473. options: localVarRequestOptions,
  4474. };
  4475. },
  4476. /**
  4477. * Checks if multiple assets exist on the server and returns all existing - used by background backup
  4478. * @param {CheckExistingAssetsDto} checkExistingAssetsDto
  4479. * @param {*} [options] Override http request option.
  4480. * @throws {RequiredError}
  4481. */
  4482. checkExistingAssets: async (checkExistingAssetsDto: CheckExistingAssetsDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4483. // verify required parameter 'checkExistingAssetsDto' is not null or undefined
  4484. assertParamExists('checkExistingAssets', 'checkExistingAssetsDto', checkExistingAssetsDto)
  4485. const localVarPath = `/asset/exist`;
  4486. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4487. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4488. let baseOptions;
  4489. if (configuration) {
  4490. baseOptions = configuration.baseOptions;
  4491. }
  4492. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  4493. const localVarHeaderParameter = {} as any;
  4494. const localVarQueryParameter = {} as any;
  4495. // authentication cookie required
  4496. // authentication api_key required
  4497. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4498. // authentication bearer required
  4499. // http bearer authentication required
  4500. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4501. localVarHeaderParameter['Content-Type'] = 'application/json';
  4502. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4503. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4504. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4505. localVarRequestOptions.data = serializeDataIfNeeded(checkExistingAssetsDto, localVarRequestOptions, configuration)
  4506. return {
  4507. url: toPathString(localVarUrlObj),
  4508. options: localVarRequestOptions,
  4509. };
  4510. },
  4511. /**
  4512. *
  4513. * @param {DeleteAssetDto} deleteAssetDto
  4514. * @param {*} [options] Override http request option.
  4515. * @throws {RequiredError}
  4516. */
  4517. deleteAsset: async (deleteAssetDto: DeleteAssetDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4518. // verify required parameter 'deleteAssetDto' is not null or undefined
  4519. assertParamExists('deleteAsset', 'deleteAssetDto', deleteAssetDto)
  4520. const localVarPath = `/asset`;
  4521. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4522. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4523. let baseOptions;
  4524. if (configuration) {
  4525. baseOptions = configuration.baseOptions;
  4526. }
  4527. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  4528. const localVarHeaderParameter = {} as any;
  4529. const localVarQueryParameter = {} as any;
  4530. // authentication cookie required
  4531. // authentication api_key required
  4532. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4533. // authentication bearer required
  4534. // http bearer authentication required
  4535. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4536. localVarHeaderParameter['Content-Type'] = 'application/json';
  4537. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4538. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4539. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4540. localVarRequestOptions.data = serializeDataIfNeeded(deleteAssetDto, localVarRequestOptions, configuration)
  4541. return {
  4542. url: toPathString(localVarUrlObj),
  4543. options: localVarRequestOptions,
  4544. };
  4545. },
  4546. /**
  4547. *
  4548. * @param {AssetIdsDto} assetIdsDto
  4549. * @param {string} [key]
  4550. * @param {*} [options] Override http request option.
  4551. * @throws {RequiredError}
  4552. */
  4553. downloadArchive: async (assetIdsDto: AssetIdsDto, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4554. // verify required parameter 'assetIdsDto' is not null or undefined
  4555. assertParamExists('downloadArchive', 'assetIdsDto', assetIdsDto)
  4556. const localVarPath = `/asset/download`;
  4557. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4558. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4559. let baseOptions;
  4560. if (configuration) {
  4561. baseOptions = configuration.baseOptions;
  4562. }
  4563. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  4564. const localVarHeaderParameter = {} as any;
  4565. const localVarQueryParameter = {} as any;
  4566. // authentication cookie required
  4567. // authentication api_key required
  4568. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4569. // authentication bearer required
  4570. // http bearer authentication required
  4571. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4572. if (key !== undefined) {
  4573. localVarQueryParameter['key'] = key;
  4574. }
  4575. localVarHeaderParameter['Content-Type'] = 'application/json';
  4576. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4577. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4578. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4579. localVarRequestOptions.data = serializeDataIfNeeded(assetIdsDto, localVarRequestOptions, configuration)
  4580. return {
  4581. url: toPathString(localVarUrlObj),
  4582. options: localVarRequestOptions,
  4583. };
  4584. },
  4585. /**
  4586. *
  4587. * @param {string} id
  4588. * @param {string} [key]
  4589. * @param {*} [options] Override http request option.
  4590. * @throws {RequiredError}
  4591. */
  4592. downloadFile: async (id: string, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4593. // verify required parameter 'id' is not null or undefined
  4594. assertParamExists('downloadFile', 'id', id)
  4595. const localVarPath = `/asset/download/{id}`
  4596. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  4597. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4598. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4599. let baseOptions;
  4600. if (configuration) {
  4601. baseOptions = configuration.baseOptions;
  4602. }
  4603. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  4604. const localVarHeaderParameter = {} as any;
  4605. const localVarQueryParameter = {} as any;
  4606. // authentication cookie required
  4607. // authentication api_key required
  4608. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4609. // authentication bearer required
  4610. // http bearer authentication required
  4611. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4612. if (key !== undefined) {
  4613. localVarQueryParameter['key'] = key;
  4614. }
  4615. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4616. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4617. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4618. return {
  4619. url: toPathString(localVarUrlObj),
  4620. options: localVarRequestOptions,
  4621. };
  4622. },
  4623. /**
  4624. * Get all AssetEntity belong to the user
  4625. * @param {string} [userId]
  4626. * @param {boolean} [isFavorite]
  4627. * @param {boolean} [isArchived]
  4628. * @param {boolean} [withoutThumbs] Include assets without thumbnails
  4629. * @param {number} [skip]
  4630. * @param {string} [ifNoneMatch] ETag of data already cached on the client
  4631. * @param {*} [options] Override http request option.
  4632. * @throws {RequiredError}
  4633. */
  4634. getAllAssets: async (userId?: string, isFavorite?: boolean, isArchived?: boolean, withoutThumbs?: boolean, skip?: number, ifNoneMatch?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4635. const localVarPath = `/asset`;
  4636. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4637. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4638. let baseOptions;
  4639. if (configuration) {
  4640. baseOptions = configuration.baseOptions;
  4641. }
  4642. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  4643. const localVarHeaderParameter = {} as any;
  4644. const localVarQueryParameter = {} as any;
  4645. // authentication cookie required
  4646. // authentication api_key required
  4647. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4648. // authentication bearer required
  4649. // http bearer authentication required
  4650. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4651. if (userId !== undefined) {
  4652. localVarQueryParameter['userId'] = userId;
  4653. }
  4654. if (isFavorite !== undefined) {
  4655. localVarQueryParameter['isFavorite'] = isFavorite;
  4656. }
  4657. if (isArchived !== undefined) {
  4658. localVarQueryParameter['isArchived'] = isArchived;
  4659. }
  4660. if (withoutThumbs !== undefined) {
  4661. localVarQueryParameter['withoutThumbs'] = withoutThumbs;
  4662. }
  4663. if (skip !== undefined) {
  4664. localVarQueryParameter['skip'] = skip;
  4665. }
  4666. if (ifNoneMatch !== undefined && ifNoneMatch !== null) {
  4667. localVarHeaderParameter['if-none-match'] = String(ifNoneMatch);
  4668. }
  4669. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4670. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4671. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4672. return {
  4673. url: toPathString(localVarUrlObj),
  4674. options: localVarRequestOptions,
  4675. };
  4676. },
  4677. /**
  4678. * Get a single asset\'s information
  4679. * @param {string} id
  4680. * @param {string} [key]
  4681. * @param {*} [options] Override http request option.
  4682. * @throws {RequiredError}
  4683. */
  4684. getAssetById: async (id: string, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4685. // verify required parameter 'id' is not null or undefined
  4686. assertParamExists('getAssetById', 'id', id)
  4687. const localVarPath = `/asset/assetById/{id}`
  4688. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  4689. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4690. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4691. let baseOptions;
  4692. if (configuration) {
  4693. baseOptions = configuration.baseOptions;
  4694. }
  4695. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  4696. const localVarHeaderParameter = {} as any;
  4697. const localVarQueryParameter = {} as any;
  4698. // authentication cookie required
  4699. // authentication api_key required
  4700. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4701. // authentication bearer required
  4702. // http bearer authentication required
  4703. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4704. if (key !== undefined) {
  4705. localVarQueryParameter['key'] = key;
  4706. }
  4707. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4708. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4709. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4710. return {
  4711. url: toPathString(localVarUrlObj),
  4712. options: localVarRequestOptions,
  4713. };
  4714. },
  4715. /**
  4716. *
  4717. * @param {GetAssetByTimeBucketDto} getAssetByTimeBucketDto
  4718. * @param {*} [options] Override http request option.
  4719. * @throws {RequiredError}
  4720. */
  4721. getAssetByTimeBucket: async (getAssetByTimeBucketDto: GetAssetByTimeBucketDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4722. // verify required parameter 'getAssetByTimeBucketDto' is not null or undefined
  4723. assertParamExists('getAssetByTimeBucket', 'getAssetByTimeBucketDto', getAssetByTimeBucketDto)
  4724. const localVarPath = `/asset/time-bucket`;
  4725. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4726. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4727. let baseOptions;
  4728. if (configuration) {
  4729. baseOptions = configuration.baseOptions;
  4730. }
  4731. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  4732. const localVarHeaderParameter = {} as any;
  4733. const localVarQueryParameter = {} as any;
  4734. // authentication cookie required
  4735. // authentication api_key required
  4736. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4737. // authentication bearer required
  4738. // http bearer authentication required
  4739. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4740. localVarHeaderParameter['Content-Type'] = 'application/json';
  4741. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4742. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4743. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4744. localVarRequestOptions.data = serializeDataIfNeeded(getAssetByTimeBucketDto, localVarRequestOptions, configuration)
  4745. return {
  4746. url: toPathString(localVarUrlObj),
  4747. options: localVarRequestOptions,
  4748. };
  4749. },
  4750. /**
  4751. *
  4752. * @param {GetAssetCountByTimeBucketDto} getAssetCountByTimeBucketDto
  4753. * @param {*} [options] Override http request option.
  4754. * @throws {RequiredError}
  4755. */
  4756. getAssetCountByTimeBucket: async (getAssetCountByTimeBucketDto: GetAssetCountByTimeBucketDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4757. // verify required parameter 'getAssetCountByTimeBucketDto' is not null or undefined
  4758. assertParamExists('getAssetCountByTimeBucket', 'getAssetCountByTimeBucketDto', getAssetCountByTimeBucketDto)
  4759. const localVarPath = `/asset/count-by-time-bucket`;
  4760. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4761. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4762. let baseOptions;
  4763. if (configuration) {
  4764. baseOptions = configuration.baseOptions;
  4765. }
  4766. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  4767. const localVarHeaderParameter = {} as any;
  4768. const localVarQueryParameter = {} as any;
  4769. // authentication cookie required
  4770. // authentication api_key required
  4771. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4772. // authentication bearer required
  4773. // http bearer authentication required
  4774. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4775. localVarHeaderParameter['Content-Type'] = 'application/json';
  4776. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4777. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4778. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4779. localVarRequestOptions.data = serializeDataIfNeeded(getAssetCountByTimeBucketDto, localVarRequestOptions, configuration)
  4780. return {
  4781. url: toPathString(localVarUrlObj),
  4782. options: localVarRequestOptions,
  4783. };
  4784. },
  4785. /**
  4786. *
  4787. * @param {*} [options] Override http request option.
  4788. * @throws {RequiredError}
  4789. */
  4790. getAssetSearchTerms: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4791. const localVarPath = `/asset/search-terms`;
  4792. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4793. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4794. let baseOptions;
  4795. if (configuration) {
  4796. baseOptions = configuration.baseOptions;
  4797. }
  4798. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  4799. const localVarHeaderParameter = {} as any;
  4800. const localVarQueryParameter = {} as any;
  4801. // authentication cookie required
  4802. // authentication api_key required
  4803. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4804. // authentication bearer required
  4805. // http bearer authentication required
  4806. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4807. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4808. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4809. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4810. return {
  4811. url: toPathString(localVarUrlObj),
  4812. options: localVarRequestOptions,
  4813. };
  4814. },
  4815. /**
  4816. *
  4817. * @param {boolean} [isArchived]
  4818. * @param {boolean} [isFavorite]
  4819. * @param {*} [options] Override http request option.
  4820. * @throws {RequiredError}
  4821. */
  4822. getAssetStats: async (isArchived?: boolean, isFavorite?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4823. const localVarPath = `/asset/statistics`;
  4824. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4825. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4826. let baseOptions;
  4827. if (configuration) {
  4828. baseOptions = configuration.baseOptions;
  4829. }
  4830. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  4831. const localVarHeaderParameter = {} as any;
  4832. const localVarQueryParameter = {} as any;
  4833. // authentication cookie required
  4834. // authentication api_key required
  4835. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4836. // authentication bearer required
  4837. // http bearer authentication required
  4838. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4839. if (isArchived !== undefined) {
  4840. localVarQueryParameter['isArchived'] = isArchived;
  4841. }
  4842. if (isFavorite !== undefined) {
  4843. localVarQueryParameter['isFavorite'] = isFavorite;
  4844. }
  4845. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4846. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4847. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4848. return {
  4849. url: toPathString(localVarUrlObj),
  4850. options: localVarRequestOptions,
  4851. };
  4852. },
  4853. /**
  4854. *
  4855. * @param {string} id
  4856. * @param {ThumbnailFormat} [format]
  4857. * @param {string} [key]
  4858. * @param {*} [options] Override http request option.
  4859. * @throws {RequiredError}
  4860. */
  4861. getAssetThumbnail: async (id: string, format?: ThumbnailFormat, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4862. // verify required parameter 'id' is not null or undefined
  4863. assertParamExists('getAssetThumbnail', 'id', id)
  4864. const localVarPath = `/asset/thumbnail/{id}`
  4865. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  4866. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4867. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4868. let baseOptions;
  4869. if (configuration) {
  4870. baseOptions = configuration.baseOptions;
  4871. }
  4872. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  4873. const localVarHeaderParameter = {} as any;
  4874. const localVarQueryParameter = {} as any;
  4875. // authentication cookie required
  4876. // authentication api_key required
  4877. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4878. // authentication bearer required
  4879. // http bearer authentication required
  4880. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4881. if (format !== undefined) {
  4882. localVarQueryParameter['format'] = format;
  4883. }
  4884. if (key !== undefined) {
  4885. localVarQueryParameter['key'] = key;
  4886. }
  4887. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4888. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4889. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4890. return {
  4891. url: toPathString(localVarUrlObj),
  4892. options: localVarRequestOptions,
  4893. };
  4894. },
  4895. /**
  4896. *
  4897. * @param {*} [options] Override http request option.
  4898. * @throws {RequiredError}
  4899. */
  4900. getCuratedLocations: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4901. const localVarPath = `/asset/curated-locations`;
  4902. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4903. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4904. let baseOptions;
  4905. if (configuration) {
  4906. baseOptions = configuration.baseOptions;
  4907. }
  4908. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  4909. const localVarHeaderParameter = {} as any;
  4910. const localVarQueryParameter = {} as any;
  4911. // authentication cookie required
  4912. // authentication api_key required
  4913. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4914. // authentication bearer required
  4915. // http bearer authentication required
  4916. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4917. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4918. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4919. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4920. return {
  4921. url: toPathString(localVarUrlObj),
  4922. options: localVarRequestOptions,
  4923. };
  4924. },
  4925. /**
  4926. *
  4927. * @param {*} [options] Override http request option.
  4928. * @throws {RequiredError}
  4929. */
  4930. getCuratedObjects: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4931. const localVarPath = `/asset/curated-objects`;
  4932. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4933. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4934. let baseOptions;
  4935. if (configuration) {
  4936. baseOptions = configuration.baseOptions;
  4937. }
  4938. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  4939. const localVarHeaderParameter = {} as any;
  4940. const localVarQueryParameter = {} as any;
  4941. // authentication cookie required
  4942. // authentication api_key required
  4943. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4944. // authentication bearer required
  4945. // http bearer authentication required
  4946. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4947. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4948. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4949. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4950. return {
  4951. url: toPathString(localVarUrlObj),
  4952. options: localVarRequestOptions,
  4953. };
  4954. },
  4955. /**
  4956. *
  4957. * @param {Array<string>} [assetIds]
  4958. * @param {string} [albumId]
  4959. * @param {string} [userId]
  4960. * @param {number} [archiveSize]
  4961. * @param {string} [key]
  4962. * @param {*} [options] Override http request option.
  4963. * @throws {RequiredError}
  4964. */
  4965. getDownloadInfo: async (assetIds?: Array<string>, albumId?: string, userId?: string, archiveSize?: number, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4966. const localVarPath = `/asset/download`;
  4967. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4968. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4969. let baseOptions;
  4970. if (configuration) {
  4971. baseOptions = configuration.baseOptions;
  4972. }
  4973. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  4974. const localVarHeaderParameter = {} as any;
  4975. const localVarQueryParameter = {} as any;
  4976. // authentication cookie required
  4977. // authentication api_key required
  4978. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4979. // authentication bearer required
  4980. // http bearer authentication required
  4981. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4982. if (assetIds) {
  4983. localVarQueryParameter['assetIds'] = assetIds;
  4984. }
  4985. if (albumId !== undefined) {
  4986. localVarQueryParameter['albumId'] = albumId;
  4987. }
  4988. if (userId !== undefined) {
  4989. localVarQueryParameter['userId'] = userId;
  4990. }
  4991. if (archiveSize !== undefined) {
  4992. localVarQueryParameter['archiveSize'] = archiveSize;
  4993. }
  4994. if (key !== undefined) {
  4995. localVarQueryParameter['key'] = key;
  4996. }
  4997. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4998. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4999. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5000. return {
  5001. url: toPathString(localVarUrlObj),
  5002. options: localVarRequestOptions,
  5003. };
  5004. },
  5005. /**
  5006. *
  5007. * @param {boolean} [isFavorite]
  5008. * @param {string} [fileCreatedAfter]
  5009. * @param {string} [fileCreatedBefore]
  5010. * @param {*} [options] Override http request option.
  5011. * @throws {RequiredError}
  5012. */
  5013. getMapMarkers: async (isFavorite?: boolean, fileCreatedAfter?: string, fileCreatedBefore?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5014. const localVarPath = `/asset/map-marker`;
  5015. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5016. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5017. let baseOptions;
  5018. if (configuration) {
  5019. baseOptions = configuration.baseOptions;
  5020. }
  5021. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  5022. const localVarHeaderParameter = {} as any;
  5023. const localVarQueryParameter = {} as any;
  5024. // authentication cookie required
  5025. // authentication api_key required
  5026. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5027. // authentication bearer required
  5028. // http bearer authentication required
  5029. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5030. if (isFavorite !== undefined) {
  5031. localVarQueryParameter['isFavorite'] = isFavorite;
  5032. }
  5033. if (fileCreatedAfter !== undefined) {
  5034. localVarQueryParameter['fileCreatedAfter'] = (fileCreatedAfter as any instanceof Date) ?
  5035. (fileCreatedAfter as any).toISOString() :
  5036. fileCreatedAfter;
  5037. }
  5038. if (fileCreatedBefore !== undefined) {
  5039. localVarQueryParameter['fileCreatedBefore'] = (fileCreatedBefore as any instanceof Date) ?
  5040. (fileCreatedBefore as any).toISOString() :
  5041. fileCreatedBefore;
  5042. }
  5043. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5044. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5045. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5046. return {
  5047. url: toPathString(localVarUrlObj),
  5048. options: localVarRequestOptions,
  5049. };
  5050. },
  5051. /**
  5052. *
  5053. * @param {string} timestamp Get pictures for +24 hours from this time going back x years
  5054. * @param {*} [options] Override http request option.
  5055. * @throws {RequiredError}
  5056. */
  5057. getMemoryLane: async (timestamp: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5058. // verify required parameter 'timestamp' is not null or undefined
  5059. assertParamExists('getMemoryLane', 'timestamp', timestamp)
  5060. const localVarPath = `/asset/memory-lane`;
  5061. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5062. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5063. let baseOptions;
  5064. if (configuration) {
  5065. baseOptions = configuration.baseOptions;
  5066. }
  5067. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  5068. const localVarHeaderParameter = {} as any;
  5069. const localVarQueryParameter = {} as any;
  5070. // authentication cookie required
  5071. // authentication api_key required
  5072. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5073. // authentication bearer required
  5074. // http bearer authentication required
  5075. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5076. if (timestamp !== undefined) {
  5077. localVarQueryParameter['timestamp'] = (timestamp as any instanceof Date) ?
  5078. (timestamp as any).toISOString() :
  5079. timestamp;
  5080. }
  5081. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5082. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5083. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5084. return {
  5085. url: toPathString(localVarUrlObj),
  5086. options: localVarRequestOptions,
  5087. };
  5088. },
  5089. /**
  5090. * Get all asset of a device that are in the database, ID only.
  5091. * @param {string} deviceId
  5092. * @param {*} [options] Override http request option.
  5093. * @throws {RequiredError}
  5094. */
  5095. getUserAssetsByDeviceId: async (deviceId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5096. // verify required parameter 'deviceId' is not null or undefined
  5097. assertParamExists('getUserAssetsByDeviceId', 'deviceId', deviceId)
  5098. const localVarPath = `/asset/{deviceId}`
  5099. .replace(`{${"deviceId"}}`, encodeURIComponent(String(deviceId)));
  5100. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5101. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5102. let baseOptions;
  5103. if (configuration) {
  5104. baseOptions = configuration.baseOptions;
  5105. }
  5106. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  5107. const localVarHeaderParameter = {} as any;
  5108. const localVarQueryParameter = {} as any;
  5109. // authentication cookie required
  5110. // authentication api_key required
  5111. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5112. // authentication bearer required
  5113. // http bearer authentication required
  5114. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5115. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5116. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5117. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5118. return {
  5119. url: toPathString(localVarUrlObj),
  5120. options: localVarRequestOptions,
  5121. };
  5122. },
  5123. /**
  5124. *
  5125. * @param {ImportAssetDto} importAssetDto
  5126. * @param {*} [options] Override http request option.
  5127. * @throws {RequiredError}
  5128. */
  5129. importFile: async (importAssetDto: ImportAssetDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5130. // verify required parameter 'importAssetDto' is not null or undefined
  5131. assertParamExists('importFile', 'importAssetDto', importAssetDto)
  5132. const localVarPath = `/asset/import`;
  5133. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5134. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5135. let baseOptions;
  5136. if (configuration) {
  5137. baseOptions = configuration.baseOptions;
  5138. }
  5139. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  5140. const localVarHeaderParameter = {} as any;
  5141. const localVarQueryParameter = {} as any;
  5142. // authentication cookie required
  5143. // authentication api_key required
  5144. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5145. // authentication bearer required
  5146. // http bearer authentication required
  5147. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5148. localVarHeaderParameter['Content-Type'] = 'application/json';
  5149. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5150. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5151. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5152. localVarRequestOptions.data = serializeDataIfNeeded(importAssetDto, localVarRequestOptions, configuration)
  5153. return {
  5154. url: toPathString(localVarUrlObj),
  5155. options: localVarRequestOptions,
  5156. };
  5157. },
  5158. /**
  5159. *
  5160. * @param {SearchAssetDto} searchAssetDto
  5161. * @param {*} [options] Override http request option.
  5162. * @throws {RequiredError}
  5163. */
  5164. searchAsset: async (searchAssetDto: SearchAssetDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5165. // verify required parameter 'searchAssetDto' is not null or undefined
  5166. assertParamExists('searchAsset', 'searchAssetDto', searchAssetDto)
  5167. const localVarPath = `/asset/search`;
  5168. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5169. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5170. let baseOptions;
  5171. if (configuration) {
  5172. baseOptions = configuration.baseOptions;
  5173. }
  5174. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  5175. const localVarHeaderParameter = {} as any;
  5176. const localVarQueryParameter = {} as any;
  5177. // authentication cookie required
  5178. // authentication api_key required
  5179. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5180. // authentication bearer required
  5181. // http bearer authentication required
  5182. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5183. localVarHeaderParameter['Content-Type'] = 'application/json';
  5184. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5185. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5186. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5187. localVarRequestOptions.data = serializeDataIfNeeded(searchAssetDto, localVarRequestOptions, configuration)
  5188. return {
  5189. url: toPathString(localVarUrlObj),
  5190. options: localVarRequestOptions,
  5191. };
  5192. },
  5193. /**
  5194. *
  5195. * @param {string} id
  5196. * @param {boolean} [isThumb]
  5197. * @param {boolean} [isWeb]
  5198. * @param {string} [key]
  5199. * @param {*} [options] Override http request option.
  5200. * @throws {RequiredError}
  5201. */
  5202. serveFile: async (id: string, isThumb?: boolean, isWeb?: boolean, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5203. // verify required parameter 'id' is not null or undefined
  5204. assertParamExists('serveFile', 'id', id)
  5205. const localVarPath = `/asset/file/{id}`
  5206. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  5207. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5208. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5209. let baseOptions;
  5210. if (configuration) {
  5211. baseOptions = configuration.baseOptions;
  5212. }
  5213. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  5214. const localVarHeaderParameter = {} as any;
  5215. const localVarQueryParameter = {} as any;
  5216. // authentication cookie required
  5217. // authentication api_key required
  5218. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5219. // authentication bearer required
  5220. // http bearer authentication required
  5221. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5222. if (isThumb !== undefined) {
  5223. localVarQueryParameter['isThumb'] = isThumb;
  5224. }
  5225. if (isWeb !== undefined) {
  5226. localVarQueryParameter['isWeb'] = isWeb;
  5227. }
  5228. if (key !== undefined) {
  5229. localVarQueryParameter['key'] = key;
  5230. }
  5231. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5232. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5233. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5234. return {
  5235. url: toPathString(localVarUrlObj),
  5236. options: localVarRequestOptions,
  5237. };
  5238. },
  5239. /**
  5240. * Update an asset
  5241. * @param {string} id
  5242. * @param {UpdateAssetDto} updateAssetDto
  5243. * @param {*} [options] Override http request option.
  5244. * @throws {RequiredError}
  5245. */
  5246. updateAsset: async (id: string, updateAssetDto: UpdateAssetDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5247. // verify required parameter 'id' is not null or undefined
  5248. assertParamExists('updateAsset', 'id', id)
  5249. // verify required parameter 'updateAssetDto' is not null or undefined
  5250. assertParamExists('updateAsset', 'updateAssetDto', updateAssetDto)
  5251. const localVarPath = `/asset/{id}`
  5252. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  5253. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5254. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5255. let baseOptions;
  5256. if (configuration) {
  5257. baseOptions = configuration.baseOptions;
  5258. }
  5259. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  5260. const localVarHeaderParameter = {} as any;
  5261. const localVarQueryParameter = {} as any;
  5262. // authentication cookie required
  5263. // authentication api_key required
  5264. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5265. // authentication bearer required
  5266. // http bearer authentication required
  5267. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5268. localVarHeaderParameter['Content-Type'] = 'application/json';
  5269. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5270. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5271. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5272. localVarRequestOptions.data = serializeDataIfNeeded(updateAssetDto, localVarRequestOptions, configuration)
  5273. return {
  5274. url: toPathString(localVarUrlObj),
  5275. options: localVarRequestOptions,
  5276. };
  5277. },
  5278. /**
  5279. *
  5280. * @param {File} assetData
  5281. * @param {string} deviceAssetId
  5282. * @param {string} deviceId
  5283. * @param {string} fileCreatedAt
  5284. * @param {string} fileModifiedAt
  5285. * @param {boolean} isFavorite
  5286. * @param {string} [key]
  5287. * @param {string} [duration]
  5288. * @param {boolean} [isArchived]
  5289. * @param {boolean} [isReadOnly]
  5290. * @param {boolean} [isVisible]
  5291. * @param {File} [livePhotoData]
  5292. * @param {File} [sidecarData]
  5293. * @param {*} [options] Override http request option.
  5294. * @throws {RequiredError}
  5295. */
  5296. uploadFile: async (assetData: File, deviceAssetId: string, deviceId: string, fileCreatedAt: string, fileModifiedAt: string, isFavorite: boolean, key?: string, duration?: string, isArchived?: boolean, isReadOnly?: boolean, isVisible?: boolean, livePhotoData?: File, sidecarData?: File, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5297. // verify required parameter 'assetData' is not null or undefined
  5298. assertParamExists('uploadFile', 'assetData', assetData)
  5299. // verify required parameter 'deviceAssetId' is not null or undefined
  5300. assertParamExists('uploadFile', 'deviceAssetId', deviceAssetId)
  5301. // verify required parameter 'deviceId' is not null or undefined
  5302. assertParamExists('uploadFile', 'deviceId', deviceId)
  5303. // verify required parameter 'fileCreatedAt' is not null or undefined
  5304. assertParamExists('uploadFile', 'fileCreatedAt', fileCreatedAt)
  5305. // verify required parameter 'fileModifiedAt' is not null or undefined
  5306. assertParamExists('uploadFile', 'fileModifiedAt', fileModifiedAt)
  5307. // verify required parameter 'isFavorite' is not null or undefined
  5308. assertParamExists('uploadFile', 'isFavorite', isFavorite)
  5309. const localVarPath = `/asset/upload`;
  5310. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5311. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5312. let baseOptions;
  5313. if (configuration) {
  5314. baseOptions = configuration.baseOptions;
  5315. }
  5316. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  5317. const localVarHeaderParameter = {} as any;
  5318. const localVarQueryParameter = {} as any;
  5319. const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
  5320. // authentication cookie required
  5321. // authentication api_key required
  5322. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5323. // authentication bearer required
  5324. // http bearer authentication required
  5325. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5326. if (key !== undefined) {
  5327. localVarQueryParameter['key'] = key;
  5328. }
  5329. if (assetData !== undefined) {
  5330. localVarFormParams.append('assetData', assetData as any);
  5331. }
  5332. if (deviceAssetId !== undefined) {
  5333. localVarFormParams.append('deviceAssetId', deviceAssetId as any);
  5334. }
  5335. if (deviceId !== undefined) {
  5336. localVarFormParams.append('deviceId', deviceId as any);
  5337. }
  5338. if (duration !== undefined) {
  5339. localVarFormParams.append('duration', duration as any);
  5340. }
  5341. if (fileCreatedAt !== undefined) {
  5342. localVarFormParams.append('fileCreatedAt', fileCreatedAt as any);
  5343. }
  5344. if (fileModifiedAt !== undefined) {
  5345. localVarFormParams.append('fileModifiedAt', fileModifiedAt as any);
  5346. }
  5347. if (isArchived !== undefined) {
  5348. localVarFormParams.append('isArchived', isArchived as any);
  5349. }
  5350. if (isFavorite !== undefined) {
  5351. localVarFormParams.append('isFavorite', isFavorite as any);
  5352. }
  5353. if (isReadOnly !== undefined) {
  5354. localVarFormParams.append('isReadOnly', isReadOnly as any);
  5355. }
  5356. if (isVisible !== undefined) {
  5357. localVarFormParams.append('isVisible', isVisible as any);
  5358. }
  5359. if (livePhotoData !== undefined) {
  5360. localVarFormParams.append('livePhotoData', livePhotoData as any);
  5361. }
  5362. if (sidecarData !== undefined) {
  5363. localVarFormParams.append('sidecarData', sidecarData as any);
  5364. }
  5365. localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
  5366. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5367. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5368. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5369. localVarRequestOptions.data = localVarFormParams;
  5370. return {
  5371. url: toPathString(localVarUrlObj),
  5372. options: localVarRequestOptions,
  5373. };
  5374. },
  5375. }
  5376. };
  5377. /**
  5378. * AssetApi - functional programming interface
  5379. * @export
  5380. */
  5381. export const AssetApiFp = function(configuration?: Configuration) {
  5382. const localVarAxiosParamCreator = AssetApiAxiosParamCreator(configuration)
  5383. return {
  5384. /**
  5385. * Checks if assets exist by checksums
  5386. * @param {AssetBulkUploadCheckDto} assetBulkUploadCheckDto
  5387. * @param {*} [options] Override http request option.
  5388. * @throws {RequiredError}
  5389. */
  5390. async bulkUploadCheck(assetBulkUploadCheckDto: AssetBulkUploadCheckDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AssetBulkUploadCheckResponseDto>> {
  5391. const localVarAxiosArgs = await localVarAxiosParamCreator.bulkUploadCheck(assetBulkUploadCheckDto, options);
  5392. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5393. },
  5394. /**
  5395. * Check duplicated asset before uploading - for Web upload used
  5396. * @param {CheckDuplicateAssetDto} checkDuplicateAssetDto
  5397. * @param {string} [key]
  5398. * @param {*} [options] Override http request option.
  5399. * @throws {RequiredError}
  5400. */
  5401. async checkDuplicateAsset(checkDuplicateAssetDto: CheckDuplicateAssetDto, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CheckDuplicateAssetResponseDto>> {
  5402. const localVarAxiosArgs = await localVarAxiosParamCreator.checkDuplicateAsset(checkDuplicateAssetDto, key, options);
  5403. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5404. },
  5405. /**
  5406. * Checks if multiple assets exist on the server and returns all existing - used by background backup
  5407. * @param {CheckExistingAssetsDto} checkExistingAssetsDto
  5408. * @param {*} [options] Override http request option.
  5409. * @throws {RequiredError}
  5410. */
  5411. async checkExistingAssets(checkExistingAssetsDto: CheckExistingAssetsDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CheckExistingAssetsResponseDto>> {
  5412. const localVarAxiosArgs = await localVarAxiosParamCreator.checkExistingAssets(checkExistingAssetsDto, options);
  5413. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5414. },
  5415. /**
  5416. *
  5417. * @param {DeleteAssetDto} deleteAssetDto
  5418. * @param {*} [options] Override http request option.
  5419. * @throws {RequiredError}
  5420. */
  5421. async deleteAsset(deleteAssetDto: DeleteAssetDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<DeleteAssetResponseDto>>> {
  5422. const localVarAxiosArgs = await localVarAxiosParamCreator.deleteAsset(deleteAssetDto, options);
  5423. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5424. },
  5425. /**
  5426. *
  5427. * @param {AssetIdsDto} assetIdsDto
  5428. * @param {string} [key]
  5429. * @param {*} [options] Override http request option.
  5430. * @throws {RequiredError}
  5431. */
  5432. async downloadArchive(assetIdsDto: AssetIdsDto, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>> {
  5433. const localVarAxiosArgs = await localVarAxiosParamCreator.downloadArchive(assetIdsDto, key, options);
  5434. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5435. },
  5436. /**
  5437. *
  5438. * @param {string} id
  5439. * @param {string} [key]
  5440. * @param {*} [options] Override http request option.
  5441. * @throws {RequiredError}
  5442. */
  5443. async downloadFile(id: string, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>> {
  5444. const localVarAxiosArgs = await localVarAxiosParamCreator.downloadFile(id, key, options);
  5445. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5446. },
  5447. /**
  5448. * Get all AssetEntity belong to the user
  5449. * @param {string} [userId]
  5450. * @param {boolean} [isFavorite]
  5451. * @param {boolean} [isArchived]
  5452. * @param {boolean} [withoutThumbs] Include assets without thumbnails
  5453. * @param {number} [skip]
  5454. * @param {string} [ifNoneMatch] ETag of data already cached on the client
  5455. * @param {*} [options] Override http request option.
  5456. * @throws {RequiredError}
  5457. */
  5458. async getAllAssets(userId?: string, isFavorite?: boolean, isArchived?: boolean, withoutThumbs?: boolean, skip?: number, ifNoneMatch?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetResponseDto>>> {
  5459. const localVarAxiosArgs = await localVarAxiosParamCreator.getAllAssets(userId, isFavorite, isArchived, withoutThumbs, skip, ifNoneMatch, options);
  5460. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5461. },
  5462. /**
  5463. * Get a single asset\'s information
  5464. * @param {string} id
  5465. * @param {string} [key]
  5466. * @param {*} [options] Override http request option.
  5467. * @throws {RequiredError}
  5468. */
  5469. async getAssetById(id: string, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AssetResponseDto>> {
  5470. const localVarAxiosArgs = await localVarAxiosParamCreator.getAssetById(id, key, options);
  5471. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5472. },
  5473. /**
  5474. *
  5475. * @param {GetAssetByTimeBucketDto} getAssetByTimeBucketDto
  5476. * @param {*} [options] Override http request option.
  5477. * @throws {RequiredError}
  5478. */
  5479. async getAssetByTimeBucket(getAssetByTimeBucketDto: GetAssetByTimeBucketDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetResponseDto>>> {
  5480. const localVarAxiosArgs = await localVarAxiosParamCreator.getAssetByTimeBucket(getAssetByTimeBucketDto, options);
  5481. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5482. },
  5483. /**
  5484. *
  5485. * @param {GetAssetCountByTimeBucketDto} getAssetCountByTimeBucketDto
  5486. * @param {*} [options] Override http request option.
  5487. * @throws {RequiredError}
  5488. */
  5489. async getAssetCountByTimeBucket(getAssetCountByTimeBucketDto: GetAssetCountByTimeBucketDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AssetCountByTimeBucketResponseDto>> {
  5490. const localVarAxiosArgs = await localVarAxiosParamCreator.getAssetCountByTimeBucket(getAssetCountByTimeBucketDto, options);
  5491. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5492. },
  5493. /**
  5494. *
  5495. * @param {*} [options] Override http request option.
  5496. * @throws {RequiredError}
  5497. */
  5498. async getAssetSearchTerms(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<string>>> {
  5499. const localVarAxiosArgs = await localVarAxiosParamCreator.getAssetSearchTerms(options);
  5500. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5501. },
  5502. /**
  5503. *
  5504. * @param {boolean} [isArchived]
  5505. * @param {boolean} [isFavorite]
  5506. * @param {*} [options] Override http request option.
  5507. * @throws {RequiredError}
  5508. */
  5509. async getAssetStats(isArchived?: boolean, isFavorite?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AssetStatsResponseDto>> {
  5510. const localVarAxiosArgs = await localVarAxiosParamCreator.getAssetStats(isArchived, isFavorite, options);
  5511. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5512. },
  5513. /**
  5514. *
  5515. * @param {string} id
  5516. * @param {ThumbnailFormat} [format]
  5517. * @param {string} [key]
  5518. * @param {*} [options] Override http request option.
  5519. * @throws {RequiredError}
  5520. */
  5521. async getAssetThumbnail(id: string, format?: ThumbnailFormat, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>> {
  5522. const localVarAxiosArgs = await localVarAxiosParamCreator.getAssetThumbnail(id, format, key, options);
  5523. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5524. },
  5525. /**
  5526. *
  5527. * @param {*} [options] Override http request option.
  5528. * @throws {RequiredError}
  5529. */
  5530. async getCuratedLocations(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<CuratedLocationsResponseDto>>> {
  5531. const localVarAxiosArgs = await localVarAxiosParamCreator.getCuratedLocations(options);
  5532. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5533. },
  5534. /**
  5535. *
  5536. * @param {*} [options] Override http request option.
  5537. * @throws {RequiredError}
  5538. */
  5539. async getCuratedObjects(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<CuratedObjectsResponseDto>>> {
  5540. const localVarAxiosArgs = await localVarAxiosParamCreator.getCuratedObjects(options);
  5541. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5542. },
  5543. /**
  5544. *
  5545. * @param {Array<string>} [assetIds]
  5546. * @param {string} [albumId]
  5547. * @param {string} [userId]
  5548. * @param {number} [archiveSize]
  5549. * @param {string} [key]
  5550. * @param {*} [options] Override http request option.
  5551. * @throws {RequiredError}
  5552. */
  5553. async getDownloadInfo(assetIds?: Array<string>, albumId?: string, userId?: string, archiveSize?: number, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DownloadResponseDto>> {
  5554. const localVarAxiosArgs = await localVarAxiosParamCreator.getDownloadInfo(assetIds, albumId, userId, archiveSize, key, options);
  5555. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5556. },
  5557. /**
  5558. *
  5559. * @param {boolean} [isFavorite]
  5560. * @param {string} [fileCreatedAfter]
  5561. * @param {string} [fileCreatedBefore]
  5562. * @param {*} [options] Override http request option.
  5563. * @throws {RequiredError}
  5564. */
  5565. async getMapMarkers(isFavorite?: boolean, fileCreatedAfter?: string, fileCreatedBefore?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<MapMarkerResponseDto>>> {
  5566. const localVarAxiosArgs = await localVarAxiosParamCreator.getMapMarkers(isFavorite, fileCreatedAfter, fileCreatedBefore, options);
  5567. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5568. },
  5569. /**
  5570. *
  5571. * @param {string} timestamp Get pictures for +24 hours from this time going back x years
  5572. * @param {*} [options] Override http request option.
  5573. * @throws {RequiredError}
  5574. */
  5575. async getMemoryLane(timestamp: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<MemoryLaneResponseDto>>> {
  5576. const localVarAxiosArgs = await localVarAxiosParamCreator.getMemoryLane(timestamp, options);
  5577. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5578. },
  5579. /**
  5580. * Get all asset of a device that are in the database, ID only.
  5581. * @param {string} deviceId
  5582. * @param {*} [options] Override http request option.
  5583. * @throws {RequiredError}
  5584. */
  5585. async getUserAssetsByDeviceId(deviceId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<string>>> {
  5586. const localVarAxiosArgs = await localVarAxiosParamCreator.getUserAssetsByDeviceId(deviceId, options);
  5587. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5588. },
  5589. /**
  5590. *
  5591. * @param {ImportAssetDto} importAssetDto
  5592. * @param {*} [options] Override http request option.
  5593. * @throws {RequiredError}
  5594. */
  5595. async importFile(importAssetDto: ImportAssetDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AssetFileUploadResponseDto>> {
  5596. const localVarAxiosArgs = await localVarAxiosParamCreator.importFile(importAssetDto, options);
  5597. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5598. },
  5599. /**
  5600. *
  5601. * @param {SearchAssetDto} searchAssetDto
  5602. * @param {*} [options] Override http request option.
  5603. * @throws {RequiredError}
  5604. */
  5605. async searchAsset(searchAssetDto: SearchAssetDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetResponseDto>>> {
  5606. const localVarAxiosArgs = await localVarAxiosParamCreator.searchAsset(searchAssetDto, options);
  5607. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5608. },
  5609. /**
  5610. *
  5611. * @param {string} id
  5612. * @param {boolean} [isThumb]
  5613. * @param {boolean} [isWeb]
  5614. * @param {string} [key]
  5615. * @param {*} [options] Override http request option.
  5616. * @throws {RequiredError}
  5617. */
  5618. async serveFile(id: string, isThumb?: boolean, isWeb?: boolean, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>> {
  5619. const localVarAxiosArgs = await localVarAxiosParamCreator.serveFile(id, isThumb, isWeb, key, options);
  5620. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5621. },
  5622. /**
  5623. * Update an asset
  5624. * @param {string} id
  5625. * @param {UpdateAssetDto} updateAssetDto
  5626. * @param {*} [options] Override http request option.
  5627. * @throws {RequiredError}
  5628. */
  5629. async updateAsset(id: string, updateAssetDto: UpdateAssetDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AssetResponseDto>> {
  5630. const localVarAxiosArgs = await localVarAxiosParamCreator.updateAsset(id, updateAssetDto, options);
  5631. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5632. },
  5633. /**
  5634. *
  5635. * @param {File} assetData
  5636. * @param {string} deviceAssetId
  5637. * @param {string} deviceId
  5638. * @param {string} fileCreatedAt
  5639. * @param {string} fileModifiedAt
  5640. * @param {boolean} isFavorite
  5641. * @param {string} [key]
  5642. * @param {string} [duration]
  5643. * @param {boolean} [isArchived]
  5644. * @param {boolean} [isReadOnly]
  5645. * @param {boolean} [isVisible]
  5646. * @param {File} [livePhotoData]
  5647. * @param {File} [sidecarData]
  5648. * @param {*} [options] Override http request option.
  5649. * @throws {RequiredError}
  5650. */
  5651. async uploadFile(assetData: File, deviceAssetId: string, deviceId: string, fileCreatedAt: string, fileModifiedAt: string, isFavorite: boolean, key?: string, duration?: string, isArchived?: boolean, isReadOnly?: boolean, isVisible?: boolean, livePhotoData?: File, sidecarData?: File, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AssetFileUploadResponseDto>> {
  5652. const localVarAxiosArgs = await localVarAxiosParamCreator.uploadFile(assetData, deviceAssetId, deviceId, fileCreatedAt, fileModifiedAt, isFavorite, key, duration, isArchived, isReadOnly, isVisible, livePhotoData, sidecarData, options);
  5653. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5654. },
  5655. }
  5656. };
  5657. /**
  5658. * AssetApi - factory interface
  5659. * @export
  5660. */
  5661. export const AssetApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  5662. const localVarFp = AssetApiFp(configuration)
  5663. return {
  5664. /**
  5665. * Checks if assets exist by checksums
  5666. * @param {AssetBulkUploadCheckDto} assetBulkUploadCheckDto
  5667. * @param {*} [options] Override http request option.
  5668. * @throws {RequiredError}
  5669. */
  5670. bulkUploadCheck(assetBulkUploadCheckDto: AssetBulkUploadCheckDto, options?: any): AxiosPromise<AssetBulkUploadCheckResponseDto> {
  5671. return localVarFp.bulkUploadCheck(assetBulkUploadCheckDto, options).then((request) => request(axios, basePath));
  5672. },
  5673. /**
  5674. * Check duplicated asset before uploading - for Web upload used
  5675. * @param {CheckDuplicateAssetDto} checkDuplicateAssetDto
  5676. * @param {string} [key]
  5677. * @param {*} [options] Override http request option.
  5678. * @throws {RequiredError}
  5679. */
  5680. checkDuplicateAsset(checkDuplicateAssetDto: CheckDuplicateAssetDto, key?: string, options?: any): AxiosPromise<CheckDuplicateAssetResponseDto> {
  5681. return localVarFp.checkDuplicateAsset(checkDuplicateAssetDto, key, options).then((request) => request(axios, basePath));
  5682. },
  5683. /**
  5684. * Checks if multiple assets exist on the server and returns all existing - used by background backup
  5685. * @param {CheckExistingAssetsDto} checkExistingAssetsDto
  5686. * @param {*} [options] Override http request option.
  5687. * @throws {RequiredError}
  5688. */
  5689. checkExistingAssets(checkExistingAssetsDto: CheckExistingAssetsDto, options?: any): AxiosPromise<CheckExistingAssetsResponseDto> {
  5690. return localVarFp.checkExistingAssets(checkExistingAssetsDto, options).then((request) => request(axios, basePath));
  5691. },
  5692. /**
  5693. *
  5694. * @param {DeleteAssetDto} deleteAssetDto
  5695. * @param {*} [options] Override http request option.
  5696. * @throws {RequiredError}
  5697. */
  5698. deleteAsset(deleteAssetDto: DeleteAssetDto, options?: any): AxiosPromise<Array<DeleteAssetResponseDto>> {
  5699. return localVarFp.deleteAsset(deleteAssetDto, options).then((request) => request(axios, basePath));
  5700. },
  5701. /**
  5702. *
  5703. * @param {AssetIdsDto} assetIdsDto
  5704. * @param {string} [key]
  5705. * @param {*} [options] Override http request option.
  5706. * @throws {RequiredError}
  5707. */
  5708. downloadArchive(assetIdsDto: AssetIdsDto, key?: string, options?: any): AxiosPromise<File> {
  5709. return localVarFp.downloadArchive(assetIdsDto, key, options).then((request) => request(axios, basePath));
  5710. },
  5711. /**
  5712. *
  5713. * @param {string} id
  5714. * @param {string} [key]
  5715. * @param {*} [options] Override http request option.
  5716. * @throws {RequiredError}
  5717. */
  5718. downloadFile(id: string, key?: string, options?: any): AxiosPromise<File> {
  5719. return localVarFp.downloadFile(id, key, options).then((request) => request(axios, basePath));
  5720. },
  5721. /**
  5722. * Get all AssetEntity belong to the user
  5723. * @param {string} [userId]
  5724. * @param {boolean} [isFavorite]
  5725. * @param {boolean} [isArchived]
  5726. * @param {boolean} [withoutThumbs] Include assets without thumbnails
  5727. * @param {number} [skip]
  5728. * @param {string} [ifNoneMatch] ETag of data already cached on the client
  5729. * @param {*} [options] Override http request option.
  5730. * @throws {RequiredError}
  5731. */
  5732. getAllAssets(userId?: string, isFavorite?: boolean, isArchived?: boolean, withoutThumbs?: boolean, skip?: number, ifNoneMatch?: string, options?: any): AxiosPromise<Array<AssetResponseDto>> {
  5733. return localVarFp.getAllAssets(userId, isFavorite, isArchived, withoutThumbs, skip, ifNoneMatch, options).then((request) => request(axios, basePath));
  5734. },
  5735. /**
  5736. * Get a single asset\'s information
  5737. * @param {string} id
  5738. * @param {string} [key]
  5739. * @param {*} [options] Override http request option.
  5740. * @throws {RequiredError}
  5741. */
  5742. getAssetById(id: string, key?: string, options?: any): AxiosPromise<AssetResponseDto> {
  5743. return localVarFp.getAssetById(id, key, options).then((request) => request(axios, basePath));
  5744. },
  5745. /**
  5746. *
  5747. * @param {GetAssetByTimeBucketDto} getAssetByTimeBucketDto
  5748. * @param {*} [options] Override http request option.
  5749. * @throws {RequiredError}
  5750. */
  5751. getAssetByTimeBucket(getAssetByTimeBucketDto: GetAssetByTimeBucketDto, options?: any): AxiosPromise<Array<AssetResponseDto>> {
  5752. return localVarFp.getAssetByTimeBucket(getAssetByTimeBucketDto, options).then((request) => request(axios, basePath));
  5753. },
  5754. /**
  5755. *
  5756. * @param {GetAssetCountByTimeBucketDto} getAssetCountByTimeBucketDto
  5757. * @param {*} [options] Override http request option.
  5758. * @throws {RequiredError}
  5759. */
  5760. getAssetCountByTimeBucket(getAssetCountByTimeBucketDto: GetAssetCountByTimeBucketDto, options?: any): AxiosPromise<AssetCountByTimeBucketResponseDto> {
  5761. return localVarFp.getAssetCountByTimeBucket(getAssetCountByTimeBucketDto, options).then((request) => request(axios, basePath));
  5762. },
  5763. /**
  5764. *
  5765. * @param {*} [options] Override http request option.
  5766. * @throws {RequiredError}
  5767. */
  5768. getAssetSearchTerms(options?: any): AxiosPromise<Array<string>> {
  5769. return localVarFp.getAssetSearchTerms(options).then((request) => request(axios, basePath));
  5770. },
  5771. /**
  5772. *
  5773. * @param {boolean} [isArchived]
  5774. * @param {boolean} [isFavorite]
  5775. * @param {*} [options] Override http request option.
  5776. * @throws {RequiredError}
  5777. */
  5778. getAssetStats(isArchived?: boolean, isFavorite?: boolean, options?: any): AxiosPromise<AssetStatsResponseDto> {
  5779. return localVarFp.getAssetStats(isArchived, isFavorite, options).then((request) => request(axios, basePath));
  5780. },
  5781. /**
  5782. *
  5783. * @param {string} id
  5784. * @param {ThumbnailFormat} [format]
  5785. * @param {string} [key]
  5786. * @param {*} [options] Override http request option.
  5787. * @throws {RequiredError}
  5788. */
  5789. getAssetThumbnail(id: string, format?: ThumbnailFormat, key?: string, options?: any): AxiosPromise<File> {
  5790. return localVarFp.getAssetThumbnail(id, format, key, options).then((request) => request(axios, basePath));
  5791. },
  5792. /**
  5793. *
  5794. * @param {*} [options] Override http request option.
  5795. * @throws {RequiredError}
  5796. */
  5797. getCuratedLocations(options?: any): AxiosPromise<Array<CuratedLocationsResponseDto>> {
  5798. return localVarFp.getCuratedLocations(options).then((request) => request(axios, basePath));
  5799. },
  5800. /**
  5801. *
  5802. * @param {*} [options] Override http request option.
  5803. * @throws {RequiredError}
  5804. */
  5805. getCuratedObjects(options?: any): AxiosPromise<Array<CuratedObjectsResponseDto>> {
  5806. return localVarFp.getCuratedObjects(options).then((request) => request(axios, basePath));
  5807. },
  5808. /**
  5809. *
  5810. * @param {Array<string>} [assetIds]
  5811. * @param {string} [albumId]
  5812. * @param {string} [userId]
  5813. * @param {number} [archiveSize]
  5814. * @param {string} [key]
  5815. * @param {*} [options] Override http request option.
  5816. * @throws {RequiredError}
  5817. */
  5818. getDownloadInfo(assetIds?: Array<string>, albumId?: string, userId?: string, archiveSize?: number, key?: string, options?: any): AxiosPromise<DownloadResponseDto> {
  5819. return localVarFp.getDownloadInfo(assetIds, albumId, userId, archiveSize, key, options).then((request) => request(axios, basePath));
  5820. },
  5821. /**
  5822. *
  5823. * @param {boolean} [isFavorite]
  5824. * @param {string} [fileCreatedAfter]
  5825. * @param {string} [fileCreatedBefore]
  5826. * @param {*} [options] Override http request option.
  5827. * @throws {RequiredError}
  5828. */
  5829. getMapMarkers(isFavorite?: boolean, fileCreatedAfter?: string, fileCreatedBefore?: string, options?: any): AxiosPromise<Array<MapMarkerResponseDto>> {
  5830. return localVarFp.getMapMarkers(isFavorite, fileCreatedAfter, fileCreatedBefore, options).then((request) => request(axios, basePath));
  5831. },
  5832. /**
  5833. *
  5834. * @param {string} timestamp Get pictures for +24 hours from this time going back x years
  5835. * @param {*} [options] Override http request option.
  5836. * @throws {RequiredError}
  5837. */
  5838. getMemoryLane(timestamp: string, options?: any): AxiosPromise<Array<MemoryLaneResponseDto>> {
  5839. return localVarFp.getMemoryLane(timestamp, options).then((request) => request(axios, basePath));
  5840. },
  5841. /**
  5842. * Get all asset of a device that are in the database, ID only.
  5843. * @param {string} deviceId
  5844. * @param {*} [options] Override http request option.
  5845. * @throws {RequiredError}
  5846. */
  5847. getUserAssetsByDeviceId(deviceId: string, options?: any): AxiosPromise<Array<string>> {
  5848. return localVarFp.getUserAssetsByDeviceId(deviceId, options).then((request) => request(axios, basePath));
  5849. },
  5850. /**
  5851. *
  5852. * @param {ImportAssetDto} importAssetDto
  5853. * @param {*} [options] Override http request option.
  5854. * @throws {RequiredError}
  5855. */
  5856. importFile(importAssetDto: ImportAssetDto, options?: any): AxiosPromise<AssetFileUploadResponseDto> {
  5857. return localVarFp.importFile(importAssetDto, options).then((request) => request(axios, basePath));
  5858. },
  5859. /**
  5860. *
  5861. * @param {SearchAssetDto} searchAssetDto
  5862. * @param {*} [options] Override http request option.
  5863. * @throws {RequiredError}
  5864. */
  5865. searchAsset(searchAssetDto: SearchAssetDto, options?: any): AxiosPromise<Array<AssetResponseDto>> {
  5866. return localVarFp.searchAsset(searchAssetDto, options).then((request) => request(axios, basePath));
  5867. },
  5868. /**
  5869. *
  5870. * @param {string} id
  5871. * @param {boolean} [isThumb]
  5872. * @param {boolean} [isWeb]
  5873. * @param {string} [key]
  5874. * @param {*} [options] Override http request option.
  5875. * @throws {RequiredError}
  5876. */
  5877. serveFile(id: string, isThumb?: boolean, isWeb?: boolean, key?: string, options?: any): AxiosPromise<File> {
  5878. return localVarFp.serveFile(id, isThumb, isWeb, key, options).then((request) => request(axios, basePath));
  5879. },
  5880. /**
  5881. * Update an asset
  5882. * @param {string} id
  5883. * @param {UpdateAssetDto} updateAssetDto
  5884. * @param {*} [options] Override http request option.
  5885. * @throws {RequiredError}
  5886. */
  5887. updateAsset(id: string, updateAssetDto: UpdateAssetDto, options?: any): AxiosPromise<AssetResponseDto> {
  5888. return localVarFp.updateAsset(id, updateAssetDto, options).then((request) => request(axios, basePath));
  5889. },
  5890. /**
  5891. *
  5892. * @param {File} assetData
  5893. * @param {string} deviceAssetId
  5894. * @param {string} deviceId
  5895. * @param {string} fileCreatedAt
  5896. * @param {string} fileModifiedAt
  5897. * @param {boolean} isFavorite
  5898. * @param {string} [key]
  5899. * @param {string} [duration]
  5900. * @param {boolean} [isArchived]
  5901. * @param {boolean} [isReadOnly]
  5902. * @param {boolean} [isVisible]
  5903. * @param {File} [livePhotoData]
  5904. * @param {File} [sidecarData]
  5905. * @param {*} [options] Override http request option.
  5906. * @throws {RequiredError}
  5907. */
  5908. uploadFile(assetData: File, deviceAssetId: string, deviceId: string, fileCreatedAt: string, fileModifiedAt: string, isFavorite: boolean, key?: string, duration?: string, isArchived?: boolean, isReadOnly?: boolean, isVisible?: boolean, livePhotoData?: File, sidecarData?: File, options?: any): AxiosPromise<AssetFileUploadResponseDto> {
  5909. return localVarFp.uploadFile(assetData, deviceAssetId, deviceId, fileCreatedAt, fileModifiedAt, isFavorite, key, duration, isArchived, isReadOnly, isVisible, livePhotoData, sidecarData, options).then((request) => request(axios, basePath));
  5910. },
  5911. };
  5912. };
  5913. /**
  5914. * Request parameters for bulkUploadCheck operation in AssetApi.
  5915. * @export
  5916. * @interface AssetApiBulkUploadCheckRequest
  5917. */
  5918. export interface AssetApiBulkUploadCheckRequest {
  5919. /**
  5920. *
  5921. * @type {AssetBulkUploadCheckDto}
  5922. * @memberof AssetApiBulkUploadCheck
  5923. */
  5924. readonly assetBulkUploadCheckDto: AssetBulkUploadCheckDto
  5925. }
  5926. /**
  5927. * Request parameters for checkDuplicateAsset operation in AssetApi.
  5928. * @export
  5929. * @interface AssetApiCheckDuplicateAssetRequest
  5930. */
  5931. export interface AssetApiCheckDuplicateAssetRequest {
  5932. /**
  5933. *
  5934. * @type {CheckDuplicateAssetDto}
  5935. * @memberof AssetApiCheckDuplicateAsset
  5936. */
  5937. readonly checkDuplicateAssetDto: CheckDuplicateAssetDto
  5938. /**
  5939. *
  5940. * @type {string}
  5941. * @memberof AssetApiCheckDuplicateAsset
  5942. */
  5943. readonly key?: string
  5944. }
  5945. /**
  5946. * Request parameters for checkExistingAssets operation in AssetApi.
  5947. * @export
  5948. * @interface AssetApiCheckExistingAssetsRequest
  5949. */
  5950. export interface AssetApiCheckExistingAssetsRequest {
  5951. /**
  5952. *
  5953. * @type {CheckExistingAssetsDto}
  5954. * @memberof AssetApiCheckExistingAssets
  5955. */
  5956. readonly checkExistingAssetsDto: CheckExistingAssetsDto
  5957. }
  5958. /**
  5959. * Request parameters for deleteAsset operation in AssetApi.
  5960. * @export
  5961. * @interface AssetApiDeleteAssetRequest
  5962. */
  5963. export interface AssetApiDeleteAssetRequest {
  5964. /**
  5965. *
  5966. * @type {DeleteAssetDto}
  5967. * @memberof AssetApiDeleteAsset
  5968. */
  5969. readonly deleteAssetDto: DeleteAssetDto
  5970. }
  5971. /**
  5972. * Request parameters for downloadArchive operation in AssetApi.
  5973. * @export
  5974. * @interface AssetApiDownloadArchiveRequest
  5975. */
  5976. export interface AssetApiDownloadArchiveRequest {
  5977. /**
  5978. *
  5979. * @type {AssetIdsDto}
  5980. * @memberof AssetApiDownloadArchive
  5981. */
  5982. readonly assetIdsDto: AssetIdsDto
  5983. /**
  5984. *
  5985. * @type {string}
  5986. * @memberof AssetApiDownloadArchive
  5987. */
  5988. readonly key?: string
  5989. }
  5990. /**
  5991. * Request parameters for downloadFile operation in AssetApi.
  5992. * @export
  5993. * @interface AssetApiDownloadFileRequest
  5994. */
  5995. export interface AssetApiDownloadFileRequest {
  5996. /**
  5997. *
  5998. * @type {string}
  5999. * @memberof AssetApiDownloadFile
  6000. */
  6001. readonly id: string
  6002. /**
  6003. *
  6004. * @type {string}
  6005. * @memberof AssetApiDownloadFile
  6006. */
  6007. readonly key?: string
  6008. }
  6009. /**
  6010. * Request parameters for getAllAssets operation in AssetApi.
  6011. * @export
  6012. * @interface AssetApiGetAllAssetsRequest
  6013. */
  6014. export interface AssetApiGetAllAssetsRequest {
  6015. /**
  6016. *
  6017. * @type {string}
  6018. * @memberof AssetApiGetAllAssets
  6019. */
  6020. readonly userId?: string
  6021. /**
  6022. *
  6023. * @type {boolean}
  6024. * @memberof AssetApiGetAllAssets
  6025. */
  6026. readonly isFavorite?: boolean
  6027. /**
  6028. *
  6029. * @type {boolean}
  6030. * @memberof AssetApiGetAllAssets
  6031. */
  6032. readonly isArchived?: boolean
  6033. /**
  6034. * Include assets without thumbnails
  6035. * @type {boolean}
  6036. * @memberof AssetApiGetAllAssets
  6037. */
  6038. readonly withoutThumbs?: boolean
  6039. /**
  6040. *
  6041. * @type {number}
  6042. * @memberof AssetApiGetAllAssets
  6043. */
  6044. readonly skip?: number
  6045. /**
  6046. * ETag of data already cached on the client
  6047. * @type {string}
  6048. * @memberof AssetApiGetAllAssets
  6049. */
  6050. readonly ifNoneMatch?: string
  6051. }
  6052. /**
  6053. * Request parameters for getAssetById operation in AssetApi.
  6054. * @export
  6055. * @interface AssetApiGetAssetByIdRequest
  6056. */
  6057. export interface AssetApiGetAssetByIdRequest {
  6058. /**
  6059. *
  6060. * @type {string}
  6061. * @memberof AssetApiGetAssetById
  6062. */
  6063. readonly id: string
  6064. /**
  6065. *
  6066. * @type {string}
  6067. * @memberof AssetApiGetAssetById
  6068. */
  6069. readonly key?: string
  6070. }
  6071. /**
  6072. * Request parameters for getAssetByTimeBucket operation in AssetApi.
  6073. * @export
  6074. * @interface AssetApiGetAssetByTimeBucketRequest
  6075. */
  6076. export interface AssetApiGetAssetByTimeBucketRequest {
  6077. /**
  6078. *
  6079. * @type {GetAssetByTimeBucketDto}
  6080. * @memberof AssetApiGetAssetByTimeBucket
  6081. */
  6082. readonly getAssetByTimeBucketDto: GetAssetByTimeBucketDto
  6083. }
  6084. /**
  6085. * Request parameters for getAssetCountByTimeBucket operation in AssetApi.
  6086. * @export
  6087. * @interface AssetApiGetAssetCountByTimeBucketRequest
  6088. */
  6089. export interface AssetApiGetAssetCountByTimeBucketRequest {
  6090. /**
  6091. *
  6092. * @type {GetAssetCountByTimeBucketDto}
  6093. * @memberof AssetApiGetAssetCountByTimeBucket
  6094. */
  6095. readonly getAssetCountByTimeBucketDto: GetAssetCountByTimeBucketDto
  6096. }
  6097. /**
  6098. * Request parameters for getAssetStats operation in AssetApi.
  6099. * @export
  6100. * @interface AssetApiGetAssetStatsRequest
  6101. */
  6102. export interface AssetApiGetAssetStatsRequest {
  6103. /**
  6104. *
  6105. * @type {boolean}
  6106. * @memberof AssetApiGetAssetStats
  6107. */
  6108. readonly isArchived?: boolean
  6109. /**
  6110. *
  6111. * @type {boolean}
  6112. * @memberof AssetApiGetAssetStats
  6113. */
  6114. readonly isFavorite?: boolean
  6115. }
  6116. /**
  6117. * Request parameters for getAssetThumbnail operation in AssetApi.
  6118. * @export
  6119. * @interface AssetApiGetAssetThumbnailRequest
  6120. */
  6121. export interface AssetApiGetAssetThumbnailRequest {
  6122. /**
  6123. *
  6124. * @type {string}
  6125. * @memberof AssetApiGetAssetThumbnail
  6126. */
  6127. readonly id: string
  6128. /**
  6129. *
  6130. * @type {ThumbnailFormat}
  6131. * @memberof AssetApiGetAssetThumbnail
  6132. */
  6133. readonly format?: ThumbnailFormat
  6134. /**
  6135. *
  6136. * @type {string}
  6137. * @memberof AssetApiGetAssetThumbnail
  6138. */
  6139. readonly key?: string
  6140. }
  6141. /**
  6142. * Request parameters for getDownloadInfo operation in AssetApi.
  6143. * @export
  6144. * @interface AssetApiGetDownloadInfoRequest
  6145. */
  6146. export interface AssetApiGetDownloadInfoRequest {
  6147. /**
  6148. *
  6149. * @type {Array<string>}
  6150. * @memberof AssetApiGetDownloadInfo
  6151. */
  6152. readonly assetIds?: Array<string>
  6153. /**
  6154. *
  6155. * @type {string}
  6156. * @memberof AssetApiGetDownloadInfo
  6157. */
  6158. readonly albumId?: string
  6159. /**
  6160. *
  6161. * @type {string}
  6162. * @memberof AssetApiGetDownloadInfo
  6163. */
  6164. readonly userId?: string
  6165. /**
  6166. *
  6167. * @type {number}
  6168. * @memberof AssetApiGetDownloadInfo
  6169. */
  6170. readonly archiveSize?: number
  6171. /**
  6172. *
  6173. * @type {string}
  6174. * @memberof AssetApiGetDownloadInfo
  6175. */
  6176. readonly key?: string
  6177. }
  6178. /**
  6179. * Request parameters for getMapMarkers operation in AssetApi.
  6180. * @export
  6181. * @interface AssetApiGetMapMarkersRequest
  6182. */
  6183. export interface AssetApiGetMapMarkersRequest {
  6184. /**
  6185. *
  6186. * @type {boolean}
  6187. * @memberof AssetApiGetMapMarkers
  6188. */
  6189. readonly isFavorite?: boolean
  6190. /**
  6191. *
  6192. * @type {string}
  6193. * @memberof AssetApiGetMapMarkers
  6194. */
  6195. readonly fileCreatedAfter?: string
  6196. /**
  6197. *
  6198. * @type {string}
  6199. * @memberof AssetApiGetMapMarkers
  6200. */
  6201. readonly fileCreatedBefore?: string
  6202. }
  6203. /**
  6204. * Request parameters for getMemoryLane operation in AssetApi.
  6205. * @export
  6206. * @interface AssetApiGetMemoryLaneRequest
  6207. */
  6208. export interface AssetApiGetMemoryLaneRequest {
  6209. /**
  6210. * Get pictures for +24 hours from this time going back x years
  6211. * @type {string}
  6212. * @memberof AssetApiGetMemoryLane
  6213. */
  6214. readonly timestamp: string
  6215. }
  6216. /**
  6217. * Request parameters for getUserAssetsByDeviceId operation in AssetApi.
  6218. * @export
  6219. * @interface AssetApiGetUserAssetsByDeviceIdRequest
  6220. */
  6221. export interface AssetApiGetUserAssetsByDeviceIdRequest {
  6222. /**
  6223. *
  6224. * @type {string}
  6225. * @memberof AssetApiGetUserAssetsByDeviceId
  6226. */
  6227. readonly deviceId: string
  6228. }
  6229. /**
  6230. * Request parameters for importFile operation in AssetApi.
  6231. * @export
  6232. * @interface AssetApiImportFileRequest
  6233. */
  6234. export interface AssetApiImportFileRequest {
  6235. /**
  6236. *
  6237. * @type {ImportAssetDto}
  6238. * @memberof AssetApiImportFile
  6239. */
  6240. readonly importAssetDto: ImportAssetDto
  6241. }
  6242. /**
  6243. * Request parameters for searchAsset operation in AssetApi.
  6244. * @export
  6245. * @interface AssetApiSearchAssetRequest
  6246. */
  6247. export interface AssetApiSearchAssetRequest {
  6248. /**
  6249. *
  6250. * @type {SearchAssetDto}
  6251. * @memberof AssetApiSearchAsset
  6252. */
  6253. readonly searchAssetDto: SearchAssetDto
  6254. }
  6255. /**
  6256. * Request parameters for serveFile operation in AssetApi.
  6257. * @export
  6258. * @interface AssetApiServeFileRequest
  6259. */
  6260. export interface AssetApiServeFileRequest {
  6261. /**
  6262. *
  6263. * @type {string}
  6264. * @memberof AssetApiServeFile
  6265. */
  6266. readonly id: string
  6267. /**
  6268. *
  6269. * @type {boolean}
  6270. * @memberof AssetApiServeFile
  6271. */
  6272. readonly isThumb?: boolean
  6273. /**
  6274. *
  6275. * @type {boolean}
  6276. * @memberof AssetApiServeFile
  6277. */
  6278. readonly isWeb?: boolean
  6279. /**
  6280. *
  6281. * @type {string}
  6282. * @memberof AssetApiServeFile
  6283. */
  6284. readonly key?: string
  6285. }
  6286. /**
  6287. * Request parameters for updateAsset operation in AssetApi.
  6288. * @export
  6289. * @interface AssetApiUpdateAssetRequest
  6290. */
  6291. export interface AssetApiUpdateAssetRequest {
  6292. /**
  6293. *
  6294. * @type {string}
  6295. * @memberof AssetApiUpdateAsset
  6296. */
  6297. readonly id: string
  6298. /**
  6299. *
  6300. * @type {UpdateAssetDto}
  6301. * @memberof AssetApiUpdateAsset
  6302. */
  6303. readonly updateAssetDto: UpdateAssetDto
  6304. }
  6305. /**
  6306. * Request parameters for uploadFile operation in AssetApi.
  6307. * @export
  6308. * @interface AssetApiUploadFileRequest
  6309. */
  6310. export interface AssetApiUploadFileRequest {
  6311. /**
  6312. *
  6313. * @type {File}
  6314. * @memberof AssetApiUploadFile
  6315. */
  6316. readonly assetData: File
  6317. /**
  6318. *
  6319. * @type {string}
  6320. * @memberof AssetApiUploadFile
  6321. */
  6322. readonly deviceAssetId: string
  6323. /**
  6324. *
  6325. * @type {string}
  6326. * @memberof AssetApiUploadFile
  6327. */
  6328. readonly deviceId: string
  6329. /**
  6330. *
  6331. * @type {string}
  6332. * @memberof AssetApiUploadFile
  6333. */
  6334. readonly fileCreatedAt: string
  6335. /**
  6336. *
  6337. * @type {string}
  6338. * @memberof AssetApiUploadFile
  6339. */
  6340. readonly fileModifiedAt: string
  6341. /**
  6342. *
  6343. * @type {boolean}
  6344. * @memberof AssetApiUploadFile
  6345. */
  6346. readonly isFavorite: boolean
  6347. /**
  6348. *
  6349. * @type {string}
  6350. * @memberof AssetApiUploadFile
  6351. */
  6352. readonly key?: string
  6353. /**
  6354. *
  6355. * @type {string}
  6356. * @memberof AssetApiUploadFile
  6357. */
  6358. readonly duration?: string
  6359. /**
  6360. *
  6361. * @type {boolean}
  6362. * @memberof AssetApiUploadFile
  6363. */
  6364. readonly isArchived?: boolean
  6365. /**
  6366. *
  6367. * @type {boolean}
  6368. * @memberof AssetApiUploadFile
  6369. */
  6370. readonly isReadOnly?: boolean
  6371. /**
  6372. *
  6373. * @type {boolean}
  6374. * @memberof AssetApiUploadFile
  6375. */
  6376. readonly isVisible?: boolean
  6377. /**
  6378. *
  6379. * @type {File}
  6380. * @memberof AssetApiUploadFile
  6381. */
  6382. readonly livePhotoData?: File
  6383. /**
  6384. *
  6385. * @type {File}
  6386. * @memberof AssetApiUploadFile
  6387. */
  6388. readonly sidecarData?: File
  6389. }
  6390. /**
  6391. * AssetApi - object-oriented interface
  6392. * @export
  6393. * @class AssetApi
  6394. * @extends {BaseAPI}
  6395. */
  6396. export class AssetApi extends BaseAPI {
  6397. /**
  6398. * Checks if assets exist by checksums
  6399. * @param {AssetApiBulkUploadCheckRequest} requestParameters Request parameters.
  6400. * @param {*} [options] Override http request option.
  6401. * @throws {RequiredError}
  6402. * @memberof AssetApi
  6403. */
  6404. public bulkUploadCheck(requestParameters: AssetApiBulkUploadCheckRequest, options?: AxiosRequestConfig) {
  6405. return AssetApiFp(this.configuration).bulkUploadCheck(requestParameters.assetBulkUploadCheckDto, options).then((request) => request(this.axios, this.basePath));
  6406. }
  6407. /**
  6408. * Check duplicated asset before uploading - for Web upload used
  6409. * @param {AssetApiCheckDuplicateAssetRequest} requestParameters Request parameters.
  6410. * @param {*} [options] Override http request option.
  6411. * @throws {RequiredError}
  6412. * @memberof AssetApi
  6413. */
  6414. public checkDuplicateAsset(requestParameters: AssetApiCheckDuplicateAssetRequest, options?: AxiosRequestConfig) {
  6415. return AssetApiFp(this.configuration).checkDuplicateAsset(requestParameters.checkDuplicateAssetDto, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  6416. }
  6417. /**
  6418. * Checks if multiple assets exist on the server and returns all existing - used by background backup
  6419. * @param {AssetApiCheckExistingAssetsRequest} requestParameters Request parameters.
  6420. * @param {*} [options] Override http request option.
  6421. * @throws {RequiredError}
  6422. * @memberof AssetApi
  6423. */
  6424. public checkExistingAssets(requestParameters: AssetApiCheckExistingAssetsRequest, options?: AxiosRequestConfig) {
  6425. return AssetApiFp(this.configuration).checkExistingAssets(requestParameters.checkExistingAssetsDto, options).then((request) => request(this.axios, this.basePath));
  6426. }
  6427. /**
  6428. *
  6429. * @param {AssetApiDeleteAssetRequest} requestParameters Request parameters.
  6430. * @param {*} [options] Override http request option.
  6431. * @throws {RequiredError}
  6432. * @memberof AssetApi
  6433. */
  6434. public deleteAsset(requestParameters: AssetApiDeleteAssetRequest, options?: AxiosRequestConfig) {
  6435. return AssetApiFp(this.configuration).deleteAsset(requestParameters.deleteAssetDto, options).then((request) => request(this.axios, this.basePath));
  6436. }
  6437. /**
  6438. *
  6439. * @param {AssetApiDownloadArchiveRequest} requestParameters Request parameters.
  6440. * @param {*} [options] Override http request option.
  6441. * @throws {RequiredError}
  6442. * @memberof AssetApi
  6443. */
  6444. public downloadArchive(requestParameters: AssetApiDownloadArchiveRequest, options?: AxiosRequestConfig) {
  6445. return AssetApiFp(this.configuration).downloadArchive(requestParameters.assetIdsDto, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  6446. }
  6447. /**
  6448. *
  6449. * @param {AssetApiDownloadFileRequest} requestParameters Request parameters.
  6450. * @param {*} [options] Override http request option.
  6451. * @throws {RequiredError}
  6452. * @memberof AssetApi
  6453. */
  6454. public downloadFile(requestParameters: AssetApiDownloadFileRequest, options?: AxiosRequestConfig) {
  6455. return AssetApiFp(this.configuration).downloadFile(requestParameters.id, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  6456. }
  6457. /**
  6458. * Get all AssetEntity belong to the user
  6459. * @param {AssetApiGetAllAssetsRequest} requestParameters Request parameters.
  6460. * @param {*} [options] Override http request option.
  6461. * @throws {RequiredError}
  6462. * @memberof AssetApi
  6463. */
  6464. public getAllAssets(requestParameters: AssetApiGetAllAssetsRequest = {}, options?: AxiosRequestConfig) {
  6465. return AssetApiFp(this.configuration).getAllAssets(requestParameters.userId, requestParameters.isFavorite, requestParameters.isArchived, requestParameters.withoutThumbs, requestParameters.skip, requestParameters.ifNoneMatch, options).then((request) => request(this.axios, this.basePath));
  6466. }
  6467. /**
  6468. * Get a single asset\'s information
  6469. * @param {AssetApiGetAssetByIdRequest} requestParameters Request parameters.
  6470. * @param {*} [options] Override http request option.
  6471. * @throws {RequiredError}
  6472. * @memberof AssetApi
  6473. */
  6474. public getAssetById(requestParameters: AssetApiGetAssetByIdRequest, options?: AxiosRequestConfig) {
  6475. return AssetApiFp(this.configuration).getAssetById(requestParameters.id, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  6476. }
  6477. /**
  6478. *
  6479. * @param {AssetApiGetAssetByTimeBucketRequest} requestParameters Request parameters.
  6480. * @param {*} [options] Override http request option.
  6481. * @throws {RequiredError}
  6482. * @memberof AssetApi
  6483. */
  6484. public getAssetByTimeBucket(requestParameters: AssetApiGetAssetByTimeBucketRequest, options?: AxiosRequestConfig) {
  6485. return AssetApiFp(this.configuration).getAssetByTimeBucket(requestParameters.getAssetByTimeBucketDto, options).then((request) => request(this.axios, this.basePath));
  6486. }
  6487. /**
  6488. *
  6489. * @param {AssetApiGetAssetCountByTimeBucketRequest} requestParameters Request parameters.
  6490. * @param {*} [options] Override http request option.
  6491. * @throws {RequiredError}
  6492. * @memberof AssetApi
  6493. */
  6494. public getAssetCountByTimeBucket(requestParameters: AssetApiGetAssetCountByTimeBucketRequest, options?: AxiosRequestConfig) {
  6495. return AssetApiFp(this.configuration).getAssetCountByTimeBucket(requestParameters.getAssetCountByTimeBucketDto, options).then((request) => request(this.axios, this.basePath));
  6496. }
  6497. /**
  6498. *
  6499. * @param {*} [options] Override http request option.
  6500. * @throws {RequiredError}
  6501. * @memberof AssetApi
  6502. */
  6503. public getAssetSearchTerms(options?: AxiosRequestConfig) {
  6504. return AssetApiFp(this.configuration).getAssetSearchTerms(options).then((request) => request(this.axios, this.basePath));
  6505. }
  6506. /**
  6507. *
  6508. * @param {AssetApiGetAssetStatsRequest} requestParameters Request parameters.
  6509. * @param {*} [options] Override http request option.
  6510. * @throws {RequiredError}
  6511. * @memberof AssetApi
  6512. */
  6513. public getAssetStats(requestParameters: AssetApiGetAssetStatsRequest = {}, options?: AxiosRequestConfig) {
  6514. return AssetApiFp(this.configuration).getAssetStats(requestParameters.isArchived, requestParameters.isFavorite, options).then((request) => request(this.axios, this.basePath));
  6515. }
  6516. /**
  6517. *
  6518. * @param {AssetApiGetAssetThumbnailRequest} requestParameters Request parameters.
  6519. * @param {*} [options] Override http request option.
  6520. * @throws {RequiredError}
  6521. * @memberof AssetApi
  6522. */
  6523. public getAssetThumbnail(requestParameters: AssetApiGetAssetThumbnailRequest, options?: AxiosRequestConfig) {
  6524. return AssetApiFp(this.configuration).getAssetThumbnail(requestParameters.id, requestParameters.format, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  6525. }
  6526. /**
  6527. *
  6528. * @param {*} [options] Override http request option.
  6529. * @throws {RequiredError}
  6530. * @memberof AssetApi
  6531. */
  6532. public getCuratedLocations(options?: AxiosRequestConfig) {
  6533. return AssetApiFp(this.configuration).getCuratedLocations(options).then((request) => request(this.axios, this.basePath));
  6534. }
  6535. /**
  6536. *
  6537. * @param {*} [options] Override http request option.
  6538. * @throws {RequiredError}
  6539. * @memberof AssetApi
  6540. */
  6541. public getCuratedObjects(options?: AxiosRequestConfig) {
  6542. return AssetApiFp(this.configuration).getCuratedObjects(options).then((request) => request(this.axios, this.basePath));
  6543. }
  6544. /**
  6545. *
  6546. * @param {AssetApiGetDownloadInfoRequest} requestParameters Request parameters.
  6547. * @param {*} [options] Override http request option.
  6548. * @throws {RequiredError}
  6549. * @memberof AssetApi
  6550. */
  6551. public getDownloadInfo(requestParameters: AssetApiGetDownloadInfoRequest = {}, options?: AxiosRequestConfig) {
  6552. return AssetApiFp(this.configuration).getDownloadInfo(requestParameters.assetIds, requestParameters.albumId, requestParameters.userId, requestParameters.archiveSize, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  6553. }
  6554. /**
  6555. *
  6556. * @param {AssetApiGetMapMarkersRequest} requestParameters Request parameters.
  6557. * @param {*} [options] Override http request option.
  6558. * @throws {RequiredError}
  6559. * @memberof AssetApi
  6560. */
  6561. public getMapMarkers(requestParameters: AssetApiGetMapMarkersRequest = {}, options?: AxiosRequestConfig) {
  6562. return AssetApiFp(this.configuration).getMapMarkers(requestParameters.isFavorite, requestParameters.fileCreatedAfter, requestParameters.fileCreatedBefore, options).then((request) => request(this.axios, this.basePath));
  6563. }
  6564. /**
  6565. *
  6566. * @param {AssetApiGetMemoryLaneRequest} requestParameters Request parameters.
  6567. * @param {*} [options] Override http request option.
  6568. * @throws {RequiredError}
  6569. * @memberof AssetApi
  6570. */
  6571. public getMemoryLane(requestParameters: AssetApiGetMemoryLaneRequest, options?: AxiosRequestConfig) {
  6572. return AssetApiFp(this.configuration).getMemoryLane(requestParameters.timestamp, options).then((request) => request(this.axios, this.basePath));
  6573. }
  6574. /**
  6575. * Get all asset of a device that are in the database, ID only.
  6576. * @param {AssetApiGetUserAssetsByDeviceIdRequest} requestParameters Request parameters.
  6577. * @param {*} [options] Override http request option.
  6578. * @throws {RequiredError}
  6579. * @memberof AssetApi
  6580. */
  6581. public getUserAssetsByDeviceId(requestParameters: AssetApiGetUserAssetsByDeviceIdRequest, options?: AxiosRequestConfig) {
  6582. return AssetApiFp(this.configuration).getUserAssetsByDeviceId(requestParameters.deviceId, options).then((request) => request(this.axios, this.basePath));
  6583. }
  6584. /**
  6585. *
  6586. * @param {AssetApiImportFileRequest} requestParameters Request parameters.
  6587. * @param {*} [options] Override http request option.
  6588. * @throws {RequiredError}
  6589. * @memberof AssetApi
  6590. */
  6591. public importFile(requestParameters: AssetApiImportFileRequest, options?: AxiosRequestConfig) {
  6592. return AssetApiFp(this.configuration).importFile(requestParameters.importAssetDto, options).then((request) => request(this.axios, this.basePath));
  6593. }
  6594. /**
  6595. *
  6596. * @param {AssetApiSearchAssetRequest} requestParameters Request parameters.
  6597. * @param {*} [options] Override http request option.
  6598. * @throws {RequiredError}
  6599. * @memberof AssetApi
  6600. */
  6601. public searchAsset(requestParameters: AssetApiSearchAssetRequest, options?: AxiosRequestConfig) {
  6602. return AssetApiFp(this.configuration).searchAsset(requestParameters.searchAssetDto, options).then((request) => request(this.axios, this.basePath));
  6603. }
  6604. /**
  6605. *
  6606. * @param {AssetApiServeFileRequest} requestParameters Request parameters.
  6607. * @param {*} [options] Override http request option.
  6608. * @throws {RequiredError}
  6609. * @memberof AssetApi
  6610. */
  6611. public serveFile(requestParameters: AssetApiServeFileRequest, options?: AxiosRequestConfig) {
  6612. return AssetApiFp(this.configuration).serveFile(requestParameters.id, requestParameters.isThumb, requestParameters.isWeb, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  6613. }
  6614. /**
  6615. * Update an asset
  6616. * @param {AssetApiUpdateAssetRequest} requestParameters Request parameters.
  6617. * @param {*} [options] Override http request option.
  6618. * @throws {RequiredError}
  6619. * @memberof AssetApi
  6620. */
  6621. public updateAsset(requestParameters: AssetApiUpdateAssetRequest, options?: AxiosRequestConfig) {
  6622. return AssetApiFp(this.configuration).updateAsset(requestParameters.id, requestParameters.updateAssetDto, options).then((request) => request(this.axios, this.basePath));
  6623. }
  6624. /**
  6625. *
  6626. * @param {AssetApiUploadFileRequest} requestParameters Request parameters.
  6627. * @param {*} [options] Override http request option.
  6628. * @throws {RequiredError}
  6629. * @memberof AssetApi
  6630. */
  6631. public uploadFile(requestParameters: AssetApiUploadFileRequest, options?: AxiosRequestConfig) {
  6632. return AssetApiFp(this.configuration).uploadFile(requestParameters.assetData, requestParameters.deviceAssetId, requestParameters.deviceId, requestParameters.fileCreatedAt, requestParameters.fileModifiedAt, requestParameters.isFavorite, requestParameters.key, requestParameters.duration, requestParameters.isArchived, requestParameters.isReadOnly, requestParameters.isVisible, requestParameters.livePhotoData, requestParameters.sidecarData, options).then((request) => request(this.axios, this.basePath));
  6633. }
  6634. }
  6635. /**
  6636. * AuthenticationApi - axios parameter creator
  6637. * @export
  6638. */
  6639. export const AuthenticationApiAxiosParamCreator = function (configuration?: Configuration) {
  6640. return {
  6641. /**
  6642. *
  6643. * @param {SignUpDto} signUpDto
  6644. * @param {*} [options] Override http request option.
  6645. * @throws {RequiredError}
  6646. */
  6647. adminSignUp: async (signUpDto: SignUpDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6648. // verify required parameter 'signUpDto' is not null or undefined
  6649. assertParamExists('adminSignUp', 'signUpDto', signUpDto)
  6650. const localVarPath = `/auth/admin-sign-up`;
  6651. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6652. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6653. let baseOptions;
  6654. if (configuration) {
  6655. baseOptions = configuration.baseOptions;
  6656. }
  6657. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  6658. const localVarHeaderParameter = {} as any;
  6659. const localVarQueryParameter = {} as any;
  6660. localVarHeaderParameter['Content-Type'] = 'application/json';
  6661. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6662. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6663. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6664. localVarRequestOptions.data = serializeDataIfNeeded(signUpDto, localVarRequestOptions, configuration)
  6665. return {
  6666. url: toPathString(localVarUrlObj),
  6667. options: localVarRequestOptions,
  6668. };
  6669. },
  6670. /**
  6671. *
  6672. * @param {ChangePasswordDto} changePasswordDto
  6673. * @param {*} [options] Override http request option.
  6674. * @throws {RequiredError}
  6675. */
  6676. changePassword: async (changePasswordDto: ChangePasswordDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6677. // verify required parameter 'changePasswordDto' is not null or undefined
  6678. assertParamExists('changePassword', 'changePasswordDto', changePasswordDto)
  6679. const localVarPath = `/auth/change-password`;
  6680. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6681. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6682. let baseOptions;
  6683. if (configuration) {
  6684. baseOptions = configuration.baseOptions;
  6685. }
  6686. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  6687. const localVarHeaderParameter = {} as any;
  6688. const localVarQueryParameter = {} as any;
  6689. // authentication cookie required
  6690. // authentication api_key required
  6691. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6692. // authentication bearer required
  6693. // http bearer authentication required
  6694. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6695. localVarHeaderParameter['Content-Type'] = 'application/json';
  6696. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6697. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6698. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6699. localVarRequestOptions.data = serializeDataIfNeeded(changePasswordDto, localVarRequestOptions, configuration)
  6700. return {
  6701. url: toPathString(localVarUrlObj),
  6702. options: localVarRequestOptions,
  6703. };
  6704. },
  6705. /**
  6706. *
  6707. * @param {*} [options] Override http request option.
  6708. * @throws {RequiredError}
  6709. */
  6710. getAuthDevices: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6711. const localVarPath = `/auth/devices`;
  6712. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6713. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6714. let baseOptions;
  6715. if (configuration) {
  6716. baseOptions = configuration.baseOptions;
  6717. }
  6718. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6719. const localVarHeaderParameter = {} as any;
  6720. const localVarQueryParameter = {} as any;
  6721. // authentication cookie required
  6722. // authentication api_key required
  6723. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6724. // authentication bearer required
  6725. // http bearer authentication required
  6726. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6727. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6728. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6729. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6730. return {
  6731. url: toPathString(localVarUrlObj),
  6732. options: localVarRequestOptions,
  6733. };
  6734. },
  6735. /**
  6736. *
  6737. * @param {LoginCredentialDto} loginCredentialDto
  6738. * @param {*} [options] Override http request option.
  6739. * @throws {RequiredError}
  6740. */
  6741. login: async (loginCredentialDto: LoginCredentialDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6742. // verify required parameter 'loginCredentialDto' is not null or undefined
  6743. assertParamExists('login', 'loginCredentialDto', loginCredentialDto)
  6744. const localVarPath = `/auth/login`;
  6745. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6746. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6747. let baseOptions;
  6748. if (configuration) {
  6749. baseOptions = configuration.baseOptions;
  6750. }
  6751. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  6752. const localVarHeaderParameter = {} as any;
  6753. const localVarQueryParameter = {} as any;
  6754. localVarHeaderParameter['Content-Type'] = 'application/json';
  6755. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6756. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6757. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6758. localVarRequestOptions.data = serializeDataIfNeeded(loginCredentialDto, localVarRequestOptions, configuration)
  6759. return {
  6760. url: toPathString(localVarUrlObj),
  6761. options: localVarRequestOptions,
  6762. };
  6763. },
  6764. /**
  6765. *
  6766. * @param {*} [options] Override http request option.
  6767. * @throws {RequiredError}
  6768. */
  6769. logout: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6770. const localVarPath = `/auth/logout`;
  6771. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6772. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6773. let baseOptions;
  6774. if (configuration) {
  6775. baseOptions = configuration.baseOptions;
  6776. }
  6777. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  6778. const localVarHeaderParameter = {} as any;
  6779. const localVarQueryParameter = {} as any;
  6780. // authentication cookie required
  6781. // authentication api_key required
  6782. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6783. // authentication bearer required
  6784. // http bearer authentication required
  6785. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6786. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6787. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6788. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6789. return {
  6790. url: toPathString(localVarUrlObj),
  6791. options: localVarRequestOptions,
  6792. };
  6793. },
  6794. /**
  6795. *
  6796. * @param {string} id
  6797. * @param {*} [options] Override http request option.
  6798. * @throws {RequiredError}
  6799. */
  6800. logoutAuthDevice: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6801. // verify required parameter 'id' is not null or undefined
  6802. assertParamExists('logoutAuthDevice', 'id', id)
  6803. const localVarPath = `/auth/devices/{id}`
  6804. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  6805. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6806. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6807. let baseOptions;
  6808. if (configuration) {
  6809. baseOptions = configuration.baseOptions;
  6810. }
  6811. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  6812. const localVarHeaderParameter = {} as any;
  6813. const localVarQueryParameter = {} as any;
  6814. // authentication cookie required
  6815. // authentication api_key required
  6816. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6817. // authentication bearer required
  6818. // http bearer authentication required
  6819. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6820. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6821. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6822. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6823. return {
  6824. url: toPathString(localVarUrlObj),
  6825. options: localVarRequestOptions,
  6826. };
  6827. },
  6828. /**
  6829. *
  6830. * @param {*} [options] Override http request option.
  6831. * @throws {RequiredError}
  6832. */
  6833. logoutAuthDevices: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6834. const localVarPath = `/auth/devices`;
  6835. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6836. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6837. let baseOptions;
  6838. if (configuration) {
  6839. baseOptions = configuration.baseOptions;
  6840. }
  6841. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  6842. const localVarHeaderParameter = {} as any;
  6843. const localVarQueryParameter = {} as any;
  6844. // authentication cookie required
  6845. // authentication api_key required
  6846. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6847. // authentication bearer required
  6848. // http bearer authentication required
  6849. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6850. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6851. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6852. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6853. return {
  6854. url: toPathString(localVarUrlObj),
  6855. options: localVarRequestOptions,
  6856. };
  6857. },
  6858. /**
  6859. *
  6860. * @param {*} [options] Override http request option.
  6861. * @throws {RequiredError}
  6862. */
  6863. validateAccessToken: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6864. const localVarPath = `/auth/validateToken`;
  6865. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6866. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6867. let baseOptions;
  6868. if (configuration) {
  6869. baseOptions = configuration.baseOptions;
  6870. }
  6871. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  6872. const localVarHeaderParameter = {} as any;
  6873. const localVarQueryParameter = {} as any;
  6874. // authentication cookie required
  6875. // authentication api_key required
  6876. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6877. // authentication bearer required
  6878. // http bearer authentication required
  6879. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6880. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6881. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6882. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6883. return {
  6884. url: toPathString(localVarUrlObj),
  6885. options: localVarRequestOptions,
  6886. };
  6887. },
  6888. }
  6889. };
  6890. /**
  6891. * AuthenticationApi - functional programming interface
  6892. * @export
  6893. */
  6894. export const AuthenticationApiFp = function(configuration?: Configuration) {
  6895. const localVarAxiosParamCreator = AuthenticationApiAxiosParamCreator(configuration)
  6896. return {
  6897. /**
  6898. *
  6899. * @param {SignUpDto} signUpDto
  6900. * @param {*} [options] Override http request option.
  6901. * @throws {RequiredError}
  6902. */
  6903. async adminSignUp(signUpDto: SignUpDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AdminSignupResponseDto>> {
  6904. const localVarAxiosArgs = await localVarAxiosParamCreator.adminSignUp(signUpDto, options);
  6905. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6906. },
  6907. /**
  6908. *
  6909. * @param {ChangePasswordDto} changePasswordDto
  6910. * @param {*} [options] Override http request option.
  6911. * @throws {RequiredError}
  6912. */
  6913. async changePassword(changePasswordDto: ChangePasswordDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  6914. const localVarAxiosArgs = await localVarAxiosParamCreator.changePassword(changePasswordDto, options);
  6915. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6916. },
  6917. /**
  6918. *
  6919. * @param {*} [options] Override http request option.
  6920. * @throws {RequiredError}
  6921. */
  6922. async getAuthDevices(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AuthDeviceResponseDto>>> {
  6923. const localVarAxiosArgs = await localVarAxiosParamCreator.getAuthDevices(options);
  6924. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6925. },
  6926. /**
  6927. *
  6928. * @param {LoginCredentialDto} loginCredentialDto
  6929. * @param {*} [options] Override http request option.
  6930. * @throws {RequiredError}
  6931. */
  6932. async login(loginCredentialDto: LoginCredentialDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LoginResponseDto>> {
  6933. const localVarAxiosArgs = await localVarAxiosParamCreator.login(loginCredentialDto, options);
  6934. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6935. },
  6936. /**
  6937. *
  6938. * @param {*} [options] Override http request option.
  6939. * @throws {RequiredError}
  6940. */
  6941. async logout(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LogoutResponseDto>> {
  6942. const localVarAxiosArgs = await localVarAxiosParamCreator.logout(options);
  6943. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6944. },
  6945. /**
  6946. *
  6947. * @param {string} id
  6948. * @param {*} [options] Override http request option.
  6949. * @throws {RequiredError}
  6950. */
  6951. async logoutAuthDevice(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  6952. const localVarAxiosArgs = await localVarAxiosParamCreator.logoutAuthDevice(id, options);
  6953. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6954. },
  6955. /**
  6956. *
  6957. * @param {*} [options] Override http request option.
  6958. * @throws {RequiredError}
  6959. */
  6960. async logoutAuthDevices(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  6961. const localVarAxiosArgs = await localVarAxiosParamCreator.logoutAuthDevices(options);
  6962. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6963. },
  6964. /**
  6965. *
  6966. * @param {*} [options] Override http request option.
  6967. * @throws {RequiredError}
  6968. */
  6969. async validateAccessToken(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ValidateAccessTokenResponseDto>> {
  6970. const localVarAxiosArgs = await localVarAxiosParamCreator.validateAccessToken(options);
  6971. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6972. },
  6973. }
  6974. };
  6975. /**
  6976. * AuthenticationApi - factory interface
  6977. * @export
  6978. */
  6979. export const AuthenticationApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  6980. const localVarFp = AuthenticationApiFp(configuration)
  6981. return {
  6982. /**
  6983. *
  6984. * @param {SignUpDto} signUpDto
  6985. * @param {*} [options] Override http request option.
  6986. * @throws {RequiredError}
  6987. */
  6988. adminSignUp(signUpDto: SignUpDto, options?: any): AxiosPromise<AdminSignupResponseDto> {
  6989. return localVarFp.adminSignUp(signUpDto, options).then((request) => request(axios, basePath));
  6990. },
  6991. /**
  6992. *
  6993. * @param {ChangePasswordDto} changePasswordDto
  6994. * @param {*} [options] Override http request option.
  6995. * @throws {RequiredError}
  6996. */
  6997. changePassword(changePasswordDto: ChangePasswordDto, options?: any): AxiosPromise<UserResponseDto> {
  6998. return localVarFp.changePassword(changePasswordDto, options).then((request) => request(axios, basePath));
  6999. },
  7000. /**
  7001. *
  7002. * @param {*} [options] Override http request option.
  7003. * @throws {RequiredError}
  7004. */
  7005. getAuthDevices(options?: any): AxiosPromise<Array<AuthDeviceResponseDto>> {
  7006. return localVarFp.getAuthDevices(options).then((request) => request(axios, basePath));
  7007. },
  7008. /**
  7009. *
  7010. * @param {LoginCredentialDto} loginCredentialDto
  7011. * @param {*} [options] Override http request option.
  7012. * @throws {RequiredError}
  7013. */
  7014. login(loginCredentialDto: LoginCredentialDto, options?: any): AxiosPromise<LoginResponseDto> {
  7015. return localVarFp.login(loginCredentialDto, options).then((request) => request(axios, basePath));
  7016. },
  7017. /**
  7018. *
  7019. * @param {*} [options] Override http request option.
  7020. * @throws {RequiredError}
  7021. */
  7022. logout(options?: any): AxiosPromise<LogoutResponseDto> {
  7023. return localVarFp.logout(options).then((request) => request(axios, basePath));
  7024. },
  7025. /**
  7026. *
  7027. * @param {string} id
  7028. * @param {*} [options] Override http request option.
  7029. * @throws {RequiredError}
  7030. */
  7031. logoutAuthDevice(id: string, options?: any): AxiosPromise<void> {
  7032. return localVarFp.logoutAuthDevice(id, options).then((request) => request(axios, basePath));
  7033. },
  7034. /**
  7035. *
  7036. * @param {*} [options] Override http request option.
  7037. * @throws {RequiredError}
  7038. */
  7039. logoutAuthDevices(options?: any): AxiosPromise<void> {
  7040. return localVarFp.logoutAuthDevices(options).then((request) => request(axios, basePath));
  7041. },
  7042. /**
  7043. *
  7044. * @param {*} [options] Override http request option.
  7045. * @throws {RequiredError}
  7046. */
  7047. validateAccessToken(options?: any): AxiosPromise<ValidateAccessTokenResponseDto> {
  7048. return localVarFp.validateAccessToken(options).then((request) => request(axios, basePath));
  7049. },
  7050. };
  7051. };
  7052. /**
  7053. * Request parameters for adminSignUp operation in AuthenticationApi.
  7054. * @export
  7055. * @interface AuthenticationApiAdminSignUpRequest
  7056. */
  7057. export interface AuthenticationApiAdminSignUpRequest {
  7058. /**
  7059. *
  7060. * @type {SignUpDto}
  7061. * @memberof AuthenticationApiAdminSignUp
  7062. */
  7063. readonly signUpDto: SignUpDto
  7064. }
  7065. /**
  7066. * Request parameters for changePassword operation in AuthenticationApi.
  7067. * @export
  7068. * @interface AuthenticationApiChangePasswordRequest
  7069. */
  7070. export interface AuthenticationApiChangePasswordRequest {
  7071. /**
  7072. *
  7073. * @type {ChangePasswordDto}
  7074. * @memberof AuthenticationApiChangePassword
  7075. */
  7076. readonly changePasswordDto: ChangePasswordDto
  7077. }
  7078. /**
  7079. * Request parameters for login operation in AuthenticationApi.
  7080. * @export
  7081. * @interface AuthenticationApiLoginRequest
  7082. */
  7083. export interface AuthenticationApiLoginRequest {
  7084. /**
  7085. *
  7086. * @type {LoginCredentialDto}
  7087. * @memberof AuthenticationApiLogin
  7088. */
  7089. readonly loginCredentialDto: LoginCredentialDto
  7090. }
  7091. /**
  7092. * Request parameters for logoutAuthDevice operation in AuthenticationApi.
  7093. * @export
  7094. * @interface AuthenticationApiLogoutAuthDeviceRequest
  7095. */
  7096. export interface AuthenticationApiLogoutAuthDeviceRequest {
  7097. /**
  7098. *
  7099. * @type {string}
  7100. * @memberof AuthenticationApiLogoutAuthDevice
  7101. */
  7102. readonly id: string
  7103. }
  7104. /**
  7105. * AuthenticationApi - object-oriented interface
  7106. * @export
  7107. * @class AuthenticationApi
  7108. * @extends {BaseAPI}
  7109. */
  7110. export class AuthenticationApi extends BaseAPI {
  7111. /**
  7112. *
  7113. * @param {AuthenticationApiAdminSignUpRequest} requestParameters Request parameters.
  7114. * @param {*} [options] Override http request option.
  7115. * @throws {RequiredError}
  7116. * @memberof AuthenticationApi
  7117. */
  7118. public adminSignUp(requestParameters: AuthenticationApiAdminSignUpRequest, options?: AxiosRequestConfig) {
  7119. return AuthenticationApiFp(this.configuration).adminSignUp(requestParameters.signUpDto, options).then((request) => request(this.axios, this.basePath));
  7120. }
  7121. /**
  7122. *
  7123. * @param {AuthenticationApiChangePasswordRequest} requestParameters Request parameters.
  7124. * @param {*} [options] Override http request option.
  7125. * @throws {RequiredError}
  7126. * @memberof AuthenticationApi
  7127. */
  7128. public changePassword(requestParameters: AuthenticationApiChangePasswordRequest, options?: AxiosRequestConfig) {
  7129. return AuthenticationApiFp(this.configuration).changePassword(requestParameters.changePasswordDto, options).then((request) => request(this.axios, this.basePath));
  7130. }
  7131. /**
  7132. *
  7133. * @param {*} [options] Override http request option.
  7134. * @throws {RequiredError}
  7135. * @memberof AuthenticationApi
  7136. */
  7137. public getAuthDevices(options?: AxiosRequestConfig) {
  7138. return AuthenticationApiFp(this.configuration).getAuthDevices(options).then((request) => request(this.axios, this.basePath));
  7139. }
  7140. /**
  7141. *
  7142. * @param {AuthenticationApiLoginRequest} requestParameters Request parameters.
  7143. * @param {*} [options] Override http request option.
  7144. * @throws {RequiredError}
  7145. * @memberof AuthenticationApi
  7146. */
  7147. public login(requestParameters: AuthenticationApiLoginRequest, options?: AxiosRequestConfig) {
  7148. return AuthenticationApiFp(this.configuration).login(requestParameters.loginCredentialDto, options).then((request) => request(this.axios, this.basePath));
  7149. }
  7150. /**
  7151. *
  7152. * @param {*} [options] Override http request option.
  7153. * @throws {RequiredError}
  7154. * @memberof AuthenticationApi
  7155. */
  7156. public logout(options?: AxiosRequestConfig) {
  7157. return AuthenticationApiFp(this.configuration).logout(options).then((request) => request(this.axios, this.basePath));
  7158. }
  7159. /**
  7160. *
  7161. * @param {AuthenticationApiLogoutAuthDeviceRequest} requestParameters Request parameters.
  7162. * @param {*} [options] Override http request option.
  7163. * @throws {RequiredError}
  7164. * @memberof AuthenticationApi
  7165. */
  7166. public logoutAuthDevice(requestParameters: AuthenticationApiLogoutAuthDeviceRequest, options?: AxiosRequestConfig) {
  7167. return AuthenticationApiFp(this.configuration).logoutAuthDevice(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  7168. }
  7169. /**
  7170. *
  7171. * @param {*} [options] Override http request option.
  7172. * @throws {RequiredError}
  7173. * @memberof AuthenticationApi
  7174. */
  7175. public logoutAuthDevices(options?: AxiosRequestConfig) {
  7176. return AuthenticationApiFp(this.configuration).logoutAuthDevices(options).then((request) => request(this.axios, this.basePath));
  7177. }
  7178. /**
  7179. *
  7180. * @param {*} [options] Override http request option.
  7181. * @throws {RequiredError}
  7182. * @memberof AuthenticationApi
  7183. */
  7184. public validateAccessToken(options?: AxiosRequestConfig) {
  7185. return AuthenticationApiFp(this.configuration).validateAccessToken(options).then((request) => request(this.axios, this.basePath));
  7186. }
  7187. }
  7188. /**
  7189. * JobApi - axios parameter creator
  7190. * @export
  7191. */
  7192. export const JobApiAxiosParamCreator = function (configuration?: Configuration) {
  7193. return {
  7194. /**
  7195. *
  7196. * @param {*} [options] Override http request option.
  7197. * @throws {RequiredError}
  7198. */
  7199. getAllJobsStatus: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  7200. const localVarPath = `/jobs`;
  7201. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  7202. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  7203. let baseOptions;
  7204. if (configuration) {
  7205. baseOptions = configuration.baseOptions;
  7206. }
  7207. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  7208. const localVarHeaderParameter = {} as any;
  7209. const localVarQueryParameter = {} as any;
  7210. // authentication cookie required
  7211. // authentication api_key required
  7212. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  7213. // authentication bearer required
  7214. // http bearer authentication required
  7215. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  7216. setSearchParams(localVarUrlObj, localVarQueryParameter);
  7217. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  7218. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  7219. return {
  7220. url: toPathString(localVarUrlObj),
  7221. options: localVarRequestOptions,
  7222. };
  7223. },
  7224. /**
  7225. *
  7226. * @param {JobName} id
  7227. * @param {JobCommandDto} jobCommandDto
  7228. * @param {*} [options] Override http request option.
  7229. * @throws {RequiredError}
  7230. */
  7231. sendJobCommand: async (id: JobName, jobCommandDto: JobCommandDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  7232. // verify required parameter 'id' is not null or undefined
  7233. assertParamExists('sendJobCommand', 'id', id)
  7234. // verify required parameter 'jobCommandDto' is not null or undefined
  7235. assertParamExists('sendJobCommand', 'jobCommandDto', jobCommandDto)
  7236. const localVarPath = `/jobs/{id}`
  7237. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  7238. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  7239. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  7240. let baseOptions;
  7241. if (configuration) {
  7242. baseOptions = configuration.baseOptions;
  7243. }
  7244. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  7245. const localVarHeaderParameter = {} as any;
  7246. const localVarQueryParameter = {} as any;
  7247. // authentication cookie required
  7248. // authentication api_key required
  7249. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  7250. // authentication bearer required
  7251. // http bearer authentication required
  7252. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  7253. localVarHeaderParameter['Content-Type'] = 'application/json';
  7254. setSearchParams(localVarUrlObj, localVarQueryParameter);
  7255. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  7256. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  7257. localVarRequestOptions.data = serializeDataIfNeeded(jobCommandDto, localVarRequestOptions, configuration)
  7258. return {
  7259. url: toPathString(localVarUrlObj),
  7260. options: localVarRequestOptions,
  7261. };
  7262. },
  7263. }
  7264. };
  7265. /**
  7266. * JobApi - functional programming interface
  7267. * @export
  7268. */
  7269. export const JobApiFp = function(configuration?: Configuration) {
  7270. const localVarAxiosParamCreator = JobApiAxiosParamCreator(configuration)
  7271. return {
  7272. /**
  7273. *
  7274. * @param {*} [options] Override http request option.
  7275. * @throws {RequiredError}
  7276. */
  7277. async getAllJobsStatus(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AllJobStatusResponseDto>> {
  7278. const localVarAxiosArgs = await localVarAxiosParamCreator.getAllJobsStatus(options);
  7279. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7280. },
  7281. /**
  7282. *
  7283. * @param {JobName} id
  7284. * @param {JobCommandDto} jobCommandDto
  7285. * @param {*} [options] Override http request option.
  7286. * @throws {RequiredError}
  7287. */
  7288. async sendJobCommand(id: JobName, jobCommandDto: JobCommandDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<JobStatusDto>> {
  7289. const localVarAxiosArgs = await localVarAxiosParamCreator.sendJobCommand(id, jobCommandDto, options);
  7290. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7291. },
  7292. }
  7293. };
  7294. /**
  7295. * JobApi - factory interface
  7296. * @export
  7297. */
  7298. export const JobApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  7299. const localVarFp = JobApiFp(configuration)
  7300. return {
  7301. /**
  7302. *
  7303. * @param {*} [options] Override http request option.
  7304. * @throws {RequiredError}
  7305. */
  7306. getAllJobsStatus(options?: any): AxiosPromise<AllJobStatusResponseDto> {
  7307. return localVarFp.getAllJobsStatus(options).then((request) => request(axios, basePath));
  7308. },
  7309. /**
  7310. *
  7311. * @param {JobName} id
  7312. * @param {JobCommandDto} jobCommandDto
  7313. * @param {*} [options] Override http request option.
  7314. * @throws {RequiredError}
  7315. */
  7316. sendJobCommand(id: JobName, jobCommandDto: JobCommandDto, options?: any): AxiosPromise<JobStatusDto> {
  7317. return localVarFp.sendJobCommand(id, jobCommandDto, options).then((request) => request(axios, basePath));
  7318. },
  7319. };
  7320. };
  7321. /**
  7322. * Request parameters for sendJobCommand operation in JobApi.
  7323. * @export
  7324. * @interface JobApiSendJobCommandRequest
  7325. */
  7326. export interface JobApiSendJobCommandRequest {
  7327. /**
  7328. *
  7329. * @type {JobName}
  7330. * @memberof JobApiSendJobCommand
  7331. */
  7332. readonly id: JobName
  7333. /**
  7334. *
  7335. * @type {JobCommandDto}
  7336. * @memberof JobApiSendJobCommand
  7337. */
  7338. readonly jobCommandDto: JobCommandDto
  7339. }
  7340. /**
  7341. * JobApi - object-oriented interface
  7342. * @export
  7343. * @class JobApi
  7344. * @extends {BaseAPI}
  7345. */
  7346. export class JobApi extends BaseAPI {
  7347. /**
  7348. *
  7349. * @param {*} [options] Override http request option.
  7350. * @throws {RequiredError}
  7351. * @memberof JobApi
  7352. */
  7353. public getAllJobsStatus(options?: AxiosRequestConfig) {
  7354. return JobApiFp(this.configuration).getAllJobsStatus(options).then((request) => request(this.axios, this.basePath));
  7355. }
  7356. /**
  7357. *
  7358. * @param {JobApiSendJobCommandRequest} requestParameters Request parameters.
  7359. * @param {*} [options] Override http request option.
  7360. * @throws {RequiredError}
  7361. * @memberof JobApi
  7362. */
  7363. public sendJobCommand(requestParameters: JobApiSendJobCommandRequest, options?: AxiosRequestConfig) {
  7364. return JobApiFp(this.configuration).sendJobCommand(requestParameters.id, requestParameters.jobCommandDto, options).then((request) => request(this.axios, this.basePath));
  7365. }
  7366. }
  7367. /**
  7368. * OAuthApi - axios parameter creator
  7369. * @export
  7370. */
  7371. export const OAuthApiAxiosParamCreator = function (configuration?: Configuration) {
  7372. return {
  7373. /**
  7374. *
  7375. * @param {OAuthCallbackDto} oAuthCallbackDto
  7376. * @param {*} [options] Override http request option.
  7377. * @throws {RequiredError}
  7378. */
  7379. callback: async (oAuthCallbackDto: OAuthCallbackDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  7380. // verify required parameter 'oAuthCallbackDto' is not null or undefined
  7381. assertParamExists('callback', 'oAuthCallbackDto', oAuthCallbackDto)
  7382. const localVarPath = `/oauth/callback`;
  7383. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  7384. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  7385. let baseOptions;
  7386. if (configuration) {
  7387. baseOptions = configuration.baseOptions;
  7388. }
  7389. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  7390. const localVarHeaderParameter = {} as any;
  7391. const localVarQueryParameter = {} as any;
  7392. localVarHeaderParameter['Content-Type'] = 'application/json';
  7393. setSearchParams(localVarUrlObj, localVarQueryParameter);
  7394. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  7395. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  7396. localVarRequestOptions.data = serializeDataIfNeeded(oAuthCallbackDto, localVarRequestOptions, configuration)
  7397. return {
  7398. url: toPathString(localVarUrlObj),
  7399. options: localVarRequestOptions,
  7400. };
  7401. },
  7402. /**
  7403. *
  7404. * @param {OAuthConfigDto} oAuthConfigDto
  7405. * @param {*} [options] Override http request option.
  7406. * @throws {RequiredError}
  7407. */
  7408. generateConfig: async (oAuthConfigDto: OAuthConfigDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  7409. // verify required parameter 'oAuthConfigDto' is not null or undefined
  7410. assertParamExists('generateConfig', 'oAuthConfigDto', oAuthConfigDto)
  7411. const localVarPath = `/oauth/config`;
  7412. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  7413. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  7414. let baseOptions;
  7415. if (configuration) {
  7416. baseOptions = configuration.baseOptions;
  7417. }
  7418. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  7419. const localVarHeaderParameter = {} as any;
  7420. const localVarQueryParameter = {} as any;
  7421. localVarHeaderParameter['Content-Type'] = 'application/json';
  7422. setSearchParams(localVarUrlObj, localVarQueryParameter);
  7423. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  7424. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  7425. localVarRequestOptions.data = serializeDataIfNeeded(oAuthConfigDto, localVarRequestOptions, configuration)
  7426. return {
  7427. url: toPathString(localVarUrlObj),
  7428. options: localVarRequestOptions,
  7429. };
  7430. },
  7431. /**
  7432. *
  7433. * @param {OAuthCallbackDto} oAuthCallbackDto
  7434. * @param {*} [options] Override http request option.
  7435. * @throws {RequiredError}
  7436. */
  7437. link: async (oAuthCallbackDto: OAuthCallbackDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  7438. // verify required parameter 'oAuthCallbackDto' is not null or undefined
  7439. assertParamExists('link', 'oAuthCallbackDto', oAuthCallbackDto)
  7440. const localVarPath = `/oauth/link`;
  7441. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  7442. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  7443. let baseOptions;
  7444. if (configuration) {
  7445. baseOptions = configuration.baseOptions;
  7446. }
  7447. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  7448. const localVarHeaderParameter = {} as any;
  7449. const localVarQueryParameter = {} as any;
  7450. // authentication cookie required
  7451. // authentication api_key required
  7452. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  7453. // authentication bearer required
  7454. // http bearer authentication required
  7455. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  7456. localVarHeaderParameter['Content-Type'] = 'application/json';
  7457. setSearchParams(localVarUrlObj, localVarQueryParameter);
  7458. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  7459. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  7460. localVarRequestOptions.data = serializeDataIfNeeded(oAuthCallbackDto, localVarRequestOptions, configuration)
  7461. return {
  7462. url: toPathString(localVarUrlObj),
  7463. options: localVarRequestOptions,
  7464. };
  7465. },
  7466. /**
  7467. *
  7468. * @param {*} [options] Override http request option.
  7469. * @throws {RequiredError}
  7470. */
  7471. mobileRedirect: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  7472. const localVarPath = `/oauth/mobile-redirect`;
  7473. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  7474. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  7475. let baseOptions;
  7476. if (configuration) {
  7477. baseOptions = configuration.baseOptions;
  7478. }
  7479. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  7480. const localVarHeaderParameter = {} as any;
  7481. const localVarQueryParameter = {} as any;
  7482. setSearchParams(localVarUrlObj, localVarQueryParameter);
  7483. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  7484. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  7485. return {
  7486. url: toPathString(localVarUrlObj),
  7487. options: localVarRequestOptions,
  7488. };
  7489. },
  7490. /**
  7491. *
  7492. * @param {*} [options] Override http request option.
  7493. * @throws {RequiredError}
  7494. */
  7495. unlink: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  7496. const localVarPath = `/oauth/unlink`;
  7497. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  7498. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  7499. let baseOptions;
  7500. if (configuration) {
  7501. baseOptions = configuration.baseOptions;
  7502. }
  7503. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  7504. const localVarHeaderParameter = {} as any;
  7505. const localVarQueryParameter = {} as any;
  7506. // authentication cookie required
  7507. // authentication api_key required
  7508. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  7509. // authentication bearer required
  7510. // http bearer authentication required
  7511. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  7512. setSearchParams(localVarUrlObj, localVarQueryParameter);
  7513. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  7514. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  7515. return {
  7516. url: toPathString(localVarUrlObj),
  7517. options: localVarRequestOptions,
  7518. };
  7519. },
  7520. }
  7521. };
  7522. /**
  7523. * OAuthApi - functional programming interface
  7524. * @export
  7525. */
  7526. export const OAuthApiFp = function(configuration?: Configuration) {
  7527. const localVarAxiosParamCreator = OAuthApiAxiosParamCreator(configuration)
  7528. return {
  7529. /**
  7530. *
  7531. * @param {OAuthCallbackDto} oAuthCallbackDto
  7532. * @param {*} [options] Override http request option.
  7533. * @throws {RequiredError}
  7534. */
  7535. async callback(oAuthCallbackDto: OAuthCallbackDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LoginResponseDto>> {
  7536. const localVarAxiosArgs = await localVarAxiosParamCreator.callback(oAuthCallbackDto, options);
  7537. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7538. },
  7539. /**
  7540. *
  7541. * @param {OAuthConfigDto} oAuthConfigDto
  7542. * @param {*} [options] Override http request option.
  7543. * @throws {RequiredError}
  7544. */
  7545. async generateConfig(oAuthConfigDto: OAuthConfigDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OAuthConfigResponseDto>> {
  7546. const localVarAxiosArgs = await localVarAxiosParamCreator.generateConfig(oAuthConfigDto, options);
  7547. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7548. },
  7549. /**
  7550. *
  7551. * @param {OAuthCallbackDto} oAuthCallbackDto
  7552. * @param {*} [options] Override http request option.
  7553. * @throws {RequiredError}
  7554. */
  7555. async link(oAuthCallbackDto: OAuthCallbackDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  7556. const localVarAxiosArgs = await localVarAxiosParamCreator.link(oAuthCallbackDto, options);
  7557. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7558. },
  7559. /**
  7560. *
  7561. * @param {*} [options] Override http request option.
  7562. * @throws {RequiredError}
  7563. */
  7564. async mobileRedirect(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  7565. const localVarAxiosArgs = await localVarAxiosParamCreator.mobileRedirect(options);
  7566. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7567. },
  7568. /**
  7569. *
  7570. * @param {*} [options] Override http request option.
  7571. * @throws {RequiredError}
  7572. */
  7573. async unlink(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  7574. const localVarAxiosArgs = await localVarAxiosParamCreator.unlink(options);
  7575. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7576. },
  7577. }
  7578. };
  7579. /**
  7580. * OAuthApi - factory interface
  7581. * @export
  7582. */
  7583. export const OAuthApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  7584. const localVarFp = OAuthApiFp(configuration)
  7585. return {
  7586. /**
  7587. *
  7588. * @param {OAuthCallbackDto} oAuthCallbackDto
  7589. * @param {*} [options] Override http request option.
  7590. * @throws {RequiredError}
  7591. */
  7592. callback(oAuthCallbackDto: OAuthCallbackDto, options?: any): AxiosPromise<LoginResponseDto> {
  7593. return localVarFp.callback(oAuthCallbackDto, options).then((request) => request(axios, basePath));
  7594. },
  7595. /**
  7596. *
  7597. * @param {OAuthConfigDto} oAuthConfigDto
  7598. * @param {*} [options] Override http request option.
  7599. * @throws {RequiredError}
  7600. */
  7601. generateConfig(oAuthConfigDto: OAuthConfigDto, options?: any): AxiosPromise<OAuthConfigResponseDto> {
  7602. return localVarFp.generateConfig(oAuthConfigDto, options).then((request) => request(axios, basePath));
  7603. },
  7604. /**
  7605. *
  7606. * @param {OAuthCallbackDto} oAuthCallbackDto
  7607. * @param {*} [options] Override http request option.
  7608. * @throws {RequiredError}
  7609. */
  7610. link(oAuthCallbackDto: OAuthCallbackDto, options?: any): AxiosPromise<UserResponseDto> {
  7611. return localVarFp.link(oAuthCallbackDto, options).then((request) => request(axios, basePath));
  7612. },
  7613. /**
  7614. *
  7615. * @param {*} [options] Override http request option.
  7616. * @throws {RequiredError}
  7617. */
  7618. mobileRedirect(options?: any): AxiosPromise<void> {
  7619. return localVarFp.mobileRedirect(options).then((request) => request(axios, basePath));
  7620. },
  7621. /**
  7622. *
  7623. * @param {*} [options] Override http request option.
  7624. * @throws {RequiredError}
  7625. */
  7626. unlink(options?: any): AxiosPromise<UserResponseDto> {
  7627. return localVarFp.unlink(options).then((request) => request(axios, basePath));
  7628. },
  7629. };
  7630. };
  7631. /**
  7632. * Request parameters for callback operation in OAuthApi.
  7633. * @export
  7634. * @interface OAuthApiCallbackRequest
  7635. */
  7636. export interface OAuthApiCallbackRequest {
  7637. /**
  7638. *
  7639. * @type {OAuthCallbackDto}
  7640. * @memberof OAuthApiCallback
  7641. */
  7642. readonly oAuthCallbackDto: OAuthCallbackDto
  7643. }
  7644. /**
  7645. * Request parameters for generateConfig operation in OAuthApi.
  7646. * @export
  7647. * @interface OAuthApiGenerateConfigRequest
  7648. */
  7649. export interface OAuthApiGenerateConfigRequest {
  7650. /**
  7651. *
  7652. * @type {OAuthConfigDto}
  7653. * @memberof OAuthApiGenerateConfig
  7654. */
  7655. readonly oAuthConfigDto: OAuthConfigDto
  7656. }
  7657. /**
  7658. * Request parameters for link operation in OAuthApi.
  7659. * @export
  7660. * @interface OAuthApiLinkRequest
  7661. */
  7662. export interface OAuthApiLinkRequest {
  7663. /**
  7664. *
  7665. * @type {OAuthCallbackDto}
  7666. * @memberof OAuthApiLink
  7667. */
  7668. readonly oAuthCallbackDto: OAuthCallbackDto
  7669. }
  7670. /**
  7671. * OAuthApi - object-oriented interface
  7672. * @export
  7673. * @class OAuthApi
  7674. * @extends {BaseAPI}
  7675. */
  7676. export class OAuthApi extends BaseAPI {
  7677. /**
  7678. *
  7679. * @param {OAuthApiCallbackRequest} requestParameters Request parameters.
  7680. * @param {*} [options] Override http request option.
  7681. * @throws {RequiredError}
  7682. * @memberof OAuthApi
  7683. */
  7684. public callback(requestParameters: OAuthApiCallbackRequest, options?: AxiosRequestConfig) {
  7685. return OAuthApiFp(this.configuration).callback(requestParameters.oAuthCallbackDto, options).then((request) => request(this.axios, this.basePath));
  7686. }
  7687. /**
  7688. *
  7689. * @param {OAuthApiGenerateConfigRequest} requestParameters Request parameters.
  7690. * @param {*} [options] Override http request option.
  7691. * @throws {RequiredError}
  7692. * @memberof OAuthApi
  7693. */
  7694. public generateConfig(requestParameters: OAuthApiGenerateConfigRequest, options?: AxiosRequestConfig) {
  7695. return OAuthApiFp(this.configuration).generateConfig(requestParameters.oAuthConfigDto, options).then((request) => request(this.axios, this.basePath));
  7696. }
  7697. /**
  7698. *
  7699. * @param {OAuthApiLinkRequest} requestParameters Request parameters.
  7700. * @param {*} [options] Override http request option.
  7701. * @throws {RequiredError}
  7702. * @memberof OAuthApi
  7703. */
  7704. public link(requestParameters: OAuthApiLinkRequest, options?: AxiosRequestConfig) {
  7705. return OAuthApiFp(this.configuration).link(requestParameters.oAuthCallbackDto, options).then((request) => request(this.axios, this.basePath));
  7706. }
  7707. /**
  7708. *
  7709. * @param {*} [options] Override http request option.
  7710. * @throws {RequiredError}
  7711. * @memberof OAuthApi
  7712. */
  7713. public mobileRedirect(options?: AxiosRequestConfig) {
  7714. return OAuthApiFp(this.configuration).mobileRedirect(options).then((request) => request(this.axios, this.basePath));
  7715. }
  7716. /**
  7717. *
  7718. * @param {*} [options] Override http request option.
  7719. * @throws {RequiredError}
  7720. * @memberof OAuthApi
  7721. */
  7722. public unlink(options?: AxiosRequestConfig) {
  7723. return OAuthApiFp(this.configuration).unlink(options).then((request) => request(this.axios, this.basePath));
  7724. }
  7725. }
  7726. /**
  7727. * PartnerApi - axios parameter creator
  7728. * @export
  7729. */
  7730. export const PartnerApiAxiosParamCreator = function (configuration?: Configuration) {
  7731. return {
  7732. /**
  7733. *
  7734. * @param {string} id
  7735. * @param {*} [options] Override http request option.
  7736. * @throws {RequiredError}
  7737. */
  7738. createPartner: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  7739. // verify required parameter 'id' is not null or undefined
  7740. assertParamExists('createPartner', 'id', id)
  7741. const localVarPath = `/partner/{id}`
  7742. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  7743. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  7744. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  7745. let baseOptions;
  7746. if (configuration) {
  7747. baseOptions = configuration.baseOptions;
  7748. }
  7749. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  7750. const localVarHeaderParameter = {} as any;
  7751. const localVarQueryParameter = {} as any;
  7752. // authentication cookie required
  7753. // authentication api_key required
  7754. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  7755. // authentication bearer required
  7756. // http bearer authentication required
  7757. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  7758. setSearchParams(localVarUrlObj, localVarQueryParameter);
  7759. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  7760. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  7761. return {
  7762. url: toPathString(localVarUrlObj),
  7763. options: localVarRequestOptions,
  7764. };
  7765. },
  7766. /**
  7767. *
  7768. * @param {'shared-by' | 'shared-with'} direction
  7769. * @param {*} [options] Override http request option.
  7770. * @throws {RequiredError}
  7771. */
  7772. getPartners: async (direction: 'shared-by' | 'shared-with', options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  7773. // verify required parameter 'direction' is not null or undefined
  7774. assertParamExists('getPartners', 'direction', direction)
  7775. const localVarPath = `/partner`;
  7776. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  7777. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  7778. let baseOptions;
  7779. if (configuration) {
  7780. baseOptions = configuration.baseOptions;
  7781. }
  7782. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  7783. const localVarHeaderParameter = {} as any;
  7784. const localVarQueryParameter = {} as any;
  7785. // authentication cookie required
  7786. // authentication api_key required
  7787. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  7788. // authentication bearer required
  7789. // http bearer authentication required
  7790. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  7791. if (direction !== undefined) {
  7792. localVarQueryParameter['direction'] = direction;
  7793. }
  7794. setSearchParams(localVarUrlObj, localVarQueryParameter);
  7795. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  7796. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  7797. return {
  7798. url: toPathString(localVarUrlObj),
  7799. options: localVarRequestOptions,
  7800. };
  7801. },
  7802. /**
  7803. *
  7804. * @param {string} id
  7805. * @param {*} [options] Override http request option.
  7806. * @throws {RequiredError}
  7807. */
  7808. removePartner: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  7809. // verify required parameter 'id' is not null or undefined
  7810. assertParamExists('removePartner', 'id', id)
  7811. const localVarPath = `/partner/{id}`
  7812. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  7813. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  7814. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  7815. let baseOptions;
  7816. if (configuration) {
  7817. baseOptions = configuration.baseOptions;
  7818. }
  7819. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  7820. const localVarHeaderParameter = {} as any;
  7821. const localVarQueryParameter = {} as any;
  7822. // authentication cookie required
  7823. // authentication api_key required
  7824. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  7825. // authentication bearer required
  7826. // http bearer authentication required
  7827. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  7828. setSearchParams(localVarUrlObj, localVarQueryParameter);
  7829. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  7830. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  7831. return {
  7832. url: toPathString(localVarUrlObj),
  7833. options: localVarRequestOptions,
  7834. };
  7835. },
  7836. }
  7837. };
  7838. /**
  7839. * PartnerApi - functional programming interface
  7840. * @export
  7841. */
  7842. export const PartnerApiFp = function(configuration?: Configuration) {
  7843. const localVarAxiosParamCreator = PartnerApiAxiosParamCreator(configuration)
  7844. return {
  7845. /**
  7846. *
  7847. * @param {string} id
  7848. * @param {*} [options] Override http request option.
  7849. * @throws {RequiredError}
  7850. */
  7851. async createPartner(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  7852. const localVarAxiosArgs = await localVarAxiosParamCreator.createPartner(id, options);
  7853. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7854. },
  7855. /**
  7856. *
  7857. * @param {'shared-by' | 'shared-with'} direction
  7858. * @param {*} [options] Override http request option.
  7859. * @throws {RequiredError}
  7860. */
  7861. async getPartners(direction: 'shared-by' | 'shared-with', options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<UserResponseDto>>> {
  7862. const localVarAxiosArgs = await localVarAxiosParamCreator.getPartners(direction, options);
  7863. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7864. },
  7865. /**
  7866. *
  7867. * @param {string} id
  7868. * @param {*} [options] Override http request option.
  7869. * @throws {RequiredError}
  7870. */
  7871. async removePartner(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  7872. const localVarAxiosArgs = await localVarAxiosParamCreator.removePartner(id, options);
  7873. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7874. },
  7875. }
  7876. };
  7877. /**
  7878. * PartnerApi - factory interface
  7879. * @export
  7880. */
  7881. export const PartnerApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  7882. const localVarFp = PartnerApiFp(configuration)
  7883. return {
  7884. /**
  7885. *
  7886. * @param {string} id
  7887. * @param {*} [options] Override http request option.
  7888. * @throws {RequiredError}
  7889. */
  7890. createPartner(id: string, options?: any): AxiosPromise<UserResponseDto> {
  7891. return localVarFp.createPartner(id, options).then((request) => request(axios, basePath));
  7892. },
  7893. /**
  7894. *
  7895. * @param {'shared-by' | 'shared-with'} direction
  7896. * @param {*} [options] Override http request option.
  7897. * @throws {RequiredError}
  7898. */
  7899. getPartners(direction: 'shared-by' | 'shared-with', options?: any): AxiosPromise<Array<UserResponseDto>> {
  7900. return localVarFp.getPartners(direction, options).then((request) => request(axios, basePath));
  7901. },
  7902. /**
  7903. *
  7904. * @param {string} id
  7905. * @param {*} [options] Override http request option.
  7906. * @throws {RequiredError}
  7907. */
  7908. removePartner(id: string, options?: any): AxiosPromise<void> {
  7909. return localVarFp.removePartner(id, options).then((request) => request(axios, basePath));
  7910. },
  7911. };
  7912. };
  7913. /**
  7914. * Request parameters for createPartner operation in PartnerApi.
  7915. * @export
  7916. * @interface PartnerApiCreatePartnerRequest
  7917. */
  7918. export interface PartnerApiCreatePartnerRequest {
  7919. /**
  7920. *
  7921. * @type {string}
  7922. * @memberof PartnerApiCreatePartner
  7923. */
  7924. readonly id: string
  7925. }
  7926. /**
  7927. * Request parameters for getPartners operation in PartnerApi.
  7928. * @export
  7929. * @interface PartnerApiGetPartnersRequest
  7930. */
  7931. export interface PartnerApiGetPartnersRequest {
  7932. /**
  7933. *
  7934. * @type {'shared-by' | 'shared-with'}
  7935. * @memberof PartnerApiGetPartners
  7936. */
  7937. readonly direction: 'shared-by' | 'shared-with'
  7938. }
  7939. /**
  7940. * Request parameters for removePartner operation in PartnerApi.
  7941. * @export
  7942. * @interface PartnerApiRemovePartnerRequest
  7943. */
  7944. export interface PartnerApiRemovePartnerRequest {
  7945. /**
  7946. *
  7947. * @type {string}
  7948. * @memberof PartnerApiRemovePartner
  7949. */
  7950. readonly id: string
  7951. }
  7952. /**
  7953. * PartnerApi - object-oriented interface
  7954. * @export
  7955. * @class PartnerApi
  7956. * @extends {BaseAPI}
  7957. */
  7958. export class PartnerApi extends BaseAPI {
  7959. /**
  7960. *
  7961. * @param {PartnerApiCreatePartnerRequest} requestParameters Request parameters.
  7962. * @param {*} [options] Override http request option.
  7963. * @throws {RequiredError}
  7964. * @memberof PartnerApi
  7965. */
  7966. public createPartner(requestParameters: PartnerApiCreatePartnerRequest, options?: AxiosRequestConfig) {
  7967. return PartnerApiFp(this.configuration).createPartner(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  7968. }
  7969. /**
  7970. *
  7971. * @param {PartnerApiGetPartnersRequest} requestParameters Request parameters.
  7972. * @param {*} [options] Override http request option.
  7973. * @throws {RequiredError}
  7974. * @memberof PartnerApi
  7975. */
  7976. public getPartners(requestParameters: PartnerApiGetPartnersRequest, options?: AxiosRequestConfig) {
  7977. return PartnerApiFp(this.configuration).getPartners(requestParameters.direction, options).then((request) => request(this.axios, this.basePath));
  7978. }
  7979. /**
  7980. *
  7981. * @param {PartnerApiRemovePartnerRequest} requestParameters Request parameters.
  7982. * @param {*} [options] Override http request option.
  7983. * @throws {RequiredError}
  7984. * @memberof PartnerApi
  7985. */
  7986. public removePartner(requestParameters: PartnerApiRemovePartnerRequest, options?: AxiosRequestConfig) {
  7987. return PartnerApiFp(this.configuration).removePartner(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  7988. }
  7989. }
  7990. /**
  7991. * PersonApi - axios parameter creator
  7992. * @export
  7993. */
  7994. export const PersonApiAxiosParamCreator = function (configuration?: Configuration) {
  7995. return {
  7996. /**
  7997. *
  7998. * @param {boolean} [withHidden]
  7999. * @param {*} [options] Override http request option.
  8000. * @throws {RequiredError}
  8001. */
  8002. getAllPeople: async (withHidden?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  8003. const localVarPath = `/person`;
  8004. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  8005. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  8006. let baseOptions;
  8007. if (configuration) {
  8008. baseOptions = configuration.baseOptions;
  8009. }
  8010. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  8011. const localVarHeaderParameter = {} as any;
  8012. const localVarQueryParameter = {} as any;
  8013. // authentication cookie required
  8014. // authentication api_key required
  8015. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  8016. // authentication bearer required
  8017. // http bearer authentication required
  8018. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  8019. if (withHidden !== undefined) {
  8020. localVarQueryParameter['withHidden'] = withHidden;
  8021. }
  8022. setSearchParams(localVarUrlObj, localVarQueryParameter);
  8023. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  8024. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  8025. return {
  8026. url: toPathString(localVarUrlObj),
  8027. options: localVarRequestOptions,
  8028. };
  8029. },
  8030. /**
  8031. *
  8032. * @param {string} id
  8033. * @param {*} [options] Override http request option.
  8034. * @throws {RequiredError}
  8035. */
  8036. getPerson: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  8037. // verify required parameter 'id' is not null or undefined
  8038. assertParamExists('getPerson', 'id', id)
  8039. const localVarPath = `/person/{id}`
  8040. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  8041. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  8042. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  8043. let baseOptions;
  8044. if (configuration) {
  8045. baseOptions = configuration.baseOptions;
  8046. }
  8047. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  8048. const localVarHeaderParameter = {} as any;
  8049. const localVarQueryParameter = {} as any;
  8050. // authentication cookie required
  8051. // authentication api_key required
  8052. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  8053. // authentication bearer required
  8054. // http bearer authentication required
  8055. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  8056. setSearchParams(localVarUrlObj, localVarQueryParameter);
  8057. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  8058. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  8059. return {
  8060. url: toPathString(localVarUrlObj),
  8061. options: localVarRequestOptions,
  8062. };
  8063. },
  8064. /**
  8065. *
  8066. * @param {string} id
  8067. * @param {*} [options] Override http request option.
  8068. * @throws {RequiredError}
  8069. */
  8070. getPersonAssets: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  8071. // verify required parameter 'id' is not null or undefined
  8072. assertParamExists('getPersonAssets', 'id', id)
  8073. const localVarPath = `/person/{id}/assets`
  8074. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  8075. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  8076. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  8077. let baseOptions;
  8078. if (configuration) {
  8079. baseOptions = configuration.baseOptions;
  8080. }
  8081. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  8082. const localVarHeaderParameter = {} as any;
  8083. const localVarQueryParameter = {} as any;
  8084. // authentication cookie required
  8085. // authentication api_key required
  8086. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  8087. // authentication bearer required
  8088. // http bearer authentication required
  8089. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  8090. setSearchParams(localVarUrlObj, localVarQueryParameter);
  8091. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  8092. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  8093. return {
  8094. url: toPathString(localVarUrlObj),
  8095. options: localVarRequestOptions,
  8096. };
  8097. },
  8098. /**
  8099. *
  8100. * @param {string} id
  8101. * @param {*} [options] Override http request option.
  8102. * @throws {RequiredError}
  8103. */
  8104. getPersonThumbnail: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  8105. // verify required parameter 'id' is not null or undefined
  8106. assertParamExists('getPersonThumbnail', 'id', id)
  8107. const localVarPath = `/person/{id}/thumbnail`
  8108. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  8109. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  8110. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  8111. let baseOptions;
  8112. if (configuration) {
  8113. baseOptions = configuration.baseOptions;
  8114. }
  8115. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  8116. const localVarHeaderParameter = {} as any;
  8117. const localVarQueryParameter = {} as any;
  8118. // authentication cookie required
  8119. // authentication api_key required
  8120. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  8121. // authentication bearer required
  8122. // http bearer authentication required
  8123. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  8124. setSearchParams(localVarUrlObj, localVarQueryParameter);
  8125. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  8126. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  8127. return {
  8128. url: toPathString(localVarUrlObj),
  8129. options: localVarRequestOptions,
  8130. };
  8131. },
  8132. /**
  8133. *
  8134. * @param {string} id
  8135. * @param {MergePersonDto} mergePersonDto
  8136. * @param {*} [options] Override http request option.
  8137. * @throws {RequiredError}
  8138. */
  8139. mergePerson: async (id: string, mergePersonDto: MergePersonDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  8140. // verify required parameter 'id' is not null or undefined
  8141. assertParamExists('mergePerson', 'id', id)
  8142. // verify required parameter 'mergePersonDto' is not null or undefined
  8143. assertParamExists('mergePerson', 'mergePersonDto', mergePersonDto)
  8144. const localVarPath = `/person/{id}/merge`
  8145. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  8146. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  8147. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  8148. let baseOptions;
  8149. if (configuration) {
  8150. baseOptions = configuration.baseOptions;
  8151. }
  8152. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  8153. const localVarHeaderParameter = {} as any;
  8154. const localVarQueryParameter = {} as any;
  8155. // authentication cookie required
  8156. // authentication api_key required
  8157. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  8158. // authentication bearer required
  8159. // http bearer authentication required
  8160. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  8161. localVarHeaderParameter['Content-Type'] = 'application/json';
  8162. setSearchParams(localVarUrlObj, localVarQueryParameter);
  8163. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  8164. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  8165. localVarRequestOptions.data = serializeDataIfNeeded(mergePersonDto, localVarRequestOptions, configuration)
  8166. return {
  8167. url: toPathString(localVarUrlObj),
  8168. options: localVarRequestOptions,
  8169. };
  8170. },
  8171. /**
  8172. *
  8173. * @param {PeopleUpdateDto} peopleUpdateDto
  8174. * @param {*} [options] Override http request option.
  8175. * @throws {RequiredError}
  8176. */
  8177. updatePeople: async (peopleUpdateDto: PeopleUpdateDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  8178. // verify required parameter 'peopleUpdateDto' is not null or undefined
  8179. assertParamExists('updatePeople', 'peopleUpdateDto', peopleUpdateDto)
  8180. const localVarPath = `/person`;
  8181. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  8182. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  8183. let baseOptions;
  8184. if (configuration) {
  8185. baseOptions = configuration.baseOptions;
  8186. }
  8187. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  8188. const localVarHeaderParameter = {} as any;
  8189. const localVarQueryParameter = {} as any;
  8190. // authentication cookie required
  8191. // authentication api_key required
  8192. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  8193. // authentication bearer required
  8194. // http bearer authentication required
  8195. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  8196. localVarHeaderParameter['Content-Type'] = 'application/json';
  8197. setSearchParams(localVarUrlObj, localVarQueryParameter);
  8198. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  8199. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  8200. localVarRequestOptions.data = serializeDataIfNeeded(peopleUpdateDto, localVarRequestOptions, configuration)
  8201. return {
  8202. url: toPathString(localVarUrlObj),
  8203. options: localVarRequestOptions,
  8204. };
  8205. },
  8206. /**
  8207. *
  8208. * @param {string} id
  8209. * @param {PersonUpdateDto} personUpdateDto
  8210. * @param {*} [options] Override http request option.
  8211. * @throws {RequiredError}
  8212. */
  8213. updatePerson: async (id: string, personUpdateDto: PersonUpdateDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  8214. // verify required parameter 'id' is not null or undefined
  8215. assertParamExists('updatePerson', 'id', id)
  8216. // verify required parameter 'personUpdateDto' is not null or undefined
  8217. assertParamExists('updatePerson', 'personUpdateDto', personUpdateDto)
  8218. const localVarPath = `/person/{id}`
  8219. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  8220. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  8221. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  8222. let baseOptions;
  8223. if (configuration) {
  8224. baseOptions = configuration.baseOptions;
  8225. }
  8226. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  8227. const localVarHeaderParameter = {} as any;
  8228. const localVarQueryParameter = {} as any;
  8229. // authentication cookie required
  8230. // authentication api_key required
  8231. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  8232. // authentication bearer required
  8233. // http bearer authentication required
  8234. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  8235. localVarHeaderParameter['Content-Type'] = 'application/json';
  8236. setSearchParams(localVarUrlObj, localVarQueryParameter);
  8237. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  8238. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  8239. localVarRequestOptions.data = serializeDataIfNeeded(personUpdateDto, localVarRequestOptions, configuration)
  8240. return {
  8241. url: toPathString(localVarUrlObj),
  8242. options: localVarRequestOptions,
  8243. };
  8244. },
  8245. }
  8246. };
  8247. /**
  8248. * PersonApi - functional programming interface
  8249. * @export
  8250. */
  8251. export const PersonApiFp = function(configuration?: Configuration) {
  8252. const localVarAxiosParamCreator = PersonApiAxiosParamCreator(configuration)
  8253. return {
  8254. /**
  8255. *
  8256. * @param {boolean} [withHidden]
  8257. * @param {*} [options] Override http request option.
  8258. * @throws {RequiredError}
  8259. */
  8260. async getAllPeople(withHidden?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PeopleResponseDto>> {
  8261. const localVarAxiosArgs = await localVarAxiosParamCreator.getAllPeople(withHidden, options);
  8262. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  8263. },
  8264. /**
  8265. *
  8266. * @param {string} id
  8267. * @param {*} [options] Override http request option.
  8268. * @throws {RequiredError}
  8269. */
  8270. async getPerson(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PersonResponseDto>> {
  8271. const localVarAxiosArgs = await localVarAxiosParamCreator.getPerson(id, options);
  8272. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  8273. },
  8274. /**
  8275. *
  8276. * @param {string} id
  8277. * @param {*} [options] Override http request option.
  8278. * @throws {RequiredError}
  8279. */
  8280. async getPersonAssets(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetResponseDto>>> {
  8281. const localVarAxiosArgs = await localVarAxiosParamCreator.getPersonAssets(id, options);
  8282. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  8283. },
  8284. /**
  8285. *
  8286. * @param {string} id
  8287. * @param {*} [options] Override http request option.
  8288. * @throws {RequiredError}
  8289. */
  8290. async getPersonThumbnail(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>> {
  8291. const localVarAxiosArgs = await localVarAxiosParamCreator.getPersonThumbnail(id, options);
  8292. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  8293. },
  8294. /**
  8295. *
  8296. * @param {string} id
  8297. * @param {MergePersonDto} mergePersonDto
  8298. * @param {*} [options] Override http request option.
  8299. * @throws {RequiredError}
  8300. */
  8301. async mergePerson(id: string, mergePersonDto: MergePersonDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<BulkIdResponseDto>>> {
  8302. const localVarAxiosArgs = await localVarAxiosParamCreator.mergePerson(id, mergePersonDto, options);
  8303. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  8304. },
  8305. /**
  8306. *
  8307. * @param {PeopleUpdateDto} peopleUpdateDto
  8308. * @param {*} [options] Override http request option.
  8309. * @throws {RequiredError}
  8310. */
  8311. async updatePeople(peopleUpdateDto: PeopleUpdateDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<BulkIdResponseDto>>> {
  8312. const localVarAxiosArgs = await localVarAxiosParamCreator.updatePeople(peopleUpdateDto, options);
  8313. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  8314. },
  8315. /**
  8316. *
  8317. * @param {string} id
  8318. * @param {PersonUpdateDto} personUpdateDto
  8319. * @param {*} [options] Override http request option.
  8320. * @throws {RequiredError}
  8321. */
  8322. async updatePerson(id: string, personUpdateDto: PersonUpdateDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PersonResponseDto>> {
  8323. const localVarAxiosArgs = await localVarAxiosParamCreator.updatePerson(id, personUpdateDto, options);
  8324. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  8325. },
  8326. }
  8327. };
  8328. /**
  8329. * PersonApi - factory interface
  8330. * @export
  8331. */
  8332. export const PersonApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  8333. const localVarFp = PersonApiFp(configuration)
  8334. return {
  8335. /**
  8336. *
  8337. * @param {boolean} [withHidden]
  8338. * @param {*} [options] Override http request option.
  8339. * @throws {RequiredError}
  8340. */
  8341. getAllPeople(withHidden?: boolean, options?: any): AxiosPromise<PeopleResponseDto> {
  8342. return localVarFp.getAllPeople(withHidden, options).then((request) => request(axios, basePath));
  8343. },
  8344. /**
  8345. *
  8346. * @param {string} id
  8347. * @param {*} [options] Override http request option.
  8348. * @throws {RequiredError}
  8349. */
  8350. getPerson(id: string, options?: any): AxiosPromise<PersonResponseDto> {
  8351. return localVarFp.getPerson(id, options).then((request) => request(axios, basePath));
  8352. },
  8353. /**
  8354. *
  8355. * @param {string} id
  8356. * @param {*} [options] Override http request option.
  8357. * @throws {RequiredError}
  8358. */
  8359. getPersonAssets(id: string, options?: any): AxiosPromise<Array<AssetResponseDto>> {
  8360. return localVarFp.getPersonAssets(id, options).then((request) => request(axios, basePath));
  8361. },
  8362. /**
  8363. *
  8364. * @param {string} id
  8365. * @param {*} [options] Override http request option.
  8366. * @throws {RequiredError}
  8367. */
  8368. getPersonThumbnail(id: string, options?: any): AxiosPromise<File> {
  8369. return localVarFp.getPersonThumbnail(id, options).then((request) => request(axios, basePath));
  8370. },
  8371. /**
  8372. *
  8373. * @param {string} id
  8374. * @param {MergePersonDto} mergePersonDto
  8375. * @param {*} [options] Override http request option.
  8376. * @throws {RequiredError}
  8377. */
  8378. mergePerson(id: string, mergePersonDto: MergePersonDto, options?: any): AxiosPromise<Array<BulkIdResponseDto>> {
  8379. return localVarFp.mergePerson(id, mergePersonDto, options).then((request) => request(axios, basePath));
  8380. },
  8381. /**
  8382. *
  8383. * @param {PeopleUpdateDto} peopleUpdateDto
  8384. * @param {*} [options] Override http request option.
  8385. * @throws {RequiredError}
  8386. */
  8387. updatePeople(peopleUpdateDto: PeopleUpdateDto, options?: any): AxiosPromise<Array<BulkIdResponseDto>> {
  8388. return localVarFp.updatePeople(peopleUpdateDto, options).then((request) => request(axios, basePath));
  8389. },
  8390. /**
  8391. *
  8392. * @param {string} id
  8393. * @param {PersonUpdateDto} personUpdateDto
  8394. * @param {*} [options] Override http request option.
  8395. * @throws {RequiredError}
  8396. */
  8397. updatePerson(id: string, personUpdateDto: PersonUpdateDto, options?: any): AxiosPromise<PersonResponseDto> {
  8398. return localVarFp.updatePerson(id, personUpdateDto, options).then((request) => request(axios, basePath));
  8399. },
  8400. };
  8401. };
  8402. /**
  8403. * Request parameters for getAllPeople operation in PersonApi.
  8404. * @export
  8405. * @interface PersonApiGetAllPeopleRequest
  8406. */
  8407. export interface PersonApiGetAllPeopleRequest {
  8408. /**
  8409. *
  8410. * @type {boolean}
  8411. * @memberof PersonApiGetAllPeople
  8412. */
  8413. readonly withHidden?: boolean
  8414. }
  8415. /**
  8416. * Request parameters for getPerson operation in PersonApi.
  8417. * @export
  8418. * @interface PersonApiGetPersonRequest
  8419. */
  8420. export interface PersonApiGetPersonRequest {
  8421. /**
  8422. *
  8423. * @type {string}
  8424. * @memberof PersonApiGetPerson
  8425. */
  8426. readonly id: string
  8427. }
  8428. /**
  8429. * Request parameters for getPersonAssets operation in PersonApi.
  8430. * @export
  8431. * @interface PersonApiGetPersonAssetsRequest
  8432. */
  8433. export interface PersonApiGetPersonAssetsRequest {
  8434. /**
  8435. *
  8436. * @type {string}
  8437. * @memberof PersonApiGetPersonAssets
  8438. */
  8439. readonly id: string
  8440. }
  8441. /**
  8442. * Request parameters for getPersonThumbnail operation in PersonApi.
  8443. * @export
  8444. * @interface PersonApiGetPersonThumbnailRequest
  8445. */
  8446. export interface PersonApiGetPersonThumbnailRequest {
  8447. /**
  8448. *
  8449. * @type {string}
  8450. * @memberof PersonApiGetPersonThumbnail
  8451. */
  8452. readonly id: string
  8453. }
  8454. /**
  8455. * Request parameters for mergePerson operation in PersonApi.
  8456. * @export
  8457. * @interface PersonApiMergePersonRequest
  8458. */
  8459. export interface PersonApiMergePersonRequest {
  8460. /**
  8461. *
  8462. * @type {string}
  8463. * @memberof PersonApiMergePerson
  8464. */
  8465. readonly id: string
  8466. /**
  8467. *
  8468. * @type {MergePersonDto}
  8469. * @memberof PersonApiMergePerson
  8470. */
  8471. readonly mergePersonDto: MergePersonDto
  8472. }
  8473. /**
  8474. * Request parameters for updatePeople operation in PersonApi.
  8475. * @export
  8476. * @interface PersonApiUpdatePeopleRequest
  8477. */
  8478. export interface PersonApiUpdatePeopleRequest {
  8479. /**
  8480. *
  8481. * @type {PeopleUpdateDto}
  8482. * @memberof PersonApiUpdatePeople
  8483. */
  8484. readonly peopleUpdateDto: PeopleUpdateDto
  8485. }
  8486. /**
  8487. * Request parameters for updatePerson operation in PersonApi.
  8488. * @export
  8489. * @interface PersonApiUpdatePersonRequest
  8490. */
  8491. export interface PersonApiUpdatePersonRequest {
  8492. /**
  8493. *
  8494. * @type {string}
  8495. * @memberof PersonApiUpdatePerson
  8496. */
  8497. readonly id: string
  8498. /**
  8499. *
  8500. * @type {PersonUpdateDto}
  8501. * @memberof PersonApiUpdatePerson
  8502. */
  8503. readonly personUpdateDto: PersonUpdateDto
  8504. }
  8505. /**
  8506. * PersonApi - object-oriented interface
  8507. * @export
  8508. * @class PersonApi
  8509. * @extends {BaseAPI}
  8510. */
  8511. export class PersonApi extends BaseAPI {
  8512. /**
  8513. *
  8514. * @param {PersonApiGetAllPeopleRequest} requestParameters Request parameters.
  8515. * @param {*} [options] Override http request option.
  8516. * @throws {RequiredError}
  8517. * @memberof PersonApi
  8518. */
  8519. public getAllPeople(requestParameters: PersonApiGetAllPeopleRequest = {}, options?: AxiosRequestConfig) {
  8520. return PersonApiFp(this.configuration).getAllPeople(requestParameters.withHidden, options).then((request) => request(this.axios, this.basePath));
  8521. }
  8522. /**
  8523. *
  8524. * @param {PersonApiGetPersonRequest} requestParameters Request parameters.
  8525. * @param {*} [options] Override http request option.
  8526. * @throws {RequiredError}
  8527. * @memberof PersonApi
  8528. */
  8529. public getPerson(requestParameters: PersonApiGetPersonRequest, options?: AxiosRequestConfig) {
  8530. return PersonApiFp(this.configuration).getPerson(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  8531. }
  8532. /**
  8533. *
  8534. * @param {PersonApiGetPersonAssetsRequest} requestParameters Request parameters.
  8535. * @param {*} [options] Override http request option.
  8536. * @throws {RequiredError}
  8537. * @memberof PersonApi
  8538. */
  8539. public getPersonAssets(requestParameters: PersonApiGetPersonAssetsRequest, options?: AxiosRequestConfig) {
  8540. return PersonApiFp(this.configuration).getPersonAssets(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  8541. }
  8542. /**
  8543. *
  8544. * @param {PersonApiGetPersonThumbnailRequest} requestParameters Request parameters.
  8545. * @param {*} [options] Override http request option.
  8546. * @throws {RequiredError}
  8547. * @memberof PersonApi
  8548. */
  8549. public getPersonThumbnail(requestParameters: PersonApiGetPersonThumbnailRequest, options?: AxiosRequestConfig) {
  8550. return PersonApiFp(this.configuration).getPersonThumbnail(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  8551. }
  8552. /**
  8553. *
  8554. * @param {PersonApiMergePersonRequest} requestParameters Request parameters.
  8555. * @param {*} [options] Override http request option.
  8556. * @throws {RequiredError}
  8557. * @memberof PersonApi
  8558. */
  8559. public mergePerson(requestParameters: PersonApiMergePersonRequest, options?: AxiosRequestConfig) {
  8560. return PersonApiFp(this.configuration).mergePerson(requestParameters.id, requestParameters.mergePersonDto, options).then((request) => request(this.axios, this.basePath));
  8561. }
  8562. /**
  8563. *
  8564. * @param {PersonApiUpdatePeopleRequest} requestParameters Request parameters.
  8565. * @param {*} [options] Override http request option.
  8566. * @throws {RequiredError}
  8567. * @memberof PersonApi
  8568. */
  8569. public updatePeople(requestParameters: PersonApiUpdatePeopleRequest, options?: AxiosRequestConfig) {
  8570. return PersonApiFp(this.configuration).updatePeople(requestParameters.peopleUpdateDto, options).then((request) => request(this.axios, this.basePath));
  8571. }
  8572. /**
  8573. *
  8574. * @param {PersonApiUpdatePersonRequest} requestParameters Request parameters.
  8575. * @param {*} [options] Override http request option.
  8576. * @throws {RequiredError}
  8577. * @memberof PersonApi
  8578. */
  8579. public updatePerson(requestParameters: PersonApiUpdatePersonRequest, options?: AxiosRequestConfig) {
  8580. return PersonApiFp(this.configuration).updatePerson(requestParameters.id, requestParameters.personUpdateDto, options).then((request) => request(this.axios, this.basePath));
  8581. }
  8582. }
  8583. /**
  8584. * SearchApi - axios parameter creator
  8585. * @export
  8586. */
  8587. export const SearchApiAxiosParamCreator = function (configuration?: Configuration) {
  8588. return {
  8589. /**
  8590. *
  8591. * @param {*} [options] Override http request option.
  8592. * @throws {RequiredError}
  8593. */
  8594. getExploreData: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  8595. const localVarPath = `/search/explore`;
  8596. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  8597. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  8598. let baseOptions;
  8599. if (configuration) {
  8600. baseOptions = configuration.baseOptions;
  8601. }
  8602. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  8603. const localVarHeaderParameter = {} as any;
  8604. const localVarQueryParameter = {} as any;
  8605. // authentication cookie required
  8606. // authentication api_key required
  8607. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  8608. // authentication bearer required
  8609. // http bearer authentication required
  8610. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  8611. setSearchParams(localVarUrlObj, localVarQueryParameter);
  8612. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  8613. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  8614. return {
  8615. url: toPathString(localVarUrlObj),
  8616. options: localVarRequestOptions,
  8617. };
  8618. },
  8619. /**
  8620. *
  8621. * @param {*} [options] Override http request option.
  8622. * @throws {RequiredError}
  8623. */
  8624. getSearchConfig: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  8625. const localVarPath = `/search/config`;
  8626. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  8627. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  8628. let baseOptions;
  8629. if (configuration) {
  8630. baseOptions = configuration.baseOptions;
  8631. }
  8632. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  8633. const localVarHeaderParameter = {} as any;
  8634. const localVarQueryParameter = {} as any;
  8635. // authentication cookie required
  8636. // authentication api_key required
  8637. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  8638. // authentication bearer required
  8639. // http bearer authentication required
  8640. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  8641. setSearchParams(localVarUrlObj, localVarQueryParameter);
  8642. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  8643. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  8644. return {
  8645. url: toPathString(localVarUrlObj),
  8646. options: localVarRequestOptions,
  8647. };
  8648. },
  8649. /**
  8650. *
  8651. * @param {string} [q]
  8652. * @param {string} [query]
  8653. * @param {boolean} [clip]
  8654. * @param {'IMAGE' | 'VIDEO' | 'AUDIO' | 'OTHER'} [type]
  8655. * @param {boolean} [isFavorite]
  8656. * @param {boolean} [isArchived]
  8657. * @param {string} [exifInfoCity]
  8658. * @param {string} [exifInfoState]
  8659. * @param {string} [exifInfoCountry]
  8660. * @param {string} [exifInfoMake]
  8661. * @param {string} [exifInfoModel]
  8662. * @param {string} [exifInfoProjectionType]
  8663. * @param {Array<string>} [smartInfoObjects]
  8664. * @param {Array<string>} [smartInfoTags]
  8665. * @param {boolean} [recent]
  8666. * @param {boolean} [motion]
  8667. * @param {*} [options] Override http request option.
  8668. * @throws {RequiredError}
  8669. */
  8670. search: async (q?: string, query?: string, clip?: boolean, type?: 'IMAGE' | 'VIDEO' | 'AUDIO' | 'OTHER', isFavorite?: boolean, isArchived?: boolean, exifInfoCity?: string, exifInfoState?: string, exifInfoCountry?: string, exifInfoMake?: string, exifInfoModel?: string, exifInfoProjectionType?: string, smartInfoObjects?: Array<string>, smartInfoTags?: Array<string>, recent?: boolean, motion?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  8671. const localVarPath = `/search`;
  8672. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  8673. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  8674. let baseOptions;
  8675. if (configuration) {
  8676. baseOptions = configuration.baseOptions;
  8677. }
  8678. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  8679. const localVarHeaderParameter = {} as any;
  8680. const localVarQueryParameter = {} as any;
  8681. // authentication cookie required
  8682. // authentication api_key required
  8683. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  8684. // authentication bearer required
  8685. // http bearer authentication required
  8686. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  8687. if (q !== undefined) {
  8688. localVarQueryParameter['q'] = q;
  8689. }
  8690. if (query !== undefined) {
  8691. localVarQueryParameter['query'] = query;
  8692. }
  8693. if (clip !== undefined) {
  8694. localVarQueryParameter['clip'] = clip;
  8695. }
  8696. if (type !== undefined) {
  8697. localVarQueryParameter['type'] = type;
  8698. }
  8699. if (isFavorite !== undefined) {
  8700. localVarQueryParameter['isFavorite'] = isFavorite;
  8701. }
  8702. if (isArchived !== undefined) {
  8703. localVarQueryParameter['isArchived'] = isArchived;
  8704. }
  8705. if (exifInfoCity !== undefined) {
  8706. localVarQueryParameter['exifInfo.city'] = exifInfoCity;
  8707. }
  8708. if (exifInfoState !== undefined) {
  8709. localVarQueryParameter['exifInfo.state'] = exifInfoState;
  8710. }
  8711. if (exifInfoCountry !== undefined) {
  8712. localVarQueryParameter['exifInfo.country'] = exifInfoCountry;
  8713. }
  8714. if (exifInfoMake !== undefined) {
  8715. localVarQueryParameter['exifInfo.make'] = exifInfoMake;
  8716. }
  8717. if (exifInfoModel !== undefined) {
  8718. localVarQueryParameter['exifInfo.model'] = exifInfoModel;
  8719. }
  8720. if (exifInfoProjectionType !== undefined) {
  8721. localVarQueryParameter['exifInfo.projectionType'] = exifInfoProjectionType;
  8722. }
  8723. if (smartInfoObjects) {
  8724. localVarQueryParameter['smartInfo.objects'] = smartInfoObjects;
  8725. }
  8726. if (smartInfoTags) {
  8727. localVarQueryParameter['smartInfo.tags'] = smartInfoTags;
  8728. }
  8729. if (recent !== undefined) {
  8730. localVarQueryParameter['recent'] = recent;
  8731. }
  8732. if (motion !== undefined) {
  8733. localVarQueryParameter['motion'] = motion;
  8734. }
  8735. setSearchParams(localVarUrlObj, localVarQueryParameter);
  8736. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  8737. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  8738. return {
  8739. url: toPathString(localVarUrlObj),
  8740. options: localVarRequestOptions,
  8741. };
  8742. },
  8743. }
  8744. };
  8745. /**
  8746. * SearchApi - functional programming interface
  8747. * @export
  8748. */
  8749. export const SearchApiFp = function(configuration?: Configuration) {
  8750. const localVarAxiosParamCreator = SearchApiAxiosParamCreator(configuration)
  8751. return {
  8752. /**
  8753. *
  8754. * @param {*} [options] Override http request option.
  8755. * @throws {RequiredError}
  8756. */
  8757. async getExploreData(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<SearchExploreResponseDto>>> {
  8758. const localVarAxiosArgs = await localVarAxiosParamCreator.getExploreData(options);
  8759. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  8760. },
  8761. /**
  8762. *
  8763. * @param {*} [options] Override http request option.
  8764. * @throws {RequiredError}
  8765. */
  8766. async getSearchConfig(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SearchConfigResponseDto>> {
  8767. const localVarAxiosArgs = await localVarAxiosParamCreator.getSearchConfig(options);
  8768. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  8769. },
  8770. /**
  8771. *
  8772. * @param {string} [q]
  8773. * @param {string} [query]
  8774. * @param {boolean} [clip]
  8775. * @param {'IMAGE' | 'VIDEO' | 'AUDIO' | 'OTHER'} [type]
  8776. * @param {boolean} [isFavorite]
  8777. * @param {boolean} [isArchived]
  8778. * @param {string} [exifInfoCity]
  8779. * @param {string} [exifInfoState]
  8780. * @param {string} [exifInfoCountry]
  8781. * @param {string} [exifInfoMake]
  8782. * @param {string} [exifInfoModel]
  8783. * @param {string} [exifInfoProjectionType]
  8784. * @param {Array<string>} [smartInfoObjects]
  8785. * @param {Array<string>} [smartInfoTags]
  8786. * @param {boolean} [recent]
  8787. * @param {boolean} [motion]
  8788. * @param {*} [options] Override http request option.
  8789. * @throws {RequiredError}
  8790. */
  8791. async search(q?: string, query?: string, clip?: boolean, type?: 'IMAGE' | 'VIDEO' | 'AUDIO' | 'OTHER', isFavorite?: boolean, isArchived?: boolean, exifInfoCity?: string, exifInfoState?: string, exifInfoCountry?: string, exifInfoMake?: string, exifInfoModel?: string, exifInfoProjectionType?: string, smartInfoObjects?: Array<string>, smartInfoTags?: Array<string>, recent?: boolean, motion?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SearchResponseDto>> {
  8792. const localVarAxiosArgs = await localVarAxiosParamCreator.search(q, query, clip, type, isFavorite, isArchived, exifInfoCity, exifInfoState, exifInfoCountry, exifInfoMake, exifInfoModel, exifInfoProjectionType, smartInfoObjects, smartInfoTags, recent, motion, options);
  8793. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  8794. },
  8795. }
  8796. };
  8797. /**
  8798. * SearchApi - factory interface
  8799. * @export
  8800. */
  8801. export const SearchApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  8802. const localVarFp = SearchApiFp(configuration)
  8803. return {
  8804. /**
  8805. *
  8806. * @param {*} [options] Override http request option.
  8807. * @throws {RequiredError}
  8808. */
  8809. getExploreData(options?: any): AxiosPromise<Array<SearchExploreResponseDto>> {
  8810. return localVarFp.getExploreData(options).then((request) => request(axios, basePath));
  8811. },
  8812. /**
  8813. *
  8814. * @param {*} [options] Override http request option.
  8815. * @throws {RequiredError}
  8816. */
  8817. getSearchConfig(options?: any): AxiosPromise<SearchConfigResponseDto> {
  8818. return localVarFp.getSearchConfig(options).then((request) => request(axios, basePath));
  8819. },
  8820. /**
  8821. *
  8822. * @param {string} [q]
  8823. * @param {string} [query]
  8824. * @param {boolean} [clip]
  8825. * @param {'IMAGE' | 'VIDEO' | 'AUDIO' | 'OTHER'} [type]
  8826. * @param {boolean} [isFavorite]
  8827. * @param {boolean} [isArchived]
  8828. * @param {string} [exifInfoCity]
  8829. * @param {string} [exifInfoState]
  8830. * @param {string} [exifInfoCountry]
  8831. * @param {string} [exifInfoMake]
  8832. * @param {string} [exifInfoModel]
  8833. * @param {string} [exifInfoProjectionType]
  8834. * @param {Array<string>} [smartInfoObjects]
  8835. * @param {Array<string>} [smartInfoTags]
  8836. * @param {boolean} [recent]
  8837. * @param {boolean} [motion]
  8838. * @param {*} [options] Override http request option.
  8839. * @throws {RequiredError}
  8840. */
  8841. search(q?: string, query?: string, clip?: boolean, type?: 'IMAGE' | 'VIDEO' | 'AUDIO' | 'OTHER', isFavorite?: boolean, isArchived?: boolean, exifInfoCity?: string, exifInfoState?: string, exifInfoCountry?: string, exifInfoMake?: string, exifInfoModel?: string, exifInfoProjectionType?: string, smartInfoObjects?: Array<string>, smartInfoTags?: Array<string>, recent?: boolean, motion?: boolean, options?: any): AxiosPromise<SearchResponseDto> {
  8842. return localVarFp.search(q, query, clip, type, isFavorite, isArchived, exifInfoCity, exifInfoState, exifInfoCountry, exifInfoMake, exifInfoModel, exifInfoProjectionType, smartInfoObjects, smartInfoTags, recent, motion, options).then((request) => request(axios, basePath));
  8843. },
  8844. };
  8845. };
  8846. /**
  8847. * Request parameters for search operation in SearchApi.
  8848. * @export
  8849. * @interface SearchApiSearchRequest
  8850. */
  8851. export interface SearchApiSearchRequest {
  8852. /**
  8853. *
  8854. * @type {string}
  8855. * @memberof SearchApiSearch
  8856. */
  8857. readonly q?: string
  8858. /**
  8859. *
  8860. * @type {string}
  8861. * @memberof SearchApiSearch
  8862. */
  8863. readonly query?: string
  8864. /**
  8865. *
  8866. * @type {boolean}
  8867. * @memberof SearchApiSearch
  8868. */
  8869. readonly clip?: boolean
  8870. /**
  8871. *
  8872. * @type {'IMAGE' | 'VIDEO' | 'AUDIO' | 'OTHER'}
  8873. * @memberof SearchApiSearch
  8874. */
  8875. readonly type?: 'IMAGE' | 'VIDEO' | 'AUDIO' | 'OTHER'
  8876. /**
  8877. *
  8878. * @type {boolean}
  8879. * @memberof SearchApiSearch
  8880. */
  8881. readonly isFavorite?: boolean
  8882. /**
  8883. *
  8884. * @type {boolean}
  8885. * @memberof SearchApiSearch
  8886. */
  8887. readonly isArchived?: boolean
  8888. /**
  8889. *
  8890. * @type {string}
  8891. * @memberof SearchApiSearch
  8892. */
  8893. readonly exifInfoCity?: string
  8894. /**
  8895. *
  8896. * @type {string}
  8897. * @memberof SearchApiSearch
  8898. */
  8899. readonly exifInfoState?: string
  8900. /**
  8901. *
  8902. * @type {string}
  8903. * @memberof SearchApiSearch
  8904. */
  8905. readonly exifInfoCountry?: string
  8906. /**
  8907. *
  8908. * @type {string}
  8909. * @memberof SearchApiSearch
  8910. */
  8911. readonly exifInfoMake?: string
  8912. /**
  8913. *
  8914. * @type {string}
  8915. * @memberof SearchApiSearch
  8916. */
  8917. readonly exifInfoModel?: string
  8918. /**
  8919. *
  8920. * @type {string}
  8921. * @memberof SearchApiSearch
  8922. */
  8923. readonly exifInfoProjectionType?: string
  8924. /**
  8925. *
  8926. * @type {Array<string>}
  8927. * @memberof SearchApiSearch
  8928. */
  8929. readonly smartInfoObjects?: Array<string>
  8930. /**
  8931. *
  8932. * @type {Array<string>}
  8933. * @memberof SearchApiSearch
  8934. */
  8935. readonly smartInfoTags?: Array<string>
  8936. /**
  8937. *
  8938. * @type {boolean}
  8939. * @memberof SearchApiSearch
  8940. */
  8941. readonly recent?: boolean
  8942. /**
  8943. *
  8944. * @type {boolean}
  8945. * @memberof SearchApiSearch
  8946. */
  8947. readonly motion?: boolean
  8948. }
  8949. /**
  8950. * SearchApi - object-oriented interface
  8951. * @export
  8952. * @class SearchApi
  8953. * @extends {BaseAPI}
  8954. */
  8955. export class SearchApi extends BaseAPI {
  8956. /**
  8957. *
  8958. * @param {*} [options] Override http request option.
  8959. * @throws {RequiredError}
  8960. * @memberof SearchApi
  8961. */
  8962. public getExploreData(options?: AxiosRequestConfig) {
  8963. return SearchApiFp(this.configuration).getExploreData(options).then((request) => request(this.axios, this.basePath));
  8964. }
  8965. /**
  8966. *
  8967. * @param {*} [options] Override http request option.
  8968. * @throws {RequiredError}
  8969. * @memberof SearchApi
  8970. */
  8971. public getSearchConfig(options?: AxiosRequestConfig) {
  8972. return SearchApiFp(this.configuration).getSearchConfig(options).then((request) => request(this.axios, this.basePath));
  8973. }
  8974. /**
  8975. *
  8976. * @param {SearchApiSearchRequest} requestParameters Request parameters.
  8977. * @param {*} [options] Override http request option.
  8978. * @throws {RequiredError}
  8979. * @memberof SearchApi
  8980. */
  8981. public search(requestParameters: SearchApiSearchRequest = {}, options?: AxiosRequestConfig) {
  8982. return SearchApiFp(this.configuration).search(requestParameters.q, requestParameters.query, requestParameters.clip, requestParameters.type, requestParameters.isFavorite, requestParameters.isArchived, requestParameters.exifInfoCity, requestParameters.exifInfoState, requestParameters.exifInfoCountry, requestParameters.exifInfoMake, requestParameters.exifInfoModel, requestParameters.exifInfoProjectionType, requestParameters.smartInfoObjects, requestParameters.smartInfoTags, requestParameters.recent, requestParameters.motion, options).then((request) => request(this.axios, this.basePath));
  8983. }
  8984. }
  8985. /**
  8986. * ServerInfoApi - axios parameter creator
  8987. * @export
  8988. */
  8989. export const ServerInfoApiAxiosParamCreator = function (configuration?: Configuration) {
  8990. return {
  8991. /**
  8992. *
  8993. * @param {*} [options] Override http request option.
  8994. * @throws {RequiredError}
  8995. */
  8996. getServerInfo: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  8997. const localVarPath = `/server-info`;
  8998. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  8999. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9000. let baseOptions;
  9001. if (configuration) {
  9002. baseOptions = configuration.baseOptions;
  9003. }
  9004. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  9005. const localVarHeaderParameter = {} as any;
  9006. const localVarQueryParameter = {} as any;
  9007. // authentication cookie required
  9008. // authentication api_key required
  9009. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  9010. // authentication bearer required
  9011. // http bearer authentication required
  9012. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  9013. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9014. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9015. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9016. return {
  9017. url: toPathString(localVarUrlObj),
  9018. options: localVarRequestOptions,
  9019. };
  9020. },
  9021. /**
  9022. *
  9023. * @param {*} [options] Override http request option.
  9024. * @throws {RequiredError}
  9025. */
  9026. getServerVersion: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9027. const localVarPath = `/server-info/version`;
  9028. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9029. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9030. let baseOptions;
  9031. if (configuration) {
  9032. baseOptions = configuration.baseOptions;
  9033. }
  9034. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  9035. const localVarHeaderParameter = {} as any;
  9036. const localVarQueryParameter = {} as any;
  9037. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9038. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9039. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9040. return {
  9041. url: toPathString(localVarUrlObj),
  9042. options: localVarRequestOptions,
  9043. };
  9044. },
  9045. /**
  9046. *
  9047. * @param {*} [options] Override http request option.
  9048. * @throws {RequiredError}
  9049. */
  9050. getStats: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9051. const localVarPath = `/server-info/stats`;
  9052. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9053. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9054. let baseOptions;
  9055. if (configuration) {
  9056. baseOptions = configuration.baseOptions;
  9057. }
  9058. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  9059. const localVarHeaderParameter = {} as any;
  9060. const localVarQueryParameter = {} as any;
  9061. // authentication cookie required
  9062. // authentication api_key required
  9063. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  9064. // authentication bearer required
  9065. // http bearer authentication required
  9066. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  9067. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9068. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9069. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9070. return {
  9071. url: toPathString(localVarUrlObj),
  9072. options: localVarRequestOptions,
  9073. };
  9074. },
  9075. /**
  9076. *
  9077. * @param {*} [options] Override http request option.
  9078. * @throws {RequiredError}
  9079. */
  9080. getSupportedMediaTypes: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9081. const localVarPath = `/server-info/media-types`;
  9082. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9083. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9084. let baseOptions;
  9085. if (configuration) {
  9086. baseOptions = configuration.baseOptions;
  9087. }
  9088. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  9089. const localVarHeaderParameter = {} as any;
  9090. const localVarQueryParameter = {} as any;
  9091. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9092. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9093. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9094. return {
  9095. url: toPathString(localVarUrlObj),
  9096. options: localVarRequestOptions,
  9097. };
  9098. },
  9099. /**
  9100. *
  9101. * @param {*} [options] Override http request option.
  9102. * @throws {RequiredError}
  9103. */
  9104. pingServer: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9105. const localVarPath = `/server-info/ping`;
  9106. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9107. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9108. let baseOptions;
  9109. if (configuration) {
  9110. baseOptions = configuration.baseOptions;
  9111. }
  9112. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  9113. const localVarHeaderParameter = {} as any;
  9114. const localVarQueryParameter = {} as any;
  9115. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9116. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9117. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9118. return {
  9119. url: toPathString(localVarUrlObj),
  9120. options: localVarRequestOptions,
  9121. };
  9122. },
  9123. }
  9124. };
  9125. /**
  9126. * ServerInfoApi - functional programming interface
  9127. * @export
  9128. */
  9129. export const ServerInfoApiFp = function(configuration?: Configuration) {
  9130. const localVarAxiosParamCreator = ServerInfoApiAxiosParamCreator(configuration)
  9131. return {
  9132. /**
  9133. *
  9134. * @param {*} [options] Override http request option.
  9135. * @throws {RequiredError}
  9136. */
  9137. async getServerInfo(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServerInfoResponseDto>> {
  9138. const localVarAxiosArgs = await localVarAxiosParamCreator.getServerInfo(options);
  9139. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9140. },
  9141. /**
  9142. *
  9143. * @param {*} [options] Override http request option.
  9144. * @throws {RequiredError}
  9145. */
  9146. async getServerVersion(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServerVersionReponseDto>> {
  9147. const localVarAxiosArgs = await localVarAxiosParamCreator.getServerVersion(options);
  9148. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9149. },
  9150. /**
  9151. *
  9152. * @param {*} [options] Override http request option.
  9153. * @throws {RequiredError}
  9154. */
  9155. async getStats(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServerStatsResponseDto>> {
  9156. const localVarAxiosArgs = await localVarAxiosParamCreator.getStats(options);
  9157. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9158. },
  9159. /**
  9160. *
  9161. * @param {*} [options] Override http request option.
  9162. * @throws {RequiredError}
  9163. */
  9164. async getSupportedMediaTypes(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServerMediaTypesResponseDto>> {
  9165. const localVarAxiosArgs = await localVarAxiosParamCreator.getSupportedMediaTypes(options);
  9166. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9167. },
  9168. /**
  9169. *
  9170. * @param {*} [options] Override http request option.
  9171. * @throws {RequiredError}
  9172. */
  9173. async pingServer(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServerPingResponse>> {
  9174. const localVarAxiosArgs = await localVarAxiosParamCreator.pingServer(options);
  9175. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9176. },
  9177. }
  9178. };
  9179. /**
  9180. * ServerInfoApi - factory interface
  9181. * @export
  9182. */
  9183. export const ServerInfoApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  9184. const localVarFp = ServerInfoApiFp(configuration)
  9185. return {
  9186. /**
  9187. *
  9188. * @param {*} [options] Override http request option.
  9189. * @throws {RequiredError}
  9190. */
  9191. getServerInfo(options?: any): AxiosPromise<ServerInfoResponseDto> {
  9192. return localVarFp.getServerInfo(options).then((request) => request(axios, basePath));
  9193. },
  9194. /**
  9195. *
  9196. * @param {*} [options] Override http request option.
  9197. * @throws {RequiredError}
  9198. */
  9199. getServerVersion(options?: any): AxiosPromise<ServerVersionReponseDto> {
  9200. return localVarFp.getServerVersion(options).then((request) => request(axios, basePath));
  9201. },
  9202. /**
  9203. *
  9204. * @param {*} [options] Override http request option.
  9205. * @throws {RequiredError}
  9206. */
  9207. getStats(options?: any): AxiosPromise<ServerStatsResponseDto> {
  9208. return localVarFp.getStats(options).then((request) => request(axios, basePath));
  9209. },
  9210. /**
  9211. *
  9212. * @param {*} [options] Override http request option.
  9213. * @throws {RequiredError}
  9214. */
  9215. getSupportedMediaTypes(options?: any): AxiosPromise<ServerMediaTypesResponseDto> {
  9216. return localVarFp.getSupportedMediaTypes(options).then((request) => request(axios, basePath));
  9217. },
  9218. /**
  9219. *
  9220. * @param {*} [options] Override http request option.
  9221. * @throws {RequiredError}
  9222. */
  9223. pingServer(options?: any): AxiosPromise<ServerPingResponse> {
  9224. return localVarFp.pingServer(options).then((request) => request(axios, basePath));
  9225. },
  9226. };
  9227. };
  9228. /**
  9229. * ServerInfoApi - object-oriented interface
  9230. * @export
  9231. * @class ServerInfoApi
  9232. * @extends {BaseAPI}
  9233. */
  9234. export class ServerInfoApi extends BaseAPI {
  9235. /**
  9236. *
  9237. * @param {*} [options] Override http request option.
  9238. * @throws {RequiredError}
  9239. * @memberof ServerInfoApi
  9240. */
  9241. public getServerInfo(options?: AxiosRequestConfig) {
  9242. return ServerInfoApiFp(this.configuration).getServerInfo(options).then((request) => request(this.axios, this.basePath));
  9243. }
  9244. /**
  9245. *
  9246. * @param {*} [options] Override http request option.
  9247. * @throws {RequiredError}
  9248. * @memberof ServerInfoApi
  9249. */
  9250. public getServerVersion(options?: AxiosRequestConfig) {
  9251. return ServerInfoApiFp(this.configuration).getServerVersion(options).then((request) => request(this.axios, this.basePath));
  9252. }
  9253. /**
  9254. *
  9255. * @param {*} [options] Override http request option.
  9256. * @throws {RequiredError}
  9257. * @memberof ServerInfoApi
  9258. */
  9259. public getStats(options?: AxiosRequestConfig) {
  9260. return ServerInfoApiFp(this.configuration).getStats(options).then((request) => request(this.axios, this.basePath));
  9261. }
  9262. /**
  9263. *
  9264. * @param {*} [options] Override http request option.
  9265. * @throws {RequiredError}
  9266. * @memberof ServerInfoApi
  9267. */
  9268. public getSupportedMediaTypes(options?: AxiosRequestConfig) {
  9269. return ServerInfoApiFp(this.configuration).getSupportedMediaTypes(options).then((request) => request(this.axios, this.basePath));
  9270. }
  9271. /**
  9272. *
  9273. * @param {*} [options] Override http request option.
  9274. * @throws {RequiredError}
  9275. * @memberof ServerInfoApi
  9276. */
  9277. public pingServer(options?: AxiosRequestConfig) {
  9278. return ServerInfoApiFp(this.configuration).pingServer(options).then((request) => request(this.axios, this.basePath));
  9279. }
  9280. }
  9281. /**
  9282. * SharedLinkApi - axios parameter creator
  9283. * @export
  9284. */
  9285. export const SharedLinkApiAxiosParamCreator = function (configuration?: Configuration) {
  9286. return {
  9287. /**
  9288. *
  9289. * @param {string} id
  9290. * @param {AssetIdsDto} assetIdsDto
  9291. * @param {string} [key]
  9292. * @param {*} [options] Override http request option.
  9293. * @throws {RequiredError}
  9294. */
  9295. addSharedLinkAssets: async (id: string, assetIdsDto: AssetIdsDto, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9296. // verify required parameter 'id' is not null or undefined
  9297. assertParamExists('addSharedLinkAssets', 'id', id)
  9298. // verify required parameter 'assetIdsDto' is not null or undefined
  9299. assertParamExists('addSharedLinkAssets', 'assetIdsDto', assetIdsDto)
  9300. const localVarPath = `/shared-link/{id}/assets`
  9301. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  9302. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9303. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9304. let baseOptions;
  9305. if (configuration) {
  9306. baseOptions = configuration.baseOptions;
  9307. }
  9308. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  9309. const localVarHeaderParameter = {} as any;
  9310. const localVarQueryParameter = {} as any;
  9311. // authentication cookie required
  9312. // authentication api_key required
  9313. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  9314. // authentication bearer required
  9315. // http bearer authentication required
  9316. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  9317. if (key !== undefined) {
  9318. localVarQueryParameter['key'] = key;
  9319. }
  9320. localVarHeaderParameter['Content-Type'] = 'application/json';
  9321. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9322. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9323. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9324. localVarRequestOptions.data = serializeDataIfNeeded(assetIdsDto, localVarRequestOptions, configuration)
  9325. return {
  9326. url: toPathString(localVarUrlObj),
  9327. options: localVarRequestOptions,
  9328. };
  9329. },
  9330. /**
  9331. *
  9332. * @param {SharedLinkCreateDto} sharedLinkCreateDto
  9333. * @param {*} [options] Override http request option.
  9334. * @throws {RequiredError}
  9335. */
  9336. createSharedLink: async (sharedLinkCreateDto: SharedLinkCreateDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9337. // verify required parameter 'sharedLinkCreateDto' is not null or undefined
  9338. assertParamExists('createSharedLink', 'sharedLinkCreateDto', sharedLinkCreateDto)
  9339. const localVarPath = `/shared-link`;
  9340. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9341. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9342. let baseOptions;
  9343. if (configuration) {
  9344. baseOptions = configuration.baseOptions;
  9345. }
  9346. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  9347. const localVarHeaderParameter = {} as any;
  9348. const localVarQueryParameter = {} as any;
  9349. // authentication cookie required
  9350. // authentication api_key required
  9351. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  9352. // authentication bearer required
  9353. // http bearer authentication required
  9354. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  9355. localVarHeaderParameter['Content-Type'] = 'application/json';
  9356. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9357. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9358. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9359. localVarRequestOptions.data = serializeDataIfNeeded(sharedLinkCreateDto, localVarRequestOptions, configuration)
  9360. return {
  9361. url: toPathString(localVarUrlObj),
  9362. options: localVarRequestOptions,
  9363. };
  9364. },
  9365. /**
  9366. *
  9367. * @param {*} [options] Override http request option.
  9368. * @throws {RequiredError}
  9369. */
  9370. getAllSharedLinks: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9371. const localVarPath = `/shared-link`;
  9372. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9373. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9374. let baseOptions;
  9375. if (configuration) {
  9376. baseOptions = configuration.baseOptions;
  9377. }
  9378. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  9379. const localVarHeaderParameter = {} as any;
  9380. const localVarQueryParameter = {} as any;
  9381. // authentication cookie required
  9382. // authentication api_key required
  9383. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  9384. // authentication bearer required
  9385. // http bearer authentication required
  9386. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  9387. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9388. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9389. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9390. return {
  9391. url: toPathString(localVarUrlObj),
  9392. options: localVarRequestOptions,
  9393. };
  9394. },
  9395. /**
  9396. *
  9397. * @param {string} [key]
  9398. * @param {*} [options] Override http request option.
  9399. * @throws {RequiredError}
  9400. */
  9401. getMySharedLink: async (key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9402. const localVarPath = `/shared-link/me`;
  9403. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9404. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9405. let baseOptions;
  9406. if (configuration) {
  9407. baseOptions = configuration.baseOptions;
  9408. }
  9409. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  9410. const localVarHeaderParameter = {} as any;
  9411. const localVarQueryParameter = {} as any;
  9412. // authentication cookie required
  9413. // authentication api_key required
  9414. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  9415. // authentication bearer required
  9416. // http bearer authentication required
  9417. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  9418. if (key !== undefined) {
  9419. localVarQueryParameter['key'] = key;
  9420. }
  9421. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9422. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9423. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9424. return {
  9425. url: toPathString(localVarUrlObj),
  9426. options: localVarRequestOptions,
  9427. };
  9428. },
  9429. /**
  9430. *
  9431. * @param {string} id
  9432. * @param {*} [options] Override http request option.
  9433. * @throws {RequiredError}
  9434. */
  9435. getSharedLinkById: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9436. // verify required parameter 'id' is not null or undefined
  9437. assertParamExists('getSharedLinkById', 'id', id)
  9438. const localVarPath = `/shared-link/{id}`
  9439. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  9440. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9441. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9442. let baseOptions;
  9443. if (configuration) {
  9444. baseOptions = configuration.baseOptions;
  9445. }
  9446. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  9447. const localVarHeaderParameter = {} as any;
  9448. const localVarQueryParameter = {} as any;
  9449. // authentication cookie required
  9450. // authentication api_key required
  9451. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  9452. // authentication bearer required
  9453. // http bearer authentication required
  9454. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  9455. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9456. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9457. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9458. return {
  9459. url: toPathString(localVarUrlObj),
  9460. options: localVarRequestOptions,
  9461. };
  9462. },
  9463. /**
  9464. *
  9465. * @param {string} id
  9466. * @param {*} [options] Override http request option.
  9467. * @throws {RequiredError}
  9468. */
  9469. removeSharedLink: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9470. // verify required parameter 'id' is not null or undefined
  9471. assertParamExists('removeSharedLink', 'id', id)
  9472. const localVarPath = `/shared-link/{id}`
  9473. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  9474. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9475. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9476. let baseOptions;
  9477. if (configuration) {
  9478. baseOptions = configuration.baseOptions;
  9479. }
  9480. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  9481. const localVarHeaderParameter = {} as any;
  9482. const localVarQueryParameter = {} as any;
  9483. // authentication cookie required
  9484. // authentication api_key required
  9485. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  9486. // authentication bearer required
  9487. // http bearer authentication required
  9488. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  9489. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9490. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9491. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9492. return {
  9493. url: toPathString(localVarUrlObj),
  9494. options: localVarRequestOptions,
  9495. };
  9496. },
  9497. /**
  9498. *
  9499. * @param {string} id
  9500. * @param {AssetIdsDto} assetIdsDto
  9501. * @param {string} [key]
  9502. * @param {*} [options] Override http request option.
  9503. * @throws {RequiredError}
  9504. */
  9505. removeSharedLinkAssets: async (id: string, assetIdsDto: AssetIdsDto, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9506. // verify required parameter 'id' is not null or undefined
  9507. assertParamExists('removeSharedLinkAssets', 'id', id)
  9508. // verify required parameter 'assetIdsDto' is not null or undefined
  9509. assertParamExists('removeSharedLinkAssets', 'assetIdsDto', assetIdsDto)
  9510. const localVarPath = `/shared-link/{id}/assets`
  9511. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  9512. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9513. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9514. let baseOptions;
  9515. if (configuration) {
  9516. baseOptions = configuration.baseOptions;
  9517. }
  9518. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  9519. const localVarHeaderParameter = {} as any;
  9520. const localVarQueryParameter = {} as any;
  9521. // authentication cookie required
  9522. // authentication api_key required
  9523. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  9524. // authentication bearer required
  9525. // http bearer authentication required
  9526. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  9527. if (key !== undefined) {
  9528. localVarQueryParameter['key'] = key;
  9529. }
  9530. localVarHeaderParameter['Content-Type'] = 'application/json';
  9531. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9532. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9533. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9534. localVarRequestOptions.data = serializeDataIfNeeded(assetIdsDto, localVarRequestOptions, configuration)
  9535. return {
  9536. url: toPathString(localVarUrlObj),
  9537. options: localVarRequestOptions,
  9538. };
  9539. },
  9540. /**
  9541. *
  9542. * @param {string} id
  9543. * @param {SharedLinkEditDto} sharedLinkEditDto
  9544. * @param {*} [options] Override http request option.
  9545. * @throws {RequiredError}
  9546. */
  9547. updateSharedLink: async (id: string, sharedLinkEditDto: SharedLinkEditDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9548. // verify required parameter 'id' is not null or undefined
  9549. assertParamExists('updateSharedLink', 'id', id)
  9550. // verify required parameter 'sharedLinkEditDto' is not null or undefined
  9551. assertParamExists('updateSharedLink', 'sharedLinkEditDto', sharedLinkEditDto)
  9552. const localVarPath = `/shared-link/{id}`
  9553. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  9554. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9555. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9556. let baseOptions;
  9557. if (configuration) {
  9558. baseOptions = configuration.baseOptions;
  9559. }
  9560. const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
  9561. const localVarHeaderParameter = {} as any;
  9562. const localVarQueryParameter = {} as any;
  9563. // authentication cookie required
  9564. // authentication api_key required
  9565. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  9566. // authentication bearer required
  9567. // http bearer authentication required
  9568. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  9569. localVarHeaderParameter['Content-Type'] = 'application/json';
  9570. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9571. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9572. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9573. localVarRequestOptions.data = serializeDataIfNeeded(sharedLinkEditDto, localVarRequestOptions, configuration)
  9574. return {
  9575. url: toPathString(localVarUrlObj),
  9576. options: localVarRequestOptions,
  9577. };
  9578. },
  9579. }
  9580. };
  9581. /**
  9582. * SharedLinkApi - functional programming interface
  9583. * @export
  9584. */
  9585. export const SharedLinkApiFp = function(configuration?: Configuration) {
  9586. const localVarAxiosParamCreator = SharedLinkApiAxiosParamCreator(configuration)
  9587. return {
  9588. /**
  9589. *
  9590. * @param {string} id
  9591. * @param {AssetIdsDto} assetIdsDto
  9592. * @param {string} [key]
  9593. * @param {*} [options] Override http request option.
  9594. * @throws {RequiredError}
  9595. */
  9596. async addSharedLinkAssets(id: string, assetIdsDto: AssetIdsDto, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetIdsResponseDto>>> {
  9597. const localVarAxiosArgs = await localVarAxiosParamCreator.addSharedLinkAssets(id, assetIdsDto, key, options);
  9598. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9599. },
  9600. /**
  9601. *
  9602. * @param {SharedLinkCreateDto} sharedLinkCreateDto
  9603. * @param {*} [options] Override http request option.
  9604. * @throws {RequiredError}
  9605. */
  9606. async createSharedLink(sharedLinkCreateDto: SharedLinkCreateDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SharedLinkResponseDto>> {
  9607. const localVarAxiosArgs = await localVarAxiosParamCreator.createSharedLink(sharedLinkCreateDto, options);
  9608. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9609. },
  9610. /**
  9611. *
  9612. * @param {*} [options] Override http request option.
  9613. * @throws {RequiredError}
  9614. */
  9615. async getAllSharedLinks(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<SharedLinkResponseDto>>> {
  9616. const localVarAxiosArgs = await localVarAxiosParamCreator.getAllSharedLinks(options);
  9617. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9618. },
  9619. /**
  9620. *
  9621. * @param {string} [key]
  9622. * @param {*} [options] Override http request option.
  9623. * @throws {RequiredError}
  9624. */
  9625. async getMySharedLink(key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SharedLinkResponseDto>> {
  9626. const localVarAxiosArgs = await localVarAxiosParamCreator.getMySharedLink(key, options);
  9627. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9628. },
  9629. /**
  9630. *
  9631. * @param {string} id
  9632. * @param {*} [options] Override http request option.
  9633. * @throws {RequiredError}
  9634. */
  9635. async getSharedLinkById(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SharedLinkResponseDto>> {
  9636. const localVarAxiosArgs = await localVarAxiosParamCreator.getSharedLinkById(id, options);
  9637. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9638. },
  9639. /**
  9640. *
  9641. * @param {string} id
  9642. * @param {*} [options] Override http request option.
  9643. * @throws {RequiredError}
  9644. */
  9645. async removeSharedLink(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  9646. const localVarAxiosArgs = await localVarAxiosParamCreator.removeSharedLink(id, options);
  9647. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9648. },
  9649. /**
  9650. *
  9651. * @param {string} id
  9652. * @param {AssetIdsDto} assetIdsDto
  9653. * @param {string} [key]
  9654. * @param {*} [options] Override http request option.
  9655. * @throws {RequiredError}
  9656. */
  9657. async removeSharedLinkAssets(id: string, assetIdsDto: AssetIdsDto, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetIdsResponseDto>>> {
  9658. const localVarAxiosArgs = await localVarAxiosParamCreator.removeSharedLinkAssets(id, assetIdsDto, key, options);
  9659. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9660. },
  9661. /**
  9662. *
  9663. * @param {string} id
  9664. * @param {SharedLinkEditDto} sharedLinkEditDto
  9665. * @param {*} [options] Override http request option.
  9666. * @throws {RequiredError}
  9667. */
  9668. async updateSharedLink(id: string, sharedLinkEditDto: SharedLinkEditDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SharedLinkResponseDto>> {
  9669. const localVarAxiosArgs = await localVarAxiosParamCreator.updateSharedLink(id, sharedLinkEditDto, options);
  9670. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9671. },
  9672. }
  9673. };
  9674. /**
  9675. * SharedLinkApi - factory interface
  9676. * @export
  9677. */
  9678. export const SharedLinkApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  9679. const localVarFp = SharedLinkApiFp(configuration)
  9680. return {
  9681. /**
  9682. *
  9683. * @param {string} id
  9684. * @param {AssetIdsDto} assetIdsDto
  9685. * @param {string} [key]
  9686. * @param {*} [options] Override http request option.
  9687. * @throws {RequiredError}
  9688. */
  9689. addSharedLinkAssets(id: string, assetIdsDto: AssetIdsDto, key?: string, options?: any): AxiosPromise<Array<AssetIdsResponseDto>> {
  9690. return localVarFp.addSharedLinkAssets(id, assetIdsDto, key, options).then((request) => request(axios, basePath));
  9691. },
  9692. /**
  9693. *
  9694. * @param {SharedLinkCreateDto} sharedLinkCreateDto
  9695. * @param {*} [options] Override http request option.
  9696. * @throws {RequiredError}
  9697. */
  9698. createSharedLink(sharedLinkCreateDto: SharedLinkCreateDto, options?: any): AxiosPromise<SharedLinkResponseDto> {
  9699. return localVarFp.createSharedLink(sharedLinkCreateDto, options).then((request) => request(axios, basePath));
  9700. },
  9701. /**
  9702. *
  9703. * @param {*} [options] Override http request option.
  9704. * @throws {RequiredError}
  9705. */
  9706. getAllSharedLinks(options?: any): AxiosPromise<Array<SharedLinkResponseDto>> {
  9707. return localVarFp.getAllSharedLinks(options).then((request) => request(axios, basePath));
  9708. },
  9709. /**
  9710. *
  9711. * @param {string} [key]
  9712. * @param {*} [options] Override http request option.
  9713. * @throws {RequiredError}
  9714. */
  9715. getMySharedLink(key?: string, options?: any): AxiosPromise<SharedLinkResponseDto> {
  9716. return localVarFp.getMySharedLink(key, options).then((request) => request(axios, basePath));
  9717. },
  9718. /**
  9719. *
  9720. * @param {string} id
  9721. * @param {*} [options] Override http request option.
  9722. * @throws {RequiredError}
  9723. */
  9724. getSharedLinkById(id: string, options?: any): AxiosPromise<SharedLinkResponseDto> {
  9725. return localVarFp.getSharedLinkById(id, options).then((request) => request(axios, basePath));
  9726. },
  9727. /**
  9728. *
  9729. * @param {string} id
  9730. * @param {*} [options] Override http request option.
  9731. * @throws {RequiredError}
  9732. */
  9733. removeSharedLink(id: string, options?: any): AxiosPromise<void> {
  9734. return localVarFp.removeSharedLink(id, options).then((request) => request(axios, basePath));
  9735. },
  9736. /**
  9737. *
  9738. * @param {string} id
  9739. * @param {AssetIdsDto} assetIdsDto
  9740. * @param {string} [key]
  9741. * @param {*} [options] Override http request option.
  9742. * @throws {RequiredError}
  9743. */
  9744. removeSharedLinkAssets(id: string, assetIdsDto: AssetIdsDto, key?: string, options?: any): AxiosPromise<Array<AssetIdsResponseDto>> {
  9745. return localVarFp.removeSharedLinkAssets(id, assetIdsDto, key, options).then((request) => request(axios, basePath));
  9746. },
  9747. /**
  9748. *
  9749. * @param {string} id
  9750. * @param {SharedLinkEditDto} sharedLinkEditDto
  9751. * @param {*} [options] Override http request option.
  9752. * @throws {RequiredError}
  9753. */
  9754. updateSharedLink(id: string, sharedLinkEditDto: SharedLinkEditDto, options?: any): AxiosPromise<SharedLinkResponseDto> {
  9755. return localVarFp.updateSharedLink(id, sharedLinkEditDto, options).then((request) => request(axios, basePath));
  9756. },
  9757. };
  9758. };
  9759. /**
  9760. * Request parameters for addSharedLinkAssets operation in SharedLinkApi.
  9761. * @export
  9762. * @interface SharedLinkApiAddSharedLinkAssetsRequest
  9763. */
  9764. export interface SharedLinkApiAddSharedLinkAssetsRequest {
  9765. /**
  9766. *
  9767. * @type {string}
  9768. * @memberof SharedLinkApiAddSharedLinkAssets
  9769. */
  9770. readonly id: string
  9771. /**
  9772. *
  9773. * @type {AssetIdsDto}
  9774. * @memberof SharedLinkApiAddSharedLinkAssets
  9775. */
  9776. readonly assetIdsDto: AssetIdsDto
  9777. /**
  9778. *
  9779. * @type {string}
  9780. * @memberof SharedLinkApiAddSharedLinkAssets
  9781. */
  9782. readonly key?: string
  9783. }
  9784. /**
  9785. * Request parameters for createSharedLink operation in SharedLinkApi.
  9786. * @export
  9787. * @interface SharedLinkApiCreateSharedLinkRequest
  9788. */
  9789. export interface SharedLinkApiCreateSharedLinkRequest {
  9790. /**
  9791. *
  9792. * @type {SharedLinkCreateDto}
  9793. * @memberof SharedLinkApiCreateSharedLink
  9794. */
  9795. readonly sharedLinkCreateDto: SharedLinkCreateDto
  9796. }
  9797. /**
  9798. * Request parameters for getMySharedLink operation in SharedLinkApi.
  9799. * @export
  9800. * @interface SharedLinkApiGetMySharedLinkRequest
  9801. */
  9802. export interface SharedLinkApiGetMySharedLinkRequest {
  9803. /**
  9804. *
  9805. * @type {string}
  9806. * @memberof SharedLinkApiGetMySharedLink
  9807. */
  9808. readonly key?: string
  9809. }
  9810. /**
  9811. * Request parameters for getSharedLinkById operation in SharedLinkApi.
  9812. * @export
  9813. * @interface SharedLinkApiGetSharedLinkByIdRequest
  9814. */
  9815. export interface SharedLinkApiGetSharedLinkByIdRequest {
  9816. /**
  9817. *
  9818. * @type {string}
  9819. * @memberof SharedLinkApiGetSharedLinkById
  9820. */
  9821. readonly id: string
  9822. }
  9823. /**
  9824. * Request parameters for removeSharedLink operation in SharedLinkApi.
  9825. * @export
  9826. * @interface SharedLinkApiRemoveSharedLinkRequest
  9827. */
  9828. export interface SharedLinkApiRemoveSharedLinkRequest {
  9829. /**
  9830. *
  9831. * @type {string}
  9832. * @memberof SharedLinkApiRemoveSharedLink
  9833. */
  9834. readonly id: string
  9835. }
  9836. /**
  9837. * Request parameters for removeSharedLinkAssets operation in SharedLinkApi.
  9838. * @export
  9839. * @interface SharedLinkApiRemoveSharedLinkAssetsRequest
  9840. */
  9841. export interface SharedLinkApiRemoveSharedLinkAssetsRequest {
  9842. /**
  9843. *
  9844. * @type {string}
  9845. * @memberof SharedLinkApiRemoveSharedLinkAssets
  9846. */
  9847. readonly id: string
  9848. /**
  9849. *
  9850. * @type {AssetIdsDto}
  9851. * @memberof SharedLinkApiRemoveSharedLinkAssets
  9852. */
  9853. readonly assetIdsDto: AssetIdsDto
  9854. /**
  9855. *
  9856. * @type {string}
  9857. * @memberof SharedLinkApiRemoveSharedLinkAssets
  9858. */
  9859. readonly key?: string
  9860. }
  9861. /**
  9862. * Request parameters for updateSharedLink operation in SharedLinkApi.
  9863. * @export
  9864. * @interface SharedLinkApiUpdateSharedLinkRequest
  9865. */
  9866. export interface SharedLinkApiUpdateSharedLinkRequest {
  9867. /**
  9868. *
  9869. * @type {string}
  9870. * @memberof SharedLinkApiUpdateSharedLink
  9871. */
  9872. readonly id: string
  9873. /**
  9874. *
  9875. * @type {SharedLinkEditDto}
  9876. * @memberof SharedLinkApiUpdateSharedLink
  9877. */
  9878. readonly sharedLinkEditDto: SharedLinkEditDto
  9879. }
  9880. /**
  9881. * SharedLinkApi - object-oriented interface
  9882. * @export
  9883. * @class SharedLinkApi
  9884. * @extends {BaseAPI}
  9885. */
  9886. export class SharedLinkApi extends BaseAPI {
  9887. /**
  9888. *
  9889. * @param {SharedLinkApiAddSharedLinkAssetsRequest} requestParameters Request parameters.
  9890. * @param {*} [options] Override http request option.
  9891. * @throws {RequiredError}
  9892. * @memberof SharedLinkApi
  9893. */
  9894. public addSharedLinkAssets(requestParameters: SharedLinkApiAddSharedLinkAssetsRequest, options?: AxiosRequestConfig) {
  9895. return SharedLinkApiFp(this.configuration).addSharedLinkAssets(requestParameters.id, requestParameters.assetIdsDto, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  9896. }
  9897. /**
  9898. *
  9899. * @param {SharedLinkApiCreateSharedLinkRequest} requestParameters Request parameters.
  9900. * @param {*} [options] Override http request option.
  9901. * @throws {RequiredError}
  9902. * @memberof SharedLinkApi
  9903. */
  9904. public createSharedLink(requestParameters: SharedLinkApiCreateSharedLinkRequest, options?: AxiosRequestConfig) {
  9905. return SharedLinkApiFp(this.configuration).createSharedLink(requestParameters.sharedLinkCreateDto, options).then((request) => request(this.axios, this.basePath));
  9906. }
  9907. /**
  9908. *
  9909. * @param {*} [options] Override http request option.
  9910. * @throws {RequiredError}
  9911. * @memberof SharedLinkApi
  9912. */
  9913. public getAllSharedLinks(options?: AxiosRequestConfig) {
  9914. return SharedLinkApiFp(this.configuration).getAllSharedLinks(options).then((request) => request(this.axios, this.basePath));
  9915. }
  9916. /**
  9917. *
  9918. * @param {SharedLinkApiGetMySharedLinkRequest} requestParameters Request parameters.
  9919. * @param {*} [options] Override http request option.
  9920. * @throws {RequiredError}
  9921. * @memberof SharedLinkApi
  9922. */
  9923. public getMySharedLink(requestParameters: SharedLinkApiGetMySharedLinkRequest = {}, options?: AxiosRequestConfig) {
  9924. return SharedLinkApiFp(this.configuration).getMySharedLink(requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  9925. }
  9926. /**
  9927. *
  9928. * @param {SharedLinkApiGetSharedLinkByIdRequest} requestParameters Request parameters.
  9929. * @param {*} [options] Override http request option.
  9930. * @throws {RequiredError}
  9931. * @memberof SharedLinkApi
  9932. */
  9933. public getSharedLinkById(requestParameters: SharedLinkApiGetSharedLinkByIdRequest, options?: AxiosRequestConfig) {
  9934. return SharedLinkApiFp(this.configuration).getSharedLinkById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  9935. }
  9936. /**
  9937. *
  9938. * @param {SharedLinkApiRemoveSharedLinkRequest} requestParameters Request parameters.
  9939. * @param {*} [options] Override http request option.
  9940. * @throws {RequiredError}
  9941. * @memberof SharedLinkApi
  9942. */
  9943. public removeSharedLink(requestParameters: SharedLinkApiRemoveSharedLinkRequest, options?: AxiosRequestConfig) {
  9944. return SharedLinkApiFp(this.configuration).removeSharedLink(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  9945. }
  9946. /**
  9947. *
  9948. * @param {SharedLinkApiRemoveSharedLinkAssetsRequest} requestParameters Request parameters.
  9949. * @param {*} [options] Override http request option.
  9950. * @throws {RequiredError}
  9951. * @memberof SharedLinkApi
  9952. */
  9953. public removeSharedLinkAssets(requestParameters: SharedLinkApiRemoveSharedLinkAssetsRequest, options?: AxiosRequestConfig) {
  9954. return SharedLinkApiFp(this.configuration).removeSharedLinkAssets(requestParameters.id, requestParameters.assetIdsDto, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  9955. }
  9956. /**
  9957. *
  9958. * @param {SharedLinkApiUpdateSharedLinkRequest} requestParameters Request parameters.
  9959. * @param {*} [options] Override http request option.
  9960. * @throws {RequiredError}
  9961. * @memberof SharedLinkApi
  9962. */
  9963. public updateSharedLink(requestParameters: SharedLinkApiUpdateSharedLinkRequest, options?: AxiosRequestConfig) {
  9964. return SharedLinkApiFp(this.configuration).updateSharedLink(requestParameters.id, requestParameters.sharedLinkEditDto, options).then((request) => request(this.axios, this.basePath));
  9965. }
  9966. }
  9967. /**
  9968. * SystemConfigApi - axios parameter creator
  9969. * @export
  9970. */
  9971. export const SystemConfigApiAxiosParamCreator = function (configuration?: Configuration) {
  9972. return {
  9973. /**
  9974. *
  9975. * @param {*} [options] Override http request option.
  9976. * @throws {RequiredError}
  9977. */
  9978. getConfig: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9979. const localVarPath = `/system-config`;
  9980. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9981. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9982. let baseOptions;
  9983. if (configuration) {
  9984. baseOptions = configuration.baseOptions;
  9985. }
  9986. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  9987. const localVarHeaderParameter = {} as any;
  9988. const localVarQueryParameter = {} as any;
  9989. // authentication cookie required
  9990. // authentication api_key required
  9991. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  9992. // authentication bearer required
  9993. // http bearer authentication required
  9994. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  9995. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9996. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9997. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9998. return {
  9999. url: toPathString(localVarUrlObj),
  10000. options: localVarRequestOptions,
  10001. };
  10002. },
  10003. /**
  10004. *
  10005. * @param {*} [options] Override http request option.
  10006. * @throws {RequiredError}
  10007. */
  10008. getDefaults: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10009. const localVarPath = `/system-config/defaults`;
  10010. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10011. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10012. let baseOptions;
  10013. if (configuration) {
  10014. baseOptions = configuration.baseOptions;
  10015. }
  10016. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  10017. const localVarHeaderParameter = {} as any;
  10018. const localVarQueryParameter = {} as any;
  10019. // authentication cookie required
  10020. // authentication api_key required
  10021. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10022. // authentication bearer required
  10023. // http bearer authentication required
  10024. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10025. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10026. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10027. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10028. return {
  10029. url: toPathString(localVarUrlObj),
  10030. options: localVarRequestOptions,
  10031. };
  10032. },
  10033. /**
  10034. *
  10035. * @param {*} [options] Override http request option.
  10036. * @throws {RequiredError}
  10037. */
  10038. getStorageTemplateOptions: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10039. const localVarPath = `/system-config/storage-template-options`;
  10040. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10041. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10042. let baseOptions;
  10043. if (configuration) {
  10044. baseOptions = configuration.baseOptions;
  10045. }
  10046. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  10047. const localVarHeaderParameter = {} as any;
  10048. const localVarQueryParameter = {} as any;
  10049. // authentication cookie required
  10050. // authentication api_key required
  10051. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10052. // authentication bearer required
  10053. // http bearer authentication required
  10054. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10055. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10056. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10057. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10058. return {
  10059. url: toPathString(localVarUrlObj),
  10060. options: localVarRequestOptions,
  10061. };
  10062. },
  10063. /**
  10064. *
  10065. * @param {SystemConfigDto} systemConfigDto
  10066. * @param {*} [options] Override http request option.
  10067. * @throws {RequiredError}
  10068. */
  10069. updateConfig: async (systemConfigDto: SystemConfigDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10070. // verify required parameter 'systemConfigDto' is not null or undefined
  10071. assertParamExists('updateConfig', 'systemConfigDto', systemConfigDto)
  10072. const localVarPath = `/system-config`;
  10073. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10074. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10075. let baseOptions;
  10076. if (configuration) {
  10077. baseOptions = configuration.baseOptions;
  10078. }
  10079. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  10080. const localVarHeaderParameter = {} as any;
  10081. const localVarQueryParameter = {} as any;
  10082. // authentication cookie required
  10083. // authentication api_key required
  10084. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10085. // authentication bearer required
  10086. // http bearer authentication required
  10087. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10088. localVarHeaderParameter['Content-Type'] = 'application/json';
  10089. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10090. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10091. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10092. localVarRequestOptions.data = serializeDataIfNeeded(systemConfigDto, localVarRequestOptions, configuration)
  10093. return {
  10094. url: toPathString(localVarUrlObj),
  10095. options: localVarRequestOptions,
  10096. };
  10097. },
  10098. }
  10099. };
  10100. /**
  10101. * SystemConfigApi - functional programming interface
  10102. * @export
  10103. */
  10104. export const SystemConfigApiFp = function(configuration?: Configuration) {
  10105. const localVarAxiosParamCreator = SystemConfigApiAxiosParamCreator(configuration)
  10106. return {
  10107. /**
  10108. *
  10109. * @param {*} [options] Override http request option.
  10110. * @throws {RequiredError}
  10111. */
  10112. async getConfig(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SystemConfigDto>> {
  10113. const localVarAxiosArgs = await localVarAxiosParamCreator.getConfig(options);
  10114. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10115. },
  10116. /**
  10117. *
  10118. * @param {*} [options] Override http request option.
  10119. * @throws {RequiredError}
  10120. */
  10121. async getDefaults(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SystemConfigDto>> {
  10122. const localVarAxiosArgs = await localVarAxiosParamCreator.getDefaults(options);
  10123. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10124. },
  10125. /**
  10126. *
  10127. * @param {*} [options] Override http request option.
  10128. * @throws {RequiredError}
  10129. */
  10130. async getStorageTemplateOptions(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SystemConfigTemplateStorageOptionDto>> {
  10131. const localVarAxiosArgs = await localVarAxiosParamCreator.getStorageTemplateOptions(options);
  10132. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10133. },
  10134. /**
  10135. *
  10136. * @param {SystemConfigDto} systemConfigDto
  10137. * @param {*} [options] Override http request option.
  10138. * @throws {RequiredError}
  10139. */
  10140. async updateConfig(systemConfigDto: SystemConfigDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SystemConfigDto>> {
  10141. const localVarAxiosArgs = await localVarAxiosParamCreator.updateConfig(systemConfigDto, options);
  10142. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10143. },
  10144. }
  10145. };
  10146. /**
  10147. * SystemConfigApi - factory interface
  10148. * @export
  10149. */
  10150. export const SystemConfigApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  10151. const localVarFp = SystemConfigApiFp(configuration)
  10152. return {
  10153. /**
  10154. *
  10155. * @param {*} [options] Override http request option.
  10156. * @throws {RequiredError}
  10157. */
  10158. getConfig(options?: any): AxiosPromise<SystemConfigDto> {
  10159. return localVarFp.getConfig(options).then((request) => request(axios, basePath));
  10160. },
  10161. /**
  10162. *
  10163. * @param {*} [options] Override http request option.
  10164. * @throws {RequiredError}
  10165. */
  10166. getDefaults(options?: any): AxiosPromise<SystemConfigDto> {
  10167. return localVarFp.getDefaults(options).then((request) => request(axios, basePath));
  10168. },
  10169. /**
  10170. *
  10171. * @param {*} [options] Override http request option.
  10172. * @throws {RequiredError}
  10173. */
  10174. getStorageTemplateOptions(options?: any): AxiosPromise<SystemConfigTemplateStorageOptionDto> {
  10175. return localVarFp.getStorageTemplateOptions(options).then((request) => request(axios, basePath));
  10176. },
  10177. /**
  10178. *
  10179. * @param {SystemConfigDto} systemConfigDto
  10180. * @param {*} [options] Override http request option.
  10181. * @throws {RequiredError}
  10182. */
  10183. updateConfig(systemConfigDto: SystemConfigDto, options?: any): AxiosPromise<SystemConfigDto> {
  10184. return localVarFp.updateConfig(systemConfigDto, options).then((request) => request(axios, basePath));
  10185. },
  10186. };
  10187. };
  10188. /**
  10189. * Request parameters for updateConfig operation in SystemConfigApi.
  10190. * @export
  10191. * @interface SystemConfigApiUpdateConfigRequest
  10192. */
  10193. export interface SystemConfigApiUpdateConfigRequest {
  10194. /**
  10195. *
  10196. * @type {SystemConfigDto}
  10197. * @memberof SystemConfigApiUpdateConfig
  10198. */
  10199. readonly systemConfigDto: SystemConfigDto
  10200. }
  10201. /**
  10202. * SystemConfigApi - object-oriented interface
  10203. * @export
  10204. * @class SystemConfigApi
  10205. * @extends {BaseAPI}
  10206. */
  10207. export class SystemConfigApi extends BaseAPI {
  10208. /**
  10209. *
  10210. * @param {*} [options] Override http request option.
  10211. * @throws {RequiredError}
  10212. * @memberof SystemConfigApi
  10213. */
  10214. public getConfig(options?: AxiosRequestConfig) {
  10215. return SystemConfigApiFp(this.configuration).getConfig(options).then((request) => request(this.axios, this.basePath));
  10216. }
  10217. /**
  10218. *
  10219. * @param {*} [options] Override http request option.
  10220. * @throws {RequiredError}
  10221. * @memberof SystemConfigApi
  10222. */
  10223. public getDefaults(options?: AxiosRequestConfig) {
  10224. return SystemConfigApiFp(this.configuration).getDefaults(options).then((request) => request(this.axios, this.basePath));
  10225. }
  10226. /**
  10227. *
  10228. * @param {*} [options] Override http request option.
  10229. * @throws {RequiredError}
  10230. * @memberof SystemConfigApi
  10231. */
  10232. public getStorageTemplateOptions(options?: AxiosRequestConfig) {
  10233. return SystemConfigApiFp(this.configuration).getStorageTemplateOptions(options).then((request) => request(this.axios, this.basePath));
  10234. }
  10235. /**
  10236. *
  10237. * @param {SystemConfigApiUpdateConfigRequest} requestParameters Request parameters.
  10238. * @param {*} [options] Override http request option.
  10239. * @throws {RequiredError}
  10240. * @memberof SystemConfigApi
  10241. */
  10242. public updateConfig(requestParameters: SystemConfigApiUpdateConfigRequest, options?: AxiosRequestConfig) {
  10243. return SystemConfigApiFp(this.configuration).updateConfig(requestParameters.systemConfigDto, options).then((request) => request(this.axios, this.basePath));
  10244. }
  10245. }
  10246. /**
  10247. * TagApi - axios parameter creator
  10248. * @export
  10249. */
  10250. export const TagApiAxiosParamCreator = function (configuration?: Configuration) {
  10251. return {
  10252. /**
  10253. *
  10254. * @param {CreateTagDto} createTagDto
  10255. * @param {*} [options] Override http request option.
  10256. * @throws {RequiredError}
  10257. */
  10258. createTag: async (createTagDto: CreateTagDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10259. // verify required parameter 'createTagDto' is not null or undefined
  10260. assertParamExists('createTag', 'createTagDto', createTagDto)
  10261. const localVarPath = `/tag`;
  10262. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10263. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10264. let baseOptions;
  10265. if (configuration) {
  10266. baseOptions = configuration.baseOptions;
  10267. }
  10268. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  10269. const localVarHeaderParameter = {} as any;
  10270. const localVarQueryParameter = {} as any;
  10271. // authentication cookie required
  10272. // authentication api_key required
  10273. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10274. // authentication bearer required
  10275. // http bearer authentication required
  10276. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10277. localVarHeaderParameter['Content-Type'] = 'application/json';
  10278. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10279. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10280. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10281. localVarRequestOptions.data = serializeDataIfNeeded(createTagDto, localVarRequestOptions, configuration)
  10282. return {
  10283. url: toPathString(localVarUrlObj),
  10284. options: localVarRequestOptions,
  10285. };
  10286. },
  10287. /**
  10288. *
  10289. * @param {string} id
  10290. * @param {*} [options] Override http request option.
  10291. * @throws {RequiredError}
  10292. */
  10293. deleteTag: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10294. // verify required parameter 'id' is not null or undefined
  10295. assertParamExists('deleteTag', 'id', id)
  10296. const localVarPath = `/tag/{id}`
  10297. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  10298. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10299. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10300. let baseOptions;
  10301. if (configuration) {
  10302. baseOptions = configuration.baseOptions;
  10303. }
  10304. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  10305. const localVarHeaderParameter = {} as any;
  10306. const localVarQueryParameter = {} as any;
  10307. // authentication cookie required
  10308. // authentication api_key required
  10309. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10310. // authentication bearer required
  10311. // http bearer authentication required
  10312. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10313. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10314. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10315. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10316. return {
  10317. url: toPathString(localVarUrlObj),
  10318. options: localVarRequestOptions,
  10319. };
  10320. },
  10321. /**
  10322. *
  10323. * @param {*} [options] Override http request option.
  10324. * @throws {RequiredError}
  10325. */
  10326. getAllTags: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10327. const localVarPath = `/tag`;
  10328. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10329. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10330. let baseOptions;
  10331. if (configuration) {
  10332. baseOptions = configuration.baseOptions;
  10333. }
  10334. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  10335. const localVarHeaderParameter = {} as any;
  10336. const localVarQueryParameter = {} as any;
  10337. // authentication cookie required
  10338. // authentication api_key required
  10339. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10340. // authentication bearer required
  10341. // http bearer authentication required
  10342. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10343. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10344. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10345. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10346. return {
  10347. url: toPathString(localVarUrlObj),
  10348. options: localVarRequestOptions,
  10349. };
  10350. },
  10351. /**
  10352. *
  10353. * @param {string} id
  10354. * @param {*} [options] Override http request option.
  10355. * @throws {RequiredError}
  10356. */
  10357. getTagAssets: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10358. // verify required parameter 'id' is not null or undefined
  10359. assertParamExists('getTagAssets', 'id', id)
  10360. const localVarPath = `/tag/{id}/assets`
  10361. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  10362. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10363. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10364. let baseOptions;
  10365. if (configuration) {
  10366. baseOptions = configuration.baseOptions;
  10367. }
  10368. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  10369. const localVarHeaderParameter = {} as any;
  10370. const localVarQueryParameter = {} as any;
  10371. // authentication cookie required
  10372. // authentication api_key required
  10373. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10374. // authentication bearer required
  10375. // http bearer authentication required
  10376. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10377. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10378. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10379. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10380. return {
  10381. url: toPathString(localVarUrlObj),
  10382. options: localVarRequestOptions,
  10383. };
  10384. },
  10385. /**
  10386. *
  10387. * @param {string} id
  10388. * @param {*} [options] Override http request option.
  10389. * @throws {RequiredError}
  10390. */
  10391. getTagById: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10392. // verify required parameter 'id' is not null or undefined
  10393. assertParamExists('getTagById', 'id', id)
  10394. const localVarPath = `/tag/{id}`
  10395. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  10396. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10397. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10398. let baseOptions;
  10399. if (configuration) {
  10400. baseOptions = configuration.baseOptions;
  10401. }
  10402. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  10403. const localVarHeaderParameter = {} as any;
  10404. const localVarQueryParameter = {} as any;
  10405. // authentication cookie required
  10406. // authentication api_key required
  10407. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10408. // authentication bearer required
  10409. // http bearer authentication required
  10410. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10411. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10412. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10413. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10414. return {
  10415. url: toPathString(localVarUrlObj),
  10416. options: localVarRequestOptions,
  10417. };
  10418. },
  10419. /**
  10420. *
  10421. * @param {string} id
  10422. * @param {AssetIdsDto} assetIdsDto
  10423. * @param {*} [options] Override http request option.
  10424. * @throws {RequiredError}
  10425. */
  10426. tagAssets: async (id: string, assetIdsDto: AssetIdsDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10427. // verify required parameter 'id' is not null or undefined
  10428. assertParamExists('tagAssets', 'id', id)
  10429. // verify required parameter 'assetIdsDto' is not null or undefined
  10430. assertParamExists('tagAssets', 'assetIdsDto', assetIdsDto)
  10431. const localVarPath = `/tag/{id}/assets`
  10432. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  10433. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10434. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10435. let baseOptions;
  10436. if (configuration) {
  10437. baseOptions = configuration.baseOptions;
  10438. }
  10439. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  10440. const localVarHeaderParameter = {} as any;
  10441. const localVarQueryParameter = {} as any;
  10442. // authentication cookie required
  10443. // authentication api_key required
  10444. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10445. // authentication bearer required
  10446. // http bearer authentication required
  10447. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10448. localVarHeaderParameter['Content-Type'] = 'application/json';
  10449. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10450. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10451. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10452. localVarRequestOptions.data = serializeDataIfNeeded(assetIdsDto, localVarRequestOptions, configuration)
  10453. return {
  10454. url: toPathString(localVarUrlObj),
  10455. options: localVarRequestOptions,
  10456. };
  10457. },
  10458. /**
  10459. *
  10460. * @param {string} id
  10461. * @param {AssetIdsDto} assetIdsDto
  10462. * @param {*} [options] Override http request option.
  10463. * @throws {RequiredError}
  10464. */
  10465. untagAssets: async (id: string, assetIdsDto: AssetIdsDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10466. // verify required parameter 'id' is not null or undefined
  10467. assertParamExists('untagAssets', 'id', id)
  10468. // verify required parameter 'assetIdsDto' is not null or undefined
  10469. assertParamExists('untagAssets', 'assetIdsDto', assetIdsDto)
  10470. const localVarPath = `/tag/{id}/assets`
  10471. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  10472. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10473. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10474. let baseOptions;
  10475. if (configuration) {
  10476. baseOptions = configuration.baseOptions;
  10477. }
  10478. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  10479. const localVarHeaderParameter = {} as any;
  10480. const localVarQueryParameter = {} as any;
  10481. // authentication cookie required
  10482. // authentication api_key required
  10483. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10484. // authentication bearer required
  10485. // http bearer authentication required
  10486. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10487. localVarHeaderParameter['Content-Type'] = 'application/json';
  10488. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10489. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10490. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10491. localVarRequestOptions.data = serializeDataIfNeeded(assetIdsDto, localVarRequestOptions, configuration)
  10492. return {
  10493. url: toPathString(localVarUrlObj),
  10494. options: localVarRequestOptions,
  10495. };
  10496. },
  10497. /**
  10498. *
  10499. * @param {string} id
  10500. * @param {UpdateTagDto} updateTagDto
  10501. * @param {*} [options] Override http request option.
  10502. * @throws {RequiredError}
  10503. */
  10504. updateTag: async (id: string, updateTagDto: UpdateTagDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10505. // verify required parameter 'id' is not null or undefined
  10506. assertParamExists('updateTag', 'id', id)
  10507. // verify required parameter 'updateTagDto' is not null or undefined
  10508. assertParamExists('updateTag', 'updateTagDto', updateTagDto)
  10509. const localVarPath = `/tag/{id}`
  10510. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  10511. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10512. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10513. let baseOptions;
  10514. if (configuration) {
  10515. baseOptions = configuration.baseOptions;
  10516. }
  10517. const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
  10518. const localVarHeaderParameter = {} as any;
  10519. const localVarQueryParameter = {} as any;
  10520. // authentication cookie required
  10521. // authentication api_key required
  10522. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10523. // authentication bearer required
  10524. // http bearer authentication required
  10525. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10526. localVarHeaderParameter['Content-Type'] = 'application/json';
  10527. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10528. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10529. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10530. localVarRequestOptions.data = serializeDataIfNeeded(updateTagDto, localVarRequestOptions, configuration)
  10531. return {
  10532. url: toPathString(localVarUrlObj),
  10533. options: localVarRequestOptions,
  10534. };
  10535. },
  10536. }
  10537. };
  10538. /**
  10539. * TagApi - functional programming interface
  10540. * @export
  10541. */
  10542. export const TagApiFp = function(configuration?: Configuration) {
  10543. const localVarAxiosParamCreator = TagApiAxiosParamCreator(configuration)
  10544. return {
  10545. /**
  10546. *
  10547. * @param {CreateTagDto} createTagDto
  10548. * @param {*} [options] Override http request option.
  10549. * @throws {RequiredError}
  10550. */
  10551. async createTag(createTagDto: CreateTagDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TagResponseDto>> {
  10552. const localVarAxiosArgs = await localVarAxiosParamCreator.createTag(createTagDto, options);
  10553. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10554. },
  10555. /**
  10556. *
  10557. * @param {string} id
  10558. * @param {*} [options] Override http request option.
  10559. * @throws {RequiredError}
  10560. */
  10561. async deleteTag(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  10562. const localVarAxiosArgs = await localVarAxiosParamCreator.deleteTag(id, options);
  10563. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10564. },
  10565. /**
  10566. *
  10567. * @param {*} [options] Override http request option.
  10568. * @throws {RequiredError}
  10569. */
  10570. async getAllTags(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<TagResponseDto>>> {
  10571. const localVarAxiosArgs = await localVarAxiosParamCreator.getAllTags(options);
  10572. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10573. },
  10574. /**
  10575. *
  10576. * @param {string} id
  10577. * @param {*} [options] Override http request option.
  10578. * @throws {RequiredError}
  10579. */
  10580. async getTagAssets(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetResponseDto>>> {
  10581. const localVarAxiosArgs = await localVarAxiosParamCreator.getTagAssets(id, options);
  10582. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10583. },
  10584. /**
  10585. *
  10586. * @param {string} id
  10587. * @param {*} [options] Override http request option.
  10588. * @throws {RequiredError}
  10589. */
  10590. async getTagById(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TagResponseDto>> {
  10591. const localVarAxiosArgs = await localVarAxiosParamCreator.getTagById(id, options);
  10592. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10593. },
  10594. /**
  10595. *
  10596. * @param {string} id
  10597. * @param {AssetIdsDto} assetIdsDto
  10598. * @param {*} [options] Override http request option.
  10599. * @throws {RequiredError}
  10600. */
  10601. async tagAssets(id: string, assetIdsDto: AssetIdsDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetIdsResponseDto>>> {
  10602. const localVarAxiosArgs = await localVarAxiosParamCreator.tagAssets(id, assetIdsDto, options);
  10603. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10604. },
  10605. /**
  10606. *
  10607. * @param {string} id
  10608. * @param {AssetIdsDto} assetIdsDto
  10609. * @param {*} [options] Override http request option.
  10610. * @throws {RequiredError}
  10611. */
  10612. async untagAssets(id: string, assetIdsDto: AssetIdsDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetIdsResponseDto>>> {
  10613. const localVarAxiosArgs = await localVarAxiosParamCreator.untagAssets(id, assetIdsDto, options);
  10614. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10615. },
  10616. /**
  10617. *
  10618. * @param {string} id
  10619. * @param {UpdateTagDto} updateTagDto
  10620. * @param {*} [options] Override http request option.
  10621. * @throws {RequiredError}
  10622. */
  10623. async updateTag(id: string, updateTagDto: UpdateTagDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TagResponseDto>> {
  10624. const localVarAxiosArgs = await localVarAxiosParamCreator.updateTag(id, updateTagDto, options);
  10625. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10626. },
  10627. }
  10628. };
  10629. /**
  10630. * TagApi - factory interface
  10631. * @export
  10632. */
  10633. export const TagApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  10634. const localVarFp = TagApiFp(configuration)
  10635. return {
  10636. /**
  10637. *
  10638. * @param {CreateTagDto} createTagDto
  10639. * @param {*} [options] Override http request option.
  10640. * @throws {RequiredError}
  10641. */
  10642. createTag(createTagDto: CreateTagDto, options?: any): AxiosPromise<TagResponseDto> {
  10643. return localVarFp.createTag(createTagDto, options).then((request) => request(axios, basePath));
  10644. },
  10645. /**
  10646. *
  10647. * @param {string} id
  10648. * @param {*} [options] Override http request option.
  10649. * @throws {RequiredError}
  10650. */
  10651. deleteTag(id: string, options?: any): AxiosPromise<void> {
  10652. return localVarFp.deleteTag(id, options).then((request) => request(axios, basePath));
  10653. },
  10654. /**
  10655. *
  10656. * @param {*} [options] Override http request option.
  10657. * @throws {RequiredError}
  10658. */
  10659. getAllTags(options?: any): AxiosPromise<Array<TagResponseDto>> {
  10660. return localVarFp.getAllTags(options).then((request) => request(axios, basePath));
  10661. },
  10662. /**
  10663. *
  10664. * @param {string} id
  10665. * @param {*} [options] Override http request option.
  10666. * @throws {RequiredError}
  10667. */
  10668. getTagAssets(id: string, options?: any): AxiosPromise<Array<AssetResponseDto>> {
  10669. return localVarFp.getTagAssets(id, options).then((request) => request(axios, basePath));
  10670. },
  10671. /**
  10672. *
  10673. * @param {string} id
  10674. * @param {*} [options] Override http request option.
  10675. * @throws {RequiredError}
  10676. */
  10677. getTagById(id: string, options?: any): AxiosPromise<TagResponseDto> {
  10678. return localVarFp.getTagById(id, options).then((request) => request(axios, basePath));
  10679. },
  10680. /**
  10681. *
  10682. * @param {string} id
  10683. * @param {AssetIdsDto} assetIdsDto
  10684. * @param {*} [options] Override http request option.
  10685. * @throws {RequiredError}
  10686. */
  10687. tagAssets(id: string, assetIdsDto: AssetIdsDto, options?: any): AxiosPromise<Array<AssetIdsResponseDto>> {
  10688. return localVarFp.tagAssets(id, assetIdsDto, options).then((request) => request(axios, basePath));
  10689. },
  10690. /**
  10691. *
  10692. * @param {string} id
  10693. * @param {AssetIdsDto} assetIdsDto
  10694. * @param {*} [options] Override http request option.
  10695. * @throws {RequiredError}
  10696. */
  10697. untagAssets(id: string, assetIdsDto: AssetIdsDto, options?: any): AxiosPromise<Array<AssetIdsResponseDto>> {
  10698. return localVarFp.untagAssets(id, assetIdsDto, options).then((request) => request(axios, basePath));
  10699. },
  10700. /**
  10701. *
  10702. * @param {string} id
  10703. * @param {UpdateTagDto} updateTagDto
  10704. * @param {*} [options] Override http request option.
  10705. * @throws {RequiredError}
  10706. */
  10707. updateTag(id: string, updateTagDto: UpdateTagDto, options?: any): AxiosPromise<TagResponseDto> {
  10708. return localVarFp.updateTag(id, updateTagDto, options).then((request) => request(axios, basePath));
  10709. },
  10710. };
  10711. };
  10712. /**
  10713. * Request parameters for createTag operation in TagApi.
  10714. * @export
  10715. * @interface TagApiCreateTagRequest
  10716. */
  10717. export interface TagApiCreateTagRequest {
  10718. /**
  10719. *
  10720. * @type {CreateTagDto}
  10721. * @memberof TagApiCreateTag
  10722. */
  10723. readonly createTagDto: CreateTagDto
  10724. }
  10725. /**
  10726. * Request parameters for deleteTag operation in TagApi.
  10727. * @export
  10728. * @interface TagApiDeleteTagRequest
  10729. */
  10730. export interface TagApiDeleteTagRequest {
  10731. /**
  10732. *
  10733. * @type {string}
  10734. * @memberof TagApiDeleteTag
  10735. */
  10736. readonly id: string
  10737. }
  10738. /**
  10739. * Request parameters for getTagAssets operation in TagApi.
  10740. * @export
  10741. * @interface TagApiGetTagAssetsRequest
  10742. */
  10743. export interface TagApiGetTagAssetsRequest {
  10744. /**
  10745. *
  10746. * @type {string}
  10747. * @memberof TagApiGetTagAssets
  10748. */
  10749. readonly id: string
  10750. }
  10751. /**
  10752. * Request parameters for getTagById operation in TagApi.
  10753. * @export
  10754. * @interface TagApiGetTagByIdRequest
  10755. */
  10756. export interface TagApiGetTagByIdRequest {
  10757. /**
  10758. *
  10759. * @type {string}
  10760. * @memberof TagApiGetTagById
  10761. */
  10762. readonly id: string
  10763. }
  10764. /**
  10765. * Request parameters for tagAssets operation in TagApi.
  10766. * @export
  10767. * @interface TagApiTagAssetsRequest
  10768. */
  10769. export interface TagApiTagAssetsRequest {
  10770. /**
  10771. *
  10772. * @type {string}
  10773. * @memberof TagApiTagAssets
  10774. */
  10775. readonly id: string
  10776. /**
  10777. *
  10778. * @type {AssetIdsDto}
  10779. * @memberof TagApiTagAssets
  10780. */
  10781. readonly assetIdsDto: AssetIdsDto
  10782. }
  10783. /**
  10784. * Request parameters for untagAssets operation in TagApi.
  10785. * @export
  10786. * @interface TagApiUntagAssetsRequest
  10787. */
  10788. export interface TagApiUntagAssetsRequest {
  10789. /**
  10790. *
  10791. * @type {string}
  10792. * @memberof TagApiUntagAssets
  10793. */
  10794. readonly id: string
  10795. /**
  10796. *
  10797. * @type {AssetIdsDto}
  10798. * @memberof TagApiUntagAssets
  10799. */
  10800. readonly assetIdsDto: AssetIdsDto
  10801. }
  10802. /**
  10803. * Request parameters for updateTag operation in TagApi.
  10804. * @export
  10805. * @interface TagApiUpdateTagRequest
  10806. */
  10807. export interface TagApiUpdateTagRequest {
  10808. /**
  10809. *
  10810. * @type {string}
  10811. * @memberof TagApiUpdateTag
  10812. */
  10813. readonly id: string
  10814. /**
  10815. *
  10816. * @type {UpdateTagDto}
  10817. * @memberof TagApiUpdateTag
  10818. */
  10819. readonly updateTagDto: UpdateTagDto
  10820. }
  10821. /**
  10822. * TagApi - object-oriented interface
  10823. * @export
  10824. * @class TagApi
  10825. * @extends {BaseAPI}
  10826. */
  10827. export class TagApi extends BaseAPI {
  10828. /**
  10829. *
  10830. * @param {TagApiCreateTagRequest} requestParameters Request parameters.
  10831. * @param {*} [options] Override http request option.
  10832. * @throws {RequiredError}
  10833. * @memberof TagApi
  10834. */
  10835. public createTag(requestParameters: TagApiCreateTagRequest, options?: AxiosRequestConfig) {
  10836. return TagApiFp(this.configuration).createTag(requestParameters.createTagDto, options).then((request) => request(this.axios, this.basePath));
  10837. }
  10838. /**
  10839. *
  10840. * @param {TagApiDeleteTagRequest} requestParameters Request parameters.
  10841. * @param {*} [options] Override http request option.
  10842. * @throws {RequiredError}
  10843. * @memberof TagApi
  10844. */
  10845. public deleteTag(requestParameters: TagApiDeleteTagRequest, options?: AxiosRequestConfig) {
  10846. return TagApiFp(this.configuration).deleteTag(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  10847. }
  10848. /**
  10849. *
  10850. * @param {*} [options] Override http request option.
  10851. * @throws {RequiredError}
  10852. * @memberof TagApi
  10853. */
  10854. public getAllTags(options?: AxiosRequestConfig) {
  10855. return TagApiFp(this.configuration).getAllTags(options).then((request) => request(this.axios, this.basePath));
  10856. }
  10857. /**
  10858. *
  10859. * @param {TagApiGetTagAssetsRequest} requestParameters Request parameters.
  10860. * @param {*} [options] Override http request option.
  10861. * @throws {RequiredError}
  10862. * @memberof TagApi
  10863. */
  10864. public getTagAssets(requestParameters: TagApiGetTagAssetsRequest, options?: AxiosRequestConfig) {
  10865. return TagApiFp(this.configuration).getTagAssets(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  10866. }
  10867. /**
  10868. *
  10869. * @param {TagApiGetTagByIdRequest} requestParameters Request parameters.
  10870. * @param {*} [options] Override http request option.
  10871. * @throws {RequiredError}
  10872. * @memberof TagApi
  10873. */
  10874. public getTagById(requestParameters: TagApiGetTagByIdRequest, options?: AxiosRequestConfig) {
  10875. return TagApiFp(this.configuration).getTagById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  10876. }
  10877. /**
  10878. *
  10879. * @param {TagApiTagAssetsRequest} requestParameters Request parameters.
  10880. * @param {*} [options] Override http request option.
  10881. * @throws {RequiredError}
  10882. * @memberof TagApi
  10883. */
  10884. public tagAssets(requestParameters: TagApiTagAssetsRequest, options?: AxiosRequestConfig) {
  10885. return TagApiFp(this.configuration).tagAssets(requestParameters.id, requestParameters.assetIdsDto, options).then((request) => request(this.axios, this.basePath));
  10886. }
  10887. /**
  10888. *
  10889. * @param {TagApiUntagAssetsRequest} requestParameters Request parameters.
  10890. * @param {*} [options] Override http request option.
  10891. * @throws {RequiredError}
  10892. * @memberof TagApi
  10893. */
  10894. public untagAssets(requestParameters: TagApiUntagAssetsRequest, options?: AxiosRequestConfig) {
  10895. return TagApiFp(this.configuration).untagAssets(requestParameters.id, requestParameters.assetIdsDto, options).then((request) => request(this.axios, this.basePath));
  10896. }
  10897. /**
  10898. *
  10899. * @param {TagApiUpdateTagRequest} requestParameters Request parameters.
  10900. * @param {*} [options] Override http request option.
  10901. * @throws {RequiredError}
  10902. * @memberof TagApi
  10903. */
  10904. public updateTag(requestParameters: TagApiUpdateTagRequest, options?: AxiosRequestConfig) {
  10905. return TagApiFp(this.configuration).updateTag(requestParameters.id, requestParameters.updateTagDto, options).then((request) => request(this.axios, this.basePath));
  10906. }
  10907. }
  10908. /**
  10909. * UserApi - axios parameter creator
  10910. * @export
  10911. */
  10912. export const UserApiAxiosParamCreator = function (configuration?: Configuration) {
  10913. return {
  10914. /**
  10915. *
  10916. * @param {File} file
  10917. * @param {*} [options] Override http request option.
  10918. * @throws {RequiredError}
  10919. */
  10920. createProfileImage: async (file: File, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10921. // verify required parameter 'file' is not null or undefined
  10922. assertParamExists('createProfileImage', 'file', file)
  10923. const localVarPath = `/user/profile-image`;
  10924. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10925. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10926. let baseOptions;
  10927. if (configuration) {
  10928. baseOptions = configuration.baseOptions;
  10929. }
  10930. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  10931. const localVarHeaderParameter = {} as any;
  10932. const localVarQueryParameter = {} as any;
  10933. const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
  10934. // authentication cookie required
  10935. // authentication api_key required
  10936. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10937. // authentication bearer required
  10938. // http bearer authentication required
  10939. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10940. if (file !== undefined) {
  10941. localVarFormParams.append('file', file as any);
  10942. }
  10943. localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
  10944. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10945. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10946. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10947. localVarRequestOptions.data = localVarFormParams;
  10948. return {
  10949. url: toPathString(localVarUrlObj),
  10950. options: localVarRequestOptions,
  10951. };
  10952. },
  10953. /**
  10954. *
  10955. * @param {CreateUserDto} createUserDto
  10956. * @param {*} [options] Override http request option.
  10957. * @throws {RequiredError}
  10958. */
  10959. createUser: async (createUserDto: CreateUserDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10960. // verify required parameter 'createUserDto' is not null or undefined
  10961. assertParamExists('createUser', 'createUserDto', createUserDto)
  10962. const localVarPath = `/user`;
  10963. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10964. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10965. let baseOptions;
  10966. if (configuration) {
  10967. baseOptions = configuration.baseOptions;
  10968. }
  10969. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  10970. const localVarHeaderParameter = {} as any;
  10971. const localVarQueryParameter = {} as any;
  10972. // authentication cookie required
  10973. // authentication api_key required
  10974. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10975. // authentication bearer required
  10976. // http bearer authentication required
  10977. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10978. localVarHeaderParameter['Content-Type'] = 'application/json';
  10979. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10980. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10981. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10982. localVarRequestOptions.data = serializeDataIfNeeded(createUserDto, localVarRequestOptions, configuration)
  10983. return {
  10984. url: toPathString(localVarUrlObj),
  10985. options: localVarRequestOptions,
  10986. };
  10987. },
  10988. /**
  10989. *
  10990. * @param {string} id
  10991. * @param {*} [options] Override http request option.
  10992. * @throws {RequiredError}
  10993. */
  10994. deleteUser: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10995. // verify required parameter 'id' is not null or undefined
  10996. assertParamExists('deleteUser', 'id', id)
  10997. const localVarPath = `/user/{id}`
  10998. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  10999. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11000. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11001. let baseOptions;
  11002. if (configuration) {
  11003. baseOptions = configuration.baseOptions;
  11004. }
  11005. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  11006. const localVarHeaderParameter = {} as any;
  11007. const localVarQueryParameter = {} as any;
  11008. // authentication cookie required
  11009. // authentication api_key required
  11010. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  11011. // authentication bearer required
  11012. // http bearer authentication required
  11013. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  11014. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11015. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11016. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11017. return {
  11018. url: toPathString(localVarUrlObj),
  11019. options: localVarRequestOptions,
  11020. };
  11021. },
  11022. /**
  11023. *
  11024. * @param {boolean} isAll
  11025. * @param {*} [options] Override http request option.
  11026. * @throws {RequiredError}
  11027. */
  11028. getAllUsers: async (isAll: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11029. // verify required parameter 'isAll' is not null or undefined
  11030. assertParamExists('getAllUsers', 'isAll', isAll)
  11031. const localVarPath = `/user`;
  11032. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11033. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11034. let baseOptions;
  11035. if (configuration) {
  11036. baseOptions = configuration.baseOptions;
  11037. }
  11038. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  11039. const localVarHeaderParameter = {} as any;
  11040. const localVarQueryParameter = {} as any;
  11041. // authentication cookie required
  11042. // authentication api_key required
  11043. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  11044. // authentication bearer required
  11045. // http bearer authentication required
  11046. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  11047. if (isAll !== undefined) {
  11048. localVarQueryParameter['isAll'] = isAll;
  11049. }
  11050. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11051. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11052. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11053. return {
  11054. url: toPathString(localVarUrlObj),
  11055. options: localVarRequestOptions,
  11056. };
  11057. },
  11058. /**
  11059. *
  11060. * @param {*} [options] Override http request option.
  11061. * @throws {RequiredError}
  11062. */
  11063. getMyUserInfo: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11064. const localVarPath = `/user/me`;
  11065. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11066. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11067. let baseOptions;
  11068. if (configuration) {
  11069. baseOptions = configuration.baseOptions;
  11070. }
  11071. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  11072. const localVarHeaderParameter = {} as any;
  11073. const localVarQueryParameter = {} as any;
  11074. // authentication cookie required
  11075. // authentication api_key required
  11076. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  11077. // authentication bearer required
  11078. // http bearer authentication required
  11079. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  11080. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11081. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11082. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11083. return {
  11084. url: toPathString(localVarUrlObj),
  11085. options: localVarRequestOptions,
  11086. };
  11087. },
  11088. /**
  11089. *
  11090. * @param {string} id
  11091. * @param {*} [options] Override http request option.
  11092. * @throws {RequiredError}
  11093. */
  11094. getProfileImage: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11095. // verify required parameter 'id' is not null or undefined
  11096. assertParamExists('getProfileImage', 'id', id)
  11097. const localVarPath = `/user/profile-image/{id}`
  11098. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  11099. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11100. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11101. let baseOptions;
  11102. if (configuration) {
  11103. baseOptions = configuration.baseOptions;
  11104. }
  11105. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  11106. const localVarHeaderParameter = {} as any;
  11107. const localVarQueryParameter = {} as any;
  11108. // authentication cookie required
  11109. // authentication api_key required
  11110. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  11111. // authentication bearer required
  11112. // http bearer authentication required
  11113. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  11114. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11115. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11116. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11117. return {
  11118. url: toPathString(localVarUrlObj),
  11119. options: localVarRequestOptions,
  11120. };
  11121. },
  11122. /**
  11123. *
  11124. * @param {string} id
  11125. * @param {*} [options] Override http request option.
  11126. * @throws {RequiredError}
  11127. */
  11128. getUserById: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11129. // verify required parameter 'id' is not null or undefined
  11130. assertParamExists('getUserById', 'id', id)
  11131. const localVarPath = `/user/info/{id}`
  11132. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  11133. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11134. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11135. let baseOptions;
  11136. if (configuration) {
  11137. baseOptions = configuration.baseOptions;
  11138. }
  11139. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  11140. const localVarHeaderParameter = {} as any;
  11141. const localVarQueryParameter = {} as any;
  11142. // authentication cookie required
  11143. // authentication api_key required
  11144. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  11145. // authentication bearer required
  11146. // http bearer authentication required
  11147. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  11148. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11149. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11150. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11151. return {
  11152. url: toPathString(localVarUrlObj),
  11153. options: localVarRequestOptions,
  11154. };
  11155. },
  11156. /**
  11157. *
  11158. * @param {boolean} [admin]
  11159. * @param {*} [options] Override http request option.
  11160. * @throws {RequiredError}
  11161. */
  11162. getUserCount: async (admin?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11163. const localVarPath = `/user/count`;
  11164. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11165. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11166. let baseOptions;
  11167. if (configuration) {
  11168. baseOptions = configuration.baseOptions;
  11169. }
  11170. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  11171. const localVarHeaderParameter = {} as any;
  11172. const localVarQueryParameter = {} as any;
  11173. if (admin !== undefined) {
  11174. localVarQueryParameter['admin'] = admin;
  11175. }
  11176. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11177. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11178. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11179. return {
  11180. url: toPathString(localVarUrlObj),
  11181. options: localVarRequestOptions,
  11182. };
  11183. },
  11184. /**
  11185. *
  11186. * @param {string} id
  11187. * @param {*} [options] Override http request option.
  11188. * @throws {RequiredError}
  11189. */
  11190. restoreUser: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11191. // verify required parameter 'id' is not null or undefined
  11192. assertParamExists('restoreUser', 'id', id)
  11193. const localVarPath = `/user/{id}/restore`
  11194. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  11195. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11196. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11197. let baseOptions;
  11198. if (configuration) {
  11199. baseOptions = configuration.baseOptions;
  11200. }
  11201. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  11202. const localVarHeaderParameter = {} as any;
  11203. const localVarQueryParameter = {} as any;
  11204. // authentication cookie required
  11205. // authentication api_key required
  11206. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  11207. // authentication bearer required
  11208. // http bearer authentication required
  11209. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  11210. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11211. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11212. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11213. return {
  11214. url: toPathString(localVarUrlObj),
  11215. options: localVarRequestOptions,
  11216. };
  11217. },
  11218. /**
  11219. *
  11220. * @param {UpdateUserDto} updateUserDto
  11221. * @param {*} [options] Override http request option.
  11222. * @throws {RequiredError}
  11223. */
  11224. updateUser: async (updateUserDto: UpdateUserDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11225. // verify required parameter 'updateUserDto' is not null or undefined
  11226. assertParamExists('updateUser', 'updateUserDto', updateUserDto)
  11227. const localVarPath = `/user`;
  11228. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11229. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11230. let baseOptions;
  11231. if (configuration) {
  11232. baseOptions = configuration.baseOptions;
  11233. }
  11234. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  11235. const localVarHeaderParameter = {} as any;
  11236. const localVarQueryParameter = {} as any;
  11237. // authentication cookie required
  11238. // authentication api_key required
  11239. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  11240. // authentication bearer required
  11241. // http bearer authentication required
  11242. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  11243. localVarHeaderParameter['Content-Type'] = 'application/json';
  11244. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11245. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11246. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11247. localVarRequestOptions.data = serializeDataIfNeeded(updateUserDto, localVarRequestOptions, configuration)
  11248. return {
  11249. url: toPathString(localVarUrlObj),
  11250. options: localVarRequestOptions,
  11251. };
  11252. },
  11253. }
  11254. };
  11255. /**
  11256. * UserApi - functional programming interface
  11257. * @export
  11258. */
  11259. export const UserApiFp = function(configuration?: Configuration) {
  11260. const localVarAxiosParamCreator = UserApiAxiosParamCreator(configuration)
  11261. return {
  11262. /**
  11263. *
  11264. * @param {File} file
  11265. * @param {*} [options] Override http request option.
  11266. * @throws {RequiredError}
  11267. */
  11268. async createProfileImage(file: File, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateProfileImageResponseDto>> {
  11269. const localVarAxiosArgs = await localVarAxiosParamCreator.createProfileImage(file, options);
  11270. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11271. },
  11272. /**
  11273. *
  11274. * @param {CreateUserDto} createUserDto
  11275. * @param {*} [options] Override http request option.
  11276. * @throws {RequiredError}
  11277. */
  11278. async createUser(createUserDto: CreateUserDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  11279. const localVarAxiosArgs = await localVarAxiosParamCreator.createUser(createUserDto, options);
  11280. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11281. },
  11282. /**
  11283. *
  11284. * @param {string} id
  11285. * @param {*} [options] Override http request option.
  11286. * @throws {RequiredError}
  11287. */
  11288. async deleteUser(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  11289. const localVarAxiosArgs = await localVarAxiosParamCreator.deleteUser(id, options);
  11290. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11291. },
  11292. /**
  11293. *
  11294. * @param {boolean} isAll
  11295. * @param {*} [options] Override http request option.
  11296. * @throws {RequiredError}
  11297. */
  11298. async getAllUsers(isAll: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<UserResponseDto>>> {
  11299. const localVarAxiosArgs = await localVarAxiosParamCreator.getAllUsers(isAll, options);
  11300. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11301. },
  11302. /**
  11303. *
  11304. * @param {*} [options] Override http request option.
  11305. * @throws {RequiredError}
  11306. */
  11307. async getMyUserInfo(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  11308. const localVarAxiosArgs = await localVarAxiosParamCreator.getMyUserInfo(options);
  11309. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11310. },
  11311. /**
  11312. *
  11313. * @param {string} id
  11314. * @param {*} [options] Override http request option.
  11315. * @throws {RequiredError}
  11316. */
  11317. async getProfileImage(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
  11318. const localVarAxiosArgs = await localVarAxiosParamCreator.getProfileImage(id, options);
  11319. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11320. },
  11321. /**
  11322. *
  11323. * @param {string} id
  11324. * @param {*} [options] Override http request option.
  11325. * @throws {RequiredError}
  11326. */
  11327. async getUserById(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  11328. const localVarAxiosArgs = await localVarAxiosParamCreator.getUserById(id, options);
  11329. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11330. },
  11331. /**
  11332. *
  11333. * @param {boolean} [admin]
  11334. * @param {*} [options] Override http request option.
  11335. * @throws {RequiredError}
  11336. */
  11337. async getUserCount(admin?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserCountResponseDto>> {
  11338. const localVarAxiosArgs = await localVarAxiosParamCreator.getUserCount(admin, options);
  11339. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11340. },
  11341. /**
  11342. *
  11343. * @param {string} id
  11344. * @param {*} [options] Override http request option.
  11345. * @throws {RequiredError}
  11346. */
  11347. async restoreUser(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  11348. const localVarAxiosArgs = await localVarAxiosParamCreator.restoreUser(id, options);
  11349. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11350. },
  11351. /**
  11352. *
  11353. * @param {UpdateUserDto} updateUserDto
  11354. * @param {*} [options] Override http request option.
  11355. * @throws {RequiredError}
  11356. */
  11357. async updateUser(updateUserDto: UpdateUserDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  11358. const localVarAxiosArgs = await localVarAxiosParamCreator.updateUser(updateUserDto, options);
  11359. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11360. },
  11361. }
  11362. };
  11363. /**
  11364. * UserApi - factory interface
  11365. * @export
  11366. */
  11367. export const UserApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  11368. const localVarFp = UserApiFp(configuration)
  11369. return {
  11370. /**
  11371. *
  11372. * @param {File} file
  11373. * @param {*} [options] Override http request option.
  11374. * @throws {RequiredError}
  11375. */
  11376. createProfileImage(file: File, options?: any): AxiosPromise<CreateProfileImageResponseDto> {
  11377. return localVarFp.createProfileImage(file, options).then((request) => request(axios, basePath));
  11378. },
  11379. /**
  11380. *
  11381. * @param {CreateUserDto} createUserDto
  11382. * @param {*} [options] Override http request option.
  11383. * @throws {RequiredError}
  11384. */
  11385. createUser(createUserDto: CreateUserDto, options?: any): AxiosPromise<UserResponseDto> {
  11386. return localVarFp.createUser(createUserDto, options).then((request) => request(axios, basePath));
  11387. },
  11388. /**
  11389. *
  11390. * @param {string} id
  11391. * @param {*} [options] Override http request option.
  11392. * @throws {RequiredError}
  11393. */
  11394. deleteUser(id: string, options?: any): AxiosPromise<UserResponseDto> {
  11395. return localVarFp.deleteUser(id, options).then((request) => request(axios, basePath));
  11396. },
  11397. /**
  11398. *
  11399. * @param {boolean} isAll
  11400. * @param {*} [options] Override http request option.
  11401. * @throws {RequiredError}
  11402. */
  11403. getAllUsers(isAll: boolean, options?: any): AxiosPromise<Array<UserResponseDto>> {
  11404. return localVarFp.getAllUsers(isAll, options).then((request) => request(axios, basePath));
  11405. },
  11406. /**
  11407. *
  11408. * @param {*} [options] Override http request option.
  11409. * @throws {RequiredError}
  11410. */
  11411. getMyUserInfo(options?: any): AxiosPromise<UserResponseDto> {
  11412. return localVarFp.getMyUserInfo(options).then((request) => request(axios, basePath));
  11413. },
  11414. /**
  11415. *
  11416. * @param {string} id
  11417. * @param {*} [options] Override http request option.
  11418. * @throws {RequiredError}
  11419. */
  11420. getProfileImage(id: string, options?: any): AxiosPromise<object> {
  11421. return localVarFp.getProfileImage(id, options).then((request) => request(axios, basePath));
  11422. },
  11423. /**
  11424. *
  11425. * @param {string} id
  11426. * @param {*} [options] Override http request option.
  11427. * @throws {RequiredError}
  11428. */
  11429. getUserById(id: string, options?: any): AxiosPromise<UserResponseDto> {
  11430. return localVarFp.getUserById(id, options).then((request) => request(axios, basePath));
  11431. },
  11432. /**
  11433. *
  11434. * @param {boolean} [admin]
  11435. * @param {*} [options] Override http request option.
  11436. * @throws {RequiredError}
  11437. */
  11438. getUserCount(admin?: boolean, options?: any): AxiosPromise<UserCountResponseDto> {
  11439. return localVarFp.getUserCount(admin, options).then((request) => request(axios, basePath));
  11440. },
  11441. /**
  11442. *
  11443. * @param {string} id
  11444. * @param {*} [options] Override http request option.
  11445. * @throws {RequiredError}
  11446. */
  11447. restoreUser(id: string, options?: any): AxiosPromise<UserResponseDto> {
  11448. return localVarFp.restoreUser(id, options).then((request) => request(axios, basePath));
  11449. },
  11450. /**
  11451. *
  11452. * @param {UpdateUserDto} updateUserDto
  11453. * @param {*} [options] Override http request option.
  11454. * @throws {RequiredError}
  11455. */
  11456. updateUser(updateUserDto: UpdateUserDto, options?: any): AxiosPromise<UserResponseDto> {
  11457. return localVarFp.updateUser(updateUserDto, options).then((request) => request(axios, basePath));
  11458. },
  11459. };
  11460. };
  11461. /**
  11462. * Request parameters for createProfileImage operation in UserApi.
  11463. * @export
  11464. * @interface UserApiCreateProfileImageRequest
  11465. */
  11466. export interface UserApiCreateProfileImageRequest {
  11467. /**
  11468. *
  11469. * @type {File}
  11470. * @memberof UserApiCreateProfileImage
  11471. */
  11472. readonly file: File
  11473. }
  11474. /**
  11475. * Request parameters for createUser operation in UserApi.
  11476. * @export
  11477. * @interface UserApiCreateUserRequest
  11478. */
  11479. export interface UserApiCreateUserRequest {
  11480. /**
  11481. *
  11482. * @type {CreateUserDto}
  11483. * @memberof UserApiCreateUser
  11484. */
  11485. readonly createUserDto: CreateUserDto
  11486. }
  11487. /**
  11488. * Request parameters for deleteUser operation in UserApi.
  11489. * @export
  11490. * @interface UserApiDeleteUserRequest
  11491. */
  11492. export interface UserApiDeleteUserRequest {
  11493. /**
  11494. *
  11495. * @type {string}
  11496. * @memberof UserApiDeleteUser
  11497. */
  11498. readonly id: string
  11499. }
  11500. /**
  11501. * Request parameters for getAllUsers operation in UserApi.
  11502. * @export
  11503. * @interface UserApiGetAllUsersRequest
  11504. */
  11505. export interface UserApiGetAllUsersRequest {
  11506. /**
  11507. *
  11508. * @type {boolean}
  11509. * @memberof UserApiGetAllUsers
  11510. */
  11511. readonly isAll: boolean
  11512. }
  11513. /**
  11514. * Request parameters for getProfileImage operation in UserApi.
  11515. * @export
  11516. * @interface UserApiGetProfileImageRequest
  11517. */
  11518. export interface UserApiGetProfileImageRequest {
  11519. /**
  11520. *
  11521. * @type {string}
  11522. * @memberof UserApiGetProfileImage
  11523. */
  11524. readonly id: string
  11525. }
  11526. /**
  11527. * Request parameters for getUserById operation in UserApi.
  11528. * @export
  11529. * @interface UserApiGetUserByIdRequest
  11530. */
  11531. export interface UserApiGetUserByIdRequest {
  11532. /**
  11533. *
  11534. * @type {string}
  11535. * @memberof UserApiGetUserById
  11536. */
  11537. readonly id: string
  11538. }
  11539. /**
  11540. * Request parameters for getUserCount operation in UserApi.
  11541. * @export
  11542. * @interface UserApiGetUserCountRequest
  11543. */
  11544. export interface UserApiGetUserCountRequest {
  11545. /**
  11546. *
  11547. * @type {boolean}
  11548. * @memberof UserApiGetUserCount
  11549. */
  11550. readonly admin?: boolean
  11551. }
  11552. /**
  11553. * Request parameters for restoreUser operation in UserApi.
  11554. * @export
  11555. * @interface UserApiRestoreUserRequest
  11556. */
  11557. export interface UserApiRestoreUserRequest {
  11558. /**
  11559. *
  11560. * @type {string}
  11561. * @memberof UserApiRestoreUser
  11562. */
  11563. readonly id: string
  11564. }
  11565. /**
  11566. * Request parameters for updateUser operation in UserApi.
  11567. * @export
  11568. * @interface UserApiUpdateUserRequest
  11569. */
  11570. export interface UserApiUpdateUserRequest {
  11571. /**
  11572. *
  11573. * @type {UpdateUserDto}
  11574. * @memberof UserApiUpdateUser
  11575. */
  11576. readonly updateUserDto: UpdateUserDto
  11577. }
  11578. /**
  11579. * UserApi - object-oriented interface
  11580. * @export
  11581. * @class UserApi
  11582. * @extends {BaseAPI}
  11583. */
  11584. export class UserApi extends BaseAPI {
  11585. /**
  11586. *
  11587. * @param {UserApiCreateProfileImageRequest} requestParameters Request parameters.
  11588. * @param {*} [options] Override http request option.
  11589. * @throws {RequiredError}
  11590. * @memberof UserApi
  11591. */
  11592. public createProfileImage(requestParameters: UserApiCreateProfileImageRequest, options?: AxiosRequestConfig) {
  11593. return UserApiFp(this.configuration).createProfileImage(requestParameters.file, options).then((request) => request(this.axios, this.basePath));
  11594. }
  11595. /**
  11596. *
  11597. * @param {UserApiCreateUserRequest} requestParameters Request parameters.
  11598. * @param {*} [options] Override http request option.
  11599. * @throws {RequiredError}
  11600. * @memberof UserApi
  11601. */
  11602. public createUser(requestParameters: UserApiCreateUserRequest, options?: AxiosRequestConfig) {
  11603. return UserApiFp(this.configuration).createUser(requestParameters.createUserDto, options).then((request) => request(this.axios, this.basePath));
  11604. }
  11605. /**
  11606. *
  11607. * @param {UserApiDeleteUserRequest} requestParameters Request parameters.
  11608. * @param {*} [options] Override http request option.
  11609. * @throws {RequiredError}
  11610. * @memberof UserApi
  11611. */
  11612. public deleteUser(requestParameters: UserApiDeleteUserRequest, options?: AxiosRequestConfig) {
  11613. return UserApiFp(this.configuration).deleteUser(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  11614. }
  11615. /**
  11616. *
  11617. * @param {UserApiGetAllUsersRequest} requestParameters Request parameters.
  11618. * @param {*} [options] Override http request option.
  11619. * @throws {RequiredError}
  11620. * @memberof UserApi
  11621. */
  11622. public getAllUsers(requestParameters: UserApiGetAllUsersRequest, options?: AxiosRequestConfig) {
  11623. return UserApiFp(this.configuration).getAllUsers(requestParameters.isAll, options).then((request) => request(this.axios, this.basePath));
  11624. }
  11625. /**
  11626. *
  11627. * @param {*} [options] Override http request option.
  11628. * @throws {RequiredError}
  11629. * @memberof UserApi
  11630. */
  11631. public getMyUserInfo(options?: AxiosRequestConfig) {
  11632. return UserApiFp(this.configuration).getMyUserInfo(options).then((request) => request(this.axios, this.basePath));
  11633. }
  11634. /**
  11635. *
  11636. * @param {UserApiGetProfileImageRequest} requestParameters Request parameters.
  11637. * @param {*} [options] Override http request option.
  11638. * @throws {RequiredError}
  11639. * @memberof UserApi
  11640. */
  11641. public getProfileImage(requestParameters: UserApiGetProfileImageRequest, options?: AxiosRequestConfig) {
  11642. return UserApiFp(this.configuration).getProfileImage(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  11643. }
  11644. /**
  11645. *
  11646. * @param {UserApiGetUserByIdRequest} requestParameters Request parameters.
  11647. * @param {*} [options] Override http request option.
  11648. * @throws {RequiredError}
  11649. * @memberof UserApi
  11650. */
  11651. public getUserById(requestParameters: UserApiGetUserByIdRequest, options?: AxiosRequestConfig) {
  11652. return UserApiFp(this.configuration).getUserById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  11653. }
  11654. /**
  11655. *
  11656. * @param {UserApiGetUserCountRequest} requestParameters Request parameters.
  11657. * @param {*} [options] Override http request option.
  11658. * @throws {RequiredError}
  11659. * @memberof UserApi
  11660. */
  11661. public getUserCount(requestParameters: UserApiGetUserCountRequest = {}, options?: AxiosRequestConfig) {
  11662. return UserApiFp(this.configuration).getUserCount(requestParameters.admin, options).then((request) => request(this.axios, this.basePath));
  11663. }
  11664. /**
  11665. *
  11666. * @param {UserApiRestoreUserRequest} requestParameters Request parameters.
  11667. * @param {*} [options] Override http request option.
  11668. * @throws {RequiredError}
  11669. * @memberof UserApi
  11670. */
  11671. public restoreUser(requestParameters: UserApiRestoreUserRequest, options?: AxiosRequestConfig) {
  11672. return UserApiFp(this.configuration).restoreUser(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  11673. }
  11674. /**
  11675. *
  11676. * @param {UserApiUpdateUserRequest} requestParameters Request parameters.
  11677. * @param {*} [options] Override http request option.
  11678. * @throws {RequiredError}
  11679. * @memberof UserApi
  11680. */
  11681. public updateUser(requestParameters: UserApiUpdateUserRequest, options?: AxiosRequestConfig) {
  11682. return UserApiFp(this.configuration).updateUser(requestParameters.updateUserDto, options).then((request) => request(this.axios, this.basePath));
  11683. }
  11684. }