api.ts 559 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287
  1. /* tslint:disable */
  2. /* eslint-disable */
  3. /**
  4. * Immich
  5. * Immich API
  6. *
  7. * The version of the OpenAPI document: 1.82.1
  8. *
  9. *
  10. * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
  11. * https://openapi-generator.tech
  12. * Do not edit the class manually.
  13. */
  14. import type { Configuration } from './configuration';
  15. import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
  16. import globalAxios from 'axios';
  17. // Some imports not used depending on template conditions
  18. // @ts-ignore
  19. import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';
  20. import type { RequestArgs } from './base';
  21. // @ts-ignore
  22. import { BASE_PATH, COLLECTION_FORMATS, BaseAPI, RequiredError } from './base';
  23. /**
  24. *
  25. * @export
  26. * @interface APIKeyCreateDto
  27. */
  28. export interface APIKeyCreateDto {
  29. /**
  30. *
  31. * @type {string}
  32. * @memberof APIKeyCreateDto
  33. */
  34. 'name'?: string;
  35. }
  36. /**
  37. *
  38. * @export
  39. * @interface APIKeyCreateResponseDto
  40. */
  41. export interface APIKeyCreateResponseDto {
  42. /**
  43. *
  44. * @type {APIKeyResponseDto}
  45. * @memberof APIKeyCreateResponseDto
  46. */
  47. 'apiKey': APIKeyResponseDto;
  48. /**
  49. *
  50. * @type {string}
  51. * @memberof APIKeyCreateResponseDto
  52. */
  53. 'secret': string;
  54. }
  55. /**
  56. *
  57. * @export
  58. * @interface APIKeyResponseDto
  59. */
  60. export interface APIKeyResponseDto {
  61. /**
  62. *
  63. * @type {string}
  64. * @memberof APIKeyResponseDto
  65. */
  66. 'createdAt': string;
  67. /**
  68. *
  69. * @type {string}
  70. * @memberof APIKeyResponseDto
  71. */
  72. 'id': string;
  73. /**
  74. *
  75. * @type {string}
  76. * @memberof APIKeyResponseDto
  77. */
  78. 'name': string;
  79. /**
  80. *
  81. * @type {string}
  82. * @memberof APIKeyResponseDto
  83. */
  84. 'updatedAt': string;
  85. }
  86. /**
  87. *
  88. * @export
  89. * @interface APIKeyUpdateDto
  90. */
  91. export interface APIKeyUpdateDto {
  92. /**
  93. *
  94. * @type {string}
  95. * @memberof APIKeyUpdateDto
  96. */
  97. 'name': string;
  98. }
  99. /**
  100. *
  101. * @export
  102. * @interface AddUsersDto
  103. */
  104. export interface AddUsersDto {
  105. /**
  106. *
  107. * @type {Array<string>}
  108. * @memberof AddUsersDto
  109. */
  110. 'sharedUserIds': Array<string>;
  111. }
  112. /**
  113. *
  114. * @export
  115. * @interface AdminSignupResponseDto
  116. */
  117. export interface AdminSignupResponseDto {
  118. /**
  119. *
  120. * @type {string}
  121. * @memberof AdminSignupResponseDto
  122. */
  123. 'createdAt': string;
  124. /**
  125. *
  126. * @type {string}
  127. * @memberof AdminSignupResponseDto
  128. */
  129. 'email': string;
  130. /**
  131. *
  132. * @type {string}
  133. * @memberof AdminSignupResponseDto
  134. */
  135. 'firstName': string;
  136. /**
  137. *
  138. * @type {string}
  139. * @memberof AdminSignupResponseDto
  140. */
  141. 'id': string;
  142. /**
  143. *
  144. * @type {string}
  145. * @memberof AdminSignupResponseDto
  146. */
  147. 'lastName': string;
  148. }
  149. /**
  150. *
  151. * @export
  152. * @interface AlbumCountResponseDto
  153. */
  154. export interface AlbumCountResponseDto {
  155. /**
  156. *
  157. * @type {number}
  158. * @memberof AlbumCountResponseDto
  159. */
  160. 'notShared': number;
  161. /**
  162. *
  163. * @type {number}
  164. * @memberof AlbumCountResponseDto
  165. */
  166. 'owned': number;
  167. /**
  168. *
  169. * @type {number}
  170. * @memberof AlbumCountResponseDto
  171. */
  172. 'shared': number;
  173. }
  174. /**
  175. *
  176. * @export
  177. * @interface AlbumResponseDto
  178. */
  179. export interface AlbumResponseDto {
  180. /**
  181. *
  182. * @type {string}
  183. * @memberof AlbumResponseDto
  184. */
  185. 'albumName': string;
  186. /**
  187. *
  188. * @type {string}
  189. * @memberof AlbumResponseDto
  190. */
  191. 'albumThumbnailAssetId': string | null;
  192. /**
  193. *
  194. * @type {number}
  195. * @memberof AlbumResponseDto
  196. */
  197. 'assetCount': number;
  198. /**
  199. *
  200. * @type {Array<AssetResponseDto>}
  201. * @memberof AlbumResponseDto
  202. */
  203. 'assets': Array<AssetResponseDto>;
  204. /**
  205. *
  206. * @type {string}
  207. * @memberof AlbumResponseDto
  208. */
  209. 'createdAt': string;
  210. /**
  211. *
  212. * @type {string}
  213. * @memberof AlbumResponseDto
  214. */
  215. 'description': string;
  216. /**
  217. *
  218. * @type {string}
  219. * @memberof AlbumResponseDto
  220. */
  221. 'endDate'?: string;
  222. /**
  223. *
  224. * @type {boolean}
  225. * @memberof AlbumResponseDto
  226. */
  227. 'hasSharedLink': boolean;
  228. /**
  229. *
  230. * @type {string}
  231. * @memberof AlbumResponseDto
  232. */
  233. 'id': string;
  234. /**
  235. *
  236. * @type {string}
  237. * @memberof AlbumResponseDto
  238. */
  239. 'lastModifiedAssetTimestamp'?: string;
  240. /**
  241. *
  242. * @type {UserResponseDto}
  243. * @memberof AlbumResponseDto
  244. */
  245. 'owner': UserResponseDto;
  246. /**
  247. *
  248. * @type {string}
  249. * @memberof AlbumResponseDto
  250. */
  251. 'ownerId': string;
  252. /**
  253. *
  254. * @type {boolean}
  255. * @memberof AlbumResponseDto
  256. */
  257. 'shared': boolean;
  258. /**
  259. *
  260. * @type {Array<UserResponseDto>}
  261. * @memberof AlbumResponseDto
  262. */
  263. 'sharedUsers': Array<UserResponseDto>;
  264. /**
  265. *
  266. * @type {string}
  267. * @memberof AlbumResponseDto
  268. */
  269. 'startDate'?: string;
  270. /**
  271. *
  272. * @type {string}
  273. * @memberof AlbumResponseDto
  274. */
  275. 'updatedAt': string;
  276. }
  277. /**
  278. *
  279. * @export
  280. * @interface AllJobStatusResponseDto
  281. */
  282. export interface AllJobStatusResponseDto {
  283. /**
  284. *
  285. * @type {JobStatusDto}
  286. * @memberof AllJobStatusResponseDto
  287. */
  288. 'backgroundTask': JobStatusDto;
  289. /**
  290. *
  291. * @type {JobStatusDto}
  292. * @memberof AllJobStatusResponseDto
  293. */
  294. 'clipEncoding': JobStatusDto;
  295. /**
  296. *
  297. * @type {JobStatusDto}
  298. * @memberof AllJobStatusResponseDto
  299. */
  300. 'library': JobStatusDto;
  301. /**
  302. *
  303. * @type {JobStatusDto}
  304. * @memberof AllJobStatusResponseDto
  305. */
  306. 'metadataExtraction': JobStatusDto;
  307. /**
  308. *
  309. * @type {JobStatusDto}
  310. * @memberof AllJobStatusResponseDto
  311. */
  312. 'migration': JobStatusDto;
  313. /**
  314. *
  315. * @type {JobStatusDto}
  316. * @memberof AllJobStatusResponseDto
  317. */
  318. 'objectTagging': JobStatusDto;
  319. /**
  320. *
  321. * @type {JobStatusDto}
  322. * @memberof AllJobStatusResponseDto
  323. */
  324. 'recognizeFaces': JobStatusDto;
  325. /**
  326. *
  327. * @type {JobStatusDto}
  328. * @memberof AllJobStatusResponseDto
  329. */
  330. 'search': JobStatusDto;
  331. /**
  332. *
  333. * @type {JobStatusDto}
  334. * @memberof AllJobStatusResponseDto
  335. */
  336. 'sidecar': JobStatusDto;
  337. /**
  338. *
  339. * @type {JobStatusDto}
  340. * @memberof AllJobStatusResponseDto
  341. */
  342. 'storageTemplateMigration': JobStatusDto;
  343. /**
  344. *
  345. * @type {JobStatusDto}
  346. * @memberof AllJobStatusResponseDto
  347. */
  348. 'thumbnailGeneration': JobStatusDto;
  349. /**
  350. *
  351. * @type {JobStatusDto}
  352. * @memberof AllJobStatusResponseDto
  353. */
  354. 'videoConversion': JobStatusDto;
  355. }
  356. /**
  357. *
  358. * @export
  359. * @interface AssetBulkDeleteDto
  360. */
  361. export interface AssetBulkDeleteDto {
  362. /**
  363. *
  364. * @type {boolean}
  365. * @memberof AssetBulkDeleteDto
  366. */
  367. 'force'?: boolean;
  368. /**
  369. *
  370. * @type {Array<string>}
  371. * @memberof AssetBulkDeleteDto
  372. */
  373. 'ids': Array<string>;
  374. }
  375. /**
  376. *
  377. * @export
  378. * @interface AssetBulkUpdateDto
  379. */
  380. export interface AssetBulkUpdateDto {
  381. /**
  382. *
  383. * @type {Array<string>}
  384. * @memberof AssetBulkUpdateDto
  385. */
  386. 'ids': Array<string>;
  387. /**
  388. *
  389. * @type {boolean}
  390. * @memberof AssetBulkUpdateDto
  391. */
  392. 'isArchived'?: boolean;
  393. /**
  394. *
  395. * @type {boolean}
  396. * @memberof AssetBulkUpdateDto
  397. */
  398. 'isFavorite'?: boolean;
  399. /**
  400. *
  401. * @type {boolean}
  402. * @memberof AssetBulkUpdateDto
  403. */
  404. 'removeParent'?: boolean;
  405. /**
  406. *
  407. * @type {string}
  408. * @memberof AssetBulkUpdateDto
  409. */
  410. 'stackParentId'?: string;
  411. }
  412. /**
  413. *
  414. * @export
  415. * @interface AssetBulkUploadCheckDto
  416. */
  417. export interface AssetBulkUploadCheckDto {
  418. /**
  419. *
  420. * @type {Array<AssetBulkUploadCheckItem>}
  421. * @memberof AssetBulkUploadCheckDto
  422. */
  423. 'assets': Array<AssetBulkUploadCheckItem>;
  424. }
  425. /**
  426. *
  427. * @export
  428. * @interface AssetBulkUploadCheckItem
  429. */
  430. export interface AssetBulkUploadCheckItem {
  431. /**
  432. * base64 or hex encoded sha1 hash
  433. * @type {string}
  434. * @memberof AssetBulkUploadCheckItem
  435. */
  436. 'checksum': string;
  437. /**
  438. *
  439. * @type {string}
  440. * @memberof AssetBulkUploadCheckItem
  441. */
  442. 'id': string;
  443. }
  444. /**
  445. *
  446. * @export
  447. * @interface AssetBulkUploadCheckResponseDto
  448. */
  449. export interface AssetBulkUploadCheckResponseDto {
  450. /**
  451. *
  452. * @type {Array<AssetBulkUploadCheckResult>}
  453. * @memberof AssetBulkUploadCheckResponseDto
  454. */
  455. 'results': Array<AssetBulkUploadCheckResult>;
  456. }
  457. /**
  458. *
  459. * @export
  460. * @interface AssetBulkUploadCheckResult
  461. */
  462. export interface AssetBulkUploadCheckResult {
  463. /**
  464. *
  465. * @type {string}
  466. * @memberof AssetBulkUploadCheckResult
  467. */
  468. 'action': AssetBulkUploadCheckResultActionEnum;
  469. /**
  470. *
  471. * @type {string}
  472. * @memberof AssetBulkUploadCheckResult
  473. */
  474. 'assetId'?: string;
  475. /**
  476. *
  477. * @type {string}
  478. * @memberof AssetBulkUploadCheckResult
  479. */
  480. 'id': string;
  481. /**
  482. *
  483. * @type {string}
  484. * @memberof AssetBulkUploadCheckResult
  485. */
  486. 'reason'?: AssetBulkUploadCheckResultReasonEnum;
  487. }
  488. export const AssetBulkUploadCheckResultActionEnum = {
  489. Accept: 'accept',
  490. Reject: 'reject'
  491. } as const;
  492. export type AssetBulkUploadCheckResultActionEnum = typeof AssetBulkUploadCheckResultActionEnum[keyof typeof AssetBulkUploadCheckResultActionEnum];
  493. export const AssetBulkUploadCheckResultReasonEnum = {
  494. Duplicate: 'duplicate',
  495. UnsupportedFormat: 'unsupported-format'
  496. } as const;
  497. export type AssetBulkUploadCheckResultReasonEnum = typeof AssetBulkUploadCheckResultReasonEnum[keyof typeof AssetBulkUploadCheckResultReasonEnum];
  498. /**
  499. *
  500. * @export
  501. * @interface AssetFileUploadResponseDto
  502. */
  503. export interface AssetFileUploadResponseDto {
  504. /**
  505. *
  506. * @type {boolean}
  507. * @memberof AssetFileUploadResponseDto
  508. */
  509. 'duplicate': boolean;
  510. /**
  511. *
  512. * @type {string}
  513. * @memberof AssetFileUploadResponseDto
  514. */
  515. 'id': string;
  516. }
  517. /**
  518. *
  519. * @export
  520. * @interface AssetIdsDto
  521. */
  522. export interface AssetIdsDto {
  523. /**
  524. *
  525. * @type {Array<string>}
  526. * @memberof AssetIdsDto
  527. */
  528. 'assetIds': Array<string>;
  529. }
  530. /**
  531. *
  532. * @export
  533. * @interface AssetIdsResponseDto
  534. */
  535. export interface AssetIdsResponseDto {
  536. /**
  537. *
  538. * @type {string}
  539. * @memberof AssetIdsResponseDto
  540. */
  541. 'assetId': string;
  542. /**
  543. *
  544. * @type {string}
  545. * @memberof AssetIdsResponseDto
  546. */
  547. 'error'?: AssetIdsResponseDtoErrorEnum;
  548. /**
  549. *
  550. * @type {boolean}
  551. * @memberof AssetIdsResponseDto
  552. */
  553. 'success': boolean;
  554. }
  555. export const AssetIdsResponseDtoErrorEnum = {
  556. Duplicate: 'duplicate',
  557. NoPermission: 'no_permission',
  558. NotFound: 'not_found'
  559. } as const;
  560. export type AssetIdsResponseDtoErrorEnum = typeof AssetIdsResponseDtoErrorEnum[keyof typeof AssetIdsResponseDtoErrorEnum];
  561. /**
  562. *
  563. * @export
  564. * @enum {string}
  565. */
  566. export const AssetJobName = {
  567. RegenerateThumbnail: 'regenerate-thumbnail',
  568. RefreshMetadata: 'refresh-metadata',
  569. TranscodeVideo: 'transcode-video'
  570. } as const;
  571. export type AssetJobName = typeof AssetJobName[keyof typeof AssetJobName];
  572. /**
  573. *
  574. * @export
  575. * @interface AssetJobsDto
  576. */
  577. export interface AssetJobsDto {
  578. /**
  579. *
  580. * @type {Array<string>}
  581. * @memberof AssetJobsDto
  582. */
  583. 'assetIds': Array<string>;
  584. /**
  585. *
  586. * @type {AssetJobName}
  587. * @memberof AssetJobsDto
  588. */
  589. 'name': AssetJobName;
  590. }
  591. /**
  592. *
  593. * @export
  594. * @interface AssetResponseDto
  595. */
  596. export interface AssetResponseDto {
  597. /**
  598. * base64 encoded sha1 hash
  599. * @type {string}
  600. * @memberof AssetResponseDto
  601. */
  602. 'checksum': string;
  603. /**
  604. *
  605. * @type {string}
  606. * @memberof AssetResponseDto
  607. */
  608. 'deviceAssetId': string;
  609. /**
  610. *
  611. * @type {string}
  612. * @memberof AssetResponseDto
  613. */
  614. 'deviceId': string;
  615. /**
  616. *
  617. * @type {string}
  618. * @memberof AssetResponseDto
  619. */
  620. 'duration': string;
  621. /**
  622. *
  623. * @type {ExifResponseDto}
  624. * @memberof AssetResponseDto
  625. */
  626. 'exifInfo'?: ExifResponseDto;
  627. /**
  628. *
  629. * @type {string}
  630. * @memberof AssetResponseDto
  631. */
  632. 'fileCreatedAt': string;
  633. /**
  634. *
  635. * @type {string}
  636. * @memberof AssetResponseDto
  637. */
  638. 'fileModifiedAt': string;
  639. /**
  640. *
  641. * @type {boolean}
  642. * @memberof AssetResponseDto
  643. */
  644. 'hasMetadata': boolean;
  645. /**
  646. *
  647. * @type {string}
  648. * @memberof AssetResponseDto
  649. */
  650. 'id': string;
  651. /**
  652. *
  653. * @type {boolean}
  654. * @memberof AssetResponseDto
  655. */
  656. 'isArchived': boolean;
  657. /**
  658. *
  659. * @type {boolean}
  660. * @memberof AssetResponseDto
  661. */
  662. 'isExternal': boolean;
  663. /**
  664. *
  665. * @type {boolean}
  666. * @memberof AssetResponseDto
  667. */
  668. 'isFavorite': boolean;
  669. /**
  670. *
  671. * @type {boolean}
  672. * @memberof AssetResponseDto
  673. */
  674. 'isOffline': boolean;
  675. /**
  676. *
  677. * @type {boolean}
  678. * @memberof AssetResponseDto
  679. */
  680. 'isReadOnly': boolean;
  681. /**
  682. *
  683. * @type {boolean}
  684. * @memberof AssetResponseDto
  685. */
  686. 'isTrashed': boolean;
  687. /**
  688. *
  689. * @type {string}
  690. * @memberof AssetResponseDto
  691. */
  692. 'libraryId': string;
  693. /**
  694. *
  695. * @type {string}
  696. * @memberof AssetResponseDto
  697. */
  698. 'livePhotoVideoId'?: string | null;
  699. /**
  700. *
  701. * @type {string}
  702. * @memberof AssetResponseDto
  703. */
  704. 'localDateTime': string;
  705. /**
  706. *
  707. * @type {string}
  708. * @memberof AssetResponseDto
  709. */
  710. 'originalFileName': string;
  711. /**
  712. *
  713. * @type {string}
  714. * @memberof AssetResponseDto
  715. */
  716. 'originalPath': string;
  717. /**
  718. *
  719. * @type {UserResponseDto}
  720. * @memberof AssetResponseDto
  721. */
  722. 'owner'?: UserResponseDto;
  723. /**
  724. *
  725. * @type {string}
  726. * @memberof AssetResponseDto
  727. */
  728. 'ownerId': string;
  729. /**
  730. *
  731. * @type {Array<PersonResponseDto>}
  732. * @memberof AssetResponseDto
  733. */
  734. 'people'?: Array<PersonResponseDto>;
  735. /**
  736. *
  737. * @type {boolean}
  738. * @memberof AssetResponseDto
  739. */
  740. 'resized': boolean;
  741. /**
  742. *
  743. * @type {SmartInfoResponseDto}
  744. * @memberof AssetResponseDto
  745. */
  746. 'smartInfo'?: SmartInfoResponseDto;
  747. /**
  748. *
  749. * @type {Array<AssetResponseDto>}
  750. * @memberof AssetResponseDto
  751. */
  752. 'stack'?: Array<AssetResponseDto>;
  753. /**
  754. *
  755. * @type {number}
  756. * @memberof AssetResponseDto
  757. */
  758. 'stackCount': number | null;
  759. /**
  760. *
  761. * @type {string}
  762. * @memberof AssetResponseDto
  763. */
  764. 'stackParentId'?: string | null;
  765. /**
  766. *
  767. * @type {Array<TagResponseDto>}
  768. * @memberof AssetResponseDto
  769. */
  770. 'tags'?: Array<TagResponseDto>;
  771. /**
  772. *
  773. * @type {string}
  774. * @memberof AssetResponseDto
  775. */
  776. 'thumbhash': string | null;
  777. /**
  778. *
  779. * @type {AssetTypeEnum}
  780. * @memberof AssetResponseDto
  781. */
  782. 'type': AssetTypeEnum;
  783. /**
  784. *
  785. * @type {string}
  786. * @memberof AssetResponseDto
  787. */
  788. 'updatedAt': string;
  789. }
  790. /**
  791. *
  792. * @export
  793. * @interface AssetStatsResponseDto
  794. */
  795. export interface AssetStatsResponseDto {
  796. /**
  797. *
  798. * @type {number}
  799. * @memberof AssetStatsResponseDto
  800. */
  801. 'images': number;
  802. /**
  803. *
  804. * @type {number}
  805. * @memberof AssetStatsResponseDto
  806. */
  807. 'total': number;
  808. /**
  809. *
  810. * @type {number}
  811. * @memberof AssetStatsResponseDto
  812. */
  813. 'videos': number;
  814. }
  815. /**
  816. *
  817. * @export
  818. * @enum {string}
  819. */
  820. export const AssetTypeEnum = {
  821. Image: 'IMAGE',
  822. Video: 'VIDEO',
  823. Audio: 'AUDIO',
  824. Other: 'OTHER'
  825. } as const;
  826. export type AssetTypeEnum = typeof AssetTypeEnum[keyof typeof AssetTypeEnum];
  827. /**
  828. *
  829. * @export
  830. * @enum {string}
  831. */
  832. export const AudioCodec = {
  833. Mp3: 'mp3',
  834. Aac: 'aac',
  835. Libopus: 'libopus'
  836. } as const;
  837. export type AudioCodec = typeof AudioCodec[keyof typeof AudioCodec];
  838. /**
  839. *
  840. * @export
  841. * @interface AuditDeletesResponseDto
  842. */
  843. export interface AuditDeletesResponseDto {
  844. /**
  845. *
  846. * @type {Array<string>}
  847. * @memberof AuditDeletesResponseDto
  848. */
  849. 'ids': Array<string>;
  850. /**
  851. *
  852. * @type {boolean}
  853. * @memberof AuditDeletesResponseDto
  854. */
  855. 'needsFullSync': boolean;
  856. }
  857. /**
  858. *
  859. * @export
  860. * @interface AuthDeviceResponseDto
  861. */
  862. export interface AuthDeviceResponseDto {
  863. /**
  864. *
  865. * @type {string}
  866. * @memberof AuthDeviceResponseDto
  867. */
  868. 'createdAt': string;
  869. /**
  870. *
  871. * @type {boolean}
  872. * @memberof AuthDeviceResponseDto
  873. */
  874. 'current': boolean;
  875. /**
  876. *
  877. * @type {string}
  878. * @memberof AuthDeviceResponseDto
  879. */
  880. 'deviceOS': string;
  881. /**
  882. *
  883. * @type {string}
  884. * @memberof AuthDeviceResponseDto
  885. */
  886. 'deviceType': string;
  887. /**
  888. *
  889. * @type {string}
  890. * @memberof AuthDeviceResponseDto
  891. */
  892. 'id': string;
  893. /**
  894. *
  895. * @type {string}
  896. * @memberof AuthDeviceResponseDto
  897. */
  898. 'updatedAt': string;
  899. }
  900. /**
  901. *
  902. * @export
  903. * @interface BulkIdResponseDto
  904. */
  905. export interface BulkIdResponseDto {
  906. /**
  907. *
  908. * @type {string}
  909. * @memberof BulkIdResponseDto
  910. */
  911. 'error'?: BulkIdResponseDtoErrorEnum;
  912. /**
  913. *
  914. * @type {string}
  915. * @memberof BulkIdResponseDto
  916. */
  917. 'id': string;
  918. /**
  919. *
  920. * @type {boolean}
  921. * @memberof BulkIdResponseDto
  922. */
  923. 'success': boolean;
  924. }
  925. export const BulkIdResponseDtoErrorEnum = {
  926. Duplicate: 'duplicate',
  927. NoPermission: 'no_permission',
  928. NotFound: 'not_found',
  929. Unknown: 'unknown'
  930. } as const;
  931. export type BulkIdResponseDtoErrorEnum = typeof BulkIdResponseDtoErrorEnum[keyof typeof BulkIdResponseDtoErrorEnum];
  932. /**
  933. *
  934. * @export
  935. * @interface BulkIdsDto
  936. */
  937. export interface BulkIdsDto {
  938. /**
  939. *
  940. * @type {Array<string>}
  941. * @memberof BulkIdsDto
  942. */
  943. 'ids': Array<string>;
  944. }
  945. /**
  946. *
  947. * @export
  948. * @interface CLIPConfig
  949. */
  950. export interface CLIPConfig {
  951. /**
  952. *
  953. * @type {boolean}
  954. * @memberof CLIPConfig
  955. */
  956. 'enabled': boolean;
  957. /**
  958. *
  959. * @type {CLIPMode}
  960. * @memberof CLIPConfig
  961. */
  962. 'mode'?: CLIPMode;
  963. /**
  964. *
  965. * @type {string}
  966. * @memberof CLIPConfig
  967. */
  968. 'modelName': string;
  969. /**
  970. *
  971. * @type {ModelType}
  972. * @memberof CLIPConfig
  973. */
  974. 'modelType'?: ModelType;
  975. }
  976. /**
  977. *
  978. * @export
  979. * @enum {string}
  980. */
  981. export const CLIPMode = {
  982. Vision: 'vision',
  983. Text: 'text'
  984. } as const;
  985. export type CLIPMode = typeof CLIPMode[keyof typeof CLIPMode];
  986. /**
  987. *
  988. * @export
  989. * @enum {string}
  990. */
  991. export const CQMode = {
  992. Auto: 'auto',
  993. Cqp: 'cqp',
  994. Icq: 'icq'
  995. } as const;
  996. export type CQMode = typeof CQMode[keyof typeof CQMode];
  997. /**
  998. *
  999. * @export
  1000. * @interface ChangePasswordDto
  1001. */
  1002. export interface ChangePasswordDto {
  1003. /**
  1004. *
  1005. * @type {string}
  1006. * @memberof ChangePasswordDto
  1007. */
  1008. 'newPassword': string;
  1009. /**
  1010. *
  1011. * @type {string}
  1012. * @memberof ChangePasswordDto
  1013. */
  1014. 'password': string;
  1015. }
  1016. /**
  1017. *
  1018. * @export
  1019. * @interface CheckExistingAssetsDto
  1020. */
  1021. export interface CheckExistingAssetsDto {
  1022. /**
  1023. *
  1024. * @type {Array<string>}
  1025. * @memberof CheckExistingAssetsDto
  1026. */
  1027. 'deviceAssetIds': Array<string>;
  1028. /**
  1029. *
  1030. * @type {string}
  1031. * @memberof CheckExistingAssetsDto
  1032. */
  1033. 'deviceId': string;
  1034. }
  1035. /**
  1036. *
  1037. * @export
  1038. * @interface CheckExistingAssetsResponseDto
  1039. */
  1040. export interface CheckExistingAssetsResponseDto {
  1041. /**
  1042. *
  1043. * @type {Array<string>}
  1044. * @memberof CheckExistingAssetsResponseDto
  1045. */
  1046. 'existingIds': Array<string>;
  1047. }
  1048. /**
  1049. *
  1050. * @export
  1051. * @enum {string}
  1052. */
  1053. export const CitiesFile = {
  1054. Cities15000: 'cities15000',
  1055. Cities5000: 'cities5000',
  1056. Cities1000: 'cities1000',
  1057. Cities500: 'cities500'
  1058. } as const;
  1059. export type CitiesFile = typeof CitiesFile[keyof typeof CitiesFile];
  1060. /**
  1061. *
  1062. * @export
  1063. * @interface ClassificationConfig
  1064. */
  1065. export interface ClassificationConfig {
  1066. /**
  1067. *
  1068. * @type {boolean}
  1069. * @memberof ClassificationConfig
  1070. */
  1071. 'enabled': boolean;
  1072. /**
  1073. *
  1074. * @type {number}
  1075. * @memberof ClassificationConfig
  1076. */
  1077. 'minScore': number;
  1078. /**
  1079. *
  1080. * @type {string}
  1081. * @memberof ClassificationConfig
  1082. */
  1083. 'modelName': string;
  1084. /**
  1085. *
  1086. * @type {ModelType}
  1087. * @memberof ClassificationConfig
  1088. */
  1089. 'modelType'?: ModelType;
  1090. }
  1091. /**
  1092. *
  1093. * @export
  1094. * @enum {string}
  1095. */
  1096. export const Colorspace = {
  1097. Srgb: 'srgb',
  1098. P3: 'p3'
  1099. } as const;
  1100. export type Colorspace = typeof Colorspace[keyof typeof Colorspace];
  1101. /**
  1102. *
  1103. * @export
  1104. * @interface CreateAlbumDto
  1105. */
  1106. export interface CreateAlbumDto {
  1107. /**
  1108. *
  1109. * @type {string}
  1110. * @memberof CreateAlbumDto
  1111. */
  1112. 'albumName': string;
  1113. /**
  1114. *
  1115. * @type {Array<string>}
  1116. * @memberof CreateAlbumDto
  1117. */
  1118. 'assetIds'?: Array<string>;
  1119. /**
  1120. *
  1121. * @type {string}
  1122. * @memberof CreateAlbumDto
  1123. */
  1124. 'description'?: string;
  1125. /**
  1126. *
  1127. * @type {Array<string>}
  1128. * @memberof CreateAlbumDto
  1129. */
  1130. 'sharedWithUserIds'?: Array<string>;
  1131. }
  1132. /**
  1133. *
  1134. * @export
  1135. * @interface CreateLibraryDto
  1136. */
  1137. export interface CreateLibraryDto {
  1138. /**
  1139. *
  1140. * @type {Array<string>}
  1141. * @memberof CreateLibraryDto
  1142. */
  1143. 'exclusionPatterns'?: Array<string>;
  1144. /**
  1145. *
  1146. * @type {Array<string>}
  1147. * @memberof CreateLibraryDto
  1148. */
  1149. 'importPaths'?: Array<string>;
  1150. /**
  1151. *
  1152. * @type {boolean}
  1153. * @memberof CreateLibraryDto
  1154. */
  1155. 'isVisible'?: boolean;
  1156. /**
  1157. *
  1158. * @type {string}
  1159. * @memberof CreateLibraryDto
  1160. */
  1161. 'name'?: string;
  1162. /**
  1163. *
  1164. * @type {LibraryType}
  1165. * @memberof CreateLibraryDto
  1166. */
  1167. 'type': LibraryType;
  1168. }
  1169. /**
  1170. *
  1171. * @export
  1172. * @interface CreateProfileImageResponseDto
  1173. */
  1174. export interface CreateProfileImageResponseDto {
  1175. /**
  1176. *
  1177. * @type {string}
  1178. * @memberof CreateProfileImageResponseDto
  1179. */
  1180. 'profileImagePath': string;
  1181. /**
  1182. *
  1183. * @type {string}
  1184. * @memberof CreateProfileImageResponseDto
  1185. */
  1186. 'userId': string;
  1187. }
  1188. /**
  1189. *
  1190. * @export
  1191. * @interface CreateTagDto
  1192. */
  1193. export interface CreateTagDto {
  1194. /**
  1195. *
  1196. * @type {string}
  1197. * @memberof CreateTagDto
  1198. */
  1199. 'name': string;
  1200. /**
  1201. *
  1202. * @type {TagTypeEnum}
  1203. * @memberof CreateTagDto
  1204. */
  1205. 'type': TagTypeEnum;
  1206. }
  1207. /**
  1208. *
  1209. * @export
  1210. * @interface CreateUserDto
  1211. */
  1212. export interface CreateUserDto {
  1213. /**
  1214. *
  1215. * @type {string}
  1216. * @memberof CreateUserDto
  1217. */
  1218. 'email': string;
  1219. /**
  1220. *
  1221. * @type {string}
  1222. * @memberof CreateUserDto
  1223. */
  1224. 'externalPath'?: string | null;
  1225. /**
  1226. *
  1227. * @type {string}
  1228. * @memberof CreateUserDto
  1229. */
  1230. 'firstName': string;
  1231. /**
  1232. *
  1233. * @type {string}
  1234. * @memberof CreateUserDto
  1235. */
  1236. 'lastName': string;
  1237. /**
  1238. *
  1239. * @type {boolean}
  1240. * @memberof CreateUserDto
  1241. */
  1242. 'memoriesEnabled'?: boolean;
  1243. /**
  1244. *
  1245. * @type {string}
  1246. * @memberof CreateUserDto
  1247. */
  1248. 'password': string;
  1249. /**
  1250. *
  1251. * @type {string}
  1252. * @memberof CreateUserDto
  1253. */
  1254. 'storageLabel'?: string | null;
  1255. }
  1256. /**
  1257. *
  1258. * @export
  1259. * @interface CuratedLocationsResponseDto
  1260. */
  1261. export interface CuratedLocationsResponseDto {
  1262. /**
  1263. *
  1264. * @type {string}
  1265. * @memberof CuratedLocationsResponseDto
  1266. */
  1267. 'city': string;
  1268. /**
  1269. *
  1270. * @type {string}
  1271. * @memberof CuratedLocationsResponseDto
  1272. */
  1273. 'deviceAssetId': string;
  1274. /**
  1275. *
  1276. * @type {string}
  1277. * @memberof CuratedLocationsResponseDto
  1278. */
  1279. 'deviceId': string;
  1280. /**
  1281. *
  1282. * @type {string}
  1283. * @memberof CuratedLocationsResponseDto
  1284. */
  1285. 'id': string;
  1286. /**
  1287. *
  1288. * @type {string}
  1289. * @memberof CuratedLocationsResponseDto
  1290. */
  1291. 'resizePath': string;
  1292. }
  1293. /**
  1294. *
  1295. * @export
  1296. * @interface CuratedObjectsResponseDto
  1297. */
  1298. export interface CuratedObjectsResponseDto {
  1299. /**
  1300. *
  1301. * @type {string}
  1302. * @memberof CuratedObjectsResponseDto
  1303. */
  1304. 'deviceAssetId': string;
  1305. /**
  1306. *
  1307. * @type {string}
  1308. * @memberof CuratedObjectsResponseDto
  1309. */
  1310. 'deviceId': string;
  1311. /**
  1312. *
  1313. * @type {string}
  1314. * @memberof CuratedObjectsResponseDto
  1315. */
  1316. 'id': string;
  1317. /**
  1318. *
  1319. * @type {string}
  1320. * @memberof CuratedObjectsResponseDto
  1321. */
  1322. 'object': string;
  1323. /**
  1324. *
  1325. * @type {string}
  1326. * @memberof CuratedObjectsResponseDto
  1327. */
  1328. 'resizePath': string;
  1329. }
  1330. /**
  1331. *
  1332. * @export
  1333. * @interface DownloadArchiveInfo
  1334. */
  1335. export interface DownloadArchiveInfo {
  1336. /**
  1337. *
  1338. * @type {Array<string>}
  1339. * @memberof DownloadArchiveInfo
  1340. */
  1341. 'assetIds': Array<string>;
  1342. /**
  1343. *
  1344. * @type {number}
  1345. * @memberof DownloadArchiveInfo
  1346. */
  1347. 'size': number;
  1348. }
  1349. /**
  1350. *
  1351. * @export
  1352. * @interface DownloadInfoDto
  1353. */
  1354. export interface DownloadInfoDto {
  1355. /**
  1356. *
  1357. * @type {string}
  1358. * @memberof DownloadInfoDto
  1359. */
  1360. 'albumId'?: string;
  1361. /**
  1362. *
  1363. * @type {number}
  1364. * @memberof DownloadInfoDto
  1365. */
  1366. 'archiveSize'?: number;
  1367. /**
  1368. *
  1369. * @type {Array<string>}
  1370. * @memberof DownloadInfoDto
  1371. */
  1372. 'assetIds'?: Array<string>;
  1373. /**
  1374. *
  1375. * @type {string}
  1376. * @memberof DownloadInfoDto
  1377. */
  1378. 'userId'?: string;
  1379. }
  1380. /**
  1381. *
  1382. * @export
  1383. * @interface DownloadResponseDto
  1384. */
  1385. export interface DownloadResponseDto {
  1386. /**
  1387. *
  1388. * @type {Array<DownloadArchiveInfo>}
  1389. * @memberof DownloadResponseDto
  1390. */
  1391. 'archives': Array<DownloadArchiveInfo>;
  1392. /**
  1393. *
  1394. * @type {number}
  1395. * @memberof DownloadResponseDto
  1396. */
  1397. 'totalSize': number;
  1398. }
  1399. /**
  1400. *
  1401. * @export
  1402. * @enum {string}
  1403. */
  1404. export const EntityType = {
  1405. Asset: 'ASSET',
  1406. Album: 'ALBUM'
  1407. } as const;
  1408. export type EntityType = typeof EntityType[keyof typeof EntityType];
  1409. /**
  1410. *
  1411. * @export
  1412. * @interface ExifResponseDto
  1413. */
  1414. export interface ExifResponseDto {
  1415. /**
  1416. *
  1417. * @type {string}
  1418. * @memberof ExifResponseDto
  1419. */
  1420. 'city'?: string | null;
  1421. /**
  1422. *
  1423. * @type {string}
  1424. * @memberof ExifResponseDto
  1425. */
  1426. 'country'?: string | null;
  1427. /**
  1428. *
  1429. * @type {string}
  1430. * @memberof ExifResponseDto
  1431. */
  1432. 'dateTimeOriginal'?: string | null;
  1433. /**
  1434. *
  1435. * @type {string}
  1436. * @memberof ExifResponseDto
  1437. */
  1438. 'description'?: string | null;
  1439. /**
  1440. *
  1441. * @type {number}
  1442. * @memberof ExifResponseDto
  1443. */
  1444. 'exifImageHeight'?: number | null;
  1445. /**
  1446. *
  1447. * @type {number}
  1448. * @memberof ExifResponseDto
  1449. */
  1450. 'exifImageWidth'?: number | null;
  1451. /**
  1452. *
  1453. * @type {string}
  1454. * @memberof ExifResponseDto
  1455. */
  1456. 'exposureTime'?: string | null;
  1457. /**
  1458. *
  1459. * @type {number}
  1460. * @memberof ExifResponseDto
  1461. */
  1462. 'fNumber'?: number | null;
  1463. /**
  1464. *
  1465. * @type {number}
  1466. * @memberof ExifResponseDto
  1467. */
  1468. 'fileSizeInByte'?: number | null;
  1469. /**
  1470. *
  1471. * @type {number}
  1472. * @memberof ExifResponseDto
  1473. */
  1474. 'focalLength'?: number | null;
  1475. /**
  1476. *
  1477. * @type {number}
  1478. * @memberof ExifResponseDto
  1479. */
  1480. 'iso'?: number | null;
  1481. /**
  1482. *
  1483. * @type {number}
  1484. * @memberof ExifResponseDto
  1485. */
  1486. 'latitude'?: number | null;
  1487. /**
  1488. *
  1489. * @type {string}
  1490. * @memberof ExifResponseDto
  1491. */
  1492. 'lensModel'?: string | null;
  1493. /**
  1494. *
  1495. * @type {number}
  1496. * @memberof ExifResponseDto
  1497. */
  1498. 'longitude'?: number | null;
  1499. /**
  1500. *
  1501. * @type {string}
  1502. * @memberof ExifResponseDto
  1503. */
  1504. 'make'?: string | null;
  1505. /**
  1506. *
  1507. * @type {string}
  1508. * @memberof ExifResponseDto
  1509. */
  1510. 'model'?: string | null;
  1511. /**
  1512. *
  1513. * @type {string}
  1514. * @memberof ExifResponseDto
  1515. */
  1516. 'modifyDate'?: string | null;
  1517. /**
  1518. *
  1519. * @type {string}
  1520. * @memberof ExifResponseDto
  1521. */
  1522. 'orientation'?: string | null;
  1523. /**
  1524. *
  1525. * @type {string}
  1526. * @memberof ExifResponseDto
  1527. */
  1528. 'projectionType'?: string | null;
  1529. /**
  1530. *
  1531. * @type {string}
  1532. * @memberof ExifResponseDto
  1533. */
  1534. 'state'?: string | null;
  1535. /**
  1536. *
  1537. * @type {string}
  1538. * @memberof ExifResponseDto
  1539. */
  1540. 'timeZone'?: string | null;
  1541. }
  1542. /**
  1543. *
  1544. * @export
  1545. * @interface FileChecksumDto
  1546. */
  1547. export interface FileChecksumDto {
  1548. /**
  1549. *
  1550. * @type {Array<string>}
  1551. * @memberof FileChecksumDto
  1552. */
  1553. 'filenames': Array<string>;
  1554. }
  1555. /**
  1556. *
  1557. * @export
  1558. * @interface FileChecksumResponseDto
  1559. */
  1560. export interface FileChecksumResponseDto {
  1561. /**
  1562. *
  1563. * @type {string}
  1564. * @memberof FileChecksumResponseDto
  1565. */
  1566. 'checksum': string;
  1567. /**
  1568. *
  1569. * @type {string}
  1570. * @memberof FileChecksumResponseDto
  1571. */
  1572. 'filename': string;
  1573. }
  1574. /**
  1575. *
  1576. * @export
  1577. * @interface FileReportDto
  1578. */
  1579. export interface FileReportDto {
  1580. /**
  1581. *
  1582. * @type {Array<string>}
  1583. * @memberof FileReportDto
  1584. */
  1585. 'extras': Array<string>;
  1586. /**
  1587. *
  1588. * @type {Array<FileReportItemDto>}
  1589. * @memberof FileReportDto
  1590. */
  1591. 'orphans': Array<FileReportItemDto>;
  1592. }
  1593. /**
  1594. *
  1595. * @export
  1596. * @interface FileReportFixDto
  1597. */
  1598. export interface FileReportFixDto {
  1599. /**
  1600. *
  1601. * @type {Array<FileReportItemDto>}
  1602. * @memberof FileReportFixDto
  1603. */
  1604. 'items': Array<FileReportItemDto>;
  1605. }
  1606. /**
  1607. *
  1608. * @export
  1609. * @interface FileReportItemDto
  1610. */
  1611. export interface FileReportItemDto {
  1612. /**
  1613. *
  1614. * @type {string}
  1615. * @memberof FileReportItemDto
  1616. */
  1617. 'checksum'?: string;
  1618. /**
  1619. *
  1620. * @type {string}
  1621. * @memberof FileReportItemDto
  1622. */
  1623. 'entityId': string;
  1624. /**
  1625. *
  1626. * @type {PathEntityType}
  1627. * @memberof FileReportItemDto
  1628. */
  1629. 'entityType': PathEntityType;
  1630. /**
  1631. *
  1632. * @type {PathType}
  1633. * @memberof FileReportItemDto
  1634. */
  1635. 'pathType': PathType;
  1636. /**
  1637. *
  1638. * @type {string}
  1639. * @memberof FileReportItemDto
  1640. */
  1641. 'pathValue': string;
  1642. }
  1643. /**
  1644. *
  1645. * @export
  1646. * @interface ImportAssetDto
  1647. */
  1648. export interface ImportAssetDto {
  1649. /**
  1650. *
  1651. * @type {string}
  1652. * @memberof ImportAssetDto
  1653. */
  1654. 'assetPath': string;
  1655. /**
  1656. *
  1657. * @type {string}
  1658. * @memberof ImportAssetDto
  1659. */
  1660. 'deviceAssetId': string;
  1661. /**
  1662. *
  1663. * @type {string}
  1664. * @memberof ImportAssetDto
  1665. */
  1666. 'deviceId': string;
  1667. /**
  1668. *
  1669. * @type {string}
  1670. * @memberof ImportAssetDto
  1671. */
  1672. 'duration'?: string;
  1673. /**
  1674. *
  1675. * @type {string}
  1676. * @memberof ImportAssetDto
  1677. */
  1678. 'fileCreatedAt': string;
  1679. /**
  1680. *
  1681. * @type {string}
  1682. * @memberof ImportAssetDto
  1683. */
  1684. 'fileModifiedAt': string;
  1685. /**
  1686. *
  1687. * @type {boolean}
  1688. * @memberof ImportAssetDto
  1689. */
  1690. 'isArchived'?: boolean;
  1691. /**
  1692. *
  1693. * @type {boolean}
  1694. * @memberof ImportAssetDto
  1695. */
  1696. 'isExternal'?: boolean;
  1697. /**
  1698. *
  1699. * @type {boolean}
  1700. * @memberof ImportAssetDto
  1701. */
  1702. 'isFavorite': boolean;
  1703. /**
  1704. *
  1705. * @type {boolean}
  1706. * @memberof ImportAssetDto
  1707. */
  1708. 'isOffline'?: boolean;
  1709. /**
  1710. *
  1711. * @type {boolean}
  1712. * @memberof ImportAssetDto
  1713. */
  1714. 'isReadOnly'?: boolean;
  1715. /**
  1716. *
  1717. * @type {boolean}
  1718. * @memberof ImportAssetDto
  1719. */
  1720. 'isVisible'?: boolean;
  1721. /**
  1722. *
  1723. * @type {string}
  1724. * @memberof ImportAssetDto
  1725. */
  1726. 'libraryId'?: string;
  1727. /**
  1728. *
  1729. * @type {string}
  1730. * @memberof ImportAssetDto
  1731. */
  1732. 'sidecarPath'?: string;
  1733. }
  1734. /**
  1735. *
  1736. * @export
  1737. * @enum {string}
  1738. */
  1739. export const JobCommand = {
  1740. Start: 'start',
  1741. Pause: 'pause',
  1742. Resume: 'resume',
  1743. Empty: 'empty'
  1744. } as const;
  1745. export type JobCommand = typeof JobCommand[keyof typeof JobCommand];
  1746. /**
  1747. *
  1748. * @export
  1749. * @interface JobCommandDto
  1750. */
  1751. export interface JobCommandDto {
  1752. /**
  1753. *
  1754. * @type {JobCommand}
  1755. * @memberof JobCommandDto
  1756. */
  1757. 'command': JobCommand;
  1758. /**
  1759. *
  1760. * @type {boolean}
  1761. * @memberof JobCommandDto
  1762. */
  1763. 'force': boolean;
  1764. }
  1765. /**
  1766. *
  1767. * @export
  1768. * @interface JobCountsDto
  1769. */
  1770. export interface JobCountsDto {
  1771. /**
  1772. *
  1773. * @type {number}
  1774. * @memberof JobCountsDto
  1775. */
  1776. 'active': number;
  1777. /**
  1778. *
  1779. * @type {number}
  1780. * @memberof JobCountsDto
  1781. */
  1782. 'completed': number;
  1783. /**
  1784. *
  1785. * @type {number}
  1786. * @memberof JobCountsDto
  1787. */
  1788. 'delayed': number;
  1789. /**
  1790. *
  1791. * @type {number}
  1792. * @memberof JobCountsDto
  1793. */
  1794. 'failed': number;
  1795. /**
  1796. *
  1797. * @type {number}
  1798. * @memberof JobCountsDto
  1799. */
  1800. 'paused': number;
  1801. /**
  1802. *
  1803. * @type {number}
  1804. * @memberof JobCountsDto
  1805. */
  1806. 'waiting': number;
  1807. }
  1808. /**
  1809. *
  1810. * @export
  1811. * @enum {string}
  1812. */
  1813. export const JobName = {
  1814. ThumbnailGeneration: 'thumbnailGeneration',
  1815. MetadataExtraction: 'metadataExtraction',
  1816. VideoConversion: 'videoConversion',
  1817. ObjectTagging: 'objectTagging',
  1818. RecognizeFaces: 'recognizeFaces',
  1819. ClipEncoding: 'clipEncoding',
  1820. BackgroundTask: 'backgroundTask',
  1821. StorageTemplateMigration: 'storageTemplateMigration',
  1822. Migration: 'migration',
  1823. Search: 'search',
  1824. Sidecar: 'sidecar',
  1825. Library: 'library'
  1826. } as const;
  1827. export type JobName = typeof JobName[keyof typeof JobName];
  1828. /**
  1829. *
  1830. * @export
  1831. * @interface JobSettingsDto
  1832. */
  1833. export interface JobSettingsDto {
  1834. /**
  1835. *
  1836. * @type {number}
  1837. * @memberof JobSettingsDto
  1838. */
  1839. 'concurrency': number;
  1840. }
  1841. /**
  1842. *
  1843. * @export
  1844. * @interface JobStatusDto
  1845. */
  1846. export interface JobStatusDto {
  1847. /**
  1848. *
  1849. * @type {JobCountsDto}
  1850. * @memberof JobStatusDto
  1851. */
  1852. 'jobCounts': JobCountsDto;
  1853. /**
  1854. *
  1855. * @type {QueueStatusDto}
  1856. * @memberof JobStatusDto
  1857. */
  1858. 'queueStatus': QueueStatusDto;
  1859. }
  1860. /**
  1861. *
  1862. * @export
  1863. * @interface LibraryResponseDto
  1864. */
  1865. export interface LibraryResponseDto {
  1866. /**
  1867. *
  1868. * @type {number}
  1869. * @memberof LibraryResponseDto
  1870. */
  1871. 'assetCount': number;
  1872. /**
  1873. *
  1874. * @type {string}
  1875. * @memberof LibraryResponseDto
  1876. */
  1877. 'createdAt': string;
  1878. /**
  1879. *
  1880. * @type {Array<string>}
  1881. * @memberof LibraryResponseDto
  1882. */
  1883. 'exclusionPatterns': Array<string>;
  1884. /**
  1885. *
  1886. * @type {string}
  1887. * @memberof LibraryResponseDto
  1888. */
  1889. 'id': string;
  1890. /**
  1891. *
  1892. * @type {Array<string>}
  1893. * @memberof LibraryResponseDto
  1894. */
  1895. 'importPaths': Array<string>;
  1896. /**
  1897. *
  1898. * @type {string}
  1899. * @memberof LibraryResponseDto
  1900. */
  1901. 'name': string;
  1902. /**
  1903. *
  1904. * @type {string}
  1905. * @memberof LibraryResponseDto
  1906. */
  1907. 'ownerId': string;
  1908. /**
  1909. *
  1910. * @type {string}
  1911. * @memberof LibraryResponseDto
  1912. */
  1913. 'refreshedAt': string | null;
  1914. /**
  1915. *
  1916. * @type {LibraryType}
  1917. * @memberof LibraryResponseDto
  1918. */
  1919. 'type': LibraryType;
  1920. /**
  1921. *
  1922. * @type {string}
  1923. * @memberof LibraryResponseDto
  1924. */
  1925. 'updatedAt': string;
  1926. }
  1927. /**
  1928. *
  1929. * @export
  1930. * @interface LibraryStatsResponseDto
  1931. */
  1932. export interface LibraryStatsResponseDto {
  1933. /**
  1934. *
  1935. * @type {number}
  1936. * @memberof LibraryStatsResponseDto
  1937. */
  1938. 'photos': number;
  1939. /**
  1940. *
  1941. * @type {number}
  1942. * @memberof LibraryStatsResponseDto
  1943. */
  1944. 'total': number;
  1945. /**
  1946. *
  1947. * @type {number}
  1948. * @memberof LibraryStatsResponseDto
  1949. */
  1950. 'usage': number;
  1951. /**
  1952. *
  1953. * @type {number}
  1954. * @memberof LibraryStatsResponseDto
  1955. */
  1956. 'videos': number;
  1957. }
  1958. /**
  1959. *
  1960. * @export
  1961. * @enum {string}
  1962. */
  1963. export const LibraryType = {
  1964. Upload: 'UPLOAD',
  1965. External: 'EXTERNAL'
  1966. } as const;
  1967. export type LibraryType = typeof LibraryType[keyof typeof LibraryType];
  1968. /**
  1969. *
  1970. * @export
  1971. * @interface LoginCredentialDto
  1972. */
  1973. export interface LoginCredentialDto {
  1974. /**
  1975. *
  1976. * @type {string}
  1977. * @memberof LoginCredentialDto
  1978. */
  1979. 'email': string;
  1980. /**
  1981. *
  1982. * @type {string}
  1983. * @memberof LoginCredentialDto
  1984. */
  1985. 'password': string;
  1986. }
  1987. /**
  1988. *
  1989. * @export
  1990. * @interface LoginResponseDto
  1991. */
  1992. export interface LoginResponseDto {
  1993. /**
  1994. *
  1995. * @type {string}
  1996. * @memberof LoginResponseDto
  1997. */
  1998. 'accessToken': string;
  1999. /**
  2000. *
  2001. * @type {string}
  2002. * @memberof LoginResponseDto
  2003. */
  2004. 'firstName': string;
  2005. /**
  2006. *
  2007. * @type {boolean}
  2008. * @memberof LoginResponseDto
  2009. */
  2010. 'isAdmin': boolean;
  2011. /**
  2012. *
  2013. * @type {string}
  2014. * @memberof LoginResponseDto
  2015. */
  2016. 'lastName': string;
  2017. /**
  2018. *
  2019. * @type {string}
  2020. * @memberof LoginResponseDto
  2021. */
  2022. 'profileImagePath': string;
  2023. /**
  2024. *
  2025. * @type {boolean}
  2026. * @memberof LoginResponseDto
  2027. */
  2028. 'shouldChangePassword': boolean;
  2029. /**
  2030. *
  2031. * @type {string}
  2032. * @memberof LoginResponseDto
  2033. */
  2034. 'userEmail': string;
  2035. /**
  2036. *
  2037. * @type {string}
  2038. * @memberof LoginResponseDto
  2039. */
  2040. 'userId': string;
  2041. }
  2042. /**
  2043. *
  2044. * @export
  2045. * @interface LogoutResponseDto
  2046. */
  2047. export interface LogoutResponseDto {
  2048. /**
  2049. *
  2050. * @type {string}
  2051. * @memberof LogoutResponseDto
  2052. */
  2053. 'redirectUri': string;
  2054. /**
  2055. *
  2056. * @type {boolean}
  2057. * @memberof LogoutResponseDto
  2058. */
  2059. 'successful': boolean;
  2060. }
  2061. /**
  2062. *
  2063. * @export
  2064. * @interface MapMarkerResponseDto
  2065. */
  2066. export interface MapMarkerResponseDto {
  2067. /**
  2068. *
  2069. * @type {string}
  2070. * @memberof MapMarkerResponseDto
  2071. */
  2072. 'id': string;
  2073. /**
  2074. *
  2075. * @type {number}
  2076. * @memberof MapMarkerResponseDto
  2077. */
  2078. 'lat': number;
  2079. /**
  2080. *
  2081. * @type {number}
  2082. * @memberof MapMarkerResponseDto
  2083. */
  2084. 'lon': number;
  2085. }
  2086. /**
  2087. *
  2088. * @export
  2089. * @interface MemoryLaneResponseDto
  2090. */
  2091. export interface MemoryLaneResponseDto {
  2092. /**
  2093. *
  2094. * @type {Array<AssetResponseDto>}
  2095. * @memberof MemoryLaneResponseDto
  2096. */
  2097. 'assets': Array<AssetResponseDto>;
  2098. /**
  2099. *
  2100. * @type {string}
  2101. * @memberof MemoryLaneResponseDto
  2102. */
  2103. 'title': string;
  2104. }
  2105. /**
  2106. *
  2107. * @export
  2108. * @interface MergePersonDto
  2109. */
  2110. export interface MergePersonDto {
  2111. /**
  2112. *
  2113. * @type {Array<string>}
  2114. * @memberof MergePersonDto
  2115. */
  2116. 'ids': Array<string>;
  2117. }
  2118. /**
  2119. *
  2120. * @export
  2121. * @enum {string}
  2122. */
  2123. export const ModelType = {
  2124. ImageClassification: 'image-classification',
  2125. FacialRecognition: 'facial-recognition',
  2126. Clip: 'clip'
  2127. } as const;
  2128. export type ModelType = typeof ModelType[keyof typeof ModelType];
  2129. /**
  2130. *
  2131. * @export
  2132. * @interface OAuthAuthorizeResponseDto
  2133. */
  2134. export interface OAuthAuthorizeResponseDto {
  2135. /**
  2136. *
  2137. * @type {string}
  2138. * @memberof OAuthAuthorizeResponseDto
  2139. */
  2140. 'url': string;
  2141. }
  2142. /**
  2143. *
  2144. * @export
  2145. * @interface OAuthCallbackDto
  2146. */
  2147. export interface OAuthCallbackDto {
  2148. /**
  2149. *
  2150. * @type {string}
  2151. * @memberof OAuthCallbackDto
  2152. */
  2153. 'url': string;
  2154. }
  2155. /**
  2156. *
  2157. * @export
  2158. * @interface OAuthConfigDto
  2159. */
  2160. export interface OAuthConfigDto {
  2161. /**
  2162. *
  2163. * @type {string}
  2164. * @memberof OAuthConfigDto
  2165. */
  2166. 'redirectUri': string;
  2167. }
  2168. /**
  2169. *
  2170. * @export
  2171. * @interface OAuthConfigResponseDto
  2172. */
  2173. export interface OAuthConfigResponseDto {
  2174. /**
  2175. *
  2176. * @type {boolean}
  2177. * @memberof OAuthConfigResponseDto
  2178. */
  2179. 'autoLaunch'?: boolean;
  2180. /**
  2181. *
  2182. * @type {string}
  2183. * @memberof OAuthConfigResponseDto
  2184. */
  2185. 'buttonText'?: string;
  2186. /**
  2187. *
  2188. * @type {boolean}
  2189. * @memberof OAuthConfigResponseDto
  2190. */
  2191. 'enabled': boolean;
  2192. /**
  2193. *
  2194. * @type {boolean}
  2195. * @memberof OAuthConfigResponseDto
  2196. */
  2197. 'passwordLoginEnabled': boolean;
  2198. /**
  2199. *
  2200. * @type {string}
  2201. * @memberof OAuthConfigResponseDto
  2202. */
  2203. 'url'?: string;
  2204. }
  2205. /**
  2206. *
  2207. * @export
  2208. * @enum {string}
  2209. */
  2210. export const PathEntityType = {
  2211. Asset: 'asset',
  2212. Person: 'person',
  2213. User: 'user'
  2214. } as const;
  2215. export type PathEntityType = typeof PathEntityType[keyof typeof PathEntityType];
  2216. /**
  2217. *
  2218. * @export
  2219. * @enum {string}
  2220. */
  2221. export const PathType = {
  2222. Original: 'original',
  2223. JpegThumbnail: 'jpeg_thumbnail',
  2224. WebpThumbnail: 'webp_thumbnail',
  2225. EncodedVideo: 'encoded_video',
  2226. Sidecar: 'sidecar',
  2227. Face: 'face',
  2228. Profile: 'profile'
  2229. } as const;
  2230. export type PathType = typeof PathType[keyof typeof PathType];
  2231. /**
  2232. *
  2233. * @export
  2234. * @interface PeopleResponseDto
  2235. */
  2236. export interface PeopleResponseDto {
  2237. /**
  2238. *
  2239. * @type {Array<PersonResponseDto>}
  2240. * @memberof PeopleResponseDto
  2241. */
  2242. 'people': Array<PersonResponseDto>;
  2243. /**
  2244. *
  2245. * @type {number}
  2246. * @memberof PeopleResponseDto
  2247. */
  2248. 'total': number;
  2249. /**
  2250. *
  2251. * @type {number}
  2252. * @memberof PeopleResponseDto
  2253. */
  2254. 'visible': number;
  2255. }
  2256. /**
  2257. *
  2258. * @export
  2259. * @interface PeopleUpdateDto
  2260. */
  2261. export interface PeopleUpdateDto {
  2262. /**
  2263. *
  2264. * @type {Array<PeopleUpdateItem>}
  2265. * @memberof PeopleUpdateDto
  2266. */
  2267. 'people': Array<PeopleUpdateItem>;
  2268. }
  2269. /**
  2270. *
  2271. * @export
  2272. * @interface PeopleUpdateItem
  2273. */
  2274. export interface PeopleUpdateItem {
  2275. /**
  2276. * Person date of birth. Note: the mobile app cannot currently set the birth date to null.
  2277. * @type {string}
  2278. * @memberof PeopleUpdateItem
  2279. */
  2280. 'birthDate'?: string | null;
  2281. /**
  2282. * Asset is used to get the feature face thumbnail.
  2283. * @type {string}
  2284. * @memberof PeopleUpdateItem
  2285. */
  2286. 'featureFaceAssetId'?: string;
  2287. /**
  2288. * Person id.
  2289. * @type {string}
  2290. * @memberof PeopleUpdateItem
  2291. */
  2292. 'id': string;
  2293. /**
  2294. * Person visibility
  2295. * @type {boolean}
  2296. * @memberof PeopleUpdateItem
  2297. */
  2298. 'isHidden'?: boolean;
  2299. /**
  2300. * Person name.
  2301. * @type {string}
  2302. * @memberof PeopleUpdateItem
  2303. */
  2304. 'name'?: string;
  2305. }
  2306. /**
  2307. *
  2308. * @export
  2309. * @interface PersonResponseDto
  2310. */
  2311. export interface PersonResponseDto {
  2312. /**
  2313. *
  2314. * @type {string}
  2315. * @memberof PersonResponseDto
  2316. */
  2317. 'birthDate': string | null;
  2318. /**
  2319. *
  2320. * @type {string}
  2321. * @memberof PersonResponseDto
  2322. */
  2323. 'id': string;
  2324. /**
  2325. *
  2326. * @type {boolean}
  2327. * @memberof PersonResponseDto
  2328. */
  2329. 'isHidden': boolean;
  2330. /**
  2331. *
  2332. * @type {string}
  2333. * @memberof PersonResponseDto
  2334. */
  2335. 'name': string;
  2336. /**
  2337. *
  2338. * @type {string}
  2339. * @memberof PersonResponseDto
  2340. */
  2341. 'thumbnailPath': string;
  2342. }
  2343. /**
  2344. *
  2345. * @export
  2346. * @interface PersonStatisticsResponseDto
  2347. */
  2348. export interface PersonStatisticsResponseDto {
  2349. /**
  2350. *
  2351. * @type {number}
  2352. * @memberof PersonStatisticsResponseDto
  2353. */
  2354. 'assets': number;
  2355. }
  2356. /**
  2357. *
  2358. * @export
  2359. * @interface PersonUpdateDto
  2360. */
  2361. export interface PersonUpdateDto {
  2362. /**
  2363. * Person date of birth. Note: the mobile app cannot currently set the birth date to null.
  2364. * @type {string}
  2365. * @memberof PersonUpdateDto
  2366. */
  2367. 'birthDate'?: string | null;
  2368. /**
  2369. * Asset is used to get the feature face thumbnail.
  2370. * @type {string}
  2371. * @memberof PersonUpdateDto
  2372. */
  2373. 'featureFaceAssetId'?: string;
  2374. /**
  2375. * Person visibility
  2376. * @type {boolean}
  2377. * @memberof PersonUpdateDto
  2378. */
  2379. 'isHidden'?: boolean;
  2380. /**
  2381. * Person name.
  2382. * @type {string}
  2383. * @memberof PersonUpdateDto
  2384. */
  2385. 'name'?: string;
  2386. }
  2387. /**
  2388. *
  2389. * @export
  2390. * @interface QueueStatusDto
  2391. */
  2392. export interface QueueStatusDto {
  2393. /**
  2394. *
  2395. * @type {boolean}
  2396. * @memberof QueueStatusDto
  2397. */
  2398. 'isActive': boolean;
  2399. /**
  2400. *
  2401. * @type {boolean}
  2402. * @memberof QueueStatusDto
  2403. */
  2404. 'isPaused': boolean;
  2405. }
  2406. /**
  2407. *
  2408. * @export
  2409. * @interface RecognitionConfig
  2410. */
  2411. export interface RecognitionConfig {
  2412. /**
  2413. *
  2414. * @type {boolean}
  2415. * @memberof RecognitionConfig
  2416. */
  2417. 'enabled': boolean;
  2418. /**
  2419. *
  2420. * @type {number}
  2421. * @memberof RecognitionConfig
  2422. */
  2423. 'maxDistance': number;
  2424. /**
  2425. *
  2426. * @type {number}
  2427. * @memberof RecognitionConfig
  2428. */
  2429. 'minFaces': number;
  2430. /**
  2431. *
  2432. * @type {number}
  2433. * @memberof RecognitionConfig
  2434. */
  2435. 'minScore': number;
  2436. /**
  2437. *
  2438. * @type {string}
  2439. * @memberof RecognitionConfig
  2440. */
  2441. 'modelName': string;
  2442. /**
  2443. *
  2444. * @type {ModelType}
  2445. * @memberof RecognitionConfig
  2446. */
  2447. 'modelType'?: ModelType;
  2448. }
  2449. /**
  2450. *
  2451. * @export
  2452. * @interface ScanLibraryDto
  2453. */
  2454. export interface ScanLibraryDto {
  2455. /**
  2456. *
  2457. * @type {boolean}
  2458. * @memberof ScanLibraryDto
  2459. */
  2460. 'refreshAllFiles'?: boolean;
  2461. /**
  2462. *
  2463. * @type {boolean}
  2464. * @memberof ScanLibraryDto
  2465. */
  2466. 'refreshModifiedFiles'?: boolean;
  2467. }
  2468. /**
  2469. *
  2470. * @export
  2471. * @interface SearchAlbumResponseDto
  2472. */
  2473. export interface SearchAlbumResponseDto {
  2474. /**
  2475. *
  2476. * @type {number}
  2477. * @memberof SearchAlbumResponseDto
  2478. */
  2479. 'count': number;
  2480. /**
  2481. *
  2482. * @type {Array<SearchFacetResponseDto>}
  2483. * @memberof SearchAlbumResponseDto
  2484. */
  2485. 'facets': Array<SearchFacetResponseDto>;
  2486. /**
  2487. *
  2488. * @type {Array<AlbumResponseDto>}
  2489. * @memberof SearchAlbumResponseDto
  2490. */
  2491. 'items': Array<AlbumResponseDto>;
  2492. /**
  2493. *
  2494. * @type {number}
  2495. * @memberof SearchAlbumResponseDto
  2496. */
  2497. 'total': number;
  2498. }
  2499. /**
  2500. *
  2501. * @export
  2502. * @interface SearchAssetDto
  2503. */
  2504. export interface SearchAssetDto {
  2505. /**
  2506. *
  2507. * @type {string}
  2508. * @memberof SearchAssetDto
  2509. */
  2510. 'searchTerm': string;
  2511. }
  2512. /**
  2513. *
  2514. * @export
  2515. * @interface SearchAssetResponseDto
  2516. */
  2517. export interface SearchAssetResponseDto {
  2518. /**
  2519. *
  2520. * @type {number}
  2521. * @memberof SearchAssetResponseDto
  2522. */
  2523. 'count': number;
  2524. /**
  2525. *
  2526. * @type {Array<SearchFacetResponseDto>}
  2527. * @memberof SearchAssetResponseDto
  2528. */
  2529. 'facets': Array<SearchFacetResponseDto>;
  2530. /**
  2531. *
  2532. * @type {Array<AssetResponseDto>}
  2533. * @memberof SearchAssetResponseDto
  2534. */
  2535. 'items': Array<AssetResponseDto>;
  2536. /**
  2537. *
  2538. * @type {number}
  2539. * @memberof SearchAssetResponseDto
  2540. */
  2541. 'total': number;
  2542. }
  2543. /**
  2544. *
  2545. * @export
  2546. * @interface SearchExploreItem
  2547. */
  2548. export interface SearchExploreItem {
  2549. /**
  2550. *
  2551. * @type {AssetResponseDto}
  2552. * @memberof SearchExploreItem
  2553. */
  2554. 'data': AssetResponseDto;
  2555. /**
  2556. *
  2557. * @type {string}
  2558. * @memberof SearchExploreItem
  2559. */
  2560. 'value': string;
  2561. }
  2562. /**
  2563. *
  2564. * @export
  2565. * @interface SearchExploreResponseDto
  2566. */
  2567. export interface SearchExploreResponseDto {
  2568. /**
  2569. *
  2570. * @type {string}
  2571. * @memberof SearchExploreResponseDto
  2572. */
  2573. 'fieldName': string;
  2574. /**
  2575. *
  2576. * @type {Array<SearchExploreItem>}
  2577. * @memberof SearchExploreResponseDto
  2578. */
  2579. 'items': Array<SearchExploreItem>;
  2580. }
  2581. /**
  2582. *
  2583. * @export
  2584. * @interface SearchFacetCountResponseDto
  2585. */
  2586. export interface SearchFacetCountResponseDto {
  2587. /**
  2588. *
  2589. * @type {number}
  2590. * @memberof SearchFacetCountResponseDto
  2591. */
  2592. 'count': number;
  2593. /**
  2594. *
  2595. * @type {string}
  2596. * @memberof SearchFacetCountResponseDto
  2597. */
  2598. 'value': string;
  2599. }
  2600. /**
  2601. *
  2602. * @export
  2603. * @interface SearchFacetResponseDto
  2604. */
  2605. export interface SearchFacetResponseDto {
  2606. /**
  2607. *
  2608. * @type {Array<SearchFacetCountResponseDto>}
  2609. * @memberof SearchFacetResponseDto
  2610. */
  2611. 'counts': Array<SearchFacetCountResponseDto>;
  2612. /**
  2613. *
  2614. * @type {string}
  2615. * @memberof SearchFacetResponseDto
  2616. */
  2617. 'fieldName': string;
  2618. }
  2619. /**
  2620. *
  2621. * @export
  2622. * @interface SearchResponseDto
  2623. */
  2624. export interface SearchResponseDto {
  2625. /**
  2626. *
  2627. * @type {SearchAlbumResponseDto}
  2628. * @memberof SearchResponseDto
  2629. */
  2630. 'albums': SearchAlbumResponseDto;
  2631. /**
  2632. *
  2633. * @type {SearchAssetResponseDto}
  2634. * @memberof SearchResponseDto
  2635. */
  2636. 'assets': SearchAssetResponseDto;
  2637. }
  2638. /**
  2639. *
  2640. * @export
  2641. * @interface ServerConfigDto
  2642. */
  2643. export interface ServerConfigDto {
  2644. /**
  2645. *
  2646. * @type {boolean}
  2647. * @memberof ServerConfigDto
  2648. */
  2649. 'isInitialized': boolean;
  2650. /**
  2651. *
  2652. * @type {string}
  2653. * @memberof ServerConfigDto
  2654. */
  2655. 'loginPageMessage': string;
  2656. /**
  2657. *
  2658. * @type {string}
  2659. * @memberof ServerConfigDto
  2660. */
  2661. 'mapTileUrl': string;
  2662. /**
  2663. *
  2664. * @type {string}
  2665. * @memberof ServerConfigDto
  2666. */
  2667. 'oauthButtonText': string;
  2668. /**
  2669. *
  2670. * @type {number}
  2671. * @memberof ServerConfigDto
  2672. */
  2673. 'trashDays': number;
  2674. }
  2675. /**
  2676. *
  2677. * @export
  2678. * @interface ServerFeaturesDto
  2679. */
  2680. export interface ServerFeaturesDto {
  2681. /**
  2682. *
  2683. * @type {boolean}
  2684. * @memberof ServerFeaturesDto
  2685. */
  2686. 'clipEncode': boolean;
  2687. /**
  2688. *
  2689. * @type {boolean}
  2690. * @memberof ServerFeaturesDto
  2691. */
  2692. 'configFile': boolean;
  2693. /**
  2694. *
  2695. * @type {boolean}
  2696. * @memberof ServerFeaturesDto
  2697. */
  2698. 'facialRecognition': boolean;
  2699. /**
  2700. *
  2701. * @type {boolean}
  2702. * @memberof ServerFeaturesDto
  2703. */
  2704. 'map': boolean;
  2705. /**
  2706. *
  2707. * @type {boolean}
  2708. * @memberof ServerFeaturesDto
  2709. */
  2710. 'oauth': boolean;
  2711. /**
  2712. *
  2713. * @type {boolean}
  2714. * @memberof ServerFeaturesDto
  2715. */
  2716. 'oauthAutoLaunch': boolean;
  2717. /**
  2718. *
  2719. * @type {boolean}
  2720. * @memberof ServerFeaturesDto
  2721. */
  2722. 'passwordLogin': boolean;
  2723. /**
  2724. *
  2725. * @type {boolean}
  2726. * @memberof ServerFeaturesDto
  2727. */
  2728. 'reverseGeocoding': boolean;
  2729. /**
  2730. *
  2731. * @type {boolean}
  2732. * @memberof ServerFeaturesDto
  2733. */
  2734. 'search': boolean;
  2735. /**
  2736. *
  2737. * @type {boolean}
  2738. * @memberof ServerFeaturesDto
  2739. */
  2740. 'sidecar': boolean;
  2741. /**
  2742. *
  2743. * @type {boolean}
  2744. * @memberof ServerFeaturesDto
  2745. */
  2746. 'tagImage': boolean;
  2747. /**
  2748. *
  2749. * @type {boolean}
  2750. * @memberof ServerFeaturesDto
  2751. */
  2752. 'trash': boolean;
  2753. }
  2754. /**
  2755. *
  2756. * @export
  2757. * @interface ServerInfoResponseDto
  2758. */
  2759. export interface ServerInfoResponseDto {
  2760. /**
  2761. *
  2762. * @type {string}
  2763. * @memberof ServerInfoResponseDto
  2764. */
  2765. 'diskAvailable': string;
  2766. /**
  2767. *
  2768. * @type {number}
  2769. * @memberof ServerInfoResponseDto
  2770. */
  2771. 'diskAvailableRaw': number;
  2772. /**
  2773. *
  2774. * @type {string}
  2775. * @memberof ServerInfoResponseDto
  2776. */
  2777. 'diskSize': string;
  2778. /**
  2779. *
  2780. * @type {number}
  2781. * @memberof ServerInfoResponseDto
  2782. */
  2783. 'diskSizeRaw': number;
  2784. /**
  2785. *
  2786. * @type {number}
  2787. * @memberof ServerInfoResponseDto
  2788. */
  2789. 'diskUsagePercentage': number;
  2790. /**
  2791. *
  2792. * @type {string}
  2793. * @memberof ServerInfoResponseDto
  2794. */
  2795. 'diskUse': string;
  2796. /**
  2797. *
  2798. * @type {number}
  2799. * @memberof ServerInfoResponseDto
  2800. */
  2801. 'diskUseRaw': number;
  2802. }
  2803. /**
  2804. *
  2805. * @export
  2806. * @interface ServerMediaTypesResponseDto
  2807. */
  2808. export interface ServerMediaTypesResponseDto {
  2809. /**
  2810. *
  2811. * @type {Array<string>}
  2812. * @memberof ServerMediaTypesResponseDto
  2813. */
  2814. 'image': Array<string>;
  2815. /**
  2816. *
  2817. * @type {Array<string>}
  2818. * @memberof ServerMediaTypesResponseDto
  2819. */
  2820. 'sidecar': Array<string>;
  2821. /**
  2822. *
  2823. * @type {Array<string>}
  2824. * @memberof ServerMediaTypesResponseDto
  2825. */
  2826. 'video': Array<string>;
  2827. }
  2828. /**
  2829. *
  2830. * @export
  2831. * @interface ServerPingResponse
  2832. */
  2833. export interface ServerPingResponse {
  2834. /**
  2835. *
  2836. * @type {string}
  2837. * @memberof ServerPingResponse
  2838. */
  2839. 'res': string;
  2840. }
  2841. /**
  2842. *
  2843. * @export
  2844. * @interface ServerStatsResponseDto
  2845. */
  2846. export interface ServerStatsResponseDto {
  2847. /**
  2848. *
  2849. * @type {number}
  2850. * @memberof ServerStatsResponseDto
  2851. */
  2852. 'photos': number;
  2853. /**
  2854. *
  2855. * @type {number}
  2856. * @memberof ServerStatsResponseDto
  2857. */
  2858. 'usage': number;
  2859. /**
  2860. *
  2861. * @type {Array<UsageByUserDto>}
  2862. * @memberof ServerStatsResponseDto
  2863. */
  2864. 'usageByUser': Array<UsageByUserDto>;
  2865. /**
  2866. *
  2867. * @type {number}
  2868. * @memberof ServerStatsResponseDto
  2869. */
  2870. 'videos': number;
  2871. }
  2872. /**
  2873. *
  2874. * @export
  2875. * @interface ServerThemeDto
  2876. */
  2877. export interface ServerThemeDto {
  2878. /**
  2879. *
  2880. * @type {string}
  2881. * @memberof ServerThemeDto
  2882. */
  2883. 'customCss': string;
  2884. }
  2885. /**
  2886. *
  2887. * @export
  2888. * @interface ServerVersionResponseDto
  2889. */
  2890. export interface ServerVersionResponseDto {
  2891. /**
  2892. *
  2893. * @type {number}
  2894. * @memberof ServerVersionResponseDto
  2895. */
  2896. 'major': number;
  2897. /**
  2898. *
  2899. * @type {number}
  2900. * @memberof ServerVersionResponseDto
  2901. */
  2902. 'minor': number;
  2903. /**
  2904. *
  2905. * @type {number}
  2906. * @memberof ServerVersionResponseDto
  2907. */
  2908. 'patch': number;
  2909. }
  2910. /**
  2911. *
  2912. * @export
  2913. * @interface SharedLinkCreateDto
  2914. */
  2915. export interface SharedLinkCreateDto {
  2916. /**
  2917. *
  2918. * @type {string}
  2919. * @memberof SharedLinkCreateDto
  2920. */
  2921. 'albumId'?: string;
  2922. /**
  2923. *
  2924. * @type {boolean}
  2925. * @memberof SharedLinkCreateDto
  2926. */
  2927. 'allowDownload'?: boolean;
  2928. /**
  2929. *
  2930. * @type {boolean}
  2931. * @memberof SharedLinkCreateDto
  2932. */
  2933. 'allowUpload'?: boolean;
  2934. /**
  2935. *
  2936. * @type {Array<string>}
  2937. * @memberof SharedLinkCreateDto
  2938. */
  2939. 'assetIds'?: Array<string>;
  2940. /**
  2941. *
  2942. * @type {string}
  2943. * @memberof SharedLinkCreateDto
  2944. */
  2945. 'description'?: string;
  2946. /**
  2947. *
  2948. * @type {string}
  2949. * @memberof SharedLinkCreateDto
  2950. */
  2951. 'expiresAt'?: string | null;
  2952. /**
  2953. *
  2954. * @type {boolean}
  2955. * @memberof SharedLinkCreateDto
  2956. */
  2957. 'showMetadata'?: boolean;
  2958. /**
  2959. *
  2960. * @type {SharedLinkType}
  2961. * @memberof SharedLinkCreateDto
  2962. */
  2963. 'type': SharedLinkType;
  2964. }
  2965. /**
  2966. *
  2967. * @export
  2968. * @interface SharedLinkEditDto
  2969. */
  2970. export interface SharedLinkEditDto {
  2971. /**
  2972. *
  2973. * @type {boolean}
  2974. * @memberof SharedLinkEditDto
  2975. */
  2976. 'allowDownload'?: boolean;
  2977. /**
  2978. *
  2979. * @type {boolean}
  2980. * @memberof SharedLinkEditDto
  2981. */
  2982. 'allowUpload'?: boolean;
  2983. /**
  2984. * Few clients cannot send null to set the expiryTime to never. Setting this flag and not sending expiryAt is considered as null instead. Clients that can send null values can ignore this.
  2985. * @type {boolean}
  2986. * @memberof SharedLinkEditDto
  2987. */
  2988. 'changeExpiryTime'?: boolean;
  2989. /**
  2990. *
  2991. * @type {string}
  2992. * @memberof SharedLinkEditDto
  2993. */
  2994. 'description'?: string;
  2995. /**
  2996. *
  2997. * @type {string}
  2998. * @memberof SharedLinkEditDto
  2999. */
  3000. 'expiresAt'?: string | null;
  3001. /**
  3002. *
  3003. * @type {boolean}
  3004. * @memberof SharedLinkEditDto
  3005. */
  3006. 'showMetadata'?: boolean;
  3007. }
  3008. /**
  3009. *
  3010. * @export
  3011. * @interface SharedLinkResponseDto
  3012. */
  3013. export interface SharedLinkResponseDto {
  3014. /**
  3015. *
  3016. * @type {AlbumResponseDto}
  3017. * @memberof SharedLinkResponseDto
  3018. */
  3019. 'album'?: AlbumResponseDto;
  3020. /**
  3021. *
  3022. * @type {boolean}
  3023. * @memberof SharedLinkResponseDto
  3024. */
  3025. 'allowDownload': boolean;
  3026. /**
  3027. *
  3028. * @type {boolean}
  3029. * @memberof SharedLinkResponseDto
  3030. */
  3031. 'allowUpload': boolean;
  3032. /**
  3033. *
  3034. * @type {Array<AssetResponseDto>}
  3035. * @memberof SharedLinkResponseDto
  3036. */
  3037. 'assets': Array<AssetResponseDto>;
  3038. /**
  3039. *
  3040. * @type {string}
  3041. * @memberof SharedLinkResponseDto
  3042. */
  3043. 'createdAt': string;
  3044. /**
  3045. *
  3046. * @type {string}
  3047. * @memberof SharedLinkResponseDto
  3048. */
  3049. 'description': string | null;
  3050. /**
  3051. *
  3052. * @type {string}
  3053. * @memberof SharedLinkResponseDto
  3054. */
  3055. 'expiresAt': string | null;
  3056. /**
  3057. *
  3058. * @type {string}
  3059. * @memberof SharedLinkResponseDto
  3060. */
  3061. 'id': string;
  3062. /**
  3063. *
  3064. * @type {string}
  3065. * @memberof SharedLinkResponseDto
  3066. */
  3067. 'key': string;
  3068. /**
  3069. *
  3070. * @type {boolean}
  3071. * @memberof SharedLinkResponseDto
  3072. */
  3073. 'showMetadata': boolean;
  3074. /**
  3075. *
  3076. * @type {SharedLinkType}
  3077. * @memberof SharedLinkResponseDto
  3078. */
  3079. 'type': SharedLinkType;
  3080. /**
  3081. *
  3082. * @type {string}
  3083. * @memberof SharedLinkResponseDto
  3084. */
  3085. 'userId': string;
  3086. }
  3087. /**
  3088. *
  3089. * @export
  3090. * @enum {string}
  3091. */
  3092. export const SharedLinkType = {
  3093. Album: 'ALBUM',
  3094. Individual: 'INDIVIDUAL'
  3095. } as const;
  3096. export type SharedLinkType = typeof SharedLinkType[keyof typeof SharedLinkType];
  3097. /**
  3098. *
  3099. * @export
  3100. * @interface SignUpDto
  3101. */
  3102. export interface SignUpDto {
  3103. /**
  3104. *
  3105. * @type {string}
  3106. * @memberof SignUpDto
  3107. */
  3108. 'email': string;
  3109. /**
  3110. *
  3111. * @type {string}
  3112. * @memberof SignUpDto
  3113. */
  3114. 'firstName': string;
  3115. /**
  3116. *
  3117. * @type {string}
  3118. * @memberof SignUpDto
  3119. */
  3120. 'lastName': string;
  3121. /**
  3122. *
  3123. * @type {string}
  3124. * @memberof SignUpDto
  3125. */
  3126. 'password': string;
  3127. }
  3128. /**
  3129. *
  3130. * @export
  3131. * @interface SmartInfoResponseDto
  3132. */
  3133. export interface SmartInfoResponseDto {
  3134. /**
  3135. *
  3136. * @type {Array<string>}
  3137. * @memberof SmartInfoResponseDto
  3138. */
  3139. 'objects'?: Array<string> | null;
  3140. /**
  3141. *
  3142. * @type {Array<string>}
  3143. * @memberof SmartInfoResponseDto
  3144. */
  3145. 'tags'?: Array<string> | null;
  3146. }
  3147. /**
  3148. *
  3149. * @export
  3150. * @interface SystemConfigDto
  3151. */
  3152. export interface SystemConfigDto {
  3153. /**
  3154. *
  3155. * @type {SystemConfigFFmpegDto}
  3156. * @memberof SystemConfigDto
  3157. */
  3158. 'ffmpeg': SystemConfigFFmpegDto;
  3159. /**
  3160. *
  3161. * @type {SystemConfigJobDto}
  3162. * @memberof SystemConfigDto
  3163. */
  3164. 'job': SystemConfigJobDto;
  3165. /**
  3166. *
  3167. * @type {SystemConfigMachineLearningDto}
  3168. * @memberof SystemConfigDto
  3169. */
  3170. 'machineLearning': SystemConfigMachineLearningDto;
  3171. /**
  3172. *
  3173. * @type {SystemConfigMapDto}
  3174. * @memberof SystemConfigDto
  3175. */
  3176. 'map': SystemConfigMapDto;
  3177. /**
  3178. *
  3179. * @type {SystemConfigNewVersionCheckDto}
  3180. * @memberof SystemConfigDto
  3181. */
  3182. 'newVersionCheck': SystemConfigNewVersionCheckDto;
  3183. /**
  3184. *
  3185. * @type {SystemConfigOAuthDto}
  3186. * @memberof SystemConfigDto
  3187. */
  3188. 'oauth': SystemConfigOAuthDto;
  3189. /**
  3190. *
  3191. * @type {SystemConfigPasswordLoginDto}
  3192. * @memberof SystemConfigDto
  3193. */
  3194. 'passwordLogin': SystemConfigPasswordLoginDto;
  3195. /**
  3196. *
  3197. * @type {SystemConfigReverseGeocodingDto}
  3198. * @memberof SystemConfigDto
  3199. */
  3200. 'reverseGeocoding': SystemConfigReverseGeocodingDto;
  3201. /**
  3202. *
  3203. * @type {SystemConfigStorageTemplateDto}
  3204. * @memberof SystemConfigDto
  3205. */
  3206. 'storageTemplate': SystemConfigStorageTemplateDto;
  3207. /**
  3208. *
  3209. * @type {SystemConfigThemeDto}
  3210. * @memberof SystemConfigDto
  3211. */
  3212. 'theme': SystemConfigThemeDto;
  3213. /**
  3214. *
  3215. * @type {SystemConfigThumbnailDto}
  3216. * @memberof SystemConfigDto
  3217. */
  3218. 'thumbnail': SystemConfigThumbnailDto;
  3219. /**
  3220. *
  3221. * @type {SystemConfigTrashDto}
  3222. * @memberof SystemConfigDto
  3223. */
  3224. 'trash': SystemConfigTrashDto;
  3225. }
  3226. /**
  3227. *
  3228. * @export
  3229. * @interface SystemConfigFFmpegDto
  3230. */
  3231. export interface SystemConfigFFmpegDto {
  3232. /**
  3233. *
  3234. * @type {TranscodeHWAccel}
  3235. * @memberof SystemConfigFFmpegDto
  3236. */
  3237. 'accel': TranscodeHWAccel;
  3238. /**
  3239. *
  3240. * @type {number}
  3241. * @memberof SystemConfigFFmpegDto
  3242. */
  3243. 'bframes': number;
  3244. /**
  3245. *
  3246. * @type {CQMode}
  3247. * @memberof SystemConfigFFmpegDto
  3248. */
  3249. 'cqMode': CQMode;
  3250. /**
  3251. *
  3252. * @type {number}
  3253. * @memberof SystemConfigFFmpegDto
  3254. */
  3255. 'crf': number;
  3256. /**
  3257. *
  3258. * @type {number}
  3259. * @memberof SystemConfigFFmpegDto
  3260. */
  3261. 'gopSize': number;
  3262. /**
  3263. *
  3264. * @type {string}
  3265. * @memberof SystemConfigFFmpegDto
  3266. */
  3267. 'maxBitrate': string;
  3268. /**
  3269. *
  3270. * @type {number}
  3271. * @memberof SystemConfigFFmpegDto
  3272. */
  3273. 'npl': number;
  3274. /**
  3275. *
  3276. * @type {string}
  3277. * @memberof SystemConfigFFmpegDto
  3278. */
  3279. 'preset': string;
  3280. /**
  3281. *
  3282. * @type {number}
  3283. * @memberof SystemConfigFFmpegDto
  3284. */
  3285. 'refs': number;
  3286. /**
  3287. *
  3288. * @type {AudioCodec}
  3289. * @memberof SystemConfigFFmpegDto
  3290. */
  3291. 'targetAudioCodec': AudioCodec;
  3292. /**
  3293. *
  3294. * @type {string}
  3295. * @memberof SystemConfigFFmpegDto
  3296. */
  3297. 'targetResolution': string;
  3298. /**
  3299. *
  3300. * @type {VideoCodec}
  3301. * @memberof SystemConfigFFmpegDto
  3302. */
  3303. 'targetVideoCodec': VideoCodec;
  3304. /**
  3305. *
  3306. * @type {boolean}
  3307. * @memberof SystemConfigFFmpegDto
  3308. */
  3309. 'temporalAQ': boolean;
  3310. /**
  3311. *
  3312. * @type {number}
  3313. * @memberof SystemConfigFFmpegDto
  3314. */
  3315. 'threads': number;
  3316. /**
  3317. *
  3318. * @type {ToneMapping}
  3319. * @memberof SystemConfigFFmpegDto
  3320. */
  3321. 'tonemap': ToneMapping;
  3322. /**
  3323. *
  3324. * @type {TranscodePolicy}
  3325. * @memberof SystemConfigFFmpegDto
  3326. */
  3327. 'transcode': TranscodePolicy;
  3328. /**
  3329. *
  3330. * @type {boolean}
  3331. * @memberof SystemConfigFFmpegDto
  3332. */
  3333. 'twoPass': boolean;
  3334. }
  3335. /**
  3336. *
  3337. * @export
  3338. * @interface SystemConfigJobDto
  3339. */
  3340. export interface SystemConfigJobDto {
  3341. /**
  3342. *
  3343. * @type {JobSettingsDto}
  3344. * @memberof SystemConfigJobDto
  3345. */
  3346. 'backgroundTask': JobSettingsDto;
  3347. /**
  3348. *
  3349. * @type {JobSettingsDto}
  3350. * @memberof SystemConfigJobDto
  3351. */
  3352. 'clipEncoding': JobSettingsDto;
  3353. /**
  3354. *
  3355. * @type {JobSettingsDto}
  3356. * @memberof SystemConfigJobDto
  3357. */
  3358. 'library': JobSettingsDto;
  3359. /**
  3360. *
  3361. * @type {JobSettingsDto}
  3362. * @memberof SystemConfigJobDto
  3363. */
  3364. 'metadataExtraction': JobSettingsDto;
  3365. /**
  3366. *
  3367. * @type {JobSettingsDto}
  3368. * @memberof SystemConfigJobDto
  3369. */
  3370. 'migration': JobSettingsDto;
  3371. /**
  3372. *
  3373. * @type {JobSettingsDto}
  3374. * @memberof SystemConfigJobDto
  3375. */
  3376. 'objectTagging': JobSettingsDto;
  3377. /**
  3378. *
  3379. * @type {JobSettingsDto}
  3380. * @memberof SystemConfigJobDto
  3381. */
  3382. 'recognizeFaces': JobSettingsDto;
  3383. /**
  3384. *
  3385. * @type {JobSettingsDto}
  3386. * @memberof SystemConfigJobDto
  3387. */
  3388. 'search': JobSettingsDto;
  3389. /**
  3390. *
  3391. * @type {JobSettingsDto}
  3392. * @memberof SystemConfigJobDto
  3393. */
  3394. 'sidecar': JobSettingsDto;
  3395. /**
  3396. *
  3397. * @type {JobSettingsDto}
  3398. * @memberof SystemConfigJobDto
  3399. */
  3400. 'storageTemplateMigration': JobSettingsDto;
  3401. /**
  3402. *
  3403. * @type {JobSettingsDto}
  3404. * @memberof SystemConfigJobDto
  3405. */
  3406. 'thumbnailGeneration': JobSettingsDto;
  3407. /**
  3408. *
  3409. * @type {JobSettingsDto}
  3410. * @memberof SystemConfigJobDto
  3411. */
  3412. 'videoConversion': JobSettingsDto;
  3413. }
  3414. /**
  3415. *
  3416. * @export
  3417. * @interface SystemConfigMachineLearningDto
  3418. */
  3419. export interface SystemConfigMachineLearningDto {
  3420. /**
  3421. *
  3422. * @type {ClassificationConfig}
  3423. * @memberof SystemConfigMachineLearningDto
  3424. */
  3425. 'classification': ClassificationConfig;
  3426. /**
  3427. *
  3428. * @type {CLIPConfig}
  3429. * @memberof SystemConfigMachineLearningDto
  3430. */
  3431. 'clip': CLIPConfig;
  3432. /**
  3433. *
  3434. * @type {boolean}
  3435. * @memberof SystemConfigMachineLearningDto
  3436. */
  3437. 'enabled': boolean;
  3438. /**
  3439. *
  3440. * @type {RecognitionConfig}
  3441. * @memberof SystemConfigMachineLearningDto
  3442. */
  3443. 'facialRecognition': RecognitionConfig;
  3444. /**
  3445. *
  3446. * @type {string}
  3447. * @memberof SystemConfigMachineLearningDto
  3448. */
  3449. 'url': string;
  3450. }
  3451. /**
  3452. *
  3453. * @export
  3454. * @interface SystemConfigMapDto
  3455. */
  3456. export interface SystemConfigMapDto {
  3457. /**
  3458. *
  3459. * @type {boolean}
  3460. * @memberof SystemConfigMapDto
  3461. */
  3462. 'enabled': boolean;
  3463. /**
  3464. *
  3465. * @type {string}
  3466. * @memberof SystemConfigMapDto
  3467. */
  3468. 'tileUrl': string;
  3469. }
  3470. /**
  3471. *
  3472. * @export
  3473. * @interface SystemConfigNewVersionCheckDto
  3474. */
  3475. export interface SystemConfigNewVersionCheckDto {
  3476. /**
  3477. *
  3478. * @type {boolean}
  3479. * @memberof SystemConfigNewVersionCheckDto
  3480. */
  3481. 'enabled': boolean;
  3482. }
  3483. /**
  3484. *
  3485. * @export
  3486. * @interface SystemConfigOAuthDto
  3487. */
  3488. export interface SystemConfigOAuthDto {
  3489. /**
  3490. *
  3491. * @type {boolean}
  3492. * @memberof SystemConfigOAuthDto
  3493. */
  3494. 'autoLaunch': boolean;
  3495. /**
  3496. *
  3497. * @type {boolean}
  3498. * @memberof SystemConfigOAuthDto
  3499. */
  3500. 'autoRegister': boolean;
  3501. /**
  3502. *
  3503. * @type {string}
  3504. * @memberof SystemConfigOAuthDto
  3505. */
  3506. 'buttonText': string;
  3507. /**
  3508. *
  3509. * @type {string}
  3510. * @memberof SystemConfigOAuthDto
  3511. */
  3512. 'clientId': string;
  3513. /**
  3514. *
  3515. * @type {string}
  3516. * @memberof SystemConfigOAuthDto
  3517. */
  3518. 'clientSecret': string;
  3519. /**
  3520. *
  3521. * @type {boolean}
  3522. * @memberof SystemConfigOAuthDto
  3523. */
  3524. 'enabled': boolean;
  3525. /**
  3526. *
  3527. * @type {string}
  3528. * @memberof SystemConfigOAuthDto
  3529. */
  3530. 'issuerUrl': string;
  3531. /**
  3532. *
  3533. * @type {boolean}
  3534. * @memberof SystemConfigOAuthDto
  3535. */
  3536. 'mobileOverrideEnabled': boolean;
  3537. /**
  3538. *
  3539. * @type {string}
  3540. * @memberof SystemConfigOAuthDto
  3541. */
  3542. 'mobileRedirectUri': string;
  3543. /**
  3544. *
  3545. * @type {string}
  3546. * @memberof SystemConfigOAuthDto
  3547. */
  3548. 'scope': string;
  3549. /**
  3550. *
  3551. * @type {string}
  3552. * @memberof SystemConfigOAuthDto
  3553. */
  3554. 'storageLabelClaim': string;
  3555. }
  3556. /**
  3557. *
  3558. * @export
  3559. * @interface SystemConfigPasswordLoginDto
  3560. */
  3561. export interface SystemConfigPasswordLoginDto {
  3562. /**
  3563. *
  3564. * @type {boolean}
  3565. * @memberof SystemConfigPasswordLoginDto
  3566. */
  3567. 'enabled': boolean;
  3568. }
  3569. /**
  3570. *
  3571. * @export
  3572. * @interface SystemConfigReverseGeocodingDto
  3573. */
  3574. export interface SystemConfigReverseGeocodingDto {
  3575. /**
  3576. *
  3577. * @type {CitiesFile}
  3578. * @memberof SystemConfigReverseGeocodingDto
  3579. */
  3580. 'citiesFileOverride': CitiesFile;
  3581. /**
  3582. *
  3583. * @type {boolean}
  3584. * @memberof SystemConfigReverseGeocodingDto
  3585. */
  3586. 'enabled': boolean;
  3587. }
  3588. /**
  3589. *
  3590. * @export
  3591. * @interface SystemConfigStorageTemplateDto
  3592. */
  3593. export interface SystemConfigStorageTemplateDto {
  3594. /**
  3595. *
  3596. * @type {string}
  3597. * @memberof SystemConfigStorageTemplateDto
  3598. */
  3599. 'template': string;
  3600. }
  3601. /**
  3602. *
  3603. * @export
  3604. * @interface SystemConfigTemplateStorageOptionDto
  3605. */
  3606. export interface SystemConfigTemplateStorageOptionDto {
  3607. /**
  3608. *
  3609. * @type {Array<string>}
  3610. * @memberof SystemConfigTemplateStorageOptionDto
  3611. */
  3612. 'dayOptions': Array<string>;
  3613. /**
  3614. *
  3615. * @type {Array<string>}
  3616. * @memberof SystemConfigTemplateStorageOptionDto
  3617. */
  3618. 'hourOptions': Array<string>;
  3619. /**
  3620. *
  3621. * @type {Array<string>}
  3622. * @memberof SystemConfigTemplateStorageOptionDto
  3623. */
  3624. 'minuteOptions': Array<string>;
  3625. /**
  3626. *
  3627. * @type {Array<string>}
  3628. * @memberof SystemConfigTemplateStorageOptionDto
  3629. */
  3630. 'monthOptions': Array<string>;
  3631. /**
  3632. *
  3633. * @type {Array<string>}
  3634. * @memberof SystemConfigTemplateStorageOptionDto
  3635. */
  3636. 'presetOptions': Array<string>;
  3637. /**
  3638. *
  3639. * @type {Array<string>}
  3640. * @memberof SystemConfigTemplateStorageOptionDto
  3641. */
  3642. 'secondOptions': Array<string>;
  3643. /**
  3644. *
  3645. * @type {Array<string>}
  3646. * @memberof SystemConfigTemplateStorageOptionDto
  3647. */
  3648. 'weekOptions': Array<string>;
  3649. /**
  3650. *
  3651. * @type {Array<string>}
  3652. * @memberof SystemConfigTemplateStorageOptionDto
  3653. */
  3654. 'yearOptions': Array<string>;
  3655. }
  3656. /**
  3657. *
  3658. * @export
  3659. * @interface SystemConfigThemeDto
  3660. */
  3661. export interface SystemConfigThemeDto {
  3662. /**
  3663. *
  3664. * @type {string}
  3665. * @memberof SystemConfigThemeDto
  3666. */
  3667. 'customCss': string;
  3668. }
  3669. /**
  3670. *
  3671. * @export
  3672. * @interface SystemConfigThumbnailDto
  3673. */
  3674. export interface SystemConfigThumbnailDto {
  3675. /**
  3676. *
  3677. * @type {Colorspace}
  3678. * @memberof SystemConfigThumbnailDto
  3679. */
  3680. 'colorspace': Colorspace;
  3681. /**
  3682. *
  3683. * @type {number}
  3684. * @memberof SystemConfigThumbnailDto
  3685. */
  3686. 'jpegSize': number;
  3687. /**
  3688. *
  3689. * @type {number}
  3690. * @memberof SystemConfigThumbnailDto
  3691. */
  3692. 'quality': number;
  3693. /**
  3694. *
  3695. * @type {number}
  3696. * @memberof SystemConfigThumbnailDto
  3697. */
  3698. 'webpSize': number;
  3699. }
  3700. /**
  3701. *
  3702. * @export
  3703. * @interface SystemConfigTrashDto
  3704. */
  3705. export interface SystemConfigTrashDto {
  3706. /**
  3707. *
  3708. * @type {number}
  3709. * @memberof SystemConfigTrashDto
  3710. */
  3711. 'days': number;
  3712. /**
  3713. *
  3714. * @type {boolean}
  3715. * @memberof SystemConfigTrashDto
  3716. */
  3717. 'enabled': boolean;
  3718. }
  3719. /**
  3720. *
  3721. * @export
  3722. * @interface TagResponseDto
  3723. */
  3724. export interface TagResponseDto {
  3725. /**
  3726. *
  3727. * @type {string}
  3728. * @memberof TagResponseDto
  3729. */
  3730. 'id': string;
  3731. /**
  3732. *
  3733. * @type {string}
  3734. * @memberof TagResponseDto
  3735. */
  3736. 'name': string;
  3737. /**
  3738. *
  3739. * @type {TagTypeEnum}
  3740. * @memberof TagResponseDto
  3741. */
  3742. 'type': TagTypeEnum;
  3743. /**
  3744. *
  3745. * @type {string}
  3746. * @memberof TagResponseDto
  3747. */
  3748. 'userId': string;
  3749. }
  3750. /**
  3751. *
  3752. * @export
  3753. * @enum {string}
  3754. */
  3755. export const TagTypeEnum = {
  3756. Object: 'OBJECT',
  3757. Face: 'FACE',
  3758. Custom: 'CUSTOM'
  3759. } as const;
  3760. export type TagTypeEnum = typeof TagTypeEnum[keyof typeof TagTypeEnum];
  3761. /**
  3762. *
  3763. * @export
  3764. * @enum {string}
  3765. */
  3766. export const ThumbnailFormat = {
  3767. Jpeg: 'JPEG',
  3768. Webp: 'WEBP'
  3769. } as const;
  3770. export type ThumbnailFormat = typeof ThumbnailFormat[keyof typeof ThumbnailFormat];
  3771. /**
  3772. *
  3773. * @export
  3774. * @interface TimeBucketResponseDto
  3775. */
  3776. export interface TimeBucketResponseDto {
  3777. /**
  3778. *
  3779. * @type {number}
  3780. * @memberof TimeBucketResponseDto
  3781. */
  3782. 'count': number;
  3783. /**
  3784. *
  3785. * @type {string}
  3786. * @memberof TimeBucketResponseDto
  3787. */
  3788. 'timeBucket': string;
  3789. }
  3790. /**
  3791. *
  3792. * @export
  3793. * @enum {string}
  3794. */
  3795. export const TimeBucketSize = {
  3796. Day: 'DAY',
  3797. Month: 'MONTH'
  3798. } as const;
  3799. export type TimeBucketSize = typeof TimeBucketSize[keyof typeof TimeBucketSize];
  3800. /**
  3801. *
  3802. * @export
  3803. * @enum {string}
  3804. */
  3805. export const ToneMapping = {
  3806. Hable: 'hable',
  3807. Mobius: 'mobius',
  3808. Reinhard: 'reinhard',
  3809. Disabled: 'disabled'
  3810. } as const;
  3811. export type ToneMapping = typeof ToneMapping[keyof typeof ToneMapping];
  3812. /**
  3813. *
  3814. * @export
  3815. * @enum {string}
  3816. */
  3817. export const TranscodeHWAccel = {
  3818. Nvenc: 'nvenc',
  3819. Qsv: 'qsv',
  3820. Vaapi: 'vaapi',
  3821. Disabled: 'disabled'
  3822. } as const;
  3823. export type TranscodeHWAccel = typeof TranscodeHWAccel[keyof typeof TranscodeHWAccel];
  3824. /**
  3825. *
  3826. * @export
  3827. * @enum {string}
  3828. */
  3829. export const TranscodePolicy = {
  3830. All: 'all',
  3831. Optimal: 'optimal',
  3832. Required: 'required',
  3833. Disabled: 'disabled'
  3834. } as const;
  3835. export type TranscodePolicy = typeof TranscodePolicy[keyof typeof TranscodePolicy];
  3836. /**
  3837. *
  3838. * @export
  3839. * @interface UpdateAlbumDto
  3840. */
  3841. export interface UpdateAlbumDto {
  3842. /**
  3843. *
  3844. * @type {string}
  3845. * @memberof UpdateAlbumDto
  3846. */
  3847. 'albumName'?: string;
  3848. /**
  3849. *
  3850. * @type {string}
  3851. * @memberof UpdateAlbumDto
  3852. */
  3853. 'albumThumbnailAssetId'?: string;
  3854. /**
  3855. *
  3856. * @type {string}
  3857. * @memberof UpdateAlbumDto
  3858. */
  3859. 'description'?: string;
  3860. }
  3861. /**
  3862. *
  3863. * @export
  3864. * @interface UpdateAssetDto
  3865. */
  3866. export interface UpdateAssetDto {
  3867. /**
  3868. *
  3869. * @type {string}
  3870. * @memberof UpdateAssetDto
  3871. */
  3872. 'description'?: string;
  3873. /**
  3874. *
  3875. * @type {boolean}
  3876. * @memberof UpdateAssetDto
  3877. */
  3878. 'isArchived'?: boolean;
  3879. /**
  3880. *
  3881. * @type {boolean}
  3882. * @memberof UpdateAssetDto
  3883. */
  3884. 'isFavorite'?: boolean;
  3885. }
  3886. /**
  3887. *
  3888. * @export
  3889. * @interface UpdateLibraryDto
  3890. */
  3891. export interface UpdateLibraryDto {
  3892. /**
  3893. *
  3894. * @type {Array<string>}
  3895. * @memberof UpdateLibraryDto
  3896. */
  3897. 'exclusionPatterns'?: Array<string>;
  3898. /**
  3899. *
  3900. * @type {Array<string>}
  3901. * @memberof UpdateLibraryDto
  3902. */
  3903. 'importPaths'?: Array<string>;
  3904. /**
  3905. *
  3906. * @type {boolean}
  3907. * @memberof UpdateLibraryDto
  3908. */
  3909. 'isVisible'?: boolean;
  3910. /**
  3911. *
  3912. * @type {string}
  3913. * @memberof UpdateLibraryDto
  3914. */
  3915. 'name'?: string;
  3916. }
  3917. /**
  3918. *
  3919. * @export
  3920. * @interface UpdateStackParentDto
  3921. */
  3922. export interface UpdateStackParentDto {
  3923. /**
  3924. *
  3925. * @type {string}
  3926. * @memberof UpdateStackParentDto
  3927. */
  3928. 'newParentId': string;
  3929. /**
  3930. *
  3931. * @type {string}
  3932. * @memberof UpdateStackParentDto
  3933. */
  3934. 'oldParentId': string;
  3935. }
  3936. /**
  3937. *
  3938. * @export
  3939. * @interface UpdateTagDto
  3940. */
  3941. export interface UpdateTagDto {
  3942. /**
  3943. *
  3944. * @type {string}
  3945. * @memberof UpdateTagDto
  3946. */
  3947. 'name'?: string;
  3948. }
  3949. /**
  3950. *
  3951. * @export
  3952. * @interface UpdateUserDto
  3953. */
  3954. export interface UpdateUserDto {
  3955. /**
  3956. *
  3957. * @type {string}
  3958. * @memberof UpdateUserDto
  3959. */
  3960. 'email'?: string;
  3961. /**
  3962. *
  3963. * @type {string}
  3964. * @memberof UpdateUserDto
  3965. */
  3966. 'externalPath'?: string;
  3967. /**
  3968. *
  3969. * @type {string}
  3970. * @memberof UpdateUserDto
  3971. */
  3972. 'firstName'?: string;
  3973. /**
  3974. *
  3975. * @type {string}
  3976. * @memberof UpdateUserDto
  3977. */
  3978. 'id': string;
  3979. /**
  3980. *
  3981. * @type {boolean}
  3982. * @memberof UpdateUserDto
  3983. */
  3984. 'isAdmin'?: boolean;
  3985. /**
  3986. *
  3987. * @type {string}
  3988. * @memberof UpdateUserDto
  3989. */
  3990. 'lastName'?: string;
  3991. /**
  3992. *
  3993. * @type {boolean}
  3994. * @memberof UpdateUserDto
  3995. */
  3996. 'memoriesEnabled'?: boolean;
  3997. /**
  3998. *
  3999. * @type {string}
  4000. * @memberof UpdateUserDto
  4001. */
  4002. 'password'?: string;
  4003. /**
  4004. *
  4005. * @type {boolean}
  4006. * @memberof UpdateUserDto
  4007. */
  4008. 'shouldChangePassword'?: boolean;
  4009. /**
  4010. *
  4011. * @type {string}
  4012. * @memberof UpdateUserDto
  4013. */
  4014. 'storageLabel'?: string;
  4015. }
  4016. /**
  4017. *
  4018. * @export
  4019. * @interface UsageByUserDto
  4020. */
  4021. export interface UsageByUserDto {
  4022. /**
  4023. *
  4024. * @type {number}
  4025. * @memberof UsageByUserDto
  4026. */
  4027. 'photos': number;
  4028. /**
  4029. *
  4030. * @type {number}
  4031. * @memberof UsageByUserDto
  4032. */
  4033. 'usage': number;
  4034. /**
  4035. *
  4036. * @type {string}
  4037. * @memberof UsageByUserDto
  4038. */
  4039. 'userFirstName': string;
  4040. /**
  4041. *
  4042. * @type {string}
  4043. * @memberof UsageByUserDto
  4044. */
  4045. 'userId': string;
  4046. /**
  4047. *
  4048. * @type {string}
  4049. * @memberof UsageByUserDto
  4050. */
  4051. 'userLastName': string;
  4052. /**
  4053. *
  4054. * @type {number}
  4055. * @memberof UsageByUserDto
  4056. */
  4057. 'videos': number;
  4058. }
  4059. /**
  4060. *
  4061. * @export
  4062. * @interface UserCountResponseDto
  4063. */
  4064. export interface UserCountResponseDto {
  4065. /**
  4066. *
  4067. * @type {number}
  4068. * @memberof UserCountResponseDto
  4069. */
  4070. 'userCount': number;
  4071. }
  4072. /**
  4073. *
  4074. * @export
  4075. * @interface UserResponseDto
  4076. */
  4077. export interface UserResponseDto {
  4078. /**
  4079. *
  4080. * @type {string}
  4081. * @memberof UserResponseDto
  4082. */
  4083. 'createdAt': string;
  4084. /**
  4085. *
  4086. * @type {string}
  4087. * @memberof UserResponseDto
  4088. */
  4089. 'deletedAt': string | null;
  4090. /**
  4091. *
  4092. * @type {string}
  4093. * @memberof UserResponseDto
  4094. */
  4095. 'email': string;
  4096. /**
  4097. *
  4098. * @type {string}
  4099. * @memberof UserResponseDto
  4100. */
  4101. 'externalPath': string | null;
  4102. /**
  4103. *
  4104. * @type {string}
  4105. * @memberof UserResponseDto
  4106. */
  4107. 'firstName': string;
  4108. /**
  4109. *
  4110. * @type {string}
  4111. * @memberof UserResponseDto
  4112. */
  4113. 'id': string;
  4114. /**
  4115. *
  4116. * @type {boolean}
  4117. * @memberof UserResponseDto
  4118. */
  4119. 'isAdmin': boolean;
  4120. /**
  4121. *
  4122. * @type {string}
  4123. * @memberof UserResponseDto
  4124. */
  4125. 'lastName': string;
  4126. /**
  4127. *
  4128. * @type {boolean}
  4129. * @memberof UserResponseDto
  4130. */
  4131. 'memoriesEnabled'?: boolean;
  4132. /**
  4133. *
  4134. * @type {string}
  4135. * @memberof UserResponseDto
  4136. */
  4137. 'oauthId': string;
  4138. /**
  4139. *
  4140. * @type {string}
  4141. * @memberof UserResponseDto
  4142. */
  4143. 'profileImagePath': string;
  4144. /**
  4145. *
  4146. * @type {boolean}
  4147. * @memberof UserResponseDto
  4148. */
  4149. 'shouldChangePassword': boolean;
  4150. /**
  4151. *
  4152. * @type {string}
  4153. * @memberof UserResponseDto
  4154. */
  4155. 'storageLabel': string | null;
  4156. /**
  4157. *
  4158. * @type {string}
  4159. * @memberof UserResponseDto
  4160. */
  4161. 'updatedAt': string;
  4162. }
  4163. /**
  4164. *
  4165. * @export
  4166. * @interface ValidateAccessTokenResponseDto
  4167. */
  4168. export interface ValidateAccessTokenResponseDto {
  4169. /**
  4170. *
  4171. * @type {boolean}
  4172. * @memberof ValidateAccessTokenResponseDto
  4173. */
  4174. 'authStatus': boolean;
  4175. }
  4176. /**
  4177. *
  4178. * @export
  4179. * @enum {string}
  4180. */
  4181. export const VideoCodec = {
  4182. H264: 'h264',
  4183. Hevc: 'hevc',
  4184. Vp9: 'vp9'
  4185. } as const;
  4186. export type VideoCodec = typeof VideoCodec[keyof typeof VideoCodec];
  4187. /**
  4188. * APIKeyApi - axios parameter creator
  4189. * @export
  4190. */
  4191. export const APIKeyApiAxiosParamCreator = function (configuration?: Configuration) {
  4192. return {
  4193. /**
  4194. *
  4195. * @param {APIKeyCreateDto} aPIKeyCreateDto
  4196. * @param {*} [options] Override http request option.
  4197. * @throws {RequiredError}
  4198. */
  4199. createKey: async (aPIKeyCreateDto: APIKeyCreateDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4200. // verify required parameter 'aPIKeyCreateDto' is not null or undefined
  4201. assertParamExists('createKey', 'aPIKeyCreateDto', aPIKeyCreateDto)
  4202. const localVarPath = `/api-key`;
  4203. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4204. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4205. let baseOptions;
  4206. if (configuration) {
  4207. baseOptions = configuration.baseOptions;
  4208. }
  4209. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  4210. const localVarHeaderParameter = {} as any;
  4211. const localVarQueryParameter = {} as any;
  4212. // authentication cookie required
  4213. // authentication api_key required
  4214. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4215. // authentication bearer required
  4216. // http bearer authentication required
  4217. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4218. localVarHeaderParameter['Content-Type'] = 'application/json';
  4219. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4220. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4221. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4222. localVarRequestOptions.data = serializeDataIfNeeded(aPIKeyCreateDto, localVarRequestOptions, configuration)
  4223. return {
  4224. url: toPathString(localVarUrlObj),
  4225. options: localVarRequestOptions,
  4226. };
  4227. },
  4228. /**
  4229. *
  4230. * @param {string} id
  4231. * @param {*} [options] Override http request option.
  4232. * @throws {RequiredError}
  4233. */
  4234. deleteKey: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4235. // verify required parameter 'id' is not null or undefined
  4236. assertParamExists('deleteKey', 'id', id)
  4237. const localVarPath = `/api-key/{id}`
  4238. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  4239. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4240. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4241. let baseOptions;
  4242. if (configuration) {
  4243. baseOptions = configuration.baseOptions;
  4244. }
  4245. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  4246. const localVarHeaderParameter = {} as any;
  4247. const localVarQueryParameter = {} as any;
  4248. // authentication cookie required
  4249. // authentication api_key required
  4250. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4251. // authentication bearer required
  4252. // http bearer authentication required
  4253. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4254. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4255. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4256. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4257. return {
  4258. url: toPathString(localVarUrlObj),
  4259. options: localVarRequestOptions,
  4260. };
  4261. },
  4262. /**
  4263. *
  4264. * @param {string} id
  4265. * @param {*} [options] Override http request option.
  4266. * @throws {RequiredError}
  4267. */
  4268. getKey: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4269. // verify required parameter 'id' is not null or undefined
  4270. assertParamExists('getKey', 'id', id)
  4271. const localVarPath = `/api-key/{id}`
  4272. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  4273. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4274. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4275. let baseOptions;
  4276. if (configuration) {
  4277. baseOptions = configuration.baseOptions;
  4278. }
  4279. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  4280. const localVarHeaderParameter = {} as any;
  4281. const localVarQueryParameter = {} as any;
  4282. // authentication cookie required
  4283. // authentication api_key required
  4284. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4285. // authentication bearer required
  4286. // http bearer authentication required
  4287. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4288. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4289. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4290. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4291. return {
  4292. url: toPathString(localVarUrlObj),
  4293. options: localVarRequestOptions,
  4294. };
  4295. },
  4296. /**
  4297. *
  4298. * @param {*} [options] Override http request option.
  4299. * @throws {RequiredError}
  4300. */
  4301. getKeys: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4302. const localVarPath = `/api-key`;
  4303. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4304. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4305. let baseOptions;
  4306. if (configuration) {
  4307. baseOptions = configuration.baseOptions;
  4308. }
  4309. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  4310. const localVarHeaderParameter = {} as any;
  4311. const localVarQueryParameter = {} as any;
  4312. // authentication cookie required
  4313. // authentication api_key required
  4314. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4315. // authentication bearer required
  4316. // http bearer authentication required
  4317. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4318. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4319. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4320. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4321. return {
  4322. url: toPathString(localVarUrlObj),
  4323. options: localVarRequestOptions,
  4324. };
  4325. },
  4326. /**
  4327. *
  4328. * @param {string} id
  4329. * @param {APIKeyUpdateDto} aPIKeyUpdateDto
  4330. * @param {*} [options] Override http request option.
  4331. * @throws {RequiredError}
  4332. */
  4333. updateKey: async (id: string, aPIKeyUpdateDto: APIKeyUpdateDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4334. // verify required parameter 'id' is not null or undefined
  4335. assertParamExists('updateKey', 'id', id)
  4336. // verify required parameter 'aPIKeyUpdateDto' is not null or undefined
  4337. assertParamExists('updateKey', 'aPIKeyUpdateDto', aPIKeyUpdateDto)
  4338. const localVarPath = `/api-key/{id}`
  4339. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  4340. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4341. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4342. let baseOptions;
  4343. if (configuration) {
  4344. baseOptions = configuration.baseOptions;
  4345. }
  4346. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  4347. const localVarHeaderParameter = {} as any;
  4348. const localVarQueryParameter = {} as any;
  4349. // authentication cookie required
  4350. // authentication api_key required
  4351. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4352. // authentication bearer required
  4353. // http bearer authentication required
  4354. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4355. localVarHeaderParameter['Content-Type'] = 'application/json';
  4356. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4357. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4358. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4359. localVarRequestOptions.data = serializeDataIfNeeded(aPIKeyUpdateDto, localVarRequestOptions, configuration)
  4360. return {
  4361. url: toPathString(localVarUrlObj),
  4362. options: localVarRequestOptions,
  4363. };
  4364. },
  4365. }
  4366. };
  4367. /**
  4368. * APIKeyApi - functional programming interface
  4369. * @export
  4370. */
  4371. export const APIKeyApiFp = function(configuration?: Configuration) {
  4372. const localVarAxiosParamCreator = APIKeyApiAxiosParamCreator(configuration)
  4373. return {
  4374. /**
  4375. *
  4376. * @param {APIKeyCreateDto} aPIKeyCreateDto
  4377. * @param {*} [options] Override http request option.
  4378. * @throws {RequiredError}
  4379. */
  4380. async createKey(aPIKeyCreateDto: APIKeyCreateDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<APIKeyCreateResponseDto>> {
  4381. const localVarAxiosArgs = await localVarAxiosParamCreator.createKey(aPIKeyCreateDto, options);
  4382. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4383. },
  4384. /**
  4385. *
  4386. * @param {string} id
  4387. * @param {*} [options] Override http request option.
  4388. * @throws {RequiredError}
  4389. */
  4390. async deleteKey(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  4391. const localVarAxiosArgs = await localVarAxiosParamCreator.deleteKey(id, options);
  4392. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4393. },
  4394. /**
  4395. *
  4396. * @param {string} id
  4397. * @param {*} [options] Override http request option.
  4398. * @throws {RequiredError}
  4399. */
  4400. async getKey(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<APIKeyResponseDto>> {
  4401. const localVarAxiosArgs = await localVarAxiosParamCreator.getKey(id, options);
  4402. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4403. },
  4404. /**
  4405. *
  4406. * @param {*} [options] Override http request option.
  4407. * @throws {RequiredError}
  4408. */
  4409. async getKeys(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<APIKeyResponseDto>>> {
  4410. const localVarAxiosArgs = await localVarAxiosParamCreator.getKeys(options);
  4411. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4412. },
  4413. /**
  4414. *
  4415. * @param {string} id
  4416. * @param {APIKeyUpdateDto} aPIKeyUpdateDto
  4417. * @param {*} [options] Override http request option.
  4418. * @throws {RequiredError}
  4419. */
  4420. async updateKey(id: string, aPIKeyUpdateDto: APIKeyUpdateDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<APIKeyResponseDto>> {
  4421. const localVarAxiosArgs = await localVarAxiosParamCreator.updateKey(id, aPIKeyUpdateDto, options);
  4422. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4423. },
  4424. }
  4425. };
  4426. /**
  4427. * APIKeyApi - factory interface
  4428. * @export
  4429. */
  4430. export const APIKeyApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  4431. const localVarFp = APIKeyApiFp(configuration)
  4432. return {
  4433. /**
  4434. *
  4435. * @param {APIKeyApiCreateKeyRequest} requestParameters Request parameters.
  4436. * @param {*} [options] Override http request option.
  4437. * @throws {RequiredError}
  4438. */
  4439. createKey(requestParameters: APIKeyApiCreateKeyRequest, options?: AxiosRequestConfig): AxiosPromise<APIKeyCreateResponseDto> {
  4440. return localVarFp.createKey(requestParameters.aPIKeyCreateDto, options).then((request) => request(axios, basePath));
  4441. },
  4442. /**
  4443. *
  4444. * @param {APIKeyApiDeleteKeyRequest} requestParameters Request parameters.
  4445. * @param {*} [options] Override http request option.
  4446. * @throws {RequiredError}
  4447. */
  4448. deleteKey(requestParameters: APIKeyApiDeleteKeyRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  4449. return localVarFp.deleteKey(requestParameters.id, options).then((request) => request(axios, basePath));
  4450. },
  4451. /**
  4452. *
  4453. * @param {APIKeyApiGetKeyRequest} requestParameters Request parameters.
  4454. * @param {*} [options] Override http request option.
  4455. * @throws {RequiredError}
  4456. */
  4457. getKey(requestParameters: APIKeyApiGetKeyRequest, options?: AxiosRequestConfig): AxiosPromise<APIKeyResponseDto> {
  4458. return localVarFp.getKey(requestParameters.id, options).then((request) => request(axios, basePath));
  4459. },
  4460. /**
  4461. *
  4462. * @param {*} [options] Override http request option.
  4463. * @throws {RequiredError}
  4464. */
  4465. getKeys(options?: AxiosRequestConfig): AxiosPromise<Array<APIKeyResponseDto>> {
  4466. return localVarFp.getKeys(options).then((request) => request(axios, basePath));
  4467. },
  4468. /**
  4469. *
  4470. * @param {APIKeyApiUpdateKeyRequest} requestParameters Request parameters.
  4471. * @param {*} [options] Override http request option.
  4472. * @throws {RequiredError}
  4473. */
  4474. updateKey(requestParameters: APIKeyApiUpdateKeyRequest, options?: AxiosRequestConfig): AxiosPromise<APIKeyResponseDto> {
  4475. return localVarFp.updateKey(requestParameters.id, requestParameters.aPIKeyUpdateDto, options).then((request) => request(axios, basePath));
  4476. },
  4477. };
  4478. };
  4479. /**
  4480. * Request parameters for createKey operation in APIKeyApi.
  4481. * @export
  4482. * @interface APIKeyApiCreateKeyRequest
  4483. */
  4484. export interface APIKeyApiCreateKeyRequest {
  4485. /**
  4486. *
  4487. * @type {APIKeyCreateDto}
  4488. * @memberof APIKeyApiCreateKey
  4489. */
  4490. readonly aPIKeyCreateDto: APIKeyCreateDto
  4491. }
  4492. /**
  4493. * Request parameters for deleteKey operation in APIKeyApi.
  4494. * @export
  4495. * @interface APIKeyApiDeleteKeyRequest
  4496. */
  4497. export interface APIKeyApiDeleteKeyRequest {
  4498. /**
  4499. *
  4500. * @type {string}
  4501. * @memberof APIKeyApiDeleteKey
  4502. */
  4503. readonly id: string
  4504. }
  4505. /**
  4506. * Request parameters for getKey operation in APIKeyApi.
  4507. * @export
  4508. * @interface APIKeyApiGetKeyRequest
  4509. */
  4510. export interface APIKeyApiGetKeyRequest {
  4511. /**
  4512. *
  4513. * @type {string}
  4514. * @memberof APIKeyApiGetKey
  4515. */
  4516. readonly id: string
  4517. }
  4518. /**
  4519. * Request parameters for updateKey operation in APIKeyApi.
  4520. * @export
  4521. * @interface APIKeyApiUpdateKeyRequest
  4522. */
  4523. export interface APIKeyApiUpdateKeyRequest {
  4524. /**
  4525. *
  4526. * @type {string}
  4527. * @memberof APIKeyApiUpdateKey
  4528. */
  4529. readonly id: string
  4530. /**
  4531. *
  4532. * @type {APIKeyUpdateDto}
  4533. * @memberof APIKeyApiUpdateKey
  4534. */
  4535. readonly aPIKeyUpdateDto: APIKeyUpdateDto
  4536. }
  4537. /**
  4538. * APIKeyApi - object-oriented interface
  4539. * @export
  4540. * @class APIKeyApi
  4541. * @extends {BaseAPI}
  4542. */
  4543. export class APIKeyApi extends BaseAPI {
  4544. /**
  4545. *
  4546. * @param {APIKeyApiCreateKeyRequest} requestParameters Request parameters.
  4547. * @param {*} [options] Override http request option.
  4548. * @throws {RequiredError}
  4549. * @memberof APIKeyApi
  4550. */
  4551. public createKey(requestParameters: APIKeyApiCreateKeyRequest, options?: AxiosRequestConfig) {
  4552. return APIKeyApiFp(this.configuration).createKey(requestParameters.aPIKeyCreateDto, options).then((request) => request(this.axios, this.basePath));
  4553. }
  4554. /**
  4555. *
  4556. * @param {APIKeyApiDeleteKeyRequest} requestParameters Request parameters.
  4557. * @param {*} [options] Override http request option.
  4558. * @throws {RequiredError}
  4559. * @memberof APIKeyApi
  4560. */
  4561. public deleteKey(requestParameters: APIKeyApiDeleteKeyRequest, options?: AxiosRequestConfig) {
  4562. return APIKeyApiFp(this.configuration).deleteKey(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  4563. }
  4564. /**
  4565. *
  4566. * @param {APIKeyApiGetKeyRequest} requestParameters Request parameters.
  4567. * @param {*} [options] Override http request option.
  4568. * @throws {RequiredError}
  4569. * @memberof APIKeyApi
  4570. */
  4571. public getKey(requestParameters: APIKeyApiGetKeyRequest, options?: AxiosRequestConfig) {
  4572. return APIKeyApiFp(this.configuration).getKey(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  4573. }
  4574. /**
  4575. *
  4576. * @param {*} [options] Override http request option.
  4577. * @throws {RequiredError}
  4578. * @memberof APIKeyApi
  4579. */
  4580. public getKeys(options?: AxiosRequestConfig) {
  4581. return APIKeyApiFp(this.configuration).getKeys(options).then((request) => request(this.axios, this.basePath));
  4582. }
  4583. /**
  4584. *
  4585. * @param {APIKeyApiUpdateKeyRequest} requestParameters Request parameters.
  4586. * @param {*} [options] Override http request option.
  4587. * @throws {RequiredError}
  4588. * @memberof APIKeyApi
  4589. */
  4590. public updateKey(requestParameters: APIKeyApiUpdateKeyRequest, options?: AxiosRequestConfig) {
  4591. return APIKeyApiFp(this.configuration).updateKey(requestParameters.id, requestParameters.aPIKeyUpdateDto, options).then((request) => request(this.axios, this.basePath));
  4592. }
  4593. }
  4594. /**
  4595. * AlbumApi - axios parameter creator
  4596. * @export
  4597. */
  4598. export const AlbumApiAxiosParamCreator = function (configuration?: Configuration) {
  4599. return {
  4600. /**
  4601. *
  4602. * @param {string} id
  4603. * @param {BulkIdsDto} bulkIdsDto
  4604. * @param {string} [key]
  4605. * @param {*} [options] Override http request option.
  4606. * @throws {RequiredError}
  4607. */
  4608. addAssetsToAlbum: async (id: string, bulkIdsDto: BulkIdsDto, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4609. // verify required parameter 'id' is not null or undefined
  4610. assertParamExists('addAssetsToAlbum', 'id', id)
  4611. // verify required parameter 'bulkIdsDto' is not null or undefined
  4612. assertParamExists('addAssetsToAlbum', 'bulkIdsDto', bulkIdsDto)
  4613. const localVarPath = `/album/{id}/assets`
  4614. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  4615. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4616. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4617. let baseOptions;
  4618. if (configuration) {
  4619. baseOptions = configuration.baseOptions;
  4620. }
  4621. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  4622. const localVarHeaderParameter = {} as any;
  4623. const localVarQueryParameter = {} as any;
  4624. // authentication cookie required
  4625. // authentication api_key required
  4626. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4627. // authentication bearer required
  4628. // http bearer authentication required
  4629. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4630. if (key !== undefined) {
  4631. localVarQueryParameter['key'] = key;
  4632. }
  4633. localVarHeaderParameter['Content-Type'] = 'application/json';
  4634. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4635. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4636. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4637. localVarRequestOptions.data = serializeDataIfNeeded(bulkIdsDto, localVarRequestOptions, configuration)
  4638. return {
  4639. url: toPathString(localVarUrlObj),
  4640. options: localVarRequestOptions,
  4641. };
  4642. },
  4643. /**
  4644. *
  4645. * @param {string} id
  4646. * @param {AddUsersDto} addUsersDto
  4647. * @param {*} [options] Override http request option.
  4648. * @throws {RequiredError}
  4649. */
  4650. addUsersToAlbum: async (id: string, addUsersDto: AddUsersDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4651. // verify required parameter 'id' is not null or undefined
  4652. assertParamExists('addUsersToAlbum', 'id', id)
  4653. // verify required parameter 'addUsersDto' is not null or undefined
  4654. assertParamExists('addUsersToAlbum', 'addUsersDto', addUsersDto)
  4655. const localVarPath = `/album/{id}/users`
  4656. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  4657. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4658. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4659. let baseOptions;
  4660. if (configuration) {
  4661. baseOptions = configuration.baseOptions;
  4662. }
  4663. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  4664. const localVarHeaderParameter = {} as any;
  4665. const localVarQueryParameter = {} as any;
  4666. // authentication cookie required
  4667. // authentication api_key required
  4668. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4669. // authentication bearer required
  4670. // http bearer authentication required
  4671. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4672. localVarHeaderParameter['Content-Type'] = 'application/json';
  4673. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4674. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4675. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4676. localVarRequestOptions.data = serializeDataIfNeeded(addUsersDto, localVarRequestOptions, configuration)
  4677. return {
  4678. url: toPathString(localVarUrlObj),
  4679. options: localVarRequestOptions,
  4680. };
  4681. },
  4682. /**
  4683. *
  4684. * @param {CreateAlbumDto} createAlbumDto
  4685. * @param {*} [options] Override http request option.
  4686. * @throws {RequiredError}
  4687. */
  4688. createAlbum: async (createAlbumDto: CreateAlbumDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4689. // verify required parameter 'createAlbumDto' is not null or undefined
  4690. assertParamExists('createAlbum', 'createAlbumDto', createAlbumDto)
  4691. const localVarPath = `/album`;
  4692. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4693. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4694. let baseOptions;
  4695. if (configuration) {
  4696. baseOptions = configuration.baseOptions;
  4697. }
  4698. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  4699. const localVarHeaderParameter = {} as any;
  4700. const localVarQueryParameter = {} as any;
  4701. // authentication cookie required
  4702. // authentication api_key required
  4703. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4704. // authentication bearer required
  4705. // http bearer authentication required
  4706. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4707. localVarHeaderParameter['Content-Type'] = 'application/json';
  4708. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4709. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4710. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4711. localVarRequestOptions.data = serializeDataIfNeeded(createAlbumDto, localVarRequestOptions, configuration)
  4712. return {
  4713. url: toPathString(localVarUrlObj),
  4714. options: localVarRequestOptions,
  4715. };
  4716. },
  4717. /**
  4718. *
  4719. * @param {string} id
  4720. * @param {*} [options] Override http request option.
  4721. * @throws {RequiredError}
  4722. */
  4723. deleteAlbum: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4724. // verify required parameter 'id' is not null or undefined
  4725. assertParamExists('deleteAlbum', 'id', id)
  4726. const localVarPath = `/album/{id}`
  4727. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  4728. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4729. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4730. let baseOptions;
  4731. if (configuration) {
  4732. baseOptions = configuration.baseOptions;
  4733. }
  4734. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  4735. const localVarHeaderParameter = {} as any;
  4736. const localVarQueryParameter = {} as any;
  4737. // authentication cookie required
  4738. // authentication api_key required
  4739. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4740. // authentication bearer required
  4741. // http bearer authentication required
  4742. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4743. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4744. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4745. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4746. return {
  4747. url: toPathString(localVarUrlObj),
  4748. options: localVarRequestOptions,
  4749. };
  4750. },
  4751. /**
  4752. *
  4753. * @param {*} [options] Override http request option.
  4754. * @throws {RequiredError}
  4755. */
  4756. getAlbumCount: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4757. const localVarPath = `/album/count`;
  4758. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4759. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4760. let baseOptions;
  4761. if (configuration) {
  4762. baseOptions = configuration.baseOptions;
  4763. }
  4764. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  4765. const localVarHeaderParameter = {} as any;
  4766. const localVarQueryParameter = {} as any;
  4767. // authentication cookie required
  4768. // authentication api_key required
  4769. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4770. // authentication bearer required
  4771. // http bearer authentication required
  4772. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4773. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4774. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4775. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4776. return {
  4777. url: toPathString(localVarUrlObj),
  4778. options: localVarRequestOptions,
  4779. };
  4780. },
  4781. /**
  4782. *
  4783. * @param {string} id
  4784. * @param {boolean} [withoutAssets]
  4785. * @param {string} [key]
  4786. * @param {*} [options] Override http request option.
  4787. * @throws {RequiredError}
  4788. */
  4789. getAlbumInfo: async (id: string, withoutAssets?: boolean, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4790. // verify required parameter 'id' is not null or undefined
  4791. assertParamExists('getAlbumInfo', 'id', id)
  4792. const localVarPath = `/album/{id}`
  4793. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  4794. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4795. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4796. let baseOptions;
  4797. if (configuration) {
  4798. baseOptions = configuration.baseOptions;
  4799. }
  4800. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  4801. const localVarHeaderParameter = {} as any;
  4802. const localVarQueryParameter = {} as any;
  4803. // authentication cookie required
  4804. // authentication api_key required
  4805. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4806. // authentication bearer required
  4807. // http bearer authentication required
  4808. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4809. if (withoutAssets !== undefined) {
  4810. localVarQueryParameter['withoutAssets'] = withoutAssets;
  4811. }
  4812. if (key !== undefined) {
  4813. localVarQueryParameter['key'] = key;
  4814. }
  4815. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4816. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4817. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4818. return {
  4819. url: toPathString(localVarUrlObj),
  4820. options: localVarRequestOptions,
  4821. };
  4822. },
  4823. /**
  4824. *
  4825. * @param {boolean} [shared]
  4826. * @param {string} [assetId] Only returns albums that contain the asset Ignores the shared parameter undefined: get all albums
  4827. * @param {*} [options] Override http request option.
  4828. * @throws {RequiredError}
  4829. */
  4830. getAllAlbums: async (shared?: boolean, assetId?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4831. const localVarPath = `/album`;
  4832. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4833. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4834. let baseOptions;
  4835. if (configuration) {
  4836. baseOptions = configuration.baseOptions;
  4837. }
  4838. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  4839. const localVarHeaderParameter = {} as any;
  4840. const localVarQueryParameter = {} as any;
  4841. // authentication cookie required
  4842. // authentication api_key required
  4843. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4844. // authentication bearer required
  4845. // http bearer authentication required
  4846. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4847. if (shared !== undefined) {
  4848. localVarQueryParameter['shared'] = shared;
  4849. }
  4850. if (assetId !== undefined) {
  4851. localVarQueryParameter['assetId'] = assetId;
  4852. }
  4853. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4854. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4855. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4856. return {
  4857. url: toPathString(localVarUrlObj),
  4858. options: localVarRequestOptions,
  4859. };
  4860. },
  4861. /**
  4862. *
  4863. * @param {string} id
  4864. * @param {BulkIdsDto} bulkIdsDto
  4865. * @param {*} [options] Override http request option.
  4866. * @throws {RequiredError}
  4867. */
  4868. removeAssetFromAlbum: async (id: string, bulkIdsDto: BulkIdsDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4869. // verify required parameter 'id' is not null or undefined
  4870. assertParamExists('removeAssetFromAlbum', 'id', id)
  4871. // verify required parameter 'bulkIdsDto' is not null or undefined
  4872. assertParamExists('removeAssetFromAlbum', 'bulkIdsDto', bulkIdsDto)
  4873. const localVarPath = `/album/{id}/assets`
  4874. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  4875. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4876. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4877. let baseOptions;
  4878. if (configuration) {
  4879. baseOptions = configuration.baseOptions;
  4880. }
  4881. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  4882. const localVarHeaderParameter = {} as any;
  4883. const localVarQueryParameter = {} as any;
  4884. // authentication cookie required
  4885. // authentication api_key required
  4886. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4887. // authentication bearer required
  4888. // http bearer authentication required
  4889. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4890. localVarHeaderParameter['Content-Type'] = 'application/json';
  4891. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4892. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4893. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4894. localVarRequestOptions.data = serializeDataIfNeeded(bulkIdsDto, localVarRequestOptions, configuration)
  4895. return {
  4896. url: toPathString(localVarUrlObj),
  4897. options: localVarRequestOptions,
  4898. };
  4899. },
  4900. /**
  4901. *
  4902. * @param {string} id
  4903. * @param {string} userId
  4904. * @param {*} [options] Override http request option.
  4905. * @throws {RequiredError}
  4906. */
  4907. removeUserFromAlbum: async (id: string, userId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4908. // verify required parameter 'id' is not null or undefined
  4909. assertParamExists('removeUserFromAlbum', 'id', id)
  4910. // verify required parameter 'userId' is not null or undefined
  4911. assertParamExists('removeUserFromAlbum', 'userId', userId)
  4912. const localVarPath = `/album/{id}/user/{userId}`
  4913. .replace(`{${"id"}}`, encodeURIComponent(String(id)))
  4914. .replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
  4915. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4916. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4917. let baseOptions;
  4918. if (configuration) {
  4919. baseOptions = configuration.baseOptions;
  4920. }
  4921. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  4922. const localVarHeaderParameter = {} as any;
  4923. const localVarQueryParameter = {} as any;
  4924. // authentication cookie required
  4925. // authentication api_key required
  4926. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4927. // authentication bearer required
  4928. // http bearer authentication required
  4929. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4930. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4931. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4932. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4933. return {
  4934. url: toPathString(localVarUrlObj),
  4935. options: localVarRequestOptions,
  4936. };
  4937. },
  4938. /**
  4939. *
  4940. * @param {string} id
  4941. * @param {UpdateAlbumDto} updateAlbumDto
  4942. * @param {*} [options] Override http request option.
  4943. * @throws {RequiredError}
  4944. */
  4945. updateAlbumInfo: async (id: string, updateAlbumDto: UpdateAlbumDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4946. // verify required parameter 'id' is not null or undefined
  4947. assertParamExists('updateAlbumInfo', 'id', id)
  4948. // verify required parameter 'updateAlbumDto' is not null or undefined
  4949. assertParamExists('updateAlbumInfo', 'updateAlbumDto', updateAlbumDto)
  4950. const localVarPath = `/album/{id}`
  4951. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  4952. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4953. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4954. let baseOptions;
  4955. if (configuration) {
  4956. baseOptions = configuration.baseOptions;
  4957. }
  4958. const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
  4959. const localVarHeaderParameter = {} as any;
  4960. const localVarQueryParameter = {} as any;
  4961. // authentication cookie required
  4962. // authentication api_key required
  4963. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4964. // authentication bearer required
  4965. // http bearer authentication required
  4966. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4967. localVarHeaderParameter['Content-Type'] = 'application/json';
  4968. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4969. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4970. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4971. localVarRequestOptions.data = serializeDataIfNeeded(updateAlbumDto, localVarRequestOptions, configuration)
  4972. return {
  4973. url: toPathString(localVarUrlObj),
  4974. options: localVarRequestOptions,
  4975. };
  4976. },
  4977. }
  4978. };
  4979. /**
  4980. * AlbumApi - functional programming interface
  4981. * @export
  4982. */
  4983. export const AlbumApiFp = function(configuration?: Configuration) {
  4984. const localVarAxiosParamCreator = AlbumApiAxiosParamCreator(configuration)
  4985. return {
  4986. /**
  4987. *
  4988. * @param {string} id
  4989. * @param {BulkIdsDto} bulkIdsDto
  4990. * @param {string} [key]
  4991. * @param {*} [options] Override http request option.
  4992. * @throws {RequiredError}
  4993. */
  4994. async addAssetsToAlbum(id: string, bulkIdsDto: BulkIdsDto, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<BulkIdResponseDto>>> {
  4995. const localVarAxiosArgs = await localVarAxiosParamCreator.addAssetsToAlbum(id, bulkIdsDto, key, options);
  4996. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4997. },
  4998. /**
  4999. *
  5000. * @param {string} id
  5001. * @param {AddUsersDto} addUsersDto
  5002. * @param {*} [options] Override http request option.
  5003. * @throws {RequiredError}
  5004. */
  5005. async addUsersToAlbum(id: string, addUsersDto: AddUsersDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AlbumResponseDto>> {
  5006. const localVarAxiosArgs = await localVarAxiosParamCreator.addUsersToAlbum(id, addUsersDto, options);
  5007. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5008. },
  5009. /**
  5010. *
  5011. * @param {CreateAlbumDto} createAlbumDto
  5012. * @param {*} [options] Override http request option.
  5013. * @throws {RequiredError}
  5014. */
  5015. async createAlbum(createAlbumDto: CreateAlbumDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AlbumResponseDto>> {
  5016. const localVarAxiosArgs = await localVarAxiosParamCreator.createAlbum(createAlbumDto, options);
  5017. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5018. },
  5019. /**
  5020. *
  5021. * @param {string} id
  5022. * @param {*} [options] Override http request option.
  5023. * @throws {RequiredError}
  5024. */
  5025. async deleteAlbum(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  5026. const localVarAxiosArgs = await localVarAxiosParamCreator.deleteAlbum(id, options);
  5027. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5028. },
  5029. /**
  5030. *
  5031. * @param {*} [options] Override http request option.
  5032. * @throws {RequiredError}
  5033. */
  5034. async getAlbumCount(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AlbumCountResponseDto>> {
  5035. const localVarAxiosArgs = await localVarAxiosParamCreator.getAlbumCount(options);
  5036. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5037. },
  5038. /**
  5039. *
  5040. * @param {string} id
  5041. * @param {boolean} [withoutAssets]
  5042. * @param {string} [key]
  5043. * @param {*} [options] Override http request option.
  5044. * @throws {RequiredError}
  5045. */
  5046. async getAlbumInfo(id: string, withoutAssets?: boolean, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AlbumResponseDto>> {
  5047. const localVarAxiosArgs = await localVarAxiosParamCreator.getAlbumInfo(id, withoutAssets, key, options);
  5048. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5049. },
  5050. /**
  5051. *
  5052. * @param {boolean} [shared]
  5053. * @param {string} [assetId] Only returns albums that contain the asset Ignores the shared parameter undefined: get all albums
  5054. * @param {*} [options] Override http request option.
  5055. * @throws {RequiredError}
  5056. */
  5057. async getAllAlbums(shared?: boolean, assetId?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AlbumResponseDto>>> {
  5058. const localVarAxiosArgs = await localVarAxiosParamCreator.getAllAlbums(shared, assetId, options);
  5059. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5060. },
  5061. /**
  5062. *
  5063. * @param {string} id
  5064. * @param {BulkIdsDto} bulkIdsDto
  5065. * @param {*} [options] Override http request option.
  5066. * @throws {RequiredError}
  5067. */
  5068. async removeAssetFromAlbum(id: string, bulkIdsDto: BulkIdsDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<BulkIdResponseDto>>> {
  5069. const localVarAxiosArgs = await localVarAxiosParamCreator.removeAssetFromAlbum(id, bulkIdsDto, options);
  5070. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5071. },
  5072. /**
  5073. *
  5074. * @param {string} id
  5075. * @param {string} userId
  5076. * @param {*} [options] Override http request option.
  5077. * @throws {RequiredError}
  5078. */
  5079. async removeUserFromAlbum(id: string, userId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  5080. const localVarAxiosArgs = await localVarAxiosParamCreator.removeUserFromAlbum(id, userId, options);
  5081. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5082. },
  5083. /**
  5084. *
  5085. * @param {string} id
  5086. * @param {UpdateAlbumDto} updateAlbumDto
  5087. * @param {*} [options] Override http request option.
  5088. * @throws {RequiredError}
  5089. */
  5090. async updateAlbumInfo(id: string, updateAlbumDto: UpdateAlbumDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AlbumResponseDto>> {
  5091. const localVarAxiosArgs = await localVarAxiosParamCreator.updateAlbumInfo(id, updateAlbumDto, options);
  5092. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5093. },
  5094. }
  5095. };
  5096. /**
  5097. * AlbumApi - factory interface
  5098. * @export
  5099. */
  5100. export const AlbumApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  5101. const localVarFp = AlbumApiFp(configuration)
  5102. return {
  5103. /**
  5104. *
  5105. * @param {AlbumApiAddAssetsToAlbumRequest} requestParameters Request parameters.
  5106. * @param {*} [options] Override http request option.
  5107. * @throws {RequiredError}
  5108. */
  5109. addAssetsToAlbum(requestParameters: AlbumApiAddAssetsToAlbumRequest, options?: AxiosRequestConfig): AxiosPromise<Array<BulkIdResponseDto>> {
  5110. return localVarFp.addAssetsToAlbum(requestParameters.id, requestParameters.bulkIdsDto, requestParameters.key, options).then((request) => request(axios, basePath));
  5111. },
  5112. /**
  5113. *
  5114. * @param {AlbumApiAddUsersToAlbumRequest} requestParameters Request parameters.
  5115. * @param {*} [options] Override http request option.
  5116. * @throws {RequiredError}
  5117. */
  5118. addUsersToAlbum(requestParameters: AlbumApiAddUsersToAlbumRequest, options?: AxiosRequestConfig): AxiosPromise<AlbumResponseDto> {
  5119. return localVarFp.addUsersToAlbum(requestParameters.id, requestParameters.addUsersDto, options).then((request) => request(axios, basePath));
  5120. },
  5121. /**
  5122. *
  5123. * @param {AlbumApiCreateAlbumRequest} requestParameters Request parameters.
  5124. * @param {*} [options] Override http request option.
  5125. * @throws {RequiredError}
  5126. */
  5127. createAlbum(requestParameters: AlbumApiCreateAlbumRequest, options?: AxiosRequestConfig): AxiosPromise<AlbumResponseDto> {
  5128. return localVarFp.createAlbum(requestParameters.createAlbumDto, options).then((request) => request(axios, basePath));
  5129. },
  5130. /**
  5131. *
  5132. * @param {AlbumApiDeleteAlbumRequest} requestParameters Request parameters.
  5133. * @param {*} [options] Override http request option.
  5134. * @throws {RequiredError}
  5135. */
  5136. deleteAlbum(requestParameters: AlbumApiDeleteAlbumRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  5137. return localVarFp.deleteAlbum(requestParameters.id, options).then((request) => request(axios, basePath));
  5138. },
  5139. /**
  5140. *
  5141. * @param {*} [options] Override http request option.
  5142. * @throws {RequiredError}
  5143. */
  5144. getAlbumCount(options?: AxiosRequestConfig): AxiosPromise<AlbumCountResponseDto> {
  5145. return localVarFp.getAlbumCount(options).then((request) => request(axios, basePath));
  5146. },
  5147. /**
  5148. *
  5149. * @param {AlbumApiGetAlbumInfoRequest} requestParameters Request parameters.
  5150. * @param {*} [options] Override http request option.
  5151. * @throws {RequiredError}
  5152. */
  5153. getAlbumInfo(requestParameters: AlbumApiGetAlbumInfoRequest, options?: AxiosRequestConfig): AxiosPromise<AlbumResponseDto> {
  5154. return localVarFp.getAlbumInfo(requestParameters.id, requestParameters.withoutAssets, requestParameters.key, options).then((request) => request(axios, basePath));
  5155. },
  5156. /**
  5157. *
  5158. * @param {AlbumApiGetAllAlbumsRequest} requestParameters Request parameters.
  5159. * @param {*} [options] Override http request option.
  5160. * @throws {RequiredError}
  5161. */
  5162. getAllAlbums(requestParameters: AlbumApiGetAllAlbumsRequest = {}, options?: AxiosRequestConfig): AxiosPromise<Array<AlbumResponseDto>> {
  5163. return localVarFp.getAllAlbums(requestParameters.shared, requestParameters.assetId, options).then((request) => request(axios, basePath));
  5164. },
  5165. /**
  5166. *
  5167. * @param {AlbumApiRemoveAssetFromAlbumRequest} requestParameters Request parameters.
  5168. * @param {*} [options] Override http request option.
  5169. * @throws {RequiredError}
  5170. */
  5171. removeAssetFromAlbum(requestParameters: AlbumApiRemoveAssetFromAlbumRequest, options?: AxiosRequestConfig): AxiosPromise<Array<BulkIdResponseDto>> {
  5172. return localVarFp.removeAssetFromAlbum(requestParameters.id, requestParameters.bulkIdsDto, options).then((request) => request(axios, basePath));
  5173. },
  5174. /**
  5175. *
  5176. * @param {AlbumApiRemoveUserFromAlbumRequest} requestParameters Request parameters.
  5177. * @param {*} [options] Override http request option.
  5178. * @throws {RequiredError}
  5179. */
  5180. removeUserFromAlbum(requestParameters: AlbumApiRemoveUserFromAlbumRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  5181. return localVarFp.removeUserFromAlbum(requestParameters.id, requestParameters.userId, options).then((request) => request(axios, basePath));
  5182. },
  5183. /**
  5184. *
  5185. * @param {AlbumApiUpdateAlbumInfoRequest} requestParameters Request parameters.
  5186. * @param {*} [options] Override http request option.
  5187. * @throws {RequiredError}
  5188. */
  5189. updateAlbumInfo(requestParameters: AlbumApiUpdateAlbumInfoRequest, options?: AxiosRequestConfig): AxiosPromise<AlbumResponseDto> {
  5190. return localVarFp.updateAlbumInfo(requestParameters.id, requestParameters.updateAlbumDto, options).then((request) => request(axios, basePath));
  5191. },
  5192. };
  5193. };
  5194. /**
  5195. * Request parameters for addAssetsToAlbum operation in AlbumApi.
  5196. * @export
  5197. * @interface AlbumApiAddAssetsToAlbumRequest
  5198. */
  5199. export interface AlbumApiAddAssetsToAlbumRequest {
  5200. /**
  5201. *
  5202. * @type {string}
  5203. * @memberof AlbumApiAddAssetsToAlbum
  5204. */
  5205. readonly id: string
  5206. /**
  5207. *
  5208. * @type {BulkIdsDto}
  5209. * @memberof AlbumApiAddAssetsToAlbum
  5210. */
  5211. readonly bulkIdsDto: BulkIdsDto
  5212. /**
  5213. *
  5214. * @type {string}
  5215. * @memberof AlbumApiAddAssetsToAlbum
  5216. */
  5217. readonly key?: string
  5218. }
  5219. /**
  5220. * Request parameters for addUsersToAlbum operation in AlbumApi.
  5221. * @export
  5222. * @interface AlbumApiAddUsersToAlbumRequest
  5223. */
  5224. export interface AlbumApiAddUsersToAlbumRequest {
  5225. /**
  5226. *
  5227. * @type {string}
  5228. * @memberof AlbumApiAddUsersToAlbum
  5229. */
  5230. readonly id: string
  5231. /**
  5232. *
  5233. * @type {AddUsersDto}
  5234. * @memberof AlbumApiAddUsersToAlbum
  5235. */
  5236. readonly addUsersDto: AddUsersDto
  5237. }
  5238. /**
  5239. * Request parameters for createAlbum operation in AlbumApi.
  5240. * @export
  5241. * @interface AlbumApiCreateAlbumRequest
  5242. */
  5243. export interface AlbumApiCreateAlbumRequest {
  5244. /**
  5245. *
  5246. * @type {CreateAlbumDto}
  5247. * @memberof AlbumApiCreateAlbum
  5248. */
  5249. readonly createAlbumDto: CreateAlbumDto
  5250. }
  5251. /**
  5252. * Request parameters for deleteAlbum operation in AlbumApi.
  5253. * @export
  5254. * @interface AlbumApiDeleteAlbumRequest
  5255. */
  5256. export interface AlbumApiDeleteAlbumRequest {
  5257. /**
  5258. *
  5259. * @type {string}
  5260. * @memberof AlbumApiDeleteAlbum
  5261. */
  5262. readonly id: string
  5263. }
  5264. /**
  5265. * Request parameters for getAlbumInfo operation in AlbumApi.
  5266. * @export
  5267. * @interface AlbumApiGetAlbumInfoRequest
  5268. */
  5269. export interface AlbumApiGetAlbumInfoRequest {
  5270. /**
  5271. *
  5272. * @type {string}
  5273. * @memberof AlbumApiGetAlbumInfo
  5274. */
  5275. readonly id: string
  5276. /**
  5277. *
  5278. * @type {boolean}
  5279. * @memberof AlbumApiGetAlbumInfo
  5280. */
  5281. readonly withoutAssets?: boolean
  5282. /**
  5283. *
  5284. * @type {string}
  5285. * @memberof AlbumApiGetAlbumInfo
  5286. */
  5287. readonly key?: string
  5288. }
  5289. /**
  5290. * Request parameters for getAllAlbums operation in AlbumApi.
  5291. * @export
  5292. * @interface AlbumApiGetAllAlbumsRequest
  5293. */
  5294. export interface AlbumApiGetAllAlbumsRequest {
  5295. /**
  5296. *
  5297. * @type {boolean}
  5298. * @memberof AlbumApiGetAllAlbums
  5299. */
  5300. readonly shared?: boolean
  5301. /**
  5302. * Only returns albums that contain the asset Ignores the shared parameter undefined: get all albums
  5303. * @type {string}
  5304. * @memberof AlbumApiGetAllAlbums
  5305. */
  5306. readonly assetId?: string
  5307. }
  5308. /**
  5309. * Request parameters for removeAssetFromAlbum operation in AlbumApi.
  5310. * @export
  5311. * @interface AlbumApiRemoveAssetFromAlbumRequest
  5312. */
  5313. export interface AlbumApiRemoveAssetFromAlbumRequest {
  5314. /**
  5315. *
  5316. * @type {string}
  5317. * @memberof AlbumApiRemoveAssetFromAlbum
  5318. */
  5319. readonly id: string
  5320. /**
  5321. *
  5322. * @type {BulkIdsDto}
  5323. * @memberof AlbumApiRemoveAssetFromAlbum
  5324. */
  5325. readonly bulkIdsDto: BulkIdsDto
  5326. }
  5327. /**
  5328. * Request parameters for removeUserFromAlbum operation in AlbumApi.
  5329. * @export
  5330. * @interface AlbumApiRemoveUserFromAlbumRequest
  5331. */
  5332. export interface AlbumApiRemoveUserFromAlbumRequest {
  5333. /**
  5334. *
  5335. * @type {string}
  5336. * @memberof AlbumApiRemoveUserFromAlbum
  5337. */
  5338. readonly id: string
  5339. /**
  5340. *
  5341. * @type {string}
  5342. * @memberof AlbumApiRemoveUserFromAlbum
  5343. */
  5344. readonly userId: string
  5345. }
  5346. /**
  5347. * Request parameters for updateAlbumInfo operation in AlbumApi.
  5348. * @export
  5349. * @interface AlbumApiUpdateAlbumInfoRequest
  5350. */
  5351. export interface AlbumApiUpdateAlbumInfoRequest {
  5352. /**
  5353. *
  5354. * @type {string}
  5355. * @memberof AlbumApiUpdateAlbumInfo
  5356. */
  5357. readonly id: string
  5358. /**
  5359. *
  5360. * @type {UpdateAlbumDto}
  5361. * @memberof AlbumApiUpdateAlbumInfo
  5362. */
  5363. readonly updateAlbumDto: UpdateAlbumDto
  5364. }
  5365. /**
  5366. * AlbumApi - object-oriented interface
  5367. * @export
  5368. * @class AlbumApi
  5369. * @extends {BaseAPI}
  5370. */
  5371. export class AlbumApi extends BaseAPI {
  5372. /**
  5373. *
  5374. * @param {AlbumApiAddAssetsToAlbumRequest} requestParameters Request parameters.
  5375. * @param {*} [options] Override http request option.
  5376. * @throws {RequiredError}
  5377. * @memberof AlbumApi
  5378. */
  5379. public addAssetsToAlbum(requestParameters: AlbumApiAddAssetsToAlbumRequest, options?: AxiosRequestConfig) {
  5380. return AlbumApiFp(this.configuration).addAssetsToAlbum(requestParameters.id, requestParameters.bulkIdsDto, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  5381. }
  5382. /**
  5383. *
  5384. * @param {AlbumApiAddUsersToAlbumRequest} requestParameters Request parameters.
  5385. * @param {*} [options] Override http request option.
  5386. * @throws {RequiredError}
  5387. * @memberof AlbumApi
  5388. */
  5389. public addUsersToAlbum(requestParameters: AlbumApiAddUsersToAlbumRequest, options?: AxiosRequestConfig) {
  5390. return AlbumApiFp(this.configuration).addUsersToAlbum(requestParameters.id, requestParameters.addUsersDto, options).then((request) => request(this.axios, this.basePath));
  5391. }
  5392. /**
  5393. *
  5394. * @param {AlbumApiCreateAlbumRequest} requestParameters Request parameters.
  5395. * @param {*} [options] Override http request option.
  5396. * @throws {RequiredError}
  5397. * @memberof AlbumApi
  5398. */
  5399. public createAlbum(requestParameters: AlbumApiCreateAlbumRequest, options?: AxiosRequestConfig) {
  5400. return AlbumApiFp(this.configuration).createAlbum(requestParameters.createAlbumDto, options).then((request) => request(this.axios, this.basePath));
  5401. }
  5402. /**
  5403. *
  5404. * @param {AlbumApiDeleteAlbumRequest} requestParameters Request parameters.
  5405. * @param {*} [options] Override http request option.
  5406. * @throws {RequiredError}
  5407. * @memberof AlbumApi
  5408. */
  5409. public deleteAlbum(requestParameters: AlbumApiDeleteAlbumRequest, options?: AxiosRequestConfig) {
  5410. return AlbumApiFp(this.configuration).deleteAlbum(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  5411. }
  5412. /**
  5413. *
  5414. * @param {*} [options] Override http request option.
  5415. * @throws {RequiredError}
  5416. * @memberof AlbumApi
  5417. */
  5418. public getAlbumCount(options?: AxiosRequestConfig) {
  5419. return AlbumApiFp(this.configuration).getAlbumCount(options).then((request) => request(this.axios, this.basePath));
  5420. }
  5421. /**
  5422. *
  5423. * @param {AlbumApiGetAlbumInfoRequest} requestParameters Request parameters.
  5424. * @param {*} [options] Override http request option.
  5425. * @throws {RequiredError}
  5426. * @memberof AlbumApi
  5427. */
  5428. public getAlbumInfo(requestParameters: AlbumApiGetAlbumInfoRequest, options?: AxiosRequestConfig) {
  5429. return AlbumApiFp(this.configuration).getAlbumInfo(requestParameters.id, requestParameters.withoutAssets, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  5430. }
  5431. /**
  5432. *
  5433. * @param {AlbumApiGetAllAlbumsRequest} requestParameters Request parameters.
  5434. * @param {*} [options] Override http request option.
  5435. * @throws {RequiredError}
  5436. * @memberof AlbumApi
  5437. */
  5438. public getAllAlbums(requestParameters: AlbumApiGetAllAlbumsRequest = {}, options?: AxiosRequestConfig) {
  5439. return AlbumApiFp(this.configuration).getAllAlbums(requestParameters.shared, requestParameters.assetId, options).then((request) => request(this.axios, this.basePath));
  5440. }
  5441. /**
  5442. *
  5443. * @param {AlbumApiRemoveAssetFromAlbumRequest} requestParameters Request parameters.
  5444. * @param {*} [options] Override http request option.
  5445. * @throws {RequiredError}
  5446. * @memberof AlbumApi
  5447. */
  5448. public removeAssetFromAlbum(requestParameters: AlbumApiRemoveAssetFromAlbumRequest, options?: AxiosRequestConfig) {
  5449. return AlbumApiFp(this.configuration).removeAssetFromAlbum(requestParameters.id, requestParameters.bulkIdsDto, options).then((request) => request(this.axios, this.basePath));
  5450. }
  5451. /**
  5452. *
  5453. * @param {AlbumApiRemoveUserFromAlbumRequest} requestParameters Request parameters.
  5454. * @param {*} [options] Override http request option.
  5455. * @throws {RequiredError}
  5456. * @memberof AlbumApi
  5457. */
  5458. public removeUserFromAlbum(requestParameters: AlbumApiRemoveUserFromAlbumRequest, options?: AxiosRequestConfig) {
  5459. return AlbumApiFp(this.configuration).removeUserFromAlbum(requestParameters.id, requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
  5460. }
  5461. /**
  5462. *
  5463. * @param {AlbumApiUpdateAlbumInfoRequest} requestParameters Request parameters.
  5464. * @param {*} [options] Override http request option.
  5465. * @throws {RequiredError}
  5466. * @memberof AlbumApi
  5467. */
  5468. public updateAlbumInfo(requestParameters: AlbumApiUpdateAlbumInfoRequest, options?: AxiosRequestConfig) {
  5469. return AlbumApiFp(this.configuration).updateAlbumInfo(requestParameters.id, requestParameters.updateAlbumDto, options).then((request) => request(this.axios, this.basePath));
  5470. }
  5471. }
  5472. /**
  5473. * AssetApi - axios parameter creator
  5474. * @export
  5475. */
  5476. export const AssetApiAxiosParamCreator = function (configuration?: Configuration) {
  5477. return {
  5478. /**
  5479. * Checks if assets exist by checksums
  5480. * @param {AssetBulkUploadCheckDto} assetBulkUploadCheckDto
  5481. * @param {*} [options] Override http request option.
  5482. * @throws {RequiredError}
  5483. */
  5484. bulkUploadCheck: async (assetBulkUploadCheckDto: AssetBulkUploadCheckDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5485. // verify required parameter 'assetBulkUploadCheckDto' is not null or undefined
  5486. assertParamExists('bulkUploadCheck', 'assetBulkUploadCheckDto', assetBulkUploadCheckDto)
  5487. const localVarPath = `/asset/bulk-upload-check`;
  5488. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5489. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5490. let baseOptions;
  5491. if (configuration) {
  5492. baseOptions = configuration.baseOptions;
  5493. }
  5494. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  5495. const localVarHeaderParameter = {} as any;
  5496. const localVarQueryParameter = {} as any;
  5497. // authentication cookie required
  5498. // authentication api_key required
  5499. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5500. // authentication bearer required
  5501. // http bearer authentication required
  5502. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5503. localVarHeaderParameter['Content-Type'] = 'application/json';
  5504. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5505. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5506. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5507. localVarRequestOptions.data = serializeDataIfNeeded(assetBulkUploadCheckDto, localVarRequestOptions, configuration)
  5508. return {
  5509. url: toPathString(localVarUrlObj),
  5510. options: localVarRequestOptions,
  5511. };
  5512. },
  5513. /**
  5514. * Checks if multiple assets exist on the server and returns all existing - used by background backup
  5515. * @param {CheckExistingAssetsDto} checkExistingAssetsDto
  5516. * @param {*} [options] Override http request option.
  5517. * @throws {RequiredError}
  5518. */
  5519. checkExistingAssets: async (checkExistingAssetsDto: CheckExistingAssetsDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5520. // verify required parameter 'checkExistingAssetsDto' is not null or undefined
  5521. assertParamExists('checkExistingAssets', 'checkExistingAssetsDto', checkExistingAssetsDto)
  5522. const localVarPath = `/asset/exist`;
  5523. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5524. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5525. let baseOptions;
  5526. if (configuration) {
  5527. baseOptions = configuration.baseOptions;
  5528. }
  5529. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  5530. const localVarHeaderParameter = {} as any;
  5531. const localVarQueryParameter = {} as any;
  5532. // authentication cookie required
  5533. // authentication api_key required
  5534. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5535. // authentication bearer required
  5536. // http bearer authentication required
  5537. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5538. localVarHeaderParameter['Content-Type'] = 'application/json';
  5539. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5540. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5541. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5542. localVarRequestOptions.data = serializeDataIfNeeded(checkExistingAssetsDto, localVarRequestOptions, configuration)
  5543. return {
  5544. url: toPathString(localVarUrlObj),
  5545. options: localVarRequestOptions,
  5546. };
  5547. },
  5548. /**
  5549. *
  5550. * @param {AssetBulkDeleteDto} assetBulkDeleteDto
  5551. * @param {*} [options] Override http request option.
  5552. * @throws {RequiredError}
  5553. */
  5554. deleteAssets: async (assetBulkDeleteDto: AssetBulkDeleteDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5555. // verify required parameter 'assetBulkDeleteDto' is not null or undefined
  5556. assertParamExists('deleteAssets', 'assetBulkDeleteDto', assetBulkDeleteDto)
  5557. const localVarPath = `/asset`;
  5558. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5559. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5560. let baseOptions;
  5561. if (configuration) {
  5562. baseOptions = configuration.baseOptions;
  5563. }
  5564. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  5565. const localVarHeaderParameter = {} as any;
  5566. const localVarQueryParameter = {} as any;
  5567. // authentication cookie required
  5568. // authentication api_key required
  5569. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5570. // authentication bearer required
  5571. // http bearer authentication required
  5572. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5573. localVarHeaderParameter['Content-Type'] = 'application/json';
  5574. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5575. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5576. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5577. localVarRequestOptions.data = serializeDataIfNeeded(assetBulkDeleteDto, localVarRequestOptions, configuration)
  5578. return {
  5579. url: toPathString(localVarUrlObj),
  5580. options: localVarRequestOptions,
  5581. };
  5582. },
  5583. /**
  5584. *
  5585. * @param {AssetIdsDto} assetIdsDto
  5586. * @param {string} [key]
  5587. * @param {*} [options] Override http request option.
  5588. * @throws {RequiredError}
  5589. */
  5590. downloadArchive: async (assetIdsDto: AssetIdsDto, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5591. // verify required parameter 'assetIdsDto' is not null or undefined
  5592. assertParamExists('downloadArchive', 'assetIdsDto', assetIdsDto)
  5593. const localVarPath = `/asset/download/archive`;
  5594. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5595. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5596. let baseOptions;
  5597. if (configuration) {
  5598. baseOptions = configuration.baseOptions;
  5599. }
  5600. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  5601. const localVarHeaderParameter = {} as any;
  5602. const localVarQueryParameter = {} as any;
  5603. // authentication cookie required
  5604. // authentication api_key required
  5605. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5606. // authentication bearer required
  5607. // http bearer authentication required
  5608. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5609. if (key !== undefined) {
  5610. localVarQueryParameter['key'] = key;
  5611. }
  5612. localVarHeaderParameter['Content-Type'] = 'application/json';
  5613. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5614. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5615. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5616. localVarRequestOptions.data = serializeDataIfNeeded(assetIdsDto, localVarRequestOptions, configuration)
  5617. return {
  5618. url: toPathString(localVarUrlObj),
  5619. options: localVarRequestOptions,
  5620. };
  5621. },
  5622. /**
  5623. *
  5624. * @param {string} id
  5625. * @param {string} [key]
  5626. * @param {*} [options] Override http request option.
  5627. * @throws {RequiredError}
  5628. */
  5629. downloadFile: async (id: string, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5630. // verify required parameter 'id' is not null or undefined
  5631. assertParamExists('downloadFile', 'id', id)
  5632. const localVarPath = `/asset/download/{id}`
  5633. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  5634. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5635. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5636. let baseOptions;
  5637. if (configuration) {
  5638. baseOptions = configuration.baseOptions;
  5639. }
  5640. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  5641. const localVarHeaderParameter = {} as any;
  5642. const localVarQueryParameter = {} as any;
  5643. // authentication cookie required
  5644. // authentication api_key required
  5645. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5646. // authentication bearer required
  5647. // http bearer authentication required
  5648. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5649. if (key !== undefined) {
  5650. localVarQueryParameter['key'] = key;
  5651. }
  5652. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5653. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5654. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5655. return {
  5656. url: toPathString(localVarUrlObj),
  5657. options: localVarRequestOptions,
  5658. };
  5659. },
  5660. /**
  5661. *
  5662. * @param {*} [options] Override http request option.
  5663. * @throws {RequiredError}
  5664. */
  5665. emptyTrash: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5666. const localVarPath = `/asset/trash/empty`;
  5667. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5668. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5669. let baseOptions;
  5670. if (configuration) {
  5671. baseOptions = configuration.baseOptions;
  5672. }
  5673. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  5674. const localVarHeaderParameter = {} as any;
  5675. const localVarQueryParameter = {} as any;
  5676. // authentication cookie required
  5677. // authentication api_key required
  5678. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5679. // authentication bearer required
  5680. // http bearer authentication required
  5681. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5682. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5683. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5684. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5685. return {
  5686. url: toPathString(localVarUrlObj),
  5687. options: localVarRequestOptions,
  5688. };
  5689. },
  5690. /**
  5691. * Get all AssetEntity belong to the user
  5692. * @param {string} [userId]
  5693. * @param {boolean} [isFavorite]
  5694. * @param {boolean} [isArchived]
  5695. * @param {number} [skip]
  5696. * @param {string} [updatedAfter]
  5697. * @param {string} [ifNoneMatch] ETag of data already cached on the client
  5698. * @param {*} [options] Override http request option.
  5699. * @throws {RequiredError}
  5700. */
  5701. getAllAssets: async (userId?: string, isFavorite?: boolean, isArchived?: boolean, skip?: number, updatedAfter?: string, ifNoneMatch?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5702. const localVarPath = `/asset`;
  5703. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5704. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5705. let baseOptions;
  5706. if (configuration) {
  5707. baseOptions = configuration.baseOptions;
  5708. }
  5709. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  5710. const localVarHeaderParameter = {} as any;
  5711. const localVarQueryParameter = {} as any;
  5712. // authentication cookie required
  5713. // authentication api_key required
  5714. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5715. // authentication bearer required
  5716. // http bearer authentication required
  5717. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5718. if (userId !== undefined) {
  5719. localVarQueryParameter['userId'] = userId;
  5720. }
  5721. if (isFavorite !== undefined) {
  5722. localVarQueryParameter['isFavorite'] = isFavorite;
  5723. }
  5724. if (isArchived !== undefined) {
  5725. localVarQueryParameter['isArchived'] = isArchived;
  5726. }
  5727. if (skip !== undefined) {
  5728. localVarQueryParameter['skip'] = skip;
  5729. }
  5730. if (updatedAfter !== undefined) {
  5731. localVarQueryParameter['updatedAfter'] = (updatedAfter as any instanceof Date) ?
  5732. (updatedAfter as any).toISOString() :
  5733. updatedAfter;
  5734. }
  5735. if (ifNoneMatch != null) {
  5736. localVarHeaderParameter['if-none-match'] = String(ifNoneMatch);
  5737. }
  5738. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5739. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5740. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5741. return {
  5742. url: toPathString(localVarUrlObj),
  5743. options: localVarRequestOptions,
  5744. };
  5745. },
  5746. /**
  5747. * Get a single asset\'s information
  5748. * @param {string} id
  5749. * @param {string} [key]
  5750. * @param {*} [options] Override http request option.
  5751. * @throws {RequiredError}
  5752. */
  5753. getAssetById: async (id: string, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5754. // verify required parameter 'id' is not null or undefined
  5755. assertParamExists('getAssetById', 'id', id)
  5756. const localVarPath = `/asset/assetById/{id}`
  5757. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  5758. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5759. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5760. let baseOptions;
  5761. if (configuration) {
  5762. baseOptions = configuration.baseOptions;
  5763. }
  5764. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  5765. const localVarHeaderParameter = {} as any;
  5766. const localVarQueryParameter = {} as any;
  5767. // authentication cookie required
  5768. // authentication api_key required
  5769. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5770. // authentication bearer required
  5771. // http bearer authentication required
  5772. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5773. if (key !== undefined) {
  5774. localVarQueryParameter['key'] = key;
  5775. }
  5776. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5777. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5778. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5779. return {
  5780. url: toPathString(localVarUrlObj),
  5781. options: localVarRequestOptions,
  5782. };
  5783. },
  5784. /**
  5785. *
  5786. * @param {*} [options] Override http request option.
  5787. * @throws {RequiredError}
  5788. */
  5789. getAssetSearchTerms: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5790. const localVarPath = `/asset/search-terms`;
  5791. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5792. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5793. let baseOptions;
  5794. if (configuration) {
  5795. baseOptions = configuration.baseOptions;
  5796. }
  5797. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  5798. const localVarHeaderParameter = {} as any;
  5799. const localVarQueryParameter = {} as any;
  5800. // authentication cookie required
  5801. // authentication api_key required
  5802. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5803. // authentication bearer required
  5804. // http bearer authentication required
  5805. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5806. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5807. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5808. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5809. return {
  5810. url: toPathString(localVarUrlObj),
  5811. options: localVarRequestOptions,
  5812. };
  5813. },
  5814. /**
  5815. *
  5816. * @param {boolean} [isArchived]
  5817. * @param {boolean} [isFavorite]
  5818. * @param {boolean} [isTrashed]
  5819. * @param {*} [options] Override http request option.
  5820. * @throws {RequiredError}
  5821. */
  5822. getAssetStats: async (isArchived?: boolean, isFavorite?: boolean, isTrashed?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5823. const localVarPath = `/asset/statistics`;
  5824. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5825. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5826. let baseOptions;
  5827. if (configuration) {
  5828. baseOptions = configuration.baseOptions;
  5829. }
  5830. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  5831. const localVarHeaderParameter = {} as any;
  5832. const localVarQueryParameter = {} as any;
  5833. // authentication cookie required
  5834. // authentication api_key required
  5835. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5836. // authentication bearer required
  5837. // http bearer authentication required
  5838. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5839. if (isArchived !== undefined) {
  5840. localVarQueryParameter['isArchived'] = isArchived;
  5841. }
  5842. if (isFavorite !== undefined) {
  5843. localVarQueryParameter['isFavorite'] = isFavorite;
  5844. }
  5845. if (isTrashed !== undefined) {
  5846. localVarQueryParameter['isTrashed'] = isTrashed;
  5847. }
  5848. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5849. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5850. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5851. return {
  5852. url: toPathString(localVarUrlObj),
  5853. options: localVarRequestOptions,
  5854. };
  5855. },
  5856. /**
  5857. *
  5858. * @param {string} id
  5859. * @param {ThumbnailFormat} [format]
  5860. * @param {string} [key]
  5861. * @param {*} [options] Override http request option.
  5862. * @throws {RequiredError}
  5863. */
  5864. getAssetThumbnail: async (id: string, format?: ThumbnailFormat, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5865. // verify required parameter 'id' is not null or undefined
  5866. assertParamExists('getAssetThumbnail', 'id', id)
  5867. const localVarPath = `/asset/thumbnail/{id}`
  5868. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  5869. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5870. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5871. let baseOptions;
  5872. if (configuration) {
  5873. baseOptions = configuration.baseOptions;
  5874. }
  5875. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  5876. const localVarHeaderParameter = {} as any;
  5877. const localVarQueryParameter = {} as any;
  5878. // authentication cookie required
  5879. // authentication api_key required
  5880. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5881. // authentication bearer required
  5882. // http bearer authentication required
  5883. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5884. if (format !== undefined) {
  5885. localVarQueryParameter['format'] = format;
  5886. }
  5887. if (key !== undefined) {
  5888. localVarQueryParameter['key'] = key;
  5889. }
  5890. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5891. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5892. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5893. return {
  5894. url: toPathString(localVarUrlObj),
  5895. options: localVarRequestOptions,
  5896. };
  5897. },
  5898. /**
  5899. *
  5900. * @param {TimeBucketSize} size
  5901. * @param {string} timeBucket
  5902. * @param {string} [userId]
  5903. * @param {string} [albumId]
  5904. * @param {string} [personId]
  5905. * @param {boolean} [isArchived]
  5906. * @param {boolean} [isFavorite]
  5907. * @param {boolean} [isTrashed]
  5908. * @param {boolean} [withStacked]
  5909. * @param {string} [key]
  5910. * @param {*} [options] Override http request option.
  5911. * @throws {RequiredError}
  5912. */
  5913. getByTimeBucket: async (size: TimeBucketSize, timeBucket: string, userId?: string, albumId?: string, personId?: string, isArchived?: boolean, isFavorite?: boolean, isTrashed?: boolean, withStacked?: boolean, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5914. // verify required parameter 'size' is not null or undefined
  5915. assertParamExists('getByTimeBucket', 'size', size)
  5916. // verify required parameter 'timeBucket' is not null or undefined
  5917. assertParamExists('getByTimeBucket', 'timeBucket', timeBucket)
  5918. const localVarPath = `/asset/time-bucket`;
  5919. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5920. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5921. let baseOptions;
  5922. if (configuration) {
  5923. baseOptions = configuration.baseOptions;
  5924. }
  5925. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  5926. const localVarHeaderParameter = {} as any;
  5927. const localVarQueryParameter = {} as any;
  5928. // authentication cookie required
  5929. // authentication api_key required
  5930. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5931. // authentication bearer required
  5932. // http bearer authentication required
  5933. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5934. if (size !== undefined) {
  5935. localVarQueryParameter['size'] = size;
  5936. }
  5937. if (userId !== undefined) {
  5938. localVarQueryParameter['userId'] = userId;
  5939. }
  5940. if (albumId !== undefined) {
  5941. localVarQueryParameter['albumId'] = albumId;
  5942. }
  5943. if (personId !== undefined) {
  5944. localVarQueryParameter['personId'] = personId;
  5945. }
  5946. if (isArchived !== undefined) {
  5947. localVarQueryParameter['isArchived'] = isArchived;
  5948. }
  5949. if (isFavorite !== undefined) {
  5950. localVarQueryParameter['isFavorite'] = isFavorite;
  5951. }
  5952. if (isTrashed !== undefined) {
  5953. localVarQueryParameter['isTrashed'] = isTrashed;
  5954. }
  5955. if (withStacked !== undefined) {
  5956. localVarQueryParameter['withStacked'] = withStacked;
  5957. }
  5958. if (timeBucket !== undefined) {
  5959. localVarQueryParameter['timeBucket'] = timeBucket;
  5960. }
  5961. if (key !== undefined) {
  5962. localVarQueryParameter['key'] = key;
  5963. }
  5964. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5965. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5966. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5967. return {
  5968. url: toPathString(localVarUrlObj),
  5969. options: localVarRequestOptions,
  5970. };
  5971. },
  5972. /**
  5973. *
  5974. * @param {*} [options] Override http request option.
  5975. * @throws {RequiredError}
  5976. */
  5977. getCuratedLocations: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5978. const localVarPath = `/asset/curated-locations`;
  5979. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5980. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5981. let baseOptions;
  5982. if (configuration) {
  5983. baseOptions = configuration.baseOptions;
  5984. }
  5985. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  5986. const localVarHeaderParameter = {} as any;
  5987. const localVarQueryParameter = {} as any;
  5988. // authentication cookie required
  5989. // authentication api_key required
  5990. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5991. // authentication bearer required
  5992. // http bearer authentication required
  5993. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5994. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5995. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5996. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5997. return {
  5998. url: toPathString(localVarUrlObj),
  5999. options: localVarRequestOptions,
  6000. };
  6001. },
  6002. /**
  6003. *
  6004. * @param {*} [options] Override http request option.
  6005. * @throws {RequiredError}
  6006. */
  6007. getCuratedObjects: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6008. const localVarPath = `/asset/curated-objects`;
  6009. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6010. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6011. let baseOptions;
  6012. if (configuration) {
  6013. baseOptions = configuration.baseOptions;
  6014. }
  6015. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6016. const localVarHeaderParameter = {} as any;
  6017. const localVarQueryParameter = {} as any;
  6018. // authentication cookie required
  6019. // authentication api_key required
  6020. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6021. // authentication bearer required
  6022. // http bearer authentication required
  6023. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6024. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6025. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6026. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6027. return {
  6028. url: toPathString(localVarUrlObj),
  6029. options: localVarRequestOptions,
  6030. };
  6031. },
  6032. /**
  6033. *
  6034. * @param {DownloadInfoDto} downloadInfoDto
  6035. * @param {string} [key]
  6036. * @param {*} [options] Override http request option.
  6037. * @throws {RequiredError}
  6038. */
  6039. getDownloadInfo: async (downloadInfoDto: DownloadInfoDto, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6040. // verify required parameter 'downloadInfoDto' is not null or undefined
  6041. assertParamExists('getDownloadInfo', 'downloadInfoDto', downloadInfoDto)
  6042. const localVarPath = `/asset/download/info`;
  6043. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6044. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6045. let baseOptions;
  6046. if (configuration) {
  6047. baseOptions = configuration.baseOptions;
  6048. }
  6049. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  6050. const localVarHeaderParameter = {} as any;
  6051. const localVarQueryParameter = {} as any;
  6052. // authentication cookie required
  6053. // authentication api_key required
  6054. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6055. // authentication bearer required
  6056. // http bearer authentication required
  6057. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6058. if (key !== undefined) {
  6059. localVarQueryParameter['key'] = key;
  6060. }
  6061. localVarHeaderParameter['Content-Type'] = 'application/json';
  6062. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6063. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6064. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6065. localVarRequestOptions.data = serializeDataIfNeeded(downloadInfoDto, localVarRequestOptions, configuration)
  6066. return {
  6067. url: toPathString(localVarUrlObj),
  6068. options: localVarRequestOptions,
  6069. };
  6070. },
  6071. /**
  6072. *
  6073. * @param {boolean} [isArchived]
  6074. * @param {boolean} [isFavorite]
  6075. * @param {string} [fileCreatedAfter]
  6076. * @param {string} [fileCreatedBefore]
  6077. * @param {*} [options] Override http request option.
  6078. * @throws {RequiredError}
  6079. */
  6080. getMapMarkers: async (isArchived?: boolean, isFavorite?: boolean, fileCreatedAfter?: string, fileCreatedBefore?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6081. const localVarPath = `/asset/map-marker`;
  6082. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6083. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6084. let baseOptions;
  6085. if (configuration) {
  6086. baseOptions = configuration.baseOptions;
  6087. }
  6088. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6089. const localVarHeaderParameter = {} as any;
  6090. const localVarQueryParameter = {} as any;
  6091. // authentication cookie required
  6092. // authentication api_key required
  6093. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6094. // authentication bearer required
  6095. // http bearer authentication required
  6096. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6097. if (isArchived !== undefined) {
  6098. localVarQueryParameter['isArchived'] = isArchived;
  6099. }
  6100. if (isFavorite !== undefined) {
  6101. localVarQueryParameter['isFavorite'] = isFavorite;
  6102. }
  6103. if (fileCreatedAfter !== undefined) {
  6104. localVarQueryParameter['fileCreatedAfter'] = (fileCreatedAfter as any instanceof Date) ?
  6105. (fileCreatedAfter as any).toISOString() :
  6106. fileCreatedAfter;
  6107. }
  6108. if (fileCreatedBefore !== undefined) {
  6109. localVarQueryParameter['fileCreatedBefore'] = (fileCreatedBefore as any instanceof Date) ?
  6110. (fileCreatedBefore as any).toISOString() :
  6111. fileCreatedBefore;
  6112. }
  6113. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6114. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6115. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6116. return {
  6117. url: toPathString(localVarUrlObj),
  6118. options: localVarRequestOptions,
  6119. };
  6120. },
  6121. /**
  6122. *
  6123. * @param {number} day
  6124. * @param {number} month
  6125. * @param {*} [options] Override http request option.
  6126. * @throws {RequiredError}
  6127. */
  6128. getMemoryLane: async (day: number, month: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6129. // verify required parameter 'day' is not null or undefined
  6130. assertParamExists('getMemoryLane', 'day', day)
  6131. // verify required parameter 'month' is not null or undefined
  6132. assertParamExists('getMemoryLane', 'month', month)
  6133. const localVarPath = `/asset/memory-lane`;
  6134. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6135. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6136. let baseOptions;
  6137. if (configuration) {
  6138. baseOptions = configuration.baseOptions;
  6139. }
  6140. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6141. const localVarHeaderParameter = {} as any;
  6142. const localVarQueryParameter = {} as any;
  6143. // authentication cookie required
  6144. // authentication api_key required
  6145. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6146. // authentication bearer required
  6147. // http bearer authentication required
  6148. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6149. if (day !== undefined) {
  6150. localVarQueryParameter['day'] = day;
  6151. }
  6152. if (month !== undefined) {
  6153. localVarQueryParameter['month'] = month;
  6154. }
  6155. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6156. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6157. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6158. return {
  6159. url: toPathString(localVarUrlObj),
  6160. options: localVarRequestOptions,
  6161. };
  6162. },
  6163. /**
  6164. *
  6165. * @param {number} [count]
  6166. * @param {*} [options] Override http request option.
  6167. * @throws {RequiredError}
  6168. */
  6169. getRandom: async (count?: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6170. const localVarPath = `/asset/random`;
  6171. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6172. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6173. let baseOptions;
  6174. if (configuration) {
  6175. baseOptions = configuration.baseOptions;
  6176. }
  6177. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6178. const localVarHeaderParameter = {} as any;
  6179. const localVarQueryParameter = {} as any;
  6180. // authentication cookie required
  6181. // authentication api_key required
  6182. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6183. // authentication bearer required
  6184. // http bearer authentication required
  6185. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6186. if (count !== undefined) {
  6187. localVarQueryParameter['count'] = count;
  6188. }
  6189. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6190. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6191. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6192. return {
  6193. url: toPathString(localVarUrlObj),
  6194. options: localVarRequestOptions,
  6195. };
  6196. },
  6197. /**
  6198. *
  6199. * @param {TimeBucketSize} size
  6200. * @param {string} [userId]
  6201. * @param {string} [albumId]
  6202. * @param {string} [personId]
  6203. * @param {boolean} [isArchived]
  6204. * @param {boolean} [isFavorite]
  6205. * @param {boolean} [isTrashed]
  6206. * @param {boolean} [withStacked]
  6207. * @param {string} [key]
  6208. * @param {*} [options] Override http request option.
  6209. * @throws {RequiredError}
  6210. */
  6211. getTimeBuckets: async (size: TimeBucketSize, userId?: string, albumId?: string, personId?: string, isArchived?: boolean, isFavorite?: boolean, isTrashed?: boolean, withStacked?: boolean, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6212. // verify required parameter 'size' is not null or undefined
  6213. assertParamExists('getTimeBuckets', 'size', size)
  6214. const localVarPath = `/asset/time-buckets`;
  6215. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6216. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6217. let baseOptions;
  6218. if (configuration) {
  6219. baseOptions = configuration.baseOptions;
  6220. }
  6221. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6222. const localVarHeaderParameter = {} as any;
  6223. const localVarQueryParameter = {} as any;
  6224. // authentication cookie required
  6225. // authentication api_key required
  6226. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6227. // authentication bearer required
  6228. // http bearer authentication required
  6229. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6230. if (size !== undefined) {
  6231. localVarQueryParameter['size'] = size;
  6232. }
  6233. if (userId !== undefined) {
  6234. localVarQueryParameter['userId'] = userId;
  6235. }
  6236. if (albumId !== undefined) {
  6237. localVarQueryParameter['albumId'] = albumId;
  6238. }
  6239. if (personId !== undefined) {
  6240. localVarQueryParameter['personId'] = personId;
  6241. }
  6242. if (isArchived !== undefined) {
  6243. localVarQueryParameter['isArchived'] = isArchived;
  6244. }
  6245. if (isFavorite !== undefined) {
  6246. localVarQueryParameter['isFavorite'] = isFavorite;
  6247. }
  6248. if (isTrashed !== undefined) {
  6249. localVarQueryParameter['isTrashed'] = isTrashed;
  6250. }
  6251. if (withStacked !== undefined) {
  6252. localVarQueryParameter['withStacked'] = withStacked;
  6253. }
  6254. if (key !== undefined) {
  6255. localVarQueryParameter['key'] = key;
  6256. }
  6257. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6258. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6259. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6260. return {
  6261. url: toPathString(localVarUrlObj),
  6262. options: localVarRequestOptions,
  6263. };
  6264. },
  6265. /**
  6266. * Get all asset of a device that are in the database, ID only.
  6267. * @param {string} deviceId
  6268. * @param {*} [options] Override http request option.
  6269. * @throws {RequiredError}
  6270. */
  6271. getUserAssetsByDeviceId: async (deviceId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6272. // verify required parameter 'deviceId' is not null or undefined
  6273. assertParamExists('getUserAssetsByDeviceId', 'deviceId', deviceId)
  6274. const localVarPath = `/asset/{deviceId}`
  6275. .replace(`{${"deviceId"}}`, encodeURIComponent(String(deviceId)));
  6276. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6277. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6278. let baseOptions;
  6279. if (configuration) {
  6280. baseOptions = configuration.baseOptions;
  6281. }
  6282. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6283. const localVarHeaderParameter = {} as any;
  6284. const localVarQueryParameter = {} as any;
  6285. // authentication cookie required
  6286. // authentication api_key required
  6287. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6288. // authentication bearer required
  6289. // http bearer authentication required
  6290. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6291. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6292. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6293. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6294. return {
  6295. url: toPathString(localVarUrlObj),
  6296. options: localVarRequestOptions,
  6297. };
  6298. },
  6299. /**
  6300. *
  6301. * @param {ImportAssetDto} importAssetDto
  6302. * @param {*} [options] Override http request option.
  6303. * @throws {RequiredError}
  6304. */
  6305. importFile: async (importAssetDto: ImportAssetDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6306. // verify required parameter 'importAssetDto' is not null or undefined
  6307. assertParamExists('importFile', 'importAssetDto', importAssetDto)
  6308. const localVarPath = `/asset/import`;
  6309. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6310. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6311. let baseOptions;
  6312. if (configuration) {
  6313. baseOptions = configuration.baseOptions;
  6314. }
  6315. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  6316. const localVarHeaderParameter = {} as any;
  6317. const localVarQueryParameter = {} as any;
  6318. // authentication cookie required
  6319. // authentication api_key required
  6320. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6321. // authentication bearer required
  6322. // http bearer authentication required
  6323. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6324. localVarHeaderParameter['Content-Type'] = 'application/json';
  6325. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6326. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6327. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6328. localVarRequestOptions.data = serializeDataIfNeeded(importAssetDto, localVarRequestOptions, configuration)
  6329. return {
  6330. url: toPathString(localVarUrlObj),
  6331. options: localVarRequestOptions,
  6332. };
  6333. },
  6334. /**
  6335. *
  6336. * @param {BulkIdsDto} bulkIdsDto
  6337. * @param {*} [options] Override http request option.
  6338. * @throws {RequiredError}
  6339. */
  6340. restoreAssets: async (bulkIdsDto: BulkIdsDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6341. // verify required parameter 'bulkIdsDto' is not null or undefined
  6342. assertParamExists('restoreAssets', 'bulkIdsDto', bulkIdsDto)
  6343. const localVarPath = `/asset/restore`;
  6344. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6345. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6346. let baseOptions;
  6347. if (configuration) {
  6348. baseOptions = configuration.baseOptions;
  6349. }
  6350. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  6351. const localVarHeaderParameter = {} as any;
  6352. const localVarQueryParameter = {} as any;
  6353. // authentication cookie required
  6354. // authentication api_key required
  6355. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6356. // authentication bearer required
  6357. // http bearer authentication required
  6358. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6359. localVarHeaderParameter['Content-Type'] = 'application/json';
  6360. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6361. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6362. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6363. localVarRequestOptions.data = serializeDataIfNeeded(bulkIdsDto, localVarRequestOptions, configuration)
  6364. return {
  6365. url: toPathString(localVarUrlObj),
  6366. options: localVarRequestOptions,
  6367. };
  6368. },
  6369. /**
  6370. *
  6371. * @param {*} [options] Override http request option.
  6372. * @throws {RequiredError}
  6373. */
  6374. restoreTrash: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6375. const localVarPath = `/asset/trash/restore`;
  6376. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6377. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6378. let baseOptions;
  6379. if (configuration) {
  6380. baseOptions = configuration.baseOptions;
  6381. }
  6382. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  6383. const localVarHeaderParameter = {} as any;
  6384. const localVarQueryParameter = {} as any;
  6385. // authentication cookie required
  6386. // authentication api_key required
  6387. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6388. // authentication bearer required
  6389. // http bearer authentication required
  6390. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6391. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6392. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6393. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6394. return {
  6395. url: toPathString(localVarUrlObj),
  6396. options: localVarRequestOptions,
  6397. };
  6398. },
  6399. /**
  6400. *
  6401. * @param {AssetJobsDto} assetJobsDto
  6402. * @param {*} [options] Override http request option.
  6403. * @throws {RequiredError}
  6404. */
  6405. runAssetJobs: async (assetJobsDto: AssetJobsDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6406. // verify required parameter 'assetJobsDto' is not null or undefined
  6407. assertParamExists('runAssetJobs', 'assetJobsDto', assetJobsDto)
  6408. const localVarPath = `/asset/jobs`;
  6409. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6410. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6411. let baseOptions;
  6412. if (configuration) {
  6413. baseOptions = configuration.baseOptions;
  6414. }
  6415. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  6416. const localVarHeaderParameter = {} as any;
  6417. const localVarQueryParameter = {} as any;
  6418. // authentication cookie required
  6419. // authentication api_key required
  6420. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6421. // authentication bearer required
  6422. // http bearer authentication required
  6423. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6424. localVarHeaderParameter['Content-Type'] = 'application/json';
  6425. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6426. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6427. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6428. localVarRequestOptions.data = serializeDataIfNeeded(assetJobsDto, localVarRequestOptions, configuration)
  6429. return {
  6430. url: toPathString(localVarUrlObj),
  6431. options: localVarRequestOptions,
  6432. };
  6433. },
  6434. /**
  6435. *
  6436. * @param {SearchAssetDto} searchAssetDto
  6437. * @param {*} [options] Override http request option.
  6438. * @throws {RequiredError}
  6439. */
  6440. searchAsset: async (searchAssetDto: SearchAssetDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6441. // verify required parameter 'searchAssetDto' is not null or undefined
  6442. assertParamExists('searchAsset', 'searchAssetDto', searchAssetDto)
  6443. const localVarPath = `/asset/search`;
  6444. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6445. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6446. let baseOptions;
  6447. if (configuration) {
  6448. baseOptions = configuration.baseOptions;
  6449. }
  6450. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  6451. const localVarHeaderParameter = {} as any;
  6452. const localVarQueryParameter = {} as any;
  6453. // authentication cookie required
  6454. // authentication api_key required
  6455. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6456. // authentication bearer required
  6457. // http bearer authentication required
  6458. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6459. localVarHeaderParameter['Content-Type'] = 'application/json';
  6460. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6461. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6462. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6463. localVarRequestOptions.data = serializeDataIfNeeded(searchAssetDto, localVarRequestOptions, configuration)
  6464. return {
  6465. url: toPathString(localVarUrlObj),
  6466. options: localVarRequestOptions,
  6467. };
  6468. },
  6469. /**
  6470. *
  6471. * @param {string} id
  6472. * @param {boolean} [isThumb]
  6473. * @param {boolean} [isWeb]
  6474. * @param {string} [key]
  6475. * @param {*} [options] Override http request option.
  6476. * @throws {RequiredError}
  6477. */
  6478. serveFile: async (id: string, isThumb?: boolean, isWeb?: boolean, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6479. // verify required parameter 'id' is not null or undefined
  6480. assertParamExists('serveFile', 'id', id)
  6481. const localVarPath = `/asset/file/{id}`
  6482. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  6483. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6484. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6485. let baseOptions;
  6486. if (configuration) {
  6487. baseOptions = configuration.baseOptions;
  6488. }
  6489. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6490. const localVarHeaderParameter = {} as any;
  6491. const localVarQueryParameter = {} as any;
  6492. // authentication cookie required
  6493. // authentication api_key required
  6494. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6495. // authentication bearer required
  6496. // http bearer authentication required
  6497. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6498. if (isThumb !== undefined) {
  6499. localVarQueryParameter['isThumb'] = isThumb;
  6500. }
  6501. if (isWeb !== undefined) {
  6502. localVarQueryParameter['isWeb'] = isWeb;
  6503. }
  6504. if (key !== undefined) {
  6505. localVarQueryParameter['key'] = key;
  6506. }
  6507. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6508. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6509. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6510. return {
  6511. url: toPathString(localVarUrlObj),
  6512. options: localVarRequestOptions,
  6513. };
  6514. },
  6515. /**
  6516. *
  6517. * @param {string} id
  6518. * @param {UpdateAssetDto} updateAssetDto
  6519. * @param {*} [options] Override http request option.
  6520. * @throws {RequiredError}
  6521. */
  6522. updateAsset: async (id: string, updateAssetDto: UpdateAssetDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6523. // verify required parameter 'id' is not null or undefined
  6524. assertParamExists('updateAsset', 'id', id)
  6525. // verify required parameter 'updateAssetDto' is not null or undefined
  6526. assertParamExists('updateAsset', 'updateAssetDto', updateAssetDto)
  6527. const localVarPath = `/asset/{id}`
  6528. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  6529. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6530. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6531. let baseOptions;
  6532. if (configuration) {
  6533. baseOptions = configuration.baseOptions;
  6534. }
  6535. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  6536. const localVarHeaderParameter = {} as any;
  6537. const localVarQueryParameter = {} as any;
  6538. // authentication cookie required
  6539. // authentication api_key required
  6540. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6541. // authentication bearer required
  6542. // http bearer authentication required
  6543. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6544. localVarHeaderParameter['Content-Type'] = 'application/json';
  6545. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6546. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6547. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6548. localVarRequestOptions.data = serializeDataIfNeeded(updateAssetDto, localVarRequestOptions, configuration)
  6549. return {
  6550. url: toPathString(localVarUrlObj),
  6551. options: localVarRequestOptions,
  6552. };
  6553. },
  6554. /**
  6555. *
  6556. * @param {AssetBulkUpdateDto} assetBulkUpdateDto
  6557. * @param {*} [options] Override http request option.
  6558. * @throws {RequiredError}
  6559. */
  6560. updateAssets: async (assetBulkUpdateDto: AssetBulkUpdateDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6561. // verify required parameter 'assetBulkUpdateDto' is not null or undefined
  6562. assertParamExists('updateAssets', 'assetBulkUpdateDto', assetBulkUpdateDto)
  6563. const localVarPath = `/asset`;
  6564. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6565. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6566. let baseOptions;
  6567. if (configuration) {
  6568. baseOptions = configuration.baseOptions;
  6569. }
  6570. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  6571. const localVarHeaderParameter = {} as any;
  6572. const localVarQueryParameter = {} as any;
  6573. // authentication cookie required
  6574. // authentication api_key required
  6575. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6576. // authentication bearer required
  6577. // http bearer authentication required
  6578. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6579. localVarHeaderParameter['Content-Type'] = 'application/json';
  6580. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6581. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6582. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6583. localVarRequestOptions.data = serializeDataIfNeeded(assetBulkUpdateDto, localVarRequestOptions, configuration)
  6584. return {
  6585. url: toPathString(localVarUrlObj),
  6586. options: localVarRequestOptions,
  6587. };
  6588. },
  6589. /**
  6590. *
  6591. * @param {UpdateStackParentDto} updateStackParentDto
  6592. * @param {*} [options] Override http request option.
  6593. * @throws {RequiredError}
  6594. */
  6595. updateStackParent: async (updateStackParentDto: UpdateStackParentDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6596. // verify required parameter 'updateStackParentDto' is not null or undefined
  6597. assertParamExists('updateStackParent', 'updateStackParentDto', updateStackParentDto)
  6598. const localVarPath = `/asset/stack/parent`;
  6599. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6600. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6601. let baseOptions;
  6602. if (configuration) {
  6603. baseOptions = configuration.baseOptions;
  6604. }
  6605. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  6606. const localVarHeaderParameter = {} as any;
  6607. const localVarQueryParameter = {} as any;
  6608. // authentication cookie required
  6609. // authentication api_key required
  6610. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6611. // authentication bearer required
  6612. // http bearer authentication required
  6613. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6614. localVarHeaderParameter['Content-Type'] = 'application/json';
  6615. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6616. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6617. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6618. localVarRequestOptions.data = serializeDataIfNeeded(updateStackParentDto, localVarRequestOptions, configuration)
  6619. return {
  6620. url: toPathString(localVarUrlObj),
  6621. options: localVarRequestOptions,
  6622. };
  6623. },
  6624. /**
  6625. *
  6626. * @param {File} assetData
  6627. * @param {string} deviceAssetId
  6628. * @param {string} deviceId
  6629. * @param {string} fileCreatedAt
  6630. * @param {string} fileModifiedAt
  6631. * @param {boolean} isFavorite
  6632. * @param {string} [key]
  6633. * @param {string} [duration]
  6634. * @param {boolean} [isArchived]
  6635. * @param {boolean} [isExternal]
  6636. * @param {boolean} [isOffline]
  6637. * @param {boolean} [isReadOnly]
  6638. * @param {boolean} [isVisible]
  6639. * @param {string} [libraryId]
  6640. * @param {File} [livePhotoData]
  6641. * @param {File} [sidecarData]
  6642. * @param {*} [options] Override http request option.
  6643. * @throws {RequiredError}
  6644. */
  6645. uploadFile: async (assetData: File, deviceAssetId: string, deviceId: string, fileCreatedAt: string, fileModifiedAt: string, isFavorite: boolean, key?: string, duration?: string, isArchived?: boolean, isExternal?: boolean, isOffline?: boolean, isReadOnly?: boolean, isVisible?: boolean, libraryId?: string, livePhotoData?: File, sidecarData?: File, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6646. // verify required parameter 'assetData' is not null or undefined
  6647. assertParamExists('uploadFile', 'assetData', assetData)
  6648. // verify required parameter 'deviceAssetId' is not null or undefined
  6649. assertParamExists('uploadFile', 'deviceAssetId', deviceAssetId)
  6650. // verify required parameter 'deviceId' is not null or undefined
  6651. assertParamExists('uploadFile', 'deviceId', deviceId)
  6652. // verify required parameter 'fileCreatedAt' is not null or undefined
  6653. assertParamExists('uploadFile', 'fileCreatedAt', fileCreatedAt)
  6654. // verify required parameter 'fileModifiedAt' is not null or undefined
  6655. assertParamExists('uploadFile', 'fileModifiedAt', fileModifiedAt)
  6656. // verify required parameter 'isFavorite' is not null or undefined
  6657. assertParamExists('uploadFile', 'isFavorite', isFavorite)
  6658. const localVarPath = `/asset/upload`;
  6659. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6660. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6661. let baseOptions;
  6662. if (configuration) {
  6663. baseOptions = configuration.baseOptions;
  6664. }
  6665. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  6666. const localVarHeaderParameter = {} as any;
  6667. const localVarQueryParameter = {} as any;
  6668. const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
  6669. // authentication cookie required
  6670. // authentication api_key required
  6671. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6672. // authentication bearer required
  6673. // http bearer authentication required
  6674. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6675. if (key !== undefined) {
  6676. localVarQueryParameter['key'] = key;
  6677. }
  6678. if (assetData !== undefined) {
  6679. localVarFormParams.append('assetData', assetData as any);
  6680. }
  6681. if (deviceAssetId !== undefined) {
  6682. localVarFormParams.append('deviceAssetId', deviceAssetId as any);
  6683. }
  6684. if (deviceId !== undefined) {
  6685. localVarFormParams.append('deviceId', deviceId as any);
  6686. }
  6687. if (duration !== undefined) {
  6688. localVarFormParams.append('duration', duration as any);
  6689. }
  6690. if (fileCreatedAt !== undefined) {
  6691. localVarFormParams.append('fileCreatedAt', fileCreatedAt as any);
  6692. }
  6693. if (fileModifiedAt !== undefined) {
  6694. localVarFormParams.append('fileModifiedAt', fileModifiedAt as any);
  6695. }
  6696. if (isArchived !== undefined) {
  6697. localVarFormParams.append('isArchived', isArchived as any);
  6698. }
  6699. if (isExternal !== undefined) {
  6700. localVarFormParams.append('isExternal', isExternal as any);
  6701. }
  6702. if (isFavorite !== undefined) {
  6703. localVarFormParams.append('isFavorite', isFavorite as any);
  6704. }
  6705. if (isOffline !== undefined) {
  6706. localVarFormParams.append('isOffline', isOffline as any);
  6707. }
  6708. if (isReadOnly !== undefined) {
  6709. localVarFormParams.append('isReadOnly', isReadOnly as any);
  6710. }
  6711. if (isVisible !== undefined) {
  6712. localVarFormParams.append('isVisible', isVisible as any);
  6713. }
  6714. if (libraryId !== undefined) {
  6715. localVarFormParams.append('libraryId', libraryId as any);
  6716. }
  6717. if (livePhotoData !== undefined) {
  6718. localVarFormParams.append('livePhotoData', livePhotoData as any);
  6719. }
  6720. if (sidecarData !== undefined) {
  6721. localVarFormParams.append('sidecarData', sidecarData as any);
  6722. }
  6723. localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
  6724. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6725. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6726. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6727. localVarRequestOptions.data = localVarFormParams;
  6728. return {
  6729. url: toPathString(localVarUrlObj),
  6730. options: localVarRequestOptions,
  6731. };
  6732. },
  6733. }
  6734. };
  6735. /**
  6736. * AssetApi - functional programming interface
  6737. * @export
  6738. */
  6739. export const AssetApiFp = function(configuration?: Configuration) {
  6740. const localVarAxiosParamCreator = AssetApiAxiosParamCreator(configuration)
  6741. return {
  6742. /**
  6743. * Checks if assets exist by checksums
  6744. * @param {AssetBulkUploadCheckDto} assetBulkUploadCheckDto
  6745. * @param {*} [options] Override http request option.
  6746. * @throws {RequiredError}
  6747. */
  6748. async bulkUploadCheck(assetBulkUploadCheckDto: AssetBulkUploadCheckDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AssetBulkUploadCheckResponseDto>> {
  6749. const localVarAxiosArgs = await localVarAxiosParamCreator.bulkUploadCheck(assetBulkUploadCheckDto, options);
  6750. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6751. },
  6752. /**
  6753. * Checks if multiple assets exist on the server and returns all existing - used by background backup
  6754. * @param {CheckExistingAssetsDto} checkExistingAssetsDto
  6755. * @param {*} [options] Override http request option.
  6756. * @throws {RequiredError}
  6757. */
  6758. async checkExistingAssets(checkExistingAssetsDto: CheckExistingAssetsDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CheckExistingAssetsResponseDto>> {
  6759. const localVarAxiosArgs = await localVarAxiosParamCreator.checkExistingAssets(checkExistingAssetsDto, options);
  6760. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6761. },
  6762. /**
  6763. *
  6764. * @param {AssetBulkDeleteDto} assetBulkDeleteDto
  6765. * @param {*} [options] Override http request option.
  6766. * @throws {RequiredError}
  6767. */
  6768. async deleteAssets(assetBulkDeleteDto: AssetBulkDeleteDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  6769. const localVarAxiosArgs = await localVarAxiosParamCreator.deleteAssets(assetBulkDeleteDto, options);
  6770. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6771. },
  6772. /**
  6773. *
  6774. * @param {AssetIdsDto} assetIdsDto
  6775. * @param {string} [key]
  6776. * @param {*} [options] Override http request option.
  6777. * @throws {RequiredError}
  6778. */
  6779. async downloadArchive(assetIdsDto: AssetIdsDto, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>> {
  6780. const localVarAxiosArgs = await localVarAxiosParamCreator.downloadArchive(assetIdsDto, key, options);
  6781. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6782. },
  6783. /**
  6784. *
  6785. * @param {string} id
  6786. * @param {string} [key]
  6787. * @param {*} [options] Override http request option.
  6788. * @throws {RequiredError}
  6789. */
  6790. async downloadFile(id: string, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>> {
  6791. const localVarAxiosArgs = await localVarAxiosParamCreator.downloadFile(id, key, options);
  6792. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6793. },
  6794. /**
  6795. *
  6796. * @param {*} [options] Override http request option.
  6797. * @throws {RequiredError}
  6798. */
  6799. async emptyTrash(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  6800. const localVarAxiosArgs = await localVarAxiosParamCreator.emptyTrash(options);
  6801. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6802. },
  6803. /**
  6804. * Get all AssetEntity belong to the user
  6805. * @param {string} [userId]
  6806. * @param {boolean} [isFavorite]
  6807. * @param {boolean} [isArchived]
  6808. * @param {number} [skip]
  6809. * @param {string} [updatedAfter]
  6810. * @param {string} [ifNoneMatch] ETag of data already cached on the client
  6811. * @param {*} [options] Override http request option.
  6812. * @throws {RequiredError}
  6813. */
  6814. async getAllAssets(userId?: string, isFavorite?: boolean, isArchived?: boolean, skip?: number, updatedAfter?: string, ifNoneMatch?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetResponseDto>>> {
  6815. const localVarAxiosArgs = await localVarAxiosParamCreator.getAllAssets(userId, isFavorite, isArchived, skip, updatedAfter, ifNoneMatch, options);
  6816. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6817. },
  6818. /**
  6819. * Get a single asset\'s information
  6820. * @param {string} id
  6821. * @param {string} [key]
  6822. * @param {*} [options] Override http request option.
  6823. * @throws {RequiredError}
  6824. */
  6825. async getAssetById(id: string, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AssetResponseDto>> {
  6826. const localVarAxiosArgs = await localVarAxiosParamCreator.getAssetById(id, key, options);
  6827. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6828. },
  6829. /**
  6830. *
  6831. * @param {*} [options] Override http request option.
  6832. * @throws {RequiredError}
  6833. */
  6834. async getAssetSearchTerms(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<string>>> {
  6835. const localVarAxiosArgs = await localVarAxiosParamCreator.getAssetSearchTerms(options);
  6836. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6837. },
  6838. /**
  6839. *
  6840. * @param {boolean} [isArchived]
  6841. * @param {boolean} [isFavorite]
  6842. * @param {boolean} [isTrashed]
  6843. * @param {*} [options] Override http request option.
  6844. * @throws {RequiredError}
  6845. */
  6846. async getAssetStats(isArchived?: boolean, isFavorite?: boolean, isTrashed?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AssetStatsResponseDto>> {
  6847. const localVarAxiosArgs = await localVarAxiosParamCreator.getAssetStats(isArchived, isFavorite, isTrashed, options);
  6848. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6849. },
  6850. /**
  6851. *
  6852. * @param {string} id
  6853. * @param {ThumbnailFormat} [format]
  6854. * @param {string} [key]
  6855. * @param {*} [options] Override http request option.
  6856. * @throws {RequiredError}
  6857. */
  6858. async getAssetThumbnail(id: string, format?: ThumbnailFormat, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>> {
  6859. const localVarAxiosArgs = await localVarAxiosParamCreator.getAssetThumbnail(id, format, key, options);
  6860. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6861. },
  6862. /**
  6863. *
  6864. * @param {TimeBucketSize} size
  6865. * @param {string} timeBucket
  6866. * @param {string} [userId]
  6867. * @param {string} [albumId]
  6868. * @param {string} [personId]
  6869. * @param {boolean} [isArchived]
  6870. * @param {boolean} [isFavorite]
  6871. * @param {boolean} [isTrashed]
  6872. * @param {boolean} [withStacked]
  6873. * @param {string} [key]
  6874. * @param {*} [options] Override http request option.
  6875. * @throws {RequiredError}
  6876. */
  6877. async getByTimeBucket(size: TimeBucketSize, timeBucket: string, userId?: string, albumId?: string, personId?: string, isArchived?: boolean, isFavorite?: boolean, isTrashed?: boolean, withStacked?: boolean, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetResponseDto>>> {
  6878. const localVarAxiosArgs = await localVarAxiosParamCreator.getByTimeBucket(size, timeBucket, userId, albumId, personId, isArchived, isFavorite, isTrashed, withStacked, key, options);
  6879. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6880. },
  6881. /**
  6882. *
  6883. * @param {*} [options] Override http request option.
  6884. * @throws {RequiredError}
  6885. */
  6886. async getCuratedLocations(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<CuratedLocationsResponseDto>>> {
  6887. const localVarAxiosArgs = await localVarAxiosParamCreator.getCuratedLocations(options);
  6888. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6889. },
  6890. /**
  6891. *
  6892. * @param {*} [options] Override http request option.
  6893. * @throws {RequiredError}
  6894. */
  6895. async getCuratedObjects(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<CuratedObjectsResponseDto>>> {
  6896. const localVarAxiosArgs = await localVarAxiosParamCreator.getCuratedObjects(options);
  6897. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6898. },
  6899. /**
  6900. *
  6901. * @param {DownloadInfoDto} downloadInfoDto
  6902. * @param {string} [key]
  6903. * @param {*} [options] Override http request option.
  6904. * @throws {RequiredError}
  6905. */
  6906. async getDownloadInfo(downloadInfoDto: DownloadInfoDto, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DownloadResponseDto>> {
  6907. const localVarAxiosArgs = await localVarAxiosParamCreator.getDownloadInfo(downloadInfoDto, key, options);
  6908. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6909. },
  6910. /**
  6911. *
  6912. * @param {boolean} [isArchived]
  6913. * @param {boolean} [isFavorite]
  6914. * @param {string} [fileCreatedAfter]
  6915. * @param {string} [fileCreatedBefore]
  6916. * @param {*} [options] Override http request option.
  6917. * @throws {RequiredError}
  6918. */
  6919. async getMapMarkers(isArchived?: boolean, isFavorite?: boolean, fileCreatedAfter?: string, fileCreatedBefore?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<MapMarkerResponseDto>>> {
  6920. const localVarAxiosArgs = await localVarAxiosParamCreator.getMapMarkers(isArchived, isFavorite, fileCreatedAfter, fileCreatedBefore, options);
  6921. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6922. },
  6923. /**
  6924. *
  6925. * @param {number} day
  6926. * @param {number} month
  6927. * @param {*} [options] Override http request option.
  6928. * @throws {RequiredError}
  6929. */
  6930. async getMemoryLane(day: number, month: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<MemoryLaneResponseDto>>> {
  6931. const localVarAxiosArgs = await localVarAxiosParamCreator.getMemoryLane(day, month, options);
  6932. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6933. },
  6934. /**
  6935. *
  6936. * @param {number} [count]
  6937. * @param {*} [options] Override http request option.
  6938. * @throws {RequiredError}
  6939. */
  6940. async getRandom(count?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetResponseDto>>> {
  6941. const localVarAxiosArgs = await localVarAxiosParamCreator.getRandom(count, options);
  6942. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6943. },
  6944. /**
  6945. *
  6946. * @param {TimeBucketSize} size
  6947. * @param {string} [userId]
  6948. * @param {string} [albumId]
  6949. * @param {string} [personId]
  6950. * @param {boolean} [isArchived]
  6951. * @param {boolean} [isFavorite]
  6952. * @param {boolean} [isTrashed]
  6953. * @param {boolean} [withStacked]
  6954. * @param {string} [key]
  6955. * @param {*} [options] Override http request option.
  6956. * @throws {RequiredError}
  6957. */
  6958. async getTimeBuckets(size: TimeBucketSize, userId?: string, albumId?: string, personId?: string, isArchived?: boolean, isFavorite?: boolean, isTrashed?: boolean, withStacked?: boolean, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<TimeBucketResponseDto>>> {
  6959. const localVarAxiosArgs = await localVarAxiosParamCreator.getTimeBuckets(size, userId, albumId, personId, isArchived, isFavorite, isTrashed, withStacked, key, options);
  6960. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6961. },
  6962. /**
  6963. * Get all asset of a device that are in the database, ID only.
  6964. * @param {string} deviceId
  6965. * @param {*} [options] Override http request option.
  6966. * @throws {RequiredError}
  6967. */
  6968. async getUserAssetsByDeviceId(deviceId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<string>>> {
  6969. const localVarAxiosArgs = await localVarAxiosParamCreator.getUserAssetsByDeviceId(deviceId, options);
  6970. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6971. },
  6972. /**
  6973. *
  6974. * @param {ImportAssetDto} importAssetDto
  6975. * @param {*} [options] Override http request option.
  6976. * @throws {RequiredError}
  6977. */
  6978. async importFile(importAssetDto: ImportAssetDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AssetFileUploadResponseDto>> {
  6979. const localVarAxiosArgs = await localVarAxiosParamCreator.importFile(importAssetDto, options);
  6980. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6981. },
  6982. /**
  6983. *
  6984. * @param {BulkIdsDto} bulkIdsDto
  6985. * @param {*} [options] Override http request option.
  6986. * @throws {RequiredError}
  6987. */
  6988. async restoreAssets(bulkIdsDto: BulkIdsDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  6989. const localVarAxiosArgs = await localVarAxiosParamCreator.restoreAssets(bulkIdsDto, options);
  6990. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6991. },
  6992. /**
  6993. *
  6994. * @param {*} [options] Override http request option.
  6995. * @throws {RequiredError}
  6996. */
  6997. async restoreTrash(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  6998. const localVarAxiosArgs = await localVarAxiosParamCreator.restoreTrash(options);
  6999. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7000. },
  7001. /**
  7002. *
  7003. * @param {AssetJobsDto} assetJobsDto
  7004. * @param {*} [options] Override http request option.
  7005. * @throws {RequiredError}
  7006. */
  7007. async runAssetJobs(assetJobsDto: AssetJobsDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  7008. const localVarAxiosArgs = await localVarAxiosParamCreator.runAssetJobs(assetJobsDto, options);
  7009. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7010. },
  7011. /**
  7012. *
  7013. * @param {SearchAssetDto} searchAssetDto
  7014. * @param {*} [options] Override http request option.
  7015. * @throws {RequiredError}
  7016. */
  7017. async searchAsset(searchAssetDto: SearchAssetDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetResponseDto>>> {
  7018. const localVarAxiosArgs = await localVarAxiosParamCreator.searchAsset(searchAssetDto, options);
  7019. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7020. },
  7021. /**
  7022. *
  7023. * @param {string} id
  7024. * @param {boolean} [isThumb]
  7025. * @param {boolean} [isWeb]
  7026. * @param {string} [key]
  7027. * @param {*} [options] Override http request option.
  7028. * @throws {RequiredError}
  7029. */
  7030. async serveFile(id: string, isThumb?: boolean, isWeb?: boolean, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>> {
  7031. const localVarAxiosArgs = await localVarAxiosParamCreator.serveFile(id, isThumb, isWeb, key, options);
  7032. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7033. },
  7034. /**
  7035. *
  7036. * @param {string} id
  7037. * @param {UpdateAssetDto} updateAssetDto
  7038. * @param {*} [options] Override http request option.
  7039. * @throws {RequiredError}
  7040. */
  7041. async updateAsset(id: string, updateAssetDto: UpdateAssetDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AssetResponseDto>> {
  7042. const localVarAxiosArgs = await localVarAxiosParamCreator.updateAsset(id, updateAssetDto, options);
  7043. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7044. },
  7045. /**
  7046. *
  7047. * @param {AssetBulkUpdateDto} assetBulkUpdateDto
  7048. * @param {*} [options] Override http request option.
  7049. * @throws {RequiredError}
  7050. */
  7051. async updateAssets(assetBulkUpdateDto: AssetBulkUpdateDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  7052. const localVarAxiosArgs = await localVarAxiosParamCreator.updateAssets(assetBulkUpdateDto, options);
  7053. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7054. },
  7055. /**
  7056. *
  7057. * @param {UpdateStackParentDto} updateStackParentDto
  7058. * @param {*} [options] Override http request option.
  7059. * @throws {RequiredError}
  7060. */
  7061. async updateStackParent(updateStackParentDto: UpdateStackParentDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  7062. const localVarAxiosArgs = await localVarAxiosParamCreator.updateStackParent(updateStackParentDto, options);
  7063. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7064. },
  7065. /**
  7066. *
  7067. * @param {File} assetData
  7068. * @param {string} deviceAssetId
  7069. * @param {string} deviceId
  7070. * @param {string} fileCreatedAt
  7071. * @param {string} fileModifiedAt
  7072. * @param {boolean} isFavorite
  7073. * @param {string} [key]
  7074. * @param {string} [duration]
  7075. * @param {boolean} [isArchived]
  7076. * @param {boolean} [isExternal]
  7077. * @param {boolean} [isOffline]
  7078. * @param {boolean} [isReadOnly]
  7079. * @param {boolean} [isVisible]
  7080. * @param {string} [libraryId]
  7081. * @param {File} [livePhotoData]
  7082. * @param {File} [sidecarData]
  7083. * @param {*} [options] Override http request option.
  7084. * @throws {RequiredError}
  7085. */
  7086. async uploadFile(assetData: File, deviceAssetId: string, deviceId: string, fileCreatedAt: string, fileModifiedAt: string, isFavorite: boolean, key?: string, duration?: string, isArchived?: boolean, isExternal?: boolean, isOffline?: boolean, isReadOnly?: boolean, isVisible?: boolean, libraryId?: string, livePhotoData?: File, sidecarData?: File, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AssetFileUploadResponseDto>> {
  7087. const localVarAxiosArgs = await localVarAxiosParamCreator.uploadFile(assetData, deviceAssetId, deviceId, fileCreatedAt, fileModifiedAt, isFavorite, key, duration, isArchived, isExternal, isOffline, isReadOnly, isVisible, libraryId, livePhotoData, sidecarData, options);
  7088. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7089. },
  7090. }
  7091. };
  7092. /**
  7093. * AssetApi - factory interface
  7094. * @export
  7095. */
  7096. export const AssetApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  7097. const localVarFp = AssetApiFp(configuration)
  7098. return {
  7099. /**
  7100. * Checks if assets exist by checksums
  7101. * @param {AssetApiBulkUploadCheckRequest} requestParameters Request parameters.
  7102. * @param {*} [options] Override http request option.
  7103. * @throws {RequiredError}
  7104. */
  7105. bulkUploadCheck(requestParameters: AssetApiBulkUploadCheckRequest, options?: AxiosRequestConfig): AxiosPromise<AssetBulkUploadCheckResponseDto> {
  7106. return localVarFp.bulkUploadCheck(requestParameters.assetBulkUploadCheckDto, options).then((request) => request(axios, basePath));
  7107. },
  7108. /**
  7109. * Checks if multiple assets exist on the server and returns all existing - used by background backup
  7110. * @param {AssetApiCheckExistingAssetsRequest} requestParameters Request parameters.
  7111. * @param {*} [options] Override http request option.
  7112. * @throws {RequiredError}
  7113. */
  7114. checkExistingAssets(requestParameters: AssetApiCheckExistingAssetsRequest, options?: AxiosRequestConfig): AxiosPromise<CheckExistingAssetsResponseDto> {
  7115. return localVarFp.checkExistingAssets(requestParameters.checkExistingAssetsDto, options).then((request) => request(axios, basePath));
  7116. },
  7117. /**
  7118. *
  7119. * @param {AssetApiDeleteAssetsRequest} requestParameters Request parameters.
  7120. * @param {*} [options] Override http request option.
  7121. * @throws {RequiredError}
  7122. */
  7123. deleteAssets(requestParameters: AssetApiDeleteAssetsRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  7124. return localVarFp.deleteAssets(requestParameters.assetBulkDeleteDto, options).then((request) => request(axios, basePath));
  7125. },
  7126. /**
  7127. *
  7128. * @param {AssetApiDownloadArchiveRequest} requestParameters Request parameters.
  7129. * @param {*} [options] Override http request option.
  7130. * @throws {RequiredError}
  7131. */
  7132. downloadArchive(requestParameters: AssetApiDownloadArchiveRequest, options?: AxiosRequestConfig): AxiosPromise<File> {
  7133. return localVarFp.downloadArchive(requestParameters.assetIdsDto, requestParameters.key, options).then((request) => request(axios, basePath));
  7134. },
  7135. /**
  7136. *
  7137. * @param {AssetApiDownloadFileRequest} requestParameters Request parameters.
  7138. * @param {*} [options] Override http request option.
  7139. * @throws {RequiredError}
  7140. */
  7141. downloadFile(requestParameters: AssetApiDownloadFileRequest, options?: AxiosRequestConfig): AxiosPromise<File> {
  7142. return localVarFp.downloadFile(requestParameters.id, requestParameters.key, options).then((request) => request(axios, basePath));
  7143. },
  7144. /**
  7145. *
  7146. * @param {*} [options] Override http request option.
  7147. * @throws {RequiredError}
  7148. */
  7149. emptyTrash(options?: AxiosRequestConfig): AxiosPromise<void> {
  7150. return localVarFp.emptyTrash(options).then((request) => request(axios, basePath));
  7151. },
  7152. /**
  7153. * Get all AssetEntity belong to the user
  7154. * @param {AssetApiGetAllAssetsRequest} requestParameters Request parameters.
  7155. * @param {*} [options] Override http request option.
  7156. * @throws {RequiredError}
  7157. */
  7158. getAllAssets(requestParameters: AssetApiGetAllAssetsRequest = {}, options?: AxiosRequestConfig): AxiosPromise<Array<AssetResponseDto>> {
  7159. return localVarFp.getAllAssets(requestParameters.userId, requestParameters.isFavorite, requestParameters.isArchived, requestParameters.skip, requestParameters.updatedAfter, requestParameters.ifNoneMatch, options).then((request) => request(axios, basePath));
  7160. },
  7161. /**
  7162. * Get a single asset\'s information
  7163. * @param {AssetApiGetAssetByIdRequest} requestParameters Request parameters.
  7164. * @param {*} [options] Override http request option.
  7165. * @throws {RequiredError}
  7166. */
  7167. getAssetById(requestParameters: AssetApiGetAssetByIdRequest, options?: AxiosRequestConfig): AxiosPromise<AssetResponseDto> {
  7168. return localVarFp.getAssetById(requestParameters.id, requestParameters.key, options).then((request) => request(axios, basePath));
  7169. },
  7170. /**
  7171. *
  7172. * @param {*} [options] Override http request option.
  7173. * @throws {RequiredError}
  7174. */
  7175. getAssetSearchTerms(options?: AxiosRequestConfig): AxiosPromise<Array<string>> {
  7176. return localVarFp.getAssetSearchTerms(options).then((request) => request(axios, basePath));
  7177. },
  7178. /**
  7179. *
  7180. * @param {AssetApiGetAssetStatsRequest} requestParameters Request parameters.
  7181. * @param {*} [options] Override http request option.
  7182. * @throws {RequiredError}
  7183. */
  7184. getAssetStats(requestParameters: AssetApiGetAssetStatsRequest = {}, options?: AxiosRequestConfig): AxiosPromise<AssetStatsResponseDto> {
  7185. return localVarFp.getAssetStats(requestParameters.isArchived, requestParameters.isFavorite, requestParameters.isTrashed, options).then((request) => request(axios, basePath));
  7186. },
  7187. /**
  7188. *
  7189. * @param {AssetApiGetAssetThumbnailRequest} requestParameters Request parameters.
  7190. * @param {*} [options] Override http request option.
  7191. * @throws {RequiredError}
  7192. */
  7193. getAssetThumbnail(requestParameters: AssetApiGetAssetThumbnailRequest, options?: AxiosRequestConfig): AxiosPromise<File> {
  7194. return localVarFp.getAssetThumbnail(requestParameters.id, requestParameters.format, requestParameters.key, options).then((request) => request(axios, basePath));
  7195. },
  7196. /**
  7197. *
  7198. * @param {AssetApiGetByTimeBucketRequest} requestParameters Request parameters.
  7199. * @param {*} [options] Override http request option.
  7200. * @throws {RequiredError}
  7201. */
  7202. getByTimeBucket(requestParameters: AssetApiGetByTimeBucketRequest, options?: AxiosRequestConfig): AxiosPromise<Array<AssetResponseDto>> {
  7203. return localVarFp.getByTimeBucket(requestParameters.size, requestParameters.timeBucket, requestParameters.userId, requestParameters.albumId, requestParameters.personId, requestParameters.isArchived, requestParameters.isFavorite, requestParameters.isTrashed, requestParameters.withStacked, requestParameters.key, options).then((request) => request(axios, basePath));
  7204. },
  7205. /**
  7206. *
  7207. * @param {*} [options] Override http request option.
  7208. * @throws {RequiredError}
  7209. */
  7210. getCuratedLocations(options?: AxiosRequestConfig): AxiosPromise<Array<CuratedLocationsResponseDto>> {
  7211. return localVarFp.getCuratedLocations(options).then((request) => request(axios, basePath));
  7212. },
  7213. /**
  7214. *
  7215. * @param {*} [options] Override http request option.
  7216. * @throws {RequiredError}
  7217. */
  7218. getCuratedObjects(options?: AxiosRequestConfig): AxiosPromise<Array<CuratedObjectsResponseDto>> {
  7219. return localVarFp.getCuratedObjects(options).then((request) => request(axios, basePath));
  7220. },
  7221. /**
  7222. *
  7223. * @param {AssetApiGetDownloadInfoRequest} requestParameters Request parameters.
  7224. * @param {*} [options] Override http request option.
  7225. * @throws {RequiredError}
  7226. */
  7227. getDownloadInfo(requestParameters: AssetApiGetDownloadInfoRequest, options?: AxiosRequestConfig): AxiosPromise<DownloadResponseDto> {
  7228. return localVarFp.getDownloadInfo(requestParameters.downloadInfoDto, requestParameters.key, options).then((request) => request(axios, basePath));
  7229. },
  7230. /**
  7231. *
  7232. * @param {AssetApiGetMapMarkersRequest} requestParameters Request parameters.
  7233. * @param {*} [options] Override http request option.
  7234. * @throws {RequiredError}
  7235. */
  7236. getMapMarkers(requestParameters: AssetApiGetMapMarkersRequest = {}, options?: AxiosRequestConfig): AxiosPromise<Array<MapMarkerResponseDto>> {
  7237. return localVarFp.getMapMarkers(requestParameters.isArchived, requestParameters.isFavorite, requestParameters.fileCreatedAfter, requestParameters.fileCreatedBefore, options).then((request) => request(axios, basePath));
  7238. },
  7239. /**
  7240. *
  7241. * @param {AssetApiGetMemoryLaneRequest} requestParameters Request parameters.
  7242. * @param {*} [options] Override http request option.
  7243. * @throws {RequiredError}
  7244. */
  7245. getMemoryLane(requestParameters: AssetApiGetMemoryLaneRequest, options?: AxiosRequestConfig): AxiosPromise<Array<MemoryLaneResponseDto>> {
  7246. return localVarFp.getMemoryLane(requestParameters.day, requestParameters.month, options).then((request) => request(axios, basePath));
  7247. },
  7248. /**
  7249. *
  7250. * @param {AssetApiGetRandomRequest} requestParameters Request parameters.
  7251. * @param {*} [options] Override http request option.
  7252. * @throws {RequiredError}
  7253. */
  7254. getRandom(requestParameters: AssetApiGetRandomRequest = {}, options?: AxiosRequestConfig): AxiosPromise<Array<AssetResponseDto>> {
  7255. return localVarFp.getRandom(requestParameters.count, options).then((request) => request(axios, basePath));
  7256. },
  7257. /**
  7258. *
  7259. * @param {AssetApiGetTimeBucketsRequest} requestParameters Request parameters.
  7260. * @param {*} [options] Override http request option.
  7261. * @throws {RequiredError}
  7262. */
  7263. getTimeBuckets(requestParameters: AssetApiGetTimeBucketsRequest, options?: AxiosRequestConfig): AxiosPromise<Array<TimeBucketResponseDto>> {
  7264. return localVarFp.getTimeBuckets(requestParameters.size, requestParameters.userId, requestParameters.albumId, requestParameters.personId, requestParameters.isArchived, requestParameters.isFavorite, requestParameters.isTrashed, requestParameters.withStacked, requestParameters.key, options).then((request) => request(axios, basePath));
  7265. },
  7266. /**
  7267. * Get all asset of a device that are in the database, ID only.
  7268. * @param {AssetApiGetUserAssetsByDeviceIdRequest} requestParameters Request parameters.
  7269. * @param {*} [options] Override http request option.
  7270. * @throws {RequiredError}
  7271. */
  7272. getUserAssetsByDeviceId(requestParameters: AssetApiGetUserAssetsByDeviceIdRequest, options?: AxiosRequestConfig): AxiosPromise<Array<string>> {
  7273. return localVarFp.getUserAssetsByDeviceId(requestParameters.deviceId, options).then((request) => request(axios, basePath));
  7274. },
  7275. /**
  7276. *
  7277. * @param {AssetApiImportFileRequest} requestParameters Request parameters.
  7278. * @param {*} [options] Override http request option.
  7279. * @throws {RequiredError}
  7280. */
  7281. importFile(requestParameters: AssetApiImportFileRequest, options?: AxiosRequestConfig): AxiosPromise<AssetFileUploadResponseDto> {
  7282. return localVarFp.importFile(requestParameters.importAssetDto, options).then((request) => request(axios, basePath));
  7283. },
  7284. /**
  7285. *
  7286. * @param {AssetApiRestoreAssetsRequest} requestParameters Request parameters.
  7287. * @param {*} [options] Override http request option.
  7288. * @throws {RequiredError}
  7289. */
  7290. restoreAssets(requestParameters: AssetApiRestoreAssetsRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  7291. return localVarFp.restoreAssets(requestParameters.bulkIdsDto, options).then((request) => request(axios, basePath));
  7292. },
  7293. /**
  7294. *
  7295. * @param {*} [options] Override http request option.
  7296. * @throws {RequiredError}
  7297. */
  7298. restoreTrash(options?: AxiosRequestConfig): AxiosPromise<void> {
  7299. return localVarFp.restoreTrash(options).then((request) => request(axios, basePath));
  7300. },
  7301. /**
  7302. *
  7303. * @param {AssetApiRunAssetJobsRequest} requestParameters Request parameters.
  7304. * @param {*} [options] Override http request option.
  7305. * @throws {RequiredError}
  7306. */
  7307. runAssetJobs(requestParameters: AssetApiRunAssetJobsRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  7308. return localVarFp.runAssetJobs(requestParameters.assetJobsDto, options).then((request) => request(axios, basePath));
  7309. },
  7310. /**
  7311. *
  7312. * @param {AssetApiSearchAssetRequest} requestParameters Request parameters.
  7313. * @param {*} [options] Override http request option.
  7314. * @throws {RequiredError}
  7315. */
  7316. searchAsset(requestParameters: AssetApiSearchAssetRequest, options?: AxiosRequestConfig): AxiosPromise<Array<AssetResponseDto>> {
  7317. return localVarFp.searchAsset(requestParameters.searchAssetDto, options).then((request) => request(axios, basePath));
  7318. },
  7319. /**
  7320. *
  7321. * @param {AssetApiServeFileRequest} requestParameters Request parameters.
  7322. * @param {*} [options] Override http request option.
  7323. * @throws {RequiredError}
  7324. */
  7325. serveFile(requestParameters: AssetApiServeFileRequest, options?: AxiosRequestConfig): AxiosPromise<File> {
  7326. return localVarFp.serveFile(requestParameters.id, requestParameters.isThumb, requestParameters.isWeb, requestParameters.key, options).then((request) => request(axios, basePath));
  7327. },
  7328. /**
  7329. *
  7330. * @param {AssetApiUpdateAssetRequest} requestParameters Request parameters.
  7331. * @param {*} [options] Override http request option.
  7332. * @throws {RequiredError}
  7333. */
  7334. updateAsset(requestParameters: AssetApiUpdateAssetRequest, options?: AxiosRequestConfig): AxiosPromise<AssetResponseDto> {
  7335. return localVarFp.updateAsset(requestParameters.id, requestParameters.updateAssetDto, options).then((request) => request(axios, basePath));
  7336. },
  7337. /**
  7338. *
  7339. * @param {AssetApiUpdateAssetsRequest} requestParameters Request parameters.
  7340. * @param {*} [options] Override http request option.
  7341. * @throws {RequiredError}
  7342. */
  7343. updateAssets(requestParameters: AssetApiUpdateAssetsRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  7344. return localVarFp.updateAssets(requestParameters.assetBulkUpdateDto, options).then((request) => request(axios, basePath));
  7345. },
  7346. /**
  7347. *
  7348. * @param {AssetApiUpdateStackParentRequest} requestParameters Request parameters.
  7349. * @param {*} [options] Override http request option.
  7350. * @throws {RequiredError}
  7351. */
  7352. updateStackParent(requestParameters: AssetApiUpdateStackParentRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  7353. return localVarFp.updateStackParent(requestParameters.updateStackParentDto, options).then((request) => request(axios, basePath));
  7354. },
  7355. /**
  7356. *
  7357. * @param {AssetApiUploadFileRequest} requestParameters Request parameters.
  7358. * @param {*} [options] Override http request option.
  7359. * @throws {RequiredError}
  7360. */
  7361. uploadFile(requestParameters: AssetApiUploadFileRequest, options?: AxiosRequestConfig): AxiosPromise<AssetFileUploadResponseDto> {
  7362. return localVarFp.uploadFile(requestParameters.assetData, requestParameters.deviceAssetId, requestParameters.deviceId, requestParameters.fileCreatedAt, requestParameters.fileModifiedAt, requestParameters.isFavorite, requestParameters.key, requestParameters.duration, requestParameters.isArchived, requestParameters.isExternal, requestParameters.isOffline, requestParameters.isReadOnly, requestParameters.isVisible, requestParameters.libraryId, requestParameters.livePhotoData, requestParameters.sidecarData, options).then((request) => request(axios, basePath));
  7363. },
  7364. };
  7365. };
  7366. /**
  7367. * Request parameters for bulkUploadCheck operation in AssetApi.
  7368. * @export
  7369. * @interface AssetApiBulkUploadCheckRequest
  7370. */
  7371. export interface AssetApiBulkUploadCheckRequest {
  7372. /**
  7373. *
  7374. * @type {AssetBulkUploadCheckDto}
  7375. * @memberof AssetApiBulkUploadCheck
  7376. */
  7377. readonly assetBulkUploadCheckDto: AssetBulkUploadCheckDto
  7378. }
  7379. /**
  7380. * Request parameters for checkExistingAssets operation in AssetApi.
  7381. * @export
  7382. * @interface AssetApiCheckExistingAssetsRequest
  7383. */
  7384. export interface AssetApiCheckExistingAssetsRequest {
  7385. /**
  7386. *
  7387. * @type {CheckExistingAssetsDto}
  7388. * @memberof AssetApiCheckExistingAssets
  7389. */
  7390. readonly checkExistingAssetsDto: CheckExistingAssetsDto
  7391. }
  7392. /**
  7393. * Request parameters for deleteAssets operation in AssetApi.
  7394. * @export
  7395. * @interface AssetApiDeleteAssetsRequest
  7396. */
  7397. export interface AssetApiDeleteAssetsRequest {
  7398. /**
  7399. *
  7400. * @type {AssetBulkDeleteDto}
  7401. * @memberof AssetApiDeleteAssets
  7402. */
  7403. readonly assetBulkDeleteDto: AssetBulkDeleteDto
  7404. }
  7405. /**
  7406. * Request parameters for downloadArchive operation in AssetApi.
  7407. * @export
  7408. * @interface AssetApiDownloadArchiveRequest
  7409. */
  7410. export interface AssetApiDownloadArchiveRequest {
  7411. /**
  7412. *
  7413. * @type {AssetIdsDto}
  7414. * @memberof AssetApiDownloadArchive
  7415. */
  7416. readonly assetIdsDto: AssetIdsDto
  7417. /**
  7418. *
  7419. * @type {string}
  7420. * @memberof AssetApiDownloadArchive
  7421. */
  7422. readonly key?: string
  7423. }
  7424. /**
  7425. * Request parameters for downloadFile operation in AssetApi.
  7426. * @export
  7427. * @interface AssetApiDownloadFileRequest
  7428. */
  7429. export interface AssetApiDownloadFileRequest {
  7430. /**
  7431. *
  7432. * @type {string}
  7433. * @memberof AssetApiDownloadFile
  7434. */
  7435. readonly id: string
  7436. /**
  7437. *
  7438. * @type {string}
  7439. * @memberof AssetApiDownloadFile
  7440. */
  7441. readonly key?: string
  7442. }
  7443. /**
  7444. * Request parameters for getAllAssets operation in AssetApi.
  7445. * @export
  7446. * @interface AssetApiGetAllAssetsRequest
  7447. */
  7448. export interface AssetApiGetAllAssetsRequest {
  7449. /**
  7450. *
  7451. * @type {string}
  7452. * @memberof AssetApiGetAllAssets
  7453. */
  7454. readonly userId?: string
  7455. /**
  7456. *
  7457. * @type {boolean}
  7458. * @memberof AssetApiGetAllAssets
  7459. */
  7460. readonly isFavorite?: boolean
  7461. /**
  7462. *
  7463. * @type {boolean}
  7464. * @memberof AssetApiGetAllAssets
  7465. */
  7466. readonly isArchived?: boolean
  7467. /**
  7468. *
  7469. * @type {number}
  7470. * @memberof AssetApiGetAllAssets
  7471. */
  7472. readonly skip?: number
  7473. /**
  7474. *
  7475. * @type {string}
  7476. * @memberof AssetApiGetAllAssets
  7477. */
  7478. readonly updatedAfter?: string
  7479. /**
  7480. * ETag of data already cached on the client
  7481. * @type {string}
  7482. * @memberof AssetApiGetAllAssets
  7483. */
  7484. readonly ifNoneMatch?: string
  7485. }
  7486. /**
  7487. * Request parameters for getAssetById operation in AssetApi.
  7488. * @export
  7489. * @interface AssetApiGetAssetByIdRequest
  7490. */
  7491. export interface AssetApiGetAssetByIdRequest {
  7492. /**
  7493. *
  7494. * @type {string}
  7495. * @memberof AssetApiGetAssetById
  7496. */
  7497. readonly id: string
  7498. /**
  7499. *
  7500. * @type {string}
  7501. * @memberof AssetApiGetAssetById
  7502. */
  7503. readonly key?: string
  7504. }
  7505. /**
  7506. * Request parameters for getAssetStats operation in AssetApi.
  7507. * @export
  7508. * @interface AssetApiGetAssetStatsRequest
  7509. */
  7510. export interface AssetApiGetAssetStatsRequest {
  7511. /**
  7512. *
  7513. * @type {boolean}
  7514. * @memberof AssetApiGetAssetStats
  7515. */
  7516. readonly isArchived?: boolean
  7517. /**
  7518. *
  7519. * @type {boolean}
  7520. * @memberof AssetApiGetAssetStats
  7521. */
  7522. readonly isFavorite?: boolean
  7523. /**
  7524. *
  7525. * @type {boolean}
  7526. * @memberof AssetApiGetAssetStats
  7527. */
  7528. readonly isTrashed?: boolean
  7529. }
  7530. /**
  7531. * Request parameters for getAssetThumbnail operation in AssetApi.
  7532. * @export
  7533. * @interface AssetApiGetAssetThumbnailRequest
  7534. */
  7535. export interface AssetApiGetAssetThumbnailRequest {
  7536. /**
  7537. *
  7538. * @type {string}
  7539. * @memberof AssetApiGetAssetThumbnail
  7540. */
  7541. readonly id: string
  7542. /**
  7543. *
  7544. * @type {ThumbnailFormat}
  7545. * @memberof AssetApiGetAssetThumbnail
  7546. */
  7547. readonly format?: ThumbnailFormat
  7548. /**
  7549. *
  7550. * @type {string}
  7551. * @memberof AssetApiGetAssetThumbnail
  7552. */
  7553. readonly key?: string
  7554. }
  7555. /**
  7556. * Request parameters for getByTimeBucket operation in AssetApi.
  7557. * @export
  7558. * @interface AssetApiGetByTimeBucketRequest
  7559. */
  7560. export interface AssetApiGetByTimeBucketRequest {
  7561. /**
  7562. *
  7563. * @type {TimeBucketSize}
  7564. * @memberof AssetApiGetByTimeBucket
  7565. */
  7566. readonly size: TimeBucketSize
  7567. /**
  7568. *
  7569. * @type {string}
  7570. * @memberof AssetApiGetByTimeBucket
  7571. */
  7572. readonly timeBucket: string
  7573. /**
  7574. *
  7575. * @type {string}
  7576. * @memberof AssetApiGetByTimeBucket
  7577. */
  7578. readonly userId?: string
  7579. /**
  7580. *
  7581. * @type {string}
  7582. * @memberof AssetApiGetByTimeBucket
  7583. */
  7584. readonly albumId?: string
  7585. /**
  7586. *
  7587. * @type {string}
  7588. * @memberof AssetApiGetByTimeBucket
  7589. */
  7590. readonly personId?: string
  7591. /**
  7592. *
  7593. * @type {boolean}
  7594. * @memberof AssetApiGetByTimeBucket
  7595. */
  7596. readonly isArchived?: boolean
  7597. /**
  7598. *
  7599. * @type {boolean}
  7600. * @memberof AssetApiGetByTimeBucket
  7601. */
  7602. readonly isFavorite?: boolean
  7603. /**
  7604. *
  7605. * @type {boolean}
  7606. * @memberof AssetApiGetByTimeBucket
  7607. */
  7608. readonly isTrashed?: boolean
  7609. /**
  7610. *
  7611. * @type {boolean}
  7612. * @memberof AssetApiGetByTimeBucket
  7613. */
  7614. readonly withStacked?: boolean
  7615. /**
  7616. *
  7617. * @type {string}
  7618. * @memberof AssetApiGetByTimeBucket
  7619. */
  7620. readonly key?: string
  7621. }
  7622. /**
  7623. * Request parameters for getDownloadInfo operation in AssetApi.
  7624. * @export
  7625. * @interface AssetApiGetDownloadInfoRequest
  7626. */
  7627. export interface AssetApiGetDownloadInfoRequest {
  7628. /**
  7629. *
  7630. * @type {DownloadInfoDto}
  7631. * @memberof AssetApiGetDownloadInfo
  7632. */
  7633. readonly downloadInfoDto: DownloadInfoDto
  7634. /**
  7635. *
  7636. * @type {string}
  7637. * @memberof AssetApiGetDownloadInfo
  7638. */
  7639. readonly key?: string
  7640. }
  7641. /**
  7642. * Request parameters for getMapMarkers operation in AssetApi.
  7643. * @export
  7644. * @interface AssetApiGetMapMarkersRequest
  7645. */
  7646. export interface AssetApiGetMapMarkersRequest {
  7647. /**
  7648. *
  7649. * @type {boolean}
  7650. * @memberof AssetApiGetMapMarkers
  7651. */
  7652. readonly isArchived?: boolean
  7653. /**
  7654. *
  7655. * @type {boolean}
  7656. * @memberof AssetApiGetMapMarkers
  7657. */
  7658. readonly isFavorite?: boolean
  7659. /**
  7660. *
  7661. * @type {string}
  7662. * @memberof AssetApiGetMapMarkers
  7663. */
  7664. readonly fileCreatedAfter?: string
  7665. /**
  7666. *
  7667. * @type {string}
  7668. * @memberof AssetApiGetMapMarkers
  7669. */
  7670. readonly fileCreatedBefore?: string
  7671. }
  7672. /**
  7673. * Request parameters for getMemoryLane operation in AssetApi.
  7674. * @export
  7675. * @interface AssetApiGetMemoryLaneRequest
  7676. */
  7677. export interface AssetApiGetMemoryLaneRequest {
  7678. /**
  7679. *
  7680. * @type {number}
  7681. * @memberof AssetApiGetMemoryLane
  7682. */
  7683. readonly day: number
  7684. /**
  7685. *
  7686. * @type {number}
  7687. * @memberof AssetApiGetMemoryLane
  7688. */
  7689. readonly month: number
  7690. }
  7691. /**
  7692. * Request parameters for getRandom operation in AssetApi.
  7693. * @export
  7694. * @interface AssetApiGetRandomRequest
  7695. */
  7696. export interface AssetApiGetRandomRequest {
  7697. /**
  7698. *
  7699. * @type {number}
  7700. * @memberof AssetApiGetRandom
  7701. */
  7702. readonly count?: number
  7703. }
  7704. /**
  7705. * Request parameters for getTimeBuckets operation in AssetApi.
  7706. * @export
  7707. * @interface AssetApiGetTimeBucketsRequest
  7708. */
  7709. export interface AssetApiGetTimeBucketsRequest {
  7710. /**
  7711. *
  7712. * @type {TimeBucketSize}
  7713. * @memberof AssetApiGetTimeBuckets
  7714. */
  7715. readonly size: TimeBucketSize
  7716. /**
  7717. *
  7718. * @type {string}
  7719. * @memberof AssetApiGetTimeBuckets
  7720. */
  7721. readonly userId?: string
  7722. /**
  7723. *
  7724. * @type {string}
  7725. * @memberof AssetApiGetTimeBuckets
  7726. */
  7727. readonly albumId?: string
  7728. /**
  7729. *
  7730. * @type {string}
  7731. * @memberof AssetApiGetTimeBuckets
  7732. */
  7733. readonly personId?: string
  7734. /**
  7735. *
  7736. * @type {boolean}
  7737. * @memberof AssetApiGetTimeBuckets
  7738. */
  7739. readonly isArchived?: boolean
  7740. /**
  7741. *
  7742. * @type {boolean}
  7743. * @memberof AssetApiGetTimeBuckets
  7744. */
  7745. readonly isFavorite?: boolean
  7746. /**
  7747. *
  7748. * @type {boolean}
  7749. * @memberof AssetApiGetTimeBuckets
  7750. */
  7751. readonly isTrashed?: boolean
  7752. /**
  7753. *
  7754. * @type {boolean}
  7755. * @memberof AssetApiGetTimeBuckets
  7756. */
  7757. readonly withStacked?: boolean
  7758. /**
  7759. *
  7760. * @type {string}
  7761. * @memberof AssetApiGetTimeBuckets
  7762. */
  7763. readonly key?: string
  7764. }
  7765. /**
  7766. * Request parameters for getUserAssetsByDeviceId operation in AssetApi.
  7767. * @export
  7768. * @interface AssetApiGetUserAssetsByDeviceIdRequest
  7769. */
  7770. export interface AssetApiGetUserAssetsByDeviceIdRequest {
  7771. /**
  7772. *
  7773. * @type {string}
  7774. * @memberof AssetApiGetUserAssetsByDeviceId
  7775. */
  7776. readonly deviceId: string
  7777. }
  7778. /**
  7779. * Request parameters for importFile operation in AssetApi.
  7780. * @export
  7781. * @interface AssetApiImportFileRequest
  7782. */
  7783. export interface AssetApiImportFileRequest {
  7784. /**
  7785. *
  7786. * @type {ImportAssetDto}
  7787. * @memberof AssetApiImportFile
  7788. */
  7789. readonly importAssetDto: ImportAssetDto
  7790. }
  7791. /**
  7792. * Request parameters for restoreAssets operation in AssetApi.
  7793. * @export
  7794. * @interface AssetApiRestoreAssetsRequest
  7795. */
  7796. export interface AssetApiRestoreAssetsRequest {
  7797. /**
  7798. *
  7799. * @type {BulkIdsDto}
  7800. * @memberof AssetApiRestoreAssets
  7801. */
  7802. readonly bulkIdsDto: BulkIdsDto
  7803. }
  7804. /**
  7805. * Request parameters for runAssetJobs operation in AssetApi.
  7806. * @export
  7807. * @interface AssetApiRunAssetJobsRequest
  7808. */
  7809. export interface AssetApiRunAssetJobsRequest {
  7810. /**
  7811. *
  7812. * @type {AssetJobsDto}
  7813. * @memberof AssetApiRunAssetJobs
  7814. */
  7815. readonly assetJobsDto: AssetJobsDto
  7816. }
  7817. /**
  7818. * Request parameters for searchAsset operation in AssetApi.
  7819. * @export
  7820. * @interface AssetApiSearchAssetRequest
  7821. */
  7822. export interface AssetApiSearchAssetRequest {
  7823. /**
  7824. *
  7825. * @type {SearchAssetDto}
  7826. * @memberof AssetApiSearchAsset
  7827. */
  7828. readonly searchAssetDto: SearchAssetDto
  7829. }
  7830. /**
  7831. * Request parameters for serveFile operation in AssetApi.
  7832. * @export
  7833. * @interface AssetApiServeFileRequest
  7834. */
  7835. export interface AssetApiServeFileRequest {
  7836. /**
  7837. *
  7838. * @type {string}
  7839. * @memberof AssetApiServeFile
  7840. */
  7841. readonly id: string
  7842. /**
  7843. *
  7844. * @type {boolean}
  7845. * @memberof AssetApiServeFile
  7846. */
  7847. readonly isThumb?: boolean
  7848. /**
  7849. *
  7850. * @type {boolean}
  7851. * @memberof AssetApiServeFile
  7852. */
  7853. readonly isWeb?: boolean
  7854. /**
  7855. *
  7856. * @type {string}
  7857. * @memberof AssetApiServeFile
  7858. */
  7859. readonly key?: string
  7860. }
  7861. /**
  7862. * Request parameters for updateAsset operation in AssetApi.
  7863. * @export
  7864. * @interface AssetApiUpdateAssetRequest
  7865. */
  7866. export interface AssetApiUpdateAssetRequest {
  7867. /**
  7868. *
  7869. * @type {string}
  7870. * @memberof AssetApiUpdateAsset
  7871. */
  7872. readonly id: string
  7873. /**
  7874. *
  7875. * @type {UpdateAssetDto}
  7876. * @memberof AssetApiUpdateAsset
  7877. */
  7878. readonly updateAssetDto: UpdateAssetDto
  7879. }
  7880. /**
  7881. * Request parameters for updateAssets operation in AssetApi.
  7882. * @export
  7883. * @interface AssetApiUpdateAssetsRequest
  7884. */
  7885. export interface AssetApiUpdateAssetsRequest {
  7886. /**
  7887. *
  7888. * @type {AssetBulkUpdateDto}
  7889. * @memberof AssetApiUpdateAssets
  7890. */
  7891. readonly assetBulkUpdateDto: AssetBulkUpdateDto
  7892. }
  7893. /**
  7894. * Request parameters for updateStackParent operation in AssetApi.
  7895. * @export
  7896. * @interface AssetApiUpdateStackParentRequest
  7897. */
  7898. export interface AssetApiUpdateStackParentRequest {
  7899. /**
  7900. *
  7901. * @type {UpdateStackParentDto}
  7902. * @memberof AssetApiUpdateStackParent
  7903. */
  7904. readonly updateStackParentDto: UpdateStackParentDto
  7905. }
  7906. /**
  7907. * Request parameters for uploadFile operation in AssetApi.
  7908. * @export
  7909. * @interface AssetApiUploadFileRequest
  7910. */
  7911. export interface AssetApiUploadFileRequest {
  7912. /**
  7913. *
  7914. * @type {File}
  7915. * @memberof AssetApiUploadFile
  7916. */
  7917. readonly assetData: File
  7918. /**
  7919. *
  7920. * @type {string}
  7921. * @memberof AssetApiUploadFile
  7922. */
  7923. readonly deviceAssetId: string
  7924. /**
  7925. *
  7926. * @type {string}
  7927. * @memberof AssetApiUploadFile
  7928. */
  7929. readonly deviceId: string
  7930. /**
  7931. *
  7932. * @type {string}
  7933. * @memberof AssetApiUploadFile
  7934. */
  7935. readonly fileCreatedAt: string
  7936. /**
  7937. *
  7938. * @type {string}
  7939. * @memberof AssetApiUploadFile
  7940. */
  7941. readonly fileModifiedAt: string
  7942. /**
  7943. *
  7944. * @type {boolean}
  7945. * @memberof AssetApiUploadFile
  7946. */
  7947. readonly isFavorite: boolean
  7948. /**
  7949. *
  7950. * @type {string}
  7951. * @memberof AssetApiUploadFile
  7952. */
  7953. readonly key?: string
  7954. /**
  7955. *
  7956. * @type {string}
  7957. * @memberof AssetApiUploadFile
  7958. */
  7959. readonly duration?: string
  7960. /**
  7961. *
  7962. * @type {boolean}
  7963. * @memberof AssetApiUploadFile
  7964. */
  7965. readonly isArchived?: boolean
  7966. /**
  7967. *
  7968. * @type {boolean}
  7969. * @memberof AssetApiUploadFile
  7970. */
  7971. readonly isExternal?: boolean
  7972. /**
  7973. *
  7974. * @type {boolean}
  7975. * @memberof AssetApiUploadFile
  7976. */
  7977. readonly isOffline?: boolean
  7978. /**
  7979. *
  7980. * @type {boolean}
  7981. * @memberof AssetApiUploadFile
  7982. */
  7983. readonly isReadOnly?: boolean
  7984. /**
  7985. *
  7986. * @type {boolean}
  7987. * @memberof AssetApiUploadFile
  7988. */
  7989. readonly isVisible?: boolean
  7990. /**
  7991. *
  7992. * @type {string}
  7993. * @memberof AssetApiUploadFile
  7994. */
  7995. readonly libraryId?: string
  7996. /**
  7997. *
  7998. * @type {File}
  7999. * @memberof AssetApiUploadFile
  8000. */
  8001. readonly livePhotoData?: File
  8002. /**
  8003. *
  8004. * @type {File}
  8005. * @memberof AssetApiUploadFile
  8006. */
  8007. readonly sidecarData?: File
  8008. }
  8009. /**
  8010. * AssetApi - object-oriented interface
  8011. * @export
  8012. * @class AssetApi
  8013. * @extends {BaseAPI}
  8014. */
  8015. export class AssetApi extends BaseAPI {
  8016. /**
  8017. * Checks if assets exist by checksums
  8018. * @param {AssetApiBulkUploadCheckRequest} requestParameters Request parameters.
  8019. * @param {*} [options] Override http request option.
  8020. * @throws {RequiredError}
  8021. * @memberof AssetApi
  8022. */
  8023. public bulkUploadCheck(requestParameters: AssetApiBulkUploadCheckRequest, options?: AxiosRequestConfig) {
  8024. return AssetApiFp(this.configuration).bulkUploadCheck(requestParameters.assetBulkUploadCheckDto, options).then((request) => request(this.axios, this.basePath));
  8025. }
  8026. /**
  8027. * Checks if multiple assets exist on the server and returns all existing - used by background backup
  8028. * @param {AssetApiCheckExistingAssetsRequest} requestParameters Request parameters.
  8029. * @param {*} [options] Override http request option.
  8030. * @throws {RequiredError}
  8031. * @memberof AssetApi
  8032. */
  8033. public checkExistingAssets(requestParameters: AssetApiCheckExistingAssetsRequest, options?: AxiosRequestConfig) {
  8034. return AssetApiFp(this.configuration).checkExistingAssets(requestParameters.checkExistingAssetsDto, options).then((request) => request(this.axios, this.basePath));
  8035. }
  8036. /**
  8037. *
  8038. * @param {AssetApiDeleteAssetsRequest} requestParameters Request parameters.
  8039. * @param {*} [options] Override http request option.
  8040. * @throws {RequiredError}
  8041. * @memberof AssetApi
  8042. */
  8043. public deleteAssets(requestParameters: AssetApiDeleteAssetsRequest, options?: AxiosRequestConfig) {
  8044. return AssetApiFp(this.configuration).deleteAssets(requestParameters.assetBulkDeleteDto, options).then((request) => request(this.axios, this.basePath));
  8045. }
  8046. /**
  8047. *
  8048. * @param {AssetApiDownloadArchiveRequest} requestParameters Request parameters.
  8049. * @param {*} [options] Override http request option.
  8050. * @throws {RequiredError}
  8051. * @memberof AssetApi
  8052. */
  8053. public downloadArchive(requestParameters: AssetApiDownloadArchiveRequest, options?: AxiosRequestConfig) {
  8054. return AssetApiFp(this.configuration).downloadArchive(requestParameters.assetIdsDto, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  8055. }
  8056. /**
  8057. *
  8058. * @param {AssetApiDownloadFileRequest} requestParameters Request parameters.
  8059. * @param {*} [options] Override http request option.
  8060. * @throws {RequiredError}
  8061. * @memberof AssetApi
  8062. */
  8063. public downloadFile(requestParameters: AssetApiDownloadFileRequest, options?: AxiosRequestConfig) {
  8064. return AssetApiFp(this.configuration).downloadFile(requestParameters.id, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  8065. }
  8066. /**
  8067. *
  8068. * @param {*} [options] Override http request option.
  8069. * @throws {RequiredError}
  8070. * @memberof AssetApi
  8071. */
  8072. public emptyTrash(options?: AxiosRequestConfig) {
  8073. return AssetApiFp(this.configuration).emptyTrash(options).then((request) => request(this.axios, this.basePath));
  8074. }
  8075. /**
  8076. * Get all AssetEntity belong to the user
  8077. * @param {AssetApiGetAllAssetsRequest} requestParameters Request parameters.
  8078. * @param {*} [options] Override http request option.
  8079. * @throws {RequiredError}
  8080. * @memberof AssetApi
  8081. */
  8082. public getAllAssets(requestParameters: AssetApiGetAllAssetsRequest = {}, options?: AxiosRequestConfig) {
  8083. return AssetApiFp(this.configuration).getAllAssets(requestParameters.userId, requestParameters.isFavorite, requestParameters.isArchived, requestParameters.skip, requestParameters.updatedAfter, requestParameters.ifNoneMatch, options).then((request) => request(this.axios, this.basePath));
  8084. }
  8085. /**
  8086. * Get a single asset\'s information
  8087. * @param {AssetApiGetAssetByIdRequest} requestParameters Request parameters.
  8088. * @param {*} [options] Override http request option.
  8089. * @throws {RequiredError}
  8090. * @memberof AssetApi
  8091. */
  8092. public getAssetById(requestParameters: AssetApiGetAssetByIdRequest, options?: AxiosRequestConfig) {
  8093. return AssetApiFp(this.configuration).getAssetById(requestParameters.id, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  8094. }
  8095. /**
  8096. *
  8097. * @param {*} [options] Override http request option.
  8098. * @throws {RequiredError}
  8099. * @memberof AssetApi
  8100. */
  8101. public getAssetSearchTerms(options?: AxiosRequestConfig) {
  8102. return AssetApiFp(this.configuration).getAssetSearchTerms(options).then((request) => request(this.axios, this.basePath));
  8103. }
  8104. /**
  8105. *
  8106. * @param {AssetApiGetAssetStatsRequest} requestParameters Request parameters.
  8107. * @param {*} [options] Override http request option.
  8108. * @throws {RequiredError}
  8109. * @memberof AssetApi
  8110. */
  8111. public getAssetStats(requestParameters: AssetApiGetAssetStatsRequest = {}, options?: AxiosRequestConfig) {
  8112. return AssetApiFp(this.configuration).getAssetStats(requestParameters.isArchived, requestParameters.isFavorite, requestParameters.isTrashed, options).then((request) => request(this.axios, this.basePath));
  8113. }
  8114. /**
  8115. *
  8116. * @param {AssetApiGetAssetThumbnailRequest} requestParameters Request parameters.
  8117. * @param {*} [options] Override http request option.
  8118. * @throws {RequiredError}
  8119. * @memberof AssetApi
  8120. */
  8121. public getAssetThumbnail(requestParameters: AssetApiGetAssetThumbnailRequest, options?: AxiosRequestConfig) {
  8122. return AssetApiFp(this.configuration).getAssetThumbnail(requestParameters.id, requestParameters.format, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  8123. }
  8124. /**
  8125. *
  8126. * @param {AssetApiGetByTimeBucketRequest} requestParameters Request parameters.
  8127. * @param {*} [options] Override http request option.
  8128. * @throws {RequiredError}
  8129. * @memberof AssetApi
  8130. */
  8131. public getByTimeBucket(requestParameters: AssetApiGetByTimeBucketRequest, options?: AxiosRequestConfig) {
  8132. return AssetApiFp(this.configuration).getByTimeBucket(requestParameters.size, requestParameters.timeBucket, requestParameters.userId, requestParameters.albumId, requestParameters.personId, requestParameters.isArchived, requestParameters.isFavorite, requestParameters.isTrashed, requestParameters.withStacked, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  8133. }
  8134. /**
  8135. *
  8136. * @param {*} [options] Override http request option.
  8137. * @throws {RequiredError}
  8138. * @memberof AssetApi
  8139. */
  8140. public getCuratedLocations(options?: AxiosRequestConfig) {
  8141. return AssetApiFp(this.configuration).getCuratedLocations(options).then((request) => request(this.axios, this.basePath));
  8142. }
  8143. /**
  8144. *
  8145. * @param {*} [options] Override http request option.
  8146. * @throws {RequiredError}
  8147. * @memberof AssetApi
  8148. */
  8149. public getCuratedObjects(options?: AxiosRequestConfig) {
  8150. return AssetApiFp(this.configuration).getCuratedObjects(options).then((request) => request(this.axios, this.basePath));
  8151. }
  8152. /**
  8153. *
  8154. * @param {AssetApiGetDownloadInfoRequest} requestParameters Request parameters.
  8155. * @param {*} [options] Override http request option.
  8156. * @throws {RequiredError}
  8157. * @memberof AssetApi
  8158. */
  8159. public getDownloadInfo(requestParameters: AssetApiGetDownloadInfoRequest, options?: AxiosRequestConfig) {
  8160. return AssetApiFp(this.configuration).getDownloadInfo(requestParameters.downloadInfoDto, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  8161. }
  8162. /**
  8163. *
  8164. * @param {AssetApiGetMapMarkersRequest} requestParameters Request parameters.
  8165. * @param {*} [options] Override http request option.
  8166. * @throws {RequiredError}
  8167. * @memberof AssetApi
  8168. */
  8169. public getMapMarkers(requestParameters: AssetApiGetMapMarkersRequest = {}, options?: AxiosRequestConfig) {
  8170. return AssetApiFp(this.configuration).getMapMarkers(requestParameters.isArchived, requestParameters.isFavorite, requestParameters.fileCreatedAfter, requestParameters.fileCreatedBefore, options).then((request) => request(this.axios, this.basePath));
  8171. }
  8172. /**
  8173. *
  8174. * @param {AssetApiGetMemoryLaneRequest} requestParameters Request parameters.
  8175. * @param {*} [options] Override http request option.
  8176. * @throws {RequiredError}
  8177. * @memberof AssetApi
  8178. */
  8179. public getMemoryLane(requestParameters: AssetApiGetMemoryLaneRequest, options?: AxiosRequestConfig) {
  8180. return AssetApiFp(this.configuration).getMemoryLane(requestParameters.day, requestParameters.month, options).then((request) => request(this.axios, this.basePath));
  8181. }
  8182. /**
  8183. *
  8184. * @param {AssetApiGetRandomRequest} requestParameters Request parameters.
  8185. * @param {*} [options] Override http request option.
  8186. * @throws {RequiredError}
  8187. * @memberof AssetApi
  8188. */
  8189. public getRandom(requestParameters: AssetApiGetRandomRequest = {}, options?: AxiosRequestConfig) {
  8190. return AssetApiFp(this.configuration).getRandom(requestParameters.count, options).then((request) => request(this.axios, this.basePath));
  8191. }
  8192. /**
  8193. *
  8194. * @param {AssetApiGetTimeBucketsRequest} requestParameters Request parameters.
  8195. * @param {*} [options] Override http request option.
  8196. * @throws {RequiredError}
  8197. * @memberof AssetApi
  8198. */
  8199. public getTimeBuckets(requestParameters: AssetApiGetTimeBucketsRequest, options?: AxiosRequestConfig) {
  8200. return AssetApiFp(this.configuration).getTimeBuckets(requestParameters.size, requestParameters.userId, requestParameters.albumId, requestParameters.personId, requestParameters.isArchived, requestParameters.isFavorite, requestParameters.isTrashed, requestParameters.withStacked, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  8201. }
  8202. /**
  8203. * Get all asset of a device that are in the database, ID only.
  8204. * @param {AssetApiGetUserAssetsByDeviceIdRequest} requestParameters Request parameters.
  8205. * @param {*} [options] Override http request option.
  8206. * @throws {RequiredError}
  8207. * @memberof AssetApi
  8208. */
  8209. public getUserAssetsByDeviceId(requestParameters: AssetApiGetUserAssetsByDeviceIdRequest, options?: AxiosRequestConfig) {
  8210. return AssetApiFp(this.configuration).getUserAssetsByDeviceId(requestParameters.deviceId, options).then((request) => request(this.axios, this.basePath));
  8211. }
  8212. /**
  8213. *
  8214. * @param {AssetApiImportFileRequest} requestParameters Request parameters.
  8215. * @param {*} [options] Override http request option.
  8216. * @throws {RequiredError}
  8217. * @memberof AssetApi
  8218. */
  8219. public importFile(requestParameters: AssetApiImportFileRequest, options?: AxiosRequestConfig) {
  8220. return AssetApiFp(this.configuration).importFile(requestParameters.importAssetDto, options).then((request) => request(this.axios, this.basePath));
  8221. }
  8222. /**
  8223. *
  8224. * @param {AssetApiRestoreAssetsRequest} requestParameters Request parameters.
  8225. * @param {*} [options] Override http request option.
  8226. * @throws {RequiredError}
  8227. * @memberof AssetApi
  8228. */
  8229. public restoreAssets(requestParameters: AssetApiRestoreAssetsRequest, options?: AxiosRequestConfig) {
  8230. return AssetApiFp(this.configuration).restoreAssets(requestParameters.bulkIdsDto, options).then((request) => request(this.axios, this.basePath));
  8231. }
  8232. /**
  8233. *
  8234. * @param {*} [options] Override http request option.
  8235. * @throws {RequiredError}
  8236. * @memberof AssetApi
  8237. */
  8238. public restoreTrash(options?: AxiosRequestConfig) {
  8239. return AssetApiFp(this.configuration).restoreTrash(options).then((request) => request(this.axios, this.basePath));
  8240. }
  8241. /**
  8242. *
  8243. * @param {AssetApiRunAssetJobsRequest} requestParameters Request parameters.
  8244. * @param {*} [options] Override http request option.
  8245. * @throws {RequiredError}
  8246. * @memberof AssetApi
  8247. */
  8248. public runAssetJobs(requestParameters: AssetApiRunAssetJobsRequest, options?: AxiosRequestConfig) {
  8249. return AssetApiFp(this.configuration).runAssetJobs(requestParameters.assetJobsDto, options).then((request) => request(this.axios, this.basePath));
  8250. }
  8251. /**
  8252. *
  8253. * @param {AssetApiSearchAssetRequest} requestParameters Request parameters.
  8254. * @param {*} [options] Override http request option.
  8255. * @throws {RequiredError}
  8256. * @memberof AssetApi
  8257. */
  8258. public searchAsset(requestParameters: AssetApiSearchAssetRequest, options?: AxiosRequestConfig) {
  8259. return AssetApiFp(this.configuration).searchAsset(requestParameters.searchAssetDto, options).then((request) => request(this.axios, this.basePath));
  8260. }
  8261. /**
  8262. *
  8263. * @param {AssetApiServeFileRequest} requestParameters Request parameters.
  8264. * @param {*} [options] Override http request option.
  8265. * @throws {RequiredError}
  8266. * @memberof AssetApi
  8267. */
  8268. public serveFile(requestParameters: AssetApiServeFileRequest, options?: AxiosRequestConfig) {
  8269. return AssetApiFp(this.configuration).serveFile(requestParameters.id, requestParameters.isThumb, requestParameters.isWeb, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  8270. }
  8271. /**
  8272. *
  8273. * @param {AssetApiUpdateAssetRequest} requestParameters Request parameters.
  8274. * @param {*} [options] Override http request option.
  8275. * @throws {RequiredError}
  8276. * @memberof AssetApi
  8277. */
  8278. public updateAsset(requestParameters: AssetApiUpdateAssetRequest, options?: AxiosRequestConfig) {
  8279. return AssetApiFp(this.configuration).updateAsset(requestParameters.id, requestParameters.updateAssetDto, options).then((request) => request(this.axios, this.basePath));
  8280. }
  8281. /**
  8282. *
  8283. * @param {AssetApiUpdateAssetsRequest} requestParameters Request parameters.
  8284. * @param {*} [options] Override http request option.
  8285. * @throws {RequiredError}
  8286. * @memberof AssetApi
  8287. */
  8288. public updateAssets(requestParameters: AssetApiUpdateAssetsRequest, options?: AxiosRequestConfig) {
  8289. return AssetApiFp(this.configuration).updateAssets(requestParameters.assetBulkUpdateDto, options).then((request) => request(this.axios, this.basePath));
  8290. }
  8291. /**
  8292. *
  8293. * @param {AssetApiUpdateStackParentRequest} requestParameters Request parameters.
  8294. * @param {*} [options] Override http request option.
  8295. * @throws {RequiredError}
  8296. * @memberof AssetApi
  8297. */
  8298. public updateStackParent(requestParameters: AssetApiUpdateStackParentRequest, options?: AxiosRequestConfig) {
  8299. return AssetApiFp(this.configuration).updateStackParent(requestParameters.updateStackParentDto, options).then((request) => request(this.axios, this.basePath));
  8300. }
  8301. /**
  8302. *
  8303. * @param {AssetApiUploadFileRequest} requestParameters Request parameters.
  8304. * @param {*} [options] Override http request option.
  8305. * @throws {RequiredError}
  8306. * @memberof AssetApi
  8307. */
  8308. public uploadFile(requestParameters: AssetApiUploadFileRequest, options?: AxiosRequestConfig) {
  8309. return AssetApiFp(this.configuration).uploadFile(requestParameters.assetData, requestParameters.deviceAssetId, requestParameters.deviceId, requestParameters.fileCreatedAt, requestParameters.fileModifiedAt, requestParameters.isFavorite, requestParameters.key, requestParameters.duration, requestParameters.isArchived, requestParameters.isExternal, requestParameters.isOffline, requestParameters.isReadOnly, requestParameters.isVisible, requestParameters.libraryId, requestParameters.livePhotoData, requestParameters.sidecarData, options).then((request) => request(this.axios, this.basePath));
  8310. }
  8311. }
  8312. /**
  8313. * AuditApi - axios parameter creator
  8314. * @export
  8315. */
  8316. export const AuditApiAxiosParamCreator = function (configuration?: Configuration) {
  8317. return {
  8318. /**
  8319. *
  8320. * @param {FileReportFixDto} fileReportFixDto
  8321. * @param {*} [options] Override http request option.
  8322. * @throws {RequiredError}
  8323. */
  8324. fixAuditFiles: async (fileReportFixDto: FileReportFixDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  8325. // verify required parameter 'fileReportFixDto' is not null or undefined
  8326. assertParamExists('fixAuditFiles', 'fileReportFixDto', fileReportFixDto)
  8327. const localVarPath = `/audit/file-report/fix`;
  8328. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  8329. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  8330. let baseOptions;
  8331. if (configuration) {
  8332. baseOptions = configuration.baseOptions;
  8333. }
  8334. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  8335. const localVarHeaderParameter = {} as any;
  8336. const localVarQueryParameter = {} as any;
  8337. // authentication cookie required
  8338. // authentication api_key required
  8339. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  8340. // authentication bearer required
  8341. // http bearer authentication required
  8342. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  8343. localVarHeaderParameter['Content-Type'] = 'application/json';
  8344. setSearchParams(localVarUrlObj, localVarQueryParameter);
  8345. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  8346. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  8347. localVarRequestOptions.data = serializeDataIfNeeded(fileReportFixDto, localVarRequestOptions, configuration)
  8348. return {
  8349. url: toPathString(localVarUrlObj),
  8350. options: localVarRequestOptions,
  8351. };
  8352. },
  8353. /**
  8354. *
  8355. * @param {EntityType} entityType
  8356. * @param {string} after
  8357. * @param {string} [userId]
  8358. * @param {*} [options] Override http request option.
  8359. * @throws {RequiredError}
  8360. */
  8361. getAuditDeletes: async (entityType: EntityType, after: string, userId?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  8362. // verify required parameter 'entityType' is not null or undefined
  8363. assertParamExists('getAuditDeletes', 'entityType', entityType)
  8364. // verify required parameter 'after' is not null or undefined
  8365. assertParamExists('getAuditDeletes', 'after', after)
  8366. const localVarPath = `/audit/deletes`;
  8367. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  8368. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  8369. let baseOptions;
  8370. if (configuration) {
  8371. baseOptions = configuration.baseOptions;
  8372. }
  8373. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  8374. const localVarHeaderParameter = {} as any;
  8375. const localVarQueryParameter = {} as any;
  8376. // authentication cookie required
  8377. // authentication api_key required
  8378. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  8379. // authentication bearer required
  8380. // http bearer authentication required
  8381. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  8382. if (entityType !== undefined) {
  8383. localVarQueryParameter['entityType'] = entityType;
  8384. }
  8385. if (userId !== undefined) {
  8386. localVarQueryParameter['userId'] = userId;
  8387. }
  8388. if (after !== undefined) {
  8389. localVarQueryParameter['after'] = (after as any instanceof Date) ?
  8390. (after as any).toISOString() :
  8391. after;
  8392. }
  8393. setSearchParams(localVarUrlObj, localVarQueryParameter);
  8394. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  8395. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  8396. return {
  8397. url: toPathString(localVarUrlObj),
  8398. options: localVarRequestOptions,
  8399. };
  8400. },
  8401. /**
  8402. *
  8403. * @param {*} [options] Override http request option.
  8404. * @throws {RequiredError}
  8405. */
  8406. getAuditFiles: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  8407. const localVarPath = `/audit/file-report`;
  8408. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  8409. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  8410. let baseOptions;
  8411. if (configuration) {
  8412. baseOptions = configuration.baseOptions;
  8413. }
  8414. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  8415. const localVarHeaderParameter = {} as any;
  8416. const localVarQueryParameter = {} as any;
  8417. // authentication cookie required
  8418. // authentication api_key required
  8419. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  8420. // authentication bearer required
  8421. // http bearer authentication required
  8422. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  8423. setSearchParams(localVarUrlObj, localVarQueryParameter);
  8424. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  8425. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  8426. return {
  8427. url: toPathString(localVarUrlObj),
  8428. options: localVarRequestOptions,
  8429. };
  8430. },
  8431. /**
  8432. *
  8433. * @param {FileChecksumDto} fileChecksumDto
  8434. * @param {*} [options] Override http request option.
  8435. * @throws {RequiredError}
  8436. */
  8437. getFileChecksums: async (fileChecksumDto: FileChecksumDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  8438. // verify required parameter 'fileChecksumDto' is not null or undefined
  8439. assertParamExists('getFileChecksums', 'fileChecksumDto', fileChecksumDto)
  8440. const localVarPath = `/audit/file-report/checksum`;
  8441. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  8442. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  8443. let baseOptions;
  8444. if (configuration) {
  8445. baseOptions = configuration.baseOptions;
  8446. }
  8447. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  8448. const localVarHeaderParameter = {} as any;
  8449. const localVarQueryParameter = {} as any;
  8450. // authentication cookie required
  8451. // authentication api_key required
  8452. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  8453. // authentication bearer required
  8454. // http bearer authentication required
  8455. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  8456. localVarHeaderParameter['Content-Type'] = 'application/json';
  8457. setSearchParams(localVarUrlObj, localVarQueryParameter);
  8458. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  8459. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  8460. localVarRequestOptions.data = serializeDataIfNeeded(fileChecksumDto, localVarRequestOptions, configuration)
  8461. return {
  8462. url: toPathString(localVarUrlObj),
  8463. options: localVarRequestOptions,
  8464. };
  8465. },
  8466. }
  8467. };
  8468. /**
  8469. * AuditApi - functional programming interface
  8470. * @export
  8471. */
  8472. export const AuditApiFp = function(configuration?: Configuration) {
  8473. const localVarAxiosParamCreator = AuditApiAxiosParamCreator(configuration)
  8474. return {
  8475. /**
  8476. *
  8477. * @param {FileReportFixDto} fileReportFixDto
  8478. * @param {*} [options] Override http request option.
  8479. * @throws {RequiredError}
  8480. */
  8481. async fixAuditFiles(fileReportFixDto: FileReportFixDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  8482. const localVarAxiosArgs = await localVarAxiosParamCreator.fixAuditFiles(fileReportFixDto, options);
  8483. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  8484. },
  8485. /**
  8486. *
  8487. * @param {EntityType} entityType
  8488. * @param {string} after
  8489. * @param {string} [userId]
  8490. * @param {*} [options] Override http request option.
  8491. * @throws {RequiredError}
  8492. */
  8493. async getAuditDeletes(entityType: EntityType, after: string, userId?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AuditDeletesResponseDto>> {
  8494. const localVarAxiosArgs = await localVarAxiosParamCreator.getAuditDeletes(entityType, after, userId, options);
  8495. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  8496. },
  8497. /**
  8498. *
  8499. * @param {*} [options] Override http request option.
  8500. * @throws {RequiredError}
  8501. */
  8502. async getAuditFiles(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FileReportDto>> {
  8503. const localVarAxiosArgs = await localVarAxiosParamCreator.getAuditFiles(options);
  8504. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  8505. },
  8506. /**
  8507. *
  8508. * @param {FileChecksumDto} fileChecksumDto
  8509. * @param {*} [options] Override http request option.
  8510. * @throws {RequiredError}
  8511. */
  8512. async getFileChecksums(fileChecksumDto: FileChecksumDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<FileChecksumResponseDto>>> {
  8513. const localVarAxiosArgs = await localVarAxiosParamCreator.getFileChecksums(fileChecksumDto, options);
  8514. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  8515. },
  8516. }
  8517. };
  8518. /**
  8519. * AuditApi - factory interface
  8520. * @export
  8521. */
  8522. export const AuditApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  8523. const localVarFp = AuditApiFp(configuration)
  8524. return {
  8525. /**
  8526. *
  8527. * @param {AuditApiFixAuditFilesRequest} requestParameters Request parameters.
  8528. * @param {*} [options] Override http request option.
  8529. * @throws {RequiredError}
  8530. */
  8531. fixAuditFiles(requestParameters: AuditApiFixAuditFilesRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  8532. return localVarFp.fixAuditFiles(requestParameters.fileReportFixDto, options).then((request) => request(axios, basePath));
  8533. },
  8534. /**
  8535. *
  8536. * @param {AuditApiGetAuditDeletesRequest} requestParameters Request parameters.
  8537. * @param {*} [options] Override http request option.
  8538. * @throws {RequiredError}
  8539. */
  8540. getAuditDeletes(requestParameters: AuditApiGetAuditDeletesRequest, options?: AxiosRequestConfig): AxiosPromise<AuditDeletesResponseDto> {
  8541. return localVarFp.getAuditDeletes(requestParameters.entityType, requestParameters.after, requestParameters.userId, options).then((request) => request(axios, basePath));
  8542. },
  8543. /**
  8544. *
  8545. * @param {*} [options] Override http request option.
  8546. * @throws {RequiredError}
  8547. */
  8548. getAuditFiles(options?: AxiosRequestConfig): AxiosPromise<FileReportDto> {
  8549. return localVarFp.getAuditFiles(options).then((request) => request(axios, basePath));
  8550. },
  8551. /**
  8552. *
  8553. * @param {AuditApiGetFileChecksumsRequest} requestParameters Request parameters.
  8554. * @param {*} [options] Override http request option.
  8555. * @throws {RequiredError}
  8556. */
  8557. getFileChecksums(requestParameters: AuditApiGetFileChecksumsRequest, options?: AxiosRequestConfig): AxiosPromise<Array<FileChecksumResponseDto>> {
  8558. return localVarFp.getFileChecksums(requestParameters.fileChecksumDto, options).then((request) => request(axios, basePath));
  8559. },
  8560. };
  8561. };
  8562. /**
  8563. * Request parameters for fixAuditFiles operation in AuditApi.
  8564. * @export
  8565. * @interface AuditApiFixAuditFilesRequest
  8566. */
  8567. export interface AuditApiFixAuditFilesRequest {
  8568. /**
  8569. *
  8570. * @type {FileReportFixDto}
  8571. * @memberof AuditApiFixAuditFiles
  8572. */
  8573. readonly fileReportFixDto: FileReportFixDto
  8574. }
  8575. /**
  8576. * Request parameters for getAuditDeletes operation in AuditApi.
  8577. * @export
  8578. * @interface AuditApiGetAuditDeletesRequest
  8579. */
  8580. export interface AuditApiGetAuditDeletesRequest {
  8581. /**
  8582. *
  8583. * @type {EntityType}
  8584. * @memberof AuditApiGetAuditDeletes
  8585. */
  8586. readonly entityType: EntityType
  8587. /**
  8588. *
  8589. * @type {string}
  8590. * @memberof AuditApiGetAuditDeletes
  8591. */
  8592. readonly after: string
  8593. /**
  8594. *
  8595. * @type {string}
  8596. * @memberof AuditApiGetAuditDeletes
  8597. */
  8598. readonly userId?: string
  8599. }
  8600. /**
  8601. * Request parameters for getFileChecksums operation in AuditApi.
  8602. * @export
  8603. * @interface AuditApiGetFileChecksumsRequest
  8604. */
  8605. export interface AuditApiGetFileChecksumsRequest {
  8606. /**
  8607. *
  8608. * @type {FileChecksumDto}
  8609. * @memberof AuditApiGetFileChecksums
  8610. */
  8611. readonly fileChecksumDto: FileChecksumDto
  8612. }
  8613. /**
  8614. * AuditApi - object-oriented interface
  8615. * @export
  8616. * @class AuditApi
  8617. * @extends {BaseAPI}
  8618. */
  8619. export class AuditApi extends BaseAPI {
  8620. /**
  8621. *
  8622. * @param {AuditApiFixAuditFilesRequest} requestParameters Request parameters.
  8623. * @param {*} [options] Override http request option.
  8624. * @throws {RequiredError}
  8625. * @memberof AuditApi
  8626. */
  8627. public fixAuditFiles(requestParameters: AuditApiFixAuditFilesRequest, options?: AxiosRequestConfig) {
  8628. return AuditApiFp(this.configuration).fixAuditFiles(requestParameters.fileReportFixDto, options).then((request) => request(this.axios, this.basePath));
  8629. }
  8630. /**
  8631. *
  8632. * @param {AuditApiGetAuditDeletesRequest} requestParameters Request parameters.
  8633. * @param {*} [options] Override http request option.
  8634. * @throws {RequiredError}
  8635. * @memberof AuditApi
  8636. */
  8637. public getAuditDeletes(requestParameters: AuditApiGetAuditDeletesRequest, options?: AxiosRequestConfig) {
  8638. return AuditApiFp(this.configuration).getAuditDeletes(requestParameters.entityType, requestParameters.after, requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
  8639. }
  8640. /**
  8641. *
  8642. * @param {*} [options] Override http request option.
  8643. * @throws {RequiredError}
  8644. * @memberof AuditApi
  8645. */
  8646. public getAuditFiles(options?: AxiosRequestConfig) {
  8647. return AuditApiFp(this.configuration).getAuditFiles(options).then((request) => request(this.axios, this.basePath));
  8648. }
  8649. /**
  8650. *
  8651. * @param {AuditApiGetFileChecksumsRequest} requestParameters Request parameters.
  8652. * @param {*} [options] Override http request option.
  8653. * @throws {RequiredError}
  8654. * @memberof AuditApi
  8655. */
  8656. public getFileChecksums(requestParameters: AuditApiGetFileChecksumsRequest, options?: AxiosRequestConfig) {
  8657. return AuditApiFp(this.configuration).getFileChecksums(requestParameters.fileChecksumDto, options).then((request) => request(this.axios, this.basePath));
  8658. }
  8659. }
  8660. /**
  8661. * AuthenticationApi - axios parameter creator
  8662. * @export
  8663. */
  8664. export const AuthenticationApiAxiosParamCreator = function (configuration?: Configuration) {
  8665. return {
  8666. /**
  8667. *
  8668. * @param {SignUpDto} signUpDto
  8669. * @param {*} [options] Override http request option.
  8670. * @throws {RequiredError}
  8671. */
  8672. adminSignUp: async (signUpDto: SignUpDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  8673. // verify required parameter 'signUpDto' is not null or undefined
  8674. assertParamExists('adminSignUp', 'signUpDto', signUpDto)
  8675. const localVarPath = `/auth/admin-sign-up`;
  8676. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  8677. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  8678. let baseOptions;
  8679. if (configuration) {
  8680. baseOptions = configuration.baseOptions;
  8681. }
  8682. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  8683. const localVarHeaderParameter = {} as any;
  8684. const localVarQueryParameter = {} as any;
  8685. localVarHeaderParameter['Content-Type'] = 'application/json';
  8686. setSearchParams(localVarUrlObj, localVarQueryParameter);
  8687. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  8688. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  8689. localVarRequestOptions.data = serializeDataIfNeeded(signUpDto, localVarRequestOptions, configuration)
  8690. return {
  8691. url: toPathString(localVarUrlObj),
  8692. options: localVarRequestOptions,
  8693. };
  8694. },
  8695. /**
  8696. *
  8697. * @param {ChangePasswordDto} changePasswordDto
  8698. * @param {*} [options] Override http request option.
  8699. * @throws {RequiredError}
  8700. */
  8701. changePassword: async (changePasswordDto: ChangePasswordDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  8702. // verify required parameter 'changePasswordDto' is not null or undefined
  8703. assertParamExists('changePassword', 'changePasswordDto', changePasswordDto)
  8704. const localVarPath = `/auth/change-password`;
  8705. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  8706. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  8707. let baseOptions;
  8708. if (configuration) {
  8709. baseOptions = configuration.baseOptions;
  8710. }
  8711. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  8712. const localVarHeaderParameter = {} as any;
  8713. const localVarQueryParameter = {} as any;
  8714. // authentication cookie required
  8715. // authentication api_key required
  8716. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  8717. // authentication bearer required
  8718. // http bearer authentication required
  8719. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  8720. localVarHeaderParameter['Content-Type'] = 'application/json';
  8721. setSearchParams(localVarUrlObj, localVarQueryParameter);
  8722. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  8723. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  8724. localVarRequestOptions.data = serializeDataIfNeeded(changePasswordDto, localVarRequestOptions, configuration)
  8725. return {
  8726. url: toPathString(localVarUrlObj),
  8727. options: localVarRequestOptions,
  8728. };
  8729. },
  8730. /**
  8731. *
  8732. * @param {*} [options] Override http request option.
  8733. * @throws {RequiredError}
  8734. */
  8735. getAuthDevices: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  8736. const localVarPath = `/auth/devices`;
  8737. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  8738. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  8739. let baseOptions;
  8740. if (configuration) {
  8741. baseOptions = configuration.baseOptions;
  8742. }
  8743. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  8744. const localVarHeaderParameter = {} as any;
  8745. const localVarQueryParameter = {} as any;
  8746. // authentication cookie required
  8747. // authentication api_key required
  8748. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  8749. // authentication bearer required
  8750. // http bearer authentication required
  8751. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  8752. setSearchParams(localVarUrlObj, localVarQueryParameter);
  8753. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  8754. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  8755. return {
  8756. url: toPathString(localVarUrlObj),
  8757. options: localVarRequestOptions,
  8758. };
  8759. },
  8760. /**
  8761. *
  8762. * @param {LoginCredentialDto} loginCredentialDto
  8763. * @param {*} [options] Override http request option.
  8764. * @throws {RequiredError}
  8765. */
  8766. login: async (loginCredentialDto: LoginCredentialDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  8767. // verify required parameter 'loginCredentialDto' is not null or undefined
  8768. assertParamExists('login', 'loginCredentialDto', loginCredentialDto)
  8769. const localVarPath = `/auth/login`;
  8770. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  8771. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  8772. let baseOptions;
  8773. if (configuration) {
  8774. baseOptions = configuration.baseOptions;
  8775. }
  8776. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  8777. const localVarHeaderParameter = {} as any;
  8778. const localVarQueryParameter = {} as any;
  8779. localVarHeaderParameter['Content-Type'] = 'application/json';
  8780. setSearchParams(localVarUrlObj, localVarQueryParameter);
  8781. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  8782. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  8783. localVarRequestOptions.data = serializeDataIfNeeded(loginCredentialDto, localVarRequestOptions, configuration)
  8784. return {
  8785. url: toPathString(localVarUrlObj),
  8786. options: localVarRequestOptions,
  8787. };
  8788. },
  8789. /**
  8790. *
  8791. * @param {*} [options] Override http request option.
  8792. * @throws {RequiredError}
  8793. */
  8794. logout: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  8795. const localVarPath = `/auth/logout`;
  8796. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  8797. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  8798. let baseOptions;
  8799. if (configuration) {
  8800. baseOptions = configuration.baseOptions;
  8801. }
  8802. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  8803. const localVarHeaderParameter = {} as any;
  8804. const localVarQueryParameter = {} as any;
  8805. // authentication cookie required
  8806. // authentication api_key required
  8807. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  8808. // authentication bearer required
  8809. // http bearer authentication required
  8810. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  8811. setSearchParams(localVarUrlObj, localVarQueryParameter);
  8812. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  8813. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  8814. return {
  8815. url: toPathString(localVarUrlObj),
  8816. options: localVarRequestOptions,
  8817. };
  8818. },
  8819. /**
  8820. *
  8821. * @param {string} id
  8822. * @param {*} [options] Override http request option.
  8823. * @throws {RequiredError}
  8824. */
  8825. logoutAuthDevice: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  8826. // verify required parameter 'id' is not null or undefined
  8827. assertParamExists('logoutAuthDevice', 'id', id)
  8828. const localVarPath = `/auth/devices/{id}`
  8829. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  8830. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  8831. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  8832. let baseOptions;
  8833. if (configuration) {
  8834. baseOptions = configuration.baseOptions;
  8835. }
  8836. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  8837. const localVarHeaderParameter = {} as any;
  8838. const localVarQueryParameter = {} as any;
  8839. // authentication cookie required
  8840. // authentication api_key required
  8841. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  8842. // authentication bearer required
  8843. // http bearer authentication required
  8844. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  8845. setSearchParams(localVarUrlObj, localVarQueryParameter);
  8846. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  8847. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  8848. return {
  8849. url: toPathString(localVarUrlObj),
  8850. options: localVarRequestOptions,
  8851. };
  8852. },
  8853. /**
  8854. *
  8855. * @param {*} [options] Override http request option.
  8856. * @throws {RequiredError}
  8857. */
  8858. logoutAuthDevices: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  8859. const localVarPath = `/auth/devices`;
  8860. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  8861. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  8862. let baseOptions;
  8863. if (configuration) {
  8864. baseOptions = configuration.baseOptions;
  8865. }
  8866. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  8867. const localVarHeaderParameter = {} as any;
  8868. const localVarQueryParameter = {} as any;
  8869. // authentication cookie required
  8870. // authentication api_key required
  8871. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  8872. // authentication bearer required
  8873. // http bearer authentication required
  8874. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  8875. setSearchParams(localVarUrlObj, localVarQueryParameter);
  8876. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  8877. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  8878. return {
  8879. url: toPathString(localVarUrlObj),
  8880. options: localVarRequestOptions,
  8881. };
  8882. },
  8883. /**
  8884. *
  8885. * @param {*} [options] Override http request option.
  8886. * @throws {RequiredError}
  8887. */
  8888. validateAccessToken: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  8889. const localVarPath = `/auth/validateToken`;
  8890. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  8891. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  8892. let baseOptions;
  8893. if (configuration) {
  8894. baseOptions = configuration.baseOptions;
  8895. }
  8896. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  8897. const localVarHeaderParameter = {} as any;
  8898. const localVarQueryParameter = {} as any;
  8899. // authentication cookie required
  8900. // authentication api_key required
  8901. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  8902. // authentication bearer required
  8903. // http bearer authentication required
  8904. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  8905. setSearchParams(localVarUrlObj, localVarQueryParameter);
  8906. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  8907. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  8908. return {
  8909. url: toPathString(localVarUrlObj),
  8910. options: localVarRequestOptions,
  8911. };
  8912. },
  8913. }
  8914. };
  8915. /**
  8916. * AuthenticationApi - functional programming interface
  8917. * @export
  8918. */
  8919. export const AuthenticationApiFp = function(configuration?: Configuration) {
  8920. const localVarAxiosParamCreator = AuthenticationApiAxiosParamCreator(configuration)
  8921. return {
  8922. /**
  8923. *
  8924. * @param {SignUpDto} signUpDto
  8925. * @param {*} [options] Override http request option.
  8926. * @throws {RequiredError}
  8927. */
  8928. async adminSignUp(signUpDto: SignUpDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AdminSignupResponseDto>> {
  8929. const localVarAxiosArgs = await localVarAxiosParamCreator.adminSignUp(signUpDto, options);
  8930. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  8931. },
  8932. /**
  8933. *
  8934. * @param {ChangePasswordDto} changePasswordDto
  8935. * @param {*} [options] Override http request option.
  8936. * @throws {RequiredError}
  8937. */
  8938. async changePassword(changePasswordDto: ChangePasswordDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  8939. const localVarAxiosArgs = await localVarAxiosParamCreator.changePassword(changePasswordDto, options);
  8940. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  8941. },
  8942. /**
  8943. *
  8944. * @param {*} [options] Override http request option.
  8945. * @throws {RequiredError}
  8946. */
  8947. async getAuthDevices(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AuthDeviceResponseDto>>> {
  8948. const localVarAxiosArgs = await localVarAxiosParamCreator.getAuthDevices(options);
  8949. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  8950. },
  8951. /**
  8952. *
  8953. * @param {LoginCredentialDto} loginCredentialDto
  8954. * @param {*} [options] Override http request option.
  8955. * @throws {RequiredError}
  8956. */
  8957. async login(loginCredentialDto: LoginCredentialDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LoginResponseDto>> {
  8958. const localVarAxiosArgs = await localVarAxiosParamCreator.login(loginCredentialDto, options);
  8959. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  8960. },
  8961. /**
  8962. *
  8963. * @param {*} [options] Override http request option.
  8964. * @throws {RequiredError}
  8965. */
  8966. async logout(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LogoutResponseDto>> {
  8967. const localVarAxiosArgs = await localVarAxiosParamCreator.logout(options);
  8968. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  8969. },
  8970. /**
  8971. *
  8972. * @param {string} id
  8973. * @param {*} [options] Override http request option.
  8974. * @throws {RequiredError}
  8975. */
  8976. async logoutAuthDevice(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  8977. const localVarAxiosArgs = await localVarAxiosParamCreator.logoutAuthDevice(id, options);
  8978. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  8979. },
  8980. /**
  8981. *
  8982. * @param {*} [options] Override http request option.
  8983. * @throws {RequiredError}
  8984. */
  8985. async logoutAuthDevices(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  8986. const localVarAxiosArgs = await localVarAxiosParamCreator.logoutAuthDevices(options);
  8987. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  8988. },
  8989. /**
  8990. *
  8991. * @param {*} [options] Override http request option.
  8992. * @throws {RequiredError}
  8993. */
  8994. async validateAccessToken(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ValidateAccessTokenResponseDto>> {
  8995. const localVarAxiosArgs = await localVarAxiosParamCreator.validateAccessToken(options);
  8996. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  8997. },
  8998. }
  8999. };
  9000. /**
  9001. * AuthenticationApi - factory interface
  9002. * @export
  9003. */
  9004. export const AuthenticationApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  9005. const localVarFp = AuthenticationApiFp(configuration)
  9006. return {
  9007. /**
  9008. *
  9009. * @param {AuthenticationApiAdminSignUpRequest} requestParameters Request parameters.
  9010. * @param {*} [options] Override http request option.
  9011. * @throws {RequiredError}
  9012. */
  9013. adminSignUp(requestParameters: AuthenticationApiAdminSignUpRequest, options?: AxiosRequestConfig): AxiosPromise<AdminSignupResponseDto> {
  9014. return localVarFp.adminSignUp(requestParameters.signUpDto, options).then((request) => request(axios, basePath));
  9015. },
  9016. /**
  9017. *
  9018. * @param {AuthenticationApiChangePasswordRequest} requestParameters Request parameters.
  9019. * @param {*} [options] Override http request option.
  9020. * @throws {RequiredError}
  9021. */
  9022. changePassword(requestParameters: AuthenticationApiChangePasswordRequest, options?: AxiosRequestConfig): AxiosPromise<UserResponseDto> {
  9023. return localVarFp.changePassword(requestParameters.changePasswordDto, options).then((request) => request(axios, basePath));
  9024. },
  9025. /**
  9026. *
  9027. * @param {*} [options] Override http request option.
  9028. * @throws {RequiredError}
  9029. */
  9030. getAuthDevices(options?: AxiosRequestConfig): AxiosPromise<Array<AuthDeviceResponseDto>> {
  9031. return localVarFp.getAuthDevices(options).then((request) => request(axios, basePath));
  9032. },
  9033. /**
  9034. *
  9035. * @param {AuthenticationApiLoginRequest} requestParameters Request parameters.
  9036. * @param {*} [options] Override http request option.
  9037. * @throws {RequiredError}
  9038. */
  9039. login(requestParameters: AuthenticationApiLoginRequest, options?: AxiosRequestConfig): AxiosPromise<LoginResponseDto> {
  9040. return localVarFp.login(requestParameters.loginCredentialDto, options).then((request) => request(axios, basePath));
  9041. },
  9042. /**
  9043. *
  9044. * @param {*} [options] Override http request option.
  9045. * @throws {RequiredError}
  9046. */
  9047. logout(options?: AxiosRequestConfig): AxiosPromise<LogoutResponseDto> {
  9048. return localVarFp.logout(options).then((request) => request(axios, basePath));
  9049. },
  9050. /**
  9051. *
  9052. * @param {AuthenticationApiLogoutAuthDeviceRequest} requestParameters Request parameters.
  9053. * @param {*} [options] Override http request option.
  9054. * @throws {RequiredError}
  9055. */
  9056. logoutAuthDevice(requestParameters: AuthenticationApiLogoutAuthDeviceRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  9057. return localVarFp.logoutAuthDevice(requestParameters.id, options).then((request) => request(axios, basePath));
  9058. },
  9059. /**
  9060. *
  9061. * @param {*} [options] Override http request option.
  9062. * @throws {RequiredError}
  9063. */
  9064. logoutAuthDevices(options?: AxiosRequestConfig): AxiosPromise<void> {
  9065. return localVarFp.logoutAuthDevices(options).then((request) => request(axios, basePath));
  9066. },
  9067. /**
  9068. *
  9069. * @param {*} [options] Override http request option.
  9070. * @throws {RequiredError}
  9071. */
  9072. validateAccessToken(options?: AxiosRequestConfig): AxiosPromise<ValidateAccessTokenResponseDto> {
  9073. return localVarFp.validateAccessToken(options).then((request) => request(axios, basePath));
  9074. },
  9075. };
  9076. };
  9077. /**
  9078. * Request parameters for adminSignUp operation in AuthenticationApi.
  9079. * @export
  9080. * @interface AuthenticationApiAdminSignUpRequest
  9081. */
  9082. export interface AuthenticationApiAdminSignUpRequest {
  9083. /**
  9084. *
  9085. * @type {SignUpDto}
  9086. * @memberof AuthenticationApiAdminSignUp
  9087. */
  9088. readonly signUpDto: SignUpDto
  9089. }
  9090. /**
  9091. * Request parameters for changePassword operation in AuthenticationApi.
  9092. * @export
  9093. * @interface AuthenticationApiChangePasswordRequest
  9094. */
  9095. export interface AuthenticationApiChangePasswordRequest {
  9096. /**
  9097. *
  9098. * @type {ChangePasswordDto}
  9099. * @memberof AuthenticationApiChangePassword
  9100. */
  9101. readonly changePasswordDto: ChangePasswordDto
  9102. }
  9103. /**
  9104. * Request parameters for login operation in AuthenticationApi.
  9105. * @export
  9106. * @interface AuthenticationApiLoginRequest
  9107. */
  9108. export interface AuthenticationApiLoginRequest {
  9109. /**
  9110. *
  9111. * @type {LoginCredentialDto}
  9112. * @memberof AuthenticationApiLogin
  9113. */
  9114. readonly loginCredentialDto: LoginCredentialDto
  9115. }
  9116. /**
  9117. * Request parameters for logoutAuthDevice operation in AuthenticationApi.
  9118. * @export
  9119. * @interface AuthenticationApiLogoutAuthDeviceRequest
  9120. */
  9121. export interface AuthenticationApiLogoutAuthDeviceRequest {
  9122. /**
  9123. *
  9124. * @type {string}
  9125. * @memberof AuthenticationApiLogoutAuthDevice
  9126. */
  9127. readonly id: string
  9128. }
  9129. /**
  9130. * AuthenticationApi - object-oriented interface
  9131. * @export
  9132. * @class AuthenticationApi
  9133. * @extends {BaseAPI}
  9134. */
  9135. export class AuthenticationApi extends BaseAPI {
  9136. /**
  9137. *
  9138. * @param {AuthenticationApiAdminSignUpRequest} requestParameters Request parameters.
  9139. * @param {*} [options] Override http request option.
  9140. * @throws {RequiredError}
  9141. * @memberof AuthenticationApi
  9142. */
  9143. public adminSignUp(requestParameters: AuthenticationApiAdminSignUpRequest, options?: AxiosRequestConfig) {
  9144. return AuthenticationApiFp(this.configuration).adminSignUp(requestParameters.signUpDto, options).then((request) => request(this.axios, this.basePath));
  9145. }
  9146. /**
  9147. *
  9148. * @param {AuthenticationApiChangePasswordRequest} requestParameters Request parameters.
  9149. * @param {*} [options] Override http request option.
  9150. * @throws {RequiredError}
  9151. * @memberof AuthenticationApi
  9152. */
  9153. public changePassword(requestParameters: AuthenticationApiChangePasswordRequest, options?: AxiosRequestConfig) {
  9154. return AuthenticationApiFp(this.configuration).changePassword(requestParameters.changePasswordDto, options).then((request) => request(this.axios, this.basePath));
  9155. }
  9156. /**
  9157. *
  9158. * @param {*} [options] Override http request option.
  9159. * @throws {RequiredError}
  9160. * @memberof AuthenticationApi
  9161. */
  9162. public getAuthDevices(options?: AxiosRequestConfig) {
  9163. return AuthenticationApiFp(this.configuration).getAuthDevices(options).then((request) => request(this.axios, this.basePath));
  9164. }
  9165. /**
  9166. *
  9167. * @param {AuthenticationApiLoginRequest} requestParameters Request parameters.
  9168. * @param {*} [options] Override http request option.
  9169. * @throws {RequiredError}
  9170. * @memberof AuthenticationApi
  9171. */
  9172. public login(requestParameters: AuthenticationApiLoginRequest, options?: AxiosRequestConfig) {
  9173. return AuthenticationApiFp(this.configuration).login(requestParameters.loginCredentialDto, options).then((request) => request(this.axios, this.basePath));
  9174. }
  9175. /**
  9176. *
  9177. * @param {*} [options] Override http request option.
  9178. * @throws {RequiredError}
  9179. * @memberof AuthenticationApi
  9180. */
  9181. public logout(options?: AxiosRequestConfig) {
  9182. return AuthenticationApiFp(this.configuration).logout(options).then((request) => request(this.axios, this.basePath));
  9183. }
  9184. /**
  9185. *
  9186. * @param {AuthenticationApiLogoutAuthDeviceRequest} requestParameters Request parameters.
  9187. * @param {*} [options] Override http request option.
  9188. * @throws {RequiredError}
  9189. * @memberof AuthenticationApi
  9190. */
  9191. public logoutAuthDevice(requestParameters: AuthenticationApiLogoutAuthDeviceRequest, options?: AxiosRequestConfig) {
  9192. return AuthenticationApiFp(this.configuration).logoutAuthDevice(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  9193. }
  9194. /**
  9195. *
  9196. * @param {*} [options] Override http request option.
  9197. * @throws {RequiredError}
  9198. * @memberof AuthenticationApi
  9199. */
  9200. public logoutAuthDevices(options?: AxiosRequestConfig) {
  9201. return AuthenticationApiFp(this.configuration).logoutAuthDevices(options).then((request) => request(this.axios, this.basePath));
  9202. }
  9203. /**
  9204. *
  9205. * @param {*} [options] Override http request option.
  9206. * @throws {RequiredError}
  9207. * @memberof AuthenticationApi
  9208. */
  9209. public validateAccessToken(options?: AxiosRequestConfig) {
  9210. return AuthenticationApiFp(this.configuration).validateAccessToken(options).then((request) => request(this.axios, this.basePath));
  9211. }
  9212. }
  9213. /**
  9214. * JobApi - axios parameter creator
  9215. * @export
  9216. */
  9217. export const JobApiAxiosParamCreator = function (configuration?: Configuration) {
  9218. return {
  9219. /**
  9220. *
  9221. * @param {*} [options] Override http request option.
  9222. * @throws {RequiredError}
  9223. */
  9224. getAllJobsStatus: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9225. const localVarPath = `/jobs`;
  9226. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9227. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9228. let baseOptions;
  9229. if (configuration) {
  9230. baseOptions = configuration.baseOptions;
  9231. }
  9232. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  9233. const localVarHeaderParameter = {} as any;
  9234. const localVarQueryParameter = {} as any;
  9235. // authentication cookie required
  9236. // authentication api_key required
  9237. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  9238. // authentication bearer required
  9239. // http bearer authentication required
  9240. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  9241. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9242. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9243. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9244. return {
  9245. url: toPathString(localVarUrlObj),
  9246. options: localVarRequestOptions,
  9247. };
  9248. },
  9249. /**
  9250. *
  9251. * @param {JobName} id
  9252. * @param {JobCommandDto} jobCommandDto
  9253. * @param {*} [options] Override http request option.
  9254. * @throws {RequiredError}
  9255. */
  9256. sendJobCommand: async (id: JobName, jobCommandDto: JobCommandDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9257. // verify required parameter 'id' is not null or undefined
  9258. assertParamExists('sendJobCommand', 'id', id)
  9259. // verify required parameter 'jobCommandDto' is not null or undefined
  9260. assertParamExists('sendJobCommand', 'jobCommandDto', jobCommandDto)
  9261. const localVarPath = `/jobs/{id}`
  9262. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  9263. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9264. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9265. let baseOptions;
  9266. if (configuration) {
  9267. baseOptions = configuration.baseOptions;
  9268. }
  9269. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  9270. const localVarHeaderParameter = {} as any;
  9271. const localVarQueryParameter = {} as any;
  9272. // authentication cookie required
  9273. // authentication api_key required
  9274. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  9275. // authentication bearer required
  9276. // http bearer authentication required
  9277. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  9278. localVarHeaderParameter['Content-Type'] = 'application/json';
  9279. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9280. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9281. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9282. localVarRequestOptions.data = serializeDataIfNeeded(jobCommandDto, localVarRequestOptions, configuration)
  9283. return {
  9284. url: toPathString(localVarUrlObj),
  9285. options: localVarRequestOptions,
  9286. };
  9287. },
  9288. }
  9289. };
  9290. /**
  9291. * JobApi - functional programming interface
  9292. * @export
  9293. */
  9294. export const JobApiFp = function(configuration?: Configuration) {
  9295. const localVarAxiosParamCreator = JobApiAxiosParamCreator(configuration)
  9296. return {
  9297. /**
  9298. *
  9299. * @param {*} [options] Override http request option.
  9300. * @throws {RequiredError}
  9301. */
  9302. async getAllJobsStatus(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AllJobStatusResponseDto>> {
  9303. const localVarAxiosArgs = await localVarAxiosParamCreator.getAllJobsStatus(options);
  9304. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9305. },
  9306. /**
  9307. *
  9308. * @param {JobName} id
  9309. * @param {JobCommandDto} jobCommandDto
  9310. * @param {*} [options] Override http request option.
  9311. * @throws {RequiredError}
  9312. */
  9313. async sendJobCommand(id: JobName, jobCommandDto: JobCommandDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<JobStatusDto>> {
  9314. const localVarAxiosArgs = await localVarAxiosParamCreator.sendJobCommand(id, jobCommandDto, options);
  9315. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9316. },
  9317. }
  9318. };
  9319. /**
  9320. * JobApi - factory interface
  9321. * @export
  9322. */
  9323. export const JobApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  9324. const localVarFp = JobApiFp(configuration)
  9325. return {
  9326. /**
  9327. *
  9328. * @param {*} [options] Override http request option.
  9329. * @throws {RequiredError}
  9330. */
  9331. getAllJobsStatus(options?: AxiosRequestConfig): AxiosPromise<AllJobStatusResponseDto> {
  9332. return localVarFp.getAllJobsStatus(options).then((request) => request(axios, basePath));
  9333. },
  9334. /**
  9335. *
  9336. * @param {JobApiSendJobCommandRequest} requestParameters Request parameters.
  9337. * @param {*} [options] Override http request option.
  9338. * @throws {RequiredError}
  9339. */
  9340. sendJobCommand(requestParameters: JobApiSendJobCommandRequest, options?: AxiosRequestConfig): AxiosPromise<JobStatusDto> {
  9341. return localVarFp.sendJobCommand(requestParameters.id, requestParameters.jobCommandDto, options).then((request) => request(axios, basePath));
  9342. },
  9343. };
  9344. };
  9345. /**
  9346. * Request parameters for sendJobCommand operation in JobApi.
  9347. * @export
  9348. * @interface JobApiSendJobCommandRequest
  9349. */
  9350. export interface JobApiSendJobCommandRequest {
  9351. /**
  9352. *
  9353. * @type {JobName}
  9354. * @memberof JobApiSendJobCommand
  9355. */
  9356. readonly id: JobName
  9357. /**
  9358. *
  9359. * @type {JobCommandDto}
  9360. * @memberof JobApiSendJobCommand
  9361. */
  9362. readonly jobCommandDto: JobCommandDto
  9363. }
  9364. /**
  9365. * JobApi - object-oriented interface
  9366. * @export
  9367. * @class JobApi
  9368. * @extends {BaseAPI}
  9369. */
  9370. export class JobApi extends BaseAPI {
  9371. /**
  9372. *
  9373. * @param {*} [options] Override http request option.
  9374. * @throws {RequiredError}
  9375. * @memberof JobApi
  9376. */
  9377. public getAllJobsStatus(options?: AxiosRequestConfig) {
  9378. return JobApiFp(this.configuration).getAllJobsStatus(options).then((request) => request(this.axios, this.basePath));
  9379. }
  9380. /**
  9381. *
  9382. * @param {JobApiSendJobCommandRequest} requestParameters Request parameters.
  9383. * @param {*} [options] Override http request option.
  9384. * @throws {RequiredError}
  9385. * @memberof JobApi
  9386. */
  9387. public sendJobCommand(requestParameters: JobApiSendJobCommandRequest, options?: AxiosRequestConfig) {
  9388. return JobApiFp(this.configuration).sendJobCommand(requestParameters.id, requestParameters.jobCommandDto, options).then((request) => request(this.axios, this.basePath));
  9389. }
  9390. }
  9391. /**
  9392. * LibraryApi - axios parameter creator
  9393. * @export
  9394. */
  9395. export const LibraryApiAxiosParamCreator = function (configuration?: Configuration) {
  9396. return {
  9397. /**
  9398. *
  9399. * @param {CreateLibraryDto} createLibraryDto
  9400. * @param {*} [options] Override http request option.
  9401. * @throws {RequiredError}
  9402. */
  9403. createLibrary: async (createLibraryDto: CreateLibraryDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9404. // verify required parameter 'createLibraryDto' is not null or undefined
  9405. assertParamExists('createLibrary', 'createLibraryDto', createLibraryDto)
  9406. const localVarPath = `/library`;
  9407. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9408. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9409. let baseOptions;
  9410. if (configuration) {
  9411. baseOptions = configuration.baseOptions;
  9412. }
  9413. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  9414. const localVarHeaderParameter = {} as any;
  9415. const localVarQueryParameter = {} as any;
  9416. // authentication cookie required
  9417. // authentication api_key required
  9418. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  9419. // authentication bearer required
  9420. // http bearer authentication required
  9421. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  9422. localVarHeaderParameter['Content-Type'] = 'application/json';
  9423. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9424. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9425. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9426. localVarRequestOptions.data = serializeDataIfNeeded(createLibraryDto, localVarRequestOptions, configuration)
  9427. return {
  9428. url: toPathString(localVarUrlObj),
  9429. options: localVarRequestOptions,
  9430. };
  9431. },
  9432. /**
  9433. *
  9434. * @param {string} id
  9435. * @param {*} [options] Override http request option.
  9436. * @throws {RequiredError}
  9437. */
  9438. deleteLibrary: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9439. // verify required parameter 'id' is not null or undefined
  9440. assertParamExists('deleteLibrary', 'id', id)
  9441. const localVarPath = `/library/{id}`
  9442. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  9443. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9444. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9445. let baseOptions;
  9446. if (configuration) {
  9447. baseOptions = configuration.baseOptions;
  9448. }
  9449. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  9450. const localVarHeaderParameter = {} as any;
  9451. const localVarQueryParameter = {} as any;
  9452. // authentication cookie required
  9453. // authentication api_key required
  9454. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  9455. // authentication bearer required
  9456. // http bearer authentication required
  9457. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  9458. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9459. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9460. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9461. return {
  9462. url: toPathString(localVarUrlObj),
  9463. options: localVarRequestOptions,
  9464. };
  9465. },
  9466. /**
  9467. *
  9468. * @param {*} [options] Override http request option.
  9469. * @throws {RequiredError}
  9470. */
  9471. getAllForUser: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9472. const localVarPath = `/library`;
  9473. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9474. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9475. let baseOptions;
  9476. if (configuration) {
  9477. baseOptions = configuration.baseOptions;
  9478. }
  9479. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  9480. const localVarHeaderParameter = {} as any;
  9481. const localVarQueryParameter = {} as any;
  9482. // authentication cookie required
  9483. // authentication api_key required
  9484. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  9485. // authentication bearer required
  9486. // http bearer authentication required
  9487. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  9488. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9489. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9490. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9491. return {
  9492. url: toPathString(localVarUrlObj),
  9493. options: localVarRequestOptions,
  9494. };
  9495. },
  9496. /**
  9497. *
  9498. * @param {string} id
  9499. * @param {*} [options] Override http request option.
  9500. * @throws {RequiredError}
  9501. */
  9502. getLibraryInfo: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9503. // verify required parameter 'id' is not null or undefined
  9504. assertParamExists('getLibraryInfo', 'id', id)
  9505. const localVarPath = `/library/{id}`
  9506. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  9507. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9508. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9509. let baseOptions;
  9510. if (configuration) {
  9511. baseOptions = configuration.baseOptions;
  9512. }
  9513. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  9514. const localVarHeaderParameter = {} as any;
  9515. const localVarQueryParameter = {} as any;
  9516. // authentication cookie required
  9517. // authentication api_key required
  9518. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  9519. // authentication bearer required
  9520. // http bearer authentication required
  9521. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  9522. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9523. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9524. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9525. return {
  9526. url: toPathString(localVarUrlObj),
  9527. options: localVarRequestOptions,
  9528. };
  9529. },
  9530. /**
  9531. *
  9532. * @param {string} id
  9533. * @param {*} [options] Override http request option.
  9534. * @throws {RequiredError}
  9535. */
  9536. getLibraryStatistics: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9537. // verify required parameter 'id' is not null or undefined
  9538. assertParamExists('getLibraryStatistics', 'id', id)
  9539. const localVarPath = `/library/{id}/statistics`
  9540. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  9541. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9542. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9543. let baseOptions;
  9544. if (configuration) {
  9545. baseOptions = configuration.baseOptions;
  9546. }
  9547. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  9548. const localVarHeaderParameter = {} as any;
  9549. const localVarQueryParameter = {} as any;
  9550. // authentication cookie required
  9551. // authentication api_key required
  9552. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  9553. // authentication bearer required
  9554. // http bearer authentication required
  9555. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  9556. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9557. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9558. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9559. return {
  9560. url: toPathString(localVarUrlObj),
  9561. options: localVarRequestOptions,
  9562. };
  9563. },
  9564. /**
  9565. *
  9566. * @param {string} id
  9567. * @param {*} [options] Override http request option.
  9568. * @throws {RequiredError}
  9569. */
  9570. removeOfflineFiles: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9571. // verify required parameter 'id' is not null or undefined
  9572. assertParamExists('removeOfflineFiles', 'id', id)
  9573. const localVarPath = `/library/{id}/removeOffline`
  9574. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  9575. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9576. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9577. let baseOptions;
  9578. if (configuration) {
  9579. baseOptions = configuration.baseOptions;
  9580. }
  9581. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  9582. const localVarHeaderParameter = {} as any;
  9583. const localVarQueryParameter = {} as any;
  9584. // authentication cookie required
  9585. // authentication api_key required
  9586. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  9587. // authentication bearer required
  9588. // http bearer authentication required
  9589. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  9590. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9591. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9592. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9593. return {
  9594. url: toPathString(localVarUrlObj),
  9595. options: localVarRequestOptions,
  9596. };
  9597. },
  9598. /**
  9599. *
  9600. * @param {string} id
  9601. * @param {ScanLibraryDto} scanLibraryDto
  9602. * @param {*} [options] Override http request option.
  9603. * @throws {RequiredError}
  9604. */
  9605. scanLibrary: async (id: string, scanLibraryDto: ScanLibraryDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9606. // verify required parameter 'id' is not null or undefined
  9607. assertParamExists('scanLibrary', 'id', id)
  9608. // verify required parameter 'scanLibraryDto' is not null or undefined
  9609. assertParamExists('scanLibrary', 'scanLibraryDto', scanLibraryDto)
  9610. const localVarPath = `/library/{id}/scan`
  9611. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  9612. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9613. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9614. let baseOptions;
  9615. if (configuration) {
  9616. baseOptions = configuration.baseOptions;
  9617. }
  9618. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  9619. const localVarHeaderParameter = {} as any;
  9620. const localVarQueryParameter = {} as any;
  9621. // authentication cookie required
  9622. // authentication api_key required
  9623. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  9624. // authentication bearer required
  9625. // http bearer authentication required
  9626. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  9627. localVarHeaderParameter['Content-Type'] = 'application/json';
  9628. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9629. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9630. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9631. localVarRequestOptions.data = serializeDataIfNeeded(scanLibraryDto, localVarRequestOptions, configuration)
  9632. return {
  9633. url: toPathString(localVarUrlObj),
  9634. options: localVarRequestOptions,
  9635. };
  9636. },
  9637. /**
  9638. *
  9639. * @param {string} id
  9640. * @param {UpdateLibraryDto} updateLibraryDto
  9641. * @param {*} [options] Override http request option.
  9642. * @throws {RequiredError}
  9643. */
  9644. updateLibrary: async (id: string, updateLibraryDto: UpdateLibraryDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9645. // verify required parameter 'id' is not null or undefined
  9646. assertParamExists('updateLibrary', 'id', id)
  9647. // verify required parameter 'updateLibraryDto' is not null or undefined
  9648. assertParamExists('updateLibrary', 'updateLibraryDto', updateLibraryDto)
  9649. const localVarPath = `/library/{id}`
  9650. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  9651. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9652. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9653. let baseOptions;
  9654. if (configuration) {
  9655. baseOptions = configuration.baseOptions;
  9656. }
  9657. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  9658. const localVarHeaderParameter = {} as any;
  9659. const localVarQueryParameter = {} as any;
  9660. // authentication cookie required
  9661. // authentication api_key required
  9662. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  9663. // authentication bearer required
  9664. // http bearer authentication required
  9665. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  9666. localVarHeaderParameter['Content-Type'] = 'application/json';
  9667. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9668. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9669. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9670. localVarRequestOptions.data = serializeDataIfNeeded(updateLibraryDto, localVarRequestOptions, configuration)
  9671. return {
  9672. url: toPathString(localVarUrlObj),
  9673. options: localVarRequestOptions,
  9674. };
  9675. },
  9676. }
  9677. };
  9678. /**
  9679. * LibraryApi - functional programming interface
  9680. * @export
  9681. */
  9682. export const LibraryApiFp = function(configuration?: Configuration) {
  9683. const localVarAxiosParamCreator = LibraryApiAxiosParamCreator(configuration)
  9684. return {
  9685. /**
  9686. *
  9687. * @param {CreateLibraryDto} createLibraryDto
  9688. * @param {*} [options] Override http request option.
  9689. * @throws {RequiredError}
  9690. */
  9691. async createLibrary(createLibraryDto: CreateLibraryDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LibraryResponseDto>> {
  9692. const localVarAxiosArgs = await localVarAxiosParamCreator.createLibrary(createLibraryDto, options);
  9693. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9694. },
  9695. /**
  9696. *
  9697. * @param {string} id
  9698. * @param {*} [options] Override http request option.
  9699. * @throws {RequiredError}
  9700. */
  9701. async deleteLibrary(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  9702. const localVarAxiosArgs = await localVarAxiosParamCreator.deleteLibrary(id, options);
  9703. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9704. },
  9705. /**
  9706. *
  9707. * @param {*} [options] Override http request option.
  9708. * @throws {RequiredError}
  9709. */
  9710. async getAllForUser(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<LibraryResponseDto>>> {
  9711. const localVarAxiosArgs = await localVarAxiosParamCreator.getAllForUser(options);
  9712. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9713. },
  9714. /**
  9715. *
  9716. * @param {string} id
  9717. * @param {*} [options] Override http request option.
  9718. * @throws {RequiredError}
  9719. */
  9720. async getLibraryInfo(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LibraryResponseDto>> {
  9721. const localVarAxiosArgs = await localVarAxiosParamCreator.getLibraryInfo(id, options);
  9722. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9723. },
  9724. /**
  9725. *
  9726. * @param {string} id
  9727. * @param {*} [options] Override http request option.
  9728. * @throws {RequiredError}
  9729. */
  9730. async getLibraryStatistics(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LibraryStatsResponseDto>> {
  9731. const localVarAxiosArgs = await localVarAxiosParamCreator.getLibraryStatistics(id, options);
  9732. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9733. },
  9734. /**
  9735. *
  9736. * @param {string} id
  9737. * @param {*} [options] Override http request option.
  9738. * @throws {RequiredError}
  9739. */
  9740. async removeOfflineFiles(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  9741. const localVarAxiosArgs = await localVarAxiosParamCreator.removeOfflineFiles(id, options);
  9742. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9743. },
  9744. /**
  9745. *
  9746. * @param {string} id
  9747. * @param {ScanLibraryDto} scanLibraryDto
  9748. * @param {*} [options] Override http request option.
  9749. * @throws {RequiredError}
  9750. */
  9751. async scanLibrary(id: string, scanLibraryDto: ScanLibraryDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  9752. const localVarAxiosArgs = await localVarAxiosParamCreator.scanLibrary(id, scanLibraryDto, options);
  9753. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9754. },
  9755. /**
  9756. *
  9757. * @param {string} id
  9758. * @param {UpdateLibraryDto} updateLibraryDto
  9759. * @param {*} [options] Override http request option.
  9760. * @throws {RequiredError}
  9761. */
  9762. async updateLibrary(id: string, updateLibraryDto: UpdateLibraryDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LibraryResponseDto>> {
  9763. const localVarAxiosArgs = await localVarAxiosParamCreator.updateLibrary(id, updateLibraryDto, options);
  9764. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9765. },
  9766. }
  9767. };
  9768. /**
  9769. * LibraryApi - factory interface
  9770. * @export
  9771. */
  9772. export const LibraryApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  9773. const localVarFp = LibraryApiFp(configuration)
  9774. return {
  9775. /**
  9776. *
  9777. * @param {LibraryApiCreateLibraryRequest} requestParameters Request parameters.
  9778. * @param {*} [options] Override http request option.
  9779. * @throws {RequiredError}
  9780. */
  9781. createLibrary(requestParameters: LibraryApiCreateLibraryRequest, options?: AxiosRequestConfig): AxiosPromise<LibraryResponseDto> {
  9782. return localVarFp.createLibrary(requestParameters.createLibraryDto, options).then((request) => request(axios, basePath));
  9783. },
  9784. /**
  9785. *
  9786. * @param {LibraryApiDeleteLibraryRequest} requestParameters Request parameters.
  9787. * @param {*} [options] Override http request option.
  9788. * @throws {RequiredError}
  9789. */
  9790. deleteLibrary(requestParameters: LibraryApiDeleteLibraryRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  9791. return localVarFp.deleteLibrary(requestParameters.id, options).then((request) => request(axios, basePath));
  9792. },
  9793. /**
  9794. *
  9795. * @param {*} [options] Override http request option.
  9796. * @throws {RequiredError}
  9797. */
  9798. getAllForUser(options?: AxiosRequestConfig): AxiosPromise<Array<LibraryResponseDto>> {
  9799. return localVarFp.getAllForUser(options).then((request) => request(axios, basePath));
  9800. },
  9801. /**
  9802. *
  9803. * @param {LibraryApiGetLibraryInfoRequest} requestParameters Request parameters.
  9804. * @param {*} [options] Override http request option.
  9805. * @throws {RequiredError}
  9806. */
  9807. getLibraryInfo(requestParameters: LibraryApiGetLibraryInfoRequest, options?: AxiosRequestConfig): AxiosPromise<LibraryResponseDto> {
  9808. return localVarFp.getLibraryInfo(requestParameters.id, options).then((request) => request(axios, basePath));
  9809. },
  9810. /**
  9811. *
  9812. * @param {LibraryApiGetLibraryStatisticsRequest} requestParameters Request parameters.
  9813. * @param {*} [options] Override http request option.
  9814. * @throws {RequiredError}
  9815. */
  9816. getLibraryStatistics(requestParameters: LibraryApiGetLibraryStatisticsRequest, options?: AxiosRequestConfig): AxiosPromise<LibraryStatsResponseDto> {
  9817. return localVarFp.getLibraryStatistics(requestParameters.id, options).then((request) => request(axios, basePath));
  9818. },
  9819. /**
  9820. *
  9821. * @param {LibraryApiRemoveOfflineFilesRequest} requestParameters Request parameters.
  9822. * @param {*} [options] Override http request option.
  9823. * @throws {RequiredError}
  9824. */
  9825. removeOfflineFiles(requestParameters: LibraryApiRemoveOfflineFilesRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  9826. return localVarFp.removeOfflineFiles(requestParameters.id, options).then((request) => request(axios, basePath));
  9827. },
  9828. /**
  9829. *
  9830. * @param {LibraryApiScanLibraryRequest} requestParameters Request parameters.
  9831. * @param {*} [options] Override http request option.
  9832. * @throws {RequiredError}
  9833. */
  9834. scanLibrary(requestParameters: LibraryApiScanLibraryRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  9835. return localVarFp.scanLibrary(requestParameters.id, requestParameters.scanLibraryDto, options).then((request) => request(axios, basePath));
  9836. },
  9837. /**
  9838. *
  9839. * @param {LibraryApiUpdateLibraryRequest} requestParameters Request parameters.
  9840. * @param {*} [options] Override http request option.
  9841. * @throws {RequiredError}
  9842. */
  9843. updateLibrary(requestParameters: LibraryApiUpdateLibraryRequest, options?: AxiosRequestConfig): AxiosPromise<LibraryResponseDto> {
  9844. return localVarFp.updateLibrary(requestParameters.id, requestParameters.updateLibraryDto, options).then((request) => request(axios, basePath));
  9845. },
  9846. };
  9847. };
  9848. /**
  9849. * Request parameters for createLibrary operation in LibraryApi.
  9850. * @export
  9851. * @interface LibraryApiCreateLibraryRequest
  9852. */
  9853. export interface LibraryApiCreateLibraryRequest {
  9854. /**
  9855. *
  9856. * @type {CreateLibraryDto}
  9857. * @memberof LibraryApiCreateLibrary
  9858. */
  9859. readonly createLibraryDto: CreateLibraryDto
  9860. }
  9861. /**
  9862. * Request parameters for deleteLibrary operation in LibraryApi.
  9863. * @export
  9864. * @interface LibraryApiDeleteLibraryRequest
  9865. */
  9866. export interface LibraryApiDeleteLibraryRequest {
  9867. /**
  9868. *
  9869. * @type {string}
  9870. * @memberof LibraryApiDeleteLibrary
  9871. */
  9872. readonly id: string
  9873. }
  9874. /**
  9875. * Request parameters for getLibraryInfo operation in LibraryApi.
  9876. * @export
  9877. * @interface LibraryApiGetLibraryInfoRequest
  9878. */
  9879. export interface LibraryApiGetLibraryInfoRequest {
  9880. /**
  9881. *
  9882. * @type {string}
  9883. * @memberof LibraryApiGetLibraryInfo
  9884. */
  9885. readonly id: string
  9886. }
  9887. /**
  9888. * Request parameters for getLibraryStatistics operation in LibraryApi.
  9889. * @export
  9890. * @interface LibraryApiGetLibraryStatisticsRequest
  9891. */
  9892. export interface LibraryApiGetLibraryStatisticsRequest {
  9893. /**
  9894. *
  9895. * @type {string}
  9896. * @memberof LibraryApiGetLibraryStatistics
  9897. */
  9898. readonly id: string
  9899. }
  9900. /**
  9901. * Request parameters for removeOfflineFiles operation in LibraryApi.
  9902. * @export
  9903. * @interface LibraryApiRemoveOfflineFilesRequest
  9904. */
  9905. export interface LibraryApiRemoveOfflineFilesRequest {
  9906. /**
  9907. *
  9908. * @type {string}
  9909. * @memberof LibraryApiRemoveOfflineFiles
  9910. */
  9911. readonly id: string
  9912. }
  9913. /**
  9914. * Request parameters for scanLibrary operation in LibraryApi.
  9915. * @export
  9916. * @interface LibraryApiScanLibraryRequest
  9917. */
  9918. export interface LibraryApiScanLibraryRequest {
  9919. /**
  9920. *
  9921. * @type {string}
  9922. * @memberof LibraryApiScanLibrary
  9923. */
  9924. readonly id: string
  9925. /**
  9926. *
  9927. * @type {ScanLibraryDto}
  9928. * @memberof LibraryApiScanLibrary
  9929. */
  9930. readonly scanLibraryDto: ScanLibraryDto
  9931. }
  9932. /**
  9933. * Request parameters for updateLibrary operation in LibraryApi.
  9934. * @export
  9935. * @interface LibraryApiUpdateLibraryRequest
  9936. */
  9937. export interface LibraryApiUpdateLibraryRequest {
  9938. /**
  9939. *
  9940. * @type {string}
  9941. * @memberof LibraryApiUpdateLibrary
  9942. */
  9943. readonly id: string
  9944. /**
  9945. *
  9946. * @type {UpdateLibraryDto}
  9947. * @memberof LibraryApiUpdateLibrary
  9948. */
  9949. readonly updateLibraryDto: UpdateLibraryDto
  9950. }
  9951. /**
  9952. * LibraryApi - object-oriented interface
  9953. * @export
  9954. * @class LibraryApi
  9955. * @extends {BaseAPI}
  9956. */
  9957. export class LibraryApi extends BaseAPI {
  9958. /**
  9959. *
  9960. * @param {LibraryApiCreateLibraryRequest} requestParameters Request parameters.
  9961. * @param {*} [options] Override http request option.
  9962. * @throws {RequiredError}
  9963. * @memberof LibraryApi
  9964. */
  9965. public createLibrary(requestParameters: LibraryApiCreateLibraryRequest, options?: AxiosRequestConfig) {
  9966. return LibraryApiFp(this.configuration).createLibrary(requestParameters.createLibraryDto, options).then((request) => request(this.axios, this.basePath));
  9967. }
  9968. /**
  9969. *
  9970. * @param {LibraryApiDeleteLibraryRequest} requestParameters Request parameters.
  9971. * @param {*} [options] Override http request option.
  9972. * @throws {RequiredError}
  9973. * @memberof LibraryApi
  9974. */
  9975. public deleteLibrary(requestParameters: LibraryApiDeleteLibraryRequest, options?: AxiosRequestConfig) {
  9976. return LibraryApiFp(this.configuration).deleteLibrary(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  9977. }
  9978. /**
  9979. *
  9980. * @param {*} [options] Override http request option.
  9981. * @throws {RequiredError}
  9982. * @memberof LibraryApi
  9983. */
  9984. public getAllForUser(options?: AxiosRequestConfig) {
  9985. return LibraryApiFp(this.configuration).getAllForUser(options).then((request) => request(this.axios, this.basePath));
  9986. }
  9987. /**
  9988. *
  9989. * @param {LibraryApiGetLibraryInfoRequest} requestParameters Request parameters.
  9990. * @param {*} [options] Override http request option.
  9991. * @throws {RequiredError}
  9992. * @memberof LibraryApi
  9993. */
  9994. public getLibraryInfo(requestParameters: LibraryApiGetLibraryInfoRequest, options?: AxiosRequestConfig) {
  9995. return LibraryApiFp(this.configuration).getLibraryInfo(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  9996. }
  9997. /**
  9998. *
  9999. * @param {LibraryApiGetLibraryStatisticsRequest} requestParameters Request parameters.
  10000. * @param {*} [options] Override http request option.
  10001. * @throws {RequiredError}
  10002. * @memberof LibraryApi
  10003. */
  10004. public getLibraryStatistics(requestParameters: LibraryApiGetLibraryStatisticsRequest, options?: AxiosRequestConfig) {
  10005. return LibraryApiFp(this.configuration).getLibraryStatistics(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  10006. }
  10007. /**
  10008. *
  10009. * @param {LibraryApiRemoveOfflineFilesRequest} requestParameters Request parameters.
  10010. * @param {*} [options] Override http request option.
  10011. * @throws {RequiredError}
  10012. * @memberof LibraryApi
  10013. */
  10014. public removeOfflineFiles(requestParameters: LibraryApiRemoveOfflineFilesRequest, options?: AxiosRequestConfig) {
  10015. return LibraryApiFp(this.configuration).removeOfflineFiles(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  10016. }
  10017. /**
  10018. *
  10019. * @param {LibraryApiScanLibraryRequest} requestParameters Request parameters.
  10020. * @param {*} [options] Override http request option.
  10021. * @throws {RequiredError}
  10022. * @memberof LibraryApi
  10023. */
  10024. public scanLibrary(requestParameters: LibraryApiScanLibraryRequest, options?: AxiosRequestConfig) {
  10025. return LibraryApiFp(this.configuration).scanLibrary(requestParameters.id, requestParameters.scanLibraryDto, options).then((request) => request(this.axios, this.basePath));
  10026. }
  10027. /**
  10028. *
  10029. * @param {LibraryApiUpdateLibraryRequest} requestParameters Request parameters.
  10030. * @param {*} [options] Override http request option.
  10031. * @throws {RequiredError}
  10032. * @memberof LibraryApi
  10033. */
  10034. public updateLibrary(requestParameters: LibraryApiUpdateLibraryRequest, options?: AxiosRequestConfig) {
  10035. return LibraryApiFp(this.configuration).updateLibrary(requestParameters.id, requestParameters.updateLibraryDto, options).then((request) => request(this.axios, this.basePath));
  10036. }
  10037. }
  10038. /**
  10039. * OAuthApi - axios parameter creator
  10040. * @export
  10041. */
  10042. export const OAuthApiAxiosParamCreator = function (configuration?: Configuration) {
  10043. return {
  10044. /**
  10045. *
  10046. * @param {OAuthConfigDto} oAuthConfigDto
  10047. * @param {*} [options] Override http request option.
  10048. * @throws {RequiredError}
  10049. */
  10050. authorizeOAuth: async (oAuthConfigDto: OAuthConfigDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10051. // verify required parameter 'oAuthConfigDto' is not null or undefined
  10052. assertParamExists('authorizeOAuth', 'oAuthConfigDto', oAuthConfigDto)
  10053. const localVarPath = `/oauth/authorize`;
  10054. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10055. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10056. let baseOptions;
  10057. if (configuration) {
  10058. baseOptions = configuration.baseOptions;
  10059. }
  10060. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  10061. const localVarHeaderParameter = {} as any;
  10062. const localVarQueryParameter = {} as any;
  10063. localVarHeaderParameter['Content-Type'] = 'application/json';
  10064. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10065. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10066. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10067. localVarRequestOptions.data = serializeDataIfNeeded(oAuthConfigDto, localVarRequestOptions, configuration)
  10068. return {
  10069. url: toPathString(localVarUrlObj),
  10070. options: localVarRequestOptions,
  10071. };
  10072. },
  10073. /**
  10074. *
  10075. * @param {OAuthCallbackDto} oAuthCallbackDto
  10076. * @param {*} [options] Override http request option.
  10077. * @throws {RequiredError}
  10078. */
  10079. callback: async (oAuthCallbackDto: OAuthCallbackDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10080. // verify required parameter 'oAuthCallbackDto' is not null or undefined
  10081. assertParamExists('callback', 'oAuthCallbackDto', oAuthCallbackDto)
  10082. const localVarPath = `/oauth/callback`;
  10083. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10084. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10085. let baseOptions;
  10086. if (configuration) {
  10087. baseOptions = configuration.baseOptions;
  10088. }
  10089. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  10090. const localVarHeaderParameter = {} as any;
  10091. const localVarQueryParameter = {} as any;
  10092. localVarHeaderParameter['Content-Type'] = 'application/json';
  10093. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10094. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10095. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10096. localVarRequestOptions.data = serializeDataIfNeeded(oAuthCallbackDto, localVarRequestOptions, configuration)
  10097. return {
  10098. url: toPathString(localVarUrlObj),
  10099. options: localVarRequestOptions,
  10100. };
  10101. },
  10102. /**
  10103. * @deprecated use feature flags and /oauth/authorize
  10104. * @param {OAuthConfigDto} oAuthConfigDto
  10105. * @param {*} [options] Override http request option.
  10106. * @deprecated
  10107. * @throws {RequiredError}
  10108. */
  10109. generateConfig: async (oAuthConfigDto: OAuthConfigDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10110. // verify required parameter 'oAuthConfigDto' is not null or undefined
  10111. assertParamExists('generateConfig', 'oAuthConfigDto', oAuthConfigDto)
  10112. const localVarPath = `/oauth/config`;
  10113. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10114. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10115. let baseOptions;
  10116. if (configuration) {
  10117. baseOptions = configuration.baseOptions;
  10118. }
  10119. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  10120. const localVarHeaderParameter = {} as any;
  10121. const localVarQueryParameter = {} as any;
  10122. localVarHeaderParameter['Content-Type'] = 'application/json';
  10123. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10124. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10125. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10126. localVarRequestOptions.data = serializeDataIfNeeded(oAuthConfigDto, localVarRequestOptions, configuration)
  10127. return {
  10128. url: toPathString(localVarUrlObj),
  10129. options: localVarRequestOptions,
  10130. };
  10131. },
  10132. /**
  10133. *
  10134. * @param {OAuthCallbackDto} oAuthCallbackDto
  10135. * @param {*} [options] Override http request option.
  10136. * @throws {RequiredError}
  10137. */
  10138. link: async (oAuthCallbackDto: OAuthCallbackDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10139. // verify required parameter 'oAuthCallbackDto' is not null or undefined
  10140. assertParamExists('link', 'oAuthCallbackDto', oAuthCallbackDto)
  10141. const localVarPath = `/oauth/link`;
  10142. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10143. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10144. let baseOptions;
  10145. if (configuration) {
  10146. baseOptions = configuration.baseOptions;
  10147. }
  10148. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  10149. const localVarHeaderParameter = {} as any;
  10150. const localVarQueryParameter = {} as any;
  10151. // authentication cookie required
  10152. // authentication api_key required
  10153. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10154. // authentication bearer required
  10155. // http bearer authentication required
  10156. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10157. localVarHeaderParameter['Content-Type'] = 'application/json';
  10158. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10159. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10160. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10161. localVarRequestOptions.data = serializeDataIfNeeded(oAuthCallbackDto, localVarRequestOptions, configuration)
  10162. return {
  10163. url: toPathString(localVarUrlObj),
  10164. options: localVarRequestOptions,
  10165. };
  10166. },
  10167. /**
  10168. *
  10169. * @param {*} [options] Override http request option.
  10170. * @throws {RequiredError}
  10171. */
  10172. mobileRedirect: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10173. const localVarPath = `/oauth/mobile-redirect`;
  10174. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10175. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10176. let baseOptions;
  10177. if (configuration) {
  10178. baseOptions = configuration.baseOptions;
  10179. }
  10180. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  10181. const localVarHeaderParameter = {} as any;
  10182. const localVarQueryParameter = {} as any;
  10183. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10184. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10185. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10186. return {
  10187. url: toPathString(localVarUrlObj),
  10188. options: localVarRequestOptions,
  10189. };
  10190. },
  10191. /**
  10192. *
  10193. * @param {*} [options] Override http request option.
  10194. * @throws {RequiredError}
  10195. */
  10196. unlink: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10197. const localVarPath = `/oauth/unlink`;
  10198. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10199. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10200. let baseOptions;
  10201. if (configuration) {
  10202. baseOptions = configuration.baseOptions;
  10203. }
  10204. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  10205. const localVarHeaderParameter = {} as any;
  10206. const localVarQueryParameter = {} as any;
  10207. // authentication cookie required
  10208. // authentication api_key required
  10209. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10210. // authentication bearer required
  10211. // http bearer authentication required
  10212. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10213. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10214. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10215. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10216. return {
  10217. url: toPathString(localVarUrlObj),
  10218. options: localVarRequestOptions,
  10219. };
  10220. },
  10221. }
  10222. };
  10223. /**
  10224. * OAuthApi - functional programming interface
  10225. * @export
  10226. */
  10227. export const OAuthApiFp = function(configuration?: Configuration) {
  10228. const localVarAxiosParamCreator = OAuthApiAxiosParamCreator(configuration)
  10229. return {
  10230. /**
  10231. *
  10232. * @param {OAuthConfigDto} oAuthConfigDto
  10233. * @param {*} [options] Override http request option.
  10234. * @throws {RequiredError}
  10235. */
  10236. async authorizeOAuth(oAuthConfigDto: OAuthConfigDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OAuthAuthorizeResponseDto>> {
  10237. const localVarAxiosArgs = await localVarAxiosParamCreator.authorizeOAuth(oAuthConfigDto, options);
  10238. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10239. },
  10240. /**
  10241. *
  10242. * @param {OAuthCallbackDto} oAuthCallbackDto
  10243. * @param {*} [options] Override http request option.
  10244. * @throws {RequiredError}
  10245. */
  10246. async callback(oAuthCallbackDto: OAuthCallbackDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LoginResponseDto>> {
  10247. const localVarAxiosArgs = await localVarAxiosParamCreator.callback(oAuthCallbackDto, options);
  10248. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10249. },
  10250. /**
  10251. * @deprecated use feature flags and /oauth/authorize
  10252. * @param {OAuthConfigDto} oAuthConfigDto
  10253. * @param {*} [options] Override http request option.
  10254. * @deprecated
  10255. * @throws {RequiredError}
  10256. */
  10257. async generateConfig(oAuthConfigDto: OAuthConfigDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OAuthConfigResponseDto>> {
  10258. const localVarAxiosArgs = await localVarAxiosParamCreator.generateConfig(oAuthConfigDto, options);
  10259. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10260. },
  10261. /**
  10262. *
  10263. * @param {OAuthCallbackDto} oAuthCallbackDto
  10264. * @param {*} [options] Override http request option.
  10265. * @throws {RequiredError}
  10266. */
  10267. async link(oAuthCallbackDto: OAuthCallbackDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  10268. const localVarAxiosArgs = await localVarAxiosParamCreator.link(oAuthCallbackDto, options);
  10269. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10270. },
  10271. /**
  10272. *
  10273. * @param {*} [options] Override http request option.
  10274. * @throws {RequiredError}
  10275. */
  10276. async mobileRedirect(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  10277. const localVarAxiosArgs = await localVarAxiosParamCreator.mobileRedirect(options);
  10278. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10279. },
  10280. /**
  10281. *
  10282. * @param {*} [options] Override http request option.
  10283. * @throws {RequiredError}
  10284. */
  10285. async unlink(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  10286. const localVarAxiosArgs = await localVarAxiosParamCreator.unlink(options);
  10287. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10288. },
  10289. }
  10290. };
  10291. /**
  10292. * OAuthApi - factory interface
  10293. * @export
  10294. */
  10295. export const OAuthApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  10296. const localVarFp = OAuthApiFp(configuration)
  10297. return {
  10298. /**
  10299. *
  10300. * @param {OAuthApiAuthorizeOAuthRequest} requestParameters Request parameters.
  10301. * @param {*} [options] Override http request option.
  10302. * @throws {RequiredError}
  10303. */
  10304. authorizeOAuth(requestParameters: OAuthApiAuthorizeOAuthRequest, options?: AxiosRequestConfig): AxiosPromise<OAuthAuthorizeResponseDto> {
  10305. return localVarFp.authorizeOAuth(requestParameters.oAuthConfigDto, options).then((request) => request(axios, basePath));
  10306. },
  10307. /**
  10308. *
  10309. * @param {OAuthApiCallbackRequest} requestParameters Request parameters.
  10310. * @param {*} [options] Override http request option.
  10311. * @throws {RequiredError}
  10312. */
  10313. callback(requestParameters: OAuthApiCallbackRequest, options?: AxiosRequestConfig): AxiosPromise<LoginResponseDto> {
  10314. return localVarFp.callback(requestParameters.oAuthCallbackDto, options).then((request) => request(axios, basePath));
  10315. },
  10316. /**
  10317. * @deprecated use feature flags and /oauth/authorize
  10318. * @param {OAuthApiGenerateConfigRequest} requestParameters Request parameters.
  10319. * @param {*} [options] Override http request option.
  10320. * @deprecated
  10321. * @throws {RequiredError}
  10322. */
  10323. generateConfig(requestParameters: OAuthApiGenerateConfigRequest, options?: AxiosRequestConfig): AxiosPromise<OAuthConfigResponseDto> {
  10324. return localVarFp.generateConfig(requestParameters.oAuthConfigDto, options).then((request) => request(axios, basePath));
  10325. },
  10326. /**
  10327. *
  10328. * @param {OAuthApiLinkRequest} requestParameters Request parameters.
  10329. * @param {*} [options] Override http request option.
  10330. * @throws {RequiredError}
  10331. */
  10332. link(requestParameters: OAuthApiLinkRequest, options?: AxiosRequestConfig): AxiosPromise<UserResponseDto> {
  10333. return localVarFp.link(requestParameters.oAuthCallbackDto, options).then((request) => request(axios, basePath));
  10334. },
  10335. /**
  10336. *
  10337. * @param {*} [options] Override http request option.
  10338. * @throws {RequiredError}
  10339. */
  10340. mobileRedirect(options?: AxiosRequestConfig): AxiosPromise<void> {
  10341. return localVarFp.mobileRedirect(options).then((request) => request(axios, basePath));
  10342. },
  10343. /**
  10344. *
  10345. * @param {*} [options] Override http request option.
  10346. * @throws {RequiredError}
  10347. */
  10348. unlink(options?: AxiosRequestConfig): AxiosPromise<UserResponseDto> {
  10349. return localVarFp.unlink(options).then((request) => request(axios, basePath));
  10350. },
  10351. };
  10352. };
  10353. /**
  10354. * Request parameters for authorizeOAuth operation in OAuthApi.
  10355. * @export
  10356. * @interface OAuthApiAuthorizeOAuthRequest
  10357. */
  10358. export interface OAuthApiAuthorizeOAuthRequest {
  10359. /**
  10360. *
  10361. * @type {OAuthConfigDto}
  10362. * @memberof OAuthApiAuthorizeOAuth
  10363. */
  10364. readonly oAuthConfigDto: OAuthConfigDto
  10365. }
  10366. /**
  10367. * Request parameters for callback operation in OAuthApi.
  10368. * @export
  10369. * @interface OAuthApiCallbackRequest
  10370. */
  10371. export interface OAuthApiCallbackRequest {
  10372. /**
  10373. *
  10374. * @type {OAuthCallbackDto}
  10375. * @memberof OAuthApiCallback
  10376. */
  10377. readonly oAuthCallbackDto: OAuthCallbackDto
  10378. }
  10379. /**
  10380. * Request parameters for generateConfig operation in OAuthApi.
  10381. * @export
  10382. * @interface OAuthApiGenerateConfigRequest
  10383. */
  10384. export interface OAuthApiGenerateConfigRequest {
  10385. /**
  10386. *
  10387. * @type {OAuthConfigDto}
  10388. * @memberof OAuthApiGenerateConfig
  10389. */
  10390. readonly oAuthConfigDto: OAuthConfigDto
  10391. }
  10392. /**
  10393. * Request parameters for link operation in OAuthApi.
  10394. * @export
  10395. * @interface OAuthApiLinkRequest
  10396. */
  10397. export interface OAuthApiLinkRequest {
  10398. /**
  10399. *
  10400. * @type {OAuthCallbackDto}
  10401. * @memberof OAuthApiLink
  10402. */
  10403. readonly oAuthCallbackDto: OAuthCallbackDto
  10404. }
  10405. /**
  10406. * OAuthApi - object-oriented interface
  10407. * @export
  10408. * @class OAuthApi
  10409. * @extends {BaseAPI}
  10410. */
  10411. export class OAuthApi extends BaseAPI {
  10412. /**
  10413. *
  10414. * @param {OAuthApiAuthorizeOAuthRequest} requestParameters Request parameters.
  10415. * @param {*} [options] Override http request option.
  10416. * @throws {RequiredError}
  10417. * @memberof OAuthApi
  10418. */
  10419. public authorizeOAuth(requestParameters: OAuthApiAuthorizeOAuthRequest, options?: AxiosRequestConfig) {
  10420. return OAuthApiFp(this.configuration).authorizeOAuth(requestParameters.oAuthConfigDto, options).then((request) => request(this.axios, this.basePath));
  10421. }
  10422. /**
  10423. *
  10424. * @param {OAuthApiCallbackRequest} requestParameters Request parameters.
  10425. * @param {*} [options] Override http request option.
  10426. * @throws {RequiredError}
  10427. * @memberof OAuthApi
  10428. */
  10429. public callback(requestParameters: OAuthApiCallbackRequest, options?: AxiosRequestConfig) {
  10430. return OAuthApiFp(this.configuration).callback(requestParameters.oAuthCallbackDto, options).then((request) => request(this.axios, this.basePath));
  10431. }
  10432. /**
  10433. * @deprecated use feature flags and /oauth/authorize
  10434. * @param {OAuthApiGenerateConfigRequest} requestParameters Request parameters.
  10435. * @param {*} [options] Override http request option.
  10436. * @deprecated
  10437. * @throws {RequiredError}
  10438. * @memberof OAuthApi
  10439. */
  10440. public generateConfig(requestParameters: OAuthApiGenerateConfigRequest, options?: AxiosRequestConfig) {
  10441. return OAuthApiFp(this.configuration).generateConfig(requestParameters.oAuthConfigDto, options).then((request) => request(this.axios, this.basePath));
  10442. }
  10443. /**
  10444. *
  10445. * @param {OAuthApiLinkRequest} requestParameters Request parameters.
  10446. * @param {*} [options] Override http request option.
  10447. * @throws {RequiredError}
  10448. * @memberof OAuthApi
  10449. */
  10450. public link(requestParameters: OAuthApiLinkRequest, options?: AxiosRequestConfig) {
  10451. return OAuthApiFp(this.configuration).link(requestParameters.oAuthCallbackDto, options).then((request) => request(this.axios, this.basePath));
  10452. }
  10453. /**
  10454. *
  10455. * @param {*} [options] Override http request option.
  10456. * @throws {RequiredError}
  10457. * @memberof OAuthApi
  10458. */
  10459. public mobileRedirect(options?: AxiosRequestConfig) {
  10460. return OAuthApiFp(this.configuration).mobileRedirect(options).then((request) => request(this.axios, this.basePath));
  10461. }
  10462. /**
  10463. *
  10464. * @param {*} [options] Override http request option.
  10465. * @throws {RequiredError}
  10466. * @memberof OAuthApi
  10467. */
  10468. public unlink(options?: AxiosRequestConfig) {
  10469. return OAuthApiFp(this.configuration).unlink(options).then((request) => request(this.axios, this.basePath));
  10470. }
  10471. }
  10472. /**
  10473. * PartnerApi - axios parameter creator
  10474. * @export
  10475. */
  10476. export const PartnerApiAxiosParamCreator = function (configuration?: Configuration) {
  10477. return {
  10478. /**
  10479. *
  10480. * @param {string} id
  10481. * @param {*} [options] Override http request option.
  10482. * @throws {RequiredError}
  10483. */
  10484. createPartner: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10485. // verify required parameter 'id' is not null or undefined
  10486. assertParamExists('createPartner', 'id', id)
  10487. const localVarPath = `/partner/{id}`
  10488. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  10489. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10490. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10491. let baseOptions;
  10492. if (configuration) {
  10493. baseOptions = configuration.baseOptions;
  10494. }
  10495. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  10496. const localVarHeaderParameter = {} as any;
  10497. const localVarQueryParameter = {} as any;
  10498. // authentication cookie required
  10499. // authentication api_key required
  10500. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10501. // authentication bearer required
  10502. // http bearer authentication required
  10503. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10504. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10505. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10506. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10507. return {
  10508. url: toPathString(localVarUrlObj),
  10509. options: localVarRequestOptions,
  10510. };
  10511. },
  10512. /**
  10513. *
  10514. * @param {'shared-by' | 'shared-with'} direction
  10515. * @param {*} [options] Override http request option.
  10516. * @throws {RequiredError}
  10517. */
  10518. getPartners: async (direction: 'shared-by' | 'shared-with', options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10519. // verify required parameter 'direction' is not null or undefined
  10520. assertParamExists('getPartners', 'direction', direction)
  10521. const localVarPath = `/partner`;
  10522. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10523. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10524. let baseOptions;
  10525. if (configuration) {
  10526. baseOptions = configuration.baseOptions;
  10527. }
  10528. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  10529. const localVarHeaderParameter = {} as any;
  10530. const localVarQueryParameter = {} as any;
  10531. // authentication cookie required
  10532. // authentication api_key required
  10533. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10534. // authentication bearer required
  10535. // http bearer authentication required
  10536. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10537. if (direction !== undefined) {
  10538. localVarQueryParameter['direction'] = direction;
  10539. }
  10540. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10541. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10542. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10543. return {
  10544. url: toPathString(localVarUrlObj),
  10545. options: localVarRequestOptions,
  10546. };
  10547. },
  10548. /**
  10549. *
  10550. * @param {string} id
  10551. * @param {*} [options] Override http request option.
  10552. * @throws {RequiredError}
  10553. */
  10554. removePartner: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10555. // verify required parameter 'id' is not null or undefined
  10556. assertParamExists('removePartner', 'id', id)
  10557. const localVarPath = `/partner/{id}`
  10558. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  10559. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10560. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10561. let baseOptions;
  10562. if (configuration) {
  10563. baseOptions = configuration.baseOptions;
  10564. }
  10565. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  10566. const localVarHeaderParameter = {} as any;
  10567. const localVarQueryParameter = {} as any;
  10568. // authentication cookie required
  10569. // authentication api_key required
  10570. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10571. // authentication bearer required
  10572. // http bearer authentication required
  10573. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10574. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10575. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10576. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10577. return {
  10578. url: toPathString(localVarUrlObj),
  10579. options: localVarRequestOptions,
  10580. };
  10581. },
  10582. }
  10583. };
  10584. /**
  10585. * PartnerApi - functional programming interface
  10586. * @export
  10587. */
  10588. export const PartnerApiFp = function(configuration?: Configuration) {
  10589. const localVarAxiosParamCreator = PartnerApiAxiosParamCreator(configuration)
  10590. return {
  10591. /**
  10592. *
  10593. * @param {string} id
  10594. * @param {*} [options] Override http request option.
  10595. * @throws {RequiredError}
  10596. */
  10597. async createPartner(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  10598. const localVarAxiosArgs = await localVarAxiosParamCreator.createPartner(id, options);
  10599. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10600. },
  10601. /**
  10602. *
  10603. * @param {'shared-by' | 'shared-with'} direction
  10604. * @param {*} [options] Override http request option.
  10605. * @throws {RequiredError}
  10606. */
  10607. async getPartners(direction: 'shared-by' | 'shared-with', options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<UserResponseDto>>> {
  10608. const localVarAxiosArgs = await localVarAxiosParamCreator.getPartners(direction, options);
  10609. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10610. },
  10611. /**
  10612. *
  10613. * @param {string} id
  10614. * @param {*} [options] Override http request option.
  10615. * @throws {RequiredError}
  10616. */
  10617. async removePartner(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  10618. const localVarAxiosArgs = await localVarAxiosParamCreator.removePartner(id, options);
  10619. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10620. },
  10621. }
  10622. };
  10623. /**
  10624. * PartnerApi - factory interface
  10625. * @export
  10626. */
  10627. export const PartnerApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  10628. const localVarFp = PartnerApiFp(configuration)
  10629. return {
  10630. /**
  10631. *
  10632. * @param {PartnerApiCreatePartnerRequest} requestParameters Request parameters.
  10633. * @param {*} [options] Override http request option.
  10634. * @throws {RequiredError}
  10635. */
  10636. createPartner(requestParameters: PartnerApiCreatePartnerRequest, options?: AxiosRequestConfig): AxiosPromise<UserResponseDto> {
  10637. return localVarFp.createPartner(requestParameters.id, options).then((request) => request(axios, basePath));
  10638. },
  10639. /**
  10640. *
  10641. * @param {PartnerApiGetPartnersRequest} requestParameters Request parameters.
  10642. * @param {*} [options] Override http request option.
  10643. * @throws {RequiredError}
  10644. */
  10645. getPartners(requestParameters: PartnerApiGetPartnersRequest, options?: AxiosRequestConfig): AxiosPromise<Array<UserResponseDto>> {
  10646. return localVarFp.getPartners(requestParameters.direction, options).then((request) => request(axios, basePath));
  10647. },
  10648. /**
  10649. *
  10650. * @param {PartnerApiRemovePartnerRequest} requestParameters Request parameters.
  10651. * @param {*} [options] Override http request option.
  10652. * @throws {RequiredError}
  10653. */
  10654. removePartner(requestParameters: PartnerApiRemovePartnerRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  10655. return localVarFp.removePartner(requestParameters.id, options).then((request) => request(axios, basePath));
  10656. },
  10657. };
  10658. };
  10659. /**
  10660. * Request parameters for createPartner operation in PartnerApi.
  10661. * @export
  10662. * @interface PartnerApiCreatePartnerRequest
  10663. */
  10664. export interface PartnerApiCreatePartnerRequest {
  10665. /**
  10666. *
  10667. * @type {string}
  10668. * @memberof PartnerApiCreatePartner
  10669. */
  10670. readonly id: string
  10671. }
  10672. /**
  10673. * Request parameters for getPartners operation in PartnerApi.
  10674. * @export
  10675. * @interface PartnerApiGetPartnersRequest
  10676. */
  10677. export interface PartnerApiGetPartnersRequest {
  10678. /**
  10679. *
  10680. * @type {'shared-by' | 'shared-with'}
  10681. * @memberof PartnerApiGetPartners
  10682. */
  10683. readonly direction: 'shared-by' | 'shared-with'
  10684. }
  10685. /**
  10686. * Request parameters for removePartner operation in PartnerApi.
  10687. * @export
  10688. * @interface PartnerApiRemovePartnerRequest
  10689. */
  10690. export interface PartnerApiRemovePartnerRequest {
  10691. /**
  10692. *
  10693. * @type {string}
  10694. * @memberof PartnerApiRemovePartner
  10695. */
  10696. readonly id: string
  10697. }
  10698. /**
  10699. * PartnerApi - object-oriented interface
  10700. * @export
  10701. * @class PartnerApi
  10702. * @extends {BaseAPI}
  10703. */
  10704. export class PartnerApi extends BaseAPI {
  10705. /**
  10706. *
  10707. * @param {PartnerApiCreatePartnerRequest} requestParameters Request parameters.
  10708. * @param {*} [options] Override http request option.
  10709. * @throws {RequiredError}
  10710. * @memberof PartnerApi
  10711. */
  10712. public createPartner(requestParameters: PartnerApiCreatePartnerRequest, options?: AxiosRequestConfig) {
  10713. return PartnerApiFp(this.configuration).createPartner(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  10714. }
  10715. /**
  10716. *
  10717. * @param {PartnerApiGetPartnersRequest} requestParameters Request parameters.
  10718. * @param {*} [options] Override http request option.
  10719. * @throws {RequiredError}
  10720. * @memberof PartnerApi
  10721. */
  10722. public getPartners(requestParameters: PartnerApiGetPartnersRequest, options?: AxiosRequestConfig) {
  10723. return PartnerApiFp(this.configuration).getPartners(requestParameters.direction, options).then((request) => request(this.axios, this.basePath));
  10724. }
  10725. /**
  10726. *
  10727. * @param {PartnerApiRemovePartnerRequest} requestParameters Request parameters.
  10728. * @param {*} [options] Override http request option.
  10729. * @throws {RequiredError}
  10730. * @memberof PartnerApi
  10731. */
  10732. public removePartner(requestParameters: PartnerApiRemovePartnerRequest, options?: AxiosRequestConfig) {
  10733. return PartnerApiFp(this.configuration).removePartner(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  10734. }
  10735. }
  10736. /**
  10737. * PersonApi - axios parameter creator
  10738. * @export
  10739. */
  10740. export const PersonApiAxiosParamCreator = function (configuration?: Configuration) {
  10741. return {
  10742. /**
  10743. *
  10744. * @param {boolean} [withHidden]
  10745. * @param {*} [options] Override http request option.
  10746. * @throws {RequiredError}
  10747. */
  10748. getAllPeople: async (withHidden?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10749. const localVarPath = `/person`;
  10750. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10751. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10752. let baseOptions;
  10753. if (configuration) {
  10754. baseOptions = configuration.baseOptions;
  10755. }
  10756. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  10757. const localVarHeaderParameter = {} as any;
  10758. const localVarQueryParameter = {} as any;
  10759. // authentication cookie required
  10760. // authentication api_key required
  10761. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10762. // authentication bearer required
  10763. // http bearer authentication required
  10764. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10765. if (withHidden !== undefined) {
  10766. localVarQueryParameter['withHidden'] = withHidden;
  10767. }
  10768. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10769. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10770. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10771. return {
  10772. url: toPathString(localVarUrlObj),
  10773. options: localVarRequestOptions,
  10774. };
  10775. },
  10776. /**
  10777. *
  10778. * @param {string} id
  10779. * @param {*} [options] Override http request option.
  10780. * @throws {RequiredError}
  10781. */
  10782. getPerson: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10783. // verify required parameter 'id' is not null or undefined
  10784. assertParamExists('getPerson', 'id', id)
  10785. const localVarPath = `/person/{id}`
  10786. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  10787. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10788. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10789. let baseOptions;
  10790. if (configuration) {
  10791. baseOptions = configuration.baseOptions;
  10792. }
  10793. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  10794. const localVarHeaderParameter = {} as any;
  10795. const localVarQueryParameter = {} as any;
  10796. // authentication cookie required
  10797. // authentication api_key required
  10798. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10799. // authentication bearer required
  10800. // http bearer authentication required
  10801. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10802. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10803. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10804. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10805. return {
  10806. url: toPathString(localVarUrlObj),
  10807. options: localVarRequestOptions,
  10808. };
  10809. },
  10810. /**
  10811. *
  10812. * @param {string} id
  10813. * @param {*} [options] Override http request option.
  10814. * @throws {RequiredError}
  10815. */
  10816. getPersonAssets: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10817. // verify required parameter 'id' is not null or undefined
  10818. assertParamExists('getPersonAssets', 'id', id)
  10819. const localVarPath = `/person/{id}/assets`
  10820. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  10821. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10822. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10823. let baseOptions;
  10824. if (configuration) {
  10825. baseOptions = configuration.baseOptions;
  10826. }
  10827. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  10828. const localVarHeaderParameter = {} as any;
  10829. const localVarQueryParameter = {} as any;
  10830. // authentication cookie required
  10831. // authentication api_key required
  10832. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10833. // authentication bearer required
  10834. // http bearer authentication required
  10835. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10836. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10837. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10838. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10839. return {
  10840. url: toPathString(localVarUrlObj),
  10841. options: localVarRequestOptions,
  10842. };
  10843. },
  10844. /**
  10845. *
  10846. * @param {string} id
  10847. * @param {*} [options] Override http request option.
  10848. * @throws {RequiredError}
  10849. */
  10850. getPersonStatistics: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10851. // verify required parameter 'id' is not null or undefined
  10852. assertParamExists('getPersonStatistics', 'id', id)
  10853. const localVarPath = `/person/{id}/statistics`
  10854. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  10855. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10856. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10857. let baseOptions;
  10858. if (configuration) {
  10859. baseOptions = configuration.baseOptions;
  10860. }
  10861. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  10862. const localVarHeaderParameter = {} as any;
  10863. const localVarQueryParameter = {} as any;
  10864. // authentication cookie required
  10865. // authentication api_key required
  10866. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10867. // authentication bearer required
  10868. // http bearer authentication required
  10869. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10870. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10871. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10872. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10873. return {
  10874. url: toPathString(localVarUrlObj),
  10875. options: localVarRequestOptions,
  10876. };
  10877. },
  10878. /**
  10879. *
  10880. * @param {string} id
  10881. * @param {*} [options] Override http request option.
  10882. * @throws {RequiredError}
  10883. */
  10884. getPersonThumbnail: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10885. // verify required parameter 'id' is not null or undefined
  10886. assertParamExists('getPersonThumbnail', 'id', id)
  10887. const localVarPath = `/person/{id}/thumbnail`
  10888. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  10889. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10890. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10891. let baseOptions;
  10892. if (configuration) {
  10893. baseOptions = configuration.baseOptions;
  10894. }
  10895. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  10896. const localVarHeaderParameter = {} as any;
  10897. const localVarQueryParameter = {} as any;
  10898. // authentication cookie required
  10899. // authentication api_key required
  10900. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10901. // authentication bearer required
  10902. // http bearer authentication required
  10903. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10904. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10905. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10906. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10907. return {
  10908. url: toPathString(localVarUrlObj),
  10909. options: localVarRequestOptions,
  10910. };
  10911. },
  10912. /**
  10913. *
  10914. * @param {string} id
  10915. * @param {MergePersonDto} mergePersonDto
  10916. * @param {*} [options] Override http request option.
  10917. * @throws {RequiredError}
  10918. */
  10919. mergePerson: async (id: string, mergePersonDto: MergePersonDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10920. // verify required parameter 'id' is not null or undefined
  10921. assertParamExists('mergePerson', 'id', id)
  10922. // verify required parameter 'mergePersonDto' is not null or undefined
  10923. assertParamExists('mergePerson', 'mergePersonDto', mergePersonDto)
  10924. const localVarPath = `/person/{id}/merge`
  10925. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  10926. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10927. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10928. let baseOptions;
  10929. if (configuration) {
  10930. baseOptions = configuration.baseOptions;
  10931. }
  10932. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  10933. const localVarHeaderParameter = {} as any;
  10934. const localVarQueryParameter = {} as any;
  10935. // authentication cookie required
  10936. // authentication api_key required
  10937. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10938. // authentication bearer required
  10939. // http bearer authentication required
  10940. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10941. localVarHeaderParameter['Content-Type'] = 'application/json';
  10942. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10943. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10944. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10945. localVarRequestOptions.data = serializeDataIfNeeded(mergePersonDto, localVarRequestOptions, configuration)
  10946. return {
  10947. url: toPathString(localVarUrlObj),
  10948. options: localVarRequestOptions,
  10949. };
  10950. },
  10951. /**
  10952. *
  10953. * @param {PeopleUpdateDto} peopleUpdateDto
  10954. * @param {*} [options] Override http request option.
  10955. * @throws {RequiredError}
  10956. */
  10957. updatePeople: async (peopleUpdateDto: PeopleUpdateDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10958. // verify required parameter 'peopleUpdateDto' is not null or undefined
  10959. assertParamExists('updatePeople', 'peopleUpdateDto', peopleUpdateDto)
  10960. const localVarPath = `/person`;
  10961. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10962. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10963. let baseOptions;
  10964. if (configuration) {
  10965. baseOptions = configuration.baseOptions;
  10966. }
  10967. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  10968. const localVarHeaderParameter = {} as any;
  10969. const localVarQueryParameter = {} as any;
  10970. // authentication cookie required
  10971. // authentication api_key required
  10972. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10973. // authentication bearer required
  10974. // http bearer authentication required
  10975. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10976. localVarHeaderParameter['Content-Type'] = 'application/json';
  10977. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10978. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10979. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10980. localVarRequestOptions.data = serializeDataIfNeeded(peopleUpdateDto, localVarRequestOptions, configuration)
  10981. return {
  10982. url: toPathString(localVarUrlObj),
  10983. options: localVarRequestOptions,
  10984. };
  10985. },
  10986. /**
  10987. *
  10988. * @param {string} id
  10989. * @param {PersonUpdateDto} personUpdateDto
  10990. * @param {*} [options] Override http request option.
  10991. * @throws {RequiredError}
  10992. */
  10993. updatePerson: async (id: string, personUpdateDto: PersonUpdateDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10994. // verify required parameter 'id' is not null or undefined
  10995. assertParamExists('updatePerson', 'id', id)
  10996. // verify required parameter 'personUpdateDto' is not null or undefined
  10997. assertParamExists('updatePerson', 'personUpdateDto', personUpdateDto)
  10998. const localVarPath = `/person/{id}`
  10999. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  11000. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11001. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11002. let baseOptions;
  11003. if (configuration) {
  11004. baseOptions = configuration.baseOptions;
  11005. }
  11006. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  11007. const localVarHeaderParameter = {} as any;
  11008. const localVarQueryParameter = {} as any;
  11009. // authentication cookie required
  11010. // authentication api_key required
  11011. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  11012. // authentication bearer required
  11013. // http bearer authentication required
  11014. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  11015. localVarHeaderParameter['Content-Type'] = 'application/json';
  11016. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11017. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11018. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11019. localVarRequestOptions.data = serializeDataIfNeeded(personUpdateDto, localVarRequestOptions, configuration)
  11020. return {
  11021. url: toPathString(localVarUrlObj),
  11022. options: localVarRequestOptions,
  11023. };
  11024. },
  11025. }
  11026. };
  11027. /**
  11028. * PersonApi - functional programming interface
  11029. * @export
  11030. */
  11031. export const PersonApiFp = function(configuration?: Configuration) {
  11032. const localVarAxiosParamCreator = PersonApiAxiosParamCreator(configuration)
  11033. return {
  11034. /**
  11035. *
  11036. * @param {boolean} [withHidden]
  11037. * @param {*} [options] Override http request option.
  11038. * @throws {RequiredError}
  11039. */
  11040. async getAllPeople(withHidden?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PeopleResponseDto>> {
  11041. const localVarAxiosArgs = await localVarAxiosParamCreator.getAllPeople(withHidden, options);
  11042. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11043. },
  11044. /**
  11045. *
  11046. * @param {string} id
  11047. * @param {*} [options] Override http request option.
  11048. * @throws {RequiredError}
  11049. */
  11050. async getPerson(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PersonResponseDto>> {
  11051. const localVarAxiosArgs = await localVarAxiosParamCreator.getPerson(id, options);
  11052. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11053. },
  11054. /**
  11055. *
  11056. * @param {string} id
  11057. * @param {*} [options] Override http request option.
  11058. * @throws {RequiredError}
  11059. */
  11060. async getPersonAssets(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetResponseDto>>> {
  11061. const localVarAxiosArgs = await localVarAxiosParamCreator.getPersonAssets(id, options);
  11062. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11063. },
  11064. /**
  11065. *
  11066. * @param {string} id
  11067. * @param {*} [options] Override http request option.
  11068. * @throws {RequiredError}
  11069. */
  11070. async getPersonStatistics(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PersonStatisticsResponseDto>> {
  11071. const localVarAxiosArgs = await localVarAxiosParamCreator.getPersonStatistics(id, options);
  11072. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11073. },
  11074. /**
  11075. *
  11076. * @param {string} id
  11077. * @param {*} [options] Override http request option.
  11078. * @throws {RequiredError}
  11079. */
  11080. async getPersonThumbnail(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>> {
  11081. const localVarAxiosArgs = await localVarAxiosParamCreator.getPersonThumbnail(id, options);
  11082. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11083. },
  11084. /**
  11085. *
  11086. * @param {string} id
  11087. * @param {MergePersonDto} mergePersonDto
  11088. * @param {*} [options] Override http request option.
  11089. * @throws {RequiredError}
  11090. */
  11091. async mergePerson(id: string, mergePersonDto: MergePersonDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<BulkIdResponseDto>>> {
  11092. const localVarAxiosArgs = await localVarAxiosParamCreator.mergePerson(id, mergePersonDto, options);
  11093. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11094. },
  11095. /**
  11096. *
  11097. * @param {PeopleUpdateDto} peopleUpdateDto
  11098. * @param {*} [options] Override http request option.
  11099. * @throws {RequiredError}
  11100. */
  11101. async updatePeople(peopleUpdateDto: PeopleUpdateDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<BulkIdResponseDto>>> {
  11102. const localVarAxiosArgs = await localVarAxiosParamCreator.updatePeople(peopleUpdateDto, options);
  11103. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11104. },
  11105. /**
  11106. *
  11107. * @param {string} id
  11108. * @param {PersonUpdateDto} personUpdateDto
  11109. * @param {*} [options] Override http request option.
  11110. * @throws {RequiredError}
  11111. */
  11112. async updatePerson(id: string, personUpdateDto: PersonUpdateDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PersonResponseDto>> {
  11113. const localVarAxiosArgs = await localVarAxiosParamCreator.updatePerson(id, personUpdateDto, options);
  11114. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11115. },
  11116. }
  11117. };
  11118. /**
  11119. * PersonApi - factory interface
  11120. * @export
  11121. */
  11122. export const PersonApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  11123. const localVarFp = PersonApiFp(configuration)
  11124. return {
  11125. /**
  11126. *
  11127. * @param {PersonApiGetAllPeopleRequest} requestParameters Request parameters.
  11128. * @param {*} [options] Override http request option.
  11129. * @throws {RequiredError}
  11130. */
  11131. getAllPeople(requestParameters: PersonApiGetAllPeopleRequest = {}, options?: AxiosRequestConfig): AxiosPromise<PeopleResponseDto> {
  11132. return localVarFp.getAllPeople(requestParameters.withHidden, options).then((request) => request(axios, basePath));
  11133. },
  11134. /**
  11135. *
  11136. * @param {PersonApiGetPersonRequest} requestParameters Request parameters.
  11137. * @param {*} [options] Override http request option.
  11138. * @throws {RequiredError}
  11139. */
  11140. getPerson(requestParameters: PersonApiGetPersonRequest, options?: AxiosRequestConfig): AxiosPromise<PersonResponseDto> {
  11141. return localVarFp.getPerson(requestParameters.id, options).then((request) => request(axios, basePath));
  11142. },
  11143. /**
  11144. *
  11145. * @param {PersonApiGetPersonAssetsRequest} requestParameters Request parameters.
  11146. * @param {*} [options] Override http request option.
  11147. * @throws {RequiredError}
  11148. */
  11149. getPersonAssets(requestParameters: PersonApiGetPersonAssetsRequest, options?: AxiosRequestConfig): AxiosPromise<Array<AssetResponseDto>> {
  11150. return localVarFp.getPersonAssets(requestParameters.id, options).then((request) => request(axios, basePath));
  11151. },
  11152. /**
  11153. *
  11154. * @param {PersonApiGetPersonStatisticsRequest} requestParameters Request parameters.
  11155. * @param {*} [options] Override http request option.
  11156. * @throws {RequiredError}
  11157. */
  11158. getPersonStatistics(requestParameters: PersonApiGetPersonStatisticsRequest, options?: AxiosRequestConfig): AxiosPromise<PersonStatisticsResponseDto> {
  11159. return localVarFp.getPersonStatistics(requestParameters.id, options).then((request) => request(axios, basePath));
  11160. },
  11161. /**
  11162. *
  11163. * @param {PersonApiGetPersonThumbnailRequest} requestParameters Request parameters.
  11164. * @param {*} [options] Override http request option.
  11165. * @throws {RequiredError}
  11166. */
  11167. getPersonThumbnail(requestParameters: PersonApiGetPersonThumbnailRequest, options?: AxiosRequestConfig): AxiosPromise<File> {
  11168. return localVarFp.getPersonThumbnail(requestParameters.id, options).then((request) => request(axios, basePath));
  11169. },
  11170. /**
  11171. *
  11172. * @param {PersonApiMergePersonRequest} requestParameters Request parameters.
  11173. * @param {*} [options] Override http request option.
  11174. * @throws {RequiredError}
  11175. */
  11176. mergePerson(requestParameters: PersonApiMergePersonRequest, options?: AxiosRequestConfig): AxiosPromise<Array<BulkIdResponseDto>> {
  11177. return localVarFp.mergePerson(requestParameters.id, requestParameters.mergePersonDto, options).then((request) => request(axios, basePath));
  11178. },
  11179. /**
  11180. *
  11181. * @param {PersonApiUpdatePeopleRequest} requestParameters Request parameters.
  11182. * @param {*} [options] Override http request option.
  11183. * @throws {RequiredError}
  11184. */
  11185. updatePeople(requestParameters: PersonApiUpdatePeopleRequest, options?: AxiosRequestConfig): AxiosPromise<Array<BulkIdResponseDto>> {
  11186. return localVarFp.updatePeople(requestParameters.peopleUpdateDto, options).then((request) => request(axios, basePath));
  11187. },
  11188. /**
  11189. *
  11190. * @param {PersonApiUpdatePersonRequest} requestParameters Request parameters.
  11191. * @param {*} [options] Override http request option.
  11192. * @throws {RequiredError}
  11193. */
  11194. updatePerson(requestParameters: PersonApiUpdatePersonRequest, options?: AxiosRequestConfig): AxiosPromise<PersonResponseDto> {
  11195. return localVarFp.updatePerson(requestParameters.id, requestParameters.personUpdateDto, options).then((request) => request(axios, basePath));
  11196. },
  11197. };
  11198. };
  11199. /**
  11200. * Request parameters for getAllPeople operation in PersonApi.
  11201. * @export
  11202. * @interface PersonApiGetAllPeopleRequest
  11203. */
  11204. export interface PersonApiGetAllPeopleRequest {
  11205. /**
  11206. *
  11207. * @type {boolean}
  11208. * @memberof PersonApiGetAllPeople
  11209. */
  11210. readonly withHidden?: boolean
  11211. }
  11212. /**
  11213. * Request parameters for getPerson operation in PersonApi.
  11214. * @export
  11215. * @interface PersonApiGetPersonRequest
  11216. */
  11217. export interface PersonApiGetPersonRequest {
  11218. /**
  11219. *
  11220. * @type {string}
  11221. * @memberof PersonApiGetPerson
  11222. */
  11223. readonly id: string
  11224. }
  11225. /**
  11226. * Request parameters for getPersonAssets operation in PersonApi.
  11227. * @export
  11228. * @interface PersonApiGetPersonAssetsRequest
  11229. */
  11230. export interface PersonApiGetPersonAssetsRequest {
  11231. /**
  11232. *
  11233. * @type {string}
  11234. * @memberof PersonApiGetPersonAssets
  11235. */
  11236. readonly id: string
  11237. }
  11238. /**
  11239. * Request parameters for getPersonStatistics operation in PersonApi.
  11240. * @export
  11241. * @interface PersonApiGetPersonStatisticsRequest
  11242. */
  11243. export interface PersonApiGetPersonStatisticsRequest {
  11244. /**
  11245. *
  11246. * @type {string}
  11247. * @memberof PersonApiGetPersonStatistics
  11248. */
  11249. readonly id: string
  11250. }
  11251. /**
  11252. * Request parameters for getPersonThumbnail operation in PersonApi.
  11253. * @export
  11254. * @interface PersonApiGetPersonThumbnailRequest
  11255. */
  11256. export interface PersonApiGetPersonThumbnailRequest {
  11257. /**
  11258. *
  11259. * @type {string}
  11260. * @memberof PersonApiGetPersonThumbnail
  11261. */
  11262. readonly id: string
  11263. }
  11264. /**
  11265. * Request parameters for mergePerson operation in PersonApi.
  11266. * @export
  11267. * @interface PersonApiMergePersonRequest
  11268. */
  11269. export interface PersonApiMergePersonRequest {
  11270. /**
  11271. *
  11272. * @type {string}
  11273. * @memberof PersonApiMergePerson
  11274. */
  11275. readonly id: string
  11276. /**
  11277. *
  11278. * @type {MergePersonDto}
  11279. * @memberof PersonApiMergePerson
  11280. */
  11281. readonly mergePersonDto: MergePersonDto
  11282. }
  11283. /**
  11284. * Request parameters for updatePeople operation in PersonApi.
  11285. * @export
  11286. * @interface PersonApiUpdatePeopleRequest
  11287. */
  11288. export interface PersonApiUpdatePeopleRequest {
  11289. /**
  11290. *
  11291. * @type {PeopleUpdateDto}
  11292. * @memberof PersonApiUpdatePeople
  11293. */
  11294. readonly peopleUpdateDto: PeopleUpdateDto
  11295. }
  11296. /**
  11297. * Request parameters for updatePerson operation in PersonApi.
  11298. * @export
  11299. * @interface PersonApiUpdatePersonRequest
  11300. */
  11301. export interface PersonApiUpdatePersonRequest {
  11302. /**
  11303. *
  11304. * @type {string}
  11305. * @memberof PersonApiUpdatePerson
  11306. */
  11307. readonly id: string
  11308. /**
  11309. *
  11310. * @type {PersonUpdateDto}
  11311. * @memberof PersonApiUpdatePerson
  11312. */
  11313. readonly personUpdateDto: PersonUpdateDto
  11314. }
  11315. /**
  11316. * PersonApi - object-oriented interface
  11317. * @export
  11318. * @class PersonApi
  11319. * @extends {BaseAPI}
  11320. */
  11321. export class PersonApi extends BaseAPI {
  11322. /**
  11323. *
  11324. * @param {PersonApiGetAllPeopleRequest} requestParameters Request parameters.
  11325. * @param {*} [options] Override http request option.
  11326. * @throws {RequiredError}
  11327. * @memberof PersonApi
  11328. */
  11329. public getAllPeople(requestParameters: PersonApiGetAllPeopleRequest = {}, options?: AxiosRequestConfig) {
  11330. return PersonApiFp(this.configuration).getAllPeople(requestParameters.withHidden, options).then((request) => request(this.axios, this.basePath));
  11331. }
  11332. /**
  11333. *
  11334. * @param {PersonApiGetPersonRequest} requestParameters Request parameters.
  11335. * @param {*} [options] Override http request option.
  11336. * @throws {RequiredError}
  11337. * @memberof PersonApi
  11338. */
  11339. public getPerson(requestParameters: PersonApiGetPersonRequest, options?: AxiosRequestConfig) {
  11340. return PersonApiFp(this.configuration).getPerson(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  11341. }
  11342. /**
  11343. *
  11344. * @param {PersonApiGetPersonAssetsRequest} requestParameters Request parameters.
  11345. * @param {*} [options] Override http request option.
  11346. * @throws {RequiredError}
  11347. * @memberof PersonApi
  11348. */
  11349. public getPersonAssets(requestParameters: PersonApiGetPersonAssetsRequest, options?: AxiosRequestConfig) {
  11350. return PersonApiFp(this.configuration).getPersonAssets(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  11351. }
  11352. /**
  11353. *
  11354. * @param {PersonApiGetPersonStatisticsRequest} requestParameters Request parameters.
  11355. * @param {*} [options] Override http request option.
  11356. * @throws {RequiredError}
  11357. * @memberof PersonApi
  11358. */
  11359. public getPersonStatistics(requestParameters: PersonApiGetPersonStatisticsRequest, options?: AxiosRequestConfig) {
  11360. return PersonApiFp(this.configuration).getPersonStatistics(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  11361. }
  11362. /**
  11363. *
  11364. * @param {PersonApiGetPersonThumbnailRequest} requestParameters Request parameters.
  11365. * @param {*} [options] Override http request option.
  11366. * @throws {RequiredError}
  11367. * @memberof PersonApi
  11368. */
  11369. public getPersonThumbnail(requestParameters: PersonApiGetPersonThumbnailRequest, options?: AxiosRequestConfig) {
  11370. return PersonApiFp(this.configuration).getPersonThumbnail(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  11371. }
  11372. /**
  11373. *
  11374. * @param {PersonApiMergePersonRequest} requestParameters Request parameters.
  11375. * @param {*} [options] Override http request option.
  11376. * @throws {RequiredError}
  11377. * @memberof PersonApi
  11378. */
  11379. public mergePerson(requestParameters: PersonApiMergePersonRequest, options?: AxiosRequestConfig) {
  11380. return PersonApiFp(this.configuration).mergePerson(requestParameters.id, requestParameters.mergePersonDto, options).then((request) => request(this.axios, this.basePath));
  11381. }
  11382. /**
  11383. *
  11384. * @param {PersonApiUpdatePeopleRequest} requestParameters Request parameters.
  11385. * @param {*} [options] Override http request option.
  11386. * @throws {RequiredError}
  11387. * @memberof PersonApi
  11388. */
  11389. public updatePeople(requestParameters: PersonApiUpdatePeopleRequest, options?: AxiosRequestConfig) {
  11390. return PersonApiFp(this.configuration).updatePeople(requestParameters.peopleUpdateDto, options).then((request) => request(this.axios, this.basePath));
  11391. }
  11392. /**
  11393. *
  11394. * @param {PersonApiUpdatePersonRequest} requestParameters Request parameters.
  11395. * @param {*} [options] Override http request option.
  11396. * @throws {RequiredError}
  11397. * @memberof PersonApi
  11398. */
  11399. public updatePerson(requestParameters: PersonApiUpdatePersonRequest, options?: AxiosRequestConfig) {
  11400. return PersonApiFp(this.configuration).updatePerson(requestParameters.id, requestParameters.personUpdateDto, options).then((request) => request(this.axios, this.basePath));
  11401. }
  11402. }
  11403. /**
  11404. * SearchApi - axios parameter creator
  11405. * @export
  11406. */
  11407. export const SearchApiAxiosParamCreator = function (configuration?: Configuration) {
  11408. return {
  11409. /**
  11410. *
  11411. * @param {*} [options] Override http request option.
  11412. * @throws {RequiredError}
  11413. */
  11414. getExploreData: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11415. const localVarPath = `/search/explore`;
  11416. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11417. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11418. let baseOptions;
  11419. if (configuration) {
  11420. baseOptions = configuration.baseOptions;
  11421. }
  11422. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  11423. const localVarHeaderParameter = {} as any;
  11424. const localVarQueryParameter = {} as any;
  11425. // authentication cookie required
  11426. // authentication api_key required
  11427. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  11428. // authentication bearer required
  11429. // http bearer authentication required
  11430. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  11431. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11432. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11433. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11434. return {
  11435. url: toPathString(localVarUrlObj),
  11436. options: localVarRequestOptions,
  11437. };
  11438. },
  11439. /**
  11440. *
  11441. * @param {string} [q]
  11442. * @param {string} [query]
  11443. * @param {boolean} [clip]
  11444. * @param {'IMAGE' | 'VIDEO' | 'AUDIO' | 'OTHER'} [type]
  11445. * @param {boolean} [isFavorite]
  11446. * @param {boolean} [isArchived]
  11447. * @param {string} [exifInfoCity]
  11448. * @param {string} [exifInfoState]
  11449. * @param {string} [exifInfoCountry]
  11450. * @param {string} [exifInfoMake]
  11451. * @param {string} [exifInfoModel]
  11452. * @param {string} [exifInfoProjectionType]
  11453. * @param {Array<string>} [smartInfoObjects]
  11454. * @param {Array<string>} [smartInfoTags]
  11455. * @param {boolean} [recent]
  11456. * @param {boolean} [motion]
  11457. * @param {*} [options] Override http request option.
  11458. * @throws {RequiredError}
  11459. */
  11460. search: async (q?: string, query?: string, clip?: boolean, type?: 'IMAGE' | 'VIDEO' | 'AUDIO' | 'OTHER', isFavorite?: boolean, isArchived?: boolean, exifInfoCity?: string, exifInfoState?: string, exifInfoCountry?: string, exifInfoMake?: string, exifInfoModel?: string, exifInfoProjectionType?: string, smartInfoObjects?: Array<string>, smartInfoTags?: Array<string>, recent?: boolean, motion?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11461. const localVarPath = `/search`;
  11462. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11463. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11464. let baseOptions;
  11465. if (configuration) {
  11466. baseOptions = configuration.baseOptions;
  11467. }
  11468. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  11469. const localVarHeaderParameter = {} as any;
  11470. const localVarQueryParameter = {} as any;
  11471. // authentication cookie required
  11472. // authentication api_key required
  11473. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  11474. // authentication bearer required
  11475. // http bearer authentication required
  11476. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  11477. if (q !== undefined) {
  11478. localVarQueryParameter['q'] = q;
  11479. }
  11480. if (query !== undefined) {
  11481. localVarQueryParameter['query'] = query;
  11482. }
  11483. if (clip !== undefined) {
  11484. localVarQueryParameter['clip'] = clip;
  11485. }
  11486. if (type !== undefined) {
  11487. localVarQueryParameter['type'] = type;
  11488. }
  11489. if (isFavorite !== undefined) {
  11490. localVarQueryParameter['isFavorite'] = isFavorite;
  11491. }
  11492. if (isArchived !== undefined) {
  11493. localVarQueryParameter['isArchived'] = isArchived;
  11494. }
  11495. if (exifInfoCity !== undefined) {
  11496. localVarQueryParameter['exifInfo.city'] = exifInfoCity;
  11497. }
  11498. if (exifInfoState !== undefined) {
  11499. localVarQueryParameter['exifInfo.state'] = exifInfoState;
  11500. }
  11501. if (exifInfoCountry !== undefined) {
  11502. localVarQueryParameter['exifInfo.country'] = exifInfoCountry;
  11503. }
  11504. if (exifInfoMake !== undefined) {
  11505. localVarQueryParameter['exifInfo.make'] = exifInfoMake;
  11506. }
  11507. if (exifInfoModel !== undefined) {
  11508. localVarQueryParameter['exifInfo.model'] = exifInfoModel;
  11509. }
  11510. if (exifInfoProjectionType !== undefined) {
  11511. localVarQueryParameter['exifInfo.projectionType'] = exifInfoProjectionType;
  11512. }
  11513. if (smartInfoObjects) {
  11514. localVarQueryParameter['smartInfo.objects'] = smartInfoObjects;
  11515. }
  11516. if (smartInfoTags) {
  11517. localVarQueryParameter['smartInfo.tags'] = smartInfoTags;
  11518. }
  11519. if (recent !== undefined) {
  11520. localVarQueryParameter['recent'] = recent;
  11521. }
  11522. if (motion !== undefined) {
  11523. localVarQueryParameter['motion'] = motion;
  11524. }
  11525. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11526. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11527. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11528. return {
  11529. url: toPathString(localVarUrlObj),
  11530. options: localVarRequestOptions,
  11531. };
  11532. },
  11533. /**
  11534. *
  11535. * @param {string} name
  11536. * @param {boolean} [withHidden]
  11537. * @param {*} [options] Override http request option.
  11538. * @throws {RequiredError}
  11539. */
  11540. searchPerson: async (name: string, withHidden?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11541. // verify required parameter 'name' is not null or undefined
  11542. assertParamExists('searchPerson', 'name', name)
  11543. const localVarPath = `/search/person`;
  11544. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11545. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11546. let baseOptions;
  11547. if (configuration) {
  11548. baseOptions = configuration.baseOptions;
  11549. }
  11550. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  11551. const localVarHeaderParameter = {} as any;
  11552. const localVarQueryParameter = {} as any;
  11553. // authentication cookie required
  11554. // authentication api_key required
  11555. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  11556. // authentication bearer required
  11557. // http bearer authentication required
  11558. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  11559. if (name !== undefined) {
  11560. localVarQueryParameter['name'] = name;
  11561. }
  11562. if (withHidden !== undefined) {
  11563. localVarQueryParameter['withHidden'] = withHidden;
  11564. }
  11565. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11566. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11567. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11568. return {
  11569. url: toPathString(localVarUrlObj),
  11570. options: localVarRequestOptions,
  11571. };
  11572. },
  11573. }
  11574. };
  11575. /**
  11576. * SearchApi - functional programming interface
  11577. * @export
  11578. */
  11579. export const SearchApiFp = function(configuration?: Configuration) {
  11580. const localVarAxiosParamCreator = SearchApiAxiosParamCreator(configuration)
  11581. return {
  11582. /**
  11583. *
  11584. * @param {*} [options] Override http request option.
  11585. * @throws {RequiredError}
  11586. */
  11587. async getExploreData(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<SearchExploreResponseDto>>> {
  11588. const localVarAxiosArgs = await localVarAxiosParamCreator.getExploreData(options);
  11589. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11590. },
  11591. /**
  11592. *
  11593. * @param {string} [q]
  11594. * @param {string} [query]
  11595. * @param {boolean} [clip]
  11596. * @param {'IMAGE' | 'VIDEO' | 'AUDIO' | 'OTHER'} [type]
  11597. * @param {boolean} [isFavorite]
  11598. * @param {boolean} [isArchived]
  11599. * @param {string} [exifInfoCity]
  11600. * @param {string} [exifInfoState]
  11601. * @param {string} [exifInfoCountry]
  11602. * @param {string} [exifInfoMake]
  11603. * @param {string} [exifInfoModel]
  11604. * @param {string} [exifInfoProjectionType]
  11605. * @param {Array<string>} [smartInfoObjects]
  11606. * @param {Array<string>} [smartInfoTags]
  11607. * @param {boolean} [recent]
  11608. * @param {boolean} [motion]
  11609. * @param {*} [options] Override http request option.
  11610. * @throws {RequiredError}
  11611. */
  11612. async search(q?: string, query?: string, clip?: boolean, type?: 'IMAGE' | 'VIDEO' | 'AUDIO' | 'OTHER', isFavorite?: boolean, isArchived?: boolean, exifInfoCity?: string, exifInfoState?: string, exifInfoCountry?: string, exifInfoMake?: string, exifInfoModel?: string, exifInfoProjectionType?: string, smartInfoObjects?: Array<string>, smartInfoTags?: Array<string>, recent?: boolean, motion?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SearchResponseDto>> {
  11613. const localVarAxiosArgs = await localVarAxiosParamCreator.search(q, query, clip, type, isFavorite, isArchived, exifInfoCity, exifInfoState, exifInfoCountry, exifInfoMake, exifInfoModel, exifInfoProjectionType, smartInfoObjects, smartInfoTags, recent, motion, options);
  11614. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11615. },
  11616. /**
  11617. *
  11618. * @param {string} name
  11619. * @param {boolean} [withHidden]
  11620. * @param {*} [options] Override http request option.
  11621. * @throws {RequiredError}
  11622. */
  11623. async searchPerson(name: string, withHidden?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<PersonResponseDto>>> {
  11624. const localVarAxiosArgs = await localVarAxiosParamCreator.searchPerson(name, withHidden, options);
  11625. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11626. },
  11627. }
  11628. };
  11629. /**
  11630. * SearchApi - factory interface
  11631. * @export
  11632. */
  11633. export const SearchApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  11634. const localVarFp = SearchApiFp(configuration)
  11635. return {
  11636. /**
  11637. *
  11638. * @param {*} [options] Override http request option.
  11639. * @throws {RequiredError}
  11640. */
  11641. getExploreData(options?: AxiosRequestConfig): AxiosPromise<Array<SearchExploreResponseDto>> {
  11642. return localVarFp.getExploreData(options).then((request) => request(axios, basePath));
  11643. },
  11644. /**
  11645. *
  11646. * @param {SearchApiSearchRequest} requestParameters Request parameters.
  11647. * @param {*} [options] Override http request option.
  11648. * @throws {RequiredError}
  11649. */
  11650. search(requestParameters: SearchApiSearchRequest = {}, options?: AxiosRequestConfig): AxiosPromise<SearchResponseDto> {
  11651. return localVarFp.search(requestParameters.q, requestParameters.query, requestParameters.clip, requestParameters.type, requestParameters.isFavorite, requestParameters.isArchived, requestParameters.exifInfoCity, requestParameters.exifInfoState, requestParameters.exifInfoCountry, requestParameters.exifInfoMake, requestParameters.exifInfoModel, requestParameters.exifInfoProjectionType, requestParameters.smartInfoObjects, requestParameters.smartInfoTags, requestParameters.recent, requestParameters.motion, options).then((request) => request(axios, basePath));
  11652. },
  11653. /**
  11654. *
  11655. * @param {SearchApiSearchPersonRequest} requestParameters Request parameters.
  11656. * @param {*} [options] Override http request option.
  11657. * @throws {RequiredError}
  11658. */
  11659. searchPerson(requestParameters: SearchApiSearchPersonRequest, options?: AxiosRequestConfig): AxiosPromise<Array<PersonResponseDto>> {
  11660. return localVarFp.searchPerson(requestParameters.name, requestParameters.withHidden, options).then((request) => request(axios, basePath));
  11661. },
  11662. };
  11663. };
  11664. /**
  11665. * Request parameters for search operation in SearchApi.
  11666. * @export
  11667. * @interface SearchApiSearchRequest
  11668. */
  11669. export interface SearchApiSearchRequest {
  11670. /**
  11671. *
  11672. * @type {string}
  11673. * @memberof SearchApiSearch
  11674. */
  11675. readonly q?: string
  11676. /**
  11677. *
  11678. * @type {string}
  11679. * @memberof SearchApiSearch
  11680. */
  11681. readonly query?: string
  11682. /**
  11683. *
  11684. * @type {boolean}
  11685. * @memberof SearchApiSearch
  11686. */
  11687. readonly clip?: boolean
  11688. /**
  11689. *
  11690. * @type {'IMAGE' | 'VIDEO' | 'AUDIO' | 'OTHER'}
  11691. * @memberof SearchApiSearch
  11692. */
  11693. readonly type?: 'IMAGE' | 'VIDEO' | 'AUDIO' | 'OTHER'
  11694. /**
  11695. *
  11696. * @type {boolean}
  11697. * @memberof SearchApiSearch
  11698. */
  11699. readonly isFavorite?: boolean
  11700. /**
  11701. *
  11702. * @type {boolean}
  11703. * @memberof SearchApiSearch
  11704. */
  11705. readonly isArchived?: boolean
  11706. /**
  11707. *
  11708. * @type {string}
  11709. * @memberof SearchApiSearch
  11710. */
  11711. readonly exifInfoCity?: string
  11712. /**
  11713. *
  11714. * @type {string}
  11715. * @memberof SearchApiSearch
  11716. */
  11717. readonly exifInfoState?: string
  11718. /**
  11719. *
  11720. * @type {string}
  11721. * @memberof SearchApiSearch
  11722. */
  11723. readonly exifInfoCountry?: string
  11724. /**
  11725. *
  11726. * @type {string}
  11727. * @memberof SearchApiSearch
  11728. */
  11729. readonly exifInfoMake?: string
  11730. /**
  11731. *
  11732. * @type {string}
  11733. * @memberof SearchApiSearch
  11734. */
  11735. readonly exifInfoModel?: string
  11736. /**
  11737. *
  11738. * @type {string}
  11739. * @memberof SearchApiSearch
  11740. */
  11741. readonly exifInfoProjectionType?: string
  11742. /**
  11743. *
  11744. * @type {Array<string>}
  11745. * @memberof SearchApiSearch
  11746. */
  11747. readonly smartInfoObjects?: Array<string>
  11748. /**
  11749. *
  11750. * @type {Array<string>}
  11751. * @memberof SearchApiSearch
  11752. */
  11753. readonly smartInfoTags?: Array<string>
  11754. /**
  11755. *
  11756. * @type {boolean}
  11757. * @memberof SearchApiSearch
  11758. */
  11759. readonly recent?: boolean
  11760. /**
  11761. *
  11762. * @type {boolean}
  11763. * @memberof SearchApiSearch
  11764. */
  11765. readonly motion?: boolean
  11766. }
  11767. /**
  11768. * Request parameters for searchPerson operation in SearchApi.
  11769. * @export
  11770. * @interface SearchApiSearchPersonRequest
  11771. */
  11772. export interface SearchApiSearchPersonRequest {
  11773. /**
  11774. *
  11775. * @type {string}
  11776. * @memberof SearchApiSearchPerson
  11777. */
  11778. readonly name: string
  11779. /**
  11780. *
  11781. * @type {boolean}
  11782. * @memberof SearchApiSearchPerson
  11783. */
  11784. readonly withHidden?: boolean
  11785. }
  11786. /**
  11787. * SearchApi - object-oriented interface
  11788. * @export
  11789. * @class SearchApi
  11790. * @extends {BaseAPI}
  11791. */
  11792. export class SearchApi extends BaseAPI {
  11793. /**
  11794. *
  11795. * @param {*} [options] Override http request option.
  11796. * @throws {RequiredError}
  11797. * @memberof SearchApi
  11798. */
  11799. public getExploreData(options?: AxiosRequestConfig) {
  11800. return SearchApiFp(this.configuration).getExploreData(options).then((request) => request(this.axios, this.basePath));
  11801. }
  11802. /**
  11803. *
  11804. * @param {SearchApiSearchRequest} requestParameters Request parameters.
  11805. * @param {*} [options] Override http request option.
  11806. * @throws {RequiredError}
  11807. * @memberof SearchApi
  11808. */
  11809. public search(requestParameters: SearchApiSearchRequest = {}, options?: AxiosRequestConfig) {
  11810. return SearchApiFp(this.configuration).search(requestParameters.q, requestParameters.query, requestParameters.clip, requestParameters.type, requestParameters.isFavorite, requestParameters.isArchived, requestParameters.exifInfoCity, requestParameters.exifInfoState, requestParameters.exifInfoCountry, requestParameters.exifInfoMake, requestParameters.exifInfoModel, requestParameters.exifInfoProjectionType, requestParameters.smartInfoObjects, requestParameters.smartInfoTags, requestParameters.recent, requestParameters.motion, options).then((request) => request(this.axios, this.basePath));
  11811. }
  11812. /**
  11813. *
  11814. * @param {SearchApiSearchPersonRequest} requestParameters Request parameters.
  11815. * @param {*} [options] Override http request option.
  11816. * @throws {RequiredError}
  11817. * @memberof SearchApi
  11818. */
  11819. public searchPerson(requestParameters: SearchApiSearchPersonRequest, options?: AxiosRequestConfig) {
  11820. return SearchApiFp(this.configuration).searchPerson(requestParameters.name, requestParameters.withHidden, options).then((request) => request(this.axios, this.basePath));
  11821. }
  11822. }
  11823. /**
  11824. * ServerInfoApi - axios parameter creator
  11825. * @export
  11826. */
  11827. export const ServerInfoApiAxiosParamCreator = function (configuration?: Configuration) {
  11828. return {
  11829. /**
  11830. *
  11831. * @param {*} [options] Override http request option.
  11832. * @throws {RequiredError}
  11833. */
  11834. getServerConfig: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11835. const localVarPath = `/server-info/config`;
  11836. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11837. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11838. let baseOptions;
  11839. if (configuration) {
  11840. baseOptions = configuration.baseOptions;
  11841. }
  11842. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  11843. const localVarHeaderParameter = {} as any;
  11844. const localVarQueryParameter = {} as any;
  11845. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11846. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11847. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11848. return {
  11849. url: toPathString(localVarUrlObj),
  11850. options: localVarRequestOptions,
  11851. };
  11852. },
  11853. /**
  11854. *
  11855. * @param {*} [options] Override http request option.
  11856. * @throws {RequiredError}
  11857. */
  11858. getServerFeatures: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11859. const localVarPath = `/server-info/features`;
  11860. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11861. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11862. let baseOptions;
  11863. if (configuration) {
  11864. baseOptions = configuration.baseOptions;
  11865. }
  11866. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  11867. const localVarHeaderParameter = {} as any;
  11868. const localVarQueryParameter = {} as any;
  11869. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11870. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11871. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11872. return {
  11873. url: toPathString(localVarUrlObj),
  11874. options: localVarRequestOptions,
  11875. };
  11876. },
  11877. /**
  11878. *
  11879. * @param {*} [options] Override http request option.
  11880. * @throws {RequiredError}
  11881. */
  11882. getServerInfo: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11883. const localVarPath = `/server-info`;
  11884. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11885. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11886. let baseOptions;
  11887. if (configuration) {
  11888. baseOptions = configuration.baseOptions;
  11889. }
  11890. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  11891. const localVarHeaderParameter = {} as any;
  11892. const localVarQueryParameter = {} as any;
  11893. // authentication cookie required
  11894. // authentication api_key required
  11895. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  11896. // authentication bearer required
  11897. // http bearer authentication required
  11898. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  11899. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11900. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11901. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11902. return {
  11903. url: toPathString(localVarUrlObj),
  11904. options: localVarRequestOptions,
  11905. };
  11906. },
  11907. /**
  11908. *
  11909. * @param {*} [options] Override http request option.
  11910. * @throws {RequiredError}
  11911. */
  11912. getServerVersion: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11913. const localVarPath = `/server-info/version`;
  11914. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11915. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11916. let baseOptions;
  11917. if (configuration) {
  11918. baseOptions = configuration.baseOptions;
  11919. }
  11920. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  11921. const localVarHeaderParameter = {} as any;
  11922. const localVarQueryParameter = {} as any;
  11923. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11924. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11925. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11926. return {
  11927. url: toPathString(localVarUrlObj),
  11928. options: localVarRequestOptions,
  11929. };
  11930. },
  11931. /**
  11932. *
  11933. * @param {*} [options] Override http request option.
  11934. * @throws {RequiredError}
  11935. */
  11936. getStats: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11937. const localVarPath = `/server-info/stats`;
  11938. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11939. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11940. let baseOptions;
  11941. if (configuration) {
  11942. baseOptions = configuration.baseOptions;
  11943. }
  11944. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  11945. const localVarHeaderParameter = {} as any;
  11946. const localVarQueryParameter = {} as any;
  11947. // authentication cookie required
  11948. // authentication api_key required
  11949. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  11950. // authentication bearer required
  11951. // http bearer authentication required
  11952. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  11953. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11954. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11955. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11956. return {
  11957. url: toPathString(localVarUrlObj),
  11958. options: localVarRequestOptions,
  11959. };
  11960. },
  11961. /**
  11962. *
  11963. * @param {*} [options] Override http request option.
  11964. * @throws {RequiredError}
  11965. */
  11966. getSupportedMediaTypes: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11967. const localVarPath = `/server-info/media-types`;
  11968. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11969. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11970. let baseOptions;
  11971. if (configuration) {
  11972. baseOptions = configuration.baseOptions;
  11973. }
  11974. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  11975. const localVarHeaderParameter = {} as any;
  11976. const localVarQueryParameter = {} as any;
  11977. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11978. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11979. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11980. return {
  11981. url: toPathString(localVarUrlObj),
  11982. options: localVarRequestOptions,
  11983. };
  11984. },
  11985. /**
  11986. *
  11987. * @param {*} [options] Override http request option.
  11988. * @throws {RequiredError}
  11989. */
  11990. getTheme: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11991. const localVarPath = `/server-info/theme`;
  11992. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11993. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11994. let baseOptions;
  11995. if (configuration) {
  11996. baseOptions = configuration.baseOptions;
  11997. }
  11998. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  11999. const localVarHeaderParameter = {} as any;
  12000. const localVarQueryParameter = {} as any;
  12001. setSearchParams(localVarUrlObj, localVarQueryParameter);
  12002. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  12003. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  12004. return {
  12005. url: toPathString(localVarUrlObj),
  12006. options: localVarRequestOptions,
  12007. };
  12008. },
  12009. /**
  12010. *
  12011. * @param {*} [options] Override http request option.
  12012. * @throws {RequiredError}
  12013. */
  12014. pingServer: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  12015. const localVarPath = `/server-info/ping`;
  12016. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  12017. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  12018. let baseOptions;
  12019. if (configuration) {
  12020. baseOptions = configuration.baseOptions;
  12021. }
  12022. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  12023. const localVarHeaderParameter = {} as any;
  12024. const localVarQueryParameter = {} as any;
  12025. setSearchParams(localVarUrlObj, localVarQueryParameter);
  12026. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  12027. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  12028. return {
  12029. url: toPathString(localVarUrlObj),
  12030. options: localVarRequestOptions,
  12031. };
  12032. },
  12033. }
  12034. };
  12035. /**
  12036. * ServerInfoApi - functional programming interface
  12037. * @export
  12038. */
  12039. export const ServerInfoApiFp = function(configuration?: Configuration) {
  12040. const localVarAxiosParamCreator = ServerInfoApiAxiosParamCreator(configuration)
  12041. return {
  12042. /**
  12043. *
  12044. * @param {*} [options] Override http request option.
  12045. * @throws {RequiredError}
  12046. */
  12047. async getServerConfig(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServerConfigDto>> {
  12048. const localVarAxiosArgs = await localVarAxiosParamCreator.getServerConfig(options);
  12049. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12050. },
  12051. /**
  12052. *
  12053. * @param {*} [options] Override http request option.
  12054. * @throws {RequiredError}
  12055. */
  12056. async getServerFeatures(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServerFeaturesDto>> {
  12057. const localVarAxiosArgs = await localVarAxiosParamCreator.getServerFeatures(options);
  12058. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12059. },
  12060. /**
  12061. *
  12062. * @param {*} [options] Override http request option.
  12063. * @throws {RequiredError}
  12064. */
  12065. async getServerInfo(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServerInfoResponseDto>> {
  12066. const localVarAxiosArgs = await localVarAxiosParamCreator.getServerInfo(options);
  12067. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12068. },
  12069. /**
  12070. *
  12071. * @param {*} [options] Override http request option.
  12072. * @throws {RequiredError}
  12073. */
  12074. async getServerVersion(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServerVersionResponseDto>> {
  12075. const localVarAxiosArgs = await localVarAxiosParamCreator.getServerVersion(options);
  12076. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12077. },
  12078. /**
  12079. *
  12080. * @param {*} [options] Override http request option.
  12081. * @throws {RequiredError}
  12082. */
  12083. async getStats(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServerStatsResponseDto>> {
  12084. const localVarAxiosArgs = await localVarAxiosParamCreator.getStats(options);
  12085. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12086. },
  12087. /**
  12088. *
  12089. * @param {*} [options] Override http request option.
  12090. * @throws {RequiredError}
  12091. */
  12092. async getSupportedMediaTypes(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServerMediaTypesResponseDto>> {
  12093. const localVarAxiosArgs = await localVarAxiosParamCreator.getSupportedMediaTypes(options);
  12094. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12095. },
  12096. /**
  12097. *
  12098. * @param {*} [options] Override http request option.
  12099. * @throws {RequiredError}
  12100. */
  12101. async getTheme(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServerThemeDto>> {
  12102. const localVarAxiosArgs = await localVarAxiosParamCreator.getTheme(options);
  12103. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12104. },
  12105. /**
  12106. *
  12107. * @param {*} [options] Override http request option.
  12108. * @throws {RequiredError}
  12109. */
  12110. async pingServer(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServerPingResponse>> {
  12111. const localVarAxiosArgs = await localVarAxiosParamCreator.pingServer(options);
  12112. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12113. },
  12114. }
  12115. };
  12116. /**
  12117. * ServerInfoApi - factory interface
  12118. * @export
  12119. */
  12120. export const ServerInfoApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  12121. const localVarFp = ServerInfoApiFp(configuration)
  12122. return {
  12123. /**
  12124. *
  12125. * @param {*} [options] Override http request option.
  12126. * @throws {RequiredError}
  12127. */
  12128. getServerConfig(options?: AxiosRequestConfig): AxiosPromise<ServerConfigDto> {
  12129. return localVarFp.getServerConfig(options).then((request) => request(axios, basePath));
  12130. },
  12131. /**
  12132. *
  12133. * @param {*} [options] Override http request option.
  12134. * @throws {RequiredError}
  12135. */
  12136. getServerFeatures(options?: AxiosRequestConfig): AxiosPromise<ServerFeaturesDto> {
  12137. return localVarFp.getServerFeatures(options).then((request) => request(axios, basePath));
  12138. },
  12139. /**
  12140. *
  12141. * @param {*} [options] Override http request option.
  12142. * @throws {RequiredError}
  12143. */
  12144. getServerInfo(options?: AxiosRequestConfig): AxiosPromise<ServerInfoResponseDto> {
  12145. return localVarFp.getServerInfo(options).then((request) => request(axios, basePath));
  12146. },
  12147. /**
  12148. *
  12149. * @param {*} [options] Override http request option.
  12150. * @throws {RequiredError}
  12151. */
  12152. getServerVersion(options?: AxiosRequestConfig): AxiosPromise<ServerVersionResponseDto> {
  12153. return localVarFp.getServerVersion(options).then((request) => request(axios, basePath));
  12154. },
  12155. /**
  12156. *
  12157. * @param {*} [options] Override http request option.
  12158. * @throws {RequiredError}
  12159. */
  12160. getStats(options?: AxiosRequestConfig): AxiosPromise<ServerStatsResponseDto> {
  12161. return localVarFp.getStats(options).then((request) => request(axios, basePath));
  12162. },
  12163. /**
  12164. *
  12165. * @param {*} [options] Override http request option.
  12166. * @throws {RequiredError}
  12167. */
  12168. getSupportedMediaTypes(options?: AxiosRequestConfig): AxiosPromise<ServerMediaTypesResponseDto> {
  12169. return localVarFp.getSupportedMediaTypes(options).then((request) => request(axios, basePath));
  12170. },
  12171. /**
  12172. *
  12173. * @param {*} [options] Override http request option.
  12174. * @throws {RequiredError}
  12175. */
  12176. getTheme(options?: AxiosRequestConfig): AxiosPromise<ServerThemeDto> {
  12177. return localVarFp.getTheme(options).then((request) => request(axios, basePath));
  12178. },
  12179. /**
  12180. *
  12181. * @param {*} [options] Override http request option.
  12182. * @throws {RequiredError}
  12183. */
  12184. pingServer(options?: AxiosRequestConfig): AxiosPromise<ServerPingResponse> {
  12185. return localVarFp.pingServer(options).then((request) => request(axios, basePath));
  12186. },
  12187. };
  12188. };
  12189. /**
  12190. * ServerInfoApi - object-oriented interface
  12191. * @export
  12192. * @class ServerInfoApi
  12193. * @extends {BaseAPI}
  12194. */
  12195. export class ServerInfoApi extends BaseAPI {
  12196. /**
  12197. *
  12198. * @param {*} [options] Override http request option.
  12199. * @throws {RequiredError}
  12200. * @memberof ServerInfoApi
  12201. */
  12202. public getServerConfig(options?: AxiosRequestConfig) {
  12203. return ServerInfoApiFp(this.configuration).getServerConfig(options).then((request) => request(this.axios, this.basePath));
  12204. }
  12205. /**
  12206. *
  12207. * @param {*} [options] Override http request option.
  12208. * @throws {RequiredError}
  12209. * @memberof ServerInfoApi
  12210. */
  12211. public getServerFeatures(options?: AxiosRequestConfig) {
  12212. return ServerInfoApiFp(this.configuration).getServerFeatures(options).then((request) => request(this.axios, this.basePath));
  12213. }
  12214. /**
  12215. *
  12216. * @param {*} [options] Override http request option.
  12217. * @throws {RequiredError}
  12218. * @memberof ServerInfoApi
  12219. */
  12220. public getServerInfo(options?: AxiosRequestConfig) {
  12221. return ServerInfoApiFp(this.configuration).getServerInfo(options).then((request) => request(this.axios, this.basePath));
  12222. }
  12223. /**
  12224. *
  12225. * @param {*} [options] Override http request option.
  12226. * @throws {RequiredError}
  12227. * @memberof ServerInfoApi
  12228. */
  12229. public getServerVersion(options?: AxiosRequestConfig) {
  12230. return ServerInfoApiFp(this.configuration).getServerVersion(options).then((request) => request(this.axios, this.basePath));
  12231. }
  12232. /**
  12233. *
  12234. * @param {*} [options] Override http request option.
  12235. * @throws {RequiredError}
  12236. * @memberof ServerInfoApi
  12237. */
  12238. public getStats(options?: AxiosRequestConfig) {
  12239. return ServerInfoApiFp(this.configuration).getStats(options).then((request) => request(this.axios, this.basePath));
  12240. }
  12241. /**
  12242. *
  12243. * @param {*} [options] Override http request option.
  12244. * @throws {RequiredError}
  12245. * @memberof ServerInfoApi
  12246. */
  12247. public getSupportedMediaTypes(options?: AxiosRequestConfig) {
  12248. return ServerInfoApiFp(this.configuration).getSupportedMediaTypes(options).then((request) => request(this.axios, this.basePath));
  12249. }
  12250. /**
  12251. *
  12252. * @param {*} [options] Override http request option.
  12253. * @throws {RequiredError}
  12254. * @memberof ServerInfoApi
  12255. */
  12256. public getTheme(options?: AxiosRequestConfig) {
  12257. return ServerInfoApiFp(this.configuration).getTheme(options).then((request) => request(this.axios, this.basePath));
  12258. }
  12259. /**
  12260. *
  12261. * @param {*} [options] Override http request option.
  12262. * @throws {RequiredError}
  12263. * @memberof ServerInfoApi
  12264. */
  12265. public pingServer(options?: AxiosRequestConfig) {
  12266. return ServerInfoApiFp(this.configuration).pingServer(options).then((request) => request(this.axios, this.basePath));
  12267. }
  12268. }
  12269. /**
  12270. * SharedLinkApi - axios parameter creator
  12271. * @export
  12272. */
  12273. export const SharedLinkApiAxiosParamCreator = function (configuration?: Configuration) {
  12274. return {
  12275. /**
  12276. *
  12277. * @param {string} id
  12278. * @param {AssetIdsDto} assetIdsDto
  12279. * @param {string} [key]
  12280. * @param {*} [options] Override http request option.
  12281. * @throws {RequiredError}
  12282. */
  12283. addSharedLinkAssets: async (id: string, assetIdsDto: AssetIdsDto, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  12284. // verify required parameter 'id' is not null or undefined
  12285. assertParamExists('addSharedLinkAssets', 'id', id)
  12286. // verify required parameter 'assetIdsDto' is not null or undefined
  12287. assertParamExists('addSharedLinkAssets', 'assetIdsDto', assetIdsDto)
  12288. const localVarPath = `/shared-link/{id}/assets`
  12289. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  12290. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  12291. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  12292. let baseOptions;
  12293. if (configuration) {
  12294. baseOptions = configuration.baseOptions;
  12295. }
  12296. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  12297. const localVarHeaderParameter = {} as any;
  12298. const localVarQueryParameter = {} as any;
  12299. // authentication cookie required
  12300. // authentication api_key required
  12301. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  12302. // authentication bearer required
  12303. // http bearer authentication required
  12304. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  12305. if (key !== undefined) {
  12306. localVarQueryParameter['key'] = key;
  12307. }
  12308. localVarHeaderParameter['Content-Type'] = 'application/json';
  12309. setSearchParams(localVarUrlObj, localVarQueryParameter);
  12310. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  12311. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  12312. localVarRequestOptions.data = serializeDataIfNeeded(assetIdsDto, localVarRequestOptions, configuration)
  12313. return {
  12314. url: toPathString(localVarUrlObj),
  12315. options: localVarRequestOptions,
  12316. };
  12317. },
  12318. /**
  12319. *
  12320. * @param {SharedLinkCreateDto} sharedLinkCreateDto
  12321. * @param {*} [options] Override http request option.
  12322. * @throws {RequiredError}
  12323. */
  12324. createSharedLink: async (sharedLinkCreateDto: SharedLinkCreateDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  12325. // verify required parameter 'sharedLinkCreateDto' is not null or undefined
  12326. assertParamExists('createSharedLink', 'sharedLinkCreateDto', sharedLinkCreateDto)
  12327. const localVarPath = `/shared-link`;
  12328. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  12329. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  12330. let baseOptions;
  12331. if (configuration) {
  12332. baseOptions = configuration.baseOptions;
  12333. }
  12334. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  12335. const localVarHeaderParameter = {} as any;
  12336. const localVarQueryParameter = {} as any;
  12337. // authentication cookie required
  12338. // authentication api_key required
  12339. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  12340. // authentication bearer required
  12341. // http bearer authentication required
  12342. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  12343. localVarHeaderParameter['Content-Type'] = 'application/json';
  12344. setSearchParams(localVarUrlObj, localVarQueryParameter);
  12345. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  12346. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  12347. localVarRequestOptions.data = serializeDataIfNeeded(sharedLinkCreateDto, localVarRequestOptions, configuration)
  12348. return {
  12349. url: toPathString(localVarUrlObj),
  12350. options: localVarRequestOptions,
  12351. };
  12352. },
  12353. /**
  12354. *
  12355. * @param {*} [options] Override http request option.
  12356. * @throws {RequiredError}
  12357. */
  12358. getAllSharedLinks: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  12359. const localVarPath = `/shared-link`;
  12360. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  12361. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  12362. let baseOptions;
  12363. if (configuration) {
  12364. baseOptions = configuration.baseOptions;
  12365. }
  12366. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  12367. const localVarHeaderParameter = {} as any;
  12368. const localVarQueryParameter = {} as any;
  12369. // authentication cookie required
  12370. // authentication api_key required
  12371. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  12372. // authentication bearer required
  12373. // http bearer authentication required
  12374. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  12375. setSearchParams(localVarUrlObj, localVarQueryParameter);
  12376. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  12377. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  12378. return {
  12379. url: toPathString(localVarUrlObj),
  12380. options: localVarRequestOptions,
  12381. };
  12382. },
  12383. /**
  12384. *
  12385. * @param {string} [key]
  12386. * @param {*} [options] Override http request option.
  12387. * @throws {RequiredError}
  12388. */
  12389. getMySharedLink: async (key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  12390. const localVarPath = `/shared-link/me`;
  12391. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  12392. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  12393. let baseOptions;
  12394. if (configuration) {
  12395. baseOptions = configuration.baseOptions;
  12396. }
  12397. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  12398. const localVarHeaderParameter = {} as any;
  12399. const localVarQueryParameter = {} as any;
  12400. // authentication cookie required
  12401. // authentication api_key required
  12402. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  12403. // authentication bearer required
  12404. // http bearer authentication required
  12405. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  12406. if (key !== undefined) {
  12407. localVarQueryParameter['key'] = key;
  12408. }
  12409. setSearchParams(localVarUrlObj, localVarQueryParameter);
  12410. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  12411. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  12412. return {
  12413. url: toPathString(localVarUrlObj),
  12414. options: localVarRequestOptions,
  12415. };
  12416. },
  12417. /**
  12418. *
  12419. * @param {string} id
  12420. * @param {*} [options] Override http request option.
  12421. * @throws {RequiredError}
  12422. */
  12423. getSharedLinkById: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  12424. // verify required parameter 'id' is not null or undefined
  12425. assertParamExists('getSharedLinkById', 'id', id)
  12426. const localVarPath = `/shared-link/{id}`
  12427. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  12428. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  12429. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  12430. let baseOptions;
  12431. if (configuration) {
  12432. baseOptions = configuration.baseOptions;
  12433. }
  12434. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  12435. const localVarHeaderParameter = {} as any;
  12436. const localVarQueryParameter = {} as any;
  12437. // authentication cookie required
  12438. // authentication api_key required
  12439. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  12440. // authentication bearer required
  12441. // http bearer authentication required
  12442. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  12443. setSearchParams(localVarUrlObj, localVarQueryParameter);
  12444. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  12445. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  12446. return {
  12447. url: toPathString(localVarUrlObj),
  12448. options: localVarRequestOptions,
  12449. };
  12450. },
  12451. /**
  12452. *
  12453. * @param {string} id
  12454. * @param {*} [options] Override http request option.
  12455. * @throws {RequiredError}
  12456. */
  12457. removeSharedLink: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  12458. // verify required parameter 'id' is not null or undefined
  12459. assertParamExists('removeSharedLink', 'id', id)
  12460. const localVarPath = `/shared-link/{id}`
  12461. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  12462. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  12463. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  12464. let baseOptions;
  12465. if (configuration) {
  12466. baseOptions = configuration.baseOptions;
  12467. }
  12468. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  12469. const localVarHeaderParameter = {} as any;
  12470. const localVarQueryParameter = {} as any;
  12471. // authentication cookie required
  12472. // authentication api_key required
  12473. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  12474. // authentication bearer required
  12475. // http bearer authentication required
  12476. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  12477. setSearchParams(localVarUrlObj, localVarQueryParameter);
  12478. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  12479. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  12480. return {
  12481. url: toPathString(localVarUrlObj),
  12482. options: localVarRequestOptions,
  12483. };
  12484. },
  12485. /**
  12486. *
  12487. * @param {string} id
  12488. * @param {AssetIdsDto} assetIdsDto
  12489. * @param {string} [key]
  12490. * @param {*} [options] Override http request option.
  12491. * @throws {RequiredError}
  12492. */
  12493. removeSharedLinkAssets: async (id: string, assetIdsDto: AssetIdsDto, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  12494. // verify required parameter 'id' is not null or undefined
  12495. assertParamExists('removeSharedLinkAssets', 'id', id)
  12496. // verify required parameter 'assetIdsDto' is not null or undefined
  12497. assertParamExists('removeSharedLinkAssets', 'assetIdsDto', assetIdsDto)
  12498. const localVarPath = `/shared-link/{id}/assets`
  12499. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  12500. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  12501. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  12502. let baseOptions;
  12503. if (configuration) {
  12504. baseOptions = configuration.baseOptions;
  12505. }
  12506. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  12507. const localVarHeaderParameter = {} as any;
  12508. const localVarQueryParameter = {} as any;
  12509. // authentication cookie required
  12510. // authentication api_key required
  12511. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  12512. // authentication bearer required
  12513. // http bearer authentication required
  12514. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  12515. if (key !== undefined) {
  12516. localVarQueryParameter['key'] = key;
  12517. }
  12518. localVarHeaderParameter['Content-Type'] = 'application/json';
  12519. setSearchParams(localVarUrlObj, localVarQueryParameter);
  12520. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  12521. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  12522. localVarRequestOptions.data = serializeDataIfNeeded(assetIdsDto, localVarRequestOptions, configuration)
  12523. return {
  12524. url: toPathString(localVarUrlObj),
  12525. options: localVarRequestOptions,
  12526. };
  12527. },
  12528. /**
  12529. *
  12530. * @param {string} id
  12531. * @param {SharedLinkEditDto} sharedLinkEditDto
  12532. * @param {*} [options] Override http request option.
  12533. * @throws {RequiredError}
  12534. */
  12535. updateSharedLink: async (id: string, sharedLinkEditDto: SharedLinkEditDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  12536. // verify required parameter 'id' is not null or undefined
  12537. assertParamExists('updateSharedLink', 'id', id)
  12538. // verify required parameter 'sharedLinkEditDto' is not null or undefined
  12539. assertParamExists('updateSharedLink', 'sharedLinkEditDto', sharedLinkEditDto)
  12540. const localVarPath = `/shared-link/{id}`
  12541. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  12542. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  12543. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  12544. let baseOptions;
  12545. if (configuration) {
  12546. baseOptions = configuration.baseOptions;
  12547. }
  12548. const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
  12549. const localVarHeaderParameter = {} as any;
  12550. const localVarQueryParameter = {} as any;
  12551. // authentication cookie required
  12552. // authentication api_key required
  12553. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  12554. // authentication bearer required
  12555. // http bearer authentication required
  12556. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  12557. localVarHeaderParameter['Content-Type'] = 'application/json';
  12558. setSearchParams(localVarUrlObj, localVarQueryParameter);
  12559. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  12560. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  12561. localVarRequestOptions.data = serializeDataIfNeeded(sharedLinkEditDto, localVarRequestOptions, configuration)
  12562. return {
  12563. url: toPathString(localVarUrlObj),
  12564. options: localVarRequestOptions,
  12565. };
  12566. },
  12567. }
  12568. };
  12569. /**
  12570. * SharedLinkApi - functional programming interface
  12571. * @export
  12572. */
  12573. export const SharedLinkApiFp = function(configuration?: Configuration) {
  12574. const localVarAxiosParamCreator = SharedLinkApiAxiosParamCreator(configuration)
  12575. return {
  12576. /**
  12577. *
  12578. * @param {string} id
  12579. * @param {AssetIdsDto} assetIdsDto
  12580. * @param {string} [key]
  12581. * @param {*} [options] Override http request option.
  12582. * @throws {RequiredError}
  12583. */
  12584. async addSharedLinkAssets(id: string, assetIdsDto: AssetIdsDto, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetIdsResponseDto>>> {
  12585. const localVarAxiosArgs = await localVarAxiosParamCreator.addSharedLinkAssets(id, assetIdsDto, key, options);
  12586. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12587. },
  12588. /**
  12589. *
  12590. * @param {SharedLinkCreateDto} sharedLinkCreateDto
  12591. * @param {*} [options] Override http request option.
  12592. * @throws {RequiredError}
  12593. */
  12594. async createSharedLink(sharedLinkCreateDto: SharedLinkCreateDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SharedLinkResponseDto>> {
  12595. const localVarAxiosArgs = await localVarAxiosParamCreator.createSharedLink(sharedLinkCreateDto, options);
  12596. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12597. },
  12598. /**
  12599. *
  12600. * @param {*} [options] Override http request option.
  12601. * @throws {RequiredError}
  12602. */
  12603. async getAllSharedLinks(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<SharedLinkResponseDto>>> {
  12604. const localVarAxiosArgs = await localVarAxiosParamCreator.getAllSharedLinks(options);
  12605. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12606. },
  12607. /**
  12608. *
  12609. * @param {string} [key]
  12610. * @param {*} [options] Override http request option.
  12611. * @throws {RequiredError}
  12612. */
  12613. async getMySharedLink(key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SharedLinkResponseDto>> {
  12614. const localVarAxiosArgs = await localVarAxiosParamCreator.getMySharedLink(key, options);
  12615. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12616. },
  12617. /**
  12618. *
  12619. * @param {string} id
  12620. * @param {*} [options] Override http request option.
  12621. * @throws {RequiredError}
  12622. */
  12623. async getSharedLinkById(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SharedLinkResponseDto>> {
  12624. const localVarAxiosArgs = await localVarAxiosParamCreator.getSharedLinkById(id, options);
  12625. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12626. },
  12627. /**
  12628. *
  12629. * @param {string} id
  12630. * @param {*} [options] Override http request option.
  12631. * @throws {RequiredError}
  12632. */
  12633. async removeSharedLink(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  12634. const localVarAxiosArgs = await localVarAxiosParamCreator.removeSharedLink(id, options);
  12635. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12636. },
  12637. /**
  12638. *
  12639. * @param {string} id
  12640. * @param {AssetIdsDto} assetIdsDto
  12641. * @param {string} [key]
  12642. * @param {*} [options] Override http request option.
  12643. * @throws {RequiredError}
  12644. */
  12645. async removeSharedLinkAssets(id: string, assetIdsDto: AssetIdsDto, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetIdsResponseDto>>> {
  12646. const localVarAxiosArgs = await localVarAxiosParamCreator.removeSharedLinkAssets(id, assetIdsDto, key, options);
  12647. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12648. },
  12649. /**
  12650. *
  12651. * @param {string} id
  12652. * @param {SharedLinkEditDto} sharedLinkEditDto
  12653. * @param {*} [options] Override http request option.
  12654. * @throws {RequiredError}
  12655. */
  12656. async updateSharedLink(id: string, sharedLinkEditDto: SharedLinkEditDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SharedLinkResponseDto>> {
  12657. const localVarAxiosArgs = await localVarAxiosParamCreator.updateSharedLink(id, sharedLinkEditDto, options);
  12658. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12659. },
  12660. }
  12661. };
  12662. /**
  12663. * SharedLinkApi - factory interface
  12664. * @export
  12665. */
  12666. export const SharedLinkApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  12667. const localVarFp = SharedLinkApiFp(configuration)
  12668. return {
  12669. /**
  12670. *
  12671. * @param {SharedLinkApiAddSharedLinkAssetsRequest} requestParameters Request parameters.
  12672. * @param {*} [options] Override http request option.
  12673. * @throws {RequiredError}
  12674. */
  12675. addSharedLinkAssets(requestParameters: SharedLinkApiAddSharedLinkAssetsRequest, options?: AxiosRequestConfig): AxiosPromise<Array<AssetIdsResponseDto>> {
  12676. return localVarFp.addSharedLinkAssets(requestParameters.id, requestParameters.assetIdsDto, requestParameters.key, options).then((request) => request(axios, basePath));
  12677. },
  12678. /**
  12679. *
  12680. * @param {SharedLinkApiCreateSharedLinkRequest} requestParameters Request parameters.
  12681. * @param {*} [options] Override http request option.
  12682. * @throws {RequiredError}
  12683. */
  12684. createSharedLink(requestParameters: SharedLinkApiCreateSharedLinkRequest, options?: AxiosRequestConfig): AxiosPromise<SharedLinkResponseDto> {
  12685. return localVarFp.createSharedLink(requestParameters.sharedLinkCreateDto, options).then((request) => request(axios, basePath));
  12686. },
  12687. /**
  12688. *
  12689. * @param {*} [options] Override http request option.
  12690. * @throws {RequiredError}
  12691. */
  12692. getAllSharedLinks(options?: AxiosRequestConfig): AxiosPromise<Array<SharedLinkResponseDto>> {
  12693. return localVarFp.getAllSharedLinks(options).then((request) => request(axios, basePath));
  12694. },
  12695. /**
  12696. *
  12697. * @param {SharedLinkApiGetMySharedLinkRequest} requestParameters Request parameters.
  12698. * @param {*} [options] Override http request option.
  12699. * @throws {RequiredError}
  12700. */
  12701. getMySharedLink(requestParameters: SharedLinkApiGetMySharedLinkRequest = {}, options?: AxiosRequestConfig): AxiosPromise<SharedLinkResponseDto> {
  12702. return localVarFp.getMySharedLink(requestParameters.key, options).then((request) => request(axios, basePath));
  12703. },
  12704. /**
  12705. *
  12706. * @param {SharedLinkApiGetSharedLinkByIdRequest} requestParameters Request parameters.
  12707. * @param {*} [options] Override http request option.
  12708. * @throws {RequiredError}
  12709. */
  12710. getSharedLinkById(requestParameters: SharedLinkApiGetSharedLinkByIdRequest, options?: AxiosRequestConfig): AxiosPromise<SharedLinkResponseDto> {
  12711. return localVarFp.getSharedLinkById(requestParameters.id, options).then((request) => request(axios, basePath));
  12712. },
  12713. /**
  12714. *
  12715. * @param {SharedLinkApiRemoveSharedLinkRequest} requestParameters Request parameters.
  12716. * @param {*} [options] Override http request option.
  12717. * @throws {RequiredError}
  12718. */
  12719. removeSharedLink(requestParameters: SharedLinkApiRemoveSharedLinkRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  12720. return localVarFp.removeSharedLink(requestParameters.id, options).then((request) => request(axios, basePath));
  12721. },
  12722. /**
  12723. *
  12724. * @param {SharedLinkApiRemoveSharedLinkAssetsRequest} requestParameters Request parameters.
  12725. * @param {*} [options] Override http request option.
  12726. * @throws {RequiredError}
  12727. */
  12728. removeSharedLinkAssets(requestParameters: SharedLinkApiRemoveSharedLinkAssetsRequest, options?: AxiosRequestConfig): AxiosPromise<Array<AssetIdsResponseDto>> {
  12729. return localVarFp.removeSharedLinkAssets(requestParameters.id, requestParameters.assetIdsDto, requestParameters.key, options).then((request) => request(axios, basePath));
  12730. },
  12731. /**
  12732. *
  12733. * @param {SharedLinkApiUpdateSharedLinkRequest} requestParameters Request parameters.
  12734. * @param {*} [options] Override http request option.
  12735. * @throws {RequiredError}
  12736. */
  12737. updateSharedLink(requestParameters: SharedLinkApiUpdateSharedLinkRequest, options?: AxiosRequestConfig): AxiosPromise<SharedLinkResponseDto> {
  12738. return localVarFp.updateSharedLink(requestParameters.id, requestParameters.sharedLinkEditDto, options).then((request) => request(axios, basePath));
  12739. },
  12740. };
  12741. };
  12742. /**
  12743. * Request parameters for addSharedLinkAssets operation in SharedLinkApi.
  12744. * @export
  12745. * @interface SharedLinkApiAddSharedLinkAssetsRequest
  12746. */
  12747. export interface SharedLinkApiAddSharedLinkAssetsRequest {
  12748. /**
  12749. *
  12750. * @type {string}
  12751. * @memberof SharedLinkApiAddSharedLinkAssets
  12752. */
  12753. readonly id: string
  12754. /**
  12755. *
  12756. * @type {AssetIdsDto}
  12757. * @memberof SharedLinkApiAddSharedLinkAssets
  12758. */
  12759. readonly assetIdsDto: AssetIdsDto
  12760. /**
  12761. *
  12762. * @type {string}
  12763. * @memberof SharedLinkApiAddSharedLinkAssets
  12764. */
  12765. readonly key?: string
  12766. }
  12767. /**
  12768. * Request parameters for createSharedLink operation in SharedLinkApi.
  12769. * @export
  12770. * @interface SharedLinkApiCreateSharedLinkRequest
  12771. */
  12772. export interface SharedLinkApiCreateSharedLinkRequest {
  12773. /**
  12774. *
  12775. * @type {SharedLinkCreateDto}
  12776. * @memberof SharedLinkApiCreateSharedLink
  12777. */
  12778. readonly sharedLinkCreateDto: SharedLinkCreateDto
  12779. }
  12780. /**
  12781. * Request parameters for getMySharedLink operation in SharedLinkApi.
  12782. * @export
  12783. * @interface SharedLinkApiGetMySharedLinkRequest
  12784. */
  12785. export interface SharedLinkApiGetMySharedLinkRequest {
  12786. /**
  12787. *
  12788. * @type {string}
  12789. * @memberof SharedLinkApiGetMySharedLink
  12790. */
  12791. readonly key?: string
  12792. }
  12793. /**
  12794. * Request parameters for getSharedLinkById operation in SharedLinkApi.
  12795. * @export
  12796. * @interface SharedLinkApiGetSharedLinkByIdRequest
  12797. */
  12798. export interface SharedLinkApiGetSharedLinkByIdRequest {
  12799. /**
  12800. *
  12801. * @type {string}
  12802. * @memberof SharedLinkApiGetSharedLinkById
  12803. */
  12804. readonly id: string
  12805. }
  12806. /**
  12807. * Request parameters for removeSharedLink operation in SharedLinkApi.
  12808. * @export
  12809. * @interface SharedLinkApiRemoveSharedLinkRequest
  12810. */
  12811. export interface SharedLinkApiRemoveSharedLinkRequest {
  12812. /**
  12813. *
  12814. * @type {string}
  12815. * @memberof SharedLinkApiRemoveSharedLink
  12816. */
  12817. readonly id: string
  12818. }
  12819. /**
  12820. * Request parameters for removeSharedLinkAssets operation in SharedLinkApi.
  12821. * @export
  12822. * @interface SharedLinkApiRemoveSharedLinkAssetsRequest
  12823. */
  12824. export interface SharedLinkApiRemoveSharedLinkAssetsRequest {
  12825. /**
  12826. *
  12827. * @type {string}
  12828. * @memberof SharedLinkApiRemoveSharedLinkAssets
  12829. */
  12830. readonly id: string
  12831. /**
  12832. *
  12833. * @type {AssetIdsDto}
  12834. * @memberof SharedLinkApiRemoveSharedLinkAssets
  12835. */
  12836. readonly assetIdsDto: AssetIdsDto
  12837. /**
  12838. *
  12839. * @type {string}
  12840. * @memberof SharedLinkApiRemoveSharedLinkAssets
  12841. */
  12842. readonly key?: string
  12843. }
  12844. /**
  12845. * Request parameters for updateSharedLink operation in SharedLinkApi.
  12846. * @export
  12847. * @interface SharedLinkApiUpdateSharedLinkRequest
  12848. */
  12849. export interface SharedLinkApiUpdateSharedLinkRequest {
  12850. /**
  12851. *
  12852. * @type {string}
  12853. * @memberof SharedLinkApiUpdateSharedLink
  12854. */
  12855. readonly id: string
  12856. /**
  12857. *
  12858. * @type {SharedLinkEditDto}
  12859. * @memberof SharedLinkApiUpdateSharedLink
  12860. */
  12861. readonly sharedLinkEditDto: SharedLinkEditDto
  12862. }
  12863. /**
  12864. * SharedLinkApi - object-oriented interface
  12865. * @export
  12866. * @class SharedLinkApi
  12867. * @extends {BaseAPI}
  12868. */
  12869. export class SharedLinkApi extends BaseAPI {
  12870. /**
  12871. *
  12872. * @param {SharedLinkApiAddSharedLinkAssetsRequest} requestParameters Request parameters.
  12873. * @param {*} [options] Override http request option.
  12874. * @throws {RequiredError}
  12875. * @memberof SharedLinkApi
  12876. */
  12877. public addSharedLinkAssets(requestParameters: SharedLinkApiAddSharedLinkAssetsRequest, options?: AxiosRequestConfig) {
  12878. return SharedLinkApiFp(this.configuration).addSharedLinkAssets(requestParameters.id, requestParameters.assetIdsDto, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  12879. }
  12880. /**
  12881. *
  12882. * @param {SharedLinkApiCreateSharedLinkRequest} requestParameters Request parameters.
  12883. * @param {*} [options] Override http request option.
  12884. * @throws {RequiredError}
  12885. * @memberof SharedLinkApi
  12886. */
  12887. public createSharedLink(requestParameters: SharedLinkApiCreateSharedLinkRequest, options?: AxiosRequestConfig) {
  12888. return SharedLinkApiFp(this.configuration).createSharedLink(requestParameters.sharedLinkCreateDto, options).then((request) => request(this.axios, this.basePath));
  12889. }
  12890. /**
  12891. *
  12892. * @param {*} [options] Override http request option.
  12893. * @throws {RequiredError}
  12894. * @memberof SharedLinkApi
  12895. */
  12896. public getAllSharedLinks(options?: AxiosRequestConfig) {
  12897. return SharedLinkApiFp(this.configuration).getAllSharedLinks(options).then((request) => request(this.axios, this.basePath));
  12898. }
  12899. /**
  12900. *
  12901. * @param {SharedLinkApiGetMySharedLinkRequest} requestParameters Request parameters.
  12902. * @param {*} [options] Override http request option.
  12903. * @throws {RequiredError}
  12904. * @memberof SharedLinkApi
  12905. */
  12906. public getMySharedLink(requestParameters: SharedLinkApiGetMySharedLinkRequest = {}, options?: AxiosRequestConfig) {
  12907. return SharedLinkApiFp(this.configuration).getMySharedLink(requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  12908. }
  12909. /**
  12910. *
  12911. * @param {SharedLinkApiGetSharedLinkByIdRequest} requestParameters Request parameters.
  12912. * @param {*} [options] Override http request option.
  12913. * @throws {RequiredError}
  12914. * @memberof SharedLinkApi
  12915. */
  12916. public getSharedLinkById(requestParameters: SharedLinkApiGetSharedLinkByIdRequest, options?: AxiosRequestConfig) {
  12917. return SharedLinkApiFp(this.configuration).getSharedLinkById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  12918. }
  12919. /**
  12920. *
  12921. * @param {SharedLinkApiRemoveSharedLinkRequest} requestParameters Request parameters.
  12922. * @param {*} [options] Override http request option.
  12923. * @throws {RequiredError}
  12924. * @memberof SharedLinkApi
  12925. */
  12926. public removeSharedLink(requestParameters: SharedLinkApiRemoveSharedLinkRequest, options?: AxiosRequestConfig) {
  12927. return SharedLinkApiFp(this.configuration).removeSharedLink(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  12928. }
  12929. /**
  12930. *
  12931. * @param {SharedLinkApiRemoveSharedLinkAssetsRequest} requestParameters Request parameters.
  12932. * @param {*} [options] Override http request option.
  12933. * @throws {RequiredError}
  12934. * @memberof SharedLinkApi
  12935. */
  12936. public removeSharedLinkAssets(requestParameters: SharedLinkApiRemoveSharedLinkAssetsRequest, options?: AxiosRequestConfig) {
  12937. return SharedLinkApiFp(this.configuration).removeSharedLinkAssets(requestParameters.id, requestParameters.assetIdsDto, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  12938. }
  12939. /**
  12940. *
  12941. * @param {SharedLinkApiUpdateSharedLinkRequest} requestParameters Request parameters.
  12942. * @param {*} [options] Override http request option.
  12943. * @throws {RequiredError}
  12944. * @memberof SharedLinkApi
  12945. */
  12946. public updateSharedLink(requestParameters: SharedLinkApiUpdateSharedLinkRequest, options?: AxiosRequestConfig) {
  12947. return SharedLinkApiFp(this.configuration).updateSharedLink(requestParameters.id, requestParameters.sharedLinkEditDto, options).then((request) => request(this.axios, this.basePath));
  12948. }
  12949. }
  12950. /**
  12951. * SystemConfigApi - axios parameter creator
  12952. * @export
  12953. */
  12954. export const SystemConfigApiAxiosParamCreator = function (configuration?: Configuration) {
  12955. return {
  12956. /**
  12957. *
  12958. * @param {*} [options] Override http request option.
  12959. * @throws {RequiredError}
  12960. */
  12961. getConfig: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  12962. const localVarPath = `/system-config`;
  12963. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  12964. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  12965. let baseOptions;
  12966. if (configuration) {
  12967. baseOptions = configuration.baseOptions;
  12968. }
  12969. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  12970. const localVarHeaderParameter = {} as any;
  12971. const localVarQueryParameter = {} as any;
  12972. // authentication cookie required
  12973. // authentication api_key required
  12974. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  12975. // authentication bearer required
  12976. // http bearer authentication required
  12977. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  12978. setSearchParams(localVarUrlObj, localVarQueryParameter);
  12979. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  12980. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  12981. return {
  12982. url: toPathString(localVarUrlObj),
  12983. options: localVarRequestOptions,
  12984. };
  12985. },
  12986. /**
  12987. *
  12988. * @param {*} [options] Override http request option.
  12989. * @throws {RequiredError}
  12990. */
  12991. getDefaults: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  12992. const localVarPath = `/system-config/defaults`;
  12993. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  12994. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  12995. let baseOptions;
  12996. if (configuration) {
  12997. baseOptions = configuration.baseOptions;
  12998. }
  12999. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  13000. const localVarHeaderParameter = {} as any;
  13001. const localVarQueryParameter = {} as any;
  13002. // authentication cookie required
  13003. // authentication api_key required
  13004. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13005. // authentication bearer required
  13006. // http bearer authentication required
  13007. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13008. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13009. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13010. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13011. return {
  13012. url: toPathString(localVarUrlObj),
  13013. options: localVarRequestOptions,
  13014. };
  13015. },
  13016. /**
  13017. *
  13018. * @param {*} [options] Override http request option.
  13019. * @throws {RequiredError}
  13020. */
  13021. getStorageTemplateOptions: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13022. const localVarPath = `/system-config/storage-template-options`;
  13023. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13024. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13025. let baseOptions;
  13026. if (configuration) {
  13027. baseOptions = configuration.baseOptions;
  13028. }
  13029. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  13030. const localVarHeaderParameter = {} as any;
  13031. const localVarQueryParameter = {} as any;
  13032. // authentication cookie required
  13033. // authentication api_key required
  13034. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13035. // authentication bearer required
  13036. // http bearer authentication required
  13037. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13038. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13039. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13040. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13041. return {
  13042. url: toPathString(localVarUrlObj),
  13043. options: localVarRequestOptions,
  13044. };
  13045. },
  13046. /**
  13047. *
  13048. * @param {SystemConfigDto} systemConfigDto
  13049. * @param {*} [options] Override http request option.
  13050. * @throws {RequiredError}
  13051. */
  13052. updateConfig: async (systemConfigDto: SystemConfigDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13053. // verify required parameter 'systemConfigDto' is not null or undefined
  13054. assertParamExists('updateConfig', 'systemConfigDto', systemConfigDto)
  13055. const localVarPath = `/system-config`;
  13056. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13057. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13058. let baseOptions;
  13059. if (configuration) {
  13060. baseOptions = configuration.baseOptions;
  13061. }
  13062. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  13063. const localVarHeaderParameter = {} as any;
  13064. const localVarQueryParameter = {} as any;
  13065. // authentication cookie required
  13066. // authentication api_key required
  13067. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13068. // authentication bearer required
  13069. // http bearer authentication required
  13070. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13071. localVarHeaderParameter['Content-Type'] = 'application/json';
  13072. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13073. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13074. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13075. localVarRequestOptions.data = serializeDataIfNeeded(systemConfigDto, localVarRequestOptions, configuration)
  13076. return {
  13077. url: toPathString(localVarUrlObj),
  13078. options: localVarRequestOptions,
  13079. };
  13080. },
  13081. }
  13082. };
  13083. /**
  13084. * SystemConfigApi - functional programming interface
  13085. * @export
  13086. */
  13087. export const SystemConfigApiFp = function(configuration?: Configuration) {
  13088. const localVarAxiosParamCreator = SystemConfigApiAxiosParamCreator(configuration)
  13089. return {
  13090. /**
  13091. *
  13092. * @param {*} [options] Override http request option.
  13093. * @throws {RequiredError}
  13094. */
  13095. async getConfig(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SystemConfigDto>> {
  13096. const localVarAxiosArgs = await localVarAxiosParamCreator.getConfig(options);
  13097. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13098. },
  13099. /**
  13100. *
  13101. * @param {*} [options] Override http request option.
  13102. * @throws {RequiredError}
  13103. */
  13104. async getDefaults(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SystemConfigDto>> {
  13105. const localVarAxiosArgs = await localVarAxiosParamCreator.getDefaults(options);
  13106. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13107. },
  13108. /**
  13109. *
  13110. * @param {*} [options] Override http request option.
  13111. * @throws {RequiredError}
  13112. */
  13113. async getStorageTemplateOptions(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SystemConfigTemplateStorageOptionDto>> {
  13114. const localVarAxiosArgs = await localVarAxiosParamCreator.getStorageTemplateOptions(options);
  13115. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13116. },
  13117. /**
  13118. *
  13119. * @param {SystemConfigDto} systemConfigDto
  13120. * @param {*} [options] Override http request option.
  13121. * @throws {RequiredError}
  13122. */
  13123. async updateConfig(systemConfigDto: SystemConfigDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SystemConfigDto>> {
  13124. const localVarAxiosArgs = await localVarAxiosParamCreator.updateConfig(systemConfigDto, options);
  13125. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13126. },
  13127. }
  13128. };
  13129. /**
  13130. * SystemConfigApi - factory interface
  13131. * @export
  13132. */
  13133. export const SystemConfigApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  13134. const localVarFp = SystemConfigApiFp(configuration)
  13135. return {
  13136. /**
  13137. *
  13138. * @param {*} [options] Override http request option.
  13139. * @throws {RequiredError}
  13140. */
  13141. getConfig(options?: AxiosRequestConfig): AxiosPromise<SystemConfigDto> {
  13142. return localVarFp.getConfig(options).then((request) => request(axios, basePath));
  13143. },
  13144. /**
  13145. *
  13146. * @param {*} [options] Override http request option.
  13147. * @throws {RequiredError}
  13148. */
  13149. getDefaults(options?: AxiosRequestConfig): AxiosPromise<SystemConfigDto> {
  13150. return localVarFp.getDefaults(options).then((request) => request(axios, basePath));
  13151. },
  13152. /**
  13153. *
  13154. * @param {*} [options] Override http request option.
  13155. * @throws {RequiredError}
  13156. */
  13157. getStorageTemplateOptions(options?: AxiosRequestConfig): AxiosPromise<SystemConfigTemplateStorageOptionDto> {
  13158. return localVarFp.getStorageTemplateOptions(options).then((request) => request(axios, basePath));
  13159. },
  13160. /**
  13161. *
  13162. * @param {SystemConfigApiUpdateConfigRequest} requestParameters Request parameters.
  13163. * @param {*} [options] Override http request option.
  13164. * @throws {RequiredError}
  13165. */
  13166. updateConfig(requestParameters: SystemConfigApiUpdateConfigRequest, options?: AxiosRequestConfig): AxiosPromise<SystemConfigDto> {
  13167. return localVarFp.updateConfig(requestParameters.systemConfigDto, options).then((request) => request(axios, basePath));
  13168. },
  13169. };
  13170. };
  13171. /**
  13172. * Request parameters for updateConfig operation in SystemConfigApi.
  13173. * @export
  13174. * @interface SystemConfigApiUpdateConfigRequest
  13175. */
  13176. export interface SystemConfigApiUpdateConfigRequest {
  13177. /**
  13178. *
  13179. * @type {SystemConfigDto}
  13180. * @memberof SystemConfigApiUpdateConfig
  13181. */
  13182. readonly systemConfigDto: SystemConfigDto
  13183. }
  13184. /**
  13185. * SystemConfigApi - object-oriented interface
  13186. * @export
  13187. * @class SystemConfigApi
  13188. * @extends {BaseAPI}
  13189. */
  13190. export class SystemConfigApi extends BaseAPI {
  13191. /**
  13192. *
  13193. * @param {*} [options] Override http request option.
  13194. * @throws {RequiredError}
  13195. * @memberof SystemConfigApi
  13196. */
  13197. public getConfig(options?: AxiosRequestConfig) {
  13198. return SystemConfigApiFp(this.configuration).getConfig(options).then((request) => request(this.axios, this.basePath));
  13199. }
  13200. /**
  13201. *
  13202. * @param {*} [options] Override http request option.
  13203. * @throws {RequiredError}
  13204. * @memberof SystemConfigApi
  13205. */
  13206. public getDefaults(options?: AxiosRequestConfig) {
  13207. return SystemConfigApiFp(this.configuration).getDefaults(options).then((request) => request(this.axios, this.basePath));
  13208. }
  13209. /**
  13210. *
  13211. * @param {*} [options] Override http request option.
  13212. * @throws {RequiredError}
  13213. * @memberof SystemConfigApi
  13214. */
  13215. public getStorageTemplateOptions(options?: AxiosRequestConfig) {
  13216. return SystemConfigApiFp(this.configuration).getStorageTemplateOptions(options).then((request) => request(this.axios, this.basePath));
  13217. }
  13218. /**
  13219. *
  13220. * @param {SystemConfigApiUpdateConfigRequest} requestParameters Request parameters.
  13221. * @param {*} [options] Override http request option.
  13222. * @throws {RequiredError}
  13223. * @memberof SystemConfigApi
  13224. */
  13225. public updateConfig(requestParameters: SystemConfigApiUpdateConfigRequest, options?: AxiosRequestConfig) {
  13226. return SystemConfigApiFp(this.configuration).updateConfig(requestParameters.systemConfigDto, options).then((request) => request(this.axios, this.basePath));
  13227. }
  13228. }
  13229. /**
  13230. * TagApi - axios parameter creator
  13231. * @export
  13232. */
  13233. export const TagApiAxiosParamCreator = function (configuration?: Configuration) {
  13234. return {
  13235. /**
  13236. *
  13237. * @param {CreateTagDto} createTagDto
  13238. * @param {*} [options] Override http request option.
  13239. * @throws {RequiredError}
  13240. */
  13241. createTag: async (createTagDto: CreateTagDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13242. // verify required parameter 'createTagDto' is not null or undefined
  13243. assertParamExists('createTag', 'createTagDto', createTagDto)
  13244. const localVarPath = `/tag`;
  13245. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13246. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13247. let baseOptions;
  13248. if (configuration) {
  13249. baseOptions = configuration.baseOptions;
  13250. }
  13251. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  13252. const localVarHeaderParameter = {} as any;
  13253. const localVarQueryParameter = {} as any;
  13254. // authentication cookie required
  13255. // authentication api_key required
  13256. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13257. // authentication bearer required
  13258. // http bearer authentication required
  13259. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13260. localVarHeaderParameter['Content-Type'] = 'application/json';
  13261. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13262. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13263. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13264. localVarRequestOptions.data = serializeDataIfNeeded(createTagDto, localVarRequestOptions, configuration)
  13265. return {
  13266. url: toPathString(localVarUrlObj),
  13267. options: localVarRequestOptions,
  13268. };
  13269. },
  13270. /**
  13271. *
  13272. * @param {string} id
  13273. * @param {*} [options] Override http request option.
  13274. * @throws {RequiredError}
  13275. */
  13276. deleteTag: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13277. // verify required parameter 'id' is not null or undefined
  13278. assertParamExists('deleteTag', 'id', id)
  13279. const localVarPath = `/tag/{id}`
  13280. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  13281. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13282. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13283. let baseOptions;
  13284. if (configuration) {
  13285. baseOptions = configuration.baseOptions;
  13286. }
  13287. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  13288. const localVarHeaderParameter = {} as any;
  13289. const localVarQueryParameter = {} as any;
  13290. // authentication cookie required
  13291. // authentication api_key required
  13292. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13293. // authentication bearer required
  13294. // http bearer authentication required
  13295. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13296. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13297. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13298. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13299. return {
  13300. url: toPathString(localVarUrlObj),
  13301. options: localVarRequestOptions,
  13302. };
  13303. },
  13304. /**
  13305. *
  13306. * @param {*} [options] Override http request option.
  13307. * @throws {RequiredError}
  13308. */
  13309. getAllTags: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13310. const localVarPath = `/tag`;
  13311. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13312. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13313. let baseOptions;
  13314. if (configuration) {
  13315. baseOptions = configuration.baseOptions;
  13316. }
  13317. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  13318. const localVarHeaderParameter = {} as any;
  13319. const localVarQueryParameter = {} as any;
  13320. // authentication cookie required
  13321. // authentication api_key required
  13322. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13323. // authentication bearer required
  13324. // http bearer authentication required
  13325. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13326. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13327. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13328. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13329. return {
  13330. url: toPathString(localVarUrlObj),
  13331. options: localVarRequestOptions,
  13332. };
  13333. },
  13334. /**
  13335. *
  13336. * @param {string} id
  13337. * @param {*} [options] Override http request option.
  13338. * @throws {RequiredError}
  13339. */
  13340. getTagAssets: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13341. // verify required parameter 'id' is not null or undefined
  13342. assertParamExists('getTagAssets', 'id', id)
  13343. const localVarPath = `/tag/{id}/assets`
  13344. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  13345. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13346. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13347. let baseOptions;
  13348. if (configuration) {
  13349. baseOptions = configuration.baseOptions;
  13350. }
  13351. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  13352. const localVarHeaderParameter = {} as any;
  13353. const localVarQueryParameter = {} as any;
  13354. // authentication cookie required
  13355. // authentication api_key required
  13356. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13357. // authentication bearer required
  13358. // http bearer authentication required
  13359. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13360. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13361. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13362. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13363. return {
  13364. url: toPathString(localVarUrlObj),
  13365. options: localVarRequestOptions,
  13366. };
  13367. },
  13368. /**
  13369. *
  13370. * @param {string} id
  13371. * @param {*} [options] Override http request option.
  13372. * @throws {RequiredError}
  13373. */
  13374. getTagById: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13375. // verify required parameter 'id' is not null or undefined
  13376. assertParamExists('getTagById', 'id', id)
  13377. const localVarPath = `/tag/{id}`
  13378. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  13379. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13380. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13381. let baseOptions;
  13382. if (configuration) {
  13383. baseOptions = configuration.baseOptions;
  13384. }
  13385. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  13386. const localVarHeaderParameter = {} as any;
  13387. const localVarQueryParameter = {} as any;
  13388. // authentication cookie required
  13389. // authentication api_key required
  13390. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13391. // authentication bearer required
  13392. // http bearer authentication required
  13393. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13394. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13395. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13396. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13397. return {
  13398. url: toPathString(localVarUrlObj),
  13399. options: localVarRequestOptions,
  13400. };
  13401. },
  13402. /**
  13403. *
  13404. * @param {string} id
  13405. * @param {AssetIdsDto} assetIdsDto
  13406. * @param {*} [options] Override http request option.
  13407. * @throws {RequiredError}
  13408. */
  13409. tagAssets: async (id: string, assetIdsDto: AssetIdsDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13410. // verify required parameter 'id' is not null or undefined
  13411. assertParamExists('tagAssets', 'id', id)
  13412. // verify required parameter 'assetIdsDto' is not null or undefined
  13413. assertParamExists('tagAssets', 'assetIdsDto', assetIdsDto)
  13414. const localVarPath = `/tag/{id}/assets`
  13415. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  13416. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13417. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13418. let baseOptions;
  13419. if (configuration) {
  13420. baseOptions = configuration.baseOptions;
  13421. }
  13422. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  13423. const localVarHeaderParameter = {} as any;
  13424. const localVarQueryParameter = {} as any;
  13425. // authentication cookie required
  13426. // authentication api_key required
  13427. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13428. // authentication bearer required
  13429. // http bearer authentication required
  13430. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13431. localVarHeaderParameter['Content-Type'] = 'application/json';
  13432. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13433. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13434. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13435. localVarRequestOptions.data = serializeDataIfNeeded(assetIdsDto, localVarRequestOptions, configuration)
  13436. return {
  13437. url: toPathString(localVarUrlObj),
  13438. options: localVarRequestOptions,
  13439. };
  13440. },
  13441. /**
  13442. *
  13443. * @param {string} id
  13444. * @param {AssetIdsDto} assetIdsDto
  13445. * @param {*} [options] Override http request option.
  13446. * @throws {RequiredError}
  13447. */
  13448. untagAssets: async (id: string, assetIdsDto: AssetIdsDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13449. // verify required parameter 'id' is not null or undefined
  13450. assertParamExists('untagAssets', 'id', id)
  13451. // verify required parameter 'assetIdsDto' is not null or undefined
  13452. assertParamExists('untagAssets', 'assetIdsDto', assetIdsDto)
  13453. const localVarPath = `/tag/{id}/assets`
  13454. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  13455. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13456. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13457. let baseOptions;
  13458. if (configuration) {
  13459. baseOptions = configuration.baseOptions;
  13460. }
  13461. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  13462. const localVarHeaderParameter = {} as any;
  13463. const localVarQueryParameter = {} as any;
  13464. // authentication cookie required
  13465. // authentication api_key required
  13466. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13467. // authentication bearer required
  13468. // http bearer authentication required
  13469. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13470. localVarHeaderParameter['Content-Type'] = 'application/json';
  13471. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13472. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13473. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13474. localVarRequestOptions.data = serializeDataIfNeeded(assetIdsDto, localVarRequestOptions, configuration)
  13475. return {
  13476. url: toPathString(localVarUrlObj),
  13477. options: localVarRequestOptions,
  13478. };
  13479. },
  13480. /**
  13481. *
  13482. * @param {string} id
  13483. * @param {UpdateTagDto} updateTagDto
  13484. * @param {*} [options] Override http request option.
  13485. * @throws {RequiredError}
  13486. */
  13487. updateTag: async (id: string, updateTagDto: UpdateTagDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13488. // verify required parameter 'id' is not null or undefined
  13489. assertParamExists('updateTag', 'id', id)
  13490. // verify required parameter 'updateTagDto' is not null or undefined
  13491. assertParamExists('updateTag', 'updateTagDto', updateTagDto)
  13492. const localVarPath = `/tag/{id}`
  13493. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  13494. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13495. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13496. let baseOptions;
  13497. if (configuration) {
  13498. baseOptions = configuration.baseOptions;
  13499. }
  13500. const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
  13501. const localVarHeaderParameter = {} as any;
  13502. const localVarQueryParameter = {} as any;
  13503. // authentication cookie required
  13504. // authentication api_key required
  13505. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13506. // authentication bearer required
  13507. // http bearer authentication required
  13508. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13509. localVarHeaderParameter['Content-Type'] = 'application/json';
  13510. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13511. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13512. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13513. localVarRequestOptions.data = serializeDataIfNeeded(updateTagDto, localVarRequestOptions, configuration)
  13514. return {
  13515. url: toPathString(localVarUrlObj),
  13516. options: localVarRequestOptions,
  13517. };
  13518. },
  13519. }
  13520. };
  13521. /**
  13522. * TagApi - functional programming interface
  13523. * @export
  13524. */
  13525. export const TagApiFp = function(configuration?: Configuration) {
  13526. const localVarAxiosParamCreator = TagApiAxiosParamCreator(configuration)
  13527. return {
  13528. /**
  13529. *
  13530. * @param {CreateTagDto} createTagDto
  13531. * @param {*} [options] Override http request option.
  13532. * @throws {RequiredError}
  13533. */
  13534. async createTag(createTagDto: CreateTagDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TagResponseDto>> {
  13535. const localVarAxiosArgs = await localVarAxiosParamCreator.createTag(createTagDto, options);
  13536. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13537. },
  13538. /**
  13539. *
  13540. * @param {string} id
  13541. * @param {*} [options] Override http request option.
  13542. * @throws {RequiredError}
  13543. */
  13544. async deleteTag(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  13545. const localVarAxiosArgs = await localVarAxiosParamCreator.deleteTag(id, options);
  13546. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13547. },
  13548. /**
  13549. *
  13550. * @param {*} [options] Override http request option.
  13551. * @throws {RequiredError}
  13552. */
  13553. async getAllTags(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<TagResponseDto>>> {
  13554. const localVarAxiosArgs = await localVarAxiosParamCreator.getAllTags(options);
  13555. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13556. },
  13557. /**
  13558. *
  13559. * @param {string} id
  13560. * @param {*} [options] Override http request option.
  13561. * @throws {RequiredError}
  13562. */
  13563. async getTagAssets(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetResponseDto>>> {
  13564. const localVarAxiosArgs = await localVarAxiosParamCreator.getTagAssets(id, options);
  13565. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13566. },
  13567. /**
  13568. *
  13569. * @param {string} id
  13570. * @param {*} [options] Override http request option.
  13571. * @throws {RequiredError}
  13572. */
  13573. async getTagById(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TagResponseDto>> {
  13574. const localVarAxiosArgs = await localVarAxiosParamCreator.getTagById(id, options);
  13575. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13576. },
  13577. /**
  13578. *
  13579. * @param {string} id
  13580. * @param {AssetIdsDto} assetIdsDto
  13581. * @param {*} [options] Override http request option.
  13582. * @throws {RequiredError}
  13583. */
  13584. async tagAssets(id: string, assetIdsDto: AssetIdsDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetIdsResponseDto>>> {
  13585. const localVarAxiosArgs = await localVarAxiosParamCreator.tagAssets(id, assetIdsDto, options);
  13586. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13587. },
  13588. /**
  13589. *
  13590. * @param {string} id
  13591. * @param {AssetIdsDto} assetIdsDto
  13592. * @param {*} [options] Override http request option.
  13593. * @throws {RequiredError}
  13594. */
  13595. async untagAssets(id: string, assetIdsDto: AssetIdsDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetIdsResponseDto>>> {
  13596. const localVarAxiosArgs = await localVarAxiosParamCreator.untagAssets(id, assetIdsDto, options);
  13597. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13598. },
  13599. /**
  13600. *
  13601. * @param {string} id
  13602. * @param {UpdateTagDto} updateTagDto
  13603. * @param {*} [options] Override http request option.
  13604. * @throws {RequiredError}
  13605. */
  13606. async updateTag(id: string, updateTagDto: UpdateTagDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TagResponseDto>> {
  13607. const localVarAxiosArgs = await localVarAxiosParamCreator.updateTag(id, updateTagDto, options);
  13608. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13609. },
  13610. }
  13611. };
  13612. /**
  13613. * TagApi - factory interface
  13614. * @export
  13615. */
  13616. export const TagApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  13617. const localVarFp = TagApiFp(configuration)
  13618. return {
  13619. /**
  13620. *
  13621. * @param {TagApiCreateTagRequest} requestParameters Request parameters.
  13622. * @param {*} [options] Override http request option.
  13623. * @throws {RequiredError}
  13624. */
  13625. createTag(requestParameters: TagApiCreateTagRequest, options?: AxiosRequestConfig): AxiosPromise<TagResponseDto> {
  13626. return localVarFp.createTag(requestParameters.createTagDto, options).then((request) => request(axios, basePath));
  13627. },
  13628. /**
  13629. *
  13630. * @param {TagApiDeleteTagRequest} requestParameters Request parameters.
  13631. * @param {*} [options] Override http request option.
  13632. * @throws {RequiredError}
  13633. */
  13634. deleteTag(requestParameters: TagApiDeleteTagRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  13635. return localVarFp.deleteTag(requestParameters.id, options).then((request) => request(axios, basePath));
  13636. },
  13637. /**
  13638. *
  13639. * @param {*} [options] Override http request option.
  13640. * @throws {RequiredError}
  13641. */
  13642. getAllTags(options?: AxiosRequestConfig): AxiosPromise<Array<TagResponseDto>> {
  13643. return localVarFp.getAllTags(options).then((request) => request(axios, basePath));
  13644. },
  13645. /**
  13646. *
  13647. * @param {TagApiGetTagAssetsRequest} requestParameters Request parameters.
  13648. * @param {*} [options] Override http request option.
  13649. * @throws {RequiredError}
  13650. */
  13651. getTagAssets(requestParameters: TagApiGetTagAssetsRequest, options?: AxiosRequestConfig): AxiosPromise<Array<AssetResponseDto>> {
  13652. return localVarFp.getTagAssets(requestParameters.id, options).then((request) => request(axios, basePath));
  13653. },
  13654. /**
  13655. *
  13656. * @param {TagApiGetTagByIdRequest} requestParameters Request parameters.
  13657. * @param {*} [options] Override http request option.
  13658. * @throws {RequiredError}
  13659. */
  13660. getTagById(requestParameters: TagApiGetTagByIdRequest, options?: AxiosRequestConfig): AxiosPromise<TagResponseDto> {
  13661. return localVarFp.getTagById(requestParameters.id, options).then((request) => request(axios, basePath));
  13662. },
  13663. /**
  13664. *
  13665. * @param {TagApiTagAssetsRequest} requestParameters Request parameters.
  13666. * @param {*} [options] Override http request option.
  13667. * @throws {RequiredError}
  13668. */
  13669. tagAssets(requestParameters: TagApiTagAssetsRequest, options?: AxiosRequestConfig): AxiosPromise<Array<AssetIdsResponseDto>> {
  13670. return localVarFp.tagAssets(requestParameters.id, requestParameters.assetIdsDto, options).then((request) => request(axios, basePath));
  13671. },
  13672. /**
  13673. *
  13674. * @param {TagApiUntagAssetsRequest} requestParameters Request parameters.
  13675. * @param {*} [options] Override http request option.
  13676. * @throws {RequiredError}
  13677. */
  13678. untagAssets(requestParameters: TagApiUntagAssetsRequest, options?: AxiosRequestConfig): AxiosPromise<Array<AssetIdsResponseDto>> {
  13679. return localVarFp.untagAssets(requestParameters.id, requestParameters.assetIdsDto, options).then((request) => request(axios, basePath));
  13680. },
  13681. /**
  13682. *
  13683. * @param {TagApiUpdateTagRequest} requestParameters Request parameters.
  13684. * @param {*} [options] Override http request option.
  13685. * @throws {RequiredError}
  13686. */
  13687. updateTag(requestParameters: TagApiUpdateTagRequest, options?: AxiosRequestConfig): AxiosPromise<TagResponseDto> {
  13688. return localVarFp.updateTag(requestParameters.id, requestParameters.updateTagDto, options).then((request) => request(axios, basePath));
  13689. },
  13690. };
  13691. };
  13692. /**
  13693. * Request parameters for createTag operation in TagApi.
  13694. * @export
  13695. * @interface TagApiCreateTagRequest
  13696. */
  13697. export interface TagApiCreateTagRequest {
  13698. /**
  13699. *
  13700. * @type {CreateTagDto}
  13701. * @memberof TagApiCreateTag
  13702. */
  13703. readonly createTagDto: CreateTagDto
  13704. }
  13705. /**
  13706. * Request parameters for deleteTag operation in TagApi.
  13707. * @export
  13708. * @interface TagApiDeleteTagRequest
  13709. */
  13710. export interface TagApiDeleteTagRequest {
  13711. /**
  13712. *
  13713. * @type {string}
  13714. * @memberof TagApiDeleteTag
  13715. */
  13716. readonly id: string
  13717. }
  13718. /**
  13719. * Request parameters for getTagAssets operation in TagApi.
  13720. * @export
  13721. * @interface TagApiGetTagAssetsRequest
  13722. */
  13723. export interface TagApiGetTagAssetsRequest {
  13724. /**
  13725. *
  13726. * @type {string}
  13727. * @memberof TagApiGetTagAssets
  13728. */
  13729. readonly id: string
  13730. }
  13731. /**
  13732. * Request parameters for getTagById operation in TagApi.
  13733. * @export
  13734. * @interface TagApiGetTagByIdRequest
  13735. */
  13736. export interface TagApiGetTagByIdRequest {
  13737. /**
  13738. *
  13739. * @type {string}
  13740. * @memberof TagApiGetTagById
  13741. */
  13742. readonly id: string
  13743. }
  13744. /**
  13745. * Request parameters for tagAssets operation in TagApi.
  13746. * @export
  13747. * @interface TagApiTagAssetsRequest
  13748. */
  13749. export interface TagApiTagAssetsRequest {
  13750. /**
  13751. *
  13752. * @type {string}
  13753. * @memberof TagApiTagAssets
  13754. */
  13755. readonly id: string
  13756. /**
  13757. *
  13758. * @type {AssetIdsDto}
  13759. * @memberof TagApiTagAssets
  13760. */
  13761. readonly assetIdsDto: AssetIdsDto
  13762. }
  13763. /**
  13764. * Request parameters for untagAssets operation in TagApi.
  13765. * @export
  13766. * @interface TagApiUntagAssetsRequest
  13767. */
  13768. export interface TagApiUntagAssetsRequest {
  13769. /**
  13770. *
  13771. * @type {string}
  13772. * @memberof TagApiUntagAssets
  13773. */
  13774. readonly id: string
  13775. /**
  13776. *
  13777. * @type {AssetIdsDto}
  13778. * @memberof TagApiUntagAssets
  13779. */
  13780. readonly assetIdsDto: AssetIdsDto
  13781. }
  13782. /**
  13783. * Request parameters for updateTag operation in TagApi.
  13784. * @export
  13785. * @interface TagApiUpdateTagRequest
  13786. */
  13787. export interface TagApiUpdateTagRequest {
  13788. /**
  13789. *
  13790. * @type {string}
  13791. * @memberof TagApiUpdateTag
  13792. */
  13793. readonly id: string
  13794. /**
  13795. *
  13796. * @type {UpdateTagDto}
  13797. * @memberof TagApiUpdateTag
  13798. */
  13799. readonly updateTagDto: UpdateTagDto
  13800. }
  13801. /**
  13802. * TagApi - object-oriented interface
  13803. * @export
  13804. * @class TagApi
  13805. * @extends {BaseAPI}
  13806. */
  13807. export class TagApi extends BaseAPI {
  13808. /**
  13809. *
  13810. * @param {TagApiCreateTagRequest} requestParameters Request parameters.
  13811. * @param {*} [options] Override http request option.
  13812. * @throws {RequiredError}
  13813. * @memberof TagApi
  13814. */
  13815. public createTag(requestParameters: TagApiCreateTagRequest, options?: AxiosRequestConfig) {
  13816. return TagApiFp(this.configuration).createTag(requestParameters.createTagDto, options).then((request) => request(this.axios, this.basePath));
  13817. }
  13818. /**
  13819. *
  13820. * @param {TagApiDeleteTagRequest} requestParameters Request parameters.
  13821. * @param {*} [options] Override http request option.
  13822. * @throws {RequiredError}
  13823. * @memberof TagApi
  13824. */
  13825. public deleteTag(requestParameters: TagApiDeleteTagRequest, options?: AxiosRequestConfig) {
  13826. return TagApiFp(this.configuration).deleteTag(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  13827. }
  13828. /**
  13829. *
  13830. * @param {*} [options] Override http request option.
  13831. * @throws {RequiredError}
  13832. * @memberof TagApi
  13833. */
  13834. public getAllTags(options?: AxiosRequestConfig) {
  13835. return TagApiFp(this.configuration).getAllTags(options).then((request) => request(this.axios, this.basePath));
  13836. }
  13837. /**
  13838. *
  13839. * @param {TagApiGetTagAssetsRequest} requestParameters Request parameters.
  13840. * @param {*} [options] Override http request option.
  13841. * @throws {RequiredError}
  13842. * @memberof TagApi
  13843. */
  13844. public getTagAssets(requestParameters: TagApiGetTagAssetsRequest, options?: AxiosRequestConfig) {
  13845. return TagApiFp(this.configuration).getTagAssets(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  13846. }
  13847. /**
  13848. *
  13849. * @param {TagApiGetTagByIdRequest} requestParameters Request parameters.
  13850. * @param {*} [options] Override http request option.
  13851. * @throws {RequiredError}
  13852. * @memberof TagApi
  13853. */
  13854. public getTagById(requestParameters: TagApiGetTagByIdRequest, options?: AxiosRequestConfig) {
  13855. return TagApiFp(this.configuration).getTagById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  13856. }
  13857. /**
  13858. *
  13859. * @param {TagApiTagAssetsRequest} requestParameters Request parameters.
  13860. * @param {*} [options] Override http request option.
  13861. * @throws {RequiredError}
  13862. * @memberof TagApi
  13863. */
  13864. public tagAssets(requestParameters: TagApiTagAssetsRequest, options?: AxiosRequestConfig) {
  13865. return TagApiFp(this.configuration).tagAssets(requestParameters.id, requestParameters.assetIdsDto, options).then((request) => request(this.axios, this.basePath));
  13866. }
  13867. /**
  13868. *
  13869. * @param {TagApiUntagAssetsRequest} requestParameters Request parameters.
  13870. * @param {*} [options] Override http request option.
  13871. * @throws {RequiredError}
  13872. * @memberof TagApi
  13873. */
  13874. public untagAssets(requestParameters: TagApiUntagAssetsRequest, options?: AxiosRequestConfig) {
  13875. return TagApiFp(this.configuration).untagAssets(requestParameters.id, requestParameters.assetIdsDto, options).then((request) => request(this.axios, this.basePath));
  13876. }
  13877. /**
  13878. *
  13879. * @param {TagApiUpdateTagRequest} requestParameters Request parameters.
  13880. * @param {*} [options] Override http request option.
  13881. * @throws {RequiredError}
  13882. * @memberof TagApi
  13883. */
  13884. public updateTag(requestParameters: TagApiUpdateTagRequest, options?: AxiosRequestConfig) {
  13885. return TagApiFp(this.configuration).updateTag(requestParameters.id, requestParameters.updateTagDto, options).then((request) => request(this.axios, this.basePath));
  13886. }
  13887. }
  13888. /**
  13889. * UserApi - axios parameter creator
  13890. * @export
  13891. */
  13892. export const UserApiAxiosParamCreator = function (configuration?: Configuration) {
  13893. return {
  13894. /**
  13895. *
  13896. * @param {File} file
  13897. * @param {*} [options] Override http request option.
  13898. * @throws {RequiredError}
  13899. */
  13900. createProfileImage: async (file: File, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13901. // verify required parameter 'file' is not null or undefined
  13902. assertParamExists('createProfileImage', 'file', file)
  13903. const localVarPath = `/user/profile-image`;
  13904. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13905. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13906. let baseOptions;
  13907. if (configuration) {
  13908. baseOptions = configuration.baseOptions;
  13909. }
  13910. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  13911. const localVarHeaderParameter = {} as any;
  13912. const localVarQueryParameter = {} as any;
  13913. const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
  13914. // authentication cookie required
  13915. // authentication api_key required
  13916. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13917. // authentication bearer required
  13918. // http bearer authentication required
  13919. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13920. if (file !== undefined) {
  13921. localVarFormParams.append('file', file as any);
  13922. }
  13923. localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
  13924. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13925. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13926. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13927. localVarRequestOptions.data = localVarFormParams;
  13928. return {
  13929. url: toPathString(localVarUrlObj),
  13930. options: localVarRequestOptions,
  13931. };
  13932. },
  13933. /**
  13934. *
  13935. * @param {CreateUserDto} createUserDto
  13936. * @param {*} [options] Override http request option.
  13937. * @throws {RequiredError}
  13938. */
  13939. createUser: async (createUserDto: CreateUserDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13940. // verify required parameter 'createUserDto' is not null or undefined
  13941. assertParamExists('createUser', 'createUserDto', createUserDto)
  13942. const localVarPath = `/user`;
  13943. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13944. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13945. let baseOptions;
  13946. if (configuration) {
  13947. baseOptions = configuration.baseOptions;
  13948. }
  13949. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  13950. const localVarHeaderParameter = {} as any;
  13951. const localVarQueryParameter = {} as any;
  13952. // authentication cookie required
  13953. // authentication api_key required
  13954. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13955. // authentication bearer required
  13956. // http bearer authentication required
  13957. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13958. localVarHeaderParameter['Content-Type'] = 'application/json';
  13959. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13960. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13961. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13962. localVarRequestOptions.data = serializeDataIfNeeded(createUserDto, localVarRequestOptions, configuration)
  13963. return {
  13964. url: toPathString(localVarUrlObj),
  13965. options: localVarRequestOptions,
  13966. };
  13967. },
  13968. /**
  13969. *
  13970. * @param {string} id
  13971. * @param {*} [options] Override http request option.
  13972. * @throws {RequiredError}
  13973. */
  13974. deleteUser: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13975. // verify required parameter 'id' is not null or undefined
  13976. assertParamExists('deleteUser', 'id', id)
  13977. const localVarPath = `/user/{id}`
  13978. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  13979. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13980. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13981. let baseOptions;
  13982. if (configuration) {
  13983. baseOptions = configuration.baseOptions;
  13984. }
  13985. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  13986. const localVarHeaderParameter = {} as any;
  13987. const localVarQueryParameter = {} as any;
  13988. // authentication cookie required
  13989. // authentication api_key required
  13990. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13991. // authentication bearer required
  13992. // http bearer authentication required
  13993. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13994. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13995. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13996. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13997. return {
  13998. url: toPathString(localVarUrlObj),
  13999. options: localVarRequestOptions,
  14000. };
  14001. },
  14002. /**
  14003. *
  14004. * @param {boolean} isAll
  14005. * @param {*} [options] Override http request option.
  14006. * @throws {RequiredError}
  14007. */
  14008. getAllUsers: async (isAll: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  14009. // verify required parameter 'isAll' is not null or undefined
  14010. assertParamExists('getAllUsers', 'isAll', isAll)
  14011. const localVarPath = `/user`;
  14012. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  14013. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  14014. let baseOptions;
  14015. if (configuration) {
  14016. baseOptions = configuration.baseOptions;
  14017. }
  14018. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  14019. const localVarHeaderParameter = {} as any;
  14020. const localVarQueryParameter = {} as any;
  14021. // authentication cookie required
  14022. // authentication api_key required
  14023. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  14024. // authentication bearer required
  14025. // http bearer authentication required
  14026. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  14027. if (isAll !== undefined) {
  14028. localVarQueryParameter['isAll'] = isAll;
  14029. }
  14030. setSearchParams(localVarUrlObj, localVarQueryParameter);
  14031. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  14032. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  14033. return {
  14034. url: toPathString(localVarUrlObj),
  14035. options: localVarRequestOptions,
  14036. };
  14037. },
  14038. /**
  14039. *
  14040. * @param {*} [options] Override http request option.
  14041. * @throws {RequiredError}
  14042. */
  14043. getMyUserInfo: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  14044. const localVarPath = `/user/me`;
  14045. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  14046. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  14047. let baseOptions;
  14048. if (configuration) {
  14049. baseOptions = configuration.baseOptions;
  14050. }
  14051. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  14052. const localVarHeaderParameter = {} as any;
  14053. const localVarQueryParameter = {} as any;
  14054. // authentication cookie required
  14055. // authentication api_key required
  14056. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  14057. // authentication bearer required
  14058. // http bearer authentication required
  14059. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  14060. setSearchParams(localVarUrlObj, localVarQueryParameter);
  14061. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  14062. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  14063. return {
  14064. url: toPathString(localVarUrlObj),
  14065. options: localVarRequestOptions,
  14066. };
  14067. },
  14068. /**
  14069. *
  14070. * @param {string} id
  14071. * @param {*} [options] Override http request option.
  14072. * @throws {RequiredError}
  14073. */
  14074. getProfileImage: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  14075. // verify required parameter 'id' is not null or undefined
  14076. assertParamExists('getProfileImage', 'id', id)
  14077. const localVarPath = `/user/profile-image/{id}`
  14078. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  14079. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  14080. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  14081. let baseOptions;
  14082. if (configuration) {
  14083. baseOptions = configuration.baseOptions;
  14084. }
  14085. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  14086. const localVarHeaderParameter = {} as any;
  14087. const localVarQueryParameter = {} as any;
  14088. // authentication cookie required
  14089. // authentication api_key required
  14090. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  14091. // authentication bearer required
  14092. // http bearer authentication required
  14093. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  14094. setSearchParams(localVarUrlObj, localVarQueryParameter);
  14095. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  14096. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  14097. return {
  14098. url: toPathString(localVarUrlObj),
  14099. options: localVarRequestOptions,
  14100. };
  14101. },
  14102. /**
  14103. *
  14104. * @param {string} id
  14105. * @param {*} [options] Override http request option.
  14106. * @throws {RequiredError}
  14107. */
  14108. getUserById: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  14109. // verify required parameter 'id' is not null or undefined
  14110. assertParamExists('getUserById', 'id', id)
  14111. const localVarPath = `/user/info/{id}`
  14112. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  14113. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  14114. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  14115. let baseOptions;
  14116. if (configuration) {
  14117. baseOptions = configuration.baseOptions;
  14118. }
  14119. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  14120. const localVarHeaderParameter = {} as any;
  14121. const localVarQueryParameter = {} as any;
  14122. // authentication cookie required
  14123. // authentication api_key required
  14124. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  14125. // authentication bearer required
  14126. // http bearer authentication required
  14127. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  14128. setSearchParams(localVarUrlObj, localVarQueryParameter);
  14129. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  14130. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  14131. return {
  14132. url: toPathString(localVarUrlObj),
  14133. options: localVarRequestOptions,
  14134. };
  14135. },
  14136. /**
  14137. *
  14138. * @param {boolean} [admin]
  14139. * @param {*} [options] Override http request option.
  14140. * @throws {RequiredError}
  14141. */
  14142. getUserCount: async (admin?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  14143. const localVarPath = `/user/count`;
  14144. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  14145. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  14146. let baseOptions;
  14147. if (configuration) {
  14148. baseOptions = configuration.baseOptions;
  14149. }
  14150. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  14151. const localVarHeaderParameter = {} as any;
  14152. const localVarQueryParameter = {} as any;
  14153. // authentication cookie required
  14154. // authentication api_key required
  14155. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  14156. // authentication bearer required
  14157. // http bearer authentication required
  14158. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  14159. if (admin !== undefined) {
  14160. localVarQueryParameter['admin'] = admin;
  14161. }
  14162. setSearchParams(localVarUrlObj, localVarQueryParameter);
  14163. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  14164. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  14165. return {
  14166. url: toPathString(localVarUrlObj),
  14167. options: localVarRequestOptions,
  14168. };
  14169. },
  14170. /**
  14171. *
  14172. * @param {string} id
  14173. * @param {*} [options] Override http request option.
  14174. * @throws {RequiredError}
  14175. */
  14176. restoreUser: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  14177. // verify required parameter 'id' is not null or undefined
  14178. assertParamExists('restoreUser', 'id', id)
  14179. const localVarPath = `/user/{id}/restore`
  14180. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  14181. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  14182. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  14183. let baseOptions;
  14184. if (configuration) {
  14185. baseOptions = configuration.baseOptions;
  14186. }
  14187. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  14188. const localVarHeaderParameter = {} as any;
  14189. const localVarQueryParameter = {} as any;
  14190. // authentication cookie required
  14191. // authentication api_key required
  14192. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  14193. // authentication bearer required
  14194. // http bearer authentication required
  14195. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  14196. setSearchParams(localVarUrlObj, localVarQueryParameter);
  14197. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  14198. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  14199. return {
  14200. url: toPathString(localVarUrlObj),
  14201. options: localVarRequestOptions,
  14202. };
  14203. },
  14204. /**
  14205. *
  14206. * @param {UpdateUserDto} updateUserDto
  14207. * @param {*} [options] Override http request option.
  14208. * @throws {RequiredError}
  14209. */
  14210. updateUser: async (updateUserDto: UpdateUserDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  14211. // verify required parameter 'updateUserDto' is not null or undefined
  14212. assertParamExists('updateUser', 'updateUserDto', updateUserDto)
  14213. const localVarPath = `/user`;
  14214. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  14215. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  14216. let baseOptions;
  14217. if (configuration) {
  14218. baseOptions = configuration.baseOptions;
  14219. }
  14220. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  14221. const localVarHeaderParameter = {} as any;
  14222. const localVarQueryParameter = {} as any;
  14223. // authentication cookie required
  14224. // authentication api_key required
  14225. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  14226. // authentication bearer required
  14227. // http bearer authentication required
  14228. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  14229. localVarHeaderParameter['Content-Type'] = 'application/json';
  14230. setSearchParams(localVarUrlObj, localVarQueryParameter);
  14231. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  14232. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  14233. localVarRequestOptions.data = serializeDataIfNeeded(updateUserDto, localVarRequestOptions, configuration)
  14234. return {
  14235. url: toPathString(localVarUrlObj),
  14236. options: localVarRequestOptions,
  14237. };
  14238. },
  14239. }
  14240. };
  14241. /**
  14242. * UserApi - functional programming interface
  14243. * @export
  14244. */
  14245. export const UserApiFp = function(configuration?: Configuration) {
  14246. const localVarAxiosParamCreator = UserApiAxiosParamCreator(configuration)
  14247. return {
  14248. /**
  14249. *
  14250. * @param {File} file
  14251. * @param {*} [options] Override http request option.
  14252. * @throws {RequiredError}
  14253. */
  14254. async createProfileImage(file: File, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateProfileImageResponseDto>> {
  14255. const localVarAxiosArgs = await localVarAxiosParamCreator.createProfileImage(file, options);
  14256. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  14257. },
  14258. /**
  14259. *
  14260. * @param {CreateUserDto} createUserDto
  14261. * @param {*} [options] Override http request option.
  14262. * @throws {RequiredError}
  14263. */
  14264. async createUser(createUserDto: CreateUserDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  14265. const localVarAxiosArgs = await localVarAxiosParamCreator.createUser(createUserDto, options);
  14266. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  14267. },
  14268. /**
  14269. *
  14270. * @param {string} id
  14271. * @param {*} [options] Override http request option.
  14272. * @throws {RequiredError}
  14273. */
  14274. async deleteUser(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  14275. const localVarAxiosArgs = await localVarAxiosParamCreator.deleteUser(id, options);
  14276. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  14277. },
  14278. /**
  14279. *
  14280. * @param {boolean} isAll
  14281. * @param {*} [options] Override http request option.
  14282. * @throws {RequiredError}
  14283. */
  14284. async getAllUsers(isAll: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<UserResponseDto>>> {
  14285. const localVarAxiosArgs = await localVarAxiosParamCreator.getAllUsers(isAll, options);
  14286. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  14287. },
  14288. /**
  14289. *
  14290. * @param {*} [options] Override http request option.
  14291. * @throws {RequiredError}
  14292. */
  14293. async getMyUserInfo(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  14294. const localVarAxiosArgs = await localVarAxiosParamCreator.getMyUserInfo(options);
  14295. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  14296. },
  14297. /**
  14298. *
  14299. * @param {string} id
  14300. * @param {*} [options] Override http request option.
  14301. * @throws {RequiredError}
  14302. */
  14303. async getProfileImage(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
  14304. const localVarAxiosArgs = await localVarAxiosParamCreator.getProfileImage(id, options);
  14305. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  14306. },
  14307. /**
  14308. *
  14309. * @param {string} id
  14310. * @param {*} [options] Override http request option.
  14311. * @throws {RequiredError}
  14312. */
  14313. async getUserById(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  14314. const localVarAxiosArgs = await localVarAxiosParamCreator.getUserById(id, options);
  14315. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  14316. },
  14317. /**
  14318. *
  14319. * @param {boolean} [admin]
  14320. * @param {*} [options] Override http request option.
  14321. * @throws {RequiredError}
  14322. */
  14323. async getUserCount(admin?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserCountResponseDto>> {
  14324. const localVarAxiosArgs = await localVarAxiosParamCreator.getUserCount(admin, options);
  14325. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  14326. },
  14327. /**
  14328. *
  14329. * @param {string} id
  14330. * @param {*} [options] Override http request option.
  14331. * @throws {RequiredError}
  14332. */
  14333. async restoreUser(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  14334. const localVarAxiosArgs = await localVarAxiosParamCreator.restoreUser(id, options);
  14335. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  14336. },
  14337. /**
  14338. *
  14339. * @param {UpdateUserDto} updateUserDto
  14340. * @param {*} [options] Override http request option.
  14341. * @throws {RequiredError}
  14342. */
  14343. async updateUser(updateUserDto: UpdateUserDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  14344. const localVarAxiosArgs = await localVarAxiosParamCreator.updateUser(updateUserDto, options);
  14345. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  14346. },
  14347. }
  14348. };
  14349. /**
  14350. * UserApi - factory interface
  14351. * @export
  14352. */
  14353. export const UserApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  14354. const localVarFp = UserApiFp(configuration)
  14355. return {
  14356. /**
  14357. *
  14358. * @param {UserApiCreateProfileImageRequest} requestParameters Request parameters.
  14359. * @param {*} [options] Override http request option.
  14360. * @throws {RequiredError}
  14361. */
  14362. createProfileImage(requestParameters: UserApiCreateProfileImageRequest, options?: AxiosRequestConfig): AxiosPromise<CreateProfileImageResponseDto> {
  14363. return localVarFp.createProfileImage(requestParameters.file, options).then((request) => request(axios, basePath));
  14364. },
  14365. /**
  14366. *
  14367. * @param {UserApiCreateUserRequest} requestParameters Request parameters.
  14368. * @param {*} [options] Override http request option.
  14369. * @throws {RequiredError}
  14370. */
  14371. createUser(requestParameters: UserApiCreateUserRequest, options?: AxiosRequestConfig): AxiosPromise<UserResponseDto> {
  14372. return localVarFp.createUser(requestParameters.createUserDto, options).then((request) => request(axios, basePath));
  14373. },
  14374. /**
  14375. *
  14376. * @param {UserApiDeleteUserRequest} requestParameters Request parameters.
  14377. * @param {*} [options] Override http request option.
  14378. * @throws {RequiredError}
  14379. */
  14380. deleteUser(requestParameters: UserApiDeleteUserRequest, options?: AxiosRequestConfig): AxiosPromise<UserResponseDto> {
  14381. return localVarFp.deleteUser(requestParameters.id, options).then((request) => request(axios, basePath));
  14382. },
  14383. /**
  14384. *
  14385. * @param {UserApiGetAllUsersRequest} requestParameters Request parameters.
  14386. * @param {*} [options] Override http request option.
  14387. * @throws {RequiredError}
  14388. */
  14389. getAllUsers(requestParameters: UserApiGetAllUsersRequest, options?: AxiosRequestConfig): AxiosPromise<Array<UserResponseDto>> {
  14390. return localVarFp.getAllUsers(requestParameters.isAll, options).then((request) => request(axios, basePath));
  14391. },
  14392. /**
  14393. *
  14394. * @param {*} [options] Override http request option.
  14395. * @throws {RequiredError}
  14396. */
  14397. getMyUserInfo(options?: AxiosRequestConfig): AxiosPromise<UserResponseDto> {
  14398. return localVarFp.getMyUserInfo(options).then((request) => request(axios, basePath));
  14399. },
  14400. /**
  14401. *
  14402. * @param {UserApiGetProfileImageRequest} requestParameters Request parameters.
  14403. * @param {*} [options] Override http request option.
  14404. * @throws {RequiredError}
  14405. */
  14406. getProfileImage(requestParameters: UserApiGetProfileImageRequest, options?: AxiosRequestConfig): AxiosPromise<object> {
  14407. return localVarFp.getProfileImage(requestParameters.id, options).then((request) => request(axios, basePath));
  14408. },
  14409. /**
  14410. *
  14411. * @param {UserApiGetUserByIdRequest} requestParameters Request parameters.
  14412. * @param {*} [options] Override http request option.
  14413. * @throws {RequiredError}
  14414. */
  14415. getUserById(requestParameters: UserApiGetUserByIdRequest, options?: AxiosRequestConfig): AxiosPromise<UserResponseDto> {
  14416. return localVarFp.getUserById(requestParameters.id, options).then((request) => request(axios, basePath));
  14417. },
  14418. /**
  14419. *
  14420. * @param {UserApiGetUserCountRequest} requestParameters Request parameters.
  14421. * @param {*} [options] Override http request option.
  14422. * @throws {RequiredError}
  14423. */
  14424. getUserCount(requestParameters: UserApiGetUserCountRequest = {}, options?: AxiosRequestConfig): AxiosPromise<UserCountResponseDto> {
  14425. return localVarFp.getUserCount(requestParameters.admin, options).then((request) => request(axios, basePath));
  14426. },
  14427. /**
  14428. *
  14429. * @param {UserApiRestoreUserRequest} requestParameters Request parameters.
  14430. * @param {*} [options] Override http request option.
  14431. * @throws {RequiredError}
  14432. */
  14433. restoreUser(requestParameters: UserApiRestoreUserRequest, options?: AxiosRequestConfig): AxiosPromise<UserResponseDto> {
  14434. return localVarFp.restoreUser(requestParameters.id, options).then((request) => request(axios, basePath));
  14435. },
  14436. /**
  14437. *
  14438. * @param {UserApiUpdateUserRequest} requestParameters Request parameters.
  14439. * @param {*} [options] Override http request option.
  14440. * @throws {RequiredError}
  14441. */
  14442. updateUser(requestParameters: UserApiUpdateUserRequest, options?: AxiosRequestConfig): AxiosPromise<UserResponseDto> {
  14443. return localVarFp.updateUser(requestParameters.updateUserDto, options).then((request) => request(axios, basePath));
  14444. },
  14445. };
  14446. };
  14447. /**
  14448. * Request parameters for createProfileImage operation in UserApi.
  14449. * @export
  14450. * @interface UserApiCreateProfileImageRequest
  14451. */
  14452. export interface UserApiCreateProfileImageRequest {
  14453. /**
  14454. *
  14455. * @type {File}
  14456. * @memberof UserApiCreateProfileImage
  14457. */
  14458. readonly file: File
  14459. }
  14460. /**
  14461. * Request parameters for createUser operation in UserApi.
  14462. * @export
  14463. * @interface UserApiCreateUserRequest
  14464. */
  14465. export interface UserApiCreateUserRequest {
  14466. /**
  14467. *
  14468. * @type {CreateUserDto}
  14469. * @memberof UserApiCreateUser
  14470. */
  14471. readonly createUserDto: CreateUserDto
  14472. }
  14473. /**
  14474. * Request parameters for deleteUser operation in UserApi.
  14475. * @export
  14476. * @interface UserApiDeleteUserRequest
  14477. */
  14478. export interface UserApiDeleteUserRequest {
  14479. /**
  14480. *
  14481. * @type {string}
  14482. * @memberof UserApiDeleteUser
  14483. */
  14484. readonly id: string
  14485. }
  14486. /**
  14487. * Request parameters for getAllUsers operation in UserApi.
  14488. * @export
  14489. * @interface UserApiGetAllUsersRequest
  14490. */
  14491. export interface UserApiGetAllUsersRequest {
  14492. /**
  14493. *
  14494. * @type {boolean}
  14495. * @memberof UserApiGetAllUsers
  14496. */
  14497. readonly isAll: boolean
  14498. }
  14499. /**
  14500. * Request parameters for getProfileImage operation in UserApi.
  14501. * @export
  14502. * @interface UserApiGetProfileImageRequest
  14503. */
  14504. export interface UserApiGetProfileImageRequest {
  14505. /**
  14506. *
  14507. * @type {string}
  14508. * @memberof UserApiGetProfileImage
  14509. */
  14510. readonly id: string
  14511. }
  14512. /**
  14513. * Request parameters for getUserById operation in UserApi.
  14514. * @export
  14515. * @interface UserApiGetUserByIdRequest
  14516. */
  14517. export interface UserApiGetUserByIdRequest {
  14518. /**
  14519. *
  14520. * @type {string}
  14521. * @memberof UserApiGetUserById
  14522. */
  14523. readonly id: string
  14524. }
  14525. /**
  14526. * Request parameters for getUserCount operation in UserApi.
  14527. * @export
  14528. * @interface UserApiGetUserCountRequest
  14529. */
  14530. export interface UserApiGetUserCountRequest {
  14531. /**
  14532. *
  14533. * @type {boolean}
  14534. * @memberof UserApiGetUserCount
  14535. */
  14536. readonly admin?: boolean
  14537. }
  14538. /**
  14539. * Request parameters for restoreUser operation in UserApi.
  14540. * @export
  14541. * @interface UserApiRestoreUserRequest
  14542. */
  14543. export interface UserApiRestoreUserRequest {
  14544. /**
  14545. *
  14546. * @type {string}
  14547. * @memberof UserApiRestoreUser
  14548. */
  14549. readonly id: string
  14550. }
  14551. /**
  14552. * Request parameters for updateUser operation in UserApi.
  14553. * @export
  14554. * @interface UserApiUpdateUserRequest
  14555. */
  14556. export interface UserApiUpdateUserRequest {
  14557. /**
  14558. *
  14559. * @type {UpdateUserDto}
  14560. * @memberof UserApiUpdateUser
  14561. */
  14562. readonly updateUserDto: UpdateUserDto
  14563. }
  14564. /**
  14565. * UserApi - object-oriented interface
  14566. * @export
  14567. * @class UserApi
  14568. * @extends {BaseAPI}
  14569. */
  14570. export class UserApi extends BaseAPI {
  14571. /**
  14572. *
  14573. * @param {UserApiCreateProfileImageRequest} requestParameters Request parameters.
  14574. * @param {*} [options] Override http request option.
  14575. * @throws {RequiredError}
  14576. * @memberof UserApi
  14577. */
  14578. public createProfileImage(requestParameters: UserApiCreateProfileImageRequest, options?: AxiosRequestConfig) {
  14579. return UserApiFp(this.configuration).createProfileImage(requestParameters.file, options).then((request) => request(this.axios, this.basePath));
  14580. }
  14581. /**
  14582. *
  14583. * @param {UserApiCreateUserRequest} requestParameters Request parameters.
  14584. * @param {*} [options] Override http request option.
  14585. * @throws {RequiredError}
  14586. * @memberof UserApi
  14587. */
  14588. public createUser(requestParameters: UserApiCreateUserRequest, options?: AxiosRequestConfig) {
  14589. return UserApiFp(this.configuration).createUser(requestParameters.createUserDto, options).then((request) => request(this.axios, this.basePath));
  14590. }
  14591. /**
  14592. *
  14593. * @param {UserApiDeleteUserRequest} requestParameters Request parameters.
  14594. * @param {*} [options] Override http request option.
  14595. * @throws {RequiredError}
  14596. * @memberof UserApi
  14597. */
  14598. public deleteUser(requestParameters: UserApiDeleteUserRequest, options?: AxiosRequestConfig) {
  14599. return UserApiFp(this.configuration).deleteUser(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  14600. }
  14601. /**
  14602. *
  14603. * @param {UserApiGetAllUsersRequest} requestParameters Request parameters.
  14604. * @param {*} [options] Override http request option.
  14605. * @throws {RequiredError}
  14606. * @memberof UserApi
  14607. */
  14608. public getAllUsers(requestParameters: UserApiGetAllUsersRequest, options?: AxiosRequestConfig) {
  14609. return UserApiFp(this.configuration).getAllUsers(requestParameters.isAll, options).then((request) => request(this.axios, this.basePath));
  14610. }
  14611. /**
  14612. *
  14613. * @param {*} [options] Override http request option.
  14614. * @throws {RequiredError}
  14615. * @memberof UserApi
  14616. */
  14617. public getMyUserInfo(options?: AxiosRequestConfig) {
  14618. return UserApiFp(this.configuration).getMyUserInfo(options).then((request) => request(this.axios, this.basePath));
  14619. }
  14620. /**
  14621. *
  14622. * @param {UserApiGetProfileImageRequest} requestParameters Request parameters.
  14623. * @param {*} [options] Override http request option.
  14624. * @throws {RequiredError}
  14625. * @memberof UserApi
  14626. */
  14627. public getProfileImage(requestParameters: UserApiGetProfileImageRequest, options?: AxiosRequestConfig) {
  14628. return UserApiFp(this.configuration).getProfileImage(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  14629. }
  14630. /**
  14631. *
  14632. * @param {UserApiGetUserByIdRequest} requestParameters Request parameters.
  14633. * @param {*} [options] Override http request option.
  14634. * @throws {RequiredError}
  14635. * @memberof UserApi
  14636. */
  14637. public getUserById(requestParameters: UserApiGetUserByIdRequest, options?: AxiosRequestConfig) {
  14638. return UserApiFp(this.configuration).getUserById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  14639. }
  14640. /**
  14641. *
  14642. * @param {UserApiGetUserCountRequest} requestParameters Request parameters.
  14643. * @param {*} [options] Override http request option.
  14644. * @throws {RequiredError}
  14645. * @memberof UserApi
  14646. */
  14647. public getUserCount(requestParameters: UserApiGetUserCountRequest = {}, options?: AxiosRequestConfig) {
  14648. return UserApiFp(this.configuration).getUserCount(requestParameters.admin, options).then((request) => request(this.axios, this.basePath));
  14649. }
  14650. /**
  14651. *
  14652. * @param {UserApiRestoreUserRequest} requestParameters Request parameters.
  14653. * @param {*} [options] Override http request option.
  14654. * @throws {RequiredError}
  14655. * @memberof UserApi
  14656. */
  14657. public restoreUser(requestParameters: UserApiRestoreUserRequest, options?: AxiosRequestConfig) {
  14658. return UserApiFp(this.configuration).restoreUser(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  14659. }
  14660. /**
  14661. *
  14662. * @param {UserApiUpdateUserRequest} requestParameters Request parameters.
  14663. * @param {*} [options] Override http request option.
  14664. * @throws {RequiredError}
  14665. * @memberof UserApi
  14666. */
  14667. public updateUser(requestParameters: UserApiUpdateUserRequest, options?: AxiosRequestConfig) {
  14668. return UserApiFp(this.configuration).updateUser(requestParameters.updateUserDto, options).then((request) => request(this.axios, this.basePath));
  14669. }
  14670. }