api.ts 349 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693
  1. /* tslint:disable */
  2. /* eslint-disable */
  3. /**
  4. * Immich
  5. * Immich API
  6. *
  7. * The version of the OpenAPI document: 1.55.1
  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 {string}
  45. * @memberof APIKeyCreateResponseDto
  46. */
  47. 'secret': string;
  48. /**
  49. *
  50. * @type {APIKeyResponseDto}
  51. * @memberof APIKeyCreateResponseDto
  52. */
  53. 'apiKey': APIKeyResponseDto;
  54. }
  55. /**
  56. *
  57. * @export
  58. * @interface APIKeyResponseDto
  59. */
  60. export interface APIKeyResponseDto {
  61. /**
  62. *
  63. * @type {string}
  64. * @memberof APIKeyResponseDto
  65. */
  66. 'id': string;
  67. /**
  68. *
  69. * @type {string}
  70. * @memberof APIKeyResponseDto
  71. */
  72. 'name': string;
  73. /**
  74. *
  75. * @type {string}
  76. * @memberof APIKeyResponseDto
  77. */
  78. 'createdAt': 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 AddAssetsDto
  103. */
  104. export interface AddAssetsDto {
  105. /**
  106. *
  107. * @type {Array<string>}
  108. * @memberof AddAssetsDto
  109. */
  110. 'assetIds': Array<string>;
  111. }
  112. /**
  113. *
  114. * @export
  115. * @interface AddAssetsResponseDto
  116. */
  117. export interface AddAssetsResponseDto {
  118. /**
  119. *
  120. * @type {number}
  121. * @memberof AddAssetsResponseDto
  122. */
  123. 'successfullyAdded': number;
  124. /**
  125. *
  126. * @type {Array<string>}
  127. * @memberof AddAssetsResponseDto
  128. */
  129. 'alreadyInAlbum': Array<string>;
  130. /**
  131. *
  132. * @type {AlbumResponseDto}
  133. * @memberof AddAssetsResponseDto
  134. */
  135. 'album'?: AlbumResponseDto;
  136. }
  137. /**
  138. *
  139. * @export
  140. * @interface AddUsersDto
  141. */
  142. export interface AddUsersDto {
  143. /**
  144. *
  145. * @type {Array<string>}
  146. * @memberof AddUsersDto
  147. */
  148. 'sharedUserIds': Array<string>;
  149. }
  150. /**
  151. *
  152. * @export
  153. * @interface AdminSignupResponseDto
  154. */
  155. export interface AdminSignupResponseDto {
  156. /**
  157. *
  158. * @type {string}
  159. * @memberof AdminSignupResponseDto
  160. */
  161. 'id': string;
  162. /**
  163. *
  164. * @type {string}
  165. * @memberof AdminSignupResponseDto
  166. */
  167. 'email': string;
  168. /**
  169. *
  170. * @type {string}
  171. * @memberof AdminSignupResponseDto
  172. */
  173. 'firstName': string;
  174. /**
  175. *
  176. * @type {string}
  177. * @memberof AdminSignupResponseDto
  178. */
  179. 'lastName': string;
  180. /**
  181. *
  182. * @type {string}
  183. * @memberof AdminSignupResponseDto
  184. */
  185. 'createdAt': string;
  186. }
  187. /**
  188. *
  189. * @export
  190. * @interface AlbumCountResponseDto
  191. */
  192. export interface AlbumCountResponseDto {
  193. /**
  194. *
  195. * @type {number}
  196. * @memberof AlbumCountResponseDto
  197. */
  198. 'owned': number;
  199. /**
  200. *
  201. * @type {number}
  202. * @memberof AlbumCountResponseDto
  203. */
  204. 'shared': number;
  205. /**
  206. *
  207. * @type {number}
  208. * @memberof AlbumCountResponseDto
  209. */
  210. 'sharing': number;
  211. }
  212. /**
  213. *
  214. * @export
  215. * @interface AlbumResponseDto
  216. */
  217. export interface AlbumResponseDto {
  218. /**
  219. *
  220. * @type {number}
  221. * @memberof AlbumResponseDto
  222. */
  223. 'assetCount': number;
  224. /**
  225. *
  226. * @type {string}
  227. * @memberof AlbumResponseDto
  228. */
  229. 'id': string;
  230. /**
  231. *
  232. * @type {string}
  233. * @memberof AlbumResponseDto
  234. */
  235. 'ownerId': string;
  236. /**
  237. *
  238. * @type {string}
  239. * @memberof AlbumResponseDto
  240. */
  241. 'albumName': string;
  242. /**
  243. *
  244. * @type {string}
  245. * @memberof AlbumResponseDto
  246. */
  247. 'createdAt': string;
  248. /**
  249. *
  250. * @type {string}
  251. * @memberof AlbumResponseDto
  252. */
  253. 'updatedAt': string;
  254. /**
  255. *
  256. * @type {string}
  257. * @memberof AlbumResponseDto
  258. */
  259. 'albumThumbnailAssetId': string | null;
  260. /**
  261. *
  262. * @type {boolean}
  263. * @memberof AlbumResponseDto
  264. */
  265. 'shared': boolean;
  266. /**
  267. *
  268. * @type {Array<UserResponseDto>}
  269. * @memberof AlbumResponseDto
  270. */
  271. 'sharedUsers': Array<UserResponseDto>;
  272. /**
  273. *
  274. * @type {Array<AssetResponseDto>}
  275. * @memberof AlbumResponseDto
  276. */
  277. 'assets': Array<AssetResponseDto>;
  278. /**
  279. *
  280. * @type {UserResponseDto}
  281. * @memberof AlbumResponseDto
  282. */
  283. 'owner': UserResponseDto;
  284. }
  285. /**
  286. *
  287. * @export
  288. * @interface AllJobStatusResponseDto
  289. */
  290. export interface AllJobStatusResponseDto {
  291. /**
  292. *
  293. * @type {JobStatusDto}
  294. * @memberof AllJobStatusResponseDto
  295. */
  296. 'thumbnail-generation-queue': JobStatusDto;
  297. /**
  298. *
  299. * @type {JobStatusDto}
  300. * @memberof AllJobStatusResponseDto
  301. */
  302. 'metadata-extraction-queue': JobStatusDto;
  303. /**
  304. *
  305. * @type {JobStatusDto}
  306. * @memberof AllJobStatusResponseDto
  307. */
  308. 'video-conversion-queue': JobStatusDto;
  309. /**
  310. *
  311. * @type {JobStatusDto}
  312. * @memberof AllJobStatusResponseDto
  313. */
  314. 'object-tagging-queue': JobStatusDto;
  315. /**
  316. *
  317. * @type {JobStatusDto}
  318. * @memberof AllJobStatusResponseDto
  319. */
  320. 'clip-encoding-queue': JobStatusDto;
  321. /**
  322. *
  323. * @type {JobStatusDto}
  324. * @memberof AllJobStatusResponseDto
  325. */
  326. 'storage-template-migration-queue': JobStatusDto;
  327. /**
  328. *
  329. * @type {JobStatusDto}
  330. * @memberof AllJobStatusResponseDto
  331. */
  332. 'background-task-queue': JobStatusDto;
  333. /**
  334. *
  335. * @type {JobStatusDto}
  336. * @memberof AllJobStatusResponseDto
  337. */
  338. 'search-queue': JobStatusDto;
  339. }
  340. /**
  341. *
  342. * @export
  343. * @interface AssetCountByTimeBucket
  344. */
  345. export interface AssetCountByTimeBucket {
  346. /**
  347. *
  348. * @type {string}
  349. * @memberof AssetCountByTimeBucket
  350. */
  351. 'timeBucket': string;
  352. /**
  353. *
  354. * @type {number}
  355. * @memberof AssetCountByTimeBucket
  356. */
  357. 'count': number;
  358. }
  359. /**
  360. *
  361. * @export
  362. * @interface AssetCountByTimeBucketResponseDto
  363. */
  364. export interface AssetCountByTimeBucketResponseDto {
  365. /**
  366. *
  367. * @type {number}
  368. * @memberof AssetCountByTimeBucketResponseDto
  369. */
  370. 'totalCount': number;
  371. /**
  372. *
  373. * @type {Array<AssetCountByTimeBucket>}
  374. * @memberof AssetCountByTimeBucketResponseDto
  375. */
  376. 'buckets': Array<AssetCountByTimeBucket>;
  377. }
  378. /**
  379. *
  380. * @export
  381. * @interface AssetCountByUserIdResponseDto
  382. */
  383. export interface AssetCountByUserIdResponseDto {
  384. /**
  385. *
  386. * @type {number}
  387. * @memberof AssetCountByUserIdResponseDto
  388. */
  389. 'audio': number;
  390. /**
  391. *
  392. * @type {number}
  393. * @memberof AssetCountByUserIdResponseDto
  394. */
  395. 'photos': number;
  396. /**
  397. *
  398. * @type {number}
  399. * @memberof AssetCountByUserIdResponseDto
  400. */
  401. 'videos': number;
  402. /**
  403. *
  404. * @type {number}
  405. * @memberof AssetCountByUserIdResponseDto
  406. */
  407. 'other': number;
  408. /**
  409. *
  410. * @type {number}
  411. * @memberof AssetCountByUserIdResponseDto
  412. */
  413. 'total': number;
  414. }
  415. /**
  416. *
  417. * @export
  418. * @interface AssetFileUploadResponseDto
  419. */
  420. export interface AssetFileUploadResponseDto {
  421. /**
  422. *
  423. * @type {string}
  424. * @memberof AssetFileUploadResponseDto
  425. */
  426. 'id': string;
  427. /**
  428. *
  429. * @type {boolean}
  430. * @memberof AssetFileUploadResponseDto
  431. */
  432. 'duplicate': boolean;
  433. }
  434. /**
  435. *
  436. * @export
  437. * @interface AssetResponseDto
  438. */
  439. export interface AssetResponseDto {
  440. /**
  441. *
  442. * @type {AssetTypeEnum}
  443. * @memberof AssetResponseDto
  444. */
  445. 'type': AssetTypeEnum;
  446. /**
  447. *
  448. * @type {string}
  449. * @memberof AssetResponseDto
  450. */
  451. 'id': string;
  452. /**
  453. *
  454. * @type {string}
  455. * @memberof AssetResponseDto
  456. */
  457. 'deviceAssetId': string;
  458. /**
  459. *
  460. * @type {string}
  461. * @memberof AssetResponseDto
  462. */
  463. 'ownerId': string;
  464. /**
  465. *
  466. * @type {string}
  467. * @memberof AssetResponseDto
  468. */
  469. 'deviceId': string;
  470. /**
  471. *
  472. * @type {string}
  473. * @memberof AssetResponseDto
  474. */
  475. 'originalPath': string;
  476. /**
  477. *
  478. * @type {string}
  479. * @memberof AssetResponseDto
  480. */
  481. 'originalFileName': string;
  482. /**
  483. *
  484. * @type {string}
  485. * @memberof AssetResponseDto
  486. */
  487. 'resizePath': string | null;
  488. /**
  489. *
  490. * @type {string}
  491. * @memberof AssetResponseDto
  492. */
  493. 'fileCreatedAt': string;
  494. /**
  495. *
  496. * @type {string}
  497. * @memberof AssetResponseDto
  498. */
  499. 'fileModifiedAt': string;
  500. /**
  501. *
  502. * @type {string}
  503. * @memberof AssetResponseDto
  504. */
  505. 'updatedAt': string;
  506. /**
  507. *
  508. * @type {boolean}
  509. * @memberof AssetResponseDto
  510. */
  511. 'isFavorite': boolean;
  512. /**
  513. *
  514. * @type {boolean}
  515. * @memberof AssetResponseDto
  516. */
  517. 'isArchived': boolean;
  518. /**
  519. *
  520. * @type {string}
  521. * @memberof AssetResponseDto
  522. */
  523. 'mimeType': string | null;
  524. /**
  525. *
  526. * @type {string}
  527. * @memberof AssetResponseDto
  528. */
  529. 'duration': string;
  530. /**
  531. *
  532. * @type {string}
  533. * @memberof AssetResponseDto
  534. */
  535. 'webpPath': string | null;
  536. /**
  537. *
  538. * @type {string}
  539. * @memberof AssetResponseDto
  540. */
  541. 'encodedVideoPath'?: string | null;
  542. /**
  543. *
  544. * @type {ExifResponseDto}
  545. * @memberof AssetResponseDto
  546. */
  547. 'exifInfo'?: ExifResponseDto;
  548. /**
  549. *
  550. * @type {SmartInfoResponseDto}
  551. * @memberof AssetResponseDto
  552. */
  553. 'smartInfo'?: SmartInfoResponseDto;
  554. /**
  555. *
  556. * @type {string}
  557. * @memberof AssetResponseDto
  558. */
  559. 'livePhotoVideoId'?: string | null;
  560. /**
  561. *
  562. * @type {Array<TagResponseDto>}
  563. * @memberof AssetResponseDto
  564. */
  565. 'tags'?: Array<TagResponseDto>;
  566. }
  567. /**
  568. *
  569. * @export
  570. * @enum {string}
  571. */
  572. export const AssetTypeEnum = {
  573. Image: 'IMAGE',
  574. Video: 'VIDEO',
  575. Audio: 'AUDIO',
  576. Other: 'OTHER'
  577. } as const;
  578. export type AssetTypeEnum = typeof AssetTypeEnum[keyof typeof AssetTypeEnum];
  579. /**
  580. *
  581. * @export
  582. * @interface AuthDeviceResponseDto
  583. */
  584. export interface AuthDeviceResponseDto {
  585. /**
  586. *
  587. * @type {string}
  588. * @memberof AuthDeviceResponseDto
  589. */
  590. 'id': string;
  591. /**
  592. *
  593. * @type {string}
  594. * @memberof AuthDeviceResponseDto
  595. */
  596. 'createdAt': string;
  597. /**
  598. *
  599. * @type {string}
  600. * @memberof AuthDeviceResponseDto
  601. */
  602. 'updatedAt': string;
  603. /**
  604. *
  605. * @type {boolean}
  606. * @memberof AuthDeviceResponseDto
  607. */
  608. 'current': boolean;
  609. /**
  610. *
  611. * @type {string}
  612. * @memberof AuthDeviceResponseDto
  613. */
  614. 'deviceType': string;
  615. /**
  616. *
  617. * @type {string}
  618. * @memberof AuthDeviceResponseDto
  619. */
  620. 'deviceOS': string;
  621. }
  622. /**
  623. *
  624. * @export
  625. * @interface ChangePasswordDto
  626. */
  627. export interface ChangePasswordDto {
  628. /**
  629. *
  630. * @type {string}
  631. * @memberof ChangePasswordDto
  632. */
  633. 'password': string;
  634. /**
  635. *
  636. * @type {string}
  637. * @memberof ChangePasswordDto
  638. */
  639. 'newPassword': string;
  640. }
  641. /**
  642. *
  643. * @export
  644. * @interface CheckDuplicateAssetDto
  645. */
  646. export interface CheckDuplicateAssetDto {
  647. /**
  648. *
  649. * @type {string}
  650. * @memberof CheckDuplicateAssetDto
  651. */
  652. 'deviceAssetId': string;
  653. /**
  654. *
  655. * @type {string}
  656. * @memberof CheckDuplicateAssetDto
  657. */
  658. 'deviceId': string;
  659. }
  660. /**
  661. *
  662. * @export
  663. * @interface CheckDuplicateAssetResponseDto
  664. */
  665. export interface CheckDuplicateAssetResponseDto {
  666. /**
  667. *
  668. * @type {boolean}
  669. * @memberof CheckDuplicateAssetResponseDto
  670. */
  671. 'isExist': boolean;
  672. /**
  673. *
  674. * @type {string}
  675. * @memberof CheckDuplicateAssetResponseDto
  676. */
  677. 'id'?: string;
  678. }
  679. /**
  680. *
  681. * @export
  682. * @interface CheckExistingAssetsDto
  683. */
  684. export interface CheckExistingAssetsDto {
  685. /**
  686. *
  687. * @type {Array<string>}
  688. * @memberof CheckExistingAssetsDto
  689. */
  690. 'deviceAssetIds': Array<string>;
  691. /**
  692. *
  693. * @type {string}
  694. * @memberof CheckExistingAssetsDto
  695. */
  696. 'deviceId': string;
  697. }
  698. /**
  699. *
  700. * @export
  701. * @interface CheckExistingAssetsResponseDto
  702. */
  703. export interface CheckExistingAssetsResponseDto {
  704. /**
  705. *
  706. * @type {Array<string>}
  707. * @memberof CheckExistingAssetsResponseDto
  708. */
  709. 'existingIds': Array<string>;
  710. }
  711. /**
  712. *
  713. * @export
  714. * @interface CreateAlbumDto
  715. */
  716. export interface CreateAlbumDto {
  717. /**
  718. *
  719. * @type {string}
  720. * @memberof CreateAlbumDto
  721. */
  722. 'albumName': string;
  723. /**
  724. *
  725. * @type {Array<string>}
  726. * @memberof CreateAlbumDto
  727. */
  728. 'sharedWithUserIds'?: Array<string>;
  729. /**
  730. *
  731. * @type {Array<string>}
  732. * @memberof CreateAlbumDto
  733. */
  734. 'assetIds'?: Array<string>;
  735. }
  736. /**
  737. *
  738. * @export
  739. * @interface CreateAlbumShareLinkDto
  740. */
  741. export interface CreateAlbumShareLinkDto {
  742. /**
  743. *
  744. * @type {string}
  745. * @memberof CreateAlbumShareLinkDto
  746. */
  747. 'albumId': string;
  748. /**
  749. *
  750. * @type {string}
  751. * @memberof CreateAlbumShareLinkDto
  752. */
  753. 'expiresAt'?: string;
  754. /**
  755. *
  756. * @type {boolean}
  757. * @memberof CreateAlbumShareLinkDto
  758. */
  759. 'allowUpload'?: boolean;
  760. /**
  761. *
  762. * @type {boolean}
  763. * @memberof CreateAlbumShareLinkDto
  764. */
  765. 'allowDownload'?: boolean;
  766. /**
  767. *
  768. * @type {boolean}
  769. * @memberof CreateAlbumShareLinkDto
  770. */
  771. 'showExif'?: boolean;
  772. /**
  773. *
  774. * @type {string}
  775. * @memberof CreateAlbumShareLinkDto
  776. */
  777. 'description'?: string;
  778. }
  779. /**
  780. *
  781. * @export
  782. * @interface CreateAssetsShareLinkDto
  783. */
  784. export interface CreateAssetsShareLinkDto {
  785. /**
  786. *
  787. * @type {Array<string>}
  788. * @memberof CreateAssetsShareLinkDto
  789. */
  790. 'assetIds': Array<string>;
  791. /**
  792. *
  793. * @type {string}
  794. * @memberof CreateAssetsShareLinkDto
  795. */
  796. 'expiresAt'?: string;
  797. /**
  798. *
  799. * @type {boolean}
  800. * @memberof CreateAssetsShareLinkDto
  801. */
  802. 'allowUpload'?: boolean;
  803. /**
  804. *
  805. * @type {boolean}
  806. * @memberof CreateAssetsShareLinkDto
  807. */
  808. 'allowDownload'?: boolean;
  809. /**
  810. *
  811. * @type {boolean}
  812. * @memberof CreateAssetsShareLinkDto
  813. */
  814. 'showExif'?: boolean;
  815. /**
  816. *
  817. * @type {string}
  818. * @memberof CreateAssetsShareLinkDto
  819. */
  820. 'description'?: string;
  821. }
  822. /**
  823. *
  824. * @export
  825. * @interface CreateProfileImageResponseDto
  826. */
  827. export interface CreateProfileImageResponseDto {
  828. /**
  829. *
  830. * @type {string}
  831. * @memberof CreateProfileImageResponseDto
  832. */
  833. 'userId': string;
  834. /**
  835. *
  836. * @type {string}
  837. * @memberof CreateProfileImageResponseDto
  838. */
  839. 'profileImagePath': string;
  840. }
  841. /**
  842. *
  843. * @export
  844. * @interface CreateTagDto
  845. */
  846. export interface CreateTagDto {
  847. /**
  848. *
  849. * @type {TagTypeEnum}
  850. * @memberof CreateTagDto
  851. */
  852. 'type': TagTypeEnum;
  853. /**
  854. *
  855. * @type {string}
  856. * @memberof CreateTagDto
  857. */
  858. 'name': string;
  859. }
  860. /**
  861. *
  862. * @export
  863. * @interface CreateUserDto
  864. */
  865. export interface CreateUserDto {
  866. /**
  867. *
  868. * @type {string}
  869. * @memberof CreateUserDto
  870. */
  871. 'email': string;
  872. /**
  873. *
  874. * @type {string}
  875. * @memberof CreateUserDto
  876. */
  877. 'password': string;
  878. /**
  879. *
  880. * @type {string}
  881. * @memberof CreateUserDto
  882. */
  883. 'firstName': string;
  884. /**
  885. *
  886. * @type {string}
  887. * @memberof CreateUserDto
  888. */
  889. 'lastName': string;
  890. }
  891. /**
  892. *
  893. * @export
  894. * @interface CuratedLocationsResponseDto
  895. */
  896. export interface CuratedLocationsResponseDto {
  897. /**
  898. *
  899. * @type {string}
  900. * @memberof CuratedLocationsResponseDto
  901. */
  902. 'id': string;
  903. /**
  904. *
  905. * @type {string}
  906. * @memberof CuratedLocationsResponseDto
  907. */
  908. 'city': string;
  909. /**
  910. *
  911. * @type {string}
  912. * @memberof CuratedLocationsResponseDto
  913. */
  914. 'resizePath': string;
  915. /**
  916. *
  917. * @type {string}
  918. * @memberof CuratedLocationsResponseDto
  919. */
  920. 'deviceAssetId': string;
  921. /**
  922. *
  923. * @type {string}
  924. * @memberof CuratedLocationsResponseDto
  925. */
  926. 'deviceId': string;
  927. }
  928. /**
  929. *
  930. * @export
  931. * @interface CuratedObjectsResponseDto
  932. */
  933. export interface CuratedObjectsResponseDto {
  934. /**
  935. *
  936. * @type {string}
  937. * @memberof CuratedObjectsResponseDto
  938. */
  939. 'id': string;
  940. /**
  941. *
  942. * @type {string}
  943. * @memberof CuratedObjectsResponseDto
  944. */
  945. 'object': string;
  946. /**
  947. *
  948. * @type {string}
  949. * @memberof CuratedObjectsResponseDto
  950. */
  951. 'resizePath': string;
  952. /**
  953. *
  954. * @type {string}
  955. * @memberof CuratedObjectsResponseDto
  956. */
  957. 'deviceAssetId': string;
  958. /**
  959. *
  960. * @type {string}
  961. * @memberof CuratedObjectsResponseDto
  962. */
  963. 'deviceId': string;
  964. }
  965. /**
  966. *
  967. * @export
  968. * @interface DeleteAssetDto
  969. */
  970. export interface DeleteAssetDto {
  971. /**
  972. *
  973. * @type {Array<string>}
  974. * @memberof DeleteAssetDto
  975. */
  976. 'ids': Array<string>;
  977. }
  978. /**
  979. *
  980. * @export
  981. * @interface DeleteAssetResponseDto
  982. */
  983. export interface DeleteAssetResponseDto {
  984. /**
  985. *
  986. * @type {DeleteAssetStatus}
  987. * @memberof DeleteAssetResponseDto
  988. */
  989. 'status': DeleteAssetStatus;
  990. /**
  991. *
  992. * @type {string}
  993. * @memberof DeleteAssetResponseDto
  994. */
  995. 'id': string;
  996. }
  997. /**
  998. *
  999. * @export
  1000. * @enum {string}
  1001. */
  1002. export const DeleteAssetStatus = {
  1003. Success: 'SUCCESS',
  1004. Failed: 'FAILED'
  1005. } as const;
  1006. export type DeleteAssetStatus = typeof DeleteAssetStatus[keyof typeof DeleteAssetStatus];
  1007. /**
  1008. *
  1009. * @export
  1010. * @interface DownloadFilesDto
  1011. */
  1012. export interface DownloadFilesDto {
  1013. /**
  1014. *
  1015. * @type {Array<string>}
  1016. * @memberof DownloadFilesDto
  1017. */
  1018. 'assetIds': Array<string>;
  1019. }
  1020. /**
  1021. *
  1022. * @export
  1023. * @interface EditSharedLinkDto
  1024. */
  1025. export interface EditSharedLinkDto {
  1026. /**
  1027. *
  1028. * @type {string}
  1029. * @memberof EditSharedLinkDto
  1030. */
  1031. 'description'?: string;
  1032. /**
  1033. *
  1034. * @type {string}
  1035. * @memberof EditSharedLinkDto
  1036. */
  1037. 'expiresAt'?: string | null;
  1038. /**
  1039. *
  1040. * @type {boolean}
  1041. * @memberof EditSharedLinkDto
  1042. */
  1043. 'allowUpload'?: boolean;
  1044. /**
  1045. *
  1046. * @type {boolean}
  1047. * @memberof EditSharedLinkDto
  1048. */
  1049. 'allowDownload'?: boolean;
  1050. /**
  1051. *
  1052. * @type {boolean}
  1053. * @memberof EditSharedLinkDto
  1054. */
  1055. 'showExif'?: boolean;
  1056. }
  1057. /**
  1058. *
  1059. * @export
  1060. * @interface ExifResponseDto
  1061. */
  1062. export interface ExifResponseDto {
  1063. /**
  1064. *
  1065. * @type {number}
  1066. * @memberof ExifResponseDto
  1067. */
  1068. 'fileSizeInByte'?: number | null;
  1069. /**
  1070. *
  1071. * @type {string}
  1072. * @memberof ExifResponseDto
  1073. */
  1074. 'make'?: string | null;
  1075. /**
  1076. *
  1077. * @type {string}
  1078. * @memberof ExifResponseDto
  1079. */
  1080. 'model'?: string | null;
  1081. /**
  1082. *
  1083. * @type {number}
  1084. * @memberof ExifResponseDto
  1085. */
  1086. 'exifImageWidth'?: number | null;
  1087. /**
  1088. *
  1089. * @type {number}
  1090. * @memberof ExifResponseDto
  1091. */
  1092. 'exifImageHeight'?: number | null;
  1093. /**
  1094. *
  1095. * @type {string}
  1096. * @memberof ExifResponseDto
  1097. */
  1098. 'orientation'?: string | null;
  1099. /**
  1100. *
  1101. * @type {string}
  1102. * @memberof ExifResponseDto
  1103. */
  1104. 'dateTimeOriginal'?: string | null;
  1105. /**
  1106. *
  1107. * @type {string}
  1108. * @memberof ExifResponseDto
  1109. */
  1110. 'modifyDate'?: string | null;
  1111. /**
  1112. *
  1113. * @type {string}
  1114. * @memberof ExifResponseDto
  1115. */
  1116. 'timeZone'?: string | null;
  1117. /**
  1118. *
  1119. * @type {string}
  1120. * @memberof ExifResponseDto
  1121. */
  1122. 'lensModel'?: string | null;
  1123. /**
  1124. *
  1125. * @type {number}
  1126. * @memberof ExifResponseDto
  1127. */
  1128. 'fNumber'?: number | null;
  1129. /**
  1130. *
  1131. * @type {number}
  1132. * @memberof ExifResponseDto
  1133. */
  1134. 'focalLength'?: number | null;
  1135. /**
  1136. *
  1137. * @type {number}
  1138. * @memberof ExifResponseDto
  1139. */
  1140. 'iso'?: number | null;
  1141. /**
  1142. *
  1143. * @type {string}
  1144. * @memberof ExifResponseDto
  1145. */
  1146. 'exposureTime'?: string | null;
  1147. /**
  1148. *
  1149. * @type {number}
  1150. * @memberof ExifResponseDto
  1151. */
  1152. 'latitude'?: number | null;
  1153. /**
  1154. *
  1155. * @type {number}
  1156. * @memberof ExifResponseDto
  1157. */
  1158. 'longitude'?: number | null;
  1159. /**
  1160. *
  1161. * @type {string}
  1162. * @memberof ExifResponseDto
  1163. */
  1164. 'city'?: string | null;
  1165. /**
  1166. *
  1167. * @type {string}
  1168. * @memberof ExifResponseDto
  1169. */
  1170. 'state'?: string | null;
  1171. /**
  1172. *
  1173. * @type {string}
  1174. * @memberof ExifResponseDto
  1175. */
  1176. 'country'?: string | null;
  1177. /**
  1178. *
  1179. * @type {string}
  1180. * @memberof ExifResponseDto
  1181. */
  1182. 'description'?: string | null;
  1183. }
  1184. /**
  1185. *
  1186. * @export
  1187. * @interface GetAssetByTimeBucketDto
  1188. */
  1189. export interface GetAssetByTimeBucketDto {
  1190. /**
  1191. *
  1192. * @type {Array<string>}
  1193. * @memberof GetAssetByTimeBucketDto
  1194. */
  1195. 'timeBucket': Array<string>;
  1196. }
  1197. /**
  1198. *
  1199. * @export
  1200. * @interface GetAssetCountByTimeBucketDto
  1201. */
  1202. export interface GetAssetCountByTimeBucketDto {
  1203. /**
  1204. *
  1205. * @type {TimeGroupEnum}
  1206. * @memberof GetAssetCountByTimeBucketDto
  1207. */
  1208. 'timeGroup': TimeGroupEnum;
  1209. }
  1210. /**
  1211. *
  1212. * @export
  1213. * @enum {string}
  1214. */
  1215. export const JobCommand = {
  1216. Start: 'start',
  1217. Pause: 'pause',
  1218. Resume: 'resume',
  1219. Empty: 'empty'
  1220. } as const;
  1221. export type JobCommand = typeof JobCommand[keyof typeof JobCommand];
  1222. /**
  1223. *
  1224. * @export
  1225. * @interface JobCommandDto
  1226. */
  1227. export interface JobCommandDto {
  1228. /**
  1229. *
  1230. * @type {JobCommand}
  1231. * @memberof JobCommandDto
  1232. */
  1233. 'command': JobCommand;
  1234. /**
  1235. *
  1236. * @type {boolean}
  1237. * @memberof JobCommandDto
  1238. */
  1239. 'force': boolean;
  1240. }
  1241. /**
  1242. *
  1243. * @export
  1244. * @interface JobCountsDto
  1245. */
  1246. export interface JobCountsDto {
  1247. /**
  1248. *
  1249. * @type {number}
  1250. * @memberof JobCountsDto
  1251. */
  1252. 'active': number;
  1253. /**
  1254. *
  1255. * @type {number}
  1256. * @memberof JobCountsDto
  1257. */
  1258. 'completed': number;
  1259. /**
  1260. *
  1261. * @type {number}
  1262. * @memberof JobCountsDto
  1263. */
  1264. 'failed': number;
  1265. /**
  1266. *
  1267. * @type {number}
  1268. * @memberof JobCountsDto
  1269. */
  1270. 'delayed': number;
  1271. /**
  1272. *
  1273. * @type {number}
  1274. * @memberof JobCountsDto
  1275. */
  1276. 'waiting': number;
  1277. /**
  1278. *
  1279. * @type {number}
  1280. * @memberof JobCountsDto
  1281. */
  1282. 'paused': number;
  1283. }
  1284. /**
  1285. *
  1286. * @export
  1287. * @enum {string}
  1288. */
  1289. export const JobName = {
  1290. ThumbnailGenerationQueue: 'thumbnail-generation-queue',
  1291. MetadataExtractionQueue: 'metadata-extraction-queue',
  1292. VideoConversionQueue: 'video-conversion-queue',
  1293. ObjectTaggingQueue: 'object-tagging-queue',
  1294. ClipEncodingQueue: 'clip-encoding-queue',
  1295. BackgroundTaskQueue: 'background-task-queue',
  1296. StorageTemplateMigrationQueue: 'storage-template-migration-queue',
  1297. SearchQueue: 'search-queue'
  1298. } as const;
  1299. export type JobName = typeof JobName[keyof typeof JobName];
  1300. /**
  1301. *
  1302. * @export
  1303. * @interface JobStatusDto
  1304. */
  1305. export interface JobStatusDto {
  1306. /**
  1307. *
  1308. * @type {JobCountsDto}
  1309. * @memberof JobStatusDto
  1310. */
  1311. 'jobCounts': JobCountsDto;
  1312. /**
  1313. *
  1314. * @type {QueueStatusDto}
  1315. * @memberof JobStatusDto
  1316. */
  1317. 'queueStatus': QueueStatusDto;
  1318. }
  1319. /**
  1320. *
  1321. * @export
  1322. * @interface LoginCredentialDto
  1323. */
  1324. export interface LoginCredentialDto {
  1325. /**
  1326. *
  1327. * @type {string}
  1328. * @memberof LoginCredentialDto
  1329. */
  1330. 'email': string;
  1331. /**
  1332. *
  1333. * @type {string}
  1334. * @memberof LoginCredentialDto
  1335. */
  1336. 'password': string;
  1337. }
  1338. /**
  1339. *
  1340. * @export
  1341. * @interface LoginResponseDto
  1342. */
  1343. export interface LoginResponseDto {
  1344. /**
  1345. *
  1346. * @type {string}
  1347. * @memberof LoginResponseDto
  1348. */
  1349. 'accessToken': string;
  1350. /**
  1351. *
  1352. * @type {string}
  1353. * @memberof LoginResponseDto
  1354. */
  1355. 'userId': string;
  1356. /**
  1357. *
  1358. * @type {string}
  1359. * @memberof LoginResponseDto
  1360. */
  1361. 'userEmail': string;
  1362. /**
  1363. *
  1364. * @type {string}
  1365. * @memberof LoginResponseDto
  1366. */
  1367. 'firstName': string;
  1368. /**
  1369. *
  1370. * @type {string}
  1371. * @memberof LoginResponseDto
  1372. */
  1373. 'lastName': string;
  1374. /**
  1375. *
  1376. * @type {string}
  1377. * @memberof LoginResponseDto
  1378. */
  1379. 'profileImagePath': string;
  1380. /**
  1381. *
  1382. * @type {boolean}
  1383. * @memberof LoginResponseDto
  1384. */
  1385. 'isAdmin': boolean;
  1386. /**
  1387. *
  1388. * @type {boolean}
  1389. * @memberof LoginResponseDto
  1390. */
  1391. 'shouldChangePassword': boolean;
  1392. }
  1393. /**
  1394. *
  1395. * @export
  1396. * @interface LogoutResponseDto
  1397. */
  1398. export interface LogoutResponseDto {
  1399. /**
  1400. *
  1401. * @type {boolean}
  1402. * @memberof LogoutResponseDto
  1403. */
  1404. 'successful': boolean;
  1405. /**
  1406. *
  1407. * @type {string}
  1408. * @memberof LogoutResponseDto
  1409. */
  1410. 'redirectUri': string;
  1411. }
  1412. /**
  1413. *
  1414. * @export
  1415. * @interface MapMarkerResponseDto
  1416. */
  1417. export interface MapMarkerResponseDto {
  1418. /**
  1419. *
  1420. * @type {AssetTypeEnum}
  1421. * @memberof MapMarkerResponseDto
  1422. */
  1423. 'type': AssetTypeEnum;
  1424. /**
  1425. *
  1426. * @type {number}
  1427. * @memberof MapMarkerResponseDto
  1428. */
  1429. 'lat': number;
  1430. /**
  1431. *
  1432. * @type {number}
  1433. * @memberof MapMarkerResponseDto
  1434. */
  1435. 'lon': number;
  1436. /**
  1437. *
  1438. * @type {string}
  1439. * @memberof MapMarkerResponseDto
  1440. */
  1441. 'id': string;
  1442. }
  1443. /**
  1444. *
  1445. * @export
  1446. * @interface OAuthCallbackDto
  1447. */
  1448. export interface OAuthCallbackDto {
  1449. /**
  1450. *
  1451. * @type {string}
  1452. * @memberof OAuthCallbackDto
  1453. */
  1454. 'url': string;
  1455. }
  1456. /**
  1457. *
  1458. * @export
  1459. * @interface OAuthConfigDto
  1460. */
  1461. export interface OAuthConfigDto {
  1462. /**
  1463. *
  1464. * @type {string}
  1465. * @memberof OAuthConfigDto
  1466. */
  1467. 'redirectUri': string;
  1468. }
  1469. /**
  1470. *
  1471. * @export
  1472. * @interface OAuthConfigResponseDto
  1473. */
  1474. export interface OAuthConfigResponseDto {
  1475. /**
  1476. *
  1477. * @type {boolean}
  1478. * @memberof OAuthConfigResponseDto
  1479. */
  1480. 'enabled': boolean;
  1481. /**
  1482. *
  1483. * @type {boolean}
  1484. * @memberof OAuthConfigResponseDto
  1485. */
  1486. 'passwordLoginEnabled': boolean;
  1487. /**
  1488. *
  1489. * @type {string}
  1490. * @memberof OAuthConfigResponseDto
  1491. */
  1492. 'url'?: string;
  1493. /**
  1494. *
  1495. * @type {string}
  1496. * @memberof OAuthConfigResponseDto
  1497. */
  1498. 'buttonText'?: string;
  1499. /**
  1500. *
  1501. * @type {boolean}
  1502. * @memberof OAuthConfigResponseDto
  1503. */
  1504. 'autoLaunch'?: boolean;
  1505. }
  1506. /**
  1507. *
  1508. * @export
  1509. * @interface QueueStatusDto
  1510. */
  1511. export interface QueueStatusDto {
  1512. /**
  1513. *
  1514. * @type {boolean}
  1515. * @memberof QueueStatusDto
  1516. */
  1517. 'isActive': boolean;
  1518. /**
  1519. *
  1520. * @type {boolean}
  1521. * @memberof QueueStatusDto
  1522. */
  1523. 'isPaused': boolean;
  1524. }
  1525. /**
  1526. *
  1527. * @export
  1528. * @interface RemoveAssetsDto
  1529. */
  1530. export interface RemoveAssetsDto {
  1531. /**
  1532. *
  1533. * @type {Array<string>}
  1534. * @memberof RemoveAssetsDto
  1535. */
  1536. 'assetIds': Array<string>;
  1537. }
  1538. /**
  1539. *
  1540. * @export
  1541. * @interface SearchAlbumResponseDto
  1542. */
  1543. export interface SearchAlbumResponseDto {
  1544. /**
  1545. *
  1546. * @type {number}
  1547. * @memberof SearchAlbumResponseDto
  1548. */
  1549. 'total': number;
  1550. /**
  1551. *
  1552. * @type {number}
  1553. * @memberof SearchAlbumResponseDto
  1554. */
  1555. 'count': number;
  1556. /**
  1557. *
  1558. * @type {Array<AlbumResponseDto>}
  1559. * @memberof SearchAlbumResponseDto
  1560. */
  1561. 'items': Array<AlbumResponseDto>;
  1562. /**
  1563. *
  1564. * @type {Array<SearchFacetResponseDto>}
  1565. * @memberof SearchAlbumResponseDto
  1566. */
  1567. 'facets': Array<SearchFacetResponseDto>;
  1568. }
  1569. /**
  1570. *
  1571. * @export
  1572. * @interface SearchAssetDto
  1573. */
  1574. export interface SearchAssetDto {
  1575. /**
  1576. *
  1577. * @type {string}
  1578. * @memberof SearchAssetDto
  1579. */
  1580. 'searchTerm': string;
  1581. }
  1582. /**
  1583. *
  1584. * @export
  1585. * @interface SearchAssetResponseDto
  1586. */
  1587. export interface SearchAssetResponseDto {
  1588. /**
  1589. *
  1590. * @type {number}
  1591. * @memberof SearchAssetResponseDto
  1592. */
  1593. 'total': number;
  1594. /**
  1595. *
  1596. * @type {number}
  1597. * @memberof SearchAssetResponseDto
  1598. */
  1599. 'count': number;
  1600. /**
  1601. *
  1602. * @type {Array<AssetResponseDto>}
  1603. * @memberof SearchAssetResponseDto
  1604. */
  1605. 'items': Array<AssetResponseDto>;
  1606. /**
  1607. *
  1608. * @type {Array<SearchFacetResponseDto>}
  1609. * @memberof SearchAssetResponseDto
  1610. */
  1611. 'facets': Array<SearchFacetResponseDto>;
  1612. }
  1613. /**
  1614. *
  1615. * @export
  1616. * @interface SearchConfigResponseDto
  1617. */
  1618. export interface SearchConfigResponseDto {
  1619. /**
  1620. *
  1621. * @type {boolean}
  1622. * @memberof SearchConfigResponseDto
  1623. */
  1624. 'enabled': boolean;
  1625. }
  1626. /**
  1627. *
  1628. * @export
  1629. * @interface SearchExploreItem
  1630. */
  1631. export interface SearchExploreItem {
  1632. /**
  1633. *
  1634. * @type {string}
  1635. * @memberof SearchExploreItem
  1636. */
  1637. 'value': string;
  1638. /**
  1639. *
  1640. * @type {AssetResponseDto}
  1641. * @memberof SearchExploreItem
  1642. */
  1643. 'data': AssetResponseDto;
  1644. }
  1645. /**
  1646. *
  1647. * @export
  1648. * @interface SearchExploreResponseDto
  1649. */
  1650. export interface SearchExploreResponseDto {
  1651. /**
  1652. *
  1653. * @type {string}
  1654. * @memberof SearchExploreResponseDto
  1655. */
  1656. 'fieldName': string;
  1657. /**
  1658. *
  1659. * @type {Array<SearchExploreItem>}
  1660. * @memberof SearchExploreResponseDto
  1661. */
  1662. 'items': Array<SearchExploreItem>;
  1663. }
  1664. /**
  1665. *
  1666. * @export
  1667. * @interface SearchFacetCountResponseDto
  1668. */
  1669. export interface SearchFacetCountResponseDto {
  1670. /**
  1671. *
  1672. * @type {number}
  1673. * @memberof SearchFacetCountResponseDto
  1674. */
  1675. 'count': number;
  1676. /**
  1677. *
  1678. * @type {string}
  1679. * @memberof SearchFacetCountResponseDto
  1680. */
  1681. 'value': string;
  1682. }
  1683. /**
  1684. *
  1685. * @export
  1686. * @interface SearchFacetResponseDto
  1687. */
  1688. export interface SearchFacetResponseDto {
  1689. /**
  1690. *
  1691. * @type {string}
  1692. * @memberof SearchFacetResponseDto
  1693. */
  1694. 'fieldName': string;
  1695. /**
  1696. *
  1697. * @type {Array<SearchFacetCountResponseDto>}
  1698. * @memberof SearchFacetResponseDto
  1699. */
  1700. 'counts': Array<SearchFacetCountResponseDto>;
  1701. }
  1702. /**
  1703. *
  1704. * @export
  1705. * @interface SearchResponseDto
  1706. */
  1707. export interface SearchResponseDto {
  1708. /**
  1709. *
  1710. * @type {SearchAlbumResponseDto}
  1711. * @memberof SearchResponseDto
  1712. */
  1713. 'albums': SearchAlbumResponseDto;
  1714. /**
  1715. *
  1716. * @type {SearchAssetResponseDto}
  1717. * @memberof SearchResponseDto
  1718. */
  1719. 'assets': SearchAssetResponseDto;
  1720. }
  1721. /**
  1722. *
  1723. * @export
  1724. * @interface ServerInfoResponseDto
  1725. */
  1726. export interface ServerInfoResponseDto {
  1727. /**
  1728. *
  1729. * @type {number}
  1730. * @memberof ServerInfoResponseDto
  1731. */
  1732. 'diskSizeRaw': number;
  1733. /**
  1734. *
  1735. * @type {number}
  1736. * @memberof ServerInfoResponseDto
  1737. */
  1738. 'diskUseRaw': number;
  1739. /**
  1740. *
  1741. * @type {number}
  1742. * @memberof ServerInfoResponseDto
  1743. */
  1744. 'diskAvailableRaw': number;
  1745. /**
  1746. *
  1747. * @type {number}
  1748. * @memberof ServerInfoResponseDto
  1749. */
  1750. 'diskUsagePercentage': number;
  1751. /**
  1752. *
  1753. * @type {string}
  1754. * @memberof ServerInfoResponseDto
  1755. */
  1756. 'diskSize': string;
  1757. /**
  1758. *
  1759. * @type {string}
  1760. * @memberof ServerInfoResponseDto
  1761. */
  1762. 'diskUse': string;
  1763. /**
  1764. *
  1765. * @type {string}
  1766. * @memberof ServerInfoResponseDto
  1767. */
  1768. 'diskAvailable': string;
  1769. }
  1770. /**
  1771. *
  1772. * @export
  1773. * @interface ServerPingResponse
  1774. */
  1775. export interface ServerPingResponse {
  1776. /**
  1777. *
  1778. * @type {string}
  1779. * @memberof ServerPingResponse
  1780. */
  1781. 'res': string;
  1782. }
  1783. /**
  1784. *
  1785. * @export
  1786. * @interface ServerStatsResponseDto
  1787. */
  1788. export interface ServerStatsResponseDto {
  1789. /**
  1790. *
  1791. * @type {number}
  1792. * @memberof ServerStatsResponseDto
  1793. */
  1794. 'photos': number;
  1795. /**
  1796. *
  1797. * @type {number}
  1798. * @memberof ServerStatsResponseDto
  1799. */
  1800. 'videos': number;
  1801. /**
  1802. *
  1803. * @type {number}
  1804. * @memberof ServerStatsResponseDto
  1805. */
  1806. 'usage': number;
  1807. /**
  1808. *
  1809. * @type {Array<UsageByUserDto>}
  1810. * @memberof ServerStatsResponseDto
  1811. */
  1812. 'usageByUser': Array<UsageByUserDto>;
  1813. }
  1814. /**
  1815. *
  1816. * @export
  1817. * @interface ServerVersionReponseDto
  1818. */
  1819. export interface ServerVersionReponseDto {
  1820. /**
  1821. *
  1822. * @type {number}
  1823. * @memberof ServerVersionReponseDto
  1824. */
  1825. 'major': number;
  1826. /**
  1827. *
  1828. * @type {number}
  1829. * @memberof ServerVersionReponseDto
  1830. */
  1831. 'minor': number;
  1832. /**
  1833. *
  1834. * @type {number}
  1835. * @memberof ServerVersionReponseDto
  1836. */
  1837. 'patch': number;
  1838. }
  1839. /**
  1840. *
  1841. * @export
  1842. * @interface SharedLinkResponseDto
  1843. */
  1844. export interface SharedLinkResponseDto {
  1845. /**
  1846. *
  1847. * @type {SharedLinkType}
  1848. * @memberof SharedLinkResponseDto
  1849. */
  1850. 'type': SharedLinkType;
  1851. /**
  1852. *
  1853. * @type {string}
  1854. * @memberof SharedLinkResponseDto
  1855. */
  1856. 'id': string;
  1857. /**
  1858. *
  1859. * @type {string}
  1860. * @memberof SharedLinkResponseDto
  1861. */
  1862. 'description'?: string;
  1863. /**
  1864. *
  1865. * @type {string}
  1866. * @memberof SharedLinkResponseDto
  1867. */
  1868. 'userId': string;
  1869. /**
  1870. *
  1871. * @type {string}
  1872. * @memberof SharedLinkResponseDto
  1873. */
  1874. 'key': string;
  1875. /**
  1876. *
  1877. * @type {string}
  1878. * @memberof SharedLinkResponseDto
  1879. */
  1880. 'createdAt': string;
  1881. /**
  1882. *
  1883. * @type {string}
  1884. * @memberof SharedLinkResponseDto
  1885. */
  1886. 'expiresAt': string | null;
  1887. /**
  1888. *
  1889. * @type {Array<AssetResponseDto>}
  1890. * @memberof SharedLinkResponseDto
  1891. */
  1892. 'assets': Array<AssetResponseDto>;
  1893. /**
  1894. *
  1895. * @type {AlbumResponseDto}
  1896. * @memberof SharedLinkResponseDto
  1897. */
  1898. 'album'?: AlbumResponseDto;
  1899. /**
  1900. *
  1901. * @type {boolean}
  1902. * @memberof SharedLinkResponseDto
  1903. */
  1904. 'allowUpload': boolean;
  1905. /**
  1906. *
  1907. * @type {boolean}
  1908. * @memberof SharedLinkResponseDto
  1909. */
  1910. 'allowDownload': boolean;
  1911. /**
  1912. *
  1913. * @type {boolean}
  1914. * @memberof SharedLinkResponseDto
  1915. */
  1916. 'showExif': boolean;
  1917. }
  1918. /**
  1919. *
  1920. * @export
  1921. * @enum {string}
  1922. */
  1923. export const SharedLinkType = {
  1924. Album: 'ALBUM',
  1925. Individual: 'INDIVIDUAL'
  1926. } as const;
  1927. export type SharedLinkType = typeof SharedLinkType[keyof typeof SharedLinkType];
  1928. /**
  1929. *
  1930. * @export
  1931. * @interface SignUpDto
  1932. */
  1933. export interface SignUpDto {
  1934. /**
  1935. *
  1936. * @type {string}
  1937. * @memberof SignUpDto
  1938. */
  1939. 'email': string;
  1940. /**
  1941. *
  1942. * @type {string}
  1943. * @memberof SignUpDto
  1944. */
  1945. 'password': string;
  1946. /**
  1947. *
  1948. * @type {string}
  1949. * @memberof SignUpDto
  1950. */
  1951. 'firstName': string;
  1952. /**
  1953. *
  1954. * @type {string}
  1955. * @memberof SignUpDto
  1956. */
  1957. 'lastName': string;
  1958. }
  1959. /**
  1960. *
  1961. * @export
  1962. * @interface SmartInfoResponseDto
  1963. */
  1964. export interface SmartInfoResponseDto {
  1965. /**
  1966. *
  1967. * @type {Array<string>}
  1968. * @memberof SmartInfoResponseDto
  1969. */
  1970. 'tags'?: Array<string> | null;
  1971. /**
  1972. *
  1973. * @type {Array<string>}
  1974. * @memberof SmartInfoResponseDto
  1975. */
  1976. 'objects'?: Array<string> | null;
  1977. }
  1978. /**
  1979. *
  1980. * @export
  1981. * @interface SystemConfigDto
  1982. */
  1983. export interface SystemConfigDto {
  1984. /**
  1985. *
  1986. * @type {SystemConfigFFmpegDto}
  1987. * @memberof SystemConfigDto
  1988. */
  1989. 'ffmpeg': SystemConfigFFmpegDto;
  1990. /**
  1991. *
  1992. * @type {SystemConfigOAuthDto}
  1993. * @memberof SystemConfigDto
  1994. */
  1995. 'oauth': SystemConfigOAuthDto;
  1996. /**
  1997. *
  1998. * @type {SystemConfigPasswordLoginDto}
  1999. * @memberof SystemConfigDto
  2000. */
  2001. 'passwordLogin': SystemConfigPasswordLoginDto;
  2002. /**
  2003. *
  2004. * @type {SystemConfigStorageTemplateDto}
  2005. * @memberof SystemConfigDto
  2006. */
  2007. 'storageTemplate': SystemConfigStorageTemplateDto;
  2008. }
  2009. /**
  2010. *
  2011. * @export
  2012. * @interface SystemConfigFFmpegDto
  2013. */
  2014. export interface SystemConfigFFmpegDto {
  2015. /**
  2016. *
  2017. * @type {string}
  2018. * @memberof SystemConfigFFmpegDto
  2019. */
  2020. 'crf': string;
  2021. /**
  2022. *
  2023. * @type {string}
  2024. * @memberof SystemConfigFFmpegDto
  2025. */
  2026. 'preset': string;
  2027. /**
  2028. *
  2029. * @type {string}
  2030. * @memberof SystemConfigFFmpegDto
  2031. */
  2032. 'targetVideoCodec': string;
  2033. /**
  2034. *
  2035. * @type {string}
  2036. * @memberof SystemConfigFFmpegDto
  2037. */
  2038. 'targetAudioCodec': string;
  2039. /**
  2040. *
  2041. * @type {string}
  2042. * @memberof SystemConfigFFmpegDto
  2043. */
  2044. 'targetResolution': string;
  2045. /**
  2046. *
  2047. * @type {string}
  2048. * @memberof SystemConfigFFmpegDto
  2049. */
  2050. 'transcode': SystemConfigFFmpegDtoTranscodeEnum;
  2051. }
  2052. export const SystemConfigFFmpegDtoTranscodeEnum = {
  2053. All: 'all',
  2054. Optimal: 'optimal',
  2055. Required: 'required',
  2056. Disabled: 'disabled'
  2057. } as const;
  2058. export type SystemConfigFFmpegDtoTranscodeEnum = typeof SystemConfigFFmpegDtoTranscodeEnum[keyof typeof SystemConfigFFmpegDtoTranscodeEnum];
  2059. /**
  2060. *
  2061. * @export
  2062. * @interface SystemConfigOAuthDto
  2063. */
  2064. export interface SystemConfigOAuthDto {
  2065. /**
  2066. *
  2067. * @type {boolean}
  2068. * @memberof SystemConfigOAuthDto
  2069. */
  2070. 'enabled': boolean;
  2071. /**
  2072. *
  2073. * @type {string}
  2074. * @memberof SystemConfigOAuthDto
  2075. */
  2076. 'issuerUrl': string;
  2077. /**
  2078. *
  2079. * @type {string}
  2080. * @memberof SystemConfigOAuthDto
  2081. */
  2082. 'clientId': string;
  2083. /**
  2084. *
  2085. * @type {string}
  2086. * @memberof SystemConfigOAuthDto
  2087. */
  2088. 'clientSecret': string;
  2089. /**
  2090. *
  2091. * @type {string}
  2092. * @memberof SystemConfigOAuthDto
  2093. */
  2094. 'scope': string;
  2095. /**
  2096. *
  2097. * @type {string}
  2098. * @memberof SystemConfigOAuthDto
  2099. */
  2100. 'buttonText': string;
  2101. /**
  2102. *
  2103. * @type {boolean}
  2104. * @memberof SystemConfigOAuthDto
  2105. */
  2106. 'autoRegister': boolean;
  2107. /**
  2108. *
  2109. * @type {boolean}
  2110. * @memberof SystemConfigOAuthDto
  2111. */
  2112. 'autoLaunch': boolean;
  2113. /**
  2114. *
  2115. * @type {boolean}
  2116. * @memberof SystemConfigOAuthDto
  2117. */
  2118. 'mobileOverrideEnabled': boolean;
  2119. /**
  2120. *
  2121. * @type {string}
  2122. * @memberof SystemConfigOAuthDto
  2123. */
  2124. 'mobileRedirectUri': string;
  2125. }
  2126. /**
  2127. *
  2128. * @export
  2129. * @interface SystemConfigPasswordLoginDto
  2130. */
  2131. export interface SystemConfigPasswordLoginDto {
  2132. /**
  2133. *
  2134. * @type {boolean}
  2135. * @memberof SystemConfigPasswordLoginDto
  2136. */
  2137. 'enabled': boolean;
  2138. }
  2139. /**
  2140. *
  2141. * @export
  2142. * @interface SystemConfigStorageTemplateDto
  2143. */
  2144. export interface SystemConfigStorageTemplateDto {
  2145. /**
  2146. *
  2147. * @type {string}
  2148. * @memberof SystemConfigStorageTemplateDto
  2149. */
  2150. 'template': string;
  2151. }
  2152. /**
  2153. *
  2154. * @export
  2155. * @interface SystemConfigTemplateStorageOptionDto
  2156. */
  2157. export interface SystemConfigTemplateStorageOptionDto {
  2158. /**
  2159. *
  2160. * @type {Array<string>}
  2161. * @memberof SystemConfigTemplateStorageOptionDto
  2162. */
  2163. 'yearOptions': Array<string>;
  2164. /**
  2165. *
  2166. * @type {Array<string>}
  2167. * @memberof SystemConfigTemplateStorageOptionDto
  2168. */
  2169. 'monthOptions': Array<string>;
  2170. /**
  2171. *
  2172. * @type {Array<string>}
  2173. * @memberof SystemConfigTemplateStorageOptionDto
  2174. */
  2175. 'dayOptions': Array<string>;
  2176. /**
  2177. *
  2178. * @type {Array<string>}
  2179. * @memberof SystemConfigTemplateStorageOptionDto
  2180. */
  2181. 'hourOptions': Array<string>;
  2182. /**
  2183. *
  2184. * @type {Array<string>}
  2185. * @memberof SystemConfigTemplateStorageOptionDto
  2186. */
  2187. 'minuteOptions': Array<string>;
  2188. /**
  2189. *
  2190. * @type {Array<string>}
  2191. * @memberof SystemConfigTemplateStorageOptionDto
  2192. */
  2193. 'secondOptions': Array<string>;
  2194. /**
  2195. *
  2196. * @type {Array<string>}
  2197. * @memberof SystemConfigTemplateStorageOptionDto
  2198. */
  2199. 'presetOptions': Array<string>;
  2200. }
  2201. /**
  2202. *
  2203. * @export
  2204. * @interface TagResponseDto
  2205. */
  2206. export interface TagResponseDto {
  2207. /**
  2208. *
  2209. * @type {string}
  2210. * @memberof TagResponseDto
  2211. */
  2212. 'id': string;
  2213. /**
  2214. *
  2215. * @type {TagTypeEnum}
  2216. * @memberof TagResponseDto
  2217. */
  2218. 'type': TagTypeEnum;
  2219. /**
  2220. *
  2221. * @type {string}
  2222. * @memberof TagResponseDto
  2223. */
  2224. 'name': string;
  2225. /**
  2226. *
  2227. * @type {string}
  2228. * @memberof TagResponseDto
  2229. */
  2230. 'userId': string;
  2231. /**
  2232. *
  2233. * @type {string}
  2234. * @memberof TagResponseDto
  2235. */
  2236. 'renameTagId'?: string | null;
  2237. }
  2238. /**
  2239. *
  2240. * @export
  2241. * @enum {string}
  2242. */
  2243. export const TagTypeEnum = {
  2244. Object: 'OBJECT',
  2245. Face: 'FACE',
  2246. Custom: 'CUSTOM'
  2247. } as const;
  2248. export type TagTypeEnum = typeof TagTypeEnum[keyof typeof TagTypeEnum];
  2249. /**
  2250. *
  2251. * @export
  2252. * @enum {string}
  2253. */
  2254. export const ThumbnailFormat = {
  2255. Jpeg: 'JPEG',
  2256. Webp: 'WEBP'
  2257. } as const;
  2258. export type ThumbnailFormat = typeof ThumbnailFormat[keyof typeof ThumbnailFormat];
  2259. /**
  2260. *
  2261. * @export
  2262. * @enum {string}
  2263. */
  2264. export const TimeGroupEnum = {
  2265. Day: 'day',
  2266. Month: 'month'
  2267. } as const;
  2268. export type TimeGroupEnum = typeof TimeGroupEnum[keyof typeof TimeGroupEnum];
  2269. /**
  2270. *
  2271. * @export
  2272. * @interface UpdateAlbumDto
  2273. */
  2274. export interface UpdateAlbumDto {
  2275. /**
  2276. *
  2277. * @type {string}
  2278. * @memberof UpdateAlbumDto
  2279. */
  2280. 'albumName'?: string;
  2281. /**
  2282. *
  2283. * @type {string}
  2284. * @memberof UpdateAlbumDto
  2285. */
  2286. 'albumThumbnailAssetId'?: string;
  2287. }
  2288. /**
  2289. *
  2290. * @export
  2291. * @interface UpdateAssetDto
  2292. */
  2293. export interface UpdateAssetDto {
  2294. /**
  2295. *
  2296. * @type {Array<string>}
  2297. * @memberof UpdateAssetDto
  2298. */
  2299. 'tagIds'?: Array<string>;
  2300. /**
  2301. *
  2302. * @type {boolean}
  2303. * @memberof UpdateAssetDto
  2304. */
  2305. 'isFavorite'?: boolean;
  2306. /**
  2307. *
  2308. * @type {boolean}
  2309. * @memberof UpdateAssetDto
  2310. */
  2311. 'isArchived'?: boolean;
  2312. /**
  2313. *
  2314. * @type {string}
  2315. * @memberof UpdateAssetDto
  2316. */
  2317. 'description'?: string;
  2318. }
  2319. /**
  2320. *
  2321. * @export
  2322. * @interface UpdateTagDto
  2323. */
  2324. export interface UpdateTagDto {
  2325. /**
  2326. *
  2327. * @type {string}
  2328. * @memberof UpdateTagDto
  2329. */
  2330. 'name'?: string;
  2331. /**
  2332. *
  2333. * @type {string}
  2334. * @memberof UpdateTagDto
  2335. */
  2336. 'renameTagId'?: string;
  2337. }
  2338. /**
  2339. *
  2340. * @export
  2341. * @interface UpdateUserDto
  2342. */
  2343. export interface UpdateUserDto {
  2344. /**
  2345. *
  2346. * @type {string}
  2347. * @memberof UpdateUserDto
  2348. */
  2349. 'email'?: string;
  2350. /**
  2351. *
  2352. * @type {string}
  2353. * @memberof UpdateUserDto
  2354. */
  2355. 'password'?: string;
  2356. /**
  2357. *
  2358. * @type {string}
  2359. * @memberof UpdateUserDto
  2360. */
  2361. 'firstName'?: string;
  2362. /**
  2363. *
  2364. * @type {string}
  2365. * @memberof UpdateUserDto
  2366. */
  2367. 'lastName'?: string;
  2368. /**
  2369. *
  2370. * @type {string}
  2371. * @memberof UpdateUserDto
  2372. */
  2373. 'id': string;
  2374. /**
  2375. *
  2376. * @type {boolean}
  2377. * @memberof UpdateUserDto
  2378. */
  2379. 'isAdmin'?: boolean;
  2380. /**
  2381. *
  2382. * @type {boolean}
  2383. * @memberof UpdateUserDto
  2384. */
  2385. 'shouldChangePassword'?: boolean;
  2386. }
  2387. /**
  2388. *
  2389. * @export
  2390. * @interface UsageByUserDto
  2391. */
  2392. export interface UsageByUserDto {
  2393. /**
  2394. *
  2395. * @type {string}
  2396. * @memberof UsageByUserDto
  2397. */
  2398. 'userId': string;
  2399. /**
  2400. *
  2401. * @type {string}
  2402. * @memberof UsageByUserDto
  2403. */
  2404. 'userFirstName': string;
  2405. /**
  2406. *
  2407. * @type {string}
  2408. * @memberof UsageByUserDto
  2409. */
  2410. 'userLastName': string;
  2411. /**
  2412. *
  2413. * @type {number}
  2414. * @memberof UsageByUserDto
  2415. */
  2416. 'photos': number;
  2417. /**
  2418. *
  2419. * @type {number}
  2420. * @memberof UsageByUserDto
  2421. */
  2422. 'videos': number;
  2423. /**
  2424. *
  2425. * @type {number}
  2426. * @memberof UsageByUserDto
  2427. */
  2428. 'usage': number;
  2429. }
  2430. /**
  2431. *
  2432. * @export
  2433. * @interface UserCountResponseDto
  2434. */
  2435. export interface UserCountResponseDto {
  2436. /**
  2437. *
  2438. * @type {number}
  2439. * @memberof UserCountResponseDto
  2440. */
  2441. 'userCount': number;
  2442. }
  2443. /**
  2444. *
  2445. * @export
  2446. * @interface UserResponseDto
  2447. */
  2448. export interface UserResponseDto {
  2449. /**
  2450. *
  2451. * @type {string}
  2452. * @memberof UserResponseDto
  2453. */
  2454. 'id': string;
  2455. /**
  2456. *
  2457. * @type {string}
  2458. * @memberof UserResponseDto
  2459. */
  2460. 'email': string;
  2461. /**
  2462. *
  2463. * @type {string}
  2464. * @memberof UserResponseDto
  2465. */
  2466. 'firstName': string;
  2467. /**
  2468. *
  2469. * @type {string}
  2470. * @memberof UserResponseDto
  2471. */
  2472. 'lastName': string;
  2473. /**
  2474. *
  2475. * @type {string}
  2476. * @memberof UserResponseDto
  2477. */
  2478. 'createdAt': string;
  2479. /**
  2480. *
  2481. * @type {string}
  2482. * @memberof UserResponseDto
  2483. */
  2484. 'profileImagePath': string;
  2485. /**
  2486. *
  2487. * @type {boolean}
  2488. * @memberof UserResponseDto
  2489. */
  2490. 'shouldChangePassword': boolean;
  2491. /**
  2492. *
  2493. * @type {boolean}
  2494. * @memberof UserResponseDto
  2495. */
  2496. 'isAdmin': boolean;
  2497. /**
  2498. *
  2499. * @type {string}
  2500. * @memberof UserResponseDto
  2501. */
  2502. 'deletedAt'?: string;
  2503. /**
  2504. *
  2505. * @type {string}
  2506. * @memberof UserResponseDto
  2507. */
  2508. 'updatedAt'?: string;
  2509. /**
  2510. *
  2511. * @type {string}
  2512. * @memberof UserResponseDto
  2513. */
  2514. 'oauthId': string;
  2515. }
  2516. /**
  2517. *
  2518. * @export
  2519. * @interface ValidateAccessTokenResponseDto
  2520. */
  2521. export interface ValidateAccessTokenResponseDto {
  2522. /**
  2523. *
  2524. * @type {boolean}
  2525. * @memberof ValidateAccessTokenResponseDto
  2526. */
  2527. 'authStatus': boolean;
  2528. }
  2529. /**
  2530. * APIKeyApi - axios parameter creator
  2531. * @export
  2532. */
  2533. export const APIKeyApiAxiosParamCreator = function (configuration?: Configuration) {
  2534. return {
  2535. /**
  2536. *
  2537. * @param {APIKeyCreateDto} aPIKeyCreateDto
  2538. * @param {*} [options] Override http request option.
  2539. * @throws {RequiredError}
  2540. */
  2541. createKey: async (aPIKeyCreateDto: APIKeyCreateDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  2542. // verify required parameter 'aPIKeyCreateDto' is not null or undefined
  2543. assertParamExists('createKey', 'aPIKeyCreateDto', aPIKeyCreateDto)
  2544. const localVarPath = `/api-key`;
  2545. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  2546. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  2547. let baseOptions;
  2548. if (configuration) {
  2549. baseOptions = configuration.baseOptions;
  2550. }
  2551. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  2552. const localVarHeaderParameter = {} as any;
  2553. const localVarQueryParameter = {} as any;
  2554. // authentication cookie required
  2555. // authentication api_key required
  2556. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  2557. // authentication bearer required
  2558. // http bearer authentication required
  2559. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  2560. localVarHeaderParameter['Content-Type'] = 'application/json';
  2561. setSearchParams(localVarUrlObj, localVarQueryParameter);
  2562. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  2563. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  2564. localVarRequestOptions.data = serializeDataIfNeeded(aPIKeyCreateDto, localVarRequestOptions, configuration)
  2565. return {
  2566. url: toPathString(localVarUrlObj),
  2567. options: localVarRequestOptions,
  2568. };
  2569. },
  2570. /**
  2571. *
  2572. * @param {string} id
  2573. * @param {*} [options] Override http request option.
  2574. * @throws {RequiredError}
  2575. */
  2576. deleteKey: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  2577. // verify required parameter 'id' is not null or undefined
  2578. assertParamExists('deleteKey', 'id', id)
  2579. const localVarPath = `/api-key/{id}`
  2580. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  2581. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  2582. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  2583. let baseOptions;
  2584. if (configuration) {
  2585. baseOptions = configuration.baseOptions;
  2586. }
  2587. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  2588. const localVarHeaderParameter = {} as any;
  2589. const localVarQueryParameter = {} as any;
  2590. // authentication cookie required
  2591. // authentication api_key required
  2592. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  2593. // authentication bearer required
  2594. // http bearer authentication required
  2595. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  2596. setSearchParams(localVarUrlObj, localVarQueryParameter);
  2597. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  2598. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  2599. return {
  2600. url: toPathString(localVarUrlObj),
  2601. options: localVarRequestOptions,
  2602. };
  2603. },
  2604. /**
  2605. *
  2606. * @param {string} id
  2607. * @param {*} [options] Override http request option.
  2608. * @throws {RequiredError}
  2609. */
  2610. getKey: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  2611. // verify required parameter 'id' is not null or undefined
  2612. assertParamExists('getKey', 'id', id)
  2613. const localVarPath = `/api-key/{id}`
  2614. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  2615. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  2616. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  2617. let baseOptions;
  2618. if (configuration) {
  2619. baseOptions = configuration.baseOptions;
  2620. }
  2621. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  2622. const localVarHeaderParameter = {} as any;
  2623. const localVarQueryParameter = {} as any;
  2624. // authentication cookie required
  2625. // authentication api_key required
  2626. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  2627. // authentication bearer required
  2628. // http bearer authentication required
  2629. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  2630. setSearchParams(localVarUrlObj, localVarQueryParameter);
  2631. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  2632. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  2633. return {
  2634. url: toPathString(localVarUrlObj),
  2635. options: localVarRequestOptions,
  2636. };
  2637. },
  2638. /**
  2639. *
  2640. * @param {*} [options] Override http request option.
  2641. * @throws {RequiredError}
  2642. */
  2643. getKeys: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  2644. const localVarPath = `/api-key`;
  2645. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  2646. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  2647. let baseOptions;
  2648. if (configuration) {
  2649. baseOptions = configuration.baseOptions;
  2650. }
  2651. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  2652. const localVarHeaderParameter = {} as any;
  2653. const localVarQueryParameter = {} as any;
  2654. // authentication cookie required
  2655. // authentication api_key required
  2656. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  2657. // authentication bearer required
  2658. // http bearer authentication required
  2659. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  2660. setSearchParams(localVarUrlObj, localVarQueryParameter);
  2661. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  2662. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  2663. return {
  2664. url: toPathString(localVarUrlObj),
  2665. options: localVarRequestOptions,
  2666. };
  2667. },
  2668. /**
  2669. *
  2670. * @param {string} id
  2671. * @param {APIKeyUpdateDto} aPIKeyUpdateDto
  2672. * @param {*} [options] Override http request option.
  2673. * @throws {RequiredError}
  2674. */
  2675. updateKey: async (id: string, aPIKeyUpdateDto: APIKeyUpdateDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  2676. // verify required parameter 'id' is not null or undefined
  2677. assertParamExists('updateKey', 'id', id)
  2678. // verify required parameter 'aPIKeyUpdateDto' is not null or undefined
  2679. assertParamExists('updateKey', 'aPIKeyUpdateDto', aPIKeyUpdateDto)
  2680. const localVarPath = `/api-key/{id}`
  2681. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  2682. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  2683. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  2684. let baseOptions;
  2685. if (configuration) {
  2686. baseOptions = configuration.baseOptions;
  2687. }
  2688. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  2689. const localVarHeaderParameter = {} as any;
  2690. const localVarQueryParameter = {} as any;
  2691. // authentication cookie required
  2692. // authentication api_key required
  2693. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  2694. // authentication bearer required
  2695. // http bearer authentication required
  2696. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  2697. localVarHeaderParameter['Content-Type'] = 'application/json';
  2698. setSearchParams(localVarUrlObj, localVarQueryParameter);
  2699. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  2700. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  2701. localVarRequestOptions.data = serializeDataIfNeeded(aPIKeyUpdateDto, localVarRequestOptions, configuration)
  2702. return {
  2703. url: toPathString(localVarUrlObj),
  2704. options: localVarRequestOptions,
  2705. };
  2706. },
  2707. }
  2708. };
  2709. /**
  2710. * APIKeyApi - functional programming interface
  2711. * @export
  2712. */
  2713. export const APIKeyApiFp = function(configuration?: Configuration) {
  2714. const localVarAxiosParamCreator = APIKeyApiAxiosParamCreator(configuration)
  2715. return {
  2716. /**
  2717. *
  2718. * @param {APIKeyCreateDto} aPIKeyCreateDto
  2719. * @param {*} [options] Override http request option.
  2720. * @throws {RequiredError}
  2721. */
  2722. async createKey(aPIKeyCreateDto: APIKeyCreateDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<APIKeyCreateResponseDto>> {
  2723. const localVarAxiosArgs = await localVarAxiosParamCreator.createKey(aPIKeyCreateDto, options);
  2724. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  2725. },
  2726. /**
  2727. *
  2728. * @param {string} id
  2729. * @param {*} [options] Override http request option.
  2730. * @throws {RequiredError}
  2731. */
  2732. async deleteKey(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  2733. const localVarAxiosArgs = await localVarAxiosParamCreator.deleteKey(id, options);
  2734. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  2735. },
  2736. /**
  2737. *
  2738. * @param {string} id
  2739. * @param {*} [options] Override http request option.
  2740. * @throws {RequiredError}
  2741. */
  2742. async getKey(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<APIKeyResponseDto>> {
  2743. const localVarAxiosArgs = await localVarAxiosParamCreator.getKey(id, options);
  2744. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  2745. },
  2746. /**
  2747. *
  2748. * @param {*} [options] Override http request option.
  2749. * @throws {RequiredError}
  2750. */
  2751. async getKeys(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<APIKeyResponseDto>>> {
  2752. const localVarAxiosArgs = await localVarAxiosParamCreator.getKeys(options);
  2753. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  2754. },
  2755. /**
  2756. *
  2757. * @param {string} id
  2758. * @param {APIKeyUpdateDto} aPIKeyUpdateDto
  2759. * @param {*} [options] Override http request option.
  2760. * @throws {RequiredError}
  2761. */
  2762. async updateKey(id: string, aPIKeyUpdateDto: APIKeyUpdateDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<APIKeyResponseDto>> {
  2763. const localVarAxiosArgs = await localVarAxiosParamCreator.updateKey(id, aPIKeyUpdateDto, options);
  2764. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  2765. },
  2766. }
  2767. };
  2768. /**
  2769. * APIKeyApi - factory interface
  2770. * @export
  2771. */
  2772. export const APIKeyApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  2773. const localVarFp = APIKeyApiFp(configuration)
  2774. return {
  2775. /**
  2776. *
  2777. * @param {APIKeyCreateDto} aPIKeyCreateDto
  2778. * @param {*} [options] Override http request option.
  2779. * @throws {RequiredError}
  2780. */
  2781. createKey(aPIKeyCreateDto: APIKeyCreateDto, options?: any): AxiosPromise<APIKeyCreateResponseDto> {
  2782. return localVarFp.createKey(aPIKeyCreateDto, options).then((request) => request(axios, basePath));
  2783. },
  2784. /**
  2785. *
  2786. * @param {string} id
  2787. * @param {*} [options] Override http request option.
  2788. * @throws {RequiredError}
  2789. */
  2790. deleteKey(id: string, options?: any): AxiosPromise<void> {
  2791. return localVarFp.deleteKey(id, options).then((request) => request(axios, basePath));
  2792. },
  2793. /**
  2794. *
  2795. * @param {string} id
  2796. * @param {*} [options] Override http request option.
  2797. * @throws {RequiredError}
  2798. */
  2799. getKey(id: string, options?: any): AxiosPromise<APIKeyResponseDto> {
  2800. return localVarFp.getKey(id, options).then((request) => request(axios, basePath));
  2801. },
  2802. /**
  2803. *
  2804. * @param {*} [options] Override http request option.
  2805. * @throws {RequiredError}
  2806. */
  2807. getKeys(options?: any): AxiosPromise<Array<APIKeyResponseDto>> {
  2808. return localVarFp.getKeys(options).then((request) => request(axios, basePath));
  2809. },
  2810. /**
  2811. *
  2812. * @param {string} id
  2813. * @param {APIKeyUpdateDto} aPIKeyUpdateDto
  2814. * @param {*} [options] Override http request option.
  2815. * @throws {RequiredError}
  2816. */
  2817. updateKey(id: string, aPIKeyUpdateDto: APIKeyUpdateDto, options?: any): AxiosPromise<APIKeyResponseDto> {
  2818. return localVarFp.updateKey(id, aPIKeyUpdateDto, options).then((request) => request(axios, basePath));
  2819. },
  2820. };
  2821. };
  2822. /**
  2823. * APIKeyApi - object-oriented interface
  2824. * @export
  2825. * @class APIKeyApi
  2826. * @extends {BaseAPI}
  2827. */
  2828. export class APIKeyApi extends BaseAPI {
  2829. /**
  2830. *
  2831. * @param {APIKeyCreateDto} aPIKeyCreateDto
  2832. * @param {*} [options] Override http request option.
  2833. * @throws {RequiredError}
  2834. * @memberof APIKeyApi
  2835. */
  2836. public createKey(aPIKeyCreateDto: APIKeyCreateDto, options?: AxiosRequestConfig) {
  2837. return APIKeyApiFp(this.configuration).createKey(aPIKeyCreateDto, options).then((request) => request(this.axios, this.basePath));
  2838. }
  2839. /**
  2840. *
  2841. * @param {string} id
  2842. * @param {*} [options] Override http request option.
  2843. * @throws {RequiredError}
  2844. * @memberof APIKeyApi
  2845. */
  2846. public deleteKey(id: string, options?: AxiosRequestConfig) {
  2847. return APIKeyApiFp(this.configuration).deleteKey(id, options).then((request) => request(this.axios, this.basePath));
  2848. }
  2849. /**
  2850. *
  2851. * @param {string} id
  2852. * @param {*} [options] Override http request option.
  2853. * @throws {RequiredError}
  2854. * @memberof APIKeyApi
  2855. */
  2856. public getKey(id: string, options?: AxiosRequestConfig) {
  2857. return APIKeyApiFp(this.configuration).getKey(id, options).then((request) => request(this.axios, this.basePath));
  2858. }
  2859. /**
  2860. *
  2861. * @param {*} [options] Override http request option.
  2862. * @throws {RequiredError}
  2863. * @memberof APIKeyApi
  2864. */
  2865. public getKeys(options?: AxiosRequestConfig) {
  2866. return APIKeyApiFp(this.configuration).getKeys(options).then((request) => request(this.axios, this.basePath));
  2867. }
  2868. /**
  2869. *
  2870. * @param {string} id
  2871. * @param {APIKeyUpdateDto} aPIKeyUpdateDto
  2872. * @param {*} [options] Override http request option.
  2873. * @throws {RequiredError}
  2874. * @memberof APIKeyApi
  2875. */
  2876. public updateKey(id: string, aPIKeyUpdateDto: APIKeyUpdateDto, options?: AxiosRequestConfig) {
  2877. return APIKeyApiFp(this.configuration).updateKey(id, aPIKeyUpdateDto, options).then((request) => request(this.axios, this.basePath));
  2878. }
  2879. }
  2880. /**
  2881. * AlbumApi - axios parameter creator
  2882. * @export
  2883. */
  2884. export const AlbumApiAxiosParamCreator = function (configuration?: Configuration) {
  2885. return {
  2886. /**
  2887. *
  2888. * @param {string} albumId
  2889. * @param {AddAssetsDto} addAssetsDto
  2890. * @param {string} [key]
  2891. * @param {*} [options] Override http request option.
  2892. * @throws {RequiredError}
  2893. */
  2894. addAssetsToAlbum: async (albumId: string, addAssetsDto: AddAssetsDto, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  2895. // verify required parameter 'albumId' is not null or undefined
  2896. assertParamExists('addAssetsToAlbum', 'albumId', albumId)
  2897. // verify required parameter 'addAssetsDto' is not null or undefined
  2898. assertParamExists('addAssetsToAlbum', 'addAssetsDto', addAssetsDto)
  2899. const localVarPath = `/album/{albumId}/assets`
  2900. .replace(`{${"albumId"}}`, encodeURIComponent(String(albumId)));
  2901. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  2902. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  2903. let baseOptions;
  2904. if (configuration) {
  2905. baseOptions = configuration.baseOptions;
  2906. }
  2907. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  2908. const localVarHeaderParameter = {} as any;
  2909. const localVarQueryParameter = {} as any;
  2910. // authentication cookie required
  2911. // authentication api_key required
  2912. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  2913. // authentication bearer required
  2914. // http bearer authentication required
  2915. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  2916. if (key !== undefined) {
  2917. localVarQueryParameter['key'] = key;
  2918. }
  2919. localVarHeaderParameter['Content-Type'] = 'application/json';
  2920. setSearchParams(localVarUrlObj, localVarQueryParameter);
  2921. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  2922. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  2923. localVarRequestOptions.data = serializeDataIfNeeded(addAssetsDto, localVarRequestOptions, configuration)
  2924. return {
  2925. url: toPathString(localVarUrlObj),
  2926. options: localVarRequestOptions,
  2927. };
  2928. },
  2929. /**
  2930. *
  2931. * @param {string} albumId
  2932. * @param {AddUsersDto} addUsersDto
  2933. * @param {*} [options] Override http request option.
  2934. * @throws {RequiredError}
  2935. */
  2936. addUsersToAlbum: async (albumId: string, addUsersDto: AddUsersDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  2937. // verify required parameter 'albumId' is not null or undefined
  2938. assertParamExists('addUsersToAlbum', 'albumId', albumId)
  2939. // verify required parameter 'addUsersDto' is not null or undefined
  2940. assertParamExists('addUsersToAlbum', 'addUsersDto', addUsersDto)
  2941. const localVarPath = `/album/{albumId}/users`
  2942. .replace(`{${"albumId"}}`, encodeURIComponent(String(albumId)));
  2943. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  2944. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  2945. let baseOptions;
  2946. if (configuration) {
  2947. baseOptions = configuration.baseOptions;
  2948. }
  2949. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  2950. const localVarHeaderParameter = {} as any;
  2951. const localVarQueryParameter = {} as any;
  2952. // authentication cookie required
  2953. // authentication api_key required
  2954. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  2955. // authentication bearer required
  2956. // http bearer authentication required
  2957. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  2958. localVarHeaderParameter['Content-Type'] = 'application/json';
  2959. setSearchParams(localVarUrlObj, localVarQueryParameter);
  2960. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  2961. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  2962. localVarRequestOptions.data = serializeDataIfNeeded(addUsersDto, localVarRequestOptions, configuration)
  2963. return {
  2964. url: toPathString(localVarUrlObj),
  2965. options: localVarRequestOptions,
  2966. };
  2967. },
  2968. /**
  2969. *
  2970. * @param {CreateAlbumDto} createAlbumDto
  2971. * @param {*} [options] Override http request option.
  2972. * @throws {RequiredError}
  2973. */
  2974. createAlbum: async (createAlbumDto: CreateAlbumDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  2975. // verify required parameter 'createAlbumDto' is not null or undefined
  2976. assertParamExists('createAlbum', 'createAlbumDto', createAlbumDto)
  2977. const localVarPath = `/album`;
  2978. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  2979. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  2980. let baseOptions;
  2981. if (configuration) {
  2982. baseOptions = configuration.baseOptions;
  2983. }
  2984. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  2985. const localVarHeaderParameter = {} as any;
  2986. const localVarQueryParameter = {} as any;
  2987. // authentication cookie required
  2988. // authentication api_key required
  2989. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  2990. // authentication bearer required
  2991. // http bearer authentication required
  2992. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  2993. localVarHeaderParameter['Content-Type'] = 'application/json';
  2994. setSearchParams(localVarUrlObj, localVarQueryParameter);
  2995. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  2996. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  2997. localVarRequestOptions.data = serializeDataIfNeeded(createAlbumDto, localVarRequestOptions, configuration)
  2998. return {
  2999. url: toPathString(localVarUrlObj),
  3000. options: localVarRequestOptions,
  3001. };
  3002. },
  3003. /**
  3004. *
  3005. * @param {CreateAlbumShareLinkDto} createAlbumShareLinkDto
  3006. * @param {*} [options] Override http request option.
  3007. * @throws {RequiredError}
  3008. */
  3009. createAlbumSharedLink: async (createAlbumShareLinkDto: CreateAlbumShareLinkDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  3010. // verify required parameter 'createAlbumShareLinkDto' is not null or undefined
  3011. assertParamExists('createAlbumSharedLink', 'createAlbumShareLinkDto', createAlbumShareLinkDto)
  3012. const localVarPath = `/album/create-shared-link`;
  3013. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  3014. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  3015. let baseOptions;
  3016. if (configuration) {
  3017. baseOptions = configuration.baseOptions;
  3018. }
  3019. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  3020. const localVarHeaderParameter = {} as any;
  3021. const localVarQueryParameter = {} as any;
  3022. // authentication cookie required
  3023. // authentication api_key required
  3024. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  3025. // authentication bearer required
  3026. // http bearer authentication required
  3027. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  3028. localVarHeaderParameter['Content-Type'] = 'application/json';
  3029. setSearchParams(localVarUrlObj, localVarQueryParameter);
  3030. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  3031. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  3032. localVarRequestOptions.data = serializeDataIfNeeded(createAlbumShareLinkDto, localVarRequestOptions, configuration)
  3033. return {
  3034. url: toPathString(localVarUrlObj),
  3035. options: localVarRequestOptions,
  3036. };
  3037. },
  3038. /**
  3039. *
  3040. * @param {string} albumId
  3041. * @param {*} [options] Override http request option.
  3042. * @throws {RequiredError}
  3043. */
  3044. deleteAlbum: async (albumId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  3045. // verify required parameter 'albumId' is not null or undefined
  3046. assertParamExists('deleteAlbum', 'albumId', albumId)
  3047. const localVarPath = `/album/{albumId}`
  3048. .replace(`{${"albumId"}}`, encodeURIComponent(String(albumId)));
  3049. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  3050. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  3051. let baseOptions;
  3052. if (configuration) {
  3053. baseOptions = configuration.baseOptions;
  3054. }
  3055. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  3056. const localVarHeaderParameter = {} as any;
  3057. const localVarQueryParameter = {} as any;
  3058. // authentication cookie required
  3059. // authentication api_key required
  3060. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  3061. // authentication bearer required
  3062. // http bearer authentication required
  3063. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  3064. setSearchParams(localVarUrlObj, localVarQueryParameter);
  3065. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  3066. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  3067. return {
  3068. url: toPathString(localVarUrlObj),
  3069. options: localVarRequestOptions,
  3070. };
  3071. },
  3072. /**
  3073. *
  3074. * @param {string} albumId
  3075. * @param {string} [name]
  3076. * @param {number} [skip]
  3077. * @param {string} [key]
  3078. * @param {*} [options] Override http request option.
  3079. * @throws {RequiredError}
  3080. */
  3081. downloadArchive: async (albumId: string, name?: string, skip?: number, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  3082. // verify required parameter 'albumId' is not null or undefined
  3083. assertParamExists('downloadArchive', 'albumId', albumId)
  3084. const localVarPath = `/album/{albumId}/download`
  3085. .replace(`{${"albumId"}}`, encodeURIComponent(String(albumId)));
  3086. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  3087. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  3088. let baseOptions;
  3089. if (configuration) {
  3090. baseOptions = configuration.baseOptions;
  3091. }
  3092. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  3093. const localVarHeaderParameter = {} as any;
  3094. const localVarQueryParameter = {} as any;
  3095. // authentication cookie required
  3096. // authentication api_key required
  3097. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  3098. // authentication bearer required
  3099. // http bearer authentication required
  3100. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  3101. if (name !== undefined) {
  3102. localVarQueryParameter['name'] = name;
  3103. }
  3104. if (skip !== undefined) {
  3105. localVarQueryParameter['skip'] = skip;
  3106. }
  3107. if (key !== undefined) {
  3108. localVarQueryParameter['key'] = key;
  3109. }
  3110. setSearchParams(localVarUrlObj, localVarQueryParameter);
  3111. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  3112. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  3113. return {
  3114. url: toPathString(localVarUrlObj),
  3115. options: localVarRequestOptions,
  3116. };
  3117. },
  3118. /**
  3119. *
  3120. * @param {*} [options] Override http request option.
  3121. * @throws {RequiredError}
  3122. */
  3123. getAlbumCountByUserId: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  3124. const localVarPath = `/album/count-by-user-id`;
  3125. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  3126. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  3127. let baseOptions;
  3128. if (configuration) {
  3129. baseOptions = configuration.baseOptions;
  3130. }
  3131. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  3132. const localVarHeaderParameter = {} as any;
  3133. const localVarQueryParameter = {} as any;
  3134. // authentication cookie required
  3135. // authentication api_key required
  3136. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  3137. // authentication bearer required
  3138. // http bearer authentication required
  3139. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  3140. setSearchParams(localVarUrlObj, localVarQueryParameter);
  3141. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  3142. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  3143. return {
  3144. url: toPathString(localVarUrlObj),
  3145. options: localVarRequestOptions,
  3146. };
  3147. },
  3148. /**
  3149. *
  3150. * @param {string} albumId
  3151. * @param {string} [key]
  3152. * @param {*} [options] Override http request option.
  3153. * @throws {RequiredError}
  3154. */
  3155. getAlbumInfo: async (albumId: string, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  3156. // verify required parameter 'albumId' is not null or undefined
  3157. assertParamExists('getAlbumInfo', 'albumId', albumId)
  3158. const localVarPath = `/album/{albumId}`
  3159. .replace(`{${"albumId"}}`, encodeURIComponent(String(albumId)));
  3160. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  3161. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  3162. let baseOptions;
  3163. if (configuration) {
  3164. baseOptions = configuration.baseOptions;
  3165. }
  3166. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  3167. const localVarHeaderParameter = {} as any;
  3168. const localVarQueryParameter = {} as any;
  3169. // authentication cookie required
  3170. // authentication api_key required
  3171. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  3172. // authentication bearer required
  3173. // http bearer authentication required
  3174. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  3175. if (key !== undefined) {
  3176. localVarQueryParameter['key'] = key;
  3177. }
  3178. setSearchParams(localVarUrlObj, localVarQueryParameter);
  3179. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  3180. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  3181. return {
  3182. url: toPathString(localVarUrlObj),
  3183. options: localVarRequestOptions,
  3184. };
  3185. },
  3186. /**
  3187. *
  3188. * @param {boolean} [shared]
  3189. * @param {string} [assetId] Only returns albums that contain the asset Ignores the shared parameter undefined: get all albums
  3190. * @param {*} [options] Override http request option.
  3191. * @throws {RequiredError}
  3192. */
  3193. getAllAlbums: async (shared?: boolean, assetId?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  3194. const localVarPath = `/album`;
  3195. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  3196. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  3197. let baseOptions;
  3198. if (configuration) {
  3199. baseOptions = configuration.baseOptions;
  3200. }
  3201. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  3202. const localVarHeaderParameter = {} as any;
  3203. const localVarQueryParameter = {} as any;
  3204. // authentication cookie required
  3205. // authentication api_key required
  3206. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  3207. // authentication bearer required
  3208. // http bearer authentication required
  3209. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  3210. if (shared !== undefined) {
  3211. localVarQueryParameter['shared'] = shared;
  3212. }
  3213. if (assetId !== undefined) {
  3214. localVarQueryParameter['assetId'] = assetId;
  3215. }
  3216. setSearchParams(localVarUrlObj, localVarQueryParameter);
  3217. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  3218. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  3219. return {
  3220. url: toPathString(localVarUrlObj),
  3221. options: localVarRequestOptions,
  3222. };
  3223. },
  3224. /**
  3225. *
  3226. * @param {string} albumId
  3227. * @param {RemoveAssetsDto} removeAssetsDto
  3228. * @param {*} [options] Override http request option.
  3229. * @throws {RequiredError}
  3230. */
  3231. removeAssetFromAlbum: async (albumId: string, removeAssetsDto: RemoveAssetsDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  3232. // verify required parameter 'albumId' is not null or undefined
  3233. assertParamExists('removeAssetFromAlbum', 'albumId', albumId)
  3234. // verify required parameter 'removeAssetsDto' is not null or undefined
  3235. assertParamExists('removeAssetFromAlbum', 'removeAssetsDto', removeAssetsDto)
  3236. const localVarPath = `/album/{albumId}/assets`
  3237. .replace(`{${"albumId"}}`, encodeURIComponent(String(albumId)));
  3238. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  3239. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  3240. let baseOptions;
  3241. if (configuration) {
  3242. baseOptions = configuration.baseOptions;
  3243. }
  3244. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  3245. const localVarHeaderParameter = {} as any;
  3246. const localVarQueryParameter = {} as any;
  3247. // authentication cookie required
  3248. // authentication api_key required
  3249. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  3250. // authentication bearer required
  3251. // http bearer authentication required
  3252. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  3253. localVarHeaderParameter['Content-Type'] = 'application/json';
  3254. setSearchParams(localVarUrlObj, localVarQueryParameter);
  3255. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  3256. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  3257. localVarRequestOptions.data = serializeDataIfNeeded(removeAssetsDto, localVarRequestOptions, configuration)
  3258. return {
  3259. url: toPathString(localVarUrlObj),
  3260. options: localVarRequestOptions,
  3261. };
  3262. },
  3263. /**
  3264. *
  3265. * @param {string} albumId
  3266. * @param {string} userId
  3267. * @param {*} [options] Override http request option.
  3268. * @throws {RequiredError}
  3269. */
  3270. removeUserFromAlbum: async (albumId: string, userId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  3271. // verify required parameter 'albumId' is not null or undefined
  3272. assertParamExists('removeUserFromAlbum', 'albumId', albumId)
  3273. // verify required parameter 'userId' is not null or undefined
  3274. assertParamExists('removeUserFromAlbum', 'userId', userId)
  3275. const localVarPath = `/album/{albumId}/user/{userId}`
  3276. .replace(`{${"albumId"}}`, encodeURIComponent(String(albumId)))
  3277. .replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
  3278. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  3279. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  3280. let baseOptions;
  3281. if (configuration) {
  3282. baseOptions = configuration.baseOptions;
  3283. }
  3284. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  3285. const localVarHeaderParameter = {} as any;
  3286. const localVarQueryParameter = {} as any;
  3287. // authentication cookie required
  3288. // authentication api_key required
  3289. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  3290. // authentication bearer required
  3291. // http bearer authentication required
  3292. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  3293. setSearchParams(localVarUrlObj, localVarQueryParameter);
  3294. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  3295. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  3296. return {
  3297. url: toPathString(localVarUrlObj),
  3298. options: localVarRequestOptions,
  3299. };
  3300. },
  3301. /**
  3302. *
  3303. * @param {string} albumId
  3304. * @param {UpdateAlbumDto} updateAlbumDto
  3305. * @param {*} [options] Override http request option.
  3306. * @throws {RequiredError}
  3307. */
  3308. updateAlbumInfo: async (albumId: string, updateAlbumDto: UpdateAlbumDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  3309. // verify required parameter 'albumId' is not null or undefined
  3310. assertParamExists('updateAlbumInfo', 'albumId', albumId)
  3311. // verify required parameter 'updateAlbumDto' is not null or undefined
  3312. assertParamExists('updateAlbumInfo', 'updateAlbumDto', updateAlbumDto)
  3313. const localVarPath = `/album/{albumId}`
  3314. .replace(`{${"albumId"}}`, encodeURIComponent(String(albumId)));
  3315. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  3316. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  3317. let baseOptions;
  3318. if (configuration) {
  3319. baseOptions = configuration.baseOptions;
  3320. }
  3321. const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
  3322. const localVarHeaderParameter = {} as any;
  3323. const localVarQueryParameter = {} as any;
  3324. // authentication cookie required
  3325. // authentication api_key required
  3326. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  3327. // authentication bearer required
  3328. // http bearer authentication required
  3329. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  3330. localVarHeaderParameter['Content-Type'] = 'application/json';
  3331. setSearchParams(localVarUrlObj, localVarQueryParameter);
  3332. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  3333. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  3334. localVarRequestOptions.data = serializeDataIfNeeded(updateAlbumDto, localVarRequestOptions, configuration)
  3335. return {
  3336. url: toPathString(localVarUrlObj),
  3337. options: localVarRequestOptions,
  3338. };
  3339. },
  3340. }
  3341. };
  3342. /**
  3343. * AlbumApi - functional programming interface
  3344. * @export
  3345. */
  3346. export const AlbumApiFp = function(configuration?: Configuration) {
  3347. const localVarAxiosParamCreator = AlbumApiAxiosParamCreator(configuration)
  3348. return {
  3349. /**
  3350. *
  3351. * @param {string} albumId
  3352. * @param {AddAssetsDto} addAssetsDto
  3353. * @param {string} [key]
  3354. * @param {*} [options] Override http request option.
  3355. * @throws {RequiredError}
  3356. */
  3357. async addAssetsToAlbum(albumId: string, addAssetsDto: AddAssetsDto, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AddAssetsResponseDto>> {
  3358. const localVarAxiosArgs = await localVarAxiosParamCreator.addAssetsToAlbum(albumId, addAssetsDto, key, options);
  3359. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  3360. },
  3361. /**
  3362. *
  3363. * @param {string} albumId
  3364. * @param {AddUsersDto} addUsersDto
  3365. * @param {*} [options] Override http request option.
  3366. * @throws {RequiredError}
  3367. */
  3368. async addUsersToAlbum(albumId: string, addUsersDto: AddUsersDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AlbumResponseDto>> {
  3369. const localVarAxiosArgs = await localVarAxiosParamCreator.addUsersToAlbum(albumId, addUsersDto, options);
  3370. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  3371. },
  3372. /**
  3373. *
  3374. * @param {CreateAlbumDto} createAlbumDto
  3375. * @param {*} [options] Override http request option.
  3376. * @throws {RequiredError}
  3377. */
  3378. async createAlbum(createAlbumDto: CreateAlbumDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AlbumResponseDto>> {
  3379. const localVarAxiosArgs = await localVarAxiosParamCreator.createAlbum(createAlbumDto, options);
  3380. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  3381. },
  3382. /**
  3383. *
  3384. * @param {CreateAlbumShareLinkDto} createAlbumShareLinkDto
  3385. * @param {*} [options] Override http request option.
  3386. * @throws {RequiredError}
  3387. */
  3388. async createAlbumSharedLink(createAlbumShareLinkDto: CreateAlbumShareLinkDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SharedLinkResponseDto>> {
  3389. const localVarAxiosArgs = await localVarAxiosParamCreator.createAlbumSharedLink(createAlbumShareLinkDto, options);
  3390. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  3391. },
  3392. /**
  3393. *
  3394. * @param {string} albumId
  3395. * @param {*} [options] Override http request option.
  3396. * @throws {RequiredError}
  3397. */
  3398. async deleteAlbum(albumId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  3399. const localVarAxiosArgs = await localVarAxiosParamCreator.deleteAlbum(albumId, options);
  3400. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  3401. },
  3402. /**
  3403. *
  3404. * @param {string} albumId
  3405. * @param {string} [name]
  3406. * @param {number} [skip]
  3407. * @param {string} [key]
  3408. * @param {*} [options] Override http request option.
  3409. * @throws {RequiredError}
  3410. */
  3411. async downloadArchive(albumId: string, name?: string, skip?: number, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>> {
  3412. const localVarAxiosArgs = await localVarAxiosParamCreator.downloadArchive(albumId, name, skip, key, options);
  3413. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  3414. },
  3415. /**
  3416. *
  3417. * @param {*} [options] Override http request option.
  3418. * @throws {RequiredError}
  3419. */
  3420. async getAlbumCountByUserId(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AlbumCountResponseDto>> {
  3421. const localVarAxiosArgs = await localVarAxiosParamCreator.getAlbumCountByUserId(options);
  3422. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  3423. },
  3424. /**
  3425. *
  3426. * @param {string} albumId
  3427. * @param {string} [key]
  3428. * @param {*} [options] Override http request option.
  3429. * @throws {RequiredError}
  3430. */
  3431. async getAlbumInfo(albumId: string, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AlbumResponseDto>> {
  3432. const localVarAxiosArgs = await localVarAxiosParamCreator.getAlbumInfo(albumId, key, options);
  3433. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  3434. },
  3435. /**
  3436. *
  3437. * @param {boolean} [shared]
  3438. * @param {string} [assetId] Only returns albums that contain the asset Ignores the shared parameter undefined: get all albums
  3439. * @param {*} [options] Override http request option.
  3440. * @throws {RequiredError}
  3441. */
  3442. async getAllAlbums(shared?: boolean, assetId?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AlbumResponseDto>>> {
  3443. const localVarAxiosArgs = await localVarAxiosParamCreator.getAllAlbums(shared, assetId, options);
  3444. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  3445. },
  3446. /**
  3447. *
  3448. * @param {string} albumId
  3449. * @param {RemoveAssetsDto} removeAssetsDto
  3450. * @param {*} [options] Override http request option.
  3451. * @throws {RequiredError}
  3452. */
  3453. async removeAssetFromAlbum(albumId: string, removeAssetsDto: RemoveAssetsDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AlbumResponseDto>> {
  3454. const localVarAxiosArgs = await localVarAxiosParamCreator.removeAssetFromAlbum(albumId, removeAssetsDto, options);
  3455. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  3456. },
  3457. /**
  3458. *
  3459. * @param {string} albumId
  3460. * @param {string} userId
  3461. * @param {*} [options] Override http request option.
  3462. * @throws {RequiredError}
  3463. */
  3464. async removeUserFromAlbum(albumId: string, userId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  3465. const localVarAxiosArgs = await localVarAxiosParamCreator.removeUserFromAlbum(albumId, userId, options);
  3466. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  3467. },
  3468. /**
  3469. *
  3470. * @param {string} albumId
  3471. * @param {UpdateAlbumDto} updateAlbumDto
  3472. * @param {*} [options] Override http request option.
  3473. * @throws {RequiredError}
  3474. */
  3475. async updateAlbumInfo(albumId: string, updateAlbumDto: UpdateAlbumDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AlbumResponseDto>> {
  3476. const localVarAxiosArgs = await localVarAxiosParamCreator.updateAlbumInfo(albumId, updateAlbumDto, options);
  3477. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  3478. },
  3479. }
  3480. };
  3481. /**
  3482. * AlbumApi - factory interface
  3483. * @export
  3484. */
  3485. export const AlbumApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  3486. const localVarFp = AlbumApiFp(configuration)
  3487. return {
  3488. /**
  3489. *
  3490. * @param {string} albumId
  3491. * @param {AddAssetsDto} addAssetsDto
  3492. * @param {string} [key]
  3493. * @param {*} [options] Override http request option.
  3494. * @throws {RequiredError}
  3495. */
  3496. addAssetsToAlbum(albumId: string, addAssetsDto: AddAssetsDto, key?: string, options?: any): AxiosPromise<AddAssetsResponseDto> {
  3497. return localVarFp.addAssetsToAlbum(albumId, addAssetsDto, key, options).then((request) => request(axios, basePath));
  3498. },
  3499. /**
  3500. *
  3501. * @param {string} albumId
  3502. * @param {AddUsersDto} addUsersDto
  3503. * @param {*} [options] Override http request option.
  3504. * @throws {RequiredError}
  3505. */
  3506. addUsersToAlbum(albumId: string, addUsersDto: AddUsersDto, options?: any): AxiosPromise<AlbumResponseDto> {
  3507. return localVarFp.addUsersToAlbum(albumId, addUsersDto, options).then((request) => request(axios, basePath));
  3508. },
  3509. /**
  3510. *
  3511. * @param {CreateAlbumDto} createAlbumDto
  3512. * @param {*} [options] Override http request option.
  3513. * @throws {RequiredError}
  3514. */
  3515. createAlbum(createAlbumDto: CreateAlbumDto, options?: any): AxiosPromise<AlbumResponseDto> {
  3516. return localVarFp.createAlbum(createAlbumDto, options).then((request) => request(axios, basePath));
  3517. },
  3518. /**
  3519. *
  3520. * @param {CreateAlbumShareLinkDto} createAlbumShareLinkDto
  3521. * @param {*} [options] Override http request option.
  3522. * @throws {RequiredError}
  3523. */
  3524. createAlbumSharedLink(createAlbumShareLinkDto: CreateAlbumShareLinkDto, options?: any): AxiosPromise<SharedLinkResponseDto> {
  3525. return localVarFp.createAlbumSharedLink(createAlbumShareLinkDto, options).then((request) => request(axios, basePath));
  3526. },
  3527. /**
  3528. *
  3529. * @param {string} albumId
  3530. * @param {*} [options] Override http request option.
  3531. * @throws {RequiredError}
  3532. */
  3533. deleteAlbum(albumId: string, options?: any): AxiosPromise<void> {
  3534. return localVarFp.deleteAlbum(albumId, options).then((request) => request(axios, basePath));
  3535. },
  3536. /**
  3537. *
  3538. * @param {string} albumId
  3539. * @param {string} [name]
  3540. * @param {number} [skip]
  3541. * @param {string} [key]
  3542. * @param {*} [options] Override http request option.
  3543. * @throws {RequiredError}
  3544. */
  3545. downloadArchive(albumId: string, name?: string, skip?: number, key?: string, options?: any): AxiosPromise<File> {
  3546. return localVarFp.downloadArchive(albumId, name, skip, key, options).then((request) => request(axios, basePath));
  3547. },
  3548. /**
  3549. *
  3550. * @param {*} [options] Override http request option.
  3551. * @throws {RequiredError}
  3552. */
  3553. getAlbumCountByUserId(options?: any): AxiosPromise<AlbumCountResponseDto> {
  3554. return localVarFp.getAlbumCountByUserId(options).then((request) => request(axios, basePath));
  3555. },
  3556. /**
  3557. *
  3558. * @param {string} albumId
  3559. * @param {string} [key]
  3560. * @param {*} [options] Override http request option.
  3561. * @throws {RequiredError}
  3562. */
  3563. getAlbumInfo(albumId: string, key?: string, options?: any): AxiosPromise<AlbumResponseDto> {
  3564. return localVarFp.getAlbumInfo(albumId, key, options).then((request) => request(axios, basePath));
  3565. },
  3566. /**
  3567. *
  3568. * @param {boolean} [shared]
  3569. * @param {string} [assetId] Only returns albums that contain the asset Ignores the shared parameter undefined: get all albums
  3570. * @param {*} [options] Override http request option.
  3571. * @throws {RequiredError}
  3572. */
  3573. getAllAlbums(shared?: boolean, assetId?: string, options?: any): AxiosPromise<Array<AlbumResponseDto>> {
  3574. return localVarFp.getAllAlbums(shared, assetId, options).then((request) => request(axios, basePath));
  3575. },
  3576. /**
  3577. *
  3578. * @param {string} albumId
  3579. * @param {RemoveAssetsDto} removeAssetsDto
  3580. * @param {*} [options] Override http request option.
  3581. * @throws {RequiredError}
  3582. */
  3583. removeAssetFromAlbum(albumId: string, removeAssetsDto: RemoveAssetsDto, options?: any): AxiosPromise<AlbumResponseDto> {
  3584. return localVarFp.removeAssetFromAlbum(albumId, removeAssetsDto, options).then((request) => request(axios, basePath));
  3585. },
  3586. /**
  3587. *
  3588. * @param {string} albumId
  3589. * @param {string} userId
  3590. * @param {*} [options] Override http request option.
  3591. * @throws {RequiredError}
  3592. */
  3593. removeUserFromAlbum(albumId: string, userId: string, options?: any): AxiosPromise<void> {
  3594. return localVarFp.removeUserFromAlbum(albumId, userId, options).then((request) => request(axios, basePath));
  3595. },
  3596. /**
  3597. *
  3598. * @param {string} albumId
  3599. * @param {UpdateAlbumDto} updateAlbumDto
  3600. * @param {*} [options] Override http request option.
  3601. * @throws {RequiredError}
  3602. */
  3603. updateAlbumInfo(albumId: string, updateAlbumDto: UpdateAlbumDto, options?: any): AxiosPromise<AlbumResponseDto> {
  3604. return localVarFp.updateAlbumInfo(albumId, updateAlbumDto, options).then((request) => request(axios, basePath));
  3605. },
  3606. };
  3607. };
  3608. /**
  3609. * AlbumApi - object-oriented interface
  3610. * @export
  3611. * @class AlbumApi
  3612. * @extends {BaseAPI}
  3613. */
  3614. export class AlbumApi extends BaseAPI {
  3615. /**
  3616. *
  3617. * @param {string} albumId
  3618. * @param {AddAssetsDto} addAssetsDto
  3619. * @param {string} [key]
  3620. * @param {*} [options] Override http request option.
  3621. * @throws {RequiredError}
  3622. * @memberof AlbumApi
  3623. */
  3624. public addAssetsToAlbum(albumId: string, addAssetsDto: AddAssetsDto, key?: string, options?: AxiosRequestConfig) {
  3625. return AlbumApiFp(this.configuration).addAssetsToAlbum(albumId, addAssetsDto, key, options).then((request) => request(this.axios, this.basePath));
  3626. }
  3627. /**
  3628. *
  3629. * @param {string} albumId
  3630. * @param {AddUsersDto} addUsersDto
  3631. * @param {*} [options] Override http request option.
  3632. * @throws {RequiredError}
  3633. * @memberof AlbumApi
  3634. */
  3635. public addUsersToAlbum(albumId: string, addUsersDto: AddUsersDto, options?: AxiosRequestConfig) {
  3636. return AlbumApiFp(this.configuration).addUsersToAlbum(albumId, addUsersDto, options).then((request) => request(this.axios, this.basePath));
  3637. }
  3638. /**
  3639. *
  3640. * @param {CreateAlbumDto} createAlbumDto
  3641. * @param {*} [options] Override http request option.
  3642. * @throws {RequiredError}
  3643. * @memberof AlbumApi
  3644. */
  3645. public createAlbum(createAlbumDto: CreateAlbumDto, options?: AxiosRequestConfig) {
  3646. return AlbumApiFp(this.configuration).createAlbum(createAlbumDto, options).then((request) => request(this.axios, this.basePath));
  3647. }
  3648. /**
  3649. *
  3650. * @param {CreateAlbumShareLinkDto} createAlbumShareLinkDto
  3651. * @param {*} [options] Override http request option.
  3652. * @throws {RequiredError}
  3653. * @memberof AlbumApi
  3654. */
  3655. public createAlbumSharedLink(createAlbumShareLinkDto: CreateAlbumShareLinkDto, options?: AxiosRequestConfig) {
  3656. return AlbumApiFp(this.configuration).createAlbumSharedLink(createAlbumShareLinkDto, options).then((request) => request(this.axios, this.basePath));
  3657. }
  3658. /**
  3659. *
  3660. * @param {string} albumId
  3661. * @param {*} [options] Override http request option.
  3662. * @throws {RequiredError}
  3663. * @memberof AlbumApi
  3664. */
  3665. public deleteAlbum(albumId: string, options?: AxiosRequestConfig) {
  3666. return AlbumApiFp(this.configuration).deleteAlbum(albumId, options).then((request) => request(this.axios, this.basePath));
  3667. }
  3668. /**
  3669. *
  3670. * @param {string} albumId
  3671. * @param {string} [name]
  3672. * @param {number} [skip]
  3673. * @param {string} [key]
  3674. * @param {*} [options] Override http request option.
  3675. * @throws {RequiredError}
  3676. * @memberof AlbumApi
  3677. */
  3678. public downloadArchive(albumId: string, name?: string, skip?: number, key?: string, options?: AxiosRequestConfig) {
  3679. return AlbumApiFp(this.configuration).downloadArchive(albumId, name, skip, key, options).then((request) => request(this.axios, this.basePath));
  3680. }
  3681. /**
  3682. *
  3683. * @param {*} [options] Override http request option.
  3684. * @throws {RequiredError}
  3685. * @memberof AlbumApi
  3686. */
  3687. public getAlbumCountByUserId(options?: AxiosRequestConfig) {
  3688. return AlbumApiFp(this.configuration).getAlbumCountByUserId(options).then((request) => request(this.axios, this.basePath));
  3689. }
  3690. /**
  3691. *
  3692. * @param {string} albumId
  3693. * @param {string} [key]
  3694. * @param {*} [options] Override http request option.
  3695. * @throws {RequiredError}
  3696. * @memberof AlbumApi
  3697. */
  3698. public getAlbumInfo(albumId: string, key?: string, options?: AxiosRequestConfig) {
  3699. return AlbumApiFp(this.configuration).getAlbumInfo(albumId, key, options).then((request) => request(this.axios, this.basePath));
  3700. }
  3701. /**
  3702. *
  3703. * @param {boolean} [shared]
  3704. * @param {string} [assetId] Only returns albums that contain the asset Ignores the shared parameter undefined: get all albums
  3705. * @param {*} [options] Override http request option.
  3706. * @throws {RequiredError}
  3707. * @memberof AlbumApi
  3708. */
  3709. public getAllAlbums(shared?: boolean, assetId?: string, options?: AxiosRequestConfig) {
  3710. return AlbumApiFp(this.configuration).getAllAlbums(shared, assetId, options).then((request) => request(this.axios, this.basePath));
  3711. }
  3712. /**
  3713. *
  3714. * @param {string} albumId
  3715. * @param {RemoveAssetsDto} removeAssetsDto
  3716. * @param {*} [options] Override http request option.
  3717. * @throws {RequiredError}
  3718. * @memberof AlbumApi
  3719. */
  3720. public removeAssetFromAlbum(albumId: string, removeAssetsDto: RemoveAssetsDto, options?: AxiosRequestConfig) {
  3721. return AlbumApiFp(this.configuration).removeAssetFromAlbum(albumId, removeAssetsDto, options).then((request) => request(this.axios, this.basePath));
  3722. }
  3723. /**
  3724. *
  3725. * @param {string} albumId
  3726. * @param {string} userId
  3727. * @param {*} [options] Override http request option.
  3728. * @throws {RequiredError}
  3729. * @memberof AlbumApi
  3730. */
  3731. public removeUserFromAlbum(albumId: string, userId: string, options?: AxiosRequestConfig) {
  3732. return AlbumApiFp(this.configuration).removeUserFromAlbum(albumId, userId, options).then((request) => request(this.axios, this.basePath));
  3733. }
  3734. /**
  3735. *
  3736. * @param {string} albumId
  3737. * @param {UpdateAlbumDto} updateAlbumDto
  3738. * @param {*} [options] Override http request option.
  3739. * @throws {RequiredError}
  3740. * @memberof AlbumApi
  3741. */
  3742. public updateAlbumInfo(albumId: string, updateAlbumDto: UpdateAlbumDto, options?: AxiosRequestConfig) {
  3743. return AlbumApiFp(this.configuration).updateAlbumInfo(albumId, updateAlbumDto, options).then((request) => request(this.axios, this.basePath));
  3744. }
  3745. }
  3746. /**
  3747. * AssetApi - axios parameter creator
  3748. * @export
  3749. */
  3750. export const AssetApiAxiosParamCreator = function (configuration?: Configuration) {
  3751. return {
  3752. /**
  3753. *
  3754. * @param {AddAssetsDto} addAssetsDto
  3755. * @param {string} [key]
  3756. * @param {*} [options] Override http request option.
  3757. * @throws {RequiredError}
  3758. */
  3759. addAssetsToSharedLink: async (addAssetsDto: AddAssetsDto, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  3760. // verify required parameter 'addAssetsDto' is not null or undefined
  3761. assertParamExists('addAssetsToSharedLink', 'addAssetsDto', addAssetsDto)
  3762. const localVarPath = `/asset/shared-link/add`;
  3763. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  3764. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  3765. let baseOptions;
  3766. if (configuration) {
  3767. baseOptions = configuration.baseOptions;
  3768. }
  3769. const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
  3770. const localVarHeaderParameter = {} as any;
  3771. const localVarQueryParameter = {} as any;
  3772. // authentication cookie required
  3773. // authentication api_key required
  3774. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  3775. // authentication bearer required
  3776. // http bearer authentication required
  3777. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  3778. if (key !== undefined) {
  3779. localVarQueryParameter['key'] = key;
  3780. }
  3781. localVarHeaderParameter['Content-Type'] = 'application/json';
  3782. setSearchParams(localVarUrlObj, localVarQueryParameter);
  3783. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  3784. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  3785. localVarRequestOptions.data = serializeDataIfNeeded(addAssetsDto, localVarRequestOptions, configuration)
  3786. return {
  3787. url: toPathString(localVarUrlObj),
  3788. options: localVarRequestOptions,
  3789. };
  3790. },
  3791. /**
  3792. * Check duplicated asset before uploading - for Web upload used
  3793. * @param {CheckDuplicateAssetDto} checkDuplicateAssetDto
  3794. * @param {string} [key]
  3795. * @param {*} [options] Override http request option.
  3796. * @throws {RequiredError}
  3797. */
  3798. checkDuplicateAsset: async (checkDuplicateAssetDto: CheckDuplicateAssetDto, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  3799. // verify required parameter 'checkDuplicateAssetDto' is not null or undefined
  3800. assertParamExists('checkDuplicateAsset', 'checkDuplicateAssetDto', checkDuplicateAssetDto)
  3801. const localVarPath = `/asset/check`;
  3802. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  3803. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  3804. let baseOptions;
  3805. if (configuration) {
  3806. baseOptions = configuration.baseOptions;
  3807. }
  3808. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  3809. const localVarHeaderParameter = {} as any;
  3810. const localVarQueryParameter = {} as any;
  3811. // authentication cookie required
  3812. // authentication api_key required
  3813. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  3814. // authentication bearer required
  3815. // http bearer authentication required
  3816. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  3817. if (key !== undefined) {
  3818. localVarQueryParameter['key'] = key;
  3819. }
  3820. localVarHeaderParameter['Content-Type'] = 'application/json';
  3821. setSearchParams(localVarUrlObj, localVarQueryParameter);
  3822. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  3823. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  3824. localVarRequestOptions.data = serializeDataIfNeeded(checkDuplicateAssetDto, localVarRequestOptions, configuration)
  3825. return {
  3826. url: toPathString(localVarUrlObj),
  3827. options: localVarRequestOptions,
  3828. };
  3829. },
  3830. /**
  3831. * Checks if multiple assets exist on the server and returns all existing - used by background backup
  3832. * @param {CheckExistingAssetsDto} checkExistingAssetsDto
  3833. * @param {*} [options] Override http request option.
  3834. * @throws {RequiredError}
  3835. */
  3836. checkExistingAssets: async (checkExistingAssetsDto: CheckExistingAssetsDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  3837. // verify required parameter 'checkExistingAssetsDto' is not null or undefined
  3838. assertParamExists('checkExistingAssets', 'checkExistingAssetsDto', checkExistingAssetsDto)
  3839. const localVarPath = `/asset/exist`;
  3840. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  3841. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  3842. let baseOptions;
  3843. if (configuration) {
  3844. baseOptions = configuration.baseOptions;
  3845. }
  3846. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  3847. const localVarHeaderParameter = {} as any;
  3848. const localVarQueryParameter = {} as any;
  3849. // authentication cookie required
  3850. // authentication api_key required
  3851. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  3852. // authentication bearer required
  3853. // http bearer authentication required
  3854. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  3855. localVarHeaderParameter['Content-Type'] = 'application/json';
  3856. setSearchParams(localVarUrlObj, localVarQueryParameter);
  3857. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  3858. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  3859. localVarRequestOptions.data = serializeDataIfNeeded(checkExistingAssetsDto, localVarRequestOptions, configuration)
  3860. return {
  3861. url: toPathString(localVarUrlObj),
  3862. options: localVarRequestOptions,
  3863. };
  3864. },
  3865. /**
  3866. *
  3867. * @param {CreateAssetsShareLinkDto} createAssetsShareLinkDto
  3868. * @param {*} [options] Override http request option.
  3869. * @throws {RequiredError}
  3870. */
  3871. createAssetsSharedLink: async (createAssetsShareLinkDto: CreateAssetsShareLinkDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  3872. // verify required parameter 'createAssetsShareLinkDto' is not null or undefined
  3873. assertParamExists('createAssetsSharedLink', 'createAssetsShareLinkDto', createAssetsShareLinkDto)
  3874. const localVarPath = `/asset/shared-link`;
  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: 'POST', ...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(createAssetsShareLinkDto, localVarRequestOptions, configuration)
  3895. return {
  3896. url: toPathString(localVarUrlObj),
  3897. options: localVarRequestOptions,
  3898. };
  3899. },
  3900. /**
  3901. *
  3902. * @param {DeleteAssetDto} deleteAssetDto
  3903. * @param {*} [options] Override http request option.
  3904. * @throws {RequiredError}
  3905. */
  3906. deleteAsset: async (deleteAssetDto: DeleteAssetDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  3907. // verify required parameter 'deleteAssetDto' is not null or undefined
  3908. assertParamExists('deleteAsset', 'deleteAssetDto', deleteAssetDto)
  3909. const localVarPath = `/asset`;
  3910. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  3911. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  3912. let baseOptions;
  3913. if (configuration) {
  3914. baseOptions = configuration.baseOptions;
  3915. }
  3916. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  3917. const localVarHeaderParameter = {} as any;
  3918. const localVarQueryParameter = {} as any;
  3919. // authentication cookie required
  3920. // authentication api_key required
  3921. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  3922. // authentication bearer required
  3923. // http bearer authentication required
  3924. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  3925. localVarHeaderParameter['Content-Type'] = 'application/json';
  3926. setSearchParams(localVarUrlObj, localVarQueryParameter);
  3927. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  3928. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  3929. localVarRequestOptions.data = serializeDataIfNeeded(deleteAssetDto, localVarRequestOptions, configuration)
  3930. return {
  3931. url: toPathString(localVarUrlObj),
  3932. options: localVarRequestOptions,
  3933. };
  3934. },
  3935. /**
  3936. *
  3937. * @param {string} assetId
  3938. * @param {string} [key]
  3939. * @param {*} [options] Override http request option.
  3940. * @throws {RequiredError}
  3941. */
  3942. downloadFile: async (assetId: string, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  3943. // verify required parameter 'assetId' is not null or undefined
  3944. assertParamExists('downloadFile', 'assetId', assetId)
  3945. const localVarPath = `/asset/download/{assetId}`
  3946. .replace(`{${"assetId"}}`, encodeURIComponent(String(assetId)));
  3947. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  3948. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  3949. let baseOptions;
  3950. if (configuration) {
  3951. baseOptions = configuration.baseOptions;
  3952. }
  3953. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  3954. const localVarHeaderParameter = {} as any;
  3955. const localVarQueryParameter = {} as any;
  3956. // authentication cookie required
  3957. // authentication api_key required
  3958. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  3959. // authentication bearer required
  3960. // http bearer authentication required
  3961. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  3962. if (key !== undefined) {
  3963. localVarQueryParameter['key'] = key;
  3964. }
  3965. setSearchParams(localVarUrlObj, localVarQueryParameter);
  3966. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  3967. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  3968. return {
  3969. url: toPathString(localVarUrlObj),
  3970. options: localVarRequestOptions,
  3971. };
  3972. },
  3973. /**
  3974. *
  3975. * @param {DownloadFilesDto} downloadFilesDto
  3976. * @param {string} [key]
  3977. * @param {*} [options] Override http request option.
  3978. * @throws {RequiredError}
  3979. */
  3980. downloadFiles: async (downloadFilesDto: DownloadFilesDto, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  3981. // verify required parameter 'downloadFilesDto' is not null or undefined
  3982. assertParamExists('downloadFiles', 'downloadFilesDto', downloadFilesDto)
  3983. const localVarPath = `/asset/download-files`;
  3984. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  3985. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  3986. let baseOptions;
  3987. if (configuration) {
  3988. baseOptions = configuration.baseOptions;
  3989. }
  3990. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  3991. const localVarHeaderParameter = {} as any;
  3992. const localVarQueryParameter = {} as any;
  3993. // authentication cookie required
  3994. // authentication api_key required
  3995. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  3996. // authentication bearer required
  3997. // http bearer authentication required
  3998. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  3999. if (key !== undefined) {
  4000. localVarQueryParameter['key'] = key;
  4001. }
  4002. localVarHeaderParameter['Content-Type'] = 'application/json';
  4003. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4004. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4005. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4006. localVarRequestOptions.data = serializeDataIfNeeded(downloadFilesDto, localVarRequestOptions, configuration)
  4007. return {
  4008. url: toPathString(localVarUrlObj),
  4009. options: localVarRequestOptions,
  4010. };
  4011. },
  4012. /**
  4013. * Current this is not used in any UI element
  4014. * @param {string} [name]
  4015. * @param {number} [skip]
  4016. * @param {string} [key]
  4017. * @param {*} [options] Override http request option.
  4018. * @throws {RequiredError}
  4019. */
  4020. downloadLibrary: async (name?: string, skip?: number, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4021. const localVarPath = `/asset/download-library`;
  4022. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4023. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4024. let baseOptions;
  4025. if (configuration) {
  4026. baseOptions = configuration.baseOptions;
  4027. }
  4028. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  4029. const localVarHeaderParameter = {} as any;
  4030. const localVarQueryParameter = {} as any;
  4031. // authentication cookie required
  4032. // authentication api_key required
  4033. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4034. // authentication bearer required
  4035. // http bearer authentication required
  4036. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4037. if (name !== undefined) {
  4038. localVarQueryParameter['name'] = name;
  4039. }
  4040. if (skip !== undefined) {
  4041. localVarQueryParameter['skip'] = skip;
  4042. }
  4043. if (key !== undefined) {
  4044. localVarQueryParameter['key'] = key;
  4045. }
  4046. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4047. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4048. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4049. return {
  4050. url: toPathString(localVarUrlObj),
  4051. options: localVarRequestOptions,
  4052. };
  4053. },
  4054. /**
  4055. * Get all AssetEntity belong to the user
  4056. * @param {boolean} [isFavorite]
  4057. * @param {boolean} [isArchived]
  4058. * @param {number} [skip]
  4059. * @param {string} [ifNoneMatch] ETag of data already cached on the client
  4060. * @param {*} [options] Override http request option.
  4061. * @throws {RequiredError}
  4062. */
  4063. getAllAssets: async (isFavorite?: boolean, isArchived?: boolean, skip?: number, ifNoneMatch?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4064. const localVarPath = `/asset`;
  4065. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4066. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4067. let baseOptions;
  4068. if (configuration) {
  4069. baseOptions = configuration.baseOptions;
  4070. }
  4071. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  4072. const localVarHeaderParameter = {} as any;
  4073. const localVarQueryParameter = {} as any;
  4074. // authentication cookie required
  4075. // authentication api_key required
  4076. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4077. // authentication bearer required
  4078. // http bearer authentication required
  4079. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4080. if (isFavorite !== undefined) {
  4081. localVarQueryParameter['isFavorite'] = isFavorite;
  4082. }
  4083. if (isArchived !== undefined) {
  4084. localVarQueryParameter['isArchived'] = isArchived;
  4085. }
  4086. if (skip !== undefined) {
  4087. localVarQueryParameter['skip'] = skip;
  4088. }
  4089. if (ifNoneMatch !== undefined && ifNoneMatch !== null) {
  4090. localVarHeaderParameter['if-none-match'] = String(ifNoneMatch);
  4091. }
  4092. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4093. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4094. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4095. return {
  4096. url: toPathString(localVarUrlObj),
  4097. options: localVarRequestOptions,
  4098. };
  4099. },
  4100. /**
  4101. *
  4102. * @param {*} [options] Override http request option.
  4103. * @throws {RequiredError}
  4104. */
  4105. getArchivedAssetCountByUserId: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4106. const localVarPath = `/asset/stat/archive`;
  4107. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4108. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4109. let baseOptions;
  4110. if (configuration) {
  4111. baseOptions = configuration.baseOptions;
  4112. }
  4113. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  4114. const localVarHeaderParameter = {} as any;
  4115. const localVarQueryParameter = {} as any;
  4116. // authentication cookie required
  4117. // authentication api_key required
  4118. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4119. // authentication bearer required
  4120. // http bearer authentication required
  4121. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4122. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4123. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4124. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4125. return {
  4126. url: toPathString(localVarUrlObj),
  4127. options: localVarRequestOptions,
  4128. };
  4129. },
  4130. /**
  4131. * Get a single asset\'s information
  4132. * @param {string} assetId
  4133. * @param {string} [key]
  4134. * @param {*} [options] Override http request option.
  4135. * @throws {RequiredError}
  4136. */
  4137. getAssetById: async (assetId: string, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4138. // verify required parameter 'assetId' is not null or undefined
  4139. assertParamExists('getAssetById', 'assetId', assetId)
  4140. const localVarPath = `/asset/assetById/{assetId}`
  4141. .replace(`{${"assetId"}}`, encodeURIComponent(String(assetId)));
  4142. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4143. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4144. let baseOptions;
  4145. if (configuration) {
  4146. baseOptions = configuration.baseOptions;
  4147. }
  4148. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  4149. const localVarHeaderParameter = {} as any;
  4150. const localVarQueryParameter = {} as any;
  4151. // authentication cookie required
  4152. // authentication api_key required
  4153. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4154. // authentication bearer required
  4155. // http bearer authentication required
  4156. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4157. if (key !== undefined) {
  4158. localVarQueryParameter['key'] = key;
  4159. }
  4160. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4161. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4162. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4163. return {
  4164. url: toPathString(localVarUrlObj),
  4165. options: localVarRequestOptions,
  4166. };
  4167. },
  4168. /**
  4169. *
  4170. * @param {GetAssetByTimeBucketDto} getAssetByTimeBucketDto
  4171. * @param {*} [options] Override http request option.
  4172. * @throws {RequiredError}
  4173. */
  4174. getAssetByTimeBucket: async (getAssetByTimeBucketDto: GetAssetByTimeBucketDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4175. // verify required parameter 'getAssetByTimeBucketDto' is not null or undefined
  4176. assertParamExists('getAssetByTimeBucket', 'getAssetByTimeBucketDto', getAssetByTimeBucketDto)
  4177. const localVarPath = `/asset/time-bucket`;
  4178. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4179. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4180. let baseOptions;
  4181. if (configuration) {
  4182. baseOptions = configuration.baseOptions;
  4183. }
  4184. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  4185. const localVarHeaderParameter = {} as any;
  4186. const localVarQueryParameter = {} as any;
  4187. // authentication cookie required
  4188. // authentication api_key required
  4189. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4190. // authentication bearer required
  4191. // http bearer authentication required
  4192. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4193. localVarHeaderParameter['Content-Type'] = 'application/json';
  4194. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4195. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4196. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4197. localVarRequestOptions.data = serializeDataIfNeeded(getAssetByTimeBucketDto, localVarRequestOptions, configuration)
  4198. return {
  4199. url: toPathString(localVarUrlObj),
  4200. options: localVarRequestOptions,
  4201. };
  4202. },
  4203. /**
  4204. *
  4205. * @param {GetAssetCountByTimeBucketDto} getAssetCountByTimeBucketDto
  4206. * @param {*} [options] Override http request option.
  4207. * @throws {RequiredError}
  4208. */
  4209. getAssetCountByTimeBucket: async (getAssetCountByTimeBucketDto: GetAssetCountByTimeBucketDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4210. // verify required parameter 'getAssetCountByTimeBucketDto' is not null or undefined
  4211. assertParamExists('getAssetCountByTimeBucket', 'getAssetCountByTimeBucketDto', getAssetCountByTimeBucketDto)
  4212. const localVarPath = `/asset/count-by-time-bucket`;
  4213. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4214. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4215. let baseOptions;
  4216. if (configuration) {
  4217. baseOptions = configuration.baseOptions;
  4218. }
  4219. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  4220. const localVarHeaderParameter = {} as any;
  4221. const localVarQueryParameter = {} as any;
  4222. // authentication cookie required
  4223. // authentication api_key required
  4224. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4225. // authentication bearer required
  4226. // http bearer authentication required
  4227. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4228. localVarHeaderParameter['Content-Type'] = 'application/json';
  4229. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4230. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4231. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4232. localVarRequestOptions.data = serializeDataIfNeeded(getAssetCountByTimeBucketDto, localVarRequestOptions, configuration)
  4233. return {
  4234. url: toPathString(localVarUrlObj),
  4235. options: localVarRequestOptions,
  4236. };
  4237. },
  4238. /**
  4239. *
  4240. * @param {*} [options] Override http request option.
  4241. * @throws {RequiredError}
  4242. */
  4243. getAssetCountByUserId: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4244. const localVarPath = `/asset/count-by-user-id`;
  4245. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4246. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4247. let baseOptions;
  4248. if (configuration) {
  4249. baseOptions = configuration.baseOptions;
  4250. }
  4251. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  4252. const localVarHeaderParameter = {} as any;
  4253. const localVarQueryParameter = {} as any;
  4254. // authentication cookie required
  4255. // authentication api_key required
  4256. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4257. // authentication bearer required
  4258. // http bearer authentication required
  4259. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4260. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4261. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4262. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4263. return {
  4264. url: toPathString(localVarUrlObj),
  4265. options: localVarRequestOptions,
  4266. };
  4267. },
  4268. /**
  4269. *
  4270. * @param {*} [options] Override http request option.
  4271. * @throws {RequiredError}
  4272. */
  4273. getAssetSearchTerms: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4274. const localVarPath = `/asset/search-terms`;
  4275. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4276. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4277. let baseOptions;
  4278. if (configuration) {
  4279. baseOptions = configuration.baseOptions;
  4280. }
  4281. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  4282. const localVarHeaderParameter = {} as any;
  4283. const localVarQueryParameter = {} as any;
  4284. // authentication cookie required
  4285. // authentication api_key required
  4286. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4287. // authentication bearer required
  4288. // http bearer authentication required
  4289. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4290. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4291. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4292. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4293. return {
  4294. url: toPathString(localVarUrlObj),
  4295. options: localVarRequestOptions,
  4296. };
  4297. },
  4298. /**
  4299. *
  4300. * @param {string} assetId
  4301. * @param {ThumbnailFormat} [format]
  4302. * @param {string} [key]
  4303. * @param {*} [options] Override http request option.
  4304. * @throws {RequiredError}
  4305. */
  4306. getAssetThumbnail: async (assetId: string, format?: ThumbnailFormat, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4307. // verify required parameter 'assetId' is not null or undefined
  4308. assertParamExists('getAssetThumbnail', 'assetId', assetId)
  4309. const localVarPath = `/asset/thumbnail/{assetId}`
  4310. .replace(`{${"assetId"}}`, encodeURIComponent(String(assetId)));
  4311. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4312. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4313. let baseOptions;
  4314. if (configuration) {
  4315. baseOptions = configuration.baseOptions;
  4316. }
  4317. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  4318. const localVarHeaderParameter = {} as any;
  4319. const localVarQueryParameter = {} as any;
  4320. // authentication cookie required
  4321. // authentication api_key required
  4322. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4323. // authentication bearer required
  4324. // http bearer authentication required
  4325. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4326. if (format !== undefined) {
  4327. localVarQueryParameter['format'] = format;
  4328. }
  4329. if (key !== undefined) {
  4330. localVarQueryParameter['key'] = key;
  4331. }
  4332. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4333. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4334. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4335. return {
  4336. url: toPathString(localVarUrlObj),
  4337. options: localVarRequestOptions,
  4338. };
  4339. },
  4340. /**
  4341. *
  4342. * @param {*} [options] Override http request option.
  4343. * @throws {RequiredError}
  4344. */
  4345. getCuratedLocations: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4346. const localVarPath = `/asset/curated-locations`;
  4347. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4348. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4349. let baseOptions;
  4350. if (configuration) {
  4351. baseOptions = configuration.baseOptions;
  4352. }
  4353. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  4354. const localVarHeaderParameter = {} as any;
  4355. const localVarQueryParameter = {} as any;
  4356. // authentication cookie required
  4357. // authentication api_key required
  4358. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4359. // authentication bearer required
  4360. // http bearer authentication required
  4361. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4362. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4363. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4364. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4365. return {
  4366. url: toPathString(localVarUrlObj),
  4367. options: localVarRequestOptions,
  4368. };
  4369. },
  4370. /**
  4371. *
  4372. * @param {*} [options] Override http request option.
  4373. * @throws {RequiredError}
  4374. */
  4375. getCuratedObjects: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4376. const localVarPath = `/asset/curated-objects`;
  4377. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4378. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4379. let baseOptions;
  4380. if (configuration) {
  4381. baseOptions = configuration.baseOptions;
  4382. }
  4383. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  4384. const localVarHeaderParameter = {} as any;
  4385. const localVarQueryParameter = {} as any;
  4386. // authentication cookie required
  4387. // authentication api_key required
  4388. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4389. // authentication bearer required
  4390. // http bearer authentication required
  4391. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4392. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4393. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4394. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4395. return {
  4396. url: toPathString(localVarUrlObj),
  4397. options: localVarRequestOptions,
  4398. };
  4399. },
  4400. /**
  4401. * Get all assets that have GPS information embedded
  4402. * @param {boolean} [isFavorite]
  4403. * @param {boolean} [isArchived]
  4404. * @param {number} [skip]
  4405. * @param {*} [options] Override http request option.
  4406. * @throws {RequiredError}
  4407. */
  4408. getMapMarkers: async (isFavorite?: boolean, isArchived?: boolean, skip?: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4409. const localVarPath = `/asset/map-marker`;
  4410. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4411. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4412. let baseOptions;
  4413. if (configuration) {
  4414. baseOptions = configuration.baseOptions;
  4415. }
  4416. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  4417. const localVarHeaderParameter = {} as any;
  4418. const localVarQueryParameter = {} as any;
  4419. // authentication cookie required
  4420. // authentication api_key required
  4421. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4422. // authentication bearer required
  4423. // http bearer authentication required
  4424. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4425. if (isFavorite !== undefined) {
  4426. localVarQueryParameter['isFavorite'] = isFavorite;
  4427. }
  4428. if (isArchived !== undefined) {
  4429. localVarQueryParameter['isArchived'] = isArchived;
  4430. }
  4431. if (skip !== undefined) {
  4432. localVarQueryParameter['skip'] = skip;
  4433. }
  4434. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4435. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4436. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4437. return {
  4438. url: toPathString(localVarUrlObj),
  4439. options: localVarRequestOptions,
  4440. };
  4441. },
  4442. /**
  4443. * Get all asset of a device that are in the database, ID only.
  4444. * @param {string} deviceId
  4445. * @param {*} [options] Override http request option.
  4446. * @throws {RequiredError}
  4447. */
  4448. getUserAssetsByDeviceId: async (deviceId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4449. // verify required parameter 'deviceId' is not null or undefined
  4450. assertParamExists('getUserAssetsByDeviceId', 'deviceId', deviceId)
  4451. const localVarPath = `/asset/{deviceId}`
  4452. .replace(`{${"deviceId"}}`, encodeURIComponent(String(deviceId)));
  4453. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4454. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4455. let baseOptions;
  4456. if (configuration) {
  4457. baseOptions = configuration.baseOptions;
  4458. }
  4459. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  4460. const localVarHeaderParameter = {} as any;
  4461. const localVarQueryParameter = {} as any;
  4462. // authentication cookie required
  4463. // authentication api_key required
  4464. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4465. // authentication bearer required
  4466. // http bearer authentication required
  4467. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4468. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4469. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4470. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4471. return {
  4472. url: toPathString(localVarUrlObj),
  4473. options: localVarRequestOptions,
  4474. };
  4475. },
  4476. /**
  4477. *
  4478. * @param {RemoveAssetsDto} removeAssetsDto
  4479. * @param {string} [key]
  4480. * @param {*} [options] Override http request option.
  4481. * @throws {RequiredError}
  4482. */
  4483. removeAssetsFromSharedLink: async (removeAssetsDto: RemoveAssetsDto, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4484. // verify required parameter 'removeAssetsDto' is not null or undefined
  4485. assertParamExists('removeAssetsFromSharedLink', 'removeAssetsDto', removeAssetsDto)
  4486. const localVarPath = `/asset/shared-link/remove`;
  4487. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4488. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4489. let baseOptions;
  4490. if (configuration) {
  4491. baseOptions = configuration.baseOptions;
  4492. }
  4493. const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
  4494. const localVarHeaderParameter = {} as any;
  4495. const localVarQueryParameter = {} as any;
  4496. // authentication cookie required
  4497. // authentication api_key required
  4498. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4499. // authentication bearer required
  4500. // http bearer authentication required
  4501. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4502. if (key !== undefined) {
  4503. localVarQueryParameter['key'] = key;
  4504. }
  4505. localVarHeaderParameter['Content-Type'] = 'application/json';
  4506. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4507. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4508. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4509. localVarRequestOptions.data = serializeDataIfNeeded(removeAssetsDto, localVarRequestOptions, configuration)
  4510. return {
  4511. url: toPathString(localVarUrlObj),
  4512. options: localVarRequestOptions,
  4513. };
  4514. },
  4515. /**
  4516. *
  4517. * @param {SearchAssetDto} searchAssetDto
  4518. * @param {*} [options] Override http request option.
  4519. * @throws {RequiredError}
  4520. */
  4521. searchAsset: async (searchAssetDto: SearchAssetDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4522. // verify required parameter 'searchAssetDto' is not null or undefined
  4523. assertParamExists('searchAsset', 'searchAssetDto', searchAssetDto)
  4524. const localVarPath = `/asset/search`;
  4525. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4526. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4527. let baseOptions;
  4528. if (configuration) {
  4529. baseOptions = configuration.baseOptions;
  4530. }
  4531. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  4532. const localVarHeaderParameter = {} as any;
  4533. const localVarQueryParameter = {} as any;
  4534. // authentication cookie required
  4535. // authentication api_key required
  4536. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4537. // authentication bearer required
  4538. // http bearer authentication required
  4539. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4540. localVarHeaderParameter['Content-Type'] = 'application/json';
  4541. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4542. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4543. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4544. localVarRequestOptions.data = serializeDataIfNeeded(searchAssetDto, localVarRequestOptions, configuration)
  4545. return {
  4546. url: toPathString(localVarUrlObj),
  4547. options: localVarRequestOptions,
  4548. };
  4549. },
  4550. /**
  4551. *
  4552. * @param {string} assetId
  4553. * @param {boolean} [isThumb]
  4554. * @param {boolean} [isWeb]
  4555. * @param {string} [key]
  4556. * @param {*} [options] Override http request option.
  4557. * @throws {RequiredError}
  4558. */
  4559. serveFile: async (assetId: string, isThumb?: boolean, isWeb?: boolean, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4560. // verify required parameter 'assetId' is not null or undefined
  4561. assertParamExists('serveFile', 'assetId', assetId)
  4562. const localVarPath = `/asset/file/{assetId}`
  4563. .replace(`{${"assetId"}}`, encodeURIComponent(String(assetId)));
  4564. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4565. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4566. let baseOptions;
  4567. if (configuration) {
  4568. baseOptions = configuration.baseOptions;
  4569. }
  4570. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  4571. const localVarHeaderParameter = {} as any;
  4572. const localVarQueryParameter = {} as any;
  4573. // authentication cookie required
  4574. // authentication api_key required
  4575. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4576. // authentication bearer required
  4577. // http bearer authentication required
  4578. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4579. if (isThumb !== undefined) {
  4580. localVarQueryParameter['isThumb'] = isThumb;
  4581. }
  4582. if (isWeb !== undefined) {
  4583. localVarQueryParameter['isWeb'] = isWeb;
  4584. }
  4585. if (key !== undefined) {
  4586. localVarQueryParameter['key'] = key;
  4587. }
  4588. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4589. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4590. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4591. return {
  4592. url: toPathString(localVarUrlObj),
  4593. options: localVarRequestOptions,
  4594. };
  4595. },
  4596. /**
  4597. * Update an asset
  4598. * @param {string} assetId
  4599. * @param {UpdateAssetDto} updateAssetDto
  4600. * @param {*} [options] Override http request option.
  4601. * @throws {RequiredError}
  4602. */
  4603. updateAsset: async (assetId: string, updateAssetDto: UpdateAssetDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4604. // verify required parameter 'assetId' is not null or undefined
  4605. assertParamExists('updateAsset', 'assetId', assetId)
  4606. // verify required parameter 'updateAssetDto' is not null or undefined
  4607. assertParamExists('updateAsset', 'updateAssetDto', updateAssetDto)
  4608. const localVarPath = `/asset/{assetId}`
  4609. .replace(`{${"assetId"}}`, encodeURIComponent(String(assetId)));
  4610. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4611. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4612. let baseOptions;
  4613. if (configuration) {
  4614. baseOptions = configuration.baseOptions;
  4615. }
  4616. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  4617. const localVarHeaderParameter = {} as any;
  4618. const localVarQueryParameter = {} as any;
  4619. // authentication cookie required
  4620. // authentication api_key required
  4621. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4622. // authentication bearer required
  4623. // http bearer authentication required
  4624. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4625. localVarHeaderParameter['Content-Type'] = 'application/json';
  4626. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4627. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4628. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4629. localVarRequestOptions.data = serializeDataIfNeeded(updateAssetDto, localVarRequestOptions, configuration)
  4630. return {
  4631. url: toPathString(localVarUrlObj),
  4632. options: localVarRequestOptions,
  4633. };
  4634. },
  4635. /**
  4636. *
  4637. * @param {AssetTypeEnum} assetType
  4638. * @param {File} assetData
  4639. * @param {string} deviceAssetId
  4640. * @param {string} deviceId
  4641. * @param {string} fileCreatedAt
  4642. * @param {string} fileModifiedAt
  4643. * @param {boolean} isFavorite
  4644. * @param {string} fileExtension
  4645. * @param {string} [key]
  4646. * @param {File} [livePhotoData]
  4647. * @param {boolean} [isArchived]
  4648. * @param {boolean} [isVisible]
  4649. * @param {string} [duration]
  4650. * @param {*} [options] Override http request option.
  4651. * @throws {RequiredError}
  4652. */
  4653. uploadFile: async (assetType: AssetTypeEnum, assetData: File, deviceAssetId: string, deviceId: string, fileCreatedAt: string, fileModifiedAt: string, isFavorite: boolean, fileExtension: string, key?: string, livePhotoData?: File, isArchived?: boolean, isVisible?: boolean, duration?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4654. // verify required parameter 'assetType' is not null or undefined
  4655. assertParamExists('uploadFile', 'assetType', assetType)
  4656. // verify required parameter 'assetData' is not null or undefined
  4657. assertParamExists('uploadFile', 'assetData', assetData)
  4658. // verify required parameter 'deviceAssetId' is not null or undefined
  4659. assertParamExists('uploadFile', 'deviceAssetId', deviceAssetId)
  4660. // verify required parameter 'deviceId' is not null or undefined
  4661. assertParamExists('uploadFile', 'deviceId', deviceId)
  4662. // verify required parameter 'fileCreatedAt' is not null or undefined
  4663. assertParamExists('uploadFile', 'fileCreatedAt', fileCreatedAt)
  4664. // verify required parameter 'fileModifiedAt' is not null or undefined
  4665. assertParamExists('uploadFile', 'fileModifiedAt', fileModifiedAt)
  4666. // verify required parameter 'isFavorite' is not null or undefined
  4667. assertParamExists('uploadFile', 'isFavorite', isFavorite)
  4668. // verify required parameter 'fileExtension' is not null or undefined
  4669. assertParamExists('uploadFile', 'fileExtension', fileExtension)
  4670. const localVarPath = `/asset/upload`;
  4671. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4672. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4673. let baseOptions;
  4674. if (configuration) {
  4675. baseOptions = configuration.baseOptions;
  4676. }
  4677. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  4678. const localVarHeaderParameter = {} as any;
  4679. const localVarQueryParameter = {} as any;
  4680. const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
  4681. // authentication cookie required
  4682. // authentication api_key required
  4683. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4684. // authentication bearer required
  4685. // http bearer authentication required
  4686. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4687. if (key !== undefined) {
  4688. localVarQueryParameter['key'] = key;
  4689. }
  4690. if (assetType !== undefined) {
  4691. localVarFormParams.append('assetType', new Blob([JSON.stringify(assetType)], { type: "application/json", }));
  4692. }
  4693. if (assetData !== undefined) {
  4694. localVarFormParams.append('assetData', assetData as any);
  4695. }
  4696. if (livePhotoData !== undefined) {
  4697. localVarFormParams.append('livePhotoData', livePhotoData as any);
  4698. }
  4699. if (deviceAssetId !== undefined) {
  4700. localVarFormParams.append('deviceAssetId', deviceAssetId as any);
  4701. }
  4702. if (deviceId !== undefined) {
  4703. localVarFormParams.append('deviceId', deviceId as any);
  4704. }
  4705. if (fileCreatedAt !== undefined) {
  4706. localVarFormParams.append('fileCreatedAt', fileCreatedAt as any);
  4707. }
  4708. if (fileModifiedAt !== undefined) {
  4709. localVarFormParams.append('fileModifiedAt', fileModifiedAt as any);
  4710. }
  4711. if (isFavorite !== undefined) {
  4712. localVarFormParams.append('isFavorite', isFavorite as any);
  4713. }
  4714. if (isArchived !== undefined) {
  4715. localVarFormParams.append('isArchived', isArchived as any);
  4716. }
  4717. if (isVisible !== undefined) {
  4718. localVarFormParams.append('isVisible', isVisible as any);
  4719. }
  4720. if (fileExtension !== undefined) {
  4721. localVarFormParams.append('fileExtension', fileExtension as any);
  4722. }
  4723. if (duration !== undefined) {
  4724. localVarFormParams.append('duration', duration as any);
  4725. }
  4726. localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
  4727. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4728. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4729. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4730. localVarRequestOptions.data = localVarFormParams;
  4731. return {
  4732. url: toPathString(localVarUrlObj),
  4733. options: localVarRequestOptions,
  4734. };
  4735. },
  4736. }
  4737. };
  4738. /**
  4739. * AssetApi - functional programming interface
  4740. * @export
  4741. */
  4742. export const AssetApiFp = function(configuration?: Configuration) {
  4743. const localVarAxiosParamCreator = AssetApiAxiosParamCreator(configuration)
  4744. return {
  4745. /**
  4746. *
  4747. * @param {AddAssetsDto} addAssetsDto
  4748. * @param {string} [key]
  4749. * @param {*} [options] Override http request option.
  4750. * @throws {RequiredError}
  4751. */
  4752. async addAssetsToSharedLink(addAssetsDto: AddAssetsDto, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SharedLinkResponseDto>> {
  4753. const localVarAxiosArgs = await localVarAxiosParamCreator.addAssetsToSharedLink(addAssetsDto, key, options);
  4754. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4755. },
  4756. /**
  4757. * Check duplicated asset before uploading - for Web upload used
  4758. * @param {CheckDuplicateAssetDto} checkDuplicateAssetDto
  4759. * @param {string} [key]
  4760. * @param {*} [options] Override http request option.
  4761. * @throws {RequiredError}
  4762. */
  4763. async checkDuplicateAsset(checkDuplicateAssetDto: CheckDuplicateAssetDto, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CheckDuplicateAssetResponseDto>> {
  4764. const localVarAxiosArgs = await localVarAxiosParamCreator.checkDuplicateAsset(checkDuplicateAssetDto, key, options);
  4765. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4766. },
  4767. /**
  4768. * Checks if multiple assets exist on the server and returns all existing - used by background backup
  4769. * @param {CheckExistingAssetsDto} checkExistingAssetsDto
  4770. * @param {*} [options] Override http request option.
  4771. * @throws {RequiredError}
  4772. */
  4773. async checkExistingAssets(checkExistingAssetsDto: CheckExistingAssetsDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CheckExistingAssetsResponseDto>> {
  4774. const localVarAxiosArgs = await localVarAxiosParamCreator.checkExistingAssets(checkExistingAssetsDto, options);
  4775. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4776. },
  4777. /**
  4778. *
  4779. * @param {CreateAssetsShareLinkDto} createAssetsShareLinkDto
  4780. * @param {*} [options] Override http request option.
  4781. * @throws {RequiredError}
  4782. */
  4783. async createAssetsSharedLink(createAssetsShareLinkDto: CreateAssetsShareLinkDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SharedLinkResponseDto>> {
  4784. const localVarAxiosArgs = await localVarAxiosParamCreator.createAssetsSharedLink(createAssetsShareLinkDto, options);
  4785. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4786. },
  4787. /**
  4788. *
  4789. * @param {DeleteAssetDto} deleteAssetDto
  4790. * @param {*} [options] Override http request option.
  4791. * @throws {RequiredError}
  4792. */
  4793. async deleteAsset(deleteAssetDto: DeleteAssetDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<DeleteAssetResponseDto>>> {
  4794. const localVarAxiosArgs = await localVarAxiosParamCreator.deleteAsset(deleteAssetDto, options);
  4795. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4796. },
  4797. /**
  4798. *
  4799. * @param {string} assetId
  4800. * @param {string} [key]
  4801. * @param {*} [options] Override http request option.
  4802. * @throws {RequiredError}
  4803. */
  4804. async downloadFile(assetId: string, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>> {
  4805. const localVarAxiosArgs = await localVarAxiosParamCreator.downloadFile(assetId, key, options);
  4806. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4807. },
  4808. /**
  4809. *
  4810. * @param {DownloadFilesDto} downloadFilesDto
  4811. * @param {string} [key]
  4812. * @param {*} [options] Override http request option.
  4813. * @throws {RequiredError}
  4814. */
  4815. async downloadFiles(downloadFilesDto: DownloadFilesDto, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>> {
  4816. const localVarAxiosArgs = await localVarAxiosParamCreator.downloadFiles(downloadFilesDto, key, options);
  4817. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4818. },
  4819. /**
  4820. * Current this is not used in any UI element
  4821. * @param {string} [name]
  4822. * @param {number} [skip]
  4823. * @param {string} [key]
  4824. * @param {*} [options] Override http request option.
  4825. * @throws {RequiredError}
  4826. */
  4827. async downloadLibrary(name?: string, skip?: number, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>> {
  4828. const localVarAxiosArgs = await localVarAxiosParamCreator.downloadLibrary(name, skip, key, options);
  4829. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4830. },
  4831. /**
  4832. * Get all AssetEntity belong to the user
  4833. * @param {boolean} [isFavorite]
  4834. * @param {boolean} [isArchived]
  4835. * @param {number} [skip]
  4836. * @param {string} [ifNoneMatch] ETag of data already cached on the client
  4837. * @param {*} [options] Override http request option.
  4838. * @throws {RequiredError}
  4839. */
  4840. async getAllAssets(isFavorite?: boolean, isArchived?: boolean, skip?: number, ifNoneMatch?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetResponseDto>>> {
  4841. const localVarAxiosArgs = await localVarAxiosParamCreator.getAllAssets(isFavorite, isArchived, skip, ifNoneMatch, options);
  4842. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4843. },
  4844. /**
  4845. *
  4846. * @param {*} [options] Override http request option.
  4847. * @throws {RequiredError}
  4848. */
  4849. async getArchivedAssetCountByUserId(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AssetCountByUserIdResponseDto>> {
  4850. const localVarAxiosArgs = await localVarAxiosParamCreator.getArchivedAssetCountByUserId(options);
  4851. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4852. },
  4853. /**
  4854. * Get a single asset\'s information
  4855. * @param {string} assetId
  4856. * @param {string} [key]
  4857. * @param {*} [options] Override http request option.
  4858. * @throws {RequiredError}
  4859. */
  4860. async getAssetById(assetId: string, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AssetResponseDto>> {
  4861. const localVarAxiosArgs = await localVarAxiosParamCreator.getAssetById(assetId, key, options);
  4862. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4863. },
  4864. /**
  4865. *
  4866. * @param {GetAssetByTimeBucketDto} getAssetByTimeBucketDto
  4867. * @param {*} [options] Override http request option.
  4868. * @throws {RequiredError}
  4869. */
  4870. async getAssetByTimeBucket(getAssetByTimeBucketDto: GetAssetByTimeBucketDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetResponseDto>>> {
  4871. const localVarAxiosArgs = await localVarAxiosParamCreator.getAssetByTimeBucket(getAssetByTimeBucketDto, options);
  4872. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4873. },
  4874. /**
  4875. *
  4876. * @param {GetAssetCountByTimeBucketDto} getAssetCountByTimeBucketDto
  4877. * @param {*} [options] Override http request option.
  4878. * @throws {RequiredError}
  4879. */
  4880. async getAssetCountByTimeBucket(getAssetCountByTimeBucketDto: GetAssetCountByTimeBucketDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AssetCountByTimeBucketResponseDto>> {
  4881. const localVarAxiosArgs = await localVarAxiosParamCreator.getAssetCountByTimeBucket(getAssetCountByTimeBucketDto, options);
  4882. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4883. },
  4884. /**
  4885. *
  4886. * @param {*} [options] Override http request option.
  4887. * @throws {RequiredError}
  4888. */
  4889. async getAssetCountByUserId(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AssetCountByUserIdResponseDto>> {
  4890. const localVarAxiosArgs = await localVarAxiosParamCreator.getAssetCountByUserId(options);
  4891. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4892. },
  4893. /**
  4894. *
  4895. * @param {*} [options] Override http request option.
  4896. * @throws {RequiredError}
  4897. */
  4898. async getAssetSearchTerms(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<string>>> {
  4899. const localVarAxiosArgs = await localVarAxiosParamCreator.getAssetSearchTerms(options);
  4900. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4901. },
  4902. /**
  4903. *
  4904. * @param {string} assetId
  4905. * @param {ThumbnailFormat} [format]
  4906. * @param {string} [key]
  4907. * @param {*} [options] Override http request option.
  4908. * @throws {RequiredError}
  4909. */
  4910. async getAssetThumbnail(assetId: string, format?: ThumbnailFormat, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>> {
  4911. const localVarAxiosArgs = await localVarAxiosParamCreator.getAssetThumbnail(assetId, format, key, options);
  4912. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4913. },
  4914. /**
  4915. *
  4916. * @param {*} [options] Override http request option.
  4917. * @throws {RequiredError}
  4918. */
  4919. async getCuratedLocations(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<CuratedLocationsResponseDto>>> {
  4920. const localVarAxiosArgs = await localVarAxiosParamCreator.getCuratedLocations(options);
  4921. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4922. },
  4923. /**
  4924. *
  4925. * @param {*} [options] Override http request option.
  4926. * @throws {RequiredError}
  4927. */
  4928. async getCuratedObjects(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<CuratedObjectsResponseDto>>> {
  4929. const localVarAxiosArgs = await localVarAxiosParamCreator.getCuratedObjects(options);
  4930. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4931. },
  4932. /**
  4933. * Get all assets that have GPS information embedded
  4934. * @param {boolean} [isFavorite]
  4935. * @param {boolean} [isArchived]
  4936. * @param {number} [skip]
  4937. * @param {*} [options] Override http request option.
  4938. * @throws {RequiredError}
  4939. */
  4940. async getMapMarkers(isFavorite?: boolean, isArchived?: boolean, skip?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<MapMarkerResponseDto>>> {
  4941. const localVarAxiosArgs = await localVarAxiosParamCreator.getMapMarkers(isFavorite, isArchived, skip, options);
  4942. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4943. },
  4944. /**
  4945. * Get all asset of a device that are in the database, ID only.
  4946. * @param {string} deviceId
  4947. * @param {*} [options] Override http request option.
  4948. * @throws {RequiredError}
  4949. */
  4950. async getUserAssetsByDeviceId(deviceId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<string>>> {
  4951. const localVarAxiosArgs = await localVarAxiosParamCreator.getUserAssetsByDeviceId(deviceId, options);
  4952. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4953. },
  4954. /**
  4955. *
  4956. * @param {RemoveAssetsDto} removeAssetsDto
  4957. * @param {string} [key]
  4958. * @param {*} [options] Override http request option.
  4959. * @throws {RequiredError}
  4960. */
  4961. async removeAssetsFromSharedLink(removeAssetsDto: RemoveAssetsDto, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SharedLinkResponseDto>> {
  4962. const localVarAxiosArgs = await localVarAxiosParamCreator.removeAssetsFromSharedLink(removeAssetsDto, key, options);
  4963. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4964. },
  4965. /**
  4966. *
  4967. * @param {SearchAssetDto} searchAssetDto
  4968. * @param {*} [options] Override http request option.
  4969. * @throws {RequiredError}
  4970. */
  4971. async searchAsset(searchAssetDto: SearchAssetDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetResponseDto>>> {
  4972. const localVarAxiosArgs = await localVarAxiosParamCreator.searchAsset(searchAssetDto, options);
  4973. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4974. },
  4975. /**
  4976. *
  4977. * @param {string} assetId
  4978. * @param {boolean} [isThumb]
  4979. * @param {boolean} [isWeb]
  4980. * @param {string} [key]
  4981. * @param {*} [options] Override http request option.
  4982. * @throws {RequiredError}
  4983. */
  4984. async serveFile(assetId: string, isThumb?: boolean, isWeb?: boolean, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>> {
  4985. const localVarAxiosArgs = await localVarAxiosParamCreator.serveFile(assetId, isThumb, isWeb, key, options);
  4986. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4987. },
  4988. /**
  4989. * Update an asset
  4990. * @param {string} assetId
  4991. * @param {UpdateAssetDto} updateAssetDto
  4992. * @param {*} [options] Override http request option.
  4993. * @throws {RequiredError}
  4994. */
  4995. async updateAsset(assetId: string, updateAssetDto: UpdateAssetDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AssetResponseDto>> {
  4996. const localVarAxiosArgs = await localVarAxiosParamCreator.updateAsset(assetId, updateAssetDto, options);
  4997. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4998. },
  4999. /**
  5000. *
  5001. * @param {AssetTypeEnum} assetType
  5002. * @param {File} assetData
  5003. * @param {string} deviceAssetId
  5004. * @param {string} deviceId
  5005. * @param {string} fileCreatedAt
  5006. * @param {string} fileModifiedAt
  5007. * @param {boolean} isFavorite
  5008. * @param {string} fileExtension
  5009. * @param {string} [key]
  5010. * @param {File} [livePhotoData]
  5011. * @param {boolean} [isArchived]
  5012. * @param {boolean} [isVisible]
  5013. * @param {string} [duration]
  5014. * @param {*} [options] Override http request option.
  5015. * @throws {RequiredError}
  5016. */
  5017. async uploadFile(assetType: AssetTypeEnum, assetData: File, deviceAssetId: string, deviceId: string, fileCreatedAt: string, fileModifiedAt: string, isFavorite: boolean, fileExtension: string, key?: string, livePhotoData?: File, isArchived?: boolean, isVisible?: boolean, duration?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AssetFileUploadResponseDto>> {
  5018. const localVarAxiosArgs = await localVarAxiosParamCreator.uploadFile(assetType, assetData, deviceAssetId, deviceId, fileCreatedAt, fileModifiedAt, isFavorite, fileExtension, key, livePhotoData, isArchived, isVisible, duration, options);
  5019. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5020. },
  5021. }
  5022. };
  5023. /**
  5024. * AssetApi - factory interface
  5025. * @export
  5026. */
  5027. export const AssetApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  5028. const localVarFp = AssetApiFp(configuration)
  5029. return {
  5030. /**
  5031. *
  5032. * @param {AddAssetsDto} addAssetsDto
  5033. * @param {string} [key]
  5034. * @param {*} [options] Override http request option.
  5035. * @throws {RequiredError}
  5036. */
  5037. addAssetsToSharedLink(addAssetsDto: AddAssetsDto, key?: string, options?: any): AxiosPromise<SharedLinkResponseDto> {
  5038. return localVarFp.addAssetsToSharedLink(addAssetsDto, key, options).then((request) => request(axios, basePath));
  5039. },
  5040. /**
  5041. * Check duplicated asset before uploading - for Web upload used
  5042. * @param {CheckDuplicateAssetDto} checkDuplicateAssetDto
  5043. * @param {string} [key]
  5044. * @param {*} [options] Override http request option.
  5045. * @throws {RequiredError}
  5046. */
  5047. checkDuplicateAsset(checkDuplicateAssetDto: CheckDuplicateAssetDto, key?: string, options?: any): AxiosPromise<CheckDuplicateAssetResponseDto> {
  5048. return localVarFp.checkDuplicateAsset(checkDuplicateAssetDto, key, options).then((request) => request(axios, basePath));
  5049. },
  5050. /**
  5051. * Checks if multiple assets exist on the server and returns all existing - used by background backup
  5052. * @param {CheckExistingAssetsDto} checkExistingAssetsDto
  5053. * @param {*} [options] Override http request option.
  5054. * @throws {RequiredError}
  5055. */
  5056. checkExistingAssets(checkExistingAssetsDto: CheckExistingAssetsDto, options?: any): AxiosPromise<CheckExistingAssetsResponseDto> {
  5057. return localVarFp.checkExistingAssets(checkExistingAssetsDto, options).then((request) => request(axios, basePath));
  5058. },
  5059. /**
  5060. *
  5061. * @param {CreateAssetsShareLinkDto} createAssetsShareLinkDto
  5062. * @param {*} [options] Override http request option.
  5063. * @throws {RequiredError}
  5064. */
  5065. createAssetsSharedLink(createAssetsShareLinkDto: CreateAssetsShareLinkDto, options?: any): AxiosPromise<SharedLinkResponseDto> {
  5066. return localVarFp.createAssetsSharedLink(createAssetsShareLinkDto, options).then((request) => request(axios, basePath));
  5067. },
  5068. /**
  5069. *
  5070. * @param {DeleteAssetDto} deleteAssetDto
  5071. * @param {*} [options] Override http request option.
  5072. * @throws {RequiredError}
  5073. */
  5074. deleteAsset(deleteAssetDto: DeleteAssetDto, options?: any): AxiosPromise<Array<DeleteAssetResponseDto>> {
  5075. return localVarFp.deleteAsset(deleteAssetDto, options).then((request) => request(axios, basePath));
  5076. },
  5077. /**
  5078. *
  5079. * @param {string} assetId
  5080. * @param {string} [key]
  5081. * @param {*} [options] Override http request option.
  5082. * @throws {RequiredError}
  5083. */
  5084. downloadFile(assetId: string, key?: string, options?: any): AxiosPromise<File> {
  5085. return localVarFp.downloadFile(assetId, key, options).then((request) => request(axios, basePath));
  5086. },
  5087. /**
  5088. *
  5089. * @param {DownloadFilesDto} downloadFilesDto
  5090. * @param {string} [key]
  5091. * @param {*} [options] Override http request option.
  5092. * @throws {RequiredError}
  5093. */
  5094. downloadFiles(downloadFilesDto: DownloadFilesDto, key?: string, options?: any): AxiosPromise<File> {
  5095. return localVarFp.downloadFiles(downloadFilesDto, key, options).then((request) => request(axios, basePath));
  5096. },
  5097. /**
  5098. * Current this is not used in any UI element
  5099. * @param {string} [name]
  5100. * @param {number} [skip]
  5101. * @param {string} [key]
  5102. * @param {*} [options] Override http request option.
  5103. * @throws {RequiredError}
  5104. */
  5105. downloadLibrary(name?: string, skip?: number, key?: string, options?: any): AxiosPromise<File> {
  5106. return localVarFp.downloadLibrary(name, skip, key, options).then((request) => request(axios, basePath));
  5107. },
  5108. /**
  5109. * Get all AssetEntity belong to the user
  5110. * @param {boolean} [isFavorite]
  5111. * @param {boolean} [isArchived]
  5112. * @param {number} [skip]
  5113. * @param {string} [ifNoneMatch] ETag of data already cached on the client
  5114. * @param {*} [options] Override http request option.
  5115. * @throws {RequiredError}
  5116. */
  5117. getAllAssets(isFavorite?: boolean, isArchived?: boolean, skip?: number, ifNoneMatch?: string, options?: any): AxiosPromise<Array<AssetResponseDto>> {
  5118. return localVarFp.getAllAssets(isFavorite, isArchived, skip, ifNoneMatch, options).then((request) => request(axios, basePath));
  5119. },
  5120. /**
  5121. *
  5122. * @param {*} [options] Override http request option.
  5123. * @throws {RequiredError}
  5124. */
  5125. getArchivedAssetCountByUserId(options?: any): AxiosPromise<AssetCountByUserIdResponseDto> {
  5126. return localVarFp.getArchivedAssetCountByUserId(options).then((request) => request(axios, basePath));
  5127. },
  5128. /**
  5129. * Get a single asset\'s information
  5130. * @param {string} assetId
  5131. * @param {string} [key]
  5132. * @param {*} [options] Override http request option.
  5133. * @throws {RequiredError}
  5134. */
  5135. getAssetById(assetId: string, key?: string, options?: any): AxiosPromise<AssetResponseDto> {
  5136. return localVarFp.getAssetById(assetId, key, options).then((request) => request(axios, basePath));
  5137. },
  5138. /**
  5139. *
  5140. * @param {GetAssetByTimeBucketDto} getAssetByTimeBucketDto
  5141. * @param {*} [options] Override http request option.
  5142. * @throws {RequiredError}
  5143. */
  5144. getAssetByTimeBucket(getAssetByTimeBucketDto: GetAssetByTimeBucketDto, options?: any): AxiosPromise<Array<AssetResponseDto>> {
  5145. return localVarFp.getAssetByTimeBucket(getAssetByTimeBucketDto, options).then((request) => request(axios, basePath));
  5146. },
  5147. /**
  5148. *
  5149. * @param {GetAssetCountByTimeBucketDto} getAssetCountByTimeBucketDto
  5150. * @param {*} [options] Override http request option.
  5151. * @throws {RequiredError}
  5152. */
  5153. getAssetCountByTimeBucket(getAssetCountByTimeBucketDto: GetAssetCountByTimeBucketDto, options?: any): AxiosPromise<AssetCountByTimeBucketResponseDto> {
  5154. return localVarFp.getAssetCountByTimeBucket(getAssetCountByTimeBucketDto, options).then((request) => request(axios, basePath));
  5155. },
  5156. /**
  5157. *
  5158. * @param {*} [options] Override http request option.
  5159. * @throws {RequiredError}
  5160. */
  5161. getAssetCountByUserId(options?: any): AxiosPromise<AssetCountByUserIdResponseDto> {
  5162. return localVarFp.getAssetCountByUserId(options).then((request) => request(axios, basePath));
  5163. },
  5164. /**
  5165. *
  5166. * @param {*} [options] Override http request option.
  5167. * @throws {RequiredError}
  5168. */
  5169. getAssetSearchTerms(options?: any): AxiosPromise<Array<string>> {
  5170. return localVarFp.getAssetSearchTerms(options).then((request) => request(axios, basePath));
  5171. },
  5172. /**
  5173. *
  5174. * @param {string} assetId
  5175. * @param {ThumbnailFormat} [format]
  5176. * @param {string} [key]
  5177. * @param {*} [options] Override http request option.
  5178. * @throws {RequiredError}
  5179. */
  5180. getAssetThumbnail(assetId: string, format?: ThumbnailFormat, key?: string, options?: any): AxiosPromise<File> {
  5181. return localVarFp.getAssetThumbnail(assetId, format, key, options).then((request) => request(axios, basePath));
  5182. },
  5183. /**
  5184. *
  5185. * @param {*} [options] Override http request option.
  5186. * @throws {RequiredError}
  5187. */
  5188. getCuratedLocations(options?: any): AxiosPromise<Array<CuratedLocationsResponseDto>> {
  5189. return localVarFp.getCuratedLocations(options).then((request) => request(axios, basePath));
  5190. },
  5191. /**
  5192. *
  5193. * @param {*} [options] Override http request option.
  5194. * @throws {RequiredError}
  5195. */
  5196. getCuratedObjects(options?: any): AxiosPromise<Array<CuratedObjectsResponseDto>> {
  5197. return localVarFp.getCuratedObjects(options).then((request) => request(axios, basePath));
  5198. },
  5199. /**
  5200. * Get all assets that have GPS information embedded
  5201. * @param {boolean} [isFavorite]
  5202. * @param {boolean} [isArchived]
  5203. * @param {number} [skip]
  5204. * @param {*} [options] Override http request option.
  5205. * @throws {RequiredError}
  5206. */
  5207. getMapMarkers(isFavorite?: boolean, isArchived?: boolean, skip?: number, options?: any): AxiosPromise<Array<MapMarkerResponseDto>> {
  5208. return localVarFp.getMapMarkers(isFavorite, isArchived, skip, options).then((request) => request(axios, basePath));
  5209. },
  5210. /**
  5211. * Get all asset of a device that are in the database, ID only.
  5212. * @param {string} deviceId
  5213. * @param {*} [options] Override http request option.
  5214. * @throws {RequiredError}
  5215. */
  5216. getUserAssetsByDeviceId(deviceId: string, options?: any): AxiosPromise<Array<string>> {
  5217. return localVarFp.getUserAssetsByDeviceId(deviceId, options).then((request) => request(axios, basePath));
  5218. },
  5219. /**
  5220. *
  5221. * @param {RemoveAssetsDto} removeAssetsDto
  5222. * @param {string} [key]
  5223. * @param {*} [options] Override http request option.
  5224. * @throws {RequiredError}
  5225. */
  5226. removeAssetsFromSharedLink(removeAssetsDto: RemoveAssetsDto, key?: string, options?: any): AxiosPromise<SharedLinkResponseDto> {
  5227. return localVarFp.removeAssetsFromSharedLink(removeAssetsDto, key, options).then((request) => request(axios, basePath));
  5228. },
  5229. /**
  5230. *
  5231. * @param {SearchAssetDto} searchAssetDto
  5232. * @param {*} [options] Override http request option.
  5233. * @throws {RequiredError}
  5234. */
  5235. searchAsset(searchAssetDto: SearchAssetDto, options?: any): AxiosPromise<Array<AssetResponseDto>> {
  5236. return localVarFp.searchAsset(searchAssetDto, options).then((request) => request(axios, basePath));
  5237. },
  5238. /**
  5239. *
  5240. * @param {string} assetId
  5241. * @param {boolean} [isThumb]
  5242. * @param {boolean} [isWeb]
  5243. * @param {string} [key]
  5244. * @param {*} [options] Override http request option.
  5245. * @throws {RequiredError}
  5246. */
  5247. serveFile(assetId: string, isThumb?: boolean, isWeb?: boolean, key?: string, options?: any): AxiosPromise<File> {
  5248. return localVarFp.serveFile(assetId, isThumb, isWeb, key, options).then((request) => request(axios, basePath));
  5249. },
  5250. /**
  5251. * Update an asset
  5252. * @param {string} assetId
  5253. * @param {UpdateAssetDto} updateAssetDto
  5254. * @param {*} [options] Override http request option.
  5255. * @throws {RequiredError}
  5256. */
  5257. updateAsset(assetId: string, updateAssetDto: UpdateAssetDto, options?: any): AxiosPromise<AssetResponseDto> {
  5258. return localVarFp.updateAsset(assetId, updateAssetDto, options).then((request) => request(axios, basePath));
  5259. },
  5260. /**
  5261. *
  5262. * @param {AssetTypeEnum} assetType
  5263. * @param {File} assetData
  5264. * @param {string} deviceAssetId
  5265. * @param {string} deviceId
  5266. * @param {string} fileCreatedAt
  5267. * @param {string} fileModifiedAt
  5268. * @param {boolean} isFavorite
  5269. * @param {string} fileExtension
  5270. * @param {string} [key]
  5271. * @param {File} [livePhotoData]
  5272. * @param {boolean} [isArchived]
  5273. * @param {boolean} [isVisible]
  5274. * @param {string} [duration]
  5275. * @param {*} [options] Override http request option.
  5276. * @throws {RequiredError}
  5277. */
  5278. uploadFile(assetType: AssetTypeEnum, assetData: File, deviceAssetId: string, deviceId: string, fileCreatedAt: string, fileModifiedAt: string, isFavorite: boolean, fileExtension: string, key?: string, livePhotoData?: File, isArchived?: boolean, isVisible?: boolean, duration?: string, options?: any): AxiosPromise<AssetFileUploadResponseDto> {
  5279. return localVarFp.uploadFile(assetType, assetData, deviceAssetId, deviceId, fileCreatedAt, fileModifiedAt, isFavorite, fileExtension, key, livePhotoData, isArchived, isVisible, duration, options).then((request) => request(axios, basePath));
  5280. },
  5281. };
  5282. };
  5283. /**
  5284. * AssetApi - object-oriented interface
  5285. * @export
  5286. * @class AssetApi
  5287. * @extends {BaseAPI}
  5288. */
  5289. export class AssetApi extends BaseAPI {
  5290. /**
  5291. *
  5292. * @param {AddAssetsDto} addAssetsDto
  5293. * @param {string} [key]
  5294. * @param {*} [options] Override http request option.
  5295. * @throws {RequiredError}
  5296. * @memberof AssetApi
  5297. */
  5298. public addAssetsToSharedLink(addAssetsDto: AddAssetsDto, key?: string, options?: AxiosRequestConfig) {
  5299. return AssetApiFp(this.configuration).addAssetsToSharedLink(addAssetsDto, key, options).then((request) => request(this.axios, this.basePath));
  5300. }
  5301. /**
  5302. * Check duplicated asset before uploading - for Web upload used
  5303. * @param {CheckDuplicateAssetDto} checkDuplicateAssetDto
  5304. * @param {string} [key]
  5305. * @param {*} [options] Override http request option.
  5306. * @throws {RequiredError}
  5307. * @memberof AssetApi
  5308. */
  5309. public checkDuplicateAsset(checkDuplicateAssetDto: CheckDuplicateAssetDto, key?: string, options?: AxiosRequestConfig) {
  5310. return AssetApiFp(this.configuration).checkDuplicateAsset(checkDuplicateAssetDto, key, options).then((request) => request(this.axios, this.basePath));
  5311. }
  5312. /**
  5313. * Checks if multiple assets exist on the server and returns all existing - used by background backup
  5314. * @param {CheckExistingAssetsDto} checkExistingAssetsDto
  5315. * @param {*} [options] Override http request option.
  5316. * @throws {RequiredError}
  5317. * @memberof AssetApi
  5318. */
  5319. public checkExistingAssets(checkExistingAssetsDto: CheckExistingAssetsDto, options?: AxiosRequestConfig) {
  5320. return AssetApiFp(this.configuration).checkExistingAssets(checkExistingAssetsDto, options).then((request) => request(this.axios, this.basePath));
  5321. }
  5322. /**
  5323. *
  5324. * @param {CreateAssetsShareLinkDto} createAssetsShareLinkDto
  5325. * @param {*} [options] Override http request option.
  5326. * @throws {RequiredError}
  5327. * @memberof AssetApi
  5328. */
  5329. public createAssetsSharedLink(createAssetsShareLinkDto: CreateAssetsShareLinkDto, options?: AxiosRequestConfig) {
  5330. return AssetApiFp(this.configuration).createAssetsSharedLink(createAssetsShareLinkDto, options).then((request) => request(this.axios, this.basePath));
  5331. }
  5332. /**
  5333. *
  5334. * @param {DeleteAssetDto} deleteAssetDto
  5335. * @param {*} [options] Override http request option.
  5336. * @throws {RequiredError}
  5337. * @memberof AssetApi
  5338. */
  5339. public deleteAsset(deleteAssetDto: DeleteAssetDto, options?: AxiosRequestConfig) {
  5340. return AssetApiFp(this.configuration).deleteAsset(deleteAssetDto, options).then((request) => request(this.axios, this.basePath));
  5341. }
  5342. /**
  5343. *
  5344. * @param {string} assetId
  5345. * @param {string} [key]
  5346. * @param {*} [options] Override http request option.
  5347. * @throws {RequiredError}
  5348. * @memberof AssetApi
  5349. */
  5350. public downloadFile(assetId: string, key?: string, options?: AxiosRequestConfig) {
  5351. return AssetApiFp(this.configuration).downloadFile(assetId, key, options).then((request) => request(this.axios, this.basePath));
  5352. }
  5353. /**
  5354. *
  5355. * @param {DownloadFilesDto} downloadFilesDto
  5356. * @param {string} [key]
  5357. * @param {*} [options] Override http request option.
  5358. * @throws {RequiredError}
  5359. * @memberof AssetApi
  5360. */
  5361. public downloadFiles(downloadFilesDto: DownloadFilesDto, key?: string, options?: AxiosRequestConfig) {
  5362. return AssetApiFp(this.configuration).downloadFiles(downloadFilesDto, key, options).then((request) => request(this.axios, this.basePath));
  5363. }
  5364. /**
  5365. * Current this is not used in any UI element
  5366. * @param {string} [name]
  5367. * @param {number} [skip]
  5368. * @param {string} [key]
  5369. * @param {*} [options] Override http request option.
  5370. * @throws {RequiredError}
  5371. * @memberof AssetApi
  5372. */
  5373. public downloadLibrary(name?: string, skip?: number, key?: string, options?: AxiosRequestConfig) {
  5374. return AssetApiFp(this.configuration).downloadLibrary(name, skip, key, options).then((request) => request(this.axios, this.basePath));
  5375. }
  5376. /**
  5377. * Get all AssetEntity belong to the user
  5378. * @param {boolean} [isFavorite]
  5379. * @param {boolean} [isArchived]
  5380. * @param {number} [skip]
  5381. * @param {string} [ifNoneMatch] ETag of data already cached on the client
  5382. * @param {*} [options] Override http request option.
  5383. * @throws {RequiredError}
  5384. * @memberof AssetApi
  5385. */
  5386. public getAllAssets(isFavorite?: boolean, isArchived?: boolean, skip?: number, ifNoneMatch?: string, options?: AxiosRequestConfig) {
  5387. return AssetApiFp(this.configuration).getAllAssets(isFavorite, isArchived, skip, ifNoneMatch, options).then((request) => request(this.axios, this.basePath));
  5388. }
  5389. /**
  5390. *
  5391. * @param {*} [options] Override http request option.
  5392. * @throws {RequiredError}
  5393. * @memberof AssetApi
  5394. */
  5395. public getArchivedAssetCountByUserId(options?: AxiosRequestConfig) {
  5396. return AssetApiFp(this.configuration).getArchivedAssetCountByUserId(options).then((request) => request(this.axios, this.basePath));
  5397. }
  5398. /**
  5399. * Get a single asset\'s information
  5400. * @param {string} assetId
  5401. * @param {string} [key]
  5402. * @param {*} [options] Override http request option.
  5403. * @throws {RequiredError}
  5404. * @memberof AssetApi
  5405. */
  5406. public getAssetById(assetId: string, key?: string, options?: AxiosRequestConfig) {
  5407. return AssetApiFp(this.configuration).getAssetById(assetId, key, options).then((request) => request(this.axios, this.basePath));
  5408. }
  5409. /**
  5410. *
  5411. * @param {GetAssetByTimeBucketDto} getAssetByTimeBucketDto
  5412. * @param {*} [options] Override http request option.
  5413. * @throws {RequiredError}
  5414. * @memberof AssetApi
  5415. */
  5416. public getAssetByTimeBucket(getAssetByTimeBucketDto: GetAssetByTimeBucketDto, options?: AxiosRequestConfig) {
  5417. return AssetApiFp(this.configuration).getAssetByTimeBucket(getAssetByTimeBucketDto, options).then((request) => request(this.axios, this.basePath));
  5418. }
  5419. /**
  5420. *
  5421. * @param {GetAssetCountByTimeBucketDto} getAssetCountByTimeBucketDto
  5422. * @param {*} [options] Override http request option.
  5423. * @throws {RequiredError}
  5424. * @memberof AssetApi
  5425. */
  5426. public getAssetCountByTimeBucket(getAssetCountByTimeBucketDto: GetAssetCountByTimeBucketDto, options?: AxiosRequestConfig) {
  5427. return AssetApiFp(this.configuration).getAssetCountByTimeBucket(getAssetCountByTimeBucketDto, options).then((request) => request(this.axios, this.basePath));
  5428. }
  5429. /**
  5430. *
  5431. * @param {*} [options] Override http request option.
  5432. * @throws {RequiredError}
  5433. * @memberof AssetApi
  5434. */
  5435. public getAssetCountByUserId(options?: AxiosRequestConfig) {
  5436. return AssetApiFp(this.configuration).getAssetCountByUserId(options).then((request) => request(this.axios, this.basePath));
  5437. }
  5438. /**
  5439. *
  5440. * @param {*} [options] Override http request option.
  5441. * @throws {RequiredError}
  5442. * @memberof AssetApi
  5443. */
  5444. public getAssetSearchTerms(options?: AxiosRequestConfig) {
  5445. return AssetApiFp(this.configuration).getAssetSearchTerms(options).then((request) => request(this.axios, this.basePath));
  5446. }
  5447. /**
  5448. *
  5449. * @param {string} assetId
  5450. * @param {ThumbnailFormat} [format]
  5451. * @param {string} [key]
  5452. * @param {*} [options] Override http request option.
  5453. * @throws {RequiredError}
  5454. * @memberof AssetApi
  5455. */
  5456. public getAssetThumbnail(assetId: string, format?: ThumbnailFormat, key?: string, options?: AxiosRequestConfig) {
  5457. return AssetApiFp(this.configuration).getAssetThumbnail(assetId, format, key, options).then((request) => request(this.axios, this.basePath));
  5458. }
  5459. /**
  5460. *
  5461. * @param {*} [options] Override http request option.
  5462. * @throws {RequiredError}
  5463. * @memberof AssetApi
  5464. */
  5465. public getCuratedLocations(options?: AxiosRequestConfig) {
  5466. return AssetApiFp(this.configuration).getCuratedLocations(options).then((request) => request(this.axios, this.basePath));
  5467. }
  5468. /**
  5469. *
  5470. * @param {*} [options] Override http request option.
  5471. * @throws {RequiredError}
  5472. * @memberof AssetApi
  5473. */
  5474. public getCuratedObjects(options?: AxiosRequestConfig) {
  5475. return AssetApiFp(this.configuration).getCuratedObjects(options).then((request) => request(this.axios, this.basePath));
  5476. }
  5477. /**
  5478. * Get all assets that have GPS information embedded
  5479. * @param {boolean} [isFavorite]
  5480. * @param {boolean} [isArchived]
  5481. * @param {number} [skip]
  5482. * @param {*} [options] Override http request option.
  5483. * @throws {RequiredError}
  5484. * @memberof AssetApi
  5485. */
  5486. public getMapMarkers(isFavorite?: boolean, isArchived?: boolean, skip?: number, options?: AxiosRequestConfig) {
  5487. return AssetApiFp(this.configuration).getMapMarkers(isFavorite, isArchived, skip, options).then((request) => request(this.axios, this.basePath));
  5488. }
  5489. /**
  5490. * Get all asset of a device that are in the database, ID only.
  5491. * @param {string} deviceId
  5492. * @param {*} [options] Override http request option.
  5493. * @throws {RequiredError}
  5494. * @memberof AssetApi
  5495. */
  5496. public getUserAssetsByDeviceId(deviceId: string, options?: AxiosRequestConfig) {
  5497. return AssetApiFp(this.configuration).getUserAssetsByDeviceId(deviceId, options).then((request) => request(this.axios, this.basePath));
  5498. }
  5499. /**
  5500. *
  5501. * @param {RemoveAssetsDto} removeAssetsDto
  5502. * @param {string} [key]
  5503. * @param {*} [options] Override http request option.
  5504. * @throws {RequiredError}
  5505. * @memberof AssetApi
  5506. */
  5507. public removeAssetsFromSharedLink(removeAssetsDto: RemoveAssetsDto, key?: string, options?: AxiosRequestConfig) {
  5508. return AssetApiFp(this.configuration).removeAssetsFromSharedLink(removeAssetsDto, key, options).then((request) => request(this.axios, this.basePath));
  5509. }
  5510. /**
  5511. *
  5512. * @param {SearchAssetDto} searchAssetDto
  5513. * @param {*} [options] Override http request option.
  5514. * @throws {RequiredError}
  5515. * @memberof AssetApi
  5516. */
  5517. public searchAsset(searchAssetDto: SearchAssetDto, options?: AxiosRequestConfig) {
  5518. return AssetApiFp(this.configuration).searchAsset(searchAssetDto, options).then((request) => request(this.axios, this.basePath));
  5519. }
  5520. /**
  5521. *
  5522. * @param {string} assetId
  5523. * @param {boolean} [isThumb]
  5524. * @param {boolean} [isWeb]
  5525. * @param {string} [key]
  5526. * @param {*} [options] Override http request option.
  5527. * @throws {RequiredError}
  5528. * @memberof AssetApi
  5529. */
  5530. public serveFile(assetId: string, isThumb?: boolean, isWeb?: boolean, key?: string, options?: AxiosRequestConfig) {
  5531. return AssetApiFp(this.configuration).serveFile(assetId, isThumb, isWeb, key, options).then((request) => request(this.axios, this.basePath));
  5532. }
  5533. /**
  5534. * Update an asset
  5535. * @param {string} assetId
  5536. * @param {UpdateAssetDto} updateAssetDto
  5537. * @param {*} [options] Override http request option.
  5538. * @throws {RequiredError}
  5539. * @memberof AssetApi
  5540. */
  5541. public updateAsset(assetId: string, updateAssetDto: UpdateAssetDto, options?: AxiosRequestConfig) {
  5542. return AssetApiFp(this.configuration).updateAsset(assetId, updateAssetDto, options).then((request) => request(this.axios, this.basePath));
  5543. }
  5544. /**
  5545. *
  5546. * @param {AssetTypeEnum} assetType
  5547. * @param {File} assetData
  5548. * @param {string} deviceAssetId
  5549. * @param {string} deviceId
  5550. * @param {string} fileCreatedAt
  5551. * @param {string} fileModifiedAt
  5552. * @param {boolean} isFavorite
  5553. * @param {string} fileExtension
  5554. * @param {string} [key]
  5555. * @param {File} [livePhotoData]
  5556. * @param {boolean} [isArchived]
  5557. * @param {boolean} [isVisible]
  5558. * @param {string} [duration]
  5559. * @param {*} [options] Override http request option.
  5560. * @throws {RequiredError}
  5561. * @memberof AssetApi
  5562. */
  5563. public uploadFile(assetType: AssetTypeEnum, assetData: File, deviceAssetId: string, deviceId: string, fileCreatedAt: string, fileModifiedAt: string, isFavorite: boolean, fileExtension: string, key?: string, livePhotoData?: File, isArchived?: boolean, isVisible?: boolean, duration?: string, options?: AxiosRequestConfig) {
  5564. return AssetApiFp(this.configuration).uploadFile(assetType, assetData, deviceAssetId, deviceId, fileCreatedAt, fileModifiedAt, isFavorite, fileExtension, key, livePhotoData, isArchived, isVisible, duration, options).then((request) => request(this.axios, this.basePath));
  5565. }
  5566. }
  5567. /**
  5568. * AuthenticationApi - axios parameter creator
  5569. * @export
  5570. */
  5571. export const AuthenticationApiAxiosParamCreator = function (configuration?: Configuration) {
  5572. return {
  5573. /**
  5574. *
  5575. * @param {SignUpDto} signUpDto
  5576. * @param {*} [options] Override http request option.
  5577. * @throws {RequiredError}
  5578. */
  5579. adminSignUp: async (signUpDto: SignUpDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5580. // verify required parameter 'signUpDto' is not null or undefined
  5581. assertParamExists('adminSignUp', 'signUpDto', signUpDto)
  5582. const localVarPath = `/auth/admin-sign-up`;
  5583. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5584. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5585. let baseOptions;
  5586. if (configuration) {
  5587. baseOptions = configuration.baseOptions;
  5588. }
  5589. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  5590. const localVarHeaderParameter = {} as any;
  5591. const localVarQueryParameter = {} as any;
  5592. localVarHeaderParameter['Content-Type'] = 'application/json';
  5593. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5594. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5595. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5596. localVarRequestOptions.data = serializeDataIfNeeded(signUpDto, localVarRequestOptions, configuration)
  5597. return {
  5598. url: toPathString(localVarUrlObj),
  5599. options: localVarRequestOptions,
  5600. };
  5601. },
  5602. /**
  5603. *
  5604. * @param {ChangePasswordDto} changePasswordDto
  5605. * @param {*} [options] Override http request option.
  5606. * @throws {RequiredError}
  5607. */
  5608. changePassword: async (changePasswordDto: ChangePasswordDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5609. // verify required parameter 'changePasswordDto' is not null or undefined
  5610. assertParamExists('changePassword', 'changePasswordDto', changePasswordDto)
  5611. const localVarPath = `/auth/change-password`;
  5612. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5613. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5614. let baseOptions;
  5615. if (configuration) {
  5616. baseOptions = configuration.baseOptions;
  5617. }
  5618. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  5619. const localVarHeaderParameter = {} as any;
  5620. const localVarQueryParameter = {} as any;
  5621. // authentication cookie required
  5622. // authentication api_key required
  5623. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5624. // authentication bearer required
  5625. // http bearer authentication required
  5626. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5627. localVarHeaderParameter['Content-Type'] = 'application/json';
  5628. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5629. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5630. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5631. localVarRequestOptions.data = serializeDataIfNeeded(changePasswordDto, localVarRequestOptions, configuration)
  5632. return {
  5633. url: toPathString(localVarUrlObj),
  5634. options: localVarRequestOptions,
  5635. };
  5636. },
  5637. /**
  5638. *
  5639. * @param {*} [options] Override http request option.
  5640. * @throws {RequiredError}
  5641. */
  5642. getAuthDevices: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5643. const localVarPath = `/auth/devices`;
  5644. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5645. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5646. let baseOptions;
  5647. if (configuration) {
  5648. baseOptions = configuration.baseOptions;
  5649. }
  5650. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  5651. const localVarHeaderParameter = {} as any;
  5652. const localVarQueryParameter = {} as any;
  5653. // authentication cookie required
  5654. // authentication api_key required
  5655. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5656. // authentication bearer required
  5657. // http bearer authentication required
  5658. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5659. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5660. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5661. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5662. return {
  5663. url: toPathString(localVarUrlObj),
  5664. options: localVarRequestOptions,
  5665. };
  5666. },
  5667. /**
  5668. *
  5669. * @param {LoginCredentialDto} loginCredentialDto
  5670. * @param {*} [options] Override http request option.
  5671. * @throws {RequiredError}
  5672. */
  5673. login: async (loginCredentialDto: LoginCredentialDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5674. // verify required parameter 'loginCredentialDto' is not null or undefined
  5675. assertParamExists('login', 'loginCredentialDto', loginCredentialDto)
  5676. const localVarPath = `/auth/login`;
  5677. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5678. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5679. let baseOptions;
  5680. if (configuration) {
  5681. baseOptions = configuration.baseOptions;
  5682. }
  5683. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  5684. const localVarHeaderParameter = {} as any;
  5685. const localVarQueryParameter = {} as any;
  5686. localVarHeaderParameter['Content-Type'] = 'application/json';
  5687. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5688. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5689. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5690. localVarRequestOptions.data = serializeDataIfNeeded(loginCredentialDto, localVarRequestOptions, configuration)
  5691. return {
  5692. url: toPathString(localVarUrlObj),
  5693. options: localVarRequestOptions,
  5694. };
  5695. },
  5696. /**
  5697. *
  5698. * @param {*} [options] Override http request option.
  5699. * @throws {RequiredError}
  5700. */
  5701. logout: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5702. const localVarPath = `/auth/logout`;
  5703. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5704. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5705. let baseOptions;
  5706. if (configuration) {
  5707. baseOptions = configuration.baseOptions;
  5708. }
  5709. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  5710. const localVarHeaderParameter = {} as any;
  5711. const localVarQueryParameter = {} as any;
  5712. // authentication cookie required
  5713. // authentication api_key required
  5714. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5715. // authentication bearer required
  5716. // http bearer authentication required
  5717. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5718. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5719. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5720. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5721. return {
  5722. url: toPathString(localVarUrlObj),
  5723. options: localVarRequestOptions,
  5724. };
  5725. },
  5726. /**
  5727. *
  5728. * @param {string} id
  5729. * @param {*} [options] Override http request option.
  5730. * @throws {RequiredError}
  5731. */
  5732. logoutAuthDevice: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5733. // verify required parameter 'id' is not null or undefined
  5734. assertParamExists('logoutAuthDevice', 'id', id)
  5735. const localVarPath = `/auth/devices/{id}`
  5736. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  5737. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5738. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5739. let baseOptions;
  5740. if (configuration) {
  5741. baseOptions = configuration.baseOptions;
  5742. }
  5743. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  5744. const localVarHeaderParameter = {} as any;
  5745. const localVarQueryParameter = {} as any;
  5746. // authentication cookie required
  5747. // authentication api_key required
  5748. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5749. // authentication bearer required
  5750. // http bearer authentication required
  5751. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5752. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5753. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5754. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5755. return {
  5756. url: toPathString(localVarUrlObj),
  5757. options: localVarRequestOptions,
  5758. };
  5759. },
  5760. /**
  5761. *
  5762. * @param {*} [options] Override http request option.
  5763. * @throws {RequiredError}
  5764. */
  5765. logoutAuthDevices: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5766. const localVarPath = `/auth/devices`;
  5767. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5768. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5769. let baseOptions;
  5770. if (configuration) {
  5771. baseOptions = configuration.baseOptions;
  5772. }
  5773. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  5774. const localVarHeaderParameter = {} as any;
  5775. const localVarQueryParameter = {} as any;
  5776. // authentication cookie required
  5777. // authentication api_key required
  5778. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5779. // authentication bearer required
  5780. // http bearer authentication required
  5781. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5782. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5783. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5784. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5785. return {
  5786. url: toPathString(localVarUrlObj),
  5787. options: localVarRequestOptions,
  5788. };
  5789. },
  5790. /**
  5791. *
  5792. * @param {*} [options] Override http request option.
  5793. * @throws {RequiredError}
  5794. */
  5795. validateAccessToken: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5796. const localVarPath = `/auth/validateToken`;
  5797. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5798. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5799. let baseOptions;
  5800. if (configuration) {
  5801. baseOptions = configuration.baseOptions;
  5802. }
  5803. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  5804. const localVarHeaderParameter = {} as any;
  5805. const localVarQueryParameter = {} as any;
  5806. // authentication cookie required
  5807. // authentication api_key required
  5808. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5809. // authentication bearer required
  5810. // http bearer authentication required
  5811. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5812. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5813. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5814. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5815. return {
  5816. url: toPathString(localVarUrlObj),
  5817. options: localVarRequestOptions,
  5818. };
  5819. },
  5820. }
  5821. };
  5822. /**
  5823. * AuthenticationApi - functional programming interface
  5824. * @export
  5825. */
  5826. export const AuthenticationApiFp = function(configuration?: Configuration) {
  5827. const localVarAxiosParamCreator = AuthenticationApiAxiosParamCreator(configuration)
  5828. return {
  5829. /**
  5830. *
  5831. * @param {SignUpDto} signUpDto
  5832. * @param {*} [options] Override http request option.
  5833. * @throws {RequiredError}
  5834. */
  5835. async adminSignUp(signUpDto: SignUpDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AdminSignupResponseDto>> {
  5836. const localVarAxiosArgs = await localVarAxiosParamCreator.adminSignUp(signUpDto, options);
  5837. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5838. },
  5839. /**
  5840. *
  5841. * @param {ChangePasswordDto} changePasswordDto
  5842. * @param {*} [options] Override http request option.
  5843. * @throws {RequiredError}
  5844. */
  5845. async changePassword(changePasswordDto: ChangePasswordDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  5846. const localVarAxiosArgs = await localVarAxiosParamCreator.changePassword(changePasswordDto, options);
  5847. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5848. },
  5849. /**
  5850. *
  5851. * @param {*} [options] Override http request option.
  5852. * @throws {RequiredError}
  5853. */
  5854. async getAuthDevices(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AuthDeviceResponseDto>>> {
  5855. const localVarAxiosArgs = await localVarAxiosParamCreator.getAuthDevices(options);
  5856. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5857. },
  5858. /**
  5859. *
  5860. * @param {LoginCredentialDto} loginCredentialDto
  5861. * @param {*} [options] Override http request option.
  5862. * @throws {RequiredError}
  5863. */
  5864. async login(loginCredentialDto: LoginCredentialDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LoginResponseDto>> {
  5865. const localVarAxiosArgs = await localVarAxiosParamCreator.login(loginCredentialDto, options);
  5866. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5867. },
  5868. /**
  5869. *
  5870. * @param {*} [options] Override http request option.
  5871. * @throws {RequiredError}
  5872. */
  5873. async logout(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LogoutResponseDto>> {
  5874. const localVarAxiosArgs = await localVarAxiosParamCreator.logout(options);
  5875. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5876. },
  5877. /**
  5878. *
  5879. * @param {string} id
  5880. * @param {*} [options] Override http request option.
  5881. * @throws {RequiredError}
  5882. */
  5883. async logoutAuthDevice(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  5884. const localVarAxiosArgs = await localVarAxiosParamCreator.logoutAuthDevice(id, options);
  5885. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5886. },
  5887. /**
  5888. *
  5889. * @param {*} [options] Override http request option.
  5890. * @throws {RequiredError}
  5891. */
  5892. async logoutAuthDevices(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  5893. const localVarAxiosArgs = await localVarAxiosParamCreator.logoutAuthDevices(options);
  5894. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5895. },
  5896. /**
  5897. *
  5898. * @param {*} [options] Override http request option.
  5899. * @throws {RequiredError}
  5900. */
  5901. async validateAccessToken(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ValidateAccessTokenResponseDto>> {
  5902. const localVarAxiosArgs = await localVarAxiosParamCreator.validateAccessToken(options);
  5903. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5904. },
  5905. }
  5906. };
  5907. /**
  5908. * AuthenticationApi - factory interface
  5909. * @export
  5910. */
  5911. export const AuthenticationApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  5912. const localVarFp = AuthenticationApiFp(configuration)
  5913. return {
  5914. /**
  5915. *
  5916. * @param {SignUpDto} signUpDto
  5917. * @param {*} [options] Override http request option.
  5918. * @throws {RequiredError}
  5919. */
  5920. adminSignUp(signUpDto: SignUpDto, options?: any): AxiosPromise<AdminSignupResponseDto> {
  5921. return localVarFp.adminSignUp(signUpDto, options).then((request) => request(axios, basePath));
  5922. },
  5923. /**
  5924. *
  5925. * @param {ChangePasswordDto} changePasswordDto
  5926. * @param {*} [options] Override http request option.
  5927. * @throws {RequiredError}
  5928. */
  5929. changePassword(changePasswordDto: ChangePasswordDto, options?: any): AxiosPromise<UserResponseDto> {
  5930. return localVarFp.changePassword(changePasswordDto, options).then((request) => request(axios, basePath));
  5931. },
  5932. /**
  5933. *
  5934. * @param {*} [options] Override http request option.
  5935. * @throws {RequiredError}
  5936. */
  5937. getAuthDevices(options?: any): AxiosPromise<Array<AuthDeviceResponseDto>> {
  5938. return localVarFp.getAuthDevices(options).then((request) => request(axios, basePath));
  5939. },
  5940. /**
  5941. *
  5942. * @param {LoginCredentialDto} loginCredentialDto
  5943. * @param {*} [options] Override http request option.
  5944. * @throws {RequiredError}
  5945. */
  5946. login(loginCredentialDto: LoginCredentialDto, options?: any): AxiosPromise<LoginResponseDto> {
  5947. return localVarFp.login(loginCredentialDto, options).then((request) => request(axios, basePath));
  5948. },
  5949. /**
  5950. *
  5951. * @param {*} [options] Override http request option.
  5952. * @throws {RequiredError}
  5953. */
  5954. logout(options?: any): AxiosPromise<LogoutResponseDto> {
  5955. return localVarFp.logout(options).then((request) => request(axios, basePath));
  5956. },
  5957. /**
  5958. *
  5959. * @param {string} id
  5960. * @param {*} [options] Override http request option.
  5961. * @throws {RequiredError}
  5962. */
  5963. logoutAuthDevice(id: string, options?: any): AxiosPromise<void> {
  5964. return localVarFp.logoutAuthDevice(id, options).then((request) => request(axios, basePath));
  5965. },
  5966. /**
  5967. *
  5968. * @param {*} [options] Override http request option.
  5969. * @throws {RequiredError}
  5970. */
  5971. logoutAuthDevices(options?: any): AxiosPromise<void> {
  5972. return localVarFp.logoutAuthDevices(options).then((request) => request(axios, basePath));
  5973. },
  5974. /**
  5975. *
  5976. * @param {*} [options] Override http request option.
  5977. * @throws {RequiredError}
  5978. */
  5979. validateAccessToken(options?: any): AxiosPromise<ValidateAccessTokenResponseDto> {
  5980. return localVarFp.validateAccessToken(options).then((request) => request(axios, basePath));
  5981. },
  5982. };
  5983. };
  5984. /**
  5985. * AuthenticationApi - object-oriented interface
  5986. * @export
  5987. * @class AuthenticationApi
  5988. * @extends {BaseAPI}
  5989. */
  5990. export class AuthenticationApi extends BaseAPI {
  5991. /**
  5992. *
  5993. * @param {SignUpDto} signUpDto
  5994. * @param {*} [options] Override http request option.
  5995. * @throws {RequiredError}
  5996. * @memberof AuthenticationApi
  5997. */
  5998. public adminSignUp(signUpDto: SignUpDto, options?: AxiosRequestConfig) {
  5999. return AuthenticationApiFp(this.configuration).adminSignUp(signUpDto, options).then((request) => request(this.axios, this.basePath));
  6000. }
  6001. /**
  6002. *
  6003. * @param {ChangePasswordDto} changePasswordDto
  6004. * @param {*} [options] Override http request option.
  6005. * @throws {RequiredError}
  6006. * @memberof AuthenticationApi
  6007. */
  6008. public changePassword(changePasswordDto: ChangePasswordDto, options?: AxiosRequestConfig) {
  6009. return AuthenticationApiFp(this.configuration).changePassword(changePasswordDto, options).then((request) => request(this.axios, this.basePath));
  6010. }
  6011. /**
  6012. *
  6013. * @param {*} [options] Override http request option.
  6014. * @throws {RequiredError}
  6015. * @memberof AuthenticationApi
  6016. */
  6017. public getAuthDevices(options?: AxiosRequestConfig) {
  6018. return AuthenticationApiFp(this.configuration).getAuthDevices(options).then((request) => request(this.axios, this.basePath));
  6019. }
  6020. /**
  6021. *
  6022. * @param {LoginCredentialDto} loginCredentialDto
  6023. * @param {*} [options] Override http request option.
  6024. * @throws {RequiredError}
  6025. * @memberof AuthenticationApi
  6026. */
  6027. public login(loginCredentialDto: LoginCredentialDto, options?: AxiosRequestConfig) {
  6028. return AuthenticationApiFp(this.configuration).login(loginCredentialDto, options).then((request) => request(this.axios, this.basePath));
  6029. }
  6030. /**
  6031. *
  6032. * @param {*} [options] Override http request option.
  6033. * @throws {RequiredError}
  6034. * @memberof AuthenticationApi
  6035. */
  6036. public logout(options?: AxiosRequestConfig) {
  6037. return AuthenticationApiFp(this.configuration).logout(options).then((request) => request(this.axios, this.basePath));
  6038. }
  6039. /**
  6040. *
  6041. * @param {string} id
  6042. * @param {*} [options] Override http request option.
  6043. * @throws {RequiredError}
  6044. * @memberof AuthenticationApi
  6045. */
  6046. public logoutAuthDevice(id: string, options?: AxiosRequestConfig) {
  6047. return AuthenticationApiFp(this.configuration).logoutAuthDevice(id, options).then((request) => request(this.axios, this.basePath));
  6048. }
  6049. /**
  6050. *
  6051. * @param {*} [options] Override http request option.
  6052. * @throws {RequiredError}
  6053. * @memberof AuthenticationApi
  6054. */
  6055. public logoutAuthDevices(options?: AxiosRequestConfig) {
  6056. return AuthenticationApiFp(this.configuration).logoutAuthDevices(options).then((request) => request(this.axios, this.basePath));
  6057. }
  6058. /**
  6059. *
  6060. * @param {*} [options] Override http request option.
  6061. * @throws {RequiredError}
  6062. * @memberof AuthenticationApi
  6063. */
  6064. public validateAccessToken(options?: AxiosRequestConfig) {
  6065. return AuthenticationApiFp(this.configuration).validateAccessToken(options).then((request) => request(this.axios, this.basePath));
  6066. }
  6067. }
  6068. /**
  6069. * JobApi - axios parameter creator
  6070. * @export
  6071. */
  6072. export const JobApiAxiosParamCreator = function (configuration?: Configuration) {
  6073. return {
  6074. /**
  6075. *
  6076. * @param {*} [options] Override http request option.
  6077. * @throws {RequiredError}
  6078. */
  6079. getAllJobsStatus: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6080. const localVarPath = `/jobs`;
  6081. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6082. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6083. let baseOptions;
  6084. if (configuration) {
  6085. baseOptions = configuration.baseOptions;
  6086. }
  6087. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6088. const localVarHeaderParameter = {} as any;
  6089. const localVarQueryParameter = {} as any;
  6090. // authentication cookie required
  6091. // authentication api_key required
  6092. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6093. // authentication bearer required
  6094. // http bearer authentication required
  6095. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6096. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6097. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6098. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6099. return {
  6100. url: toPathString(localVarUrlObj),
  6101. options: localVarRequestOptions,
  6102. };
  6103. },
  6104. /**
  6105. *
  6106. * @param {JobName} jobId
  6107. * @param {JobCommandDto} jobCommandDto
  6108. * @param {*} [options] Override http request option.
  6109. * @throws {RequiredError}
  6110. */
  6111. sendJobCommand: async (jobId: JobName, jobCommandDto: JobCommandDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6112. // verify required parameter 'jobId' is not null or undefined
  6113. assertParamExists('sendJobCommand', 'jobId', jobId)
  6114. // verify required parameter 'jobCommandDto' is not null or undefined
  6115. assertParamExists('sendJobCommand', 'jobCommandDto', jobCommandDto)
  6116. const localVarPath = `/jobs/{jobId}`
  6117. .replace(`{${"jobId"}}`, encodeURIComponent(String(jobId)));
  6118. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6119. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6120. let baseOptions;
  6121. if (configuration) {
  6122. baseOptions = configuration.baseOptions;
  6123. }
  6124. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  6125. const localVarHeaderParameter = {} as any;
  6126. const localVarQueryParameter = {} as any;
  6127. // authentication cookie required
  6128. // authentication api_key required
  6129. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6130. // authentication bearer required
  6131. // http bearer authentication required
  6132. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6133. localVarHeaderParameter['Content-Type'] = 'application/json';
  6134. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6135. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6136. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6137. localVarRequestOptions.data = serializeDataIfNeeded(jobCommandDto, localVarRequestOptions, configuration)
  6138. return {
  6139. url: toPathString(localVarUrlObj),
  6140. options: localVarRequestOptions,
  6141. };
  6142. },
  6143. }
  6144. };
  6145. /**
  6146. * JobApi - functional programming interface
  6147. * @export
  6148. */
  6149. export const JobApiFp = function(configuration?: Configuration) {
  6150. const localVarAxiosParamCreator = JobApiAxiosParamCreator(configuration)
  6151. return {
  6152. /**
  6153. *
  6154. * @param {*} [options] Override http request option.
  6155. * @throws {RequiredError}
  6156. */
  6157. async getAllJobsStatus(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AllJobStatusResponseDto>> {
  6158. const localVarAxiosArgs = await localVarAxiosParamCreator.getAllJobsStatus(options);
  6159. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6160. },
  6161. /**
  6162. *
  6163. * @param {JobName} jobId
  6164. * @param {JobCommandDto} jobCommandDto
  6165. * @param {*} [options] Override http request option.
  6166. * @throws {RequiredError}
  6167. */
  6168. async sendJobCommand(jobId: JobName, jobCommandDto: JobCommandDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<JobStatusDto>> {
  6169. const localVarAxiosArgs = await localVarAxiosParamCreator.sendJobCommand(jobId, jobCommandDto, options);
  6170. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6171. },
  6172. }
  6173. };
  6174. /**
  6175. * JobApi - factory interface
  6176. * @export
  6177. */
  6178. export const JobApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  6179. const localVarFp = JobApiFp(configuration)
  6180. return {
  6181. /**
  6182. *
  6183. * @param {*} [options] Override http request option.
  6184. * @throws {RequiredError}
  6185. */
  6186. getAllJobsStatus(options?: any): AxiosPromise<AllJobStatusResponseDto> {
  6187. return localVarFp.getAllJobsStatus(options).then((request) => request(axios, basePath));
  6188. },
  6189. /**
  6190. *
  6191. * @param {JobName} jobId
  6192. * @param {JobCommandDto} jobCommandDto
  6193. * @param {*} [options] Override http request option.
  6194. * @throws {RequiredError}
  6195. */
  6196. sendJobCommand(jobId: JobName, jobCommandDto: JobCommandDto, options?: any): AxiosPromise<JobStatusDto> {
  6197. return localVarFp.sendJobCommand(jobId, jobCommandDto, options).then((request) => request(axios, basePath));
  6198. },
  6199. };
  6200. };
  6201. /**
  6202. * JobApi - object-oriented interface
  6203. * @export
  6204. * @class JobApi
  6205. * @extends {BaseAPI}
  6206. */
  6207. export class JobApi extends BaseAPI {
  6208. /**
  6209. *
  6210. * @param {*} [options] Override http request option.
  6211. * @throws {RequiredError}
  6212. * @memberof JobApi
  6213. */
  6214. public getAllJobsStatus(options?: AxiosRequestConfig) {
  6215. return JobApiFp(this.configuration).getAllJobsStatus(options).then((request) => request(this.axios, this.basePath));
  6216. }
  6217. /**
  6218. *
  6219. * @param {JobName} jobId
  6220. * @param {JobCommandDto} jobCommandDto
  6221. * @param {*} [options] Override http request option.
  6222. * @throws {RequiredError}
  6223. * @memberof JobApi
  6224. */
  6225. public sendJobCommand(jobId: JobName, jobCommandDto: JobCommandDto, options?: AxiosRequestConfig) {
  6226. return JobApiFp(this.configuration).sendJobCommand(jobId, jobCommandDto, options).then((request) => request(this.axios, this.basePath));
  6227. }
  6228. }
  6229. /**
  6230. * OAuthApi - axios parameter creator
  6231. * @export
  6232. */
  6233. export const OAuthApiAxiosParamCreator = function (configuration?: Configuration) {
  6234. return {
  6235. /**
  6236. *
  6237. * @param {OAuthCallbackDto} oAuthCallbackDto
  6238. * @param {*} [options] Override http request option.
  6239. * @throws {RequiredError}
  6240. */
  6241. callback: async (oAuthCallbackDto: OAuthCallbackDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6242. // verify required parameter 'oAuthCallbackDto' is not null or undefined
  6243. assertParamExists('callback', 'oAuthCallbackDto', oAuthCallbackDto)
  6244. const localVarPath = `/oauth/callback`;
  6245. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6246. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6247. let baseOptions;
  6248. if (configuration) {
  6249. baseOptions = configuration.baseOptions;
  6250. }
  6251. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  6252. const localVarHeaderParameter = {} as any;
  6253. const localVarQueryParameter = {} as any;
  6254. localVarHeaderParameter['Content-Type'] = 'application/json';
  6255. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6256. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6257. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6258. localVarRequestOptions.data = serializeDataIfNeeded(oAuthCallbackDto, localVarRequestOptions, configuration)
  6259. return {
  6260. url: toPathString(localVarUrlObj),
  6261. options: localVarRequestOptions,
  6262. };
  6263. },
  6264. /**
  6265. *
  6266. * @param {OAuthConfigDto} oAuthConfigDto
  6267. * @param {*} [options] Override http request option.
  6268. * @throws {RequiredError}
  6269. */
  6270. generateConfig: async (oAuthConfigDto: OAuthConfigDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6271. // verify required parameter 'oAuthConfigDto' is not null or undefined
  6272. assertParamExists('generateConfig', 'oAuthConfigDto', oAuthConfigDto)
  6273. const localVarPath = `/oauth/config`;
  6274. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6275. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6276. let baseOptions;
  6277. if (configuration) {
  6278. baseOptions = configuration.baseOptions;
  6279. }
  6280. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  6281. const localVarHeaderParameter = {} as any;
  6282. const localVarQueryParameter = {} as any;
  6283. localVarHeaderParameter['Content-Type'] = 'application/json';
  6284. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6285. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6286. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6287. localVarRequestOptions.data = serializeDataIfNeeded(oAuthConfigDto, localVarRequestOptions, configuration)
  6288. return {
  6289. url: toPathString(localVarUrlObj),
  6290. options: localVarRequestOptions,
  6291. };
  6292. },
  6293. /**
  6294. *
  6295. * @param {OAuthCallbackDto} oAuthCallbackDto
  6296. * @param {*} [options] Override http request option.
  6297. * @throws {RequiredError}
  6298. */
  6299. link: async (oAuthCallbackDto: OAuthCallbackDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6300. // verify required parameter 'oAuthCallbackDto' is not null or undefined
  6301. assertParamExists('link', 'oAuthCallbackDto', oAuthCallbackDto)
  6302. const localVarPath = `/oauth/link`;
  6303. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6304. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6305. let baseOptions;
  6306. if (configuration) {
  6307. baseOptions = configuration.baseOptions;
  6308. }
  6309. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  6310. const localVarHeaderParameter = {} as any;
  6311. const localVarQueryParameter = {} as any;
  6312. // authentication cookie required
  6313. // authentication api_key required
  6314. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6315. // authentication bearer required
  6316. // http bearer authentication required
  6317. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6318. localVarHeaderParameter['Content-Type'] = 'application/json';
  6319. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6320. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6321. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6322. localVarRequestOptions.data = serializeDataIfNeeded(oAuthCallbackDto, localVarRequestOptions, configuration)
  6323. return {
  6324. url: toPathString(localVarUrlObj),
  6325. options: localVarRequestOptions,
  6326. };
  6327. },
  6328. /**
  6329. *
  6330. * @param {*} [options] Override http request option.
  6331. * @throws {RequiredError}
  6332. */
  6333. mobileRedirect: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6334. const localVarPath = `/oauth/mobile-redirect`;
  6335. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6336. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6337. let baseOptions;
  6338. if (configuration) {
  6339. baseOptions = configuration.baseOptions;
  6340. }
  6341. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6342. const localVarHeaderParameter = {} as any;
  6343. const localVarQueryParameter = {} as any;
  6344. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6345. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6346. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6347. return {
  6348. url: toPathString(localVarUrlObj),
  6349. options: localVarRequestOptions,
  6350. };
  6351. },
  6352. /**
  6353. *
  6354. * @param {*} [options] Override http request option.
  6355. * @throws {RequiredError}
  6356. */
  6357. unlink: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6358. const localVarPath = `/oauth/unlink`;
  6359. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6360. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6361. let baseOptions;
  6362. if (configuration) {
  6363. baseOptions = configuration.baseOptions;
  6364. }
  6365. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  6366. const localVarHeaderParameter = {} as any;
  6367. const localVarQueryParameter = {} as any;
  6368. // authentication cookie required
  6369. // authentication api_key required
  6370. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6371. // authentication bearer required
  6372. // http bearer authentication required
  6373. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6374. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6375. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6376. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6377. return {
  6378. url: toPathString(localVarUrlObj),
  6379. options: localVarRequestOptions,
  6380. };
  6381. },
  6382. }
  6383. };
  6384. /**
  6385. * OAuthApi - functional programming interface
  6386. * @export
  6387. */
  6388. export const OAuthApiFp = function(configuration?: Configuration) {
  6389. const localVarAxiosParamCreator = OAuthApiAxiosParamCreator(configuration)
  6390. return {
  6391. /**
  6392. *
  6393. * @param {OAuthCallbackDto} oAuthCallbackDto
  6394. * @param {*} [options] Override http request option.
  6395. * @throws {RequiredError}
  6396. */
  6397. async callback(oAuthCallbackDto: OAuthCallbackDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LoginResponseDto>> {
  6398. const localVarAxiosArgs = await localVarAxiosParamCreator.callback(oAuthCallbackDto, options);
  6399. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6400. },
  6401. /**
  6402. *
  6403. * @param {OAuthConfigDto} oAuthConfigDto
  6404. * @param {*} [options] Override http request option.
  6405. * @throws {RequiredError}
  6406. */
  6407. async generateConfig(oAuthConfigDto: OAuthConfigDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OAuthConfigResponseDto>> {
  6408. const localVarAxiosArgs = await localVarAxiosParamCreator.generateConfig(oAuthConfigDto, options);
  6409. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6410. },
  6411. /**
  6412. *
  6413. * @param {OAuthCallbackDto} oAuthCallbackDto
  6414. * @param {*} [options] Override http request option.
  6415. * @throws {RequiredError}
  6416. */
  6417. async link(oAuthCallbackDto: OAuthCallbackDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  6418. const localVarAxiosArgs = await localVarAxiosParamCreator.link(oAuthCallbackDto, options);
  6419. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6420. },
  6421. /**
  6422. *
  6423. * @param {*} [options] Override http request option.
  6424. * @throws {RequiredError}
  6425. */
  6426. async mobileRedirect(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  6427. const localVarAxiosArgs = await localVarAxiosParamCreator.mobileRedirect(options);
  6428. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6429. },
  6430. /**
  6431. *
  6432. * @param {*} [options] Override http request option.
  6433. * @throws {RequiredError}
  6434. */
  6435. async unlink(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  6436. const localVarAxiosArgs = await localVarAxiosParamCreator.unlink(options);
  6437. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6438. },
  6439. }
  6440. };
  6441. /**
  6442. * OAuthApi - factory interface
  6443. * @export
  6444. */
  6445. export const OAuthApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  6446. const localVarFp = OAuthApiFp(configuration)
  6447. return {
  6448. /**
  6449. *
  6450. * @param {OAuthCallbackDto} oAuthCallbackDto
  6451. * @param {*} [options] Override http request option.
  6452. * @throws {RequiredError}
  6453. */
  6454. callback(oAuthCallbackDto: OAuthCallbackDto, options?: any): AxiosPromise<LoginResponseDto> {
  6455. return localVarFp.callback(oAuthCallbackDto, options).then((request) => request(axios, basePath));
  6456. },
  6457. /**
  6458. *
  6459. * @param {OAuthConfigDto} oAuthConfigDto
  6460. * @param {*} [options] Override http request option.
  6461. * @throws {RequiredError}
  6462. */
  6463. generateConfig(oAuthConfigDto: OAuthConfigDto, options?: any): AxiosPromise<OAuthConfigResponseDto> {
  6464. return localVarFp.generateConfig(oAuthConfigDto, options).then((request) => request(axios, basePath));
  6465. },
  6466. /**
  6467. *
  6468. * @param {OAuthCallbackDto} oAuthCallbackDto
  6469. * @param {*} [options] Override http request option.
  6470. * @throws {RequiredError}
  6471. */
  6472. link(oAuthCallbackDto: OAuthCallbackDto, options?: any): AxiosPromise<UserResponseDto> {
  6473. return localVarFp.link(oAuthCallbackDto, options).then((request) => request(axios, basePath));
  6474. },
  6475. /**
  6476. *
  6477. * @param {*} [options] Override http request option.
  6478. * @throws {RequiredError}
  6479. */
  6480. mobileRedirect(options?: any): AxiosPromise<void> {
  6481. return localVarFp.mobileRedirect(options).then((request) => request(axios, basePath));
  6482. },
  6483. /**
  6484. *
  6485. * @param {*} [options] Override http request option.
  6486. * @throws {RequiredError}
  6487. */
  6488. unlink(options?: any): AxiosPromise<UserResponseDto> {
  6489. return localVarFp.unlink(options).then((request) => request(axios, basePath));
  6490. },
  6491. };
  6492. };
  6493. /**
  6494. * OAuthApi - object-oriented interface
  6495. * @export
  6496. * @class OAuthApi
  6497. * @extends {BaseAPI}
  6498. */
  6499. export class OAuthApi extends BaseAPI {
  6500. /**
  6501. *
  6502. * @param {OAuthCallbackDto} oAuthCallbackDto
  6503. * @param {*} [options] Override http request option.
  6504. * @throws {RequiredError}
  6505. * @memberof OAuthApi
  6506. */
  6507. public callback(oAuthCallbackDto: OAuthCallbackDto, options?: AxiosRequestConfig) {
  6508. return OAuthApiFp(this.configuration).callback(oAuthCallbackDto, options).then((request) => request(this.axios, this.basePath));
  6509. }
  6510. /**
  6511. *
  6512. * @param {OAuthConfigDto} oAuthConfigDto
  6513. * @param {*} [options] Override http request option.
  6514. * @throws {RequiredError}
  6515. * @memberof OAuthApi
  6516. */
  6517. public generateConfig(oAuthConfigDto: OAuthConfigDto, options?: AxiosRequestConfig) {
  6518. return OAuthApiFp(this.configuration).generateConfig(oAuthConfigDto, options).then((request) => request(this.axios, this.basePath));
  6519. }
  6520. /**
  6521. *
  6522. * @param {OAuthCallbackDto} oAuthCallbackDto
  6523. * @param {*} [options] Override http request option.
  6524. * @throws {RequiredError}
  6525. * @memberof OAuthApi
  6526. */
  6527. public link(oAuthCallbackDto: OAuthCallbackDto, options?: AxiosRequestConfig) {
  6528. return OAuthApiFp(this.configuration).link(oAuthCallbackDto, options).then((request) => request(this.axios, this.basePath));
  6529. }
  6530. /**
  6531. *
  6532. * @param {*} [options] Override http request option.
  6533. * @throws {RequiredError}
  6534. * @memberof OAuthApi
  6535. */
  6536. public mobileRedirect(options?: AxiosRequestConfig) {
  6537. return OAuthApiFp(this.configuration).mobileRedirect(options).then((request) => request(this.axios, this.basePath));
  6538. }
  6539. /**
  6540. *
  6541. * @param {*} [options] Override http request option.
  6542. * @throws {RequiredError}
  6543. * @memberof OAuthApi
  6544. */
  6545. public unlink(options?: AxiosRequestConfig) {
  6546. return OAuthApiFp(this.configuration).unlink(options).then((request) => request(this.axios, this.basePath));
  6547. }
  6548. }
  6549. /**
  6550. * SearchApi - axios parameter creator
  6551. * @export
  6552. */
  6553. export const SearchApiAxiosParamCreator = function (configuration?: Configuration) {
  6554. return {
  6555. /**
  6556. *
  6557. * @param {*} [options] Override http request option.
  6558. * @throws {RequiredError}
  6559. */
  6560. getExploreData: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6561. const localVarPath = `/search/explore`;
  6562. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6563. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6564. let baseOptions;
  6565. if (configuration) {
  6566. baseOptions = configuration.baseOptions;
  6567. }
  6568. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6569. const localVarHeaderParameter = {} as any;
  6570. const localVarQueryParameter = {} as any;
  6571. // authentication cookie required
  6572. // authentication api_key required
  6573. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6574. // authentication bearer required
  6575. // http bearer authentication required
  6576. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6577. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6578. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6579. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6580. return {
  6581. url: toPathString(localVarUrlObj),
  6582. options: localVarRequestOptions,
  6583. };
  6584. },
  6585. /**
  6586. *
  6587. * @param {*} [options] Override http request option.
  6588. * @throws {RequiredError}
  6589. */
  6590. getSearchConfig: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6591. const localVarPath = `/search/config`;
  6592. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6593. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6594. let baseOptions;
  6595. if (configuration) {
  6596. baseOptions = configuration.baseOptions;
  6597. }
  6598. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6599. const localVarHeaderParameter = {} as any;
  6600. const localVarQueryParameter = {} as any;
  6601. // authentication cookie required
  6602. // authentication api_key required
  6603. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6604. // authentication bearer required
  6605. // http bearer authentication required
  6606. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6607. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6608. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6609. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6610. return {
  6611. url: toPathString(localVarUrlObj),
  6612. options: localVarRequestOptions,
  6613. };
  6614. },
  6615. /**
  6616. *
  6617. * @param {string} [q]
  6618. * @param {string} [query]
  6619. * @param {boolean} [clip]
  6620. * @param {'IMAGE' | 'VIDEO' | 'AUDIO' | 'OTHER'} [type]
  6621. * @param {boolean} [isFavorite]
  6622. * @param {boolean} [isArchived]
  6623. * @param {string} [exifInfoCity]
  6624. * @param {string} [exifInfoState]
  6625. * @param {string} [exifInfoCountry]
  6626. * @param {string} [exifInfoMake]
  6627. * @param {string} [exifInfoModel]
  6628. * @param {Array<string>} [smartInfoObjects]
  6629. * @param {Array<string>} [smartInfoTags]
  6630. * @param {boolean} [recent]
  6631. * @param {boolean} [motion]
  6632. * @param {*} [options] Override http request option.
  6633. * @throws {RequiredError}
  6634. */
  6635. 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, smartInfoObjects?: Array<string>, smartInfoTags?: Array<string>, recent?: boolean, motion?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6636. const localVarPath = `/search`;
  6637. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6638. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6639. let baseOptions;
  6640. if (configuration) {
  6641. baseOptions = configuration.baseOptions;
  6642. }
  6643. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6644. const localVarHeaderParameter = {} as any;
  6645. const localVarQueryParameter = {} as any;
  6646. // authentication cookie required
  6647. // authentication api_key required
  6648. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6649. // authentication bearer required
  6650. // http bearer authentication required
  6651. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6652. if (q !== undefined) {
  6653. localVarQueryParameter['q'] = q;
  6654. }
  6655. if (query !== undefined) {
  6656. localVarQueryParameter['query'] = query;
  6657. }
  6658. if (clip !== undefined) {
  6659. localVarQueryParameter['clip'] = clip;
  6660. }
  6661. if (type !== undefined) {
  6662. localVarQueryParameter['type'] = type;
  6663. }
  6664. if (isFavorite !== undefined) {
  6665. localVarQueryParameter['isFavorite'] = isFavorite;
  6666. }
  6667. if (isArchived !== undefined) {
  6668. localVarQueryParameter['isArchived'] = isArchived;
  6669. }
  6670. if (exifInfoCity !== undefined) {
  6671. localVarQueryParameter['exifInfo.city'] = exifInfoCity;
  6672. }
  6673. if (exifInfoState !== undefined) {
  6674. localVarQueryParameter['exifInfo.state'] = exifInfoState;
  6675. }
  6676. if (exifInfoCountry !== undefined) {
  6677. localVarQueryParameter['exifInfo.country'] = exifInfoCountry;
  6678. }
  6679. if (exifInfoMake !== undefined) {
  6680. localVarQueryParameter['exifInfo.make'] = exifInfoMake;
  6681. }
  6682. if (exifInfoModel !== undefined) {
  6683. localVarQueryParameter['exifInfo.model'] = exifInfoModel;
  6684. }
  6685. if (smartInfoObjects) {
  6686. localVarQueryParameter['smartInfo.objects'] = smartInfoObjects;
  6687. }
  6688. if (smartInfoTags) {
  6689. localVarQueryParameter['smartInfo.tags'] = smartInfoTags;
  6690. }
  6691. if (recent !== undefined) {
  6692. localVarQueryParameter['recent'] = recent;
  6693. }
  6694. if (motion !== undefined) {
  6695. localVarQueryParameter['motion'] = motion;
  6696. }
  6697. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6698. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6699. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6700. return {
  6701. url: toPathString(localVarUrlObj),
  6702. options: localVarRequestOptions,
  6703. };
  6704. },
  6705. }
  6706. };
  6707. /**
  6708. * SearchApi - functional programming interface
  6709. * @export
  6710. */
  6711. export const SearchApiFp = function(configuration?: Configuration) {
  6712. const localVarAxiosParamCreator = SearchApiAxiosParamCreator(configuration)
  6713. return {
  6714. /**
  6715. *
  6716. * @param {*} [options] Override http request option.
  6717. * @throws {RequiredError}
  6718. */
  6719. async getExploreData(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<SearchExploreResponseDto>>> {
  6720. const localVarAxiosArgs = await localVarAxiosParamCreator.getExploreData(options);
  6721. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6722. },
  6723. /**
  6724. *
  6725. * @param {*} [options] Override http request option.
  6726. * @throws {RequiredError}
  6727. */
  6728. async getSearchConfig(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SearchConfigResponseDto>> {
  6729. const localVarAxiosArgs = await localVarAxiosParamCreator.getSearchConfig(options);
  6730. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6731. },
  6732. /**
  6733. *
  6734. * @param {string} [q]
  6735. * @param {string} [query]
  6736. * @param {boolean} [clip]
  6737. * @param {'IMAGE' | 'VIDEO' | 'AUDIO' | 'OTHER'} [type]
  6738. * @param {boolean} [isFavorite]
  6739. * @param {boolean} [isArchived]
  6740. * @param {string} [exifInfoCity]
  6741. * @param {string} [exifInfoState]
  6742. * @param {string} [exifInfoCountry]
  6743. * @param {string} [exifInfoMake]
  6744. * @param {string} [exifInfoModel]
  6745. * @param {Array<string>} [smartInfoObjects]
  6746. * @param {Array<string>} [smartInfoTags]
  6747. * @param {boolean} [recent]
  6748. * @param {boolean} [motion]
  6749. * @param {*} [options] Override http request option.
  6750. * @throws {RequiredError}
  6751. */
  6752. 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, smartInfoObjects?: Array<string>, smartInfoTags?: Array<string>, recent?: boolean, motion?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SearchResponseDto>> {
  6753. const localVarAxiosArgs = await localVarAxiosParamCreator.search(q, query, clip, type, isFavorite, isArchived, exifInfoCity, exifInfoState, exifInfoCountry, exifInfoMake, exifInfoModel, smartInfoObjects, smartInfoTags, recent, motion, options);
  6754. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6755. },
  6756. }
  6757. };
  6758. /**
  6759. * SearchApi - factory interface
  6760. * @export
  6761. */
  6762. export const SearchApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  6763. const localVarFp = SearchApiFp(configuration)
  6764. return {
  6765. /**
  6766. *
  6767. * @param {*} [options] Override http request option.
  6768. * @throws {RequiredError}
  6769. */
  6770. getExploreData(options?: any): AxiosPromise<Array<SearchExploreResponseDto>> {
  6771. return localVarFp.getExploreData(options).then((request) => request(axios, basePath));
  6772. },
  6773. /**
  6774. *
  6775. * @param {*} [options] Override http request option.
  6776. * @throws {RequiredError}
  6777. */
  6778. getSearchConfig(options?: any): AxiosPromise<SearchConfigResponseDto> {
  6779. return localVarFp.getSearchConfig(options).then((request) => request(axios, basePath));
  6780. },
  6781. /**
  6782. *
  6783. * @param {string} [q]
  6784. * @param {string} [query]
  6785. * @param {boolean} [clip]
  6786. * @param {'IMAGE' | 'VIDEO' | 'AUDIO' | 'OTHER'} [type]
  6787. * @param {boolean} [isFavorite]
  6788. * @param {boolean} [isArchived]
  6789. * @param {string} [exifInfoCity]
  6790. * @param {string} [exifInfoState]
  6791. * @param {string} [exifInfoCountry]
  6792. * @param {string} [exifInfoMake]
  6793. * @param {string} [exifInfoModel]
  6794. * @param {Array<string>} [smartInfoObjects]
  6795. * @param {Array<string>} [smartInfoTags]
  6796. * @param {boolean} [recent]
  6797. * @param {boolean} [motion]
  6798. * @param {*} [options] Override http request option.
  6799. * @throws {RequiredError}
  6800. */
  6801. 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, smartInfoObjects?: Array<string>, smartInfoTags?: Array<string>, recent?: boolean, motion?: boolean, options?: any): AxiosPromise<SearchResponseDto> {
  6802. return localVarFp.search(q, query, clip, type, isFavorite, isArchived, exifInfoCity, exifInfoState, exifInfoCountry, exifInfoMake, exifInfoModel, smartInfoObjects, smartInfoTags, recent, motion, options).then((request) => request(axios, basePath));
  6803. },
  6804. };
  6805. };
  6806. /**
  6807. * SearchApi - object-oriented interface
  6808. * @export
  6809. * @class SearchApi
  6810. * @extends {BaseAPI}
  6811. */
  6812. export class SearchApi extends BaseAPI {
  6813. /**
  6814. *
  6815. * @param {*} [options] Override http request option.
  6816. * @throws {RequiredError}
  6817. * @memberof SearchApi
  6818. */
  6819. public getExploreData(options?: AxiosRequestConfig) {
  6820. return SearchApiFp(this.configuration).getExploreData(options).then((request) => request(this.axios, this.basePath));
  6821. }
  6822. /**
  6823. *
  6824. * @param {*} [options] Override http request option.
  6825. * @throws {RequiredError}
  6826. * @memberof SearchApi
  6827. */
  6828. public getSearchConfig(options?: AxiosRequestConfig) {
  6829. return SearchApiFp(this.configuration).getSearchConfig(options).then((request) => request(this.axios, this.basePath));
  6830. }
  6831. /**
  6832. *
  6833. * @param {string} [q]
  6834. * @param {string} [query]
  6835. * @param {boolean} [clip]
  6836. * @param {'IMAGE' | 'VIDEO' | 'AUDIO' | 'OTHER'} [type]
  6837. * @param {boolean} [isFavorite]
  6838. * @param {boolean} [isArchived]
  6839. * @param {string} [exifInfoCity]
  6840. * @param {string} [exifInfoState]
  6841. * @param {string} [exifInfoCountry]
  6842. * @param {string} [exifInfoMake]
  6843. * @param {string} [exifInfoModel]
  6844. * @param {Array<string>} [smartInfoObjects]
  6845. * @param {Array<string>} [smartInfoTags]
  6846. * @param {boolean} [recent]
  6847. * @param {boolean} [motion]
  6848. * @param {*} [options] Override http request option.
  6849. * @throws {RequiredError}
  6850. * @memberof SearchApi
  6851. */
  6852. public 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, smartInfoObjects?: Array<string>, smartInfoTags?: Array<string>, recent?: boolean, motion?: boolean, options?: AxiosRequestConfig) {
  6853. return SearchApiFp(this.configuration).search(q, query, clip, type, isFavorite, isArchived, exifInfoCity, exifInfoState, exifInfoCountry, exifInfoMake, exifInfoModel, smartInfoObjects, smartInfoTags, recent, motion, options).then((request) => request(this.axios, this.basePath));
  6854. }
  6855. }
  6856. /**
  6857. * ServerInfoApi - axios parameter creator
  6858. * @export
  6859. */
  6860. export const ServerInfoApiAxiosParamCreator = function (configuration?: Configuration) {
  6861. return {
  6862. /**
  6863. *
  6864. * @param {*} [options] Override http request option.
  6865. * @throws {RequiredError}
  6866. */
  6867. getServerInfo: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6868. const localVarPath = `/server-info`;
  6869. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6870. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6871. let baseOptions;
  6872. if (configuration) {
  6873. baseOptions = configuration.baseOptions;
  6874. }
  6875. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6876. const localVarHeaderParameter = {} as any;
  6877. const localVarQueryParameter = {} as any;
  6878. // authentication cookie required
  6879. // authentication api_key required
  6880. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6881. // authentication bearer required
  6882. // http bearer authentication required
  6883. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6884. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6885. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6886. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6887. return {
  6888. url: toPathString(localVarUrlObj),
  6889. options: localVarRequestOptions,
  6890. };
  6891. },
  6892. /**
  6893. *
  6894. * @param {*} [options] Override http request option.
  6895. * @throws {RequiredError}
  6896. */
  6897. getServerVersion: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6898. const localVarPath = `/server-info/version`;
  6899. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6900. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6901. let baseOptions;
  6902. if (configuration) {
  6903. baseOptions = configuration.baseOptions;
  6904. }
  6905. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6906. const localVarHeaderParameter = {} as any;
  6907. const localVarQueryParameter = {} as any;
  6908. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6909. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6910. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6911. return {
  6912. url: toPathString(localVarUrlObj),
  6913. options: localVarRequestOptions,
  6914. };
  6915. },
  6916. /**
  6917. *
  6918. * @param {*} [options] Override http request option.
  6919. * @throws {RequiredError}
  6920. */
  6921. getStats: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6922. const localVarPath = `/server-info/stats`;
  6923. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6924. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6925. let baseOptions;
  6926. if (configuration) {
  6927. baseOptions = configuration.baseOptions;
  6928. }
  6929. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6930. const localVarHeaderParameter = {} as any;
  6931. const localVarQueryParameter = {} as any;
  6932. // authentication cookie required
  6933. // authentication api_key required
  6934. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6935. // authentication bearer required
  6936. // http bearer authentication required
  6937. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6938. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6939. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6940. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6941. return {
  6942. url: toPathString(localVarUrlObj),
  6943. options: localVarRequestOptions,
  6944. };
  6945. },
  6946. /**
  6947. *
  6948. * @param {*} [options] Override http request option.
  6949. * @throws {RequiredError}
  6950. */
  6951. pingServer: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6952. const localVarPath = `/server-info/ping`;
  6953. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6954. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6955. let baseOptions;
  6956. if (configuration) {
  6957. baseOptions = configuration.baseOptions;
  6958. }
  6959. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6960. const localVarHeaderParameter = {} as any;
  6961. const localVarQueryParameter = {} as any;
  6962. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6963. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6964. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6965. return {
  6966. url: toPathString(localVarUrlObj),
  6967. options: localVarRequestOptions,
  6968. };
  6969. },
  6970. }
  6971. };
  6972. /**
  6973. * ServerInfoApi - functional programming interface
  6974. * @export
  6975. */
  6976. export const ServerInfoApiFp = function(configuration?: Configuration) {
  6977. const localVarAxiosParamCreator = ServerInfoApiAxiosParamCreator(configuration)
  6978. return {
  6979. /**
  6980. *
  6981. * @param {*} [options] Override http request option.
  6982. * @throws {RequiredError}
  6983. */
  6984. async getServerInfo(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServerInfoResponseDto>> {
  6985. const localVarAxiosArgs = await localVarAxiosParamCreator.getServerInfo(options);
  6986. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6987. },
  6988. /**
  6989. *
  6990. * @param {*} [options] Override http request option.
  6991. * @throws {RequiredError}
  6992. */
  6993. async getServerVersion(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServerVersionReponseDto>> {
  6994. const localVarAxiosArgs = await localVarAxiosParamCreator.getServerVersion(options);
  6995. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6996. },
  6997. /**
  6998. *
  6999. * @param {*} [options] Override http request option.
  7000. * @throws {RequiredError}
  7001. */
  7002. async getStats(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServerStatsResponseDto>> {
  7003. const localVarAxiosArgs = await localVarAxiosParamCreator.getStats(options);
  7004. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7005. },
  7006. /**
  7007. *
  7008. * @param {*} [options] Override http request option.
  7009. * @throws {RequiredError}
  7010. */
  7011. async pingServer(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServerPingResponse>> {
  7012. const localVarAxiosArgs = await localVarAxiosParamCreator.pingServer(options);
  7013. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7014. },
  7015. }
  7016. };
  7017. /**
  7018. * ServerInfoApi - factory interface
  7019. * @export
  7020. */
  7021. export const ServerInfoApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  7022. const localVarFp = ServerInfoApiFp(configuration)
  7023. return {
  7024. /**
  7025. *
  7026. * @param {*} [options] Override http request option.
  7027. * @throws {RequiredError}
  7028. */
  7029. getServerInfo(options?: any): AxiosPromise<ServerInfoResponseDto> {
  7030. return localVarFp.getServerInfo(options).then((request) => request(axios, basePath));
  7031. },
  7032. /**
  7033. *
  7034. * @param {*} [options] Override http request option.
  7035. * @throws {RequiredError}
  7036. */
  7037. getServerVersion(options?: any): AxiosPromise<ServerVersionReponseDto> {
  7038. return localVarFp.getServerVersion(options).then((request) => request(axios, basePath));
  7039. },
  7040. /**
  7041. *
  7042. * @param {*} [options] Override http request option.
  7043. * @throws {RequiredError}
  7044. */
  7045. getStats(options?: any): AxiosPromise<ServerStatsResponseDto> {
  7046. return localVarFp.getStats(options).then((request) => request(axios, basePath));
  7047. },
  7048. /**
  7049. *
  7050. * @param {*} [options] Override http request option.
  7051. * @throws {RequiredError}
  7052. */
  7053. pingServer(options?: any): AxiosPromise<ServerPingResponse> {
  7054. return localVarFp.pingServer(options).then((request) => request(axios, basePath));
  7055. },
  7056. };
  7057. };
  7058. /**
  7059. * ServerInfoApi - object-oriented interface
  7060. * @export
  7061. * @class ServerInfoApi
  7062. * @extends {BaseAPI}
  7063. */
  7064. export class ServerInfoApi extends BaseAPI {
  7065. /**
  7066. *
  7067. * @param {*} [options] Override http request option.
  7068. * @throws {RequiredError}
  7069. * @memberof ServerInfoApi
  7070. */
  7071. public getServerInfo(options?: AxiosRequestConfig) {
  7072. return ServerInfoApiFp(this.configuration).getServerInfo(options).then((request) => request(this.axios, this.basePath));
  7073. }
  7074. /**
  7075. *
  7076. * @param {*} [options] Override http request option.
  7077. * @throws {RequiredError}
  7078. * @memberof ServerInfoApi
  7079. */
  7080. public getServerVersion(options?: AxiosRequestConfig) {
  7081. return ServerInfoApiFp(this.configuration).getServerVersion(options).then((request) => request(this.axios, this.basePath));
  7082. }
  7083. /**
  7084. *
  7085. * @param {*} [options] Override http request option.
  7086. * @throws {RequiredError}
  7087. * @memberof ServerInfoApi
  7088. */
  7089. public getStats(options?: AxiosRequestConfig) {
  7090. return ServerInfoApiFp(this.configuration).getStats(options).then((request) => request(this.axios, this.basePath));
  7091. }
  7092. /**
  7093. *
  7094. * @param {*} [options] Override http request option.
  7095. * @throws {RequiredError}
  7096. * @memberof ServerInfoApi
  7097. */
  7098. public pingServer(options?: AxiosRequestConfig) {
  7099. return ServerInfoApiFp(this.configuration).pingServer(options).then((request) => request(this.axios, this.basePath));
  7100. }
  7101. }
  7102. /**
  7103. * ShareApi - axios parameter creator
  7104. * @export
  7105. */
  7106. export const ShareApiAxiosParamCreator = function (configuration?: Configuration) {
  7107. return {
  7108. /**
  7109. *
  7110. * @param {string} id
  7111. * @param {EditSharedLinkDto} editSharedLinkDto
  7112. * @param {*} [options] Override http request option.
  7113. * @throws {RequiredError}
  7114. */
  7115. editSharedLink: async (id: string, editSharedLinkDto: EditSharedLinkDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  7116. // verify required parameter 'id' is not null or undefined
  7117. assertParamExists('editSharedLink', 'id', id)
  7118. // verify required parameter 'editSharedLinkDto' is not null or undefined
  7119. assertParamExists('editSharedLink', 'editSharedLinkDto', editSharedLinkDto)
  7120. const localVarPath = `/share/{id}`
  7121. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  7122. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  7123. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  7124. let baseOptions;
  7125. if (configuration) {
  7126. baseOptions = configuration.baseOptions;
  7127. }
  7128. const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
  7129. const localVarHeaderParameter = {} as any;
  7130. const localVarQueryParameter = {} as any;
  7131. // authentication cookie required
  7132. // authentication api_key required
  7133. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  7134. // authentication bearer required
  7135. // http bearer authentication required
  7136. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  7137. localVarHeaderParameter['Content-Type'] = 'application/json';
  7138. setSearchParams(localVarUrlObj, localVarQueryParameter);
  7139. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  7140. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  7141. localVarRequestOptions.data = serializeDataIfNeeded(editSharedLinkDto, localVarRequestOptions, configuration)
  7142. return {
  7143. url: toPathString(localVarUrlObj),
  7144. options: localVarRequestOptions,
  7145. };
  7146. },
  7147. /**
  7148. *
  7149. * @param {*} [options] Override http request option.
  7150. * @throws {RequiredError}
  7151. */
  7152. getAllSharedLinks: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  7153. const localVarPath = `/share`;
  7154. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  7155. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  7156. let baseOptions;
  7157. if (configuration) {
  7158. baseOptions = configuration.baseOptions;
  7159. }
  7160. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  7161. const localVarHeaderParameter = {} as any;
  7162. const localVarQueryParameter = {} as any;
  7163. // authentication cookie required
  7164. // authentication api_key required
  7165. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  7166. // authentication bearer required
  7167. // http bearer authentication required
  7168. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  7169. setSearchParams(localVarUrlObj, localVarQueryParameter);
  7170. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  7171. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  7172. return {
  7173. url: toPathString(localVarUrlObj),
  7174. options: localVarRequestOptions,
  7175. };
  7176. },
  7177. /**
  7178. *
  7179. * @param {string} [key]
  7180. * @param {*} [options] Override http request option.
  7181. * @throws {RequiredError}
  7182. */
  7183. getMySharedLink: async (key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  7184. const localVarPath = `/share/me`;
  7185. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  7186. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  7187. let baseOptions;
  7188. if (configuration) {
  7189. baseOptions = configuration.baseOptions;
  7190. }
  7191. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  7192. const localVarHeaderParameter = {} as any;
  7193. const localVarQueryParameter = {} as any;
  7194. // authentication cookie required
  7195. // authentication api_key required
  7196. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  7197. // authentication bearer required
  7198. // http bearer authentication required
  7199. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  7200. if (key !== undefined) {
  7201. localVarQueryParameter['key'] = key;
  7202. }
  7203. setSearchParams(localVarUrlObj, localVarQueryParameter);
  7204. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  7205. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  7206. return {
  7207. url: toPathString(localVarUrlObj),
  7208. options: localVarRequestOptions,
  7209. };
  7210. },
  7211. /**
  7212. *
  7213. * @param {string} id
  7214. * @param {*} [options] Override http request option.
  7215. * @throws {RequiredError}
  7216. */
  7217. getSharedLinkById: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  7218. // verify required parameter 'id' is not null or undefined
  7219. assertParamExists('getSharedLinkById', 'id', id)
  7220. const localVarPath = `/share/{id}`
  7221. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  7222. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  7223. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  7224. let baseOptions;
  7225. if (configuration) {
  7226. baseOptions = configuration.baseOptions;
  7227. }
  7228. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  7229. const localVarHeaderParameter = {} as any;
  7230. const localVarQueryParameter = {} as any;
  7231. // authentication cookie required
  7232. // authentication api_key required
  7233. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  7234. // authentication bearer required
  7235. // http bearer authentication required
  7236. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  7237. setSearchParams(localVarUrlObj, localVarQueryParameter);
  7238. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  7239. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  7240. return {
  7241. url: toPathString(localVarUrlObj),
  7242. options: localVarRequestOptions,
  7243. };
  7244. },
  7245. /**
  7246. *
  7247. * @param {string} id
  7248. * @param {*} [options] Override http request option.
  7249. * @throws {RequiredError}
  7250. */
  7251. removeSharedLink: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  7252. // verify required parameter 'id' is not null or undefined
  7253. assertParamExists('removeSharedLink', 'id', id)
  7254. const localVarPath = `/share/{id}`
  7255. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  7256. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  7257. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  7258. let baseOptions;
  7259. if (configuration) {
  7260. baseOptions = configuration.baseOptions;
  7261. }
  7262. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  7263. const localVarHeaderParameter = {} as any;
  7264. const localVarQueryParameter = {} as any;
  7265. // authentication cookie required
  7266. // authentication api_key required
  7267. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  7268. // authentication bearer required
  7269. // http bearer authentication required
  7270. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  7271. setSearchParams(localVarUrlObj, localVarQueryParameter);
  7272. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  7273. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  7274. return {
  7275. url: toPathString(localVarUrlObj),
  7276. options: localVarRequestOptions,
  7277. };
  7278. },
  7279. }
  7280. };
  7281. /**
  7282. * ShareApi - functional programming interface
  7283. * @export
  7284. */
  7285. export const ShareApiFp = function(configuration?: Configuration) {
  7286. const localVarAxiosParamCreator = ShareApiAxiosParamCreator(configuration)
  7287. return {
  7288. /**
  7289. *
  7290. * @param {string} id
  7291. * @param {EditSharedLinkDto} editSharedLinkDto
  7292. * @param {*} [options] Override http request option.
  7293. * @throws {RequiredError}
  7294. */
  7295. async editSharedLink(id: string, editSharedLinkDto: EditSharedLinkDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SharedLinkResponseDto>> {
  7296. const localVarAxiosArgs = await localVarAxiosParamCreator.editSharedLink(id, editSharedLinkDto, options);
  7297. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7298. },
  7299. /**
  7300. *
  7301. * @param {*} [options] Override http request option.
  7302. * @throws {RequiredError}
  7303. */
  7304. async getAllSharedLinks(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<SharedLinkResponseDto>>> {
  7305. const localVarAxiosArgs = await localVarAxiosParamCreator.getAllSharedLinks(options);
  7306. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7307. },
  7308. /**
  7309. *
  7310. * @param {string} [key]
  7311. * @param {*} [options] Override http request option.
  7312. * @throws {RequiredError}
  7313. */
  7314. async getMySharedLink(key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SharedLinkResponseDto>> {
  7315. const localVarAxiosArgs = await localVarAxiosParamCreator.getMySharedLink(key, options);
  7316. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7317. },
  7318. /**
  7319. *
  7320. * @param {string} id
  7321. * @param {*} [options] Override http request option.
  7322. * @throws {RequiredError}
  7323. */
  7324. async getSharedLinkById(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SharedLinkResponseDto>> {
  7325. const localVarAxiosArgs = await localVarAxiosParamCreator.getSharedLinkById(id, options);
  7326. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7327. },
  7328. /**
  7329. *
  7330. * @param {string} id
  7331. * @param {*} [options] Override http request option.
  7332. * @throws {RequiredError}
  7333. */
  7334. async removeSharedLink(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  7335. const localVarAxiosArgs = await localVarAxiosParamCreator.removeSharedLink(id, options);
  7336. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7337. },
  7338. }
  7339. };
  7340. /**
  7341. * ShareApi - factory interface
  7342. * @export
  7343. */
  7344. export const ShareApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  7345. const localVarFp = ShareApiFp(configuration)
  7346. return {
  7347. /**
  7348. *
  7349. * @param {string} id
  7350. * @param {EditSharedLinkDto} editSharedLinkDto
  7351. * @param {*} [options] Override http request option.
  7352. * @throws {RequiredError}
  7353. */
  7354. editSharedLink(id: string, editSharedLinkDto: EditSharedLinkDto, options?: any): AxiosPromise<SharedLinkResponseDto> {
  7355. return localVarFp.editSharedLink(id, editSharedLinkDto, options).then((request) => request(axios, basePath));
  7356. },
  7357. /**
  7358. *
  7359. * @param {*} [options] Override http request option.
  7360. * @throws {RequiredError}
  7361. */
  7362. getAllSharedLinks(options?: any): AxiosPromise<Array<SharedLinkResponseDto>> {
  7363. return localVarFp.getAllSharedLinks(options).then((request) => request(axios, basePath));
  7364. },
  7365. /**
  7366. *
  7367. * @param {string} [key]
  7368. * @param {*} [options] Override http request option.
  7369. * @throws {RequiredError}
  7370. */
  7371. getMySharedLink(key?: string, options?: any): AxiosPromise<SharedLinkResponseDto> {
  7372. return localVarFp.getMySharedLink(key, options).then((request) => request(axios, basePath));
  7373. },
  7374. /**
  7375. *
  7376. * @param {string} id
  7377. * @param {*} [options] Override http request option.
  7378. * @throws {RequiredError}
  7379. */
  7380. getSharedLinkById(id: string, options?: any): AxiosPromise<SharedLinkResponseDto> {
  7381. return localVarFp.getSharedLinkById(id, options).then((request) => request(axios, basePath));
  7382. },
  7383. /**
  7384. *
  7385. * @param {string} id
  7386. * @param {*} [options] Override http request option.
  7387. * @throws {RequiredError}
  7388. */
  7389. removeSharedLink(id: string, options?: any): AxiosPromise<void> {
  7390. return localVarFp.removeSharedLink(id, options).then((request) => request(axios, basePath));
  7391. },
  7392. };
  7393. };
  7394. /**
  7395. * ShareApi - object-oriented interface
  7396. * @export
  7397. * @class ShareApi
  7398. * @extends {BaseAPI}
  7399. */
  7400. export class ShareApi extends BaseAPI {
  7401. /**
  7402. *
  7403. * @param {string} id
  7404. * @param {EditSharedLinkDto} editSharedLinkDto
  7405. * @param {*} [options] Override http request option.
  7406. * @throws {RequiredError}
  7407. * @memberof ShareApi
  7408. */
  7409. public editSharedLink(id: string, editSharedLinkDto: EditSharedLinkDto, options?: AxiosRequestConfig) {
  7410. return ShareApiFp(this.configuration).editSharedLink(id, editSharedLinkDto, options).then((request) => request(this.axios, this.basePath));
  7411. }
  7412. /**
  7413. *
  7414. * @param {*} [options] Override http request option.
  7415. * @throws {RequiredError}
  7416. * @memberof ShareApi
  7417. */
  7418. public getAllSharedLinks(options?: AxiosRequestConfig) {
  7419. return ShareApiFp(this.configuration).getAllSharedLinks(options).then((request) => request(this.axios, this.basePath));
  7420. }
  7421. /**
  7422. *
  7423. * @param {string} [key]
  7424. * @param {*} [options] Override http request option.
  7425. * @throws {RequiredError}
  7426. * @memberof ShareApi
  7427. */
  7428. public getMySharedLink(key?: string, options?: AxiosRequestConfig) {
  7429. return ShareApiFp(this.configuration).getMySharedLink(key, options).then((request) => request(this.axios, this.basePath));
  7430. }
  7431. /**
  7432. *
  7433. * @param {string} id
  7434. * @param {*} [options] Override http request option.
  7435. * @throws {RequiredError}
  7436. * @memberof ShareApi
  7437. */
  7438. public getSharedLinkById(id: string, options?: AxiosRequestConfig) {
  7439. return ShareApiFp(this.configuration).getSharedLinkById(id, options).then((request) => request(this.axios, this.basePath));
  7440. }
  7441. /**
  7442. *
  7443. * @param {string} id
  7444. * @param {*} [options] Override http request option.
  7445. * @throws {RequiredError}
  7446. * @memberof ShareApi
  7447. */
  7448. public removeSharedLink(id: string, options?: AxiosRequestConfig) {
  7449. return ShareApiFp(this.configuration).removeSharedLink(id, options).then((request) => request(this.axios, this.basePath));
  7450. }
  7451. }
  7452. /**
  7453. * SystemConfigApi - axios parameter creator
  7454. * @export
  7455. */
  7456. export const SystemConfigApiAxiosParamCreator = function (configuration?: Configuration) {
  7457. return {
  7458. /**
  7459. *
  7460. * @param {*} [options] Override http request option.
  7461. * @throws {RequiredError}
  7462. */
  7463. getConfig: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  7464. const localVarPath = `/system-config`;
  7465. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  7466. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  7467. let baseOptions;
  7468. if (configuration) {
  7469. baseOptions = configuration.baseOptions;
  7470. }
  7471. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  7472. const localVarHeaderParameter = {} as any;
  7473. const localVarQueryParameter = {} as any;
  7474. // authentication cookie required
  7475. // authentication api_key required
  7476. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  7477. // authentication bearer required
  7478. // http bearer authentication required
  7479. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  7480. setSearchParams(localVarUrlObj, localVarQueryParameter);
  7481. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  7482. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  7483. return {
  7484. url: toPathString(localVarUrlObj),
  7485. options: localVarRequestOptions,
  7486. };
  7487. },
  7488. /**
  7489. *
  7490. * @param {*} [options] Override http request option.
  7491. * @throws {RequiredError}
  7492. */
  7493. getDefaults: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  7494. const localVarPath = `/system-config/defaults`;
  7495. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  7496. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  7497. let baseOptions;
  7498. if (configuration) {
  7499. baseOptions = configuration.baseOptions;
  7500. }
  7501. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  7502. const localVarHeaderParameter = {} as any;
  7503. const localVarQueryParameter = {} as any;
  7504. // authentication cookie required
  7505. // authentication api_key required
  7506. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  7507. // authentication bearer required
  7508. // http bearer authentication required
  7509. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  7510. setSearchParams(localVarUrlObj, localVarQueryParameter);
  7511. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  7512. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  7513. return {
  7514. url: toPathString(localVarUrlObj),
  7515. options: localVarRequestOptions,
  7516. };
  7517. },
  7518. /**
  7519. *
  7520. * @param {*} [options] Override http request option.
  7521. * @throws {RequiredError}
  7522. */
  7523. getStorageTemplateOptions: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  7524. const localVarPath = `/system-config/storage-template-options`;
  7525. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  7526. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  7527. let baseOptions;
  7528. if (configuration) {
  7529. baseOptions = configuration.baseOptions;
  7530. }
  7531. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  7532. const localVarHeaderParameter = {} as any;
  7533. const localVarQueryParameter = {} as any;
  7534. // authentication cookie required
  7535. // authentication api_key required
  7536. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  7537. // authentication bearer required
  7538. // http bearer authentication required
  7539. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  7540. setSearchParams(localVarUrlObj, localVarQueryParameter);
  7541. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  7542. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  7543. return {
  7544. url: toPathString(localVarUrlObj),
  7545. options: localVarRequestOptions,
  7546. };
  7547. },
  7548. /**
  7549. *
  7550. * @param {SystemConfigDto} systemConfigDto
  7551. * @param {*} [options] Override http request option.
  7552. * @throws {RequiredError}
  7553. */
  7554. updateConfig: async (systemConfigDto: SystemConfigDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  7555. // verify required parameter 'systemConfigDto' is not null or undefined
  7556. assertParamExists('updateConfig', 'systemConfigDto', systemConfigDto)
  7557. const localVarPath = `/system-config`;
  7558. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  7559. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  7560. let baseOptions;
  7561. if (configuration) {
  7562. baseOptions = configuration.baseOptions;
  7563. }
  7564. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  7565. const localVarHeaderParameter = {} as any;
  7566. const localVarQueryParameter = {} as any;
  7567. // authentication cookie required
  7568. // authentication api_key required
  7569. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  7570. // authentication bearer required
  7571. // http bearer authentication required
  7572. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  7573. localVarHeaderParameter['Content-Type'] = 'application/json';
  7574. setSearchParams(localVarUrlObj, localVarQueryParameter);
  7575. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  7576. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  7577. localVarRequestOptions.data = serializeDataIfNeeded(systemConfigDto, localVarRequestOptions, configuration)
  7578. return {
  7579. url: toPathString(localVarUrlObj),
  7580. options: localVarRequestOptions,
  7581. };
  7582. },
  7583. }
  7584. };
  7585. /**
  7586. * SystemConfigApi - functional programming interface
  7587. * @export
  7588. */
  7589. export const SystemConfigApiFp = function(configuration?: Configuration) {
  7590. const localVarAxiosParamCreator = SystemConfigApiAxiosParamCreator(configuration)
  7591. return {
  7592. /**
  7593. *
  7594. * @param {*} [options] Override http request option.
  7595. * @throws {RequiredError}
  7596. */
  7597. async getConfig(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SystemConfigDto>> {
  7598. const localVarAxiosArgs = await localVarAxiosParamCreator.getConfig(options);
  7599. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7600. },
  7601. /**
  7602. *
  7603. * @param {*} [options] Override http request option.
  7604. * @throws {RequiredError}
  7605. */
  7606. async getDefaults(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SystemConfigDto>> {
  7607. const localVarAxiosArgs = await localVarAxiosParamCreator.getDefaults(options);
  7608. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7609. },
  7610. /**
  7611. *
  7612. * @param {*} [options] Override http request option.
  7613. * @throws {RequiredError}
  7614. */
  7615. async getStorageTemplateOptions(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SystemConfigTemplateStorageOptionDto>> {
  7616. const localVarAxiosArgs = await localVarAxiosParamCreator.getStorageTemplateOptions(options);
  7617. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7618. },
  7619. /**
  7620. *
  7621. * @param {SystemConfigDto} systemConfigDto
  7622. * @param {*} [options] Override http request option.
  7623. * @throws {RequiredError}
  7624. */
  7625. async updateConfig(systemConfigDto: SystemConfigDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SystemConfigDto>> {
  7626. const localVarAxiosArgs = await localVarAxiosParamCreator.updateConfig(systemConfigDto, options);
  7627. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7628. },
  7629. }
  7630. };
  7631. /**
  7632. * SystemConfigApi - factory interface
  7633. * @export
  7634. */
  7635. export const SystemConfigApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  7636. const localVarFp = SystemConfigApiFp(configuration)
  7637. return {
  7638. /**
  7639. *
  7640. * @param {*} [options] Override http request option.
  7641. * @throws {RequiredError}
  7642. */
  7643. getConfig(options?: any): AxiosPromise<SystemConfigDto> {
  7644. return localVarFp.getConfig(options).then((request) => request(axios, basePath));
  7645. },
  7646. /**
  7647. *
  7648. * @param {*} [options] Override http request option.
  7649. * @throws {RequiredError}
  7650. */
  7651. getDefaults(options?: any): AxiosPromise<SystemConfigDto> {
  7652. return localVarFp.getDefaults(options).then((request) => request(axios, basePath));
  7653. },
  7654. /**
  7655. *
  7656. * @param {*} [options] Override http request option.
  7657. * @throws {RequiredError}
  7658. */
  7659. getStorageTemplateOptions(options?: any): AxiosPromise<SystemConfigTemplateStorageOptionDto> {
  7660. return localVarFp.getStorageTemplateOptions(options).then((request) => request(axios, basePath));
  7661. },
  7662. /**
  7663. *
  7664. * @param {SystemConfigDto} systemConfigDto
  7665. * @param {*} [options] Override http request option.
  7666. * @throws {RequiredError}
  7667. */
  7668. updateConfig(systemConfigDto: SystemConfigDto, options?: any): AxiosPromise<SystemConfigDto> {
  7669. return localVarFp.updateConfig(systemConfigDto, options).then((request) => request(axios, basePath));
  7670. },
  7671. };
  7672. };
  7673. /**
  7674. * SystemConfigApi - object-oriented interface
  7675. * @export
  7676. * @class SystemConfigApi
  7677. * @extends {BaseAPI}
  7678. */
  7679. export class SystemConfigApi extends BaseAPI {
  7680. /**
  7681. *
  7682. * @param {*} [options] Override http request option.
  7683. * @throws {RequiredError}
  7684. * @memberof SystemConfigApi
  7685. */
  7686. public getConfig(options?: AxiosRequestConfig) {
  7687. return SystemConfigApiFp(this.configuration).getConfig(options).then((request) => request(this.axios, this.basePath));
  7688. }
  7689. /**
  7690. *
  7691. * @param {*} [options] Override http request option.
  7692. * @throws {RequiredError}
  7693. * @memberof SystemConfigApi
  7694. */
  7695. public getDefaults(options?: AxiosRequestConfig) {
  7696. return SystemConfigApiFp(this.configuration).getDefaults(options).then((request) => request(this.axios, this.basePath));
  7697. }
  7698. /**
  7699. *
  7700. * @param {*} [options] Override http request option.
  7701. * @throws {RequiredError}
  7702. * @memberof SystemConfigApi
  7703. */
  7704. public getStorageTemplateOptions(options?: AxiosRequestConfig) {
  7705. return SystemConfigApiFp(this.configuration).getStorageTemplateOptions(options).then((request) => request(this.axios, this.basePath));
  7706. }
  7707. /**
  7708. *
  7709. * @param {SystemConfigDto} systemConfigDto
  7710. * @param {*} [options] Override http request option.
  7711. * @throws {RequiredError}
  7712. * @memberof SystemConfigApi
  7713. */
  7714. public updateConfig(systemConfigDto: SystemConfigDto, options?: AxiosRequestConfig) {
  7715. return SystemConfigApiFp(this.configuration).updateConfig(systemConfigDto, options).then((request) => request(this.axios, this.basePath));
  7716. }
  7717. }
  7718. /**
  7719. * TagApi - axios parameter creator
  7720. * @export
  7721. */
  7722. export const TagApiAxiosParamCreator = function (configuration?: Configuration) {
  7723. return {
  7724. /**
  7725. *
  7726. * @param {string} id
  7727. * @param {*} [options] Override http request option.
  7728. * @throws {RequiredError}
  7729. */
  7730. _delete: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  7731. // verify required parameter 'id' is not null or undefined
  7732. assertParamExists('_delete', 'id', id)
  7733. const localVarPath = `/tag/{id}`
  7734. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  7735. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  7736. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  7737. let baseOptions;
  7738. if (configuration) {
  7739. baseOptions = configuration.baseOptions;
  7740. }
  7741. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  7742. const localVarHeaderParameter = {} as any;
  7743. const localVarQueryParameter = {} as any;
  7744. // authentication cookie required
  7745. // authentication api_key required
  7746. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  7747. // authentication bearer required
  7748. // http bearer authentication required
  7749. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  7750. setSearchParams(localVarUrlObj, localVarQueryParameter);
  7751. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  7752. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  7753. return {
  7754. url: toPathString(localVarUrlObj),
  7755. options: localVarRequestOptions,
  7756. };
  7757. },
  7758. /**
  7759. *
  7760. * @param {CreateTagDto} createTagDto
  7761. * @param {*} [options] Override http request option.
  7762. * @throws {RequiredError}
  7763. */
  7764. create: async (createTagDto: CreateTagDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  7765. // verify required parameter 'createTagDto' is not null or undefined
  7766. assertParamExists('create', 'createTagDto', createTagDto)
  7767. const localVarPath = `/tag`;
  7768. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  7769. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  7770. let baseOptions;
  7771. if (configuration) {
  7772. baseOptions = configuration.baseOptions;
  7773. }
  7774. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  7775. const localVarHeaderParameter = {} as any;
  7776. const localVarQueryParameter = {} as any;
  7777. // authentication cookie required
  7778. // authentication api_key required
  7779. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  7780. // authentication bearer required
  7781. // http bearer authentication required
  7782. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  7783. localVarHeaderParameter['Content-Type'] = 'application/json';
  7784. setSearchParams(localVarUrlObj, localVarQueryParameter);
  7785. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  7786. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  7787. localVarRequestOptions.data = serializeDataIfNeeded(createTagDto, localVarRequestOptions, configuration)
  7788. return {
  7789. url: toPathString(localVarUrlObj),
  7790. options: localVarRequestOptions,
  7791. };
  7792. },
  7793. /**
  7794. *
  7795. * @param {*} [options] Override http request option.
  7796. * @throws {RequiredError}
  7797. */
  7798. findAll: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  7799. const localVarPath = `/tag`;
  7800. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  7801. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  7802. let baseOptions;
  7803. if (configuration) {
  7804. baseOptions = configuration.baseOptions;
  7805. }
  7806. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  7807. const localVarHeaderParameter = {} as any;
  7808. const localVarQueryParameter = {} as any;
  7809. // authentication cookie required
  7810. // authentication api_key required
  7811. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  7812. // authentication bearer required
  7813. // http bearer authentication required
  7814. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  7815. setSearchParams(localVarUrlObj, localVarQueryParameter);
  7816. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  7817. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  7818. return {
  7819. url: toPathString(localVarUrlObj),
  7820. options: localVarRequestOptions,
  7821. };
  7822. },
  7823. /**
  7824. *
  7825. * @param {string} id
  7826. * @param {*} [options] Override http request option.
  7827. * @throws {RequiredError}
  7828. */
  7829. findOne: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  7830. // verify required parameter 'id' is not null or undefined
  7831. assertParamExists('findOne', 'id', id)
  7832. const localVarPath = `/tag/{id}`
  7833. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  7834. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  7835. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  7836. let baseOptions;
  7837. if (configuration) {
  7838. baseOptions = configuration.baseOptions;
  7839. }
  7840. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  7841. const localVarHeaderParameter = {} as any;
  7842. const localVarQueryParameter = {} as any;
  7843. // authentication cookie required
  7844. // authentication api_key required
  7845. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  7846. // authentication bearer required
  7847. // http bearer authentication required
  7848. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  7849. setSearchParams(localVarUrlObj, localVarQueryParameter);
  7850. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  7851. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  7852. return {
  7853. url: toPathString(localVarUrlObj),
  7854. options: localVarRequestOptions,
  7855. };
  7856. },
  7857. /**
  7858. *
  7859. * @param {string} id
  7860. * @param {UpdateTagDto} updateTagDto
  7861. * @param {*} [options] Override http request option.
  7862. * @throws {RequiredError}
  7863. */
  7864. update: async (id: string, updateTagDto: UpdateTagDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  7865. // verify required parameter 'id' is not null or undefined
  7866. assertParamExists('update', 'id', id)
  7867. // verify required parameter 'updateTagDto' is not null or undefined
  7868. assertParamExists('update', 'updateTagDto', updateTagDto)
  7869. const localVarPath = `/tag/{id}`
  7870. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  7871. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  7872. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  7873. let baseOptions;
  7874. if (configuration) {
  7875. baseOptions = configuration.baseOptions;
  7876. }
  7877. const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
  7878. const localVarHeaderParameter = {} as any;
  7879. const localVarQueryParameter = {} as any;
  7880. // authentication cookie required
  7881. // authentication api_key required
  7882. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  7883. // authentication bearer required
  7884. // http bearer authentication required
  7885. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  7886. localVarHeaderParameter['Content-Type'] = 'application/json';
  7887. setSearchParams(localVarUrlObj, localVarQueryParameter);
  7888. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  7889. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  7890. localVarRequestOptions.data = serializeDataIfNeeded(updateTagDto, localVarRequestOptions, configuration)
  7891. return {
  7892. url: toPathString(localVarUrlObj),
  7893. options: localVarRequestOptions,
  7894. };
  7895. },
  7896. }
  7897. };
  7898. /**
  7899. * TagApi - functional programming interface
  7900. * @export
  7901. */
  7902. export const TagApiFp = function(configuration?: Configuration) {
  7903. const localVarAxiosParamCreator = TagApiAxiosParamCreator(configuration)
  7904. return {
  7905. /**
  7906. *
  7907. * @param {string} id
  7908. * @param {*} [options] Override http request option.
  7909. * @throws {RequiredError}
  7910. */
  7911. async _delete(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  7912. const localVarAxiosArgs = await localVarAxiosParamCreator._delete(id, options);
  7913. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7914. },
  7915. /**
  7916. *
  7917. * @param {CreateTagDto} createTagDto
  7918. * @param {*} [options] Override http request option.
  7919. * @throws {RequiredError}
  7920. */
  7921. async create(createTagDto: CreateTagDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TagResponseDto>> {
  7922. const localVarAxiosArgs = await localVarAxiosParamCreator.create(createTagDto, options);
  7923. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7924. },
  7925. /**
  7926. *
  7927. * @param {*} [options] Override http request option.
  7928. * @throws {RequiredError}
  7929. */
  7930. async findAll(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<TagResponseDto>>> {
  7931. const localVarAxiosArgs = await localVarAxiosParamCreator.findAll(options);
  7932. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7933. },
  7934. /**
  7935. *
  7936. * @param {string} id
  7937. * @param {*} [options] Override http request option.
  7938. * @throws {RequiredError}
  7939. */
  7940. async findOne(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TagResponseDto>> {
  7941. const localVarAxiosArgs = await localVarAxiosParamCreator.findOne(id, options);
  7942. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7943. },
  7944. /**
  7945. *
  7946. * @param {string} id
  7947. * @param {UpdateTagDto} updateTagDto
  7948. * @param {*} [options] Override http request option.
  7949. * @throws {RequiredError}
  7950. */
  7951. async update(id: string, updateTagDto: UpdateTagDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TagResponseDto>> {
  7952. const localVarAxiosArgs = await localVarAxiosParamCreator.update(id, updateTagDto, options);
  7953. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7954. },
  7955. }
  7956. };
  7957. /**
  7958. * TagApi - factory interface
  7959. * @export
  7960. */
  7961. export const TagApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  7962. const localVarFp = TagApiFp(configuration)
  7963. return {
  7964. /**
  7965. *
  7966. * @param {string} id
  7967. * @param {*} [options] Override http request option.
  7968. * @throws {RequiredError}
  7969. */
  7970. _delete(id: string, options?: any): AxiosPromise<void> {
  7971. return localVarFp._delete(id, options).then((request) => request(axios, basePath));
  7972. },
  7973. /**
  7974. *
  7975. * @param {CreateTagDto} createTagDto
  7976. * @param {*} [options] Override http request option.
  7977. * @throws {RequiredError}
  7978. */
  7979. create(createTagDto: CreateTagDto, options?: any): AxiosPromise<TagResponseDto> {
  7980. return localVarFp.create(createTagDto, options).then((request) => request(axios, basePath));
  7981. },
  7982. /**
  7983. *
  7984. * @param {*} [options] Override http request option.
  7985. * @throws {RequiredError}
  7986. */
  7987. findAll(options?: any): AxiosPromise<Array<TagResponseDto>> {
  7988. return localVarFp.findAll(options).then((request) => request(axios, basePath));
  7989. },
  7990. /**
  7991. *
  7992. * @param {string} id
  7993. * @param {*} [options] Override http request option.
  7994. * @throws {RequiredError}
  7995. */
  7996. findOne(id: string, options?: any): AxiosPromise<TagResponseDto> {
  7997. return localVarFp.findOne(id, options).then((request) => request(axios, basePath));
  7998. },
  7999. /**
  8000. *
  8001. * @param {string} id
  8002. * @param {UpdateTagDto} updateTagDto
  8003. * @param {*} [options] Override http request option.
  8004. * @throws {RequiredError}
  8005. */
  8006. update(id: string, updateTagDto: UpdateTagDto, options?: any): AxiosPromise<TagResponseDto> {
  8007. return localVarFp.update(id, updateTagDto, options).then((request) => request(axios, basePath));
  8008. },
  8009. };
  8010. };
  8011. /**
  8012. * TagApi - object-oriented interface
  8013. * @export
  8014. * @class TagApi
  8015. * @extends {BaseAPI}
  8016. */
  8017. export class TagApi extends BaseAPI {
  8018. /**
  8019. *
  8020. * @param {string} id
  8021. * @param {*} [options] Override http request option.
  8022. * @throws {RequiredError}
  8023. * @memberof TagApi
  8024. */
  8025. public _delete(id: string, options?: AxiosRequestConfig) {
  8026. return TagApiFp(this.configuration)._delete(id, options).then((request) => request(this.axios, this.basePath));
  8027. }
  8028. /**
  8029. *
  8030. * @param {CreateTagDto} createTagDto
  8031. * @param {*} [options] Override http request option.
  8032. * @throws {RequiredError}
  8033. * @memberof TagApi
  8034. */
  8035. public create(createTagDto: CreateTagDto, options?: AxiosRequestConfig) {
  8036. return TagApiFp(this.configuration).create(createTagDto, options).then((request) => request(this.axios, this.basePath));
  8037. }
  8038. /**
  8039. *
  8040. * @param {*} [options] Override http request option.
  8041. * @throws {RequiredError}
  8042. * @memberof TagApi
  8043. */
  8044. public findAll(options?: AxiosRequestConfig) {
  8045. return TagApiFp(this.configuration).findAll(options).then((request) => request(this.axios, this.basePath));
  8046. }
  8047. /**
  8048. *
  8049. * @param {string} id
  8050. * @param {*} [options] Override http request option.
  8051. * @throws {RequiredError}
  8052. * @memberof TagApi
  8053. */
  8054. public findOne(id: string, options?: AxiosRequestConfig) {
  8055. return TagApiFp(this.configuration).findOne(id, options).then((request) => request(this.axios, this.basePath));
  8056. }
  8057. /**
  8058. *
  8059. * @param {string} id
  8060. * @param {UpdateTagDto} updateTagDto
  8061. * @param {*} [options] Override http request option.
  8062. * @throws {RequiredError}
  8063. * @memberof TagApi
  8064. */
  8065. public update(id: string, updateTagDto: UpdateTagDto, options?: AxiosRequestConfig) {
  8066. return TagApiFp(this.configuration).update(id, updateTagDto, options).then((request) => request(this.axios, this.basePath));
  8067. }
  8068. }
  8069. /**
  8070. * UserApi - axios parameter creator
  8071. * @export
  8072. */
  8073. export const UserApiAxiosParamCreator = function (configuration?: Configuration) {
  8074. return {
  8075. /**
  8076. *
  8077. * @param {File} file
  8078. * @param {*} [options] Override http request option.
  8079. * @throws {RequiredError}
  8080. */
  8081. createProfileImage: async (file: File, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  8082. // verify required parameter 'file' is not null or undefined
  8083. assertParamExists('createProfileImage', 'file', file)
  8084. const localVarPath = `/user/profile-image`;
  8085. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  8086. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  8087. let baseOptions;
  8088. if (configuration) {
  8089. baseOptions = configuration.baseOptions;
  8090. }
  8091. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  8092. const localVarHeaderParameter = {} as any;
  8093. const localVarQueryParameter = {} as any;
  8094. const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
  8095. // authentication cookie required
  8096. // authentication api_key required
  8097. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  8098. // authentication bearer required
  8099. // http bearer authentication required
  8100. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  8101. if (file !== undefined) {
  8102. localVarFormParams.append('file', file as any);
  8103. }
  8104. localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
  8105. setSearchParams(localVarUrlObj, localVarQueryParameter);
  8106. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  8107. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  8108. localVarRequestOptions.data = localVarFormParams;
  8109. return {
  8110. url: toPathString(localVarUrlObj),
  8111. options: localVarRequestOptions,
  8112. };
  8113. },
  8114. /**
  8115. *
  8116. * @param {CreateUserDto} createUserDto
  8117. * @param {*} [options] Override http request option.
  8118. * @throws {RequiredError}
  8119. */
  8120. createUser: async (createUserDto: CreateUserDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  8121. // verify required parameter 'createUserDto' is not null or undefined
  8122. assertParamExists('createUser', 'createUserDto', createUserDto)
  8123. const localVarPath = `/user`;
  8124. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  8125. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  8126. let baseOptions;
  8127. if (configuration) {
  8128. baseOptions = configuration.baseOptions;
  8129. }
  8130. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  8131. const localVarHeaderParameter = {} as any;
  8132. const localVarQueryParameter = {} as any;
  8133. // authentication cookie required
  8134. // authentication api_key required
  8135. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  8136. // authentication bearer required
  8137. // http bearer authentication required
  8138. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  8139. localVarHeaderParameter['Content-Type'] = 'application/json';
  8140. setSearchParams(localVarUrlObj, localVarQueryParameter);
  8141. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  8142. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  8143. localVarRequestOptions.data = serializeDataIfNeeded(createUserDto, localVarRequestOptions, configuration)
  8144. return {
  8145. url: toPathString(localVarUrlObj),
  8146. options: localVarRequestOptions,
  8147. };
  8148. },
  8149. /**
  8150. *
  8151. * @param {string} userId
  8152. * @param {*} [options] Override http request option.
  8153. * @throws {RequiredError}
  8154. */
  8155. deleteUser: async (userId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  8156. // verify required parameter 'userId' is not null or undefined
  8157. assertParamExists('deleteUser', 'userId', userId)
  8158. const localVarPath = `/user/{userId}`
  8159. .replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
  8160. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  8161. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  8162. let baseOptions;
  8163. if (configuration) {
  8164. baseOptions = configuration.baseOptions;
  8165. }
  8166. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  8167. const localVarHeaderParameter = {} as any;
  8168. const localVarQueryParameter = {} as any;
  8169. // authentication cookie required
  8170. // authentication api_key required
  8171. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  8172. // authentication bearer required
  8173. // http bearer authentication required
  8174. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  8175. setSearchParams(localVarUrlObj, localVarQueryParameter);
  8176. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  8177. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  8178. return {
  8179. url: toPathString(localVarUrlObj),
  8180. options: localVarRequestOptions,
  8181. };
  8182. },
  8183. /**
  8184. *
  8185. * @param {boolean} isAll
  8186. * @param {*} [options] Override http request option.
  8187. * @throws {RequiredError}
  8188. */
  8189. getAllUsers: async (isAll: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  8190. // verify required parameter 'isAll' is not null or undefined
  8191. assertParamExists('getAllUsers', 'isAll', isAll)
  8192. const localVarPath = `/user`;
  8193. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  8194. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  8195. let baseOptions;
  8196. if (configuration) {
  8197. baseOptions = configuration.baseOptions;
  8198. }
  8199. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  8200. const localVarHeaderParameter = {} as any;
  8201. const localVarQueryParameter = {} as any;
  8202. // authentication cookie required
  8203. // authentication api_key required
  8204. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  8205. // authentication bearer required
  8206. // http bearer authentication required
  8207. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  8208. if (isAll !== undefined) {
  8209. localVarQueryParameter['isAll'] = isAll;
  8210. }
  8211. setSearchParams(localVarUrlObj, localVarQueryParameter);
  8212. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  8213. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  8214. return {
  8215. url: toPathString(localVarUrlObj),
  8216. options: localVarRequestOptions,
  8217. };
  8218. },
  8219. /**
  8220. *
  8221. * @param {*} [options] Override http request option.
  8222. * @throws {RequiredError}
  8223. */
  8224. getMyUserInfo: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  8225. const localVarPath = `/user/me`;
  8226. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  8227. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  8228. let baseOptions;
  8229. if (configuration) {
  8230. baseOptions = configuration.baseOptions;
  8231. }
  8232. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  8233. const localVarHeaderParameter = {} as any;
  8234. const localVarQueryParameter = {} as any;
  8235. // authentication cookie required
  8236. // authentication api_key required
  8237. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  8238. // authentication bearer required
  8239. // http bearer authentication required
  8240. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  8241. setSearchParams(localVarUrlObj, localVarQueryParameter);
  8242. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  8243. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  8244. return {
  8245. url: toPathString(localVarUrlObj),
  8246. options: localVarRequestOptions,
  8247. };
  8248. },
  8249. /**
  8250. *
  8251. * @param {string} userId
  8252. * @param {*} [options] Override http request option.
  8253. * @throws {RequiredError}
  8254. */
  8255. getProfileImage: async (userId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  8256. // verify required parameter 'userId' is not null or undefined
  8257. assertParamExists('getProfileImage', 'userId', userId)
  8258. const localVarPath = `/user/profile-image/{userId}`
  8259. .replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
  8260. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  8261. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  8262. let baseOptions;
  8263. if (configuration) {
  8264. baseOptions = configuration.baseOptions;
  8265. }
  8266. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  8267. const localVarHeaderParameter = {} as any;
  8268. const localVarQueryParameter = {} as any;
  8269. // authentication cookie required
  8270. // authentication api_key required
  8271. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  8272. // authentication bearer required
  8273. // http bearer authentication required
  8274. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  8275. setSearchParams(localVarUrlObj, localVarQueryParameter);
  8276. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  8277. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  8278. return {
  8279. url: toPathString(localVarUrlObj),
  8280. options: localVarRequestOptions,
  8281. };
  8282. },
  8283. /**
  8284. *
  8285. * @param {string} userId
  8286. * @param {*} [options] Override http request option.
  8287. * @throws {RequiredError}
  8288. */
  8289. getUserById: async (userId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  8290. // verify required parameter 'userId' is not null or undefined
  8291. assertParamExists('getUserById', 'userId', userId)
  8292. const localVarPath = `/user/info/{userId}`
  8293. .replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
  8294. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  8295. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  8296. let baseOptions;
  8297. if (configuration) {
  8298. baseOptions = configuration.baseOptions;
  8299. }
  8300. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  8301. const localVarHeaderParameter = {} as any;
  8302. const localVarQueryParameter = {} as any;
  8303. // authentication cookie required
  8304. // authentication api_key required
  8305. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  8306. // authentication bearer required
  8307. // http bearer authentication required
  8308. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  8309. setSearchParams(localVarUrlObj, localVarQueryParameter);
  8310. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  8311. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  8312. return {
  8313. url: toPathString(localVarUrlObj),
  8314. options: localVarRequestOptions,
  8315. };
  8316. },
  8317. /**
  8318. *
  8319. * @param {boolean} [admin]
  8320. * @param {*} [options] Override http request option.
  8321. * @throws {RequiredError}
  8322. */
  8323. getUserCount: async (admin?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  8324. const localVarPath = `/user/count`;
  8325. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  8326. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  8327. let baseOptions;
  8328. if (configuration) {
  8329. baseOptions = configuration.baseOptions;
  8330. }
  8331. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  8332. const localVarHeaderParameter = {} as any;
  8333. const localVarQueryParameter = {} as any;
  8334. if (admin !== undefined) {
  8335. localVarQueryParameter['admin'] = admin;
  8336. }
  8337. setSearchParams(localVarUrlObj, localVarQueryParameter);
  8338. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  8339. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  8340. return {
  8341. url: toPathString(localVarUrlObj),
  8342. options: localVarRequestOptions,
  8343. };
  8344. },
  8345. /**
  8346. *
  8347. * @param {string} userId
  8348. * @param {*} [options] Override http request option.
  8349. * @throws {RequiredError}
  8350. */
  8351. restoreUser: async (userId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  8352. // verify required parameter 'userId' is not null or undefined
  8353. assertParamExists('restoreUser', 'userId', userId)
  8354. const localVarPath = `/user/{userId}/restore`
  8355. .replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
  8356. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  8357. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  8358. let baseOptions;
  8359. if (configuration) {
  8360. baseOptions = configuration.baseOptions;
  8361. }
  8362. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  8363. const localVarHeaderParameter = {} as any;
  8364. const localVarQueryParameter = {} as any;
  8365. // authentication cookie required
  8366. // authentication api_key required
  8367. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  8368. // authentication bearer required
  8369. // http bearer authentication required
  8370. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  8371. setSearchParams(localVarUrlObj, localVarQueryParameter);
  8372. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  8373. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  8374. return {
  8375. url: toPathString(localVarUrlObj),
  8376. options: localVarRequestOptions,
  8377. };
  8378. },
  8379. /**
  8380. *
  8381. * @param {UpdateUserDto} updateUserDto
  8382. * @param {*} [options] Override http request option.
  8383. * @throws {RequiredError}
  8384. */
  8385. updateUser: async (updateUserDto: UpdateUserDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  8386. // verify required parameter 'updateUserDto' is not null or undefined
  8387. assertParamExists('updateUser', 'updateUserDto', updateUserDto)
  8388. const localVarPath = `/user`;
  8389. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  8390. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  8391. let baseOptions;
  8392. if (configuration) {
  8393. baseOptions = configuration.baseOptions;
  8394. }
  8395. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  8396. const localVarHeaderParameter = {} as any;
  8397. const localVarQueryParameter = {} as any;
  8398. // authentication cookie required
  8399. // authentication api_key required
  8400. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  8401. // authentication bearer required
  8402. // http bearer authentication required
  8403. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  8404. localVarHeaderParameter['Content-Type'] = 'application/json';
  8405. setSearchParams(localVarUrlObj, localVarQueryParameter);
  8406. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  8407. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  8408. localVarRequestOptions.data = serializeDataIfNeeded(updateUserDto, localVarRequestOptions, configuration)
  8409. return {
  8410. url: toPathString(localVarUrlObj),
  8411. options: localVarRequestOptions,
  8412. };
  8413. },
  8414. }
  8415. };
  8416. /**
  8417. * UserApi - functional programming interface
  8418. * @export
  8419. */
  8420. export const UserApiFp = function(configuration?: Configuration) {
  8421. const localVarAxiosParamCreator = UserApiAxiosParamCreator(configuration)
  8422. return {
  8423. /**
  8424. *
  8425. * @param {File} file
  8426. * @param {*} [options] Override http request option.
  8427. * @throws {RequiredError}
  8428. */
  8429. async createProfileImage(file: File, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateProfileImageResponseDto>> {
  8430. const localVarAxiosArgs = await localVarAxiosParamCreator.createProfileImage(file, options);
  8431. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  8432. },
  8433. /**
  8434. *
  8435. * @param {CreateUserDto} createUserDto
  8436. * @param {*} [options] Override http request option.
  8437. * @throws {RequiredError}
  8438. */
  8439. async createUser(createUserDto: CreateUserDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  8440. const localVarAxiosArgs = await localVarAxiosParamCreator.createUser(createUserDto, options);
  8441. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  8442. },
  8443. /**
  8444. *
  8445. * @param {string} userId
  8446. * @param {*} [options] Override http request option.
  8447. * @throws {RequiredError}
  8448. */
  8449. async deleteUser(userId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  8450. const localVarAxiosArgs = await localVarAxiosParamCreator.deleteUser(userId, options);
  8451. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  8452. },
  8453. /**
  8454. *
  8455. * @param {boolean} isAll
  8456. * @param {*} [options] Override http request option.
  8457. * @throws {RequiredError}
  8458. */
  8459. async getAllUsers(isAll: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<UserResponseDto>>> {
  8460. const localVarAxiosArgs = await localVarAxiosParamCreator.getAllUsers(isAll, options);
  8461. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  8462. },
  8463. /**
  8464. *
  8465. * @param {*} [options] Override http request option.
  8466. * @throws {RequiredError}
  8467. */
  8468. async getMyUserInfo(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  8469. const localVarAxiosArgs = await localVarAxiosParamCreator.getMyUserInfo(options);
  8470. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  8471. },
  8472. /**
  8473. *
  8474. * @param {string} userId
  8475. * @param {*} [options] Override http request option.
  8476. * @throws {RequiredError}
  8477. */
  8478. async getProfileImage(userId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
  8479. const localVarAxiosArgs = await localVarAxiosParamCreator.getProfileImage(userId, options);
  8480. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  8481. },
  8482. /**
  8483. *
  8484. * @param {string} userId
  8485. * @param {*} [options] Override http request option.
  8486. * @throws {RequiredError}
  8487. */
  8488. async getUserById(userId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  8489. const localVarAxiosArgs = await localVarAxiosParamCreator.getUserById(userId, options);
  8490. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  8491. },
  8492. /**
  8493. *
  8494. * @param {boolean} [admin]
  8495. * @param {*} [options] Override http request option.
  8496. * @throws {RequiredError}
  8497. */
  8498. async getUserCount(admin?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserCountResponseDto>> {
  8499. const localVarAxiosArgs = await localVarAxiosParamCreator.getUserCount(admin, options);
  8500. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  8501. },
  8502. /**
  8503. *
  8504. * @param {string} userId
  8505. * @param {*} [options] Override http request option.
  8506. * @throws {RequiredError}
  8507. */
  8508. async restoreUser(userId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  8509. const localVarAxiosArgs = await localVarAxiosParamCreator.restoreUser(userId, options);
  8510. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  8511. },
  8512. /**
  8513. *
  8514. * @param {UpdateUserDto} updateUserDto
  8515. * @param {*} [options] Override http request option.
  8516. * @throws {RequiredError}
  8517. */
  8518. async updateUser(updateUserDto: UpdateUserDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  8519. const localVarAxiosArgs = await localVarAxiosParamCreator.updateUser(updateUserDto, options);
  8520. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  8521. },
  8522. }
  8523. };
  8524. /**
  8525. * UserApi - factory interface
  8526. * @export
  8527. */
  8528. export const UserApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  8529. const localVarFp = UserApiFp(configuration)
  8530. return {
  8531. /**
  8532. *
  8533. * @param {File} file
  8534. * @param {*} [options] Override http request option.
  8535. * @throws {RequiredError}
  8536. */
  8537. createProfileImage(file: File, options?: any): AxiosPromise<CreateProfileImageResponseDto> {
  8538. return localVarFp.createProfileImage(file, options).then((request) => request(axios, basePath));
  8539. },
  8540. /**
  8541. *
  8542. * @param {CreateUserDto} createUserDto
  8543. * @param {*} [options] Override http request option.
  8544. * @throws {RequiredError}
  8545. */
  8546. createUser(createUserDto: CreateUserDto, options?: any): AxiosPromise<UserResponseDto> {
  8547. return localVarFp.createUser(createUserDto, options).then((request) => request(axios, basePath));
  8548. },
  8549. /**
  8550. *
  8551. * @param {string} userId
  8552. * @param {*} [options] Override http request option.
  8553. * @throws {RequiredError}
  8554. */
  8555. deleteUser(userId: string, options?: any): AxiosPromise<UserResponseDto> {
  8556. return localVarFp.deleteUser(userId, options).then((request) => request(axios, basePath));
  8557. },
  8558. /**
  8559. *
  8560. * @param {boolean} isAll
  8561. * @param {*} [options] Override http request option.
  8562. * @throws {RequiredError}
  8563. */
  8564. getAllUsers(isAll: boolean, options?: any): AxiosPromise<Array<UserResponseDto>> {
  8565. return localVarFp.getAllUsers(isAll, options).then((request) => request(axios, basePath));
  8566. },
  8567. /**
  8568. *
  8569. * @param {*} [options] Override http request option.
  8570. * @throws {RequiredError}
  8571. */
  8572. getMyUserInfo(options?: any): AxiosPromise<UserResponseDto> {
  8573. return localVarFp.getMyUserInfo(options).then((request) => request(axios, basePath));
  8574. },
  8575. /**
  8576. *
  8577. * @param {string} userId
  8578. * @param {*} [options] Override http request option.
  8579. * @throws {RequiredError}
  8580. */
  8581. getProfileImage(userId: string, options?: any): AxiosPromise<object> {
  8582. return localVarFp.getProfileImage(userId, options).then((request) => request(axios, basePath));
  8583. },
  8584. /**
  8585. *
  8586. * @param {string} userId
  8587. * @param {*} [options] Override http request option.
  8588. * @throws {RequiredError}
  8589. */
  8590. getUserById(userId: string, options?: any): AxiosPromise<UserResponseDto> {
  8591. return localVarFp.getUserById(userId, options).then((request) => request(axios, basePath));
  8592. },
  8593. /**
  8594. *
  8595. * @param {boolean} [admin]
  8596. * @param {*} [options] Override http request option.
  8597. * @throws {RequiredError}
  8598. */
  8599. getUserCount(admin?: boolean, options?: any): AxiosPromise<UserCountResponseDto> {
  8600. return localVarFp.getUserCount(admin, options).then((request) => request(axios, basePath));
  8601. },
  8602. /**
  8603. *
  8604. * @param {string} userId
  8605. * @param {*} [options] Override http request option.
  8606. * @throws {RequiredError}
  8607. */
  8608. restoreUser(userId: string, options?: any): AxiosPromise<UserResponseDto> {
  8609. return localVarFp.restoreUser(userId, options).then((request) => request(axios, basePath));
  8610. },
  8611. /**
  8612. *
  8613. * @param {UpdateUserDto} updateUserDto
  8614. * @param {*} [options] Override http request option.
  8615. * @throws {RequiredError}
  8616. */
  8617. updateUser(updateUserDto: UpdateUserDto, options?: any): AxiosPromise<UserResponseDto> {
  8618. return localVarFp.updateUser(updateUserDto, options).then((request) => request(axios, basePath));
  8619. },
  8620. };
  8621. };
  8622. /**
  8623. * UserApi - object-oriented interface
  8624. * @export
  8625. * @class UserApi
  8626. * @extends {BaseAPI}
  8627. */
  8628. export class UserApi extends BaseAPI {
  8629. /**
  8630. *
  8631. * @param {File} file
  8632. * @param {*} [options] Override http request option.
  8633. * @throws {RequiredError}
  8634. * @memberof UserApi
  8635. */
  8636. public createProfileImage(file: File, options?: AxiosRequestConfig) {
  8637. return UserApiFp(this.configuration).createProfileImage(file, options).then((request) => request(this.axios, this.basePath));
  8638. }
  8639. /**
  8640. *
  8641. * @param {CreateUserDto} createUserDto
  8642. * @param {*} [options] Override http request option.
  8643. * @throws {RequiredError}
  8644. * @memberof UserApi
  8645. */
  8646. public createUser(createUserDto: CreateUserDto, options?: AxiosRequestConfig) {
  8647. return UserApiFp(this.configuration).createUser(createUserDto, options).then((request) => request(this.axios, this.basePath));
  8648. }
  8649. /**
  8650. *
  8651. * @param {string} userId
  8652. * @param {*} [options] Override http request option.
  8653. * @throws {RequiredError}
  8654. * @memberof UserApi
  8655. */
  8656. public deleteUser(userId: string, options?: AxiosRequestConfig) {
  8657. return UserApiFp(this.configuration).deleteUser(userId, options).then((request) => request(this.axios, this.basePath));
  8658. }
  8659. /**
  8660. *
  8661. * @param {boolean} isAll
  8662. * @param {*} [options] Override http request option.
  8663. * @throws {RequiredError}
  8664. * @memberof UserApi
  8665. */
  8666. public getAllUsers(isAll: boolean, options?: AxiosRequestConfig) {
  8667. return UserApiFp(this.configuration).getAllUsers(isAll, options).then((request) => request(this.axios, this.basePath));
  8668. }
  8669. /**
  8670. *
  8671. * @param {*} [options] Override http request option.
  8672. * @throws {RequiredError}
  8673. * @memberof UserApi
  8674. */
  8675. public getMyUserInfo(options?: AxiosRequestConfig) {
  8676. return UserApiFp(this.configuration).getMyUserInfo(options).then((request) => request(this.axios, this.basePath));
  8677. }
  8678. /**
  8679. *
  8680. * @param {string} userId
  8681. * @param {*} [options] Override http request option.
  8682. * @throws {RequiredError}
  8683. * @memberof UserApi
  8684. */
  8685. public getProfileImage(userId: string, options?: AxiosRequestConfig) {
  8686. return UserApiFp(this.configuration).getProfileImage(userId, options).then((request) => request(this.axios, this.basePath));
  8687. }
  8688. /**
  8689. *
  8690. * @param {string} userId
  8691. * @param {*} [options] Override http request option.
  8692. * @throws {RequiredError}
  8693. * @memberof UserApi
  8694. */
  8695. public getUserById(userId: string, options?: AxiosRequestConfig) {
  8696. return UserApiFp(this.configuration).getUserById(userId, options).then((request) => request(this.axios, this.basePath));
  8697. }
  8698. /**
  8699. *
  8700. * @param {boolean} [admin]
  8701. * @param {*} [options] Override http request option.
  8702. * @throws {RequiredError}
  8703. * @memberof UserApi
  8704. */
  8705. public getUserCount(admin?: boolean, options?: AxiosRequestConfig) {
  8706. return UserApiFp(this.configuration).getUserCount(admin, options).then((request) => request(this.axios, this.basePath));
  8707. }
  8708. /**
  8709. *
  8710. * @param {string} userId
  8711. * @param {*} [options] Override http request option.
  8712. * @throws {RequiredError}
  8713. * @memberof UserApi
  8714. */
  8715. public restoreUser(userId: string, options?: AxiosRequestConfig) {
  8716. return UserApiFp(this.configuration).restoreUser(userId, options).then((request) => request(this.axios, this.basePath));
  8717. }
  8718. /**
  8719. *
  8720. * @param {UpdateUserDto} updateUserDto
  8721. * @param {*} [options] Override http request option.
  8722. * @throws {RequiredError}
  8723. * @memberof UserApi
  8724. */
  8725. public updateUser(updateUserDto: UpdateUserDto, options?: AxiosRequestConfig) {
  8726. return UserApiFp(this.configuration).updateUser(updateUserDto, options).then((request) => request(this.axios, this.basePath));
  8727. }
  8728. }