api.ts 384 KB

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