api.ts 325 KB

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