api.ts 577 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866
  1. /* tslint:disable */
  2. /* eslint-disable */
  3. /**
  4. * Immich
  5. * Immich API
  6. *
  7. * The version of the OpenAPI document: 1.84.0
  8. *
  9. *
  10. * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
  11. * https://openapi-generator.tech
  12. * Do not edit the class manually.
  13. */
  14. import type { Configuration } from './configuration';
  15. import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
  16. import globalAxios from 'axios';
  17. // Some imports not used depending on template conditions
  18. // @ts-ignore
  19. import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';
  20. import type { RequestArgs } from './base';
  21. // @ts-ignore
  22. import { BASE_PATH, COLLECTION_FORMATS, BaseAPI, RequiredError } from './base';
  23. /**
  24. *
  25. * @export
  26. * @interface APIKeyCreateDto
  27. */
  28. export interface APIKeyCreateDto {
  29. /**
  30. *
  31. * @type {string}
  32. * @memberof APIKeyCreateDto
  33. */
  34. 'name'?: string;
  35. }
  36. /**
  37. *
  38. * @export
  39. * @interface APIKeyCreateResponseDto
  40. */
  41. export interface APIKeyCreateResponseDto {
  42. /**
  43. *
  44. * @type {APIKeyResponseDto}
  45. * @memberof APIKeyCreateResponseDto
  46. */
  47. 'apiKey': APIKeyResponseDto;
  48. /**
  49. *
  50. * @type {string}
  51. * @memberof APIKeyCreateResponseDto
  52. */
  53. 'secret': string;
  54. }
  55. /**
  56. *
  57. * @export
  58. * @interface APIKeyResponseDto
  59. */
  60. export interface APIKeyResponseDto {
  61. /**
  62. *
  63. * @type {string}
  64. * @memberof APIKeyResponseDto
  65. */
  66. 'createdAt': string;
  67. /**
  68. *
  69. * @type {string}
  70. * @memberof APIKeyResponseDto
  71. */
  72. 'id': string;
  73. /**
  74. *
  75. * @type {string}
  76. * @memberof APIKeyResponseDto
  77. */
  78. 'name': string;
  79. /**
  80. *
  81. * @type {string}
  82. * @memberof APIKeyResponseDto
  83. */
  84. 'updatedAt': string;
  85. }
  86. /**
  87. *
  88. * @export
  89. * @interface APIKeyUpdateDto
  90. */
  91. export interface APIKeyUpdateDto {
  92. /**
  93. *
  94. * @type {string}
  95. * @memberof APIKeyUpdateDto
  96. */
  97. 'name': string;
  98. }
  99. /**
  100. *
  101. * @export
  102. * @interface ActivityCreateDto
  103. */
  104. export interface ActivityCreateDto {
  105. /**
  106. *
  107. * @type {string}
  108. * @memberof ActivityCreateDto
  109. */
  110. 'albumId': string;
  111. /**
  112. *
  113. * @type {string}
  114. * @memberof ActivityCreateDto
  115. */
  116. 'assetId'?: string;
  117. /**
  118. *
  119. * @type {string}
  120. * @memberof ActivityCreateDto
  121. */
  122. 'comment'?: string;
  123. /**
  124. *
  125. * @type {ReactionType}
  126. * @memberof ActivityCreateDto
  127. */
  128. 'type': ReactionType;
  129. }
  130. /**
  131. *
  132. * @export
  133. * @interface ActivityResponseDto
  134. */
  135. export interface ActivityResponseDto {
  136. /**
  137. *
  138. * @type {string}
  139. * @memberof ActivityResponseDto
  140. */
  141. 'assetId': string | null;
  142. /**
  143. *
  144. * @type {string}
  145. * @memberof ActivityResponseDto
  146. */
  147. 'comment'?: string | null;
  148. /**
  149. *
  150. * @type {string}
  151. * @memberof ActivityResponseDto
  152. */
  153. 'createdAt': string;
  154. /**
  155. *
  156. * @type {string}
  157. * @memberof ActivityResponseDto
  158. */
  159. 'id': string;
  160. /**
  161. *
  162. * @type {string}
  163. * @memberof ActivityResponseDto
  164. */
  165. 'type': ActivityResponseDtoTypeEnum;
  166. /**
  167. *
  168. * @type {UserDto}
  169. * @memberof ActivityResponseDto
  170. */
  171. 'user': UserDto;
  172. }
  173. export const ActivityResponseDtoTypeEnum = {
  174. Comment: 'comment',
  175. Like: 'like'
  176. } as const;
  177. export type ActivityResponseDtoTypeEnum = typeof ActivityResponseDtoTypeEnum[keyof typeof ActivityResponseDtoTypeEnum];
  178. /**
  179. *
  180. * @export
  181. * @interface ActivityStatisticsResponseDto
  182. */
  183. export interface ActivityStatisticsResponseDto {
  184. /**
  185. *
  186. * @type {number}
  187. * @memberof ActivityStatisticsResponseDto
  188. */
  189. 'comments': number;
  190. }
  191. /**
  192. *
  193. * @export
  194. * @interface AddUsersDto
  195. */
  196. export interface AddUsersDto {
  197. /**
  198. *
  199. * @type {Array<string>}
  200. * @memberof AddUsersDto
  201. */
  202. 'sharedUserIds': Array<string>;
  203. }
  204. /**
  205. *
  206. * @export
  207. * @interface AdminSignupResponseDto
  208. */
  209. export interface AdminSignupResponseDto {
  210. /**
  211. *
  212. * @type {string}
  213. * @memberof AdminSignupResponseDto
  214. */
  215. 'createdAt': string;
  216. /**
  217. *
  218. * @type {string}
  219. * @memberof AdminSignupResponseDto
  220. */
  221. 'email': string;
  222. /**
  223. *
  224. * @type {string}
  225. * @memberof AdminSignupResponseDto
  226. */
  227. 'firstName': string;
  228. /**
  229. *
  230. * @type {string}
  231. * @memberof AdminSignupResponseDto
  232. */
  233. 'id': string;
  234. /**
  235. *
  236. * @type {string}
  237. * @memberof AdminSignupResponseDto
  238. */
  239. 'lastName': string;
  240. }
  241. /**
  242. *
  243. * @export
  244. * @interface AlbumCountResponseDto
  245. */
  246. export interface AlbumCountResponseDto {
  247. /**
  248. *
  249. * @type {number}
  250. * @memberof AlbumCountResponseDto
  251. */
  252. 'notShared': number;
  253. /**
  254. *
  255. * @type {number}
  256. * @memberof AlbumCountResponseDto
  257. */
  258. 'owned': number;
  259. /**
  260. *
  261. * @type {number}
  262. * @memberof AlbumCountResponseDto
  263. */
  264. 'shared': number;
  265. }
  266. /**
  267. *
  268. * @export
  269. * @interface AlbumResponseDto
  270. */
  271. export interface AlbumResponseDto {
  272. /**
  273. *
  274. * @type {string}
  275. * @memberof AlbumResponseDto
  276. */
  277. 'albumName': string;
  278. /**
  279. *
  280. * @type {string}
  281. * @memberof AlbumResponseDto
  282. */
  283. 'albumThumbnailAssetId': string | null;
  284. /**
  285. *
  286. * @type {number}
  287. * @memberof AlbumResponseDto
  288. */
  289. 'assetCount': number;
  290. /**
  291. *
  292. * @type {Array<AssetResponseDto>}
  293. * @memberof AlbumResponseDto
  294. */
  295. 'assets': Array<AssetResponseDto>;
  296. /**
  297. *
  298. * @type {string}
  299. * @memberof AlbumResponseDto
  300. */
  301. 'createdAt': string;
  302. /**
  303. *
  304. * @type {string}
  305. * @memberof AlbumResponseDto
  306. */
  307. 'description': string;
  308. /**
  309. *
  310. * @type {string}
  311. * @memberof AlbumResponseDto
  312. */
  313. 'endDate'?: string;
  314. /**
  315. *
  316. * @type {boolean}
  317. * @memberof AlbumResponseDto
  318. */
  319. 'hasSharedLink': boolean;
  320. /**
  321. *
  322. * @type {string}
  323. * @memberof AlbumResponseDto
  324. */
  325. 'id': string;
  326. /**
  327. *
  328. * @type {string}
  329. * @memberof AlbumResponseDto
  330. */
  331. 'lastModifiedAssetTimestamp'?: string;
  332. /**
  333. *
  334. * @type {UserResponseDto}
  335. * @memberof AlbumResponseDto
  336. */
  337. 'owner': UserResponseDto;
  338. /**
  339. *
  340. * @type {string}
  341. * @memberof AlbumResponseDto
  342. */
  343. 'ownerId': string;
  344. /**
  345. *
  346. * @type {boolean}
  347. * @memberof AlbumResponseDto
  348. */
  349. 'shared': boolean;
  350. /**
  351. *
  352. * @type {Array<UserResponseDto>}
  353. * @memberof AlbumResponseDto
  354. */
  355. 'sharedUsers': Array<UserResponseDto>;
  356. /**
  357. *
  358. * @type {string}
  359. * @memberof AlbumResponseDto
  360. */
  361. 'startDate'?: string;
  362. /**
  363. *
  364. * @type {string}
  365. * @memberof AlbumResponseDto
  366. */
  367. 'updatedAt': string;
  368. }
  369. /**
  370. *
  371. * @export
  372. * @interface AllJobStatusResponseDto
  373. */
  374. export interface AllJobStatusResponseDto {
  375. /**
  376. *
  377. * @type {JobStatusDto}
  378. * @memberof AllJobStatusResponseDto
  379. */
  380. 'backgroundTask': JobStatusDto;
  381. /**
  382. *
  383. * @type {JobStatusDto}
  384. * @memberof AllJobStatusResponseDto
  385. */
  386. 'clipEncoding': JobStatusDto;
  387. /**
  388. *
  389. * @type {JobStatusDto}
  390. * @memberof AllJobStatusResponseDto
  391. */
  392. 'library': JobStatusDto;
  393. /**
  394. *
  395. * @type {JobStatusDto}
  396. * @memberof AllJobStatusResponseDto
  397. */
  398. 'metadataExtraction': JobStatusDto;
  399. /**
  400. *
  401. * @type {JobStatusDto}
  402. * @memberof AllJobStatusResponseDto
  403. */
  404. 'migration': JobStatusDto;
  405. /**
  406. *
  407. * @type {JobStatusDto}
  408. * @memberof AllJobStatusResponseDto
  409. */
  410. 'objectTagging': JobStatusDto;
  411. /**
  412. *
  413. * @type {JobStatusDto}
  414. * @memberof AllJobStatusResponseDto
  415. */
  416. 'recognizeFaces': JobStatusDto;
  417. /**
  418. *
  419. * @type {JobStatusDto}
  420. * @memberof AllJobStatusResponseDto
  421. */
  422. 'search': JobStatusDto;
  423. /**
  424. *
  425. * @type {JobStatusDto}
  426. * @memberof AllJobStatusResponseDto
  427. */
  428. 'sidecar': JobStatusDto;
  429. /**
  430. *
  431. * @type {JobStatusDto}
  432. * @memberof AllJobStatusResponseDto
  433. */
  434. 'storageTemplateMigration': JobStatusDto;
  435. /**
  436. *
  437. * @type {JobStatusDto}
  438. * @memberof AllJobStatusResponseDto
  439. */
  440. 'thumbnailGeneration': JobStatusDto;
  441. /**
  442. *
  443. * @type {JobStatusDto}
  444. * @memberof AllJobStatusResponseDto
  445. */
  446. 'videoConversion': JobStatusDto;
  447. }
  448. /**
  449. *
  450. * @export
  451. * @interface AssetBulkDeleteDto
  452. */
  453. export interface AssetBulkDeleteDto {
  454. /**
  455. *
  456. * @type {boolean}
  457. * @memberof AssetBulkDeleteDto
  458. */
  459. 'force'?: boolean;
  460. /**
  461. *
  462. * @type {Array<string>}
  463. * @memberof AssetBulkDeleteDto
  464. */
  465. 'ids': Array<string>;
  466. }
  467. /**
  468. *
  469. * @export
  470. * @interface AssetBulkUpdateDto
  471. */
  472. export interface AssetBulkUpdateDto {
  473. /**
  474. *
  475. * @type {Array<string>}
  476. * @memberof AssetBulkUpdateDto
  477. */
  478. 'ids': Array<string>;
  479. /**
  480. *
  481. * @type {boolean}
  482. * @memberof AssetBulkUpdateDto
  483. */
  484. 'isArchived'?: boolean;
  485. /**
  486. *
  487. * @type {boolean}
  488. * @memberof AssetBulkUpdateDto
  489. */
  490. 'isFavorite'?: boolean;
  491. /**
  492. *
  493. * @type {boolean}
  494. * @memberof AssetBulkUpdateDto
  495. */
  496. 'removeParent'?: boolean;
  497. /**
  498. *
  499. * @type {string}
  500. * @memberof AssetBulkUpdateDto
  501. */
  502. 'stackParentId'?: string;
  503. }
  504. /**
  505. *
  506. * @export
  507. * @interface AssetBulkUploadCheckDto
  508. */
  509. export interface AssetBulkUploadCheckDto {
  510. /**
  511. *
  512. * @type {Array<AssetBulkUploadCheckItem>}
  513. * @memberof AssetBulkUploadCheckDto
  514. */
  515. 'assets': Array<AssetBulkUploadCheckItem>;
  516. }
  517. /**
  518. *
  519. * @export
  520. * @interface AssetBulkUploadCheckItem
  521. */
  522. export interface AssetBulkUploadCheckItem {
  523. /**
  524. * base64 or hex encoded sha1 hash
  525. * @type {string}
  526. * @memberof AssetBulkUploadCheckItem
  527. */
  528. 'checksum': string;
  529. /**
  530. *
  531. * @type {string}
  532. * @memberof AssetBulkUploadCheckItem
  533. */
  534. 'id': string;
  535. }
  536. /**
  537. *
  538. * @export
  539. * @interface AssetBulkUploadCheckResponseDto
  540. */
  541. export interface AssetBulkUploadCheckResponseDto {
  542. /**
  543. *
  544. * @type {Array<AssetBulkUploadCheckResult>}
  545. * @memberof AssetBulkUploadCheckResponseDto
  546. */
  547. 'results': Array<AssetBulkUploadCheckResult>;
  548. }
  549. /**
  550. *
  551. * @export
  552. * @interface AssetBulkUploadCheckResult
  553. */
  554. export interface AssetBulkUploadCheckResult {
  555. /**
  556. *
  557. * @type {string}
  558. * @memberof AssetBulkUploadCheckResult
  559. */
  560. 'action': AssetBulkUploadCheckResultActionEnum;
  561. /**
  562. *
  563. * @type {string}
  564. * @memberof AssetBulkUploadCheckResult
  565. */
  566. 'assetId'?: string;
  567. /**
  568. *
  569. * @type {string}
  570. * @memberof AssetBulkUploadCheckResult
  571. */
  572. 'id': string;
  573. /**
  574. *
  575. * @type {string}
  576. * @memberof AssetBulkUploadCheckResult
  577. */
  578. 'reason'?: AssetBulkUploadCheckResultReasonEnum;
  579. }
  580. export const AssetBulkUploadCheckResultActionEnum = {
  581. Accept: 'accept',
  582. Reject: 'reject'
  583. } as const;
  584. export type AssetBulkUploadCheckResultActionEnum = typeof AssetBulkUploadCheckResultActionEnum[keyof typeof AssetBulkUploadCheckResultActionEnum];
  585. export const AssetBulkUploadCheckResultReasonEnum = {
  586. Duplicate: 'duplicate',
  587. UnsupportedFormat: 'unsupported-format'
  588. } as const;
  589. export type AssetBulkUploadCheckResultReasonEnum = typeof AssetBulkUploadCheckResultReasonEnum[keyof typeof AssetBulkUploadCheckResultReasonEnum];
  590. /**
  591. *
  592. * @export
  593. * @interface AssetFileUploadResponseDto
  594. */
  595. export interface AssetFileUploadResponseDto {
  596. /**
  597. *
  598. * @type {boolean}
  599. * @memberof AssetFileUploadResponseDto
  600. */
  601. 'duplicate': boolean;
  602. /**
  603. *
  604. * @type {string}
  605. * @memberof AssetFileUploadResponseDto
  606. */
  607. 'id': string;
  608. }
  609. /**
  610. *
  611. * @export
  612. * @interface AssetIdsDto
  613. */
  614. export interface AssetIdsDto {
  615. /**
  616. *
  617. * @type {Array<string>}
  618. * @memberof AssetIdsDto
  619. */
  620. 'assetIds': Array<string>;
  621. }
  622. /**
  623. *
  624. * @export
  625. * @interface AssetIdsResponseDto
  626. */
  627. export interface AssetIdsResponseDto {
  628. /**
  629. *
  630. * @type {string}
  631. * @memberof AssetIdsResponseDto
  632. */
  633. 'assetId': string;
  634. /**
  635. *
  636. * @type {string}
  637. * @memberof AssetIdsResponseDto
  638. */
  639. 'error'?: AssetIdsResponseDtoErrorEnum;
  640. /**
  641. *
  642. * @type {boolean}
  643. * @memberof AssetIdsResponseDto
  644. */
  645. 'success': boolean;
  646. }
  647. export const AssetIdsResponseDtoErrorEnum = {
  648. Duplicate: 'duplicate',
  649. NoPermission: 'no_permission',
  650. NotFound: 'not_found'
  651. } as const;
  652. export type AssetIdsResponseDtoErrorEnum = typeof AssetIdsResponseDtoErrorEnum[keyof typeof AssetIdsResponseDtoErrorEnum];
  653. /**
  654. *
  655. * @export
  656. * @enum {string}
  657. */
  658. export const AssetJobName = {
  659. RegenerateThumbnail: 'regenerate-thumbnail',
  660. RefreshMetadata: 'refresh-metadata',
  661. TranscodeVideo: 'transcode-video'
  662. } as const;
  663. export type AssetJobName = typeof AssetJobName[keyof typeof AssetJobName];
  664. /**
  665. *
  666. * @export
  667. * @interface AssetJobsDto
  668. */
  669. export interface AssetJobsDto {
  670. /**
  671. *
  672. * @type {Array<string>}
  673. * @memberof AssetJobsDto
  674. */
  675. 'assetIds': Array<string>;
  676. /**
  677. *
  678. * @type {AssetJobName}
  679. * @memberof AssetJobsDto
  680. */
  681. 'name': AssetJobName;
  682. }
  683. /**
  684. *
  685. * @export
  686. * @interface AssetResponseDto
  687. */
  688. export interface AssetResponseDto {
  689. /**
  690. * base64 encoded sha1 hash
  691. * @type {string}
  692. * @memberof AssetResponseDto
  693. */
  694. 'checksum': string;
  695. /**
  696. *
  697. * @type {string}
  698. * @memberof AssetResponseDto
  699. */
  700. 'deviceAssetId': string;
  701. /**
  702. *
  703. * @type {string}
  704. * @memberof AssetResponseDto
  705. */
  706. 'deviceId': string;
  707. /**
  708. *
  709. * @type {string}
  710. * @memberof AssetResponseDto
  711. */
  712. 'duration': string;
  713. /**
  714. *
  715. * @type {ExifResponseDto}
  716. * @memberof AssetResponseDto
  717. */
  718. 'exifInfo'?: ExifResponseDto;
  719. /**
  720. *
  721. * @type {string}
  722. * @memberof AssetResponseDto
  723. */
  724. 'fileCreatedAt': string;
  725. /**
  726. *
  727. * @type {string}
  728. * @memberof AssetResponseDto
  729. */
  730. 'fileModifiedAt': string;
  731. /**
  732. *
  733. * @type {boolean}
  734. * @memberof AssetResponseDto
  735. */
  736. 'hasMetadata': boolean;
  737. /**
  738. *
  739. * @type {string}
  740. * @memberof AssetResponseDto
  741. */
  742. 'id': string;
  743. /**
  744. *
  745. * @type {boolean}
  746. * @memberof AssetResponseDto
  747. */
  748. 'isArchived': boolean;
  749. /**
  750. *
  751. * @type {boolean}
  752. * @memberof AssetResponseDto
  753. */
  754. 'isExternal': boolean;
  755. /**
  756. *
  757. * @type {boolean}
  758. * @memberof AssetResponseDto
  759. */
  760. 'isFavorite': boolean;
  761. /**
  762. *
  763. * @type {boolean}
  764. * @memberof AssetResponseDto
  765. */
  766. 'isOffline': boolean;
  767. /**
  768. *
  769. * @type {boolean}
  770. * @memberof AssetResponseDto
  771. */
  772. 'isReadOnly': boolean;
  773. /**
  774. *
  775. * @type {boolean}
  776. * @memberof AssetResponseDto
  777. */
  778. 'isTrashed': boolean;
  779. /**
  780. *
  781. * @type {string}
  782. * @memberof AssetResponseDto
  783. */
  784. 'libraryId': string;
  785. /**
  786. *
  787. * @type {string}
  788. * @memberof AssetResponseDto
  789. */
  790. 'livePhotoVideoId'?: string | null;
  791. /**
  792. *
  793. * @type {string}
  794. * @memberof AssetResponseDto
  795. */
  796. 'localDateTime': string;
  797. /**
  798. *
  799. * @type {string}
  800. * @memberof AssetResponseDto
  801. */
  802. 'originalFileName': string;
  803. /**
  804. *
  805. * @type {string}
  806. * @memberof AssetResponseDto
  807. */
  808. 'originalPath': string;
  809. /**
  810. *
  811. * @type {UserResponseDto}
  812. * @memberof AssetResponseDto
  813. */
  814. 'owner'?: UserResponseDto;
  815. /**
  816. *
  817. * @type {string}
  818. * @memberof AssetResponseDto
  819. */
  820. 'ownerId': string;
  821. /**
  822. *
  823. * @type {Array<PersonResponseDto>}
  824. * @memberof AssetResponseDto
  825. */
  826. 'people'?: Array<PersonResponseDto>;
  827. /**
  828. *
  829. * @type {boolean}
  830. * @memberof AssetResponseDto
  831. */
  832. 'resized': boolean;
  833. /**
  834. *
  835. * @type {SmartInfoResponseDto}
  836. * @memberof AssetResponseDto
  837. */
  838. 'smartInfo'?: SmartInfoResponseDto;
  839. /**
  840. *
  841. * @type {Array<AssetResponseDto>}
  842. * @memberof AssetResponseDto
  843. */
  844. 'stack'?: Array<AssetResponseDto>;
  845. /**
  846. *
  847. * @type {number}
  848. * @memberof AssetResponseDto
  849. */
  850. 'stackCount': number | null;
  851. /**
  852. *
  853. * @type {string}
  854. * @memberof AssetResponseDto
  855. */
  856. 'stackParentId'?: string | null;
  857. /**
  858. *
  859. * @type {Array<TagResponseDto>}
  860. * @memberof AssetResponseDto
  861. */
  862. 'tags'?: Array<TagResponseDto>;
  863. /**
  864. *
  865. * @type {string}
  866. * @memberof AssetResponseDto
  867. */
  868. 'thumbhash': string | null;
  869. /**
  870. *
  871. * @type {AssetTypeEnum}
  872. * @memberof AssetResponseDto
  873. */
  874. 'type': AssetTypeEnum;
  875. /**
  876. *
  877. * @type {string}
  878. * @memberof AssetResponseDto
  879. */
  880. 'updatedAt': string;
  881. }
  882. /**
  883. *
  884. * @export
  885. * @interface AssetStatsResponseDto
  886. */
  887. export interface AssetStatsResponseDto {
  888. /**
  889. *
  890. * @type {number}
  891. * @memberof AssetStatsResponseDto
  892. */
  893. 'images': number;
  894. /**
  895. *
  896. * @type {number}
  897. * @memberof AssetStatsResponseDto
  898. */
  899. 'total': number;
  900. /**
  901. *
  902. * @type {number}
  903. * @memberof AssetStatsResponseDto
  904. */
  905. 'videos': number;
  906. }
  907. /**
  908. *
  909. * @export
  910. * @enum {string}
  911. */
  912. export const AssetTypeEnum = {
  913. Image: 'IMAGE',
  914. Video: 'VIDEO',
  915. Audio: 'AUDIO',
  916. Other: 'OTHER'
  917. } as const;
  918. export type AssetTypeEnum = typeof AssetTypeEnum[keyof typeof AssetTypeEnum];
  919. /**
  920. *
  921. * @export
  922. * @enum {string}
  923. */
  924. export const AudioCodec = {
  925. Mp3: 'mp3',
  926. Aac: 'aac',
  927. Libopus: 'libopus'
  928. } as const;
  929. export type AudioCodec = typeof AudioCodec[keyof typeof AudioCodec];
  930. /**
  931. *
  932. * @export
  933. * @interface AuditDeletesResponseDto
  934. */
  935. export interface AuditDeletesResponseDto {
  936. /**
  937. *
  938. * @type {Array<string>}
  939. * @memberof AuditDeletesResponseDto
  940. */
  941. 'ids': Array<string>;
  942. /**
  943. *
  944. * @type {boolean}
  945. * @memberof AuditDeletesResponseDto
  946. */
  947. 'needsFullSync': boolean;
  948. }
  949. /**
  950. *
  951. * @export
  952. * @interface AuthDeviceResponseDto
  953. */
  954. export interface AuthDeviceResponseDto {
  955. /**
  956. *
  957. * @type {string}
  958. * @memberof AuthDeviceResponseDto
  959. */
  960. 'createdAt': string;
  961. /**
  962. *
  963. * @type {boolean}
  964. * @memberof AuthDeviceResponseDto
  965. */
  966. 'current': boolean;
  967. /**
  968. *
  969. * @type {string}
  970. * @memberof AuthDeviceResponseDto
  971. */
  972. 'deviceOS': string;
  973. /**
  974. *
  975. * @type {string}
  976. * @memberof AuthDeviceResponseDto
  977. */
  978. 'deviceType': string;
  979. /**
  980. *
  981. * @type {string}
  982. * @memberof AuthDeviceResponseDto
  983. */
  984. 'id': string;
  985. /**
  986. *
  987. * @type {string}
  988. * @memberof AuthDeviceResponseDto
  989. */
  990. 'updatedAt': string;
  991. }
  992. /**
  993. *
  994. * @export
  995. * @interface BulkIdResponseDto
  996. */
  997. export interface BulkIdResponseDto {
  998. /**
  999. *
  1000. * @type {string}
  1001. * @memberof BulkIdResponseDto
  1002. */
  1003. 'error'?: BulkIdResponseDtoErrorEnum;
  1004. /**
  1005. *
  1006. * @type {string}
  1007. * @memberof BulkIdResponseDto
  1008. */
  1009. 'id': string;
  1010. /**
  1011. *
  1012. * @type {boolean}
  1013. * @memberof BulkIdResponseDto
  1014. */
  1015. 'success': boolean;
  1016. }
  1017. export const BulkIdResponseDtoErrorEnum = {
  1018. Duplicate: 'duplicate',
  1019. NoPermission: 'no_permission',
  1020. NotFound: 'not_found',
  1021. Unknown: 'unknown'
  1022. } as const;
  1023. export type BulkIdResponseDtoErrorEnum = typeof BulkIdResponseDtoErrorEnum[keyof typeof BulkIdResponseDtoErrorEnum];
  1024. /**
  1025. *
  1026. * @export
  1027. * @interface BulkIdsDto
  1028. */
  1029. export interface BulkIdsDto {
  1030. /**
  1031. *
  1032. * @type {Array<string>}
  1033. * @memberof BulkIdsDto
  1034. */
  1035. 'ids': Array<string>;
  1036. }
  1037. /**
  1038. *
  1039. * @export
  1040. * @interface CLIPConfig
  1041. */
  1042. export interface CLIPConfig {
  1043. /**
  1044. *
  1045. * @type {boolean}
  1046. * @memberof CLIPConfig
  1047. */
  1048. 'enabled': boolean;
  1049. /**
  1050. *
  1051. * @type {CLIPMode}
  1052. * @memberof CLIPConfig
  1053. */
  1054. 'mode'?: CLIPMode;
  1055. /**
  1056. *
  1057. * @type {string}
  1058. * @memberof CLIPConfig
  1059. */
  1060. 'modelName': string;
  1061. /**
  1062. *
  1063. * @type {ModelType}
  1064. * @memberof CLIPConfig
  1065. */
  1066. 'modelType'?: ModelType;
  1067. }
  1068. /**
  1069. *
  1070. * @export
  1071. * @enum {string}
  1072. */
  1073. export const CLIPMode = {
  1074. Vision: 'vision',
  1075. Text: 'text'
  1076. } as const;
  1077. export type CLIPMode = typeof CLIPMode[keyof typeof CLIPMode];
  1078. /**
  1079. *
  1080. * @export
  1081. * @enum {string}
  1082. */
  1083. export const CQMode = {
  1084. Auto: 'auto',
  1085. Cqp: 'cqp',
  1086. Icq: 'icq'
  1087. } as const;
  1088. export type CQMode = typeof CQMode[keyof typeof CQMode];
  1089. /**
  1090. *
  1091. * @export
  1092. * @interface ChangePasswordDto
  1093. */
  1094. export interface ChangePasswordDto {
  1095. /**
  1096. *
  1097. * @type {string}
  1098. * @memberof ChangePasswordDto
  1099. */
  1100. 'newPassword': string;
  1101. /**
  1102. *
  1103. * @type {string}
  1104. * @memberof ChangePasswordDto
  1105. */
  1106. 'password': string;
  1107. }
  1108. /**
  1109. *
  1110. * @export
  1111. * @interface CheckExistingAssetsDto
  1112. */
  1113. export interface CheckExistingAssetsDto {
  1114. /**
  1115. *
  1116. * @type {Array<string>}
  1117. * @memberof CheckExistingAssetsDto
  1118. */
  1119. 'deviceAssetIds': Array<string>;
  1120. /**
  1121. *
  1122. * @type {string}
  1123. * @memberof CheckExistingAssetsDto
  1124. */
  1125. 'deviceId': string;
  1126. }
  1127. /**
  1128. *
  1129. * @export
  1130. * @interface CheckExistingAssetsResponseDto
  1131. */
  1132. export interface CheckExistingAssetsResponseDto {
  1133. /**
  1134. *
  1135. * @type {Array<string>}
  1136. * @memberof CheckExistingAssetsResponseDto
  1137. */
  1138. 'existingIds': Array<string>;
  1139. }
  1140. /**
  1141. *
  1142. * @export
  1143. * @enum {string}
  1144. */
  1145. export const CitiesFile = {
  1146. Cities15000: 'cities15000',
  1147. Cities5000: 'cities5000',
  1148. Cities1000: 'cities1000',
  1149. Cities500: 'cities500'
  1150. } as const;
  1151. export type CitiesFile = typeof CitiesFile[keyof typeof CitiesFile];
  1152. /**
  1153. *
  1154. * @export
  1155. * @interface ClassificationConfig
  1156. */
  1157. export interface ClassificationConfig {
  1158. /**
  1159. *
  1160. * @type {boolean}
  1161. * @memberof ClassificationConfig
  1162. */
  1163. 'enabled': boolean;
  1164. /**
  1165. *
  1166. * @type {number}
  1167. * @memberof ClassificationConfig
  1168. */
  1169. 'minScore': number;
  1170. /**
  1171. *
  1172. * @type {string}
  1173. * @memberof ClassificationConfig
  1174. */
  1175. 'modelName': string;
  1176. /**
  1177. *
  1178. * @type {ModelType}
  1179. * @memberof ClassificationConfig
  1180. */
  1181. 'modelType'?: ModelType;
  1182. }
  1183. /**
  1184. *
  1185. * @export
  1186. * @enum {string}
  1187. */
  1188. export const Colorspace = {
  1189. Srgb: 'srgb',
  1190. P3: 'p3'
  1191. } as const;
  1192. export type Colorspace = typeof Colorspace[keyof typeof Colorspace];
  1193. /**
  1194. *
  1195. * @export
  1196. * @interface CreateAlbumDto
  1197. */
  1198. export interface CreateAlbumDto {
  1199. /**
  1200. *
  1201. * @type {string}
  1202. * @memberof CreateAlbumDto
  1203. */
  1204. 'albumName': string;
  1205. /**
  1206. *
  1207. * @type {Array<string>}
  1208. * @memberof CreateAlbumDto
  1209. */
  1210. 'assetIds'?: Array<string>;
  1211. /**
  1212. *
  1213. * @type {string}
  1214. * @memberof CreateAlbumDto
  1215. */
  1216. 'description'?: string;
  1217. /**
  1218. *
  1219. * @type {Array<string>}
  1220. * @memberof CreateAlbumDto
  1221. */
  1222. 'sharedWithUserIds'?: Array<string>;
  1223. }
  1224. /**
  1225. *
  1226. * @export
  1227. * @interface CreateLibraryDto
  1228. */
  1229. export interface CreateLibraryDto {
  1230. /**
  1231. *
  1232. * @type {Array<string>}
  1233. * @memberof CreateLibraryDto
  1234. */
  1235. 'exclusionPatterns'?: Array<string>;
  1236. /**
  1237. *
  1238. * @type {Array<string>}
  1239. * @memberof CreateLibraryDto
  1240. */
  1241. 'importPaths'?: Array<string>;
  1242. /**
  1243. *
  1244. * @type {boolean}
  1245. * @memberof CreateLibraryDto
  1246. */
  1247. 'isVisible'?: boolean;
  1248. /**
  1249. *
  1250. * @type {string}
  1251. * @memberof CreateLibraryDto
  1252. */
  1253. 'name'?: string;
  1254. /**
  1255. *
  1256. * @type {LibraryType}
  1257. * @memberof CreateLibraryDto
  1258. */
  1259. 'type': LibraryType;
  1260. }
  1261. /**
  1262. *
  1263. * @export
  1264. * @interface CreateProfileImageResponseDto
  1265. */
  1266. export interface CreateProfileImageResponseDto {
  1267. /**
  1268. *
  1269. * @type {string}
  1270. * @memberof CreateProfileImageResponseDto
  1271. */
  1272. 'profileImagePath': string;
  1273. /**
  1274. *
  1275. * @type {string}
  1276. * @memberof CreateProfileImageResponseDto
  1277. */
  1278. 'userId': string;
  1279. }
  1280. /**
  1281. *
  1282. * @export
  1283. * @interface CreateTagDto
  1284. */
  1285. export interface CreateTagDto {
  1286. /**
  1287. *
  1288. * @type {string}
  1289. * @memberof CreateTagDto
  1290. */
  1291. 'name': string;
  1292. /**
  1293. *
  1294. * @type {TagTypeEnum}
  1295. * @memberof CreateTagDto
  1296. */
  1297. 'type': TagTypeEnum;
  1298. }
  1299. /**
  1300. *
  1301. * @export
  1302. * @interface CreateUserDto
  1303. */
  1304. export interface CreateUserDto {
  1305. /**
  1306. *
  1307. * @type {string}
  1308. * @memberof CreateUserDto
  1309. */
  1310. 'email': string;
  1311. /**
  1312. *
  1313. * @type {string}
  1314. * @memberof CreateUserDto
  1315. */
  1316. 'externalPath'?: string | null;
  1317. /**
  1318. *
  1319. * @type {string}
  1320. * @memberof CreateUserDto
  1321. */
  1322. 'firstName': string;
  1323. /**
  1324. *
  1325. * @type {string}
  1326. * @memberof CreateUserDto
  1327. */
  1328. 'lastName': string;
  1329. /**
  1330. *
  1331. * @type {boolean}
  1332. * @memberof CreateUserDto
  1333. */
  1334. 'memoriesEnabled'?: boolean;
  1335. /**
  1336. *
  1337. * @type {string}
  1338. * @memberof CreateUserDto
  1339. */
  1340. 'password': string;
  1341. /**
  1342. *
  1343. * @type {string}
  1344. * @memberof CreateUserDto
  1345. */
  1346. 'storageLabel'?: string | null;
  1347. }
  1348. /**
  1349. *
  1350. * @export
  1351. * @interface CuratedLocationsResponseDto
  1352. */
  1353. export interface CuratedLocationsResponseDto {
  1354. /**
  1355. *
  1356. * @type {string}
  1357. * @memberof CuratedLocationsResponseDto
  1358. */
  1359. 'city': string;
  1360. /**
  1361. *
  1362. * @type {string}
  1363. * @memberof CuratedLocationsResponseDto
  1364. */
  1365. 'deviceAssetId': string;
  1366. /**
  1367. *
  1368. * @type {string}
  1369. * @memberof CuratedLocationsResponseDto
  1370. */
  1371. 'deviceId': string;
  1372. /**
  1373. *
  1374. * @type {string}
  1375. * @memberof CuratedLocationsResponseDto
  1376. */
  1377. 'id': string;
  1378. /**
  1379. *
  1380. * @type {string}
  1381. * @memberof CuratedLocationsResponseDto
  1382. */
  1383. 'resizePath': string;
  1384. }
  1385. /**
  1386. *
  1387. * @export
  1388. * @interface CuratedObjectsResponseDto
  1389. */
  1390. export interface CuratedObjectsResponseDto {
  1391. /**
  1392. *
  1393. * @type {string}
  1394. * @memberof CuratedObjectsResponseDto
  1395. */
  1396. 'deviceAssetId': string;
  1397. /**
  1398. *
  1399. * @type {string}
  1400. * @memberof CuratedObjectsResponseDto
  1401. */
  1402. 'deviceId': string;
  1403. /**
  1404. *
  1405. * @type {string}
  1406. * @memberof CuratedObjectsResponseDto
  1407. */
  1408. 'id': string;
  1409. /**
  1410. *
  1411. * @type {string}
  1412. * @memberof CuratedObjectsResponseDto
  1413. */
  1414. 'object': string;
  1415. /**
  1416. *
  1417. * @type {string}
  1418. * @memberof CuratedObjectsResponseDto
  1419. */
  1420. 'resizePath': string;
  1421. }
  1422. /**
  1423. *
  1424. * @export
  1425. * @interface DownloadArchiveInfo
  1426. */
  1427. export interface DownloadArchiveInfo {
  1428. /**
  1429. *
  1430. * @type {Array<string>}
  1431. * @memberof DownloadArchiveInfo
  1432. */
  1433. 'assetIds': Array<string>;
  1434. /**
  1435. *
  1436. * @type {number}
  1437. * @memberof DownloadArchiveInfo
  1438. */
  1439. 'size': number;
  1440. }
  1441. /**
  1442. *
  1443. * @export
  1444. * @interface DownloadInfoDto
  1445. */
  1446. export interface DownloadInfoDto {
  1447. /**
  1448. *
  1449. * @type {string}
  1450. * @memberof DownloadInfoDto
  1451. */
  1452. 'albumId'?: string;
  1453. /**
  1454. *
  1455. * @type {number}
  1456. * @memberof DownloadInfoDto
  1457. */
  1458. 'archiveSize'?: number;
  1459. /**
  1460. *
  1461. * @type {Array<string>}
  1462. * @memberof DownloadInfoDto
  1463. */
  1464. 'assetIds'?: Array<string>;
  1465. /**
  1466. *
  1467. * @type {string}
  1468. * @memberof DownloadInfoDto
  1469. */
  1470. 'userId'?: string;
  1471. }
  1472. /**
  1473. *
  1474. * @export
  1475. * @interface DownloadResponseDto
  1476. */
  1477. export interface DownloadResponseDto {
  1478. /**
  1479. *
  1480. * @type {Array<DownloadArchiveInfo>}
  1481. * @memberof DownloadResponseDto
  1482. */
  1483. 'archives': Array<DownloadArchiveInfo>;
  1484. /**
  1485. *
  1486. * @type {number}
  1487. * @memberof DownloadResponseDto
  1488. */
  1489. 'totalSize': number;
  1490. }
  1491. /**
  1492. *
  1493. * @export
  1494. * @enum {string}
  1495. */
  1496. export const EntityType = {
  1497. Asset: 'ASSET',
  1498. Album: 'ALBUM'
  1499. } as const;
  1500. export type EntityType = typeof EntityType[keyof typeof EntityType];
  1501. /**
  1502. *
  1503. * @export
  1504. * @interface ExifResponseDto
  1505. */
  1506. export interface ExifResponseDto {
  1507. /**
  1508. *
  1509. * @type {string}
  1510. * @memberof ExifResponseDto
  1511. */
  1512. 'city'?: string | null;
  1513. /**
  1514. *
  1515. * @type {string}
  1516. * @memberof ExifResponseDto
  1517. */
  1518. 'country'?: string | null;
  1519. /**
  1520. *
  1521. * @type {string}
  1522. * @memberof ExifResponseDto
  1523. */
  1524. 'dateTimeOriginal'?: string | null;
  1525. /**
  1526. *
  1527. * @type {string}
  1528. * @memberof ExifResponseDto
  1529. */
  1530. 'description'?: string | null;
  1531. /**
  1532. *
  1533. * @type {number}
  1534. * @memberof ExifResponseDto
  1535. */
  1536. 'exifImageHeight'?: number | null;
  1537. /**
  1538. *
  1539. * @type {number}
  1540. * @memberof ExifResponseDto
  1541. */
  1542. 'exifImageWidth'?: number | null;
  1543. /**
  1544. *
  1545. * @type {string}
  1546. * @memberof ExifResponseDto
  1547. */
  1548. 'exposureTime'?: string | null;
  1549. /**
  1550. *
  1551. * @type {number}
  1552. * @memberof ExifResponseDto
  1553. */
  1554. 'fNumber'?: number | null;
  1555. /**
  1556. *
  1557. * @type {number}
  1558. * @memberof ExifResponseDto
  1559. */
  1560. 'fileSizeInByte'?: number | null;
  1561. /**
  1562. *
  1563. * @type {number}
  1564. * @memberof ExifResponseDto
  1565. */
  1566. 'focalLength'?: number | null;
  1567. /**
  1568. *
  1569. * @type {number}
  1570. * @memberof ExifResponseDto
  1571. */
  1572. 'iso'?: number | null;
  1573. /**
  1574. *
  1575. * @type {number}
  1576. * @memberof ExifResponseDto
  1577. */
  1578. 'latitude'?: number | null;
  1579. /**
  1580. *
  1581. * @type {string}
  1582. * @memberof ExifResponseDto
  1583. */
  1584. 'lensModel'?: string | null;
  1585. /**
  1586. *
  1587. * @type {number}
  1588. * @memberof ExifResponseDto
  1589. */
  1590. 'longitude'?: number | null;
  1591. /**
  1592. *
  1593. * @type {string}
  1594. * @memberof ExifResponseDto
  1595. */
  1596. 'make'?: string | null;
  1597. /**
  1598. *
  1599. * @type {string}
  1600. * @memberof ExifResponseDto
  1601. */
  1602. 'model'?: string | null;
  1603. /**
  1604. *
  1605. * @type {string}
  1606. * @memberof ExifResponseDto
  1607. */
  1608. 'modifyDate'?: string | null;
  1609. /**
  1610. *
  1611. * @type {string}
  1612. * @memberof ExifResponseDto
  1613. */
  1614. 'orientation'?: string | null;
  1615. /**
  1616. *
  1617. * @type {string}
  1618. * @memberof ExifResponseDto
  1619. */
  1620. 'projectionType'?: string | null;
  1621. /**
  1622. *
  1623. * @type {string}
  1624. * @memberof ExifResponseDto
  1625. */
  1626. 'state'?: string | null;
  1627. /**
  1628. *
  1629. * @type {string}
  1630. * @memberof ExifResponseDto
  1631. */
  1632. 'timeZone'?: string | null;
  1633. }
  1634. /**
  1635. *
  1636. * @export
  1637. * @interface FileChecksumDto
  1638. */
  1639. export interface FileChecksumDto {
  1640. /**
  1641. *
  1642. * @type {Array<string>}
  1643. * @memberof FileChecksumDto
  1644. */
  1645. 'filenames': Array<string>;
  1646. }
  1647. /**
  1648. *
  1649. * @export
  1650. * @interface FileChecksumResponseDto
  1651. */
  1652. export interface FileChecksumResponseDto {
  1653. /**
  1654. *
  1655. * @type {string}
  1656. * @memberof FileChecksumResponseDto
  1657. */
  1658. 'checksum': string;
  1659. /**
  1660. *
  1661. * @type {string}
  1662. * @memberof FileChecksumResponseDto
  1663. */
  1664. 'filename': string;
  1665. }
  1666. /**
  1667. *
  1668. * @export
  1669. * @interface FileReportDto
  1670. */
  1671. export interface FileReportDto {
  1672. /**
  1673. *
  1674. * @type {Array<string>}
  1675. * @memberof FileReportDto
  1676. */
  1677. 'extras': Array<string>;
  1678. /**
  1679. *
  1680. * @type {Array<FileReportItemDto>}
  1681. * @memberof FileReportDto
  1682. */
  1683. 'orphans': Array<FileReportItemDto>;
  1684. }
  1685. /**
  1686. *
  1687. * @export
  1688. * @interface FileReportFixDto
  1689. */
  1690. export interface FileReportFixDto {
  1691. /**
  1692. *
  1693. * @type {Array<FileReportItemDto>}
  1694. * @memberof FileReportFixDto
  1695. */
  1696. 'items': Array<FileReportItemDto>;
  1697. }
  1698. /**
  1699. *
  1700. * @export
  1701. * @interface FileReportItemDto
  1702. */
  1703. export interface FileReportItemDto {
  1704. /**
  1705. *
  1706. * @type {string}
  1707. * @memberof FileReportItemDto
  1708. */
  1709. 'checksum'?: string;
  1710. /**
  1711. *
  1712. * @type {string}
  1713. * @memberof FileReportItemDto
  1714. */
  1715. 'entityId': string;
  1716. /**
  1717. *
  1718. * @type {PathEntityType}
  1719. * @memberof FileReportItemDto
  1720. */
  1721. 'entityType': PathEntityType;
  1722. /**
  1723. *
  1724. * @type {PathType}
  1725. * @memberof FileReportItemDto
  1726. */
  1727. 'pathType': PathType;
  1728. /**
  1729. *
  1730. * @type {string}
  1731. * @memberof FileReportItemDto
  1732. */
  1733. 'pathValue': string;
  1734. }
  1735. /**
  1736. *
  1737. * @export
  1738. * @interface ImportAssetDto
  1739. */
  1740. export interface ImportAssetDto {
  1741. /**
  1742. *
  1743. * @type {string}
  1744. * @memberof ImportAssetDto
  1745. */
  1746. 'assetPath': string;
  1747. /**
  1748. *
  1749. * @type {string}
  1750. * @memberof ImportAssetDto
  1751. */
  1752. 'deviceAssetId': string;
  1753. /**
  1754. *
  1755. * @type {string}
  1756. * @memberof ImportAssetDto
  1757. */
  1758. 'deviceId': string;
  1759. /**
  1760. *
  1761. * @type {string}
  1762. * @memberof ImportAssetDto
  1763. */
  1764. 'duration'?: string;
  1765. /**
  1766. *
  1767. * @type {string}
  1768. * @memberof ImportAssetDto
  1769. */
  1770. 'fileCreatedAt': string;
  1771. /**
  1772. *
  1773. * @type {string}
  1774. * @memberof ImportAssetDto
  1775. */
  1776. 'fileModifiedAt': string;
  1777. /**
  1778. *
  1779. * @type {boolean}
  1780. * @memberof ImportAssetDto
  1781. */
  1782. 'isArchived'?: boolean;
  1783. /**
  1784. *
  1785. * @type {boolean}
  1786. * @memberof ImportAssetDto
  1787. */
  1788. 'isExternal'?: boolean;
  1789. /**
  1790. *
  1791. * @type {boolean}
  1792. * @memberof ImportAssetDto
  1793. */
  1794. 'isFavorite': boolean;
  1795. /**
  1796. *
  1797. * @type {boolean}
  1798. * @memberof ImportAssetDto
  1799. */
  1800. 'isOffline'?: boolean;
  1801. /**
  1802. *
  1803. * @type {boolean}
  1804. * @memberof ImportAssetDto
  1805. */
  1806. 'isReadOnly'?: boolean;
  1807. /**
  1808. *
  1809. * @type {boolean}
  1810. * @memberof ImportAssetDto
  1811. */
  1812. 'isVisible'?: boolean;
  1813. /**
  1814. *
  1815. * @type {string}
  1816. * @memberof ImportAssetDto
  1817. */
  1818. 'libraryId'?: string;
  1819. /**
  1820. *
  1821. * @type {string}
  1822. * @memberof ImportAssetDto
  1823. */
  1824. 'sidecarPath'?: string;
  1825. }
  1826. /**
  1827. *
  1828. * @export
  1829. * @enum {string}
  1830. */
  1831. export const JobCommand = {
  1832. Start: 'start',
  1833. Pause: 'pause',
  1834. Resume: 'resume',
  1835. Empty: 'empty'
  1836. } as const;
  1837. export type JobCommand = typeof JobCommand[keyof typeof JobCommand];
  1838. /**
  1839. *
  1840. * @export
  1841. * @interface JobCommandDto
  1842. */
  1843. export interface JobCommandDto {
  1844. /**
  1845. *
  1846. * @type {JobCommand}
  1847. * @memberof JobCommandDto
  1848. */
  1849. 'command': JobCommand;
  1850. /**
  1851. *
  1852. * @type {boolean}
  1853. * @memberof JobCommandDto
  1854. */
  1855. 'force': boolean;
  1856. }
  1857. /**
  1858. *
  1859. * @export
  1860. * @interface JobCountsDto
  1861. */
  1862. export interface JobCountsDto {
  1863. /**
  1864. *
  1865. * @type {number}
  1866. * @memberof JobCountsDto
  1867. */
  1868. 'active': number;
  1869. /**
  1870. *
  1871. * @type {number}
  1872. * @memberof JobCountsDto
  1873. */
  1874. 'completed': number;
  1875. /**
  1876. *
  1877. * @type {number}
  1878. * @memberof JobCountsDto
  1879. */
  1880. 'delayed': number;
  1881. /**
  1882. *
  1883. * @type {number}
  1884. * @memberof JobCountsDto
  1885. */
  1886. 'failed': number;
  1887. /**
  1888. *
  1889. * @type {number}
  1890. * @memberof JobCountsDto
  1891. */
  1892. 'paused': number;
  1893. /**
  1894. *
  1895. * @type {number}
  1896. * @memberof JobCountsDto
  1897. */
  1898. 'waiting': number;
  1899. }
  1900. /**
  1901. *
  1902. * @export
  1903. * @enum {string}
  1904. */
  1905. export const JobName = {
  1906. ThumbnailGeneration: 'thumbnailGeneration',
  1907. MetadataExtraction: 'metadataExtraction',
  1908. VideoConversion: 'videoConversion',
  1909. ObjectTagging: 'objectTagging',
  1910. RecognizeFaces: 'recognizeFaces',
  1911. ClipEncoding: 'clipEncoding',
  1912. BackgroundTask: 'backgroundTask',
  1913. StorageTemplateMigration: 'storageTemplateMigration',
  1914. Migration: 'migration',
  1915. Search: 'search',
  1916. Sidecar: 'sidecar',
  1917. Library: 'library'
  1918. } as const;
  1919. export type JobName = typeof JobName[keyof typeof JobName];
  1920. /**
  1921. *
  1922. * @export
  1923. * @interface JobSettingsDto
  1924. */
  1925. export interface JobSettingsDto {
  1926. /**
  1927. *
  1928. * @type {number}
  1929. * @memberof JobSettingsDto
  1930. */
  1931. 'concurrency': number;
  1932. }
  1933. /**
  1934. *
  1935. * @export
  1936. * @interface JobStatusDto
  1937. */
  1938. export interface JobStatusDto {
  1939. /**
  1940. *
  1941. * @type {JobCountsDto}
  1942. * @memberof JobStatusDto
  1943. */
  1944. 'jobCounts': JobCountsDto;
  1945. /**
  1946. *
  1947. * @type {QueueStatusDto}
  1948. * @memberof JobStatusDto
  1949. */
  1950. 'queueStatus': QueueStatusDto;
  1951. }
  1952. /**
  1953. *
  1954. * @export
  1955. * @interface LibraryResponseDto
  1956. */
  1957. export interface LibraryResponseDto {
  1958. /**
  1959. *
  1960. * @type {number}
  1961. * @memberof LibraryResponseDto
  1962. */
  1963. 'assetCount': number;
  1964. /**
  1965. *
  1966. * @type {string}
  1967. * @memberof LibraryResponseDto
  1968. */
  1969. 'createdAt': string;
  1970. /**
  1971. *
  1972. * @type {Array<string>}
  1973. * @memberof LibraryResponseDto
  1974. */
  1975. 'exclusionPatterns': Array<string>;
  1976. /**
  1977. *
  1978. * @type {string}
  1979. * @memberof LibraryResponseDto
  1980. */
  1981. 'id': string;
  1982. /**
  1983. *
  1984. * @type {Array<string>}
  1985. * @memberof LibraryResponseDto
  1986. */
  1987. 'importPaths': Array<string>;
  1988. /**
  1989. *
  1990. * @type {string}
  1991. * @memberof LibraryResponseDto
  1992. */
  1993. 'name': string;
  1994. /**
  1995. *
  1996. * @type {string}
  1997. * @memberof LibraryResponseDto
  1998. */
  1999. 'ownerId': string;
  2000. /**
  2001. *
  2002. * @type {string}
  2003. * @memberof LibraryResponseDto
  2004. */
  2005. 'refreshedAt': string | null;
  2006. /**
  2007. *
  2008. * @type {LibraryType}
  2009. * @memberof LibraryResponseDto
  2010. */
  2011. 'type': LibraryType;
  2012. /**
  2013. *
  2014. * @type {string}
  2015. * @memberof LibraryResponseDto
  2016. */
  2017. 'updatedAt': string;
  2018. }
  2019. /**
  2020. *
  2021. * @export
  2022. * @interface LibraryStatsResponseDto
  2023. */
  2024. export interface LibraryStatsResponseDto {
  2025. /**
  2026. *
  2027. * @type {number}
  2028. * @memberof LibraryStatsResponseDto
  2029. */
  2030. 'photos': number;
  2031. /**
  2032. *
  2033. * @type {number}
  2034. * @memberof LibraryStatsResponseDto
  2035. */
  2036. 'total': number;
  2037. /**
  2038. *
  2039. * @type {number}
  2040. * @memberof LibraryStatsResponseDto
  2041. */
  2042. 'usage': number;
  2043. /**
  2044. *
  2045. * @type {number}
  2046. * @memberof LibraryStatsResponseDto
  2047. */
  2048. 'videos': number;
  2049. }
  2050. /**
  2051. *
  2052. * @export
  2053. * @enum {string}
  2054. */
  2055. export const LibraryType = {
  2056. Upload: 'UPLOAD',
  2057. External: 'EXTERNAL'
  2058. } as const;
  2059. export type LibraryType = typeof LibraryType[keyof typeof LibraryType];
  2060. /**
  2061. *
  2062. * @export
  2063. * @interface LoginCredentialDto
  2064. */
  2065. export interface LoginCredentialDto {
  2066. /**
  2067. *
  2068. * @type {string}
  2069. * @memberof LoginCredentialDto
  2070. */
  2071. 'email': string;
  2072. /**
  2073. *
  2074. * @type {string}
  2075. * @memberof LoginCredentialDto
  2076. */
  2077. 'password': string;
  2078. }
  2079. /**
  2080. *
  2081. * @export
  2082. * @interface LoginResponseDto
  2083. */
  2084. export interface LoginResponseDto {
  2085. /**
  2086. *
  2087. * @type {string}
  2088. * @memberof LoginResponseDto
  2089. */
  2090. 'accessToken': string;
  2091. /**
  2092. *
  2093. * @type {string}
  2094. * @memberof LoginResponseDto
  2095. */
  2096. 'firstName': string;
  2097. /**
  2098. *
  2099. * @type {boolean}
  2100. * @memberof LoginResponseDto
  2101. */
  2102. 'isAdmin': boolean;
  2103. /**
  2104. *
  2105. * @type {string}
  2106. * @memberof LoginResponseDto
  2107. */
  2108. 'lastName': string;
  2109. /**
  2110. *
  2111. * @type {string}
  2112. * @memberof LoginResponseDto
  2113. */
  2114. 'profileImagePath': string;
  2115. /**
  2116. *
  2117. * @type {boolean}
  2118. * @memberof LoginResponseDto
  2119. */
  2120. 'shouldChangePassword': boolean;
  2121. /**
  2122. *
  2123. * @type {string}
  2124. * @memberof LoginResponseDto
  2125. */
  2126. 'userEmail': string;
  2127. /**
  2128. *
  2129. * @type {string}
  2130. * @memberof LoginResponseDto
  2131. */
  2132. 'userId': string;
  2133. }
  2134. /**
  2135. *
  2136. * @export
  2137. * @interface LogoutResponseDto
  2138. */
  2139. export interface LogoutResponseDto {
  2140. /**
  2141. *
  2142. * @type {string}
  2143. * @memberof LogoutResponseDto
  2144. */
  2145. 'redirectUri': string;
  2146. /**
  2147. *
  2148. * @type {boolean}
  2149. * @memberof LogoutResponseDto
  2150. */
  2151. 'successful': boolean;
  2152. }
  2153. /**
  2154. *
  2155. * @export
  2156. * @interface MapMarkerResponseDto
  2157. */
  2158. export interface MapMarkerResponseDto {
  2159. /**
  2160. *
  2161. * @type {string}
  2162. * @memberof MapMarkerResponseDto
  2163. */
  2164. 'id': string;
  2165. /**
  2166. *
  2167. * @type {number}
  2168. * @memberof MapMarkerResponseDto
  2169. */
  2170. 'lat': number;
  2171. /**
  2172. *
  2173. * @type {number}
  2174. * @memberof MapMarkerResponseDto
  2175. */
  2176. 'lon': number;
  2177. }
  2178. /**
  2179. *
  2180. * @export
  2181. * @interface MemoryLaneResponseDto
  2182. */
  2183. export interface MemoryLaneResponseDto {
  2184. /**
  2185. *
  2186. * @type {Array<AssetResponseDto>}
  2187. * @memberof MemoryLaneResponseDto
  2188. */
  2189. 'assets': Array<AssetResponseDto>;
  2190. /**
  2191. *
  2192. * @type {string}
  2193. * @memberof MemoryLaneResponseDto
  2194. */
  2195. 'title': string;
  2196. }
  2197. /**
  2198. *
  2199. * @export
  2200. * @interface MergePersonDto
  2201. */
  2202. export interface MergePersonDto {
  2203. /**
  2204. *
  2205. * @type {Array<string>}
  2206. * @memberof MergePersonDto
  2207. */
  2208. 'ids': Array<string>;
  2209. }
  2210. /**
  2211. *
  2212. * @export
  2213. * @enum {string}
  2214. */
  2215. export const ModelType = {
  2216. ImageClassification: 'image-classification',
  2217. FacialRecognition: 'facial-recognition',
  2218. Clip: 'clip'
  2219. } as const;
  2220. export type ModelType = typeof ModelType[keyof typeof ModelType];
  2221. /**
  2222. *
  2223. * @export
  2224. * @interface OAuthAuthorizeResponseDto
  2225. */
  2226. export interface OAuthAuthorizeResponseDto {
  2227. /**
  2228. *
  2229. * @type {string}
  2230. * @memberof OAuthAuthorizeResponseDto
  2231. */
  2232. 'url': string;
  2233. }
  2234. /**
  2235. *
  2236. * @export
  2237. * @interface OAuthCallbackDto
  2238. */
  2239. export interface OAuthCallbackDto {
  2240. /**
  2241. *
  2242. * @type {string}
  2243. * @memberof OAuthCallbackDto
  2244. */
  2245. 'url': string;
  2246. }
  2247. /**
  2248. *
  2249. * @export
  2250. * @interface OAuthConfigDto
  2251. */
  2252. export interface OAuthConfigDto {
  2253. /**
  2254. *
  2255. * @type {string}
  2256. * @memberof OAuthConfigDto
  2257. */
  2258. 'redirectUri': string;
  2259. }
  2260. /**
  2261. *
  2262. * @export
  2263. * @interface OAuthConfigResponseDto
  2264. */
  2265. export interface OAuthConfigResponseDto {
  2266. /**
  2267. *
  2268. * @type {boolean}
  2269. * @memberof OAuthConfigResponseDto
  2270. */
  2271. 'autoLaunch'?: boolean;
  2272. /**
  2273. *
  2274. * @type {string}
  2275. * @memberof OAuthConfigResponseDto
  2276. */
  2277. 'buttonText'?: string;
  2278. /**
  2279. *
  2280. * @type {boolean}
  2281. * @memberof OAuthConfigResponseDto
  2282. */
  2283. 'enabled': boolean;
  2284. /**
  2285. *
  2286. * @type {boolean}
  2287. * @memberof OAuthConfigResponseDto
  2288. */
  2289. 'passwordLoginEnabled': boolean;
  2290. /**
  2291. *
  2292. * @type {string}
  2293. * @memberof OAuthConfigResponseDto
  2294. */
  2295. 'url'?: string;
  2296. }
  2297. /**
  2298. *
  2299. * @export
  2300. * @enum {string}
  2301. */
  2302. export const PathEntityType = {
  2303. Asset: 'asset',
  2304. Person: 'person',
  2305. User: 'user'
  2306. } as const;
  2307. export type PathEntityType = typeof PathEntityType[keyof typeof PathEntityType];
  2308. /**
  2309. *
  2310. * @export
  2311. * @enum {string}
  2312. */
  2313. export const PathType = {
  2314. Original: 'original',
  2315. JpegThumbnail: 'jpeg_thumbnail',
  2316. WebpThumbnail: 'webp_thumbnail',
  2317. EncodedVideo: 'encoded_video',
  2318. Sidecar: 'sidecar',
  2319. Face: 'face',
  2320. Profile: 'profile'
  2321. } as const;
  2322. export type PathType = typeof PathType[keyof typeof PathType];
  2323. /**
  2324. *
  2325. * @export
  2326. * @interface PeopleResponseDto
  2327. */
  2328. export interface PeopleResponseDto {
  2329. /**
  2330. *
  2331. * @type {Array<PersonResponseDto>}
  2332. * @memberof PeopleResponseDto
  2333. */
  2334. 'people': Array<PersonResponseDto>;
  2335. /**
  2336. *
  2337. * @type {number}
  2338. * @memberof PeopleResponseDto
  2339. */
  2340. 'total': number;
  2341. /**
  2342. *
  2343. * @type {number}
  2344. * @memberof PeopleResponseDto
  2345. */
  2346. 'visible': number;
  2347. }
  2348. /**
  2349. *
  2350. * @export
  2351. * @interface PeopleUpdateDto
  2352. */
  2353. export interface PeopleUpdateDto {
  2354. /**
  2355. *
  2356. * @type {Array<PeopleUpdateItem>}
  2357. * @memberof PeopleUpdateDto
  2358. */
  2359. 'people': Array<PeopleUpdateItem>;
  2360. }
  2361. /**
  2362. *
  2363. * @export
  2364. * @interface PeopleUpdateItem
  2365. */
  2366. export interface PeopleUpdateItem {
  2367. /**
  2368. * Person date of birth. Note: the mobile app cannot currently set the birth date to null.
  2369. * @type {string}
  2370. * @memberof PeopleUpdateItem
  2371. */
  2372. 'birthDate'?: string | null;
  2373. /**
  2374. * Asset is used to get the feature face thumbnail.
  2375. * @type {string}
  2376. * @memberof PeopleUpdateItem
  2377. */
  2378. 'featureFaceAssetId'?: string;
  2379. /**
  2380. * Person id.
  2381. * @type {string}
  2382. * @memberof PeopleUpdateItem
  2383. */
  2384. 'id': string;
  2385. /**
  2386. * Person visibility
  2387. * @type {boolean}
  2388. * @memberof PeopleUpdateItem
  2389. */
  2390. 'isHidden'?: boolean;
  2391. /**
  2392. * Person name.
  2393. * @type {string}
  2394. * @memberof PeopleUpdateItem
  2395. */
  2396. 'name'?: string;
  2397. }
  2398. /**
  2399. *
  2400. * @export
  2401. * @interface PersonResponseDto
  2402. */
  2403. export interface PersonResponseDto {
  2404. /**
  2405. *
  2406. * @type {string}
  2407. * @memberof PersonResponseDto
  2408. */
  2409. 'birthDate': string | null;
  2410. /**
  2411. *
  2412. * @type {string}
  2413. * @memberof PersonResponseDto
  2414. */
  2415. 'id': string;
  2416. /**
  2417. *
  2418. * @type {boolean}
  2419. * @memberof PersonResponseDto
  2420. */
  2421. 'isHidden': boolean;
  2422. /**
  2423. *
  2424. * @type {string}
  2425. * @memberof PersonResponseDto
  2426. */
  2427. 'name': string;
  2428. /**
  2429. *
  2430. * @type {string}
  2431. * @memberof PersonResponseDto
  2432. */
  2433. 'thumbnailPath': string;
  2434. }
  2435. /**
  2436. *
  2437. * @export
  2438. * @interface PersonStatisticsResponseDto
  2439. */
  2440. export interface PersonStatisticsResponseDto {
  2441. /**
  2442. *
  2443. * @type {number}
  2444. * @memberof PersonStatisticsResponseDto
  2445. */
  2446. 'assets': number;
  2447. }
  2448. /**
  2449. *
  2450. * @export
  2451. * @interface PersonUpdateDto
  2452. */
  2453. export interface PersonUpdateDto {
  2454. /**
  2455. * Person date of birth. Note: the mobile app cannot currently set the birth date to null.
  2456. * @type {string}
  2457. * @memberof PersonUpdateDto
  2458. */
  2459. 'birthDate'?: string | null;
  2460. /**
  2461. * Asset is used to get the feature face thumbnail.
  2462. * @type {string}
  2463. * @memberof PersonUpdateDto
  2464. */
  2465. 'featureFaceAssetId'?: string;
  2466. /**
  2467. * Person visibility
  2468. * @type {boolean}
  2469. * @memberof PersonUpdateDto
  2470. */
  2471. 'isHidden'?: boolean;
  2472. /**
  2473. * Person name.
  2474. * @type {string}
  2475. * @memberof PersonUpdateDto
  2476. */
  2477. 'name'?: string;
  2478. }
  2479. /**
  2480. *
  2481. * @export
  2482. * @interface QueueStatusDto
  2483. */
  2484. export interface QueueStatusDto {
  2485. /**
  2486. *
  2487. * @type {boolean}
  2488. * @memberof QueueStatusDto
  2489. */
  2490. 'isActive': boolean;
  2491. /**
  2492. *
  2493. * @type {boolean}
  2494. * @memberof QueueStatusDto
  2495. */
  2496. 'isPaused': boolean;
  2497. }
  2498. /**
  2499. *
  2500. * @export
  2501. * @enum {string}
  2502. */
  2503. export const ReactionType = {
  2504. Comment: 'comment',
  2505. Like: 'like'
  2506. } as const;
  2507. export type ReactionType = typeof ReactionType[keyof typeof ReactionType];
  2508. /**
  2509. *
  2510. * @export
  2511. * @interface RecognitionConfig
  2512. */
  2513. export interface RecognitionConfig {
  2514. /**
  2515. *
  2516. * @type {boolean}
  2517. * @memberof RecognitionConfig
  2518. */
  2519. 'enabled': boolean;
  2520. /**
  2521. *
  2522. * @type {number}
  2523. * @memberof RecognitionConfig
  2524. */
  2525. 'maxDistance': number;
  2526. /**
  2527. *
  2528. * @type {number}
  2529. * @memberof RecognitionConfig
  2530. */
  2531. 'minFaces': number;
  2532. /**
  2533. *
  2534. * @type {number}
  2535. * @memberof RecognitionConfig
  2536. */
  2537. 'minScore': number;
  2538. /**
  2539. *
  2540. * @type {string}
  2541. * @memberof RecognitionConfig
  2542. */
  2543. 'modelName': string;
  2544. /**
  2545. *
  2546. * @type {ModelType}
  2547. * @memberof RecognitionConfig
  2548. */
  2549. 'modelType'?: ModelType;
  2550. }
  2551. /**
  2552. *
  2553. * @export
  2554. * @interface ScanLibraryDto
  2555. */
  2556. export interface ScanLibraryDto {
  2557. /**
  2558. *
  2559. * @type {boolean}
  2560. * @memberof ScanLibraryDto
  2561. */
  2562. 'refreshAllFiles'?: boolean;
  2563. /**
  2564. *
  2565. * @type {boolean}
  2566. * @memberof ScanLibraryDto
  2567. */
  2568. 'refreshModifiedFiles'?: boolean;
  2569. }
  2570. /**
  2571. *
  2572. * @export
  2573. * @interface SearchAlbumResponseDto
  2574. */
  2575. export interface SearchAlbumResponseDto {
  2576. /**
  2577. *
  2578. * @type {number}
  2579. * @memberof SearchAlbumResponseDto
  2580. */
  2581. 'count': number;
  2582. /**
  2583. *
  2584. * @type {Array<SearchFacetResponseDto>}
  2585. * @memberof SearchAlbumResponseDto
  2586. */
  2587. 'facets': Array<SearchFacetResponseDto>;
  2588. /**
  2589. *
  2590. * @type {Array<AlbumResponseDto>}
  2591. * @memberof SearchAlbumResponseDto
  2592. */
  2593. 'items': Array<AlbumResponseDto>;
  2594. /**
  2595. *
  2596. * @type {number}
  2597. * @memberof SearchAlbumResponseDto
  2598. */
  2599. 'total': number;
  2600. }
  2601. /**
  2602. *
  2603. * @export
  2604. * @interface SearchAssetDto
  2605. */
  2606. export interface SearchAssetDto {
  2607. /**
  2608. *
  2609. * @type {string}
  2610. * @memberof SearchAssetDto
  2611. */
  2612. 'searchTerm': string;
  2613. }
  2614. /**
  2615. *
  2616. * @export
  2617. * @interface SearchAssetResponseDto
  2618. */
  2619. export interface SearchAssetResponseDto {
  2620. /**
  2621. *
  2622. * @type {number}
  2623. * @memberof SearchAssetResponseDto
  2624. */
  2625. 'count': number;
  2626. /**
  2627. *
  2628. * @type {Array<SearchFacetResponseDto>}
  2629. * @memberof SearchAssetResponseDto
  2630. */
  2631. 'facets': Array<SearchFacetResponseDto>;
  2632. /**
  2633. *
  2634. * @type {Array<AssetResponseDto>}
  2635. * @memberof SearchAssetResponseDto
  2636. */
  2637. 'items': Array<AssetResponseDto>;
  2638. /**
  2639. *
  2640. * @type {number}
  2641. * @memberof SearchAssetResponseDto
  2642. */
  2643. 'total': number;
  2644. }
  2645. /**
  2646. *
  2647. * @export
  2648. * @interface SearchExploreItem
  2649. */
  2650. export interface SearchExploreItem {
  2651. /**
  2652. *
  2653. * @type {AssetResponseDto}
  2654. * @memberof SearchExploreItem
  2655. */
  2656. 'data': AssetResponseDto;
  2657. /**
  2658. *
  2659. * @type {string}
  2660. * @memberof SearchExploreItem
  2661. */
  2662. 'value': string;
  2663. }
  2664. /**
  2665. *
  2666. * @export
  2667. * @interface SearchExploreResponseDto
  2668. */
  2669. export interface SearchExploreResponseDto {
  2670. /**
  2671. *
  2672. * @type {string}
  2673. * @memberof SearchExploreResponseDto
  2674. */
  2675. 'fieldName': string;
  2676. /**
  2677. *
  2678. * @type {Array<SearchExploreItem>}
  2679. * @memberof SearchExploreResponseDto
  2680. */
  2681. 'items': Array<SearchExploreItem>;
  2682. }
  2683. /**
  2684. *
  2685. * @export
  2686. * @interface SearchFacetCountResponseDto
  2687. */
  2688. export interface SearchFacetCountResponseDto {
  2689. /**
  2690. *
  2691. * @type {number}
  2692. * @memberof SearchFacetCountResponseDto
  2693. */
  2694. 'count': number;
  2695. /**
  2696. *
  2697. * @type {string}
  2698. * @memberof SearchFacetCountResponseDto
  2699. */
  2700. 'value': string;
  2701. }
  2702. /**
  2703. *
  2704. * @export
  2705. * @interface SearchFacetResponseDto
  2706. */
  2707. export interface SearchFacetResponseDto {
  2708. /**
  2709. *
  2710. * @type {Array<SearchFacetCountResponseDto>}
  2711. * @memberof SearchFacetResponseDto
  2712. */
  2713. 'counts': Array<SearchFacetCountResponseDto>;
  2714. /**
  2715. *
  2716. * @type {string}
  2717. * @memberof SearchFacetResponseDto
  2718. */
  2719. 'fieldName': string;
  2720. }
  2721. /**
  2722. *
  2723. * @export
  2724. * @interface SearchResponseDto
  2725. */
  2726. export interface SearchResponseDto {
  2727. /**
  2728. *
  2729. * @type {SearchAlbumResponseDto}
  2730. * @memberof SearchResponseDto
  2731. */
  2732. 'albums': SearchAlbumResponseDto;
  2733. /**
  2734. *
  2735. * @type {SearchAssetResponseDto}
  2736. * @memberof SearchResponseDto
  2737. */
  2738. 'assets': SearchAssetResponseDto;
  2739. }
  2740. /**
  2741. *
  2742. * @export
  2743. * @interface ServerConfigDto
  2744. */
  2745. export interface ServerConfigDto {
  2746. /**
  2747. *
  2748. * @type {boolean}
  2749. * @memberof ServerConfigDto
  2750. */
  2751. 'isInitialized': boolean;
  2752. /**
  2753. *
  2754. * @type {string}
  2755. * @memberof ServerConfigDto
  2756. */
  2757. 'loginPageMessage': string;
  2758. /**
  2759. *
  2760. * @type {string}
  2761. * @memberof ServerConfigDto
  2762. */
  2763. 'mapTileUrl': string;
  2764. /**
  2765. *
  2766. * @type {string}
  2767. * @memberof ServerConfigDto
  2768. */
  2769. 'oauthButtonText': string;
  2770. /**
  2771. *
  2772. * @type {number}
  2773. * @memberof ServerConfigDto
  2774. */
  2775. 'trashDays': number;
  2776. }
  2777. /**
  2778. *
  2779. * @export
  2780. * @interface ServerFeaturesDto
  2781. */
  2782. export interface ServerFeaturesDto {
  2783. /**
  2784. *
  2785. * @type {boolean}
  2786. * @memberof ServerFeaturesDto
  2787. */
  2788. 'clipEncode': boolean;
  2789. /**
  2790. *
  2791. * @type {boolean}
  2792. * @memberof ServerFeaturesDto
  2793. */
  2794. 'configFile': boolean;
  2795. /**
  2796. *
  2797. * @type {boolean}
  2798. * @memberof ServerFeaturesDto
  2799. */
  2800. 'facialRecognition': boolean;
  2801. /**
  2802. *
  2803. * @type {boolean}
  2804. * @memberof ServerFeaturesDto
  2805. */
  2806. 'map': boolean;
  2807. /**
  2808. *
  2809. * @type {boolean}
  2810. * @memberof ServerFeaturesDto
  2811. */
  2812. 'oauth': boolean;
  2813. /**
  2814. *
  2815. * @type {boolean}
  2816. * @memberof ServerFeaturesDto
  2817. */
  2818. 'oauthAutoLaunch': boolean;
  2819. /**
  2820. *
  2821. * @type {boolean}
  2822. * @memberof ServerFeaturesDto
  2823. */
  2824. 'passwordLogin': boolean;
  2825. /**
  2826. *
  2827. * @type {boolean}
  2828. * @memberof ServerFeaturesDto
  2829. */
  2830. 'reverseGeocoding': boolean;
  2831. /**
  2832. *
  2833. * @type {boolean}
  2834. * @memberof ServerFeaturesDto
  2835. */
  2836. 'search': boolean;
  2837. /**
  2838. *
  2839. * @type {boolean}
  2840. * @memberof ServerFeaturesDto
  2841. */
  2842. 'sidecar': boolean;
  2843. /**
  2844. *
  2845. * @type {boolean}
  2846. * @memberof ServerFeaturesDto
  2847. */
  2848. 'tagImage': boolean;
  2849. /**
  2850. *
  2851. * @type {boolean}
  2852. * @memberof ServerFeaturesDto
  2853. */
  2854. 'trash': boolean;
  2855. }
  2856. /**
  2857. *
  2858. * @export
  2859. * @interface ServerInfoResponseDto
  2860. */
  2861. export interface ServerInfoResponseDto {
  2862. /**
  2863. *
  2864. * @type {string}
  2865. * @memberof ServerInfoResponseDto
  2866. */
  2867. 'diskAvailable': string;
  2868. /**
  2869. *
  2870. * @type {number}
  2871. * @memberof ServerInfoResponseDto
  2872. */
  2873. 'diskAvailableRaw': number;
  2874. /**
  2875. *
  2876. * @type {string}
  2877. * @memberof ServerInfoResponseDto
  2878. */
  2879. 'diskSize': string;
  2880. /**
  2881. *
  2882. * @type {number}
  2883. * @memberof ServerInfoResponseDto
  2884. */
  2885. 'diskSizeRaw': number;
  2886. /**
  2887. *
  2888. * @type {number}
  2889. * @memberof ServerInfoResponseDto
  2890. */
  2891. 'diskUsagePercentage': number;
  2892. /**
  2893. *
  2894. * @type {string}
  2895. * @memberof ServerInfoResponseDto
  2896. */
  2897. 'diskUse': string;
  2898. /**
  2899. *
  2900. * @type {number}
  2901. * @memberof ServerInfoResponseDto
  2902. */
  2903. 'diskUseRaw': number;
  2904. }
  2905. /**
  2906. *
  2907. * @export
  2908. * @interface ServerMediaTypesResponseDto
  2909. */
  2910. export interface ServerMediaTypesResponseDto {
  2911. /**
  2912. *
  2913. * @type {Array<string>}
  2914. * @memberof ServerMediaTypesResponseDto
  2915. */
  2916. 'image': Array<string>;
  2917. /**
  2918. *
  2919. * @type {Array<string>}
  2920. * @memberof ServerMediaTypesResponseDto
  2921. */
  2922. 'sidecar': Array<string>;
  2923. /**
  2924. *
  2925. * @type {Array<string>}
  2926. * @memberof ServerMediaTypesResponseDto
  2927. */
  2928. 'video': Array<string>;
  2929. }
  2930. /**
  2931. *
  2932. * @export
  2933. * @interface ServerPingResponse
  2934. */
  2935. export interface ServerPingResponse {
  2936. /**
  2937. *
  2938. * @type {string}
  2939. * @memberof ServerPingResponse
  2940. */
  2941. 'res': string;
  2942. }
  2943. /**
  2944. *
  2945. * @export
  2946. * @interface ServerStatsResponseDto
  2947. */
  2948. export interface ServerStatsResponseDto {
  2949. /**
  2950. *
  2951. * @type {number}
  2952. * @memberof ServerStatsResponseDto
  2953. */
  2954. 'photos': number;
  2955. /**
  2956. *
  2957. * @type {number}
  2958. * @memberof ServerStatsResponseDto
  2959. */
  2960. 'usage': number;
  2961. /**
  2962. *
  2963. * @type {Array<UsageByUserDto>}
  2964. * @memberof ServerStatsResponseDto
  2965. */
  2966. 'usageByUser': Array<UsageByUserDto>;
  2967. /**
  2968. *
  2969. * @type {number}
  2970. * @memberof ServerStatsResponseDto
  2971. */
  2972. 'videos': number;
  2973. }
  2974. /**
  2975. *
  2976. * @export
  2977. * @interface ServerThemeDto
  2978. */
  2979. export interface ServerThemeDto {
  2980. /**
  2981. *
  2982. * @type {string}
  2983. * @memberof ServerThemeDto
  2984. */
  2985. 'customCss': string;
  2986. }
  2987. /**
  2988. *
  2989. * @export
  2990. * @interface ServerVersionResponseDto
  2991. */
  2992. export interface ServerVersionResponseDto {
  2993. /**
  2994. *
  2995. * @type {number}
  2996. * @memberof ServerVersionResponseDto
  2997. */
  2998. 'major': number;
  2999. /**
  3000. *
  3001. * @type {number}
  3002. * @memberof ServerVersionResponseDto
  3003. */
  3004. 'minor': number;
  3005. /**
  3006. *
  3007. * @type {number}
  3008. * @memberof ServerVersionResponseDto
  3009. */
  3010. 'patch': number;
  3011. }
  3012. /**
  3013. *
  3014. * @export
  3015. * @interface SharedLinkCreateDto
  3016. */
  3017. export interface SharedLinkCreateDto {
  3018. /**
  3019. *
  3020. * @type {string}
  3021. * @memberof SharedLinkCreateDto
  3022. */
  3023. 'albumId'?: string;
  3024. /**
  3025. *
  3026. * @type {boolean}
  3027. * @memberof SharedLinkCreateDto
  3028. */
  3029. 'allowDownload'?: boolean;
  3030. /**
  3031. *
  3032. * @type {boolean}
  3033. * @memberof SharedLinkCreateDto
  3034. */
  3035. 'allowUpload'?: boolean;
  3036. /**
  3037. *
  3038. * @type {Array<string>}
  3039. * @memberof SharedLinkCreateDto
  3040. */
  3041. 'assetIds'?: Array<string>;
  3042. /**
  3043. *
  3044. * @type {string}
  3045. * @memberof SharedLinkCreateDto
  3046. */
  3047. 'description'?: string;
  3048. /**
  3049. *
  3050. * @type {string}
  3051. * @memberof SharedLinkCreateDto
  3052. */
  3053. 'expiresAt'?: string | null;
  3054. /**
  3055. *
  3056. * @type {string}
  3057. * @memberof SharedLinkCreateDto
  3058. */
  3059. 'password'?: string;
  3060. /**
  3061. *
  3062. * @type {boolean}
  3063. * @memberof SharedLinkCreateDto
  3064. */
  3065. 'showMetadata'?: boolean;
  3066. /**
  3067. *
  3068. * @type {SharedLinkType}
  3069. * @memberof SharedLinkCreateDto
  3070. */
  3071. 'type': SharedLinkType;
  3072. }
  3073. /**
  3074. *
  3075. * @export
  3076. * @interface SharedLinkEditDto
  3077. */
  3078. export interface SharedLinkEditDto {
  3079. /**
  3080. *
  3081. * @type {boolean}
  3082. * @memberof SharedLinkEditDto
  3083. */
  3084. 'allowDownload'?: boolean;
  3085. /**
  3086. *
  3087. * @type {boolean}
  3088. * @memberof SharedLinkEditDto
  3089. */
  3090. 'allowUpload'?: boolean;
  3091. /**
  3092. * 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.
  3093. * @type {boolean}
  3094. * @memberof SharedLinkEditDto
  3095. */
  3096. 'changeExpiryTime'?: boolean;
  3097. /**
  3098. *
  3099. * @type {string}
  3100. * @memberof SharedLinkEditDto
  3101. */
  3102. 'description'?: string;
  3103. /**
  3104. *
  3105. * @type {string}
  3106. * @memberof SharedLinkEditDto
  3107. */
  3108. 'expiresAt'?: string | null;
  3109. /**
  3110. *
  3111. * @type {string}
  3112. * @memberof SharedLinkEditDto
  3113. */
  3114. 'password'?: string;
  3115. /**
  3116. *
  3117. * @type {boolean}
  3118. * @memberof SharedLinkEditDto
  3119. */
  3120. 'showMetadata'?: boolean;
  3121. }
  3122. /**
  3123. *
  3124. * @export
  3125. * @interface SharedLinkResponseDto
  3126. */
  3127. export interface SharedLinkResponseDto {
  3128. /**
  3129. *
  3130. * @type {AlbumResponseDto}
  3131. * @memberof SharedLinkResponseDto
  3132. */
  3133. 'album'?: AlbumResponseDto;
  3134. /**
  3135. *
  3136. * @type {boolean}
  3137. * @memberof SharedLinkResponseDto
  3138. */
  3139. 'allowDownload': boolean;
  3140. /**
  3141. *
  3142. * @type {boolean}
  3143. * @memberof SharedLinkResponseDto
  3144. */
  3145. 'allowUpload': boolean;
  3146. /**
  3147. *
  3148. * @type {Array<AssetResponseDto>}
  3149. * @memberof SharedLinkResponseDto
  3150. */
  3151. 'assets': Array<AssetResponseDto>;
  3152. /**
  3153. *
  3154. * @type {string}
  3155. * @memberof SharedLinkResponseDto
  3156. */
  3157. 'createdAt': string;
  3158. /**
  3159. *
  3160. * @type {string}
  3161. * @memberof SharedLinkResponseDto
  3162. */
  3163. 'description': string | null;
  3164. /**
  3165. *
  3166. * @type {string}
  3167. * @memberof SharedLinkResponseDto
  3168. */
  3169. 'expiresAt': string | null;
  3170. /**
  3171. *
  3172. * @type {string}
  3173. * @memberof SharedLinkResponseDto
  3174. */
  3175. 'id': string;
  3176. /**
  3177. *
  3178. * @type {string}
  3179. * @memberof SharedLinkResponseDto
  3180. */
  3181. 'key': string;
  3182. /**
  3183. *
  3184. * @type {string}
  3185. * @memberof SharedLinkResponseDto
  3186. */
  3187. 'password': string | null;
  3188. /**
  3189. *
  3190. * @type {boolean}
  3191. * @memberof SharedLinkResponseDto
  3192. */
  3193. 'showMetadata': boolean;
  3194. /**
  3195. *
  3196. * @type {string}
  3197. * @memberof SharedLinkResponseDto
  3198. */
  3199. 'token'?: string | null;
  3200. /**
  3201. *
  3202. * @type {SharedLinkType}
  3203. * @memberof SharedLinkResponseDto
  3204. */
  3205. 'type': SharedLinkType;
  3206. /**
  3207. *
  3208. * @type {string}
  3209. * @memberof SharedLinkResponseDto
  3210. */
  3211. 'userId': string;
  3212. }
  3213. /**
  3214. *
  3215. * @export
  3216. * @enum {string}
  3217. */
  3218. export const SharedLinkType = {
  3219. Album: 'ALBUM',
  3220. Individual: 'INDIVIDUAL'
  3221. } as const;
  3222. export type SharedLinkType = typeof SharedLinkType[keyof typeof SharedLinkType];
  3223. /**
  3224. *
  3225. * @export
  3226. * @interface SignUpDto
  3227. */
  3228. export interface SignUpDto {
  3229. /**
  3230. *
  3231. * @type {string}
  3232. * @memberof SignUpDto
  3233. */
  3234. 'email': string;
  3235. /**
  3236. *
  3237. * @type {string}
  3238. * @memberof SignUpDto
  3239. */
  3240. 'firstName': string;
  3241. /**
  3242. *
  3243. * @type {string}
  3244. * @memberof SignUpDto
  3245. */
  3246. 'lastName': string;
  3247. /**
  3248. *
  3249. * @type {string}
  3250. * @memberof SignUpDto
  3251. */
  3252. 'password': string;
  3253. }
  3254. /**
  3255. *
  3256. * @export
  3257. * @interface SmartInfoResponseDto
  3258. */
  3259. export interface SmartInfoResponseDto {
  3260. /**
  3261. *
  3262. * @type {Array<string>}
  3263. * @memberof SmartInfoResponseDto
  3264. */
  3265. 'objects'?: Array<string> | null;
  3266. /**
  3267. *
  3268. * @type {Array<string>}
  3269. * @memberof SmartInfoResponseDto
  3270. */
  3271. 'tags'?: Array<string> | null;
  3272. }
  3273. /**
  3274. *
  3275. * @export
  3276. * @interface SystemConfigDto
  3277. */
  3278. export interface SystemConfigDto {
  3279. /**
  3280. *
  3281. * @type {SystemConfigFFmpegDto}
  3282. * @memberof SystemConfigDto
  3283. */
  3284. 'ffmpeg': SystemConfigFFmpegDto;
  3285. /**
  3286. *
  3287. * @type {SystemConfigJobDto}
  3288. * @memberof SystemConfigDto
  3289. */
  3290. 'job': SystemConfigJobDto;
  3291. /**
  3292. *
  3293. * @type {SystemConfigLibraryDto}
  3294. * @memberof SystemConfigDto
  3295. */
  3296. 'library': SystemConfigLibraryDto;
  3297. /**
  3298. *
  3299. * @type {SystemConfigMachineLearningDto}
  3300. * @memberof SystemConfigDto
  3301. */
  3302. 'machineLearning': SystemConfigMachineLearningDto;
  3303. /**
  3304. *
  3305. * @type {SystemConfigMapDto}
  3306. * @memberof SystemConfigDto
  3307. */
  3308. 'map': SystemConfigMapDto;
  3309. /**
  3310. *
  3311. * @type {SystemConfigNewVersionCheckDto}
  3312. * @memberof SystemConfigDto
  3313. */
  3314. 'newVersionCheck': SystemConfigNewVersionCheckDto;
  3315. /**
  3316. *
  3317. * @type {SystemConfigOAuthDto}
  3318. * @memberof SystemConfigDto
  3319. */
  3320. 'oauth': SystemConfigOAuthDto;
  3321. /**
  3322. *
  3323. * @type {SystemConfigPasswordLoginDto}
  3324. * @memberof SystemConfigDto
  3325. */
  3326. 'passwordLogin': SystemConfigPasswordLoginDto;
  3327. /**
  3328. *
  3329. * @type {SystemConfigReverseGeocodingDto}
  3330. * @memberof SystemConfigDto
  3331. */
  3332. 'reverseGeocoding': SystemConfigReverseGeocodingDto;
  3333. /**
  3334. *
  3335. * @type {SystemConfigStorageTemplateDto}
  3336. * @memberof SystemConfigDto
  3337. */
  3338. 'storageTemplate': SystemConfigStorageTemplateDto;
  3339. /**
  3340. *
  3341. * @type {SystemConfigThemeDto}
  3342. * @memberof SystemConfigDto
  3343. */
  3344. 'theme': SystemConfigThemeDto;
  3345. /**
  3346. *
  3347. * @type {SystemConfigThumbnailDto}
  3348. * @memberof SystemConfigDto
  3349. */
  3350. 'thumbnail': SystemConfigThumbnailDto;
  3351. /**
  3352. *
  3353. * @type {SystemConfigTrashDto}
  3354. * @memberof SystemConfigDto
  3355. */
  3356. 'trash': SystemConfigTrashDto;
  3357. }
  3358. /**
  3359. *
  3360. * @export
  3361. * @interface SystemConfigFFmpegDto
  3362. */
  3363. export interface SystemConfigFFmpegDto {
  3364. /**
  3365. *
  3366. * @type {TranscodeHWAccel}
  3367. * @memberof SystemConfigFFmpegDto
  3368. */
  3369. 'accel': TranscodeHWAccel;
  3370. /**
  3371. *
  3372. * @type {number}
  3373. * @memberof SystemConfigFFmpegDto
  3374. */
  3375. 'bframes': number;
  3376. /**
  3377. *
  3378. * @type {CQMode}
  3379. * @memberof SystemConfigFFmpegDto
  3380. */
  3381. 'cqMode': CQMode;
  3382. /**
  3383. *
  3384. * @type {number}
  3385. * @memberof SystemConfigFFmpegDto
  3386. */
  3387. 'crf': number;
  3388. /**
  3389. *
  3390. * @type {number}
  3391. * @memberof SystemConfigFFmpegDto
  3392. */
  3393. 'gopSize': number;
  3394. /**
  3395. *
  3396. * @type {string}
  3397. * @memberof SystemConfigFFmpegDto
  3398. */
  3399. 'maxBitrate': string;
  3400. /**
  3401. *
  3402. * @type {number}
  3403. * @memberof SystemConfigFFmpegDto
  3404. */
  3405. 'npl': number;
  3406. /**
  3407. *
  3408. * @type {string}
  3409. * @memberof SystemConfigFFmpegDto
  3410. */
  3411. 'preset': string;
  3412. /**
  3413. *
  3414. * @type {number}
  3415. * @memberof SystemConfigFFmpegDto
  3416. */
  3417. 'refs': number;
  3418. /**
  3419. *
  3420. * @type {AudioCodec}
  3421. * @memberof SystemConfigFFmpegDto
  3422. */
  3423. 'targetAudioCodec': AudioCodec;
  3424. /**
  3425. *
  3426. * @type {string}
  3427. * @memberof SystemConfigFFmpegDto
  3428. */
  3429. 'targetResolution': string;
  3430. /**
  3431. *
  3432. * @type {VideoCodec}
  3433. * @memberof SystemConfigFFmpegDto
  3434. */
  3435. 'targetVideoCodec': VideoCodec;
  3436. /**
  3437. *
  3438. * @type {boolean}
  3439. * @memberof SystemConfigFFmpegDto
  3440. */
  3441. 'temporalAQ': boolean;
  3442. /**
  3443. *
  3444. * @type {number}
  3445. * @memberof SystemConfigFFmpegDto
  3446. */
  3447. 'threads': number;
  3448. /**
  3449. *
  3450. * @type {ToneMapping}
  3451. * @memberof SystemConfigFFmpegDto
  3452. */
  3453. 'tonemap': ToneMapping;
  3454. /**
  3455. *
  3456. * @type {TranscodePolicy}
  3457. * @memberof SystemConfigFFmpegDto
  3458. */
  3459. 'transcode': TranscodePolicy;
  3460. /**
  3461. *
  3462. * @type {boolean}
  3463. * @memberof SystemConfigFFmpegDto
  3464. */
  3465. 'twoPass': boolean;
  3466. }
  3467. /**
  3468. *
  3469. * @export
  3470. * @interface SystemConfigJobDto
  3471. */
  3472. export interface SystemConfigJobDto {
  3473. /**
  3474. *
  3475. * @type {JobSettingsDto}
  3476. * @memberof SystemConfigJobDto
  3477. */
  3478. 'backgroundTask': JobSettingsDto;
  3479. /**
  3480. *
  3481. * @type {JobSettingsDto}
  3482. * @memberof SystemConfigJobDto
  3483. */
  3484. 'clipEncoding': JobSettingsDto;
  3485. /**
  3486. *
  3487. * @type {JobSettingsDto}
  3488. * @memberof SystemConfigJobDto
  3489. */
  3490. 'library': JobSettingsDto;
  3491. /**
  3492. *
  3493. * @type {JobSettingsDto}
  3494. * @memberof SystemConfigJobDto
  3495. */
  3496. 'metadataExtraction': JobSettingsDto;
  3497. /**
  3498. *
  3499. * @type {JobSettingsDto}
  3500. * @memberof SystemConfigJobDto
  3501. */
  3502. 'migration': JobSettingsDto;
  3503. /**
  3504. *
  3505. * @type {JobSettingsDto}
  3506. * @memberof SystemConfigJobDto
  3507. */
  3508. 'objectTagging': JobSettingsDto;
  3509. /**
  3510. *
  3511. * @type {JobSettingsDto}
  3512. * @memberof SystemConfigJobDto
  3513. */
  3514. 'recognizeFaces': JobSettingsDto;
  3515. /**
  3516. *
  3517. * @type {JobSettingsDto}
  3518. * @memberof SystemConfigJobDto
  3519. */
  3520. 'search': JobSettingsDto;
  3521. /**
  3522. *
  3523. * @type {JobSettingsDto}
  3524. * @memberof SystemConfigJobDto
  3525. */
  3526. 'sidecar': JobSettingsDto;
  3527. /**
  3528. *
  3529. * @type {JobSettingsDto}
  3530. * @memberof SystemConfigJobDto
  3531. */
  3532. 'storageTemplateMigration': JobSettingsDto;
  3533. /**
  3534. *
  3535. * @type {JobSettingsDto}
  3536. * @memberof SystemConfigJobDto
  3537. */
  3538. 'thumbnailGeneration': JobSettingsDto;
  3539. /**
  3540. *
  3541. * @type {JobSettingsDto}
  3542. * @memberof SystemConfigJobDto
  3543. */
  3544. 'videoConversion': JobSettingsDto;
  3545. }
  3546. /**
  3547. *
  3548. * @export
  3549. * @interface SystemConfigLibraryDto
  3550. */
  3551. export interface SystemConfigLibraryDto {
  3552. /**
  3553. *
  3554. * @type {SystemConfigLibraryScanDto}
  3555. * @memberof SystemConfigLibraryDto
  3556. */
  3557. 'scan': SystemConfigLibraryScanDto;
  3558. }
  3559. /**
  3560. *
  3561. * @export
  3562. * @interface SystemConfigLibraryScanDto
  3563. */
  3564. export interface SystemConfigLibraryScanDto {
  3565. /**
  3566. *
  3567. * @type {string}
  3568. * @memberof SystemConfigLibraryScanDto
  3569. */
  3570. 'cronExpression': string;
  3571. /**
  3572. *
  3573. * @type {boolean}
  3574. * @memberof SystemConfigLibraryScanDto
  3575. */
  3576. 'enabled': boolean;
  3577. }
  3578. /**
  3579. *
  3580. * @export
  3581. * @interface SystemConfigMachineLearningDto
  3582. */
  3583. export interface SystemConfigMachineLearningDto {
  3584. /**
  3585. *
  3586. * @type {ClassificationConfig}
  3587. * @memberof SystemConfigMachineLearningDto
  3588. */
  3589. 'classification': ClassificationConfig;
  3590. /**
  3591. *
  3592. * @type {CLIPConfig}
  3593. * @memberof SystemConfigMachineLearningDto
  3594. */
  3595. 'clip': CLIPConfig;
  3596. /**
  3597. *
  3598. * @type {boolean}
  3599. * @memberof SystemConfigMachineLearningDto
  3600. */
  3601. 'enabled': boolean;
  3602. /**
  3603. *
  3604. * @type {RecognitionConfig}
  3605. * @memberof SystemConfigMachineLearningDto
  3606. */
  3607. 'facialRecognition': RecognitionConfig;
  3608. /**
  3609. *
  3610. * @type {string}
  3611. * @memberof SystemConfigMachineLearningDto
  3612. */
  3613. 'url': string;
  3614. }
  3615. /**
  3616. *
  3617. * @export
  3618. * @interface SystemConfigMapDto
  3619. */
  3620. export interface SystemConfigMapDto {
  3621. /**
  3622. *
  3623. * @type {boolean}
  3624. * @memberof SystemConfigMapDto
  3625. */
  3626. 'enabled': boolean;
  3627. /**
  3628. *
  3629. * @type {string}
  3630. * @memberof SystemConfigMapDto
  3631. */
  3632. 'tileUrl': string;
  3633. }
  3634. /**
  3635. *
  3636. * @export
  3637. * @interface SystemConfigNewVersionCheckDto
  3638. */
  3639. export interface SystemConfigNewVersionCheckDto {
  3640. /**
  3641. *
  3642. * @type {boolean}
  3643. * @memberof SystemConfigNewVersionCheckDto
  3644. */
  3645. 'enabled': boolean;
  3646. }
  3647. /**
  3648. *
  3649. * @export
  3650. * @interface SystemConfigOAuthDto
  3651. */
  3652. export interface SystemConfigOAuthDto {
  3653. /**
  3654. *
  3655. * @type {boolean}
  3656. * @memberof SystemConfigOAuthDto
  3657. */
  3658. 'autoLaunch': boolean;
  3659. /**
  3660. *
  3661. * @type {boolean}
  3662. * @memberof SystemConfigOAuthDto
  3663. */
  3664. 'autoRegister': boolean;
  3665. /**
  3666. *
  3667. * @type {string}
  3668. * @memberof SystemConfigOAuthDto
  3669. */
  3670. 'buttonText': string;
  3671. /**
  3672. *
  3673. * @type {string}
  3674. * @memberof SystemConfigOAuthDto
  3675. */
  3676. 'clientId': string;
  3677. /**
  3678. *
  3679. * @type {string}
  3680. * @memberof SystemConfigOAuthDto
  3681. */
  3682. 'clientSecret': string;
  3683. /**
  3684. *
  3685. * @type {boolean}
  3686. * @memberof SystemConfigOAuthDto
  3687. */
  3688. 'enabled': boolean;
  3689. /**
  3690. *
  3691. * @type {string}
  3692. * @memberof SystemConfigOAuthDto
  3693. */
  3694. 'issuerUrl': string;
  3695. /**
  3696. *
  3697. * @type {boolean}
  3698. * @memberof SystemConfigOAuthDto
  3699. */
  3700. 'mobileOverrideEnabled': boolean;
  3701. /**
  3702. *
  3703. * @type {string}
  3704. * @memberof SystemConfigOAuthDto
  3705. */
  3706. 'mobileRedirectUri': string;
  3707. /**
  3708. *
  3709. * @type {string}
  3710. * @memberof SystemConfigOAuthDto
  3711. */
  3712. 'scope': string;
  3713. /**
  3714. *
  3715. * @type {string}
  3716. * @memberof SystemConfigOAuthDto
  3717. */
  3718. 'storageLabelClaim': string;
  3719. }
  3720. /**
  3721. *
  3722. * @export
  3723. * @interface SystemConfigPasswordLoginDto
  3724. */
  3725. export interface SystemConfigPasswordLoginDto {
  3726. /**
  3727. *
  3728. * @type {boolean}
  3729. * @memberof SystemConfigPasswordLoginDto
  3730. */
  3731. 'enabled': boolean;
  3732. }
  3733. /**
  3734. *
  3735. * @export
  3736. * @interface SystemConfigReverseGeocodingDto
  3737. */
  3738. export interface SystemConfigReverseGeocodingDto {
  3739. /**
  3740. *
  3741. * @type {CitiesFile}
  3742. * @memberof SystemConfigReverseGeocodingDto
  3743. */
  3744. 'citiesFileOverride': CitiesFile;
  3745. /**
  3746. *
  3747. * @type {boolean}
  3748. * @memberof SystemConfigReverseGeocodingDto
  3749. */
  3750. 'enabled': boolean;
  3751. }
  3752. /**
  3753. *
  3754. * @export
  3755. * @interface SystemConfigStorageTemplateDto
  3756. */
  3757. export interface SystemConfigStorageTemplateDto {
  3758. /**
  3759. *
  3760. * @type {string}
  3761. * @memberof SystemConfigStorageTemplateDto
  3762. */
  3763. 'template': string;
  3764. }
  3765. /**
  3766. *
  3767. * @export
  3768. * @interface SystemConfigTemplateStorageOptionDto
  3769. */
  3770. export interface SystemConfigTemplateStorageOptionDto {
  3771. /**
  3772. *
  3773. * @type {Array<string>}
  3774. * @memberof SystemConfigTemplateStorageOptionDto
  3775. */
  3776. 'dayOptions': Array<string>;
  3777. /**
  3778. *
  3779. * @type {Array<string>}
  3780. * @memberof SystemConfigTemplateStorageOptionDto
  3781. */
  3782. 'hourOptions': Array<string>;
  3783. /**
  3784. *
  3785. * @type {Array<string>}
  3786. * @memberof SystemConfigTemplateStorageOptionDto
  3787. */
  3788. 'minuteOptions': Array<string>;
  3789. /**
  3790. *
  3791. * @type {Array<string>}
  3792. * @memberof SystemConfigTemplateStorageOptionDto
  3793. */
  3794. 'monthOptions': Array<string>;
  3795. /**
  3796. *
  3797. * @type {Array<string>}
  3798. * @memberof SystemConfigTemplateStorageOptionDto
  3799. */
  3800. 'presetOptions': Array<string>;
  3801. /**
  3802. *
  3803. * @type {Array<string>}
  3804. * @memberof SystemConfigTemplateStorageOptionDto
  3805. */
  3806. 'secondOptions': Array<string>;
  3807. /**
  3808. *
  3809. * @type {Array<string>}
  3810. * @memberof SystemConfigTemplateStorageOptionDto
  3811. */
  3812. 'weekOptions': Array<string>;
  3813. /**
  3814. *
  3815. * @type {Array<string>}
  3816. * @memberof SystemConfigTemplateStorageOptionDto
  3817. */
  3818. 'yearOptions': Array<string>;
  3819. }
  3820. /**
  3821. *
  3822. * @export
  3823. * @interface SystemConfigThemeDto
  3824. */
  3825. export interface SystemConfigThemeDto {
  3826. /**
  3827. *
  3828. * @type {string}
  3829. * @memberof SystemConfigThemeDto
  3830. */
  3831. 'customCss': string;
  3832. }
  3833. /**
  3834. *
  3835. * @export
  3836. * @interface SystemConfigThumbnailDto
  3837. */
  3838. export interface SystemConfigThumbnailDto {
  3839. /**
  3840. *
  3841. * @type {Colorspace}
  3842. * @memberof SystemConfigThumbnailDto
  3843. */
  3844. 'colorspace': Colorspace;
  3845. /**
  3846. *
  3847. * @type {number}
  3848. * @memberof SystemConfigThumbnailDto
  3849. */
  3850. 'jpegSize': number;
  3851. /**
  3852. *
  3853. * @type {number}
  3854. * @memberof SystemConfigThumbnailDto
  3855. */
  3856. 'quality': number;
  3857. /**
  3858. *
  3859. * @type {number}
  3860. * @memberof SystemConfigThumbnailDto
  3861. */
  3862. 'webpSize': number;
  3863. }
  3864. /**
  3865. *
  3866. * @export
  3867. * @interface SystemConfigTrashDto
  3868. */
  3869. export interface SystemConfigTrashDto {
  3870. /**
  3871. *
  3872. * @type {number}
  3873. * @memberof SystemConfigTrashDto
  3874. */
  3875. 'days': number;
  3876. /**
  3877. *
  3878. * @type {boolean}
  3879. * @memberof SystemConfigTrashDto
  3880. */
  3881. 'enabled': boolean;
  3882. }
  3883. /**
  3884. *
  3885. * @export
  3886. * @interface TagResponseDto
  3887. */
  3888. export interface TagResponseDto {
  3889. /**
  3890. *
  3891. * @type {string}
  3892. * @memberof TagResponseDto
  3893. */
  3894. 'id': string;
  3895. /**
  3896. *
  3897. * @type {string}
  3898. * @memberof TagResponseDto
  3899. */
  3900. 'name': string;
  3901. /**
  3902. *
  3903. * @type {TagTypeEnum}
  3904. * @memberof TagResponseDto
  3905. */
  3906. 'type': TagTypeEnum;
  3907. /**
  3908. *
  3909. * @type {string}
  3910. * @memberof TagResponseDto
  3911. */
  3912. 'userId': string;
  3913. }
  3914. /**
  3915. *
  3916. * @export
  3917. * @enum {string}
  3918. */
  3919. export const TagTypeEnum = {
  3920. Object: 'OBJECT',
  3921. Face: 'FACE',
  3922. Custom: 'CUSTOM'
  3923. } as const;
  3924. export type TagTypeEnum = typeof TagTypeEnum[keyof typeof TagTypeEnum];
  3925. /**
  3926. *
  3927. * @export
  3928. * @enum {string}
  3929. */
  3930. export const ThumbnailFormat = {
  3931. Jpeg: 'JPEG',
  3932. Webp: 'WEBP'
  3933. } as const;
  3934. export type ThumbnailFormat = typeof ThumbnailFormat[keyof typeof ThumbnailFormat];
  3935. /**
  3936. *
  3937. * @export
  3938. * @interface TimeBucketResponseDto
  3939. */
  3940. export interface TimeBucketResponseDto {
  3941. /**
  3942. *
  3943. * @type {number}
  3944. * @memberof TimeBucketResponseDto
  3945. */
  3946. 'count': number;
  3947. /**
  3948. *
  3949. * @type {string}
  3950. * @memberof TimeBucketResponseDto
  3951. */
  3952. 'timeBucket': string;
  3953. }
  3954. /**
  3955. *
  3956. * @export
  3957. * @enum {string}
  3958. */
  3959. export const TimeBucketSize = {
  3960. Day: 'DAY',
  3961. Month: 'MONTH'
  3962. } as const;
  3963. export type TimeBucketSize = typeof TimeBucketSize[keyof typeof TimeBucketSize];
  3964. /**
  3965. *
  3966. * @export
  3967. * @enum {string}
  3968. */
  3969. export const ToneMapping = {
  3970. Hable: 'hable',
  3971. Mobius: 'mobius',
  3972. Reinhard: 'reinhard',
  3973. Disabled: 'disabled'
  3974. } as const;
  3975. export type ToneMapping = typeof ToneMapping[keyof typeof ToneMapping];
  3976. /**
  3977. *
  3978. * @export
  3979. * @enum {string}
  3980. */
  3981. export const TranscodeHWAccel = {
  3982. Nvenc: 'nvenc',
  3983. Qsv: 'qsv',
  3984. Vaapi: 'vaapi',
  3985. Rkmpp: 'rkmpp',
  3986. Disabled: 'disabled'
  3987. } as const;
  3988. export type TranscodeHWAccel = typeof TranscodeHWAccel[keyof typeof TranscodeHWAccel];
  3989. /**
  3990. *
  3991. * @export
  3992. * @enum {string}
  3993. */
  3994. export const TranscodePolicy = {
  3995. All: 'all',
  3996. Optimal: 'optimal',
  3997. Required: 'required',
  3998. Disabled: 'disabled'
  3999. } as const;
  4000. export type TranscodePolicy = typeof TranscodePolicy[keyof typeof TranscodePolicy];
  4001. /**
  4002. *
  4003. * @export
  4004. * @interface UpdateAlbumDto
  4005. */
  4006. export interface UpdateAlbumDto {
  4007. /**
  4008. *
  4009. * @type {string}
  4010. * @memberof UpdateAlbumDto
  4011. */
  4012. 'albumName'?: string;
  4013. /**
  4014. *
  4015. * @type {string}
  4016. * @memberof UpdateAlbumDto
  4017. */
  4018. 'albumThumbnailAssetId'?: string;
  4019. /**
  4020. *
  4021. * @type {string}
  4022. * @memberof UpdateAlbumDto
  4023. */
  4024. 'description'?: string;
  4025. }
  4026. /**
  4027. *
  4028. * @export
  4029. * @interface UpdateAssetDto
  4030. */
  4031. export interface UpdateAssetDto {
  4032. /**
  4033. *
  4034. * @type {string}
  4035. * @memberof UpdateAssetDto
  4036. */
  4037. 'description'?: string;
  4038. /**
  4039. *
  4040. * @type {boolean}
  4041. * @memberof UpdateAssetDto
  4042. */
  4043. 'isArchived'?: boolean;
  4044. /**
  4045. *
  4046. * @type {boolean}
  4047. * @memberof UpdateAssetDto
  4048. */
  4049. 'isFavorite'?: boolean;
  4050. }
  4051. /**
  4052. *
  4053. * @export
  4054. * @interface UpdateLibraryDto
  4055. */
  4056. export interface UpdateLibraryDto {
  4057. /**
  4058. *
  4059. * @type {Array<string>}
  4060. * @memberof UpdateLibraryDto
  4061. */
  4062. 'exclusionPatterns'?: Array<string>;
  4063. /**
  4064. *
  4065. * @type {Array<string>}
  4066. * @memberof UpdateLibraryDto
  4067. */
  4068. 'importPaths'?: Array<string>;
  4069. /**
  4070. *
  4071. * @type {boolean}
  4072. * @memberof UpdateLibraryDto
  4073. */
  4074. 'isVisible'?: boolean;
  4075. /**
  4076. *
  4077. * @type {string}
  4078. * @memberof UpdateLibraryDto
  4079. */
  4080. 'name'?: string;
  4081. }
  4082. /**
  4083. *
  4084. * @export
  4085. * @interface UpdateStackParentDto
  4086. */
  4087. export interface UpdateStackParentDto {
  4088. /**
  4089. *
  4090. * @type {string}
  4091. * @memberof UpdateStackParentDto
  4092. */
  4093. 'newParentId': string;
  4094. /**
  4095. *
  4096. * @type {string}
  4097. * @memberof UpdateStackParentDto
  4098. */
  4099. 'oldParentId': string;
  4100. }
  4101. /**
  4102. *
  4103. * @export
  4104. * @interface UpdateTagDto
  4105. */
  4106. export interface UpdateTagDto {
  4107. /**
  4108. *
  4109. * @type {string}
  4110. * @memberof UpdateTagDto
  4111. */
  4112. 'name'?: string;
  4113. }
  4114. /**
  4115. *
  4116. * @export
  4117. * @interface UpdateUserDto
  4118. */
  4119. export interface UpdateUserDto {
  4120. /**
  4121. *
  4122. * @type {string}
  4123. * @memberof UpdateUserDto
  4124. */
  4125. 'email'?: string;
  4126. /**
  4127. *
  4128. * @type {string}
  4129. * @memberof UpdateUserDto
  4130. */
  4131. 'externalPath'?: string;
  4132. /**
  4133. *
  4134. * @type {string}
  4135. * @memberof UpdateUserDto
  4136. */
  4137. 'firstName'?: string;
  4138. /**
  4139. *
  4140. * @type {string}
  4141. * @memberof UpdateUserDto
  4142. */
  4143. 'id': string;
  4144. /**
  4145. *
  4146. * @type {boolean}
  4147. * @memberof UpdateUserDto
  4148. */
  4149. 'isAdmin'?: boolean;
  4150. /**
  4151. *
  4152. * @type {string}
  4153. * @memberof UpdateUserDto
  4154. */
  4155. 'lastName'?: string;
  4156. /**
  4157. *
  4158. * @type {boolean}
  4159. * @memberof UpdateUserDto
  4160. */
  4161. 'memoriesEnabled'?: boolean;
  4162. /**
  4163. *
  4164. * @type {string}
  4165. * @memberof UpdateUserDto
  4166. */
  4167. 'password'?: string;
  4168. /**
  4169. *
  4170. * @type {boolean}
  4171. * @memberof UpdateUserDto
  4172. */
  4173. 'shouldChangePassword'?: boolean;
  4174. /**
  4175. *
  4176. * @type {string}
  4177. * @memberof UpdateUserDto
  4178. */
  4179. 'storageLabel'?: string;
  4180. }
  4181. /**
  4182. *
  4183. * @export
  4184. * @interface UsageByUserDto
  4185. */
  4186. export interface UsageByUserDto {
  4187. /**
  4188. *
  4189. * @type {number}
  4190. * @memberof UsageByUserDto
  4191. */
  4192. 'photos': number;
  4193. /**
  4194. *
  4195. * @type {number}
  4196. * @memberof UsageByUserDto
  4197. */
  4198. 'usage': number;
  4199. /**
  4200. *
  4201. * @type {string}
  4202. * @memberof UsageByUserDto
  4203. */
  4204. 'userFirstName': string;
  4205. /**
  4206. *
  4207. * @type {string}
  4208. * @memberof UsageByUserDto
  4209. */
  4210. 'userId': string;
  4211. /**
  4212. *
  4213. * @type {string}
  4214. * @memberof UsageByUserDto
  4215. */
  4216. 'userLastName': string;
  4217. /**
  4218. *
  4219. * @type {number}
  4220. * @memberof UsageByUserDto
  4221. */
  4222. 'videos': number;
  4223. }
  4224. /**
  4225. *
  4226. * @export
  4227. * @interface UserDto
  4228. */
  4229. export interface UserDto {
  4230. /**
  4231. *
  4232. * @type {string}
  4233. * @memberof UserDto
  4234. */
  4235. 'email': string;
  4236. /**
  4237. *
  4238. * @type {string}
  4239. * @memberof UserDto
  4240. */
  4241. 'firstName': string;
  4242. /**
  4243. *
  4244. * @type {string}
  4245. * @memberof UserDto
  4246. */
  4247. 'id': string;
  4248. /**
  4249. *
  4250. * @type {string}
  4251. * @memberof UserDto
  4252. */
  4253. 'lastName': string;
  4254. /**
  4255. *
  4256. * @type {string}
  4257. * @memberof UserDto
  4258. */
  4259. 'profileImagePath': string;
  4260. }
  4261. /**
  4262. *
  4263. * @export
  4264. * @interface UserResponseDto
  4265. */
  4266. export interface UserResponseDto {
  4267. /**
  4268. *
  4269. * @type {string}
  4270. * @memberof UserResponseDto
  4271. */
  4272. 'createdAt': string;
  4273. /**
  4274. *
  4275. * @type {string}
  4276. * @memberof UserResponseDto
  4277. */
  4278. 'deletedAt': string | null;
  4279. /**
  4280. *
  4281. * @type {string}
  4282. * @memberof UserResponseDto
  4283. */
  4284. 'email': string;
  4285. /**
  4286. *
  4287. * @type {string}
  4288. * @memberof UserResponseDto
  4289. */
  4290. 'externalPath': string | null;
  4291. /**
  4292. *
  4293. * @type {string}
  4294. * @memberof UserResponseDto
  4295. */
  4296. 'firstName': string;
  4297. /**
  4298. *
  4299. * @type {string}
  4300. * @memberof UserResponseDto
  4301. */
  4302. 'id': string;
  4303. /**
  4304. *
  4305. * @type {boolean}
  4306. * @memberof UserResponseDto
  4307. */
  4308. 'isAdmin': boolean;
  4309. /**
  4310. *
  4311. * @type {string}
  4312. * @memberof UserResponseDto
  4313. */
  4314. 'lastName': string;
  4315. /**
  4316. *
  4317. * @type {boolean}
  4318. * @memberof UserResponseDto
  4319. */
  4320. 'memoriesEnabled'?: boolean;
  4321. /**
  4322. *
  4323. * @type {string}
  4324. * @memberof UserResponseDto
  4325. */
  4326. 'oauthId': string;
  4327. /**
  4328. *
  4329. * @type {string}
  4330. * @memberof UserResponseDto
  4331. */
  4332. 'profileImagePath': string;
  4333. /**
  4334. *
  4335. * @type {boolean}
  4336. * @memberof UserResponseDto
  4337. */
  4338. 'shouldChangePassword': boolean;
  4339. /**
  4340. *
  4341. * @type {string}
  4342. * @memberof UserResponseDto
  4343. */
  4344. 'storageLabel': string | null;
  4345. /**
  4346. *
  4347. * @type {string}
  4348. * @memberof UserResponseDto
  4349. */
  4350. 'updatedAt': string;
  4351. }
  4352. /**
  4353. *
  4354. * @export
  4355. * @interface ValidateAccessTokenResponseDto
  4356. */
  4357. export interface ValidateAccessTokenResponseDto {
  4358. /**
  4359. *
  4360. * @type {boolean}
  4361. * @memberof ValidateAccessTokenResponseDto
  4362. */
  4363. 'authStatus': boolean;
  4364. }
  4365. /**
  4366. *
  4367. * @export
  4368. * @enum {string}
  4369. */
  4370. export const VideoCodec = {
  4371. H264: 'h264',
  4372. Hevc: 'hevc',
  4373. Vp9: 'vp9'
  4374. } as const;
  4375. export type VideoCodec = typeof VideoCodec[keyof typeof VideoCodec];
  4376. /**
  4377. * APIKeyApi - axios parameter creator
  4378. * @export
  4379. */
  4380. export const APIKeyApiAxiosParamCreator = function (configuration?: Configuration) {
  4381. return {
  4382. /**
  4383. *
  4384. * @param {APIKeyCreateDto} aPIKeyCreateDto
  4385. * @param {*} [options] Override http request option.
  4386. * @throws {RequiredError}
  4387. */
  4388. createKey: async (aPIKeyCreateDto: APIKeyCreateDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4389. // verify required parameter 'aPIKeyCreateDto' is not null or undefined
  4390. assertParamExists('createKey', 'aPIKeyCreateDto', aPIKeyCreateDto)
  4391. const localVarPath = `/api-key`;
  4392. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4393. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4394. let baseOptions;
  4395. if (configuration) {
  4396. baseOptions = configuration.baseOptions;
  4397. }
  4398. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  4399. const localVarHeaderParameter = {} as any;
  4400. const localVarQueryParameter = {} as any;
  4401. // authentication cookie required
  4402. // authentication api_key required
  4403. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4404. // authentication bearer required
  4405. // http bearer authentication required
  4406. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4407. localVarHeaderParameter['Content-Type'] = 'application/json';
  4408. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4409. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4410. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4411. localVarRequestOptions.data = serializeDataIfNeeded(aPIKeyCreateDto, localVarRequestOptions, configuration)
  4412. return {
  4413. url: toPathString(localVarUrlObj),
  4414. options: localVarRequestOptions,
  4415. };
  4416. },
  4417. /**
  4418. *
  4419. * @param {string} id
  4420. * @param {*} [options] Override http request option.
  4421. * @throws {RequiredError}
  4422. */
  4423. deleteKey: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4424. // verify required parameter 'id' is not null or undefined
  4425. assertParamExists('deleteKey', 'id', id)
  4426. const localVarPath = `/api-key/{id}`
  4427. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  4428. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4429. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4430. let baseOptions;
  4431. if (configuration) {
  4432. baseOptions = configuration.baseOptions;
  4433. }
  4434. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  4435. const localVarHeaderParameter = {} as any;
  4436. const localVarQueryParameter = {} as any;
  4437. // authentication cookie required
  4438. // authentication api_key required
  4439. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4440. // authentication bearer required
  4441. // http bearer authentication required
  4442. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4443. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4444. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4445. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4446. return {
  4447. url: toPathString(localVarUrlObj),
  4448. options: localVarRequestOptions,
  4449. };
  4450. },
  4451. /**
  4452. *
  4453. * @param {string} id
  4454. * @param {*} [options] Override http request option.
  4455. * @throws {RequiredError}
  4456. */
  4457. getKey: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4458. // verify required parameter 'id' is not null or undefined
  4459. assertParamExists('getKey', 'id', id)
  4460. const localVarPath = `/api-key/{id}`
  4461. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  4462. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4463. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4464. let baseOptions;
  4465. if (configuration) {
  4466. baseOptions = configuration.baseOptions;
  4467. }
  4468. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  4469. const localVarHeaderParameter = {} as any;
  4470. const localVarQueryParameter = {} as any;
  4471. // authentication cookie required
  4472. // authentication api_key required
  4473. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4474. // authentication bearer required
  4475. // http bearer authentication required
  4476. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4477. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4478. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4479. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4480. return {
  4481. url: toPathString(localVarUrlObj),
  4482. options: localVarRequestOptions,
  4483. };
  4484. },
  4485. /**
  4486. *
  4487. * @param {*} [options] Override http request option.
  4488. * @throws {RequiredError}
  4489. */
  4490. getKeys: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4491. const localVarPath = `/api-key`;
  4492. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4493. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4494. let baseOptions;
  4495. if (configuration) {
  4496. baseOptions = configuration.baseOptions;
  4497. }
  4498. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  4499. const localVarHeaderParameter = {} as any;
  4500. const localVarQueryParameter = {} as any;
  4501. // authentication cookie required
  4502. // authentication api_key required
  4503. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4504. // authentication bearer required
  4505. // http bearer authentication required
  4506. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4507. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4508. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4509. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4510. return {
  4511. url: toPathString(localVarUrlObj),
  4512. options: localVarRequestOptions,
  4513. };
  4514. },
  4515. /**
  4516. *
  4517. * @param {string} id
  4518. * @param {APIKeyUpdateDto} aPIKeyUpdateDto
  4519. * @param {*} [options] Override http request option.
  4520. * @throws {RequiredError}
  4521. */
  4522. updateKey: async (id: string, aPIKeyUpdateDto: APIKeyUpdateDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4523. // verify required parameter 'id' is not null or undefined
  4524. assertParamExists('updateKey', 'id', id)
  4525. // verify required parameter 'aPIKeyUpdateDto' is not null or undefined
  4526. assertParamExists('updateKey', 'aPIKeyUpdateDto', aPIKeyUpdateDto)
  4527. const localVarPath = `/api-key/{id}`
  4528. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  4529. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4530. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4531. let baseOptions;
  4532. if (configuration) {
  4533. baseOptions = configuration.baseOptions;
  4534. }
  4535. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  4536. const localVarHeaderParameter = {} as any;
  4537. const localVarQueryParameter = {} as any;
  4538. // authentication cookie required
  4539. // authentication api_key required
  4540. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4541. // authentication bearer required
  4542. // http bearer authentication required
  4543. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4544. localVarHeaderParameter['Content-Type'] = 'application/json';
  4545. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4546. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4547. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4548. localVarRequestOptions.data = serializeDataIfNeeded(aPIKeyUpdateDto, localVarRequestOptions, configuration)
  4549. return {
  4550. url: toPathString(localVarUrlObj),
  4551. options: localVarRequestOptions,
  4552. };
  4553. },
  4554. }
  4555. };
  4556. /**
  4557. * APIKeyApi - functional programming interface
  4558. * @export
  4559. */
  4560. export const APIKeyApiFp = function(configuration?: Configuration) {
  4561. const localVarAxiosParamCreator = APIKeyApiAxiosParamCreator(configuration)
  4562. return {
  4563. /**
  4564. *
  4565. * @param {APIKeyCreateDto} aPIKeyCreateDto
  4566. * @param {*} [options] Override http request option.
  4567. * @throws {RequiredError}
  4568. */
  4569. async createKey(aPIKeyCreateDto: APIKeyCreateDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<APIKeyCreateResponseDto>> {
  4570. const localVarAxiosArgs = await localVarAxiosParamCreator.createKey(aPIKeyCreateDto, options);
  4571. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4572. },
  4573. /**
  4574. *
  4575. * @param {string} id
  4576. * @param {*} [options] Override http request option.
  4577. * @throws {RequiredError}
  4578. */
  4579. async deleteKey(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  4580. const localVarAxiosArgs = await localVarAxiosParamCreator.deleteKey(id, options);
  4581. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4582. },
  4583. /**
  4584. *
  4585. * @param {string} id
  4586. * @param {*} [options] Override http request option.
  4587. * @throws {RequiredError}
  4588. */
  4589. async getKey(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<APIKeyResponseDto>> {
  4590. const localVarAxiosArgs = await localVarAxiosParamCreator.getKey(id, options);
  4591. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4592. },
  4593. /**
  4594. *
  4595. * @param {*} [options] Override http request option.
  4596. * @throws {RequiredError}
  4597. */
  4598. async getKeys(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<APIKeyResponseDto>>> {
  4599. const localVarAxiosArgs = await localVarAxiosParamCreator.getKeys(options);
  4600. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4601. },
  4602. /**
  4603. *
  4604. * @param {string} id
  4605. * @param {APIKeyUpdateDto} aPIKeyUpdateDto
  4606. * @param {*} [options] Override http request option.
  4607. * @throws {RequiredError}
  4608. */
  4609. async updateKey(id: string, aPIKeyUpdateDto: APIKeyUpdateDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<APIKeyResponseDto>> {
  4610. const localVarAxiosArgs = await localVarAxiosParamCreator.updateKey(id, aPIKeyUpdateDto, options);
  4611. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4612. },
  4613. }
  4614. };
  4615. /**
  4616. * APIKeyApi - factory interface
  4617. * @export
  4618. */
  4619. export const APIKeyApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  4620. const localVarFp = APIKeyApiFp(configuration)
  4621. return {
  4622. /**
  4623. *
  4624. * @param {APIKeyApiCreateKeyRequest} requestParameters Request parameters.
  4625. * @param {*} [options] Override http request option.
  4626. * @throws {RequiredError}
  4627. */
  4628. createKey(requestParameters: APIKeyApiCreateKeyRequest, options?: AxiosRequestConfig): AxiosPromise<APIKeyCreateResponseDto> {
  4629. return localVarFp.createKey(requestParameters.aPIKeyCreateDto, options).then((request) => request(axios, basePath));
  4630. },
  4631. /**
  4632. *
  4633. * @param {APIKeyApiDeleteKeyRequest} requestParameters Request parameters.
  4634. * @param {*} [options] Override http request option.
  4635. * @throws {RequiredError}
  4636. */
  4637. deleteKey(requestParameters: APIKeyApiDeleteKeyRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  4638. return localVarFp.deleteKey(requestParameters.id, options).then((request) => request(axios, basePath));
  4639. },
  4640. /**
  4641. *
  4642. * @param {APIKeyApiGetKeyRequest} requestParameters Request parameters.
  4643. * @param {*} [options] Override http request option.
  4644. * @throws {RequiredError}
  4645. */
  4646. getKey(requestParameters: APIKeyApiGetKeyRequest, options?: AxiosRequestConfig): AxiosPromise<APIKeyResponseDto> {
  4647. return localVarFp.getKey(requestParameters.id, options).then((request) => request(axios, basePath));
  4648. },
  4649. /**
  4650. *
  4651. * @param {*} [options] Override http request option.
  4652. * @throws {RequiredError}
  4653. */
  4654. getKeys(options?: AxiosRequestConfig): AxiosPromise<Array<APIKeyResponseDto>> {
  4655. return localVarFp.getKeys(options).then((request) => request(axios, basePath));
  4656. },
  4657. /**
  4658. *
  4659. * @param {APIKeyApiUpdateKeyRequest} requestParameters Request parameters.
  4660. * @param {*} [options] Override http request option.
  4661. * @throws {RequiredError}
  4662. */
  4663. updateKey(requestParameters: APIKeyApiUpdateKeyRequest, options?: AxiosRequestConfig): AxiosPromise<APIKeyResponseDto> {
  4664. return localVarFp.updateKey(requestParameters.id, requestParameters.aPIKeyUpdateDto, options).then((request) => request(axios, basePath));
  4665. },
  4666. };
  4667. };
  4668. /**
  4669. * Request parameters for createKey operation in APIKeyApi.
  4670. * @export
  4671. * @interface APIKeyApiCreateKeyRequest
  4672. */
  4673. export interface APIKeyApiCreateKeyRequest {
  4674. /**
  4675. *
  4676. * @type {APIKeyCreateDto}
  4677. * @memberof APIKeyApiCreateKey
  4678. */
  4679. readonly aPIKeyCreateDto: APIKeyCreateDto
  4680. }
  4681. /**
  4682. * Request parameters for deleteKey operation in APIKeyApi.
  4683. * @export
  4684. * @interface APIKeyApiDeleteKeyRequest
  4685. */
  4686. export interface APIKeyApiDeleteKeyRequest {
  4687. /**
  4688. *
  4689. * @type {string}
  4690. * @memberof APIKeyApiDeleteKey
  4691. */
  4692. readonly id: string
  4693. }
  4694. /**
  4695. * Request parameters for getKey operation in APIKeyApi.
  4696. * @export
  4697. * @interface APIKeyApiGetKeyRequest
  4698. */
  4699. export interface APIKeyApiGetKeyRequest {
  4700. /**
  4701. *
  4702. * @type {string}
  4703. * @memberof APIKeyApiGetKey
  4704. */
  4705. readonly id: string
  4706. }
  4707. /**
  4708. * Request parameters for updateKey operation in APIKeyApi.
  4709. * @export
  4710. * @interface APIKeyApiUpdateKeyRequest
  4711. */
  4712. export interface APIKeyApiUpdateKeyRequest {
  4713. /**
  4714. *
  4715. * @type {string}
  4716. * @memberof APIKeyApiUpdateKey
  4717. */
  4718. readonly id: string
  4719. /**
  4720. *
  4721. * @type {APIKeyUpdateDto}
  4722. * @memberof APIKeyApiUpdateKey
  4723. */
  4724. readonly aPIKeyUpdateDto: APIKeyUpdateDto
  4725. }
  4726. /**
  4727. * APIKeyApi - object-oriented interface
  4728. * @export
  4729. * @class APIKeyApi
  4730. * @extends {BaseAPI}
  4731. */
  4732. export class APIKeyApi extends BaseAPI {
  4733. /**
  4734. *
  4735. * @param {APIKeyApiCreateKeyRequest} requestParameters Request parameters.
  4736. * @param {*} [options] Override http request option.
  4737. * @throws {RequiredError}
  4738. * @memberof APIKeyApi
  4739. */
  4740. public createKey(requestParameters: APIKeyApiCreateKeyRequest, options?: AxiosRequestConfig) {
  4741. return APIKeyApiFp(this.configuration).createKey(requestParameters.aPIKeyCreateDto, options).then((request) => request(this.axios, this.basePath));
  4742. }
  4743. /**
  4744. *
  4745. * @param {APIKeyApiDeleteKeyRequest} requestParameters Request parameters.
  4746. * @param {*} [options] Override http request option.
  4747. * @throws {RequiredError}
  4748. * @memberof APIKeyApi
  4749. */
  4750. public deleteKey(requestParameters: APIKeyApiDeleteKeyRequest, options?: AxiosRequestConfig) {
  4751. return APIKeyApiFp(this.configuration).deleteKey(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  4752. }
  4753. /**
  4754. *
  4755. * @param {APIKeyApiGetKeyRequest} requestParameters Request parameters.
  4756. * @param {*} [options] Override http request option.
  4757. * @throws {RequiredError}
  4758. * @memberof APIKeyApi
  4759. */
  4760. public getKey(requestParameters: APIKeyApiGetKeyRequest, options?: AxiosRequestConfig) {
  4761. return APIKeyApiFp(this.configuration).getKey(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  4762. }
  4763. /**
  4764. *
  4765. * @param {*} [options] Override http request option.
  4766. * @throws {RequiredError}
  4767. * @memberof APIKeyApi
  4768. */
  4769. public getKeys(options?: AxiosRequestConfig) {
  4770. return APIKeyApiFp(this.configuration).getKeys(options).then((request) => request(this.axios, this.basePath));
  4771. }
  4772. /**
  4773. *
  4774. * @param {APIKeyApiUpdateKeyRequest} requestParameters Request parameters.
  4775. * @param {*} [options] Override http request option.
  4776. * @throws {RequiredError}
  4777. * @memberof APIKeyApi
  4778. */
  4779. public updateKey(requestParameters: APIKeyApiUpdateKeyRequest, options?: AxiosRequestConfig) {
  4780. return APIKeyApiFp(this.configuration).updateKey(requestParameters.id, requestParameters.aPIKeyUpdateDto, options).then((request) => request(this.axios, this.basePath));
  4781. }
  4782. }
  4783. /**
  4784. * ActivityApi - axios parameter creator
  4785. * @export
  4786. */
  4787. export const ActivityApiAxiosParamCreator = function (configuration?: Configuration) {
  4788. return {
  4789. /**
  4790. *
  4791. * @param {ActivityCreateDto} activityCreateDto
  4792. * @param {*} [options] Override http request option.
  4793. * @throws {RequiredError}
  4794. */
  4795. createActivity: async (activityCreateDto: ActivityCreateDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4796. // verify required parameter 'activityCreateDto' is not null or undefined
  4797. assertParamExists('createActivity', 'activityCreateDto', activityCreateDto)
  4798. const localVarPath = `/activity`;
  4799. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4800. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4801. let baseOptions;
  4802. if (configuration) {
  4803. baseOptions = configuration.baseOptions;
  4804. }
  4805. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  4806. const localVarHeaderParameter = {} as any;
  4807. const localVarQueryParameter = {} as any;
  4808. // authentication cookie required
  4809. // authentication api_key required
  4810. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4811. // authentication bearer required
  4812. // http bearer authentication required
  4813. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4814. localVarHeaderParameter['Content-Type'] = 'application/json';
  4815. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4816. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4817. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4818. localVarRequestOptions.data = serializeDataIfNeeded(activityCreateDto, localVarRequestOptions, configuration)
  4819. return {
  4820. url: toPathString(localVarUrlObj),
  4821. options: localVarRequestOptions,
  4822. };
  4823. },
  4824. /**
  4825. *
  4826. * @param {string} id
  4827. * @param {*} [options] Override http request option.
  4828. * @throws {RequiredError}
  4829. */
  4830. deleteActivity: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4831. // verify required parameter 'id' is not null or undefined
  4832. assertParamExists('deleteActivity', 'id', id)
  4833. const localVarPath = `/activity/{id}`
  4834. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  4835. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4836. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4837. let baseOptions;
  4838. if (configuration) {
  4839. baseOptions = configuration.baseOptions;
  4840. }
  4841. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  4842. const localVarHeaderParameter = {} as any;
  4843. const localVarQueryParameter = {} as any;
  4844. // authentication cookie required
  4845. // authentication api_key required
  4846. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4847. // authentication bearer required
  4848. // http bearer authentication required
  4849. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4850. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4851. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4852. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4853. return {
  4854. url: toPathString(localVarUrlObj),
  4855. options: localVarRequestOptions,
  4856. };
  4857. },
  4858. /**
  4859. *
  4860. * @param {string} albumId
  4861. * @param {string} [assetId]
  4862. * @param {ReactionType} [type]
  4863. * @param {string} [userId]
  4864. * @param {*} [options] Override http request option.
  4865. * @throws {RequiredError}
  4866. */
  4867. getActivities: async (albumId: string, assetId?: string, type?: ReactionType, userId?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4868. // verify required parameter 'albumId' is not null or undefined
  4869. assertParamExists('getActivities', 'albumId', albumId)
  4870. const localVarPath = `/activity`;
  4871. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4872. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4873. let baseOptions;
  4874. if (configuration) {
  4875. baseOptions = configuration.baseOptions;
  4876. }
  4877. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  4878. const localVarHeaderParameter = {} as any;
  4879. const localVarQueryParameter = {} as any;
  4880. // authentication cookie required
  4881. // authentication api_key required
  4882. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4883. // authentication bearer required
  4884. // http bearer authentication required
  4885. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4886. if (albumId !== undefined) {
  4887. localVarQueryParameter['albumId'] = albumId;
  4888. }
  4889. if (assetId !== undefined) {
  4890. localVarQueryParameter['assetId'] = assetId;
  4891. }
  4892. if (type !== undefined) {
  4893. localVarQueryParameter['type'] = type;
  4894. }
  4895. if (userId !== undefined) {
  4896. localVarQueryParameter['userId'] = userId;
  4897. }
  4898. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4899. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4900. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4901. return {
  4902. url: toPathString(localVarUrlObj),
  4903. options: localVarRequestOptions,
  4904. };
  4905. },
  4906. /**
  4907. *
  4908. * @param {string} albumId
  4909. * @param {string} [assetId]
  4910. * @param {*} [options] Override http request option.
  4911. * @throws {RequiredError}
  4912. */
  4913. getActivityStatistics: async (albumId: string, assetId?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4914. // verify required parameter 'albumId' is not null or undefined
  4915. assertParamExists('getActivityStatistics', 'albumId', albumId)
  4916. const localVarPath = `/activity/statistics`;
  4917. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4918. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4919. let baseOptions;
  4920. if (configuration) {
  4921. baseOptions = configuration.baseOptions;
  4922. }
  4923. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  4924. const localVarHeaderParameter = {} as any;
  4925. const localVarQueryParameter = {} as any;
  4926. // authentication cookie required
  4927. // authentication api_key required
  4928. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4929. // authentication bearer required
  4930. // http bearer authentication required
  4931. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4932. if (albumId !== undefined) {
  4933. localVarQueryParameter['albumId'] = albumId;
  4934. }
  4935. if (assetId !== undefined) {
  4936. localVarQueryParameter['assetId'] = assetId;
  4937. }
  4938. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4939. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4940. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4941. return {
  4942. url: toPathString(localVarUrlObj),
  4943. options: localVarRequestOptions,
  4944. };
  4945. },
  4946. }
  4947. };
  4948. /**
  4949. * ActivityApi - functional programming interface
  4950. * @export
  4951. */
  4952. export const ActivityApiFp = function(configuration?: Configuration) {
  4953. const localVarAxiosParamCreator = ActivityApiAxiosParamCreator(configuration)
  4954. return {
  4955. /**
  4956. *
  4957. * @param {ActivityCreateDto} activityCreateDto
  4958. * @param {*} [options] Override http request option.
  4959. * @throws {RequiredError}
  4960. */
  4961. async createActivity(activityCreateDto: ActivityCreateDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ActivityResponseDto>> {
  4962. const localVarAxiosArgs = await localVarAxiosParamCreator.createActivity(activityCreateDto, options);
  4963. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4964. },
  4965. /**
  4966. *
  4967. * @param {string} id
  4968. * @param {*} [options] Override http request option.
  4969. * @throws {RequiredError}
  4970. */
  4971. async deleteActivity(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  4972. const localVarAxiosArgs = await localVarAxiosParamCreator.deleteActivity(id, options);
  4973. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4974. },
  4975. /**
  4976. *
  4977. * @param {string} albumId
  4978. * @param {string} [assetId]
  4979. * @param {ReactionType} [type]
  4980. * @param {string} [userId]
  4981. * @param {*} [options] Override http request option.
  4982. * @throws {RequiredError}
  4983. */
  4984. async getActivities(albumId: string, assetId?: string, type?: ReactionType, userId?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ActivityResponseDto>>> {
  4985. const localVarAxiosArgs = await localVarAxiosParamCreator.getActivities(albumId, assetId, type, userId, options);
  4986. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4987. },
  4988. /**
  4989. *
  4990. * @param {string} albumId
  4991. * @param {string} [assetId]
  4992. * @param {*} [options] Override http request option.
  4993. * @throws {RequiredError}
  4994. */
  4995. async getActivityStatistics(albumId: string, assetId?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ActivityStatisticsResponseDto>> {
  4996. const localVarAxiosArgs = await localVarAxiosParamCreator.getActivityStatistics(albumId, assetId, options);
  4997. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4998. },
  4999. }
  5000. };
  5001. /**
  5002. * ActivityApi - factory interface
  5003. * @export
  5004. */
  5005. export const ActivityApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  5006. const localVarFp = ActivityApiFp(configuration)
  5007. return {
  5008. /**
  5009. *
  5010. * @param {ActivityApiCreateActivityRequest} requestParameters Request parameters.
  5011. * @param {*} [options] Override http request option.
  5012. * @throws {RequiredError}
  5013. */
  5014. createActivity(requestParameters: ActivityApiCreateActivityRequest, options?: AxiosRequestConfig): AxiosPromise<ActivityResponseDto> {
  5015. return localVarFp.createActivity(requestParameters.activityCreateDto, options).then((request) => request(axios, basePath));
  5016. },
  5017. /**
  5018. *
  5019. * @param {ActivityApiDeleteActivityRequest} requestParameters Request parameters.
  5020. * @param {*} [options] Override http request option.
  5021. * @throws {RequiredError}
  5022. */
  5023. deleteActivity(requestParameters: ActivityApiDeleteActivityRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  5024. return localVarFp.deleteActivity(requestParameters.id, options).then((request) => request(axios, basePath));
  5025. },
  5026. /**
  5027. *
  5028. * @param {ActivityApiGetActivitiesRequest} requestParameters Request parameters.
  5029. * @param {*} [options] Override http request option.
  5030. * @throws {RequiredError}
  5031. */
  5032. getActivities(requestParameters: ActivityApiGetActivitiesRequest, options?: AxiosRequestConfig): AxiosPromise<Array<ActivityResponseDto>> {
  5033. return localVarFp.getActivities(requestParameters.albumId, requestParameters.assetId, requestParameters.type, requestParameters.userId, options).then((request) => request(axios, basePath));
  5034. },
  5035. /**
  5036. *
  5037. * @param {ActivityApiGetActivityStatisticsRequest} requestParameters Request parameters.
  5038. * @param {*} [options] Override http request option.
  5039. * @throws {RequiredError}
  5040. */
  5041. getActivityStatistics(requestParameters: ActivityApiGetActivityStatisticsRequest, options?: AxiosRequestConfig): AxiosPromise<ActivityStatisticsResponseDto> {
  5042. return localVarFp.getActivityStatistics(requestParameters.albumId, requestParameters.assetId, options).then((request) => request(axios, basePath));
  5043. },
  5044. };
  5045. };
  5046. /**
  5047. * Request parameters for createActivity operation in ActivityApi.
  5048. * @export
  5049. * @interface ActivityApiCreateActivityRequest
  5050. */
  5051. export interface ActivityApiCreateActivityRequest {
  5052. /**
  5053. *
  5054. * @type {ActivityCreateDto}
  5055. * @memberof ActivityApiCreateActivity
  5056. */
  5057. readonly activityCreateDto: ActivityCreateDto
  5058. }
  5059. /**
  5060. * Request parameters for deleteActivity operation in ActivityApi.
  5061. * @export
  5062. * @interface ActivityApiDeleteActivityRequest
  5063. */
  5064. export interface ActivityApiDeleteActivityRequest {
  5065. /**
  5066. *
  5067. * @type {string}
  5068. * @memberof ActivityApiDeleteActivity
  5069. */
  5070. readonly id: string
  5071. }
  5072. /**
  5073. * Request parameters for getActivities operation in ActivityApi.
  5074. * @export
  5075. * @interface ActivityApiGetActivitiesRequest
  5076. */
  5077. export interface ActivityApiGetActivitiesRequest {
  5078. /**
  5079. *
  5080. * @type {string}
  5081. * @memberof ActivityApiGetActivities
  5082. */
  5083. readonly albumId: string
  5084. /**
  5085. *
  5086. * @type {string}
  5087. * @memberof ActivityApiGetActivities
  5088. */
  5089. readonly assetId?: string
  5090. /**
  5091. *
  5092. * @type {ReactionType}
  5093. * @memberof ActivityApiGetActivities
  5094. */
  5095. readonly type?: ReactionType
  5096. /**
  5097. *
  5098. * @type {string}
  5099. * @memberof ActivityApiGetActivities
  5100. */
  5101. readonly userId?: string
  5102. }
  5103. /**
  5104. * Request parameters for getActivityStatistics operation in ActivityApi.
  5105. * @export
  5106. * @interface ActivityApiGetActivityStatisticsRequest
  5107. */
  5108. export interface ActivityApiGetActivityStatisticsRequest {
  5109. /**
  5110. *
  5111. * @type {string}
  5112. * @memberof ActivityApiGetActivityStatistics
  5113. */
  5114. readonly albumId: string
  5115. /**
  5116. *
  5117. * @type {string}
  5118. * @memberof ActivityApiGetActivityStatistics
  5119. */
  5120. readonly assetId?: string
  5121. }
  5122. /**
  5123. * ActivityApi - object-oriented interface
  5124. * @export
  5125. * @class ActivityApi
  5126. * @extends {BaseAPI}
  5127. */
  5128. export class ActivityApi extends BaseAPI {
  5129. /**
  5130. *
  5131. * @param {ActivityApiCreateActivityRequest} requestParameters Request parameters.
  5132. * @param {*} [options] Override http request option.
  5133. * @throws {RequiredError}
  5134. * @memberof ActivityApi
  5135. */
  5136. public createActivity(requestParameters: ActivityApiCreateActivityRequest, options?: AxiosRequestConfig) {
  5137. return ActivityApiFp(this.configuration).createActivity(requestParameters.activityCreateDto, options).then((request) => request(this.axios, this.basePath));
  5138. }
  5139. /**
  5140. *
  5141. * @param {ActivityApiDeleteActivityRequest} requestParameters Request parameters.
  5142. * @param {*} [options] Override http request option.
  5143. * @throws {RequiredError}
  5144. * @memberof ActivityApi
  5145. */
  5146. public deleteActivity(requestParameters: ActivityApiDeleteActivityRequest, options?: AxiosRequestConfig) {
  5147. return ActivityApiFp(this.configuration).deleteActivity(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  5148. }
  5149. /**
  5150. *
  5151. * @param {ActivityApiGetActivitiesRequest} requestParameters Request parameters.
  5152. * @param {*} [options] Override http request option.
  5153. * @throws {RequiredError}
  5154. * @memberof ActivityApi
  5155. */
  5156. public getActivities(requestParameters: ActivityApiGetActivitiesRequest, options?: AxiosRequestConfig) {
  5157. return ActivityApiFp(this.configuration).getActivities(requestParameters.albumId, requestParameters.assetId, requestParameters.type, requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
  5158. }
  5159. /**
  5160. *
  5161. * @param {ActivityApiGetActivityStatisticsRequest} requestParameters Request parameters.
  5162. * @param {*} [options] Override http request option.
  5163. * @throws {RequiredError}
  5164. * @memberof ActivityApi
  5165. */
  5166. public getActivityStatistics(requestParameters: ActivityApiGetActivityStatisticsRequest, options?: AxiosRequestConfig) {
  5167. return ActivityApiFp(this.configuration).getActivityStatistics(requestParameters.albumId, requestParameters.assetId, options).then((request) => request(this.axios, this.basePath));
  5168. }
  5169. }
  5170. /**
  5171. * AlbumApi - axios parameter creator
  5172. * @export
  5173. */
  5174. export const AlbumApiAxiosParamCreator = function (configuration?: Configuration) {
  5175. return {
  5176. /**
  5177. *
  5178. * @param {string} id
  5179. * @param {BulkIdsDto} bulkIdsDto
  5180. * @param {string} [key]
  5181. * @param {*} [options] Override http request option.
  5182. * @throws {RequiredError}
  5183. */
  5184. addAssetsToAlbum: async (id: string, bulkIdsDto: BulkIdsDto, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5185. // verify required parameter 'id' is not null or undefined
  5186. assertParamExists('addAssetsToAlbum', 'id', id)
  5187. // verify required parameter 'bulkIdsDto' is not null or undefined
  5188. assertParamExists('addAssetsToAlbum', 'bulkIdsDto', bulkIdsDto)
  5189. const localVarPath = `/album/{id}/assets`
  5190. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  5191. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5192. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5193. let baseOptions;
  5194. if (configuration) {
  5195. baseOptions = configuration.baseOptions;
  5196. }
  5197. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  5198. const localVarHeaderParameter = {} as any;
  5199. const localVarQueryParameter = {} as any;
  5200. // authentication cookie required
  5201. // authentication api_key required
  5202. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5203. // authentication bearer required
  5204. // http bearer authentication required
  5205. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5206. if (key !== undefined) {
  5207. localVarQueryParameter['key'] = key;
  5208. }
  5209. localVarHeaderParameter['Content-Type'] = 'application/json';
  5210. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5211. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5212. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5213. localVarRequestOptions.data = serializeDataIfNeeded(bulkIdsDto, localVarRequestOptions, configuration)
  5214. return {
  5215. url: toPathString(localVarUrlObj),
  5216. options: localVarRequestOptions,
  5217. };
  5218. },
  5219. /**
  5220. *
  5221. * @param {string} id
  5222. * @param {AddUsersDto} addUsersDto
  5223. * @param {*} [options] Override http request option.
  5224. * @throws {RequiredError}
  5225. */
  5226. addUsersToAlbum: async (id: string, addUsersDto: AddUsersDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5227. // verify required parameter 'id' is not null or undefined
  5228. assertParamExists('addUsersToAlbum', 'id', id)
  5229. // verify required parameter 'addUsersDto' is not null or undefined
  5230. assertParamExists('addUsersToAlbum', 'addUsersDto', addUsersDto)
  5231. const localVarPath = `/album/{id}/users`
  5232. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  5233. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5234. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5235. let baseOptions;
  5236. if (configuration) {
  5237. baseOptions = configuration.baseOptions;
  5238. }
  5239. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  5240. const localVarHeaderParameter = {} as any;
  5241. const localVarQueryParameter = {} as any;
  5242. // authentication cookie required
  5243. // authentication api_key required
  5244. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5245. // authentication bearer required
  5246. // http bearer authentication required
  5247. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5248. localVarHeaderParameter['Content-Type'] = 'application/json';
  5249. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5250. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5251. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5252. localVarRequestOptions.data = serializeDataIfNeeded(addUsersDto, localVarRequestOptions, configuration)
  5253. return {
  5254. url: toPathString(localVarUrlObj),
  5255. options: localVarRequestOptions,
  5256. };
  5257. },
  5258. /**
  5259. *
  5260. * @param {CreateAlbumDto} createAlbumDto
  5261. * @param {*} [options] Override http request option.
  5262. * @throws {RequiredError}
  5263. */
  5264. createAlbum: async (createAlbumDto: CreateAlbumDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5265. // verify required parameter 'createAlbumDto' is not null or undefined
  5266. assertParamExists('createAlbum', 'createAlbumDto', createAlbumDto)
  5267. const localVarPath = `/album`;
  5268. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5269. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5270. let baseOptions;
  5271. if (configuration) {
  5272. baseOptions = configuration.baseOptions;
  5273. }
  5274. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  5275. const localVarHeaderParameter = {} as any;
  5276. const localVarQueryParameter = {} as any;
  5277. // authentication cookie required
  5278. // authentication api_key required
  5279. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5280. // authentication bearer required
  5281. // http bearer authentication required
  5282. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5283. localVarHeaderParameter['Content-Type'] = 'application/json';
  5284. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5285. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5286. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5287. localVarRequestOptions.data = serializeDataIfNeeded(createAlbumDto, localVarRequestOptions, configuration)
  5288. return {
  5289. url: toPathString(localVarUrlObj),
  5290. options: localVarRequestOptions,
  5291. };
  5292. },
  5293. /**
  5294. *
  5295. * @param {string} id
  5296. * @param {*} [options] Override http request option.
  5297. * @throws {RequiredError}
  5298. */
  5299. deleteAlbum: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5300. // verify required parameter 'id' is not null or undefined
  5301. assertParamExists('deleteAlbum', 'id', id)
  5302. const localVarPath = `/album/{id}`
  5303. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  5304. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5305. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5306. let baseOptions;
  5307. if (configuration) {
  5308. baseOptions = configuration.baseOptions;
  5309. }
  5310. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  5311. const localVarHeaderParameter = {} as any;
  5312. const localVarQueryParameter = {} as any;
  5313. // authentication cookie required
  5314. // authentication api_key required
  5315. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5316. // authentication bearer required
  5317. // http bearer authentication required
  5318. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5319. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5320. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5321. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5322. return {
  5323. url: toPathString(localVarUrlObj),
  5324. options: localVarRequestOptions,
  5325. };
  5326. },
  5327. /**
  5328. *
  5329. * @param {*} [options] Override http request option.
  5330. * @throws {RequiredError}
  5331. */
  5332. getAlbumCount: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5333. const localVarPath = `/album/count`;
  5334. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5335. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5336. let baseOptions;
  5337. if (configuration) {
  5338. baseOptions = configuration.baseOptions;
  5339. }
  5340. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  5341. const localVarHeaderParameter = {} as any;
  5342. const localVarQueryParameter = {} as any;
  5343. // authentication cookie required
  5344. // authentication api_key required
  5345. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5346. // authentication bearer required
  5347. // http bearer authentication required
  5348. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5349. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5350. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5351. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5352. return {
  5353. url: toPathString(localVarUrlObj),
  5354. options: localVarRequestOptions,
  5355. };
  5356. },
  5357. /**
  5358. *
  5359. * @param {string} id
  5360. * @param {boolean} [withoutAssets]
  5361. * @param {string} [key]
  5362. * @param {*} [options] Override http request option.
  5363. * @throws {RequiredError}
  5364. */
  5365. getAlbumInfo: async (id: string, withoutAssets?: boolean, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5366. // verify required parameter 'id' is not null or undefined
  5367. assertParamExists('getAlbumInfo', 'id', id)
  5368. const localVarPath = `/album/{id}`
  5369. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  5370. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5371. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5372. let baseOptions;
  5373. if (configuration) {
  5374. baseOptions = configuration.baseOptions;
  5375. }
  5376. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  5377. const localVarHeaderParameter = {} as any;
  5378. const localVarQueryParameter = {} as any;
  5379. // authentication cookie required
  5380. // authentication api_key required
  5381. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5382. // authentication bearer required
  5383. // http bearer authentication required
  5384. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5385. if (withoutAssets !== undefined) {
  5386. localVarQueryParameter['withoutAssets'] = withoutAssets;
  5387. }
  5388. if (key !== undefined) {
  5389. localVarQueryParameter['key'] = key;
  5390. }
  5391. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5392. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5393. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5394. return {
  5395. url: toPathString(localVarUrlObj),
  5396. options: localVarRequestOptions,
  5397. };
  5398. },
  5399. /**
  5400. *
  5401. * @param {boolean} [shared]
  5402. * @param {string} [assetId] Only returns albums that contain the asset Ignores the shared parameter undefined: get all albums
  5403. * @param {*} [options] Override http request option.
  5404. * @throws {RequiredError}
  5405. */
  5406. getAllAlbums: async (shared?: boolean, assetId?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5407. const localVarPath = `/album`;
  5408. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5409. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5410. let baseOptions;
  5411. if (configuration) {
  5412. baseOptions = configuration.baseOptions;
  5413. }
  5414. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  5415. const localVarHeaderParameter = {} as any;
  5416. const localVarQueryParameter = {} as any;
  5417. // authentication cookie required
  5418. // authentication api_key required
  5419. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5420. // authentication bearer required
  5421. // http bearer authentication required
  5422. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5423. if (shared !== undefined) {
  5424. localVarQueryParameter['shared'] = shared;
  5425. }
  5426. if (assetId !== undefined) {
  5427. localVarQueryParameter['assetId'] = assetId;
  5428. }
  5429. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5430. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5431. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5432. return {
  5433. url: toPathString(localVarUrlObj),
  5434. options: localVarRequestOptions,
  5435. };
  5436. },
  5437. /**
  5438. *
  5439. * @param {string} id
  5440. * @param {BulkIdsDto} bulkIdsDto
  5441. * @param {*} [options] Override http request option.
  5442. * @throws {RequiredError}
  5443. */
  5444. removeAssetFromAlbum: async (id: string, bulkIdsDto: BulkIdsDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5445. // verify required parameter 'id' is not null or undefined
  5446. assertParamExists('removeAssetFromAlbum', 'id', id)
  5447. // verify required parameter 'bulkIdsDto' is not null or undefined
  5448. assertParamExists('removeAssetFromAlbum', 'bulkIdsDto', bulkIdsDto)
  5449. const localVarPath = `/album/{id}/assets`
  5450. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  5451. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5452. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5453. let baseOptions;
  5454. if (configuration) {
  5455. baseOptions = configuration.baseOptions;
  5456. }
  5457. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  5458. const localVarHeaderParameter = {} as any;
  5459. const localVarQueryParameter = {} as any;
  5460. // authentication cookie required
  5461. // authentication api_key required
  5462. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5463. // authentication bearer required
  5464. // http bearer authentication required
  5465. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5466. localVarHeaderParameter['Content-Type'] = 'application/json';
  5467. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5468. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5469. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5470. localVarRequestOptions.data = serializeDataIfNeeded(bulkIdsDto, localVarRequestOptions, configuration)
  5471. return {
  5472. url: toPathString(localVarUrlObj),
  5473. options: localVarRequestOptions,
  5474. };
  5475. },
  5476. /**
  5477. *
  5478. * @param {string} id
  5479. * @param {string} userId
  5480. * @param {*} [options] Override http request option.
  5481. * @throws {RequiredError}
  5482. */
  5483. removeUserFromAlbum: async (id: string, userId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5484. // verify required parameter 'id' is not null or undefined
  5485. assertParamExists('removeUserFromAlbum', 'id', id)
  5486. // verify required parameter 'userId' is not null or undefined
  5487. assertParamExists('removeUserFromAlbum', 'userId', userId)
  5488. const localVarPath = `/album/{id}/user/{userId}`
  5489. .replace(`{${"id"}}`, encodeURIComponent(String(id)))
  5490. .replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
  5491. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5492. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5493. let baseOptions;
  5494. if (configuration) {
  5495. baseOptions = configuration.baseOptions;
  5496. }
  5497. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  5498. const localVarHeaderParameter = {} as any;
  5499. const localVarQueryParameter = {} as any;
  5500. // authentication cookie required
  5501. // authentication api_key required
  5502. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5503. // authentication bearer required
  5504. // http bearer authentication required
  5505. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5506. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5507. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5508. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5509. return {
  5510. url: toPathString(localVarUrlObj),
  5511. options: localVarRequestOptions,
  5512. };
  5513. },
  5514. /**
  5515. *
  5516. * @param {string} id
  5517. * @param {UpdateAlbumDto} updateAlbumDto
  5518. * @param {*} [options] Override http request option.
  5519. * @throws {RequiredError}
  5520. */
  5521. updateAlbumInfo: async (id: string, updateAlbumDto: UpdateAlbumDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5522. // verify required parameter 'id' is not null or undefined
  5523. assertParamExists('updateAlbumInfo', 'id', id)
  5524. // verify required parameter 'updateAlbumDto' is not null or undefined
  5525. assertParamExists('updateAlbumInfo', 'updateAlbumDto', updateAlbumDto)
  5526. const localVarPath = `/album/{id}`
  5527. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  5528. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5529. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5530. let baseOptions;
  5531. if (configuration) {
  5532. baseOptions = configuration.baseOptions;
  5533. }
  5534. const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
  5535. const localVarHeaderParameter = {} as any;
  5536. const localVarQueryParameter = {} as any;
  5537. // authentication cookie required
  5538. // authentication api_key required
  5539. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5540. // authentication bearer required
  5541. // http bearer authentication required
  5542. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5543. localVarHeaderParameter['Content-Type'] = 'application/json';
  5544. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5545. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5546. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5547. localVarRequestOptions.data = serializeDataIfNeeded(updateAlbumDto, localVarRequestOptions, configuration)
  5548. return {
  5549. url: toPathString(localVarUrlObj),
  5550. options: localVarRequestOptions,
  5551. };
  5552. },
  5553. }
  5554. };
  5555. /**
  5556. * AlbumApi - functional programming interface
  5557. * @export
  5558. */
  5559. export const AlbumApiFp = function(configuration?: Configuration) {
  5560. const localVarAxiosParamCreator = AlbumApiAxiosParamCreator(configuration)
  5561. return {
  5562. /**
  5563. *
  5564. * @param {string} id
  5565. * @param {BulkIdsDto} bulkIdsDto
  5566. * @param {string} [key]
  5567. * @param {*} [options] Override http request option.
  5568. * @throws {RequiredError}
  5569. */
  5570. async addAssetsToAlbum(id: string, bulkIdsDto: BulkIdsDto, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<BulkIdResponseDto>>> {
  5571. const localVarAxiosArgs = await localVarAxiosParamCreator.addAssetsToAlbum(id, bulkIdsDto, key, options);
  5572. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5573. },
  5574. /**
  5575. *
  5576. * @param {string} id
  5577. * @param {AddUsersDto} addUsersDto
  5578. * @param {*} [options] Override http request option.
  5579. * @throws {RequiredError}
  5580. */
  5581. async addUsersToAlbum(id: string, addUsersDto: AddUsersDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AlbumResponseDto>> {
  5582. const localVarAxiosArgs = await localVarAxiosParamCreator.addUsersToAlbum(id, addUsersDto, options);
  5583. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5584. },
  5585. /**
  5586. *
  5587. * @param {CreateAlbumDto} createAlbumDto
  5588. * @param {*} [options] Override http request option.
  5589. * @throws {RequiredError}
  5590. */
  5591. async createAlbum(createAlbumDto: CreateAlbumDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AlbumResponseDto>> {
  5592. const localVarAxiosArgs = await localVarAxiosParamCreator.createAlbum(createAlbumDto, options);
  5593. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5594. },
  5595. /**
  5596. *
  5597. * @param {string} id
  5598. * @param {*} [options] Override http request option.
  5599. * @throws {RequiredError}
  5600. */
  5601. async deleteAlbum(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  5602. const localVarAxiosArgs = await localVarAxiosParamCreator.deleteAlbum(id, options);
  5603. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5604. },
  5605. /**
  5606. *
  5607. * @param {*} [options] Override http request option.
  5608. * @throws {RequiredError}
  5609. */
  5610. async getAlbumCount(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AlbumCountResponseDto>> {
  5611. const localVarAxiosArgs = await localVarAxiosParamCreator.getAlbumCount(options);
  5612. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5613. },
  5614. /**
  5615. *
  5616. * @param {string} id
  5617. * @param {boolean} [withoutAssets]
  5618. * @param {string} [key]
  5619. * @param {*} [options] Override http request option.
  5620. * @throws {RequiredError}
  5621. */
  5622. async getAlbumInfo(id: string, withoutAssets?: boolean, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AlbumResponseDto>> {
  5623. const localVarAxiosArgs = await localVarAxiosParamCreator.getAlbumInfo(id, withoutAssets, key, options);
  5624. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5625. },
  5626. /**
  5627. *
  5628. * @param {boolean} [shared]
  5629. * @param {string} [assetId] Only returns albums that contain the asset Ignores the shared parameter undefined: get all albums
  5630. * @param {*} [options] Override http request option.
  5631. * @throws {RequiredError}
  5632. */
  5633. async getAllAlbums(shared?: boolean, assetId?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AlbumResponseDto>>> {
  5634. const localVarAxiosArgs = await localVarAxiosParamCreator.getAllAlbums(shared, assetId, options);
  5635. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5636. },
  5637. /**
  5638. *
  5639. * @param {string} id
  5640. * @param {BulkIdsDto} bulkIdsDto
  5641. * @param {*} [options] Override http request option.
  5642. * @throws {RequiredError}
  5643. */
  5644. async removeAssetFromAlbum(id: string, bulkIdsDto: BulkIdsDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<BulkIdResponseDto>>> {
  5645. const localVarAxiosArgs = await localVarAxiosParamCreator.removeAssetFromAlbum(id, bulkIdsDto, options);
  5646. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5647. },
  5648. /**
  5649. *
  5650. * @param {string} id
  5651. * @param {string} userId
  5652. * @param {*} [options] Override http request option.
  5653. * @throws {RequiredError}
  5654. */
  5655. async removeUserFromAlbum(id: string, userId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  5656. const localVarAxiosArgs = await localVarAxiosParamCreator.removeUserFromAlbum(id, userId, options);
  5657. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5658. },
  5659. /**
  5660. *
  5661. * @param {string} id
  5662. * @param {UpdateAlbumDto} updateAlbumDto
  5663. * @param {*} [options] Override http request option.
  5664. * @throws {RequiredError}
  5665. */
  5666. async updateAlbumInfo(id: string, updateAlbumDto: UpdateAlbumDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AlbumResponseDto>> {
  5667. const localVarAxiosArgs = await localVarAxiosParamCreator.updateAlbumInfo(id, updateAlbumDto, options);
  5668. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5669. },
  5670. }
  5671. };
  5672. /**
  5673. * AlbumApi - factory interface
  5674. * @export
  5675. */
  5676. export const AlbumApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  5677. const localVarFp = AlbumApiFp(configuration)
  5678. return {
  5679. /**
  5680. *
  5681. * @param {AlbumApiAddAssetsToAlbumRequest} requestParameters Request parameters.
  5682. * @param {*} [options] Override http request option.
  5683. * @throws {RequiredError}
  5684. */
  5685. addAssetsToAlbum(requestParameters: AlbumApiAddAssetsToAlbumRequest, options?: AxiosRequestConfig): AxiosPromise<Array<BulkIdResponseDto>> {
  5686. return localVarFp.addAssetsToAlbum(requestParameters.id, requestParameters.bulkIdsDto, requestParameters.key, options).then((request) => request(axios, basePath));
  5687. },
  5688. /**
  5689. *
  5690. * @param {AlbumApiAddUsersToAlbumRequest} requestParameters Request parameters.
  5691. * @param {*} [options] Override http request option.
  5692. * @throws {RequiredError}
  5693. */
  5694. addUsersToAlbum(requestParameters: AlbumApiAddUsersToAlbumRequest, options?: AxiosRequestConfig): AxiosPromise<AlbumResponseDto> {
  5695. return localVarFp.addUsersToAlbum(requestParameters.id, requestParameters.addUsersDto, options).then((request) => request(axios, basePath));
  5696. },
  5697. /**
  5698. *
  5699. * @param {AlbumApiCreateAlbumRequest} requestParameters Request parameters.
  5700. * @param {*} [options] Override http request option.
  5701. * @throws {RequiredError}
  5702. */
  5703. createAlbum(requestParameters: AlbumApiCreateAlbumRequest, options?: AxiosRequestConfig): AxiosPromise<AlbumResponseDto> {
  5704. return localVarFp.createAlbum(requestParameters.createAlbumDto, options).then((request) => request(axios, basePath));
  5705. },
  5706. /**
  5707. *
  5708. * @param {AlbumApiDeleteAlbumRequest} requestParameters Request parameters.
  5709. * @param {*} [options] Override http request option.
  5710. * @throws {RequiredError}
  5711. */
  5712. deleteAlbum(requestParameters: AlbumApiDeleteAlbumRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  5713. return localVarFp.deleteAlbum(requestParameters.id, options).then((request) => request(axios, basePath));
  5714. },
  5715. /**
  5716. *
  5717. * @param {*} [options] Override http request option.
  5718. * @throws {RequiredError}
  5719. */
  5720. getAlbumCount(options?: AxiosRequestConfig): AxiosPromise<AlbumCountResponseDto> {
  5721. return localVarFp.getAlbumCount(options).then((request) => request(axios, basePath));
  5722. },
  5723. /**
  5724. *
  5725. * @param {AlbumApiGetAlbumInfoRequest} requestParameters Request parameters.
  5726. * @param {*} [options] Override http request option.
  5727. * @throws {RequiredError}
  5728. */
  5729. getAlbumInfo(requestParameters: AlbumApiGetAlbumInfoRequest, options?: AxiosRequestConfig): AxiosPromise<AlbumResponseDto> {
  5730. return localVarFp.getAlbumInfo(requestParameters.id, requestParameters.withoutAssets, requestParameters.key, options).then((request) => request(axios, basePath));
  5731. },
  5732. /**
  5733. *
  5734. * @param {AlbumApiGetAllAlbumsRequest} requestParameters Request parameters.
  5735. * @param {*} [options] Override http request option.
  5736. * @throws {RequiredError}
  5737. */
  5738. getAllAlbums(requestParameters: AlbumApiGetAllAlbumsRequest = {}, options?: AxiosRequestConfig): AxiosPromise<Array<AlbumResponseDto>> {
  5739. return localVarFp.getAllAlbums(requestParameters.shared, requestParameters.assetId, options).then((request) => request(axios, basePath));
  5740. },
  5741. /**
  5742. *
  5743. * @param {AlbumApiRemoveAssetFromAlbumRequest} requestParameters Request parameters.
  5744. * @param {*} [options] Override http request option.
  5745. * @throws {RequiredError}
  5746. */
  5747. removeAssetFromAlbum(requestParameters: AlbumApiRemoveAssetFromAlbumRequest, options?: AxiosRequestConfig): AxiosPromise<Array<BulkIdResponseDto>> {
  5748. return localVarFp.removeAssetFromAlbum(requestParameters.id, requestParameters.bulkIdsDto, options).then((request) => request(axios, basePath));
  5749. },
  5750. /**
  5751. *
  5752. * @param {AlbumApiRemoveUserFromAlbumRequest} requestParameters Request parameters.
  5753. * @param {*} [options] Override http request option.
  5754. * @throws {RequiredError}
  5755. */
  5756. removeUserFromAlbum(requestParameters: AlbumApiRemoveUserFromAlbumRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  5757. return localVarFp.removeUserFromAlbum(requestParameters.id, requestParameters.userId, options).then((request) => request(axios, basePath));
  5758. },
  5759. /**
  5760. *
  5761. * @param {AlbumApiUpdateAlbumInfoRequest} requestParameters Request parameters.
  5762. * @param {*} [options] Override http request option.
  5763. * @throws {RequiredError}
  5764. */
  5765. updateAlbumInfo(requestParameters: AlbumApiUpdateAlbumInfoRequest, options?: AxiosRequestConfig): AxiosPromise<AlbumResponseDto> {
  5766. return localVarFp.updateAlbumInfo(requestParameters.id, requestParameters.updateAlbumDto, options).then((request) => request(axios, basePath));
  5767. },
  5768. };
  5769. };
  5770. /**
  5771. * Request parameters for addAssetsToAlbum operation in AlbumApi.
  5772. * @export
  5773. * @interface AlbumApiAddAssetsToAlbumRequest
  5774. */
  5775. export interface AlbumApiAddAssetsToAlbumRequest {
  5776. /**
  5777. *
  5778. * @type {string}
  5779. * @memberof AlbumApiAddAssetsToAlbum
  5780. */
  5781. readonly id: string
  5782. /**
  5783. *
  5784. * @type {BulkIdsDto}
  5785. * @memberof AlbumApiAddAssetsToAlbum
  5786. */
  5787. readonly bulkIdsDto: BulkIdsDto
  5788. /**
  5789. *
  5790. * @type {string}
  5791. * @memberof AlbumApiAddAssetsToAlbum
  5792. */
  5793. readonly key?: string
  5794. }
  5795. /**
  5796. * Request parameters for addUsersToAlbum operation in AlbumApi.
  5797. * @export
  5798. * @interface AlbumApiAddUsersToAlbumRequest
  5799. */
  5800. export interface AlbumApiAddUsersToAlbumRequest {
  5801. /**
  5802. *
  5803. * @type {string}
  5804. * @memberof AlbumApiAddUsersToAlbum
  5805. */
  5806. readonly id: string
  5807. /**
  5808. *
  5809. * @type {AddUsersDto}
  5810. * @memberof AlbumApiAddUsersToAlbum
  5811. */
  5812. readonly addUsersDto: AddUsersDto
  5813. }
  5814. /**
  5815. * Request parameters for createAlbum operation in AlbumApi.
  5816. * @export
  5817. * @interface AlbumApiCreateAlbumRequest
  5818. */
  5819. export interface AlbumApiCreateAlbumRequest {
  5820. /**
  5821. *
  5822. * @type {CreateAlbumDto}
  5823. * @memberof AlbumApiCreateAlbum
  5824. */
  5825. readonly createAlbumDto: CreateAlbumDto
  5826. }
  5827. /**
  5828. * Request parameters for deleteAlbum operation in AlbumApi.
  5829. * @export
  5830. * @interface AlbumApiDeleteAlbumRequest
  5831. */
  5832. export interface AlbumApiDeleteAlbumRequest {
  5833. /**
  5834. *
  5835. * @type {string}
  5836. * @memberof AlbumApiDeleteAlbum
  5837. */
  5838. readonly id: string
  5839. }
  5840. /**
  5841. * Request parameters for getAlbumInfo operation in AlbumApi.
  5842. * @export
  5843. * @interface AlbumApiGetAlbumInfoRequest
  5844. */
  5845. export interface AlbumApiGetAlbumInfoRequest {
  5846. /**
  5847. *
  5848. * @type {string}
  5849. * @memberof AlbumApiGetAlbumInfo
  5850. */
  5851. readonly id: string
  5852. /**
  5853. *
  5854. * @type {boolean}
  5855. * @memberof AlbumApiGetAlbumInfo
  5856. */
  5857. readonly withoutAssets?: boolean
  5858. /**
  5859. *
  5860. * @type {string}
  5861. * @memberof AlbumApiGetAlbumInfo
  5862. */
  5863. readonly key?: string
  5864. }
  5865. /**
  5866. * Request parameters for getAllAlbums operation in AlbumApi.
  5867. * @export
  5868. * @interface AlbumApiGetAllAlbumsRequest
  5869. */
  5870. export interface AlbumApiGetAllAlbumsRequest {
  5871. /**
  5872. *
  5873. * @type {boolean}
  5874. * @memberof AlbumApiGetAllAlbums
  5875. */
  5876. readonly shared?: boolean
  5877. /**
  5878. * Only returns albums that contain the asset Ignores the shared parameter undefined: get all albums
  5879. * @type {string}
  5880. * @memberof AlbumApiGetAllAlbums
  5881. */
  5882. readonly assetId?: string
  5883. }
  5884. /**
  5885. * Request parameters for removeAssetFromAlbum operation in AlbumApi.
  5886. * @export
  5887. * @interface AlbumApiRemoveAssetFromAlbumRequest
  5888. */
  5889. export interface AlbumApiRemoveAssetFromAlbumRequest {
  5890. /**
  5891. *
  5892. * @type {string}
  5893. * @memberof AlbumApiRemoveAssetFromAlbum
  5894. */
  5895. readonly id: string
  5896. /**
  5897. *
  5898. * @type {BulkIdsDto}
  5899. * @memberof AlbumApiRemoveAssetFromAlbum
  5900. */
  5901. readonly bulkIdsDto: BulkIdsDto
  5902. }
  5903. /**
  5904. * Request parameters for removeUserFromAlbum operation in AlbumApi.
  5905. * @export
  5906. * @interface AlbumApiRemoveUserFromAlbumRequest
  5907. */
  5908. export interface AlbumApiRemoveUserFromAlbumRequest {
  5909. /**
  5910. *
  5911. * @type {string}
  5912. * @memberof AlbumApiRemoveUserFromAlbum
  5913. */
  5914. readonly id: string
  5915. /**
  5916. *
  5917. * @type {string}
  5918. * @memberof AlbumApiRemoveUserFromAlbum
  5919. */
  5920. readonly userId: string
  5921. }
  5922. /**
  5923. * Request parameters for updateAlbumInfo operation in AlbumApi.
  5924. * @export
  5925. * @interface AlbumApiUpdateAlbumInfoRequest
  5926. */
  5927. export interface AlbumApiUpdateAlbumInfoRequest {
  5928. /**
  5929. *
  5930. * @type {string}
  5931. * @memberof AlbumApiUpdateAlbumInfo
  5932. */
  5933. readonly id: string
  5934. /**
  5935. *
  5936. * @type {UpdateAlbumDto}
  5937. * @memberof AlbumApiUpdateAlbumInfo
  5938. */
  5939. readonly updateAlbumDto: UpdateAlbumDto
  5940. }
  5941. /**
  5942. * AlbumApi - object-oriented interface
  5943. * @export
  5944. * @class AlbumApi
  5945. * @extends {BaseAPI}
  5946. */
  5947. export class AlbumApi extends BaseAPI {
  5948. /**
  5949. *
  5950. * @param {AlbumApiAddAssetsToAlbumRequest} requestParameters Request parameters.
  5951. * @param {*} [options] Override http request option.
  5952. * @throws {RequiredError}
  5953. * @memberof AlbumApi
  5954. */
  5955. public addAssetsToAlbum(requestParameters: AlbumApiAddAssetsToAlbumRequest, options?: AxiosRequestConfig) {
  5956. return AlbumApiFp(this.configuration).addAssetsToAlbum(requestParameters.id, requestParameters.bulkIdsDto, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  5957. }
  5958. /**
  5959. *
  5960. * @param {AlbumApiAddUsersToAlbumRequest} requestParameters Request parameters.
  5961. * @param {*} [options] Override http request option.
  5962. * @throws {RequiredError}
  5963. * @memberof AlbumApi
  5964. */
  5965. public addUsersToAlbum(requestParameters: AlbumApiAddUsersToAlbumRequest, options?: AxiosRequestConfig) {
  5966. return AlbumApiFp(this.configuration).addUsersToAlbum(requestParameters.id, requestParameters.addUsersDto, options).then((request) => request(this.axios, this.basePath));
  5967. }
  5968. /**
  5969. *
  5970. * @param {AlbumApiCreateAlbumRequest} requestParameters Request parameters.
  5971. * @param {*} [options] Override http request option.
  5972. * @throws {RequiredError}
  5973. * @memberof AlbumApi
  5974. */
  5975. public createAlbum(requestParameters: AlbumApiCreateAlbumRequest, options?: AxiosRequestConfig) {
  5976. return AlbumApiFp(this.configuration).createAlbum(requestParameters.createAlbumDto, options).then((request) => request(this.axios, this.basePath));
  5977. }
  5978. /**
  5979. *
  5980. * @param {AlbumApiDeleteAlbumRequest} requestParameters Request parameters.
  5981. * @param {*} [options] Override http request option.
  5982. * @throws {RequiredError}
  5983. * @memberof AlbumApi
  5984. */
  5985. public deleteAlbum(requestParameters: AlbumApiDeleteAlbumRequest, options?: AxiosRequestConfig) {
  5986. return AlbumApiFp(this.configuration).deleteAlbum(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  5987. }
  5988. /**
  5989. *
  5990. * @param {*} [options] Override http request option.
  5991. * @throws {RequiredError}
  5992. * @memberof AlbumApi
  5993. */
  5994. public getAlbumCount(options?: AxiosRequestConfig) {
  5995. return AlbumApiFp(this.configuration).getAlbumCount(options).then((request) => request(this.axios, this.basePath));
  5996. }
  5997. /**
  5998. *
  5999. * @param {AlbumApiGetAlbumInfoRequest} requestParameters Request parameters.
  6000. * @param {*} [options] Override http request option.
  6001. * @throws {RequiredError}
  6002. * @memberof AlbumApi
  6003. */
  6004. public getAlbumInfo(requestParameters: AlbumApiGetAlbumInfoRequest, options?: AxiosRequestConfig) {
  6005. return AlbumApiFp(this.configuration).getAlbumInfo(requestParameters.id, requestParameters.withoutAssets, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  6006. }
  6007. /**
  6008. *
  6009. * @param {AlbumApiGetAllAlbumsRequest} requestParameters Request parameters.
  6010. * @param {*} [options] Override http request option.
  6011. * @throws {RequiredError}
  6012. * @memberof AlbumApi
  6013. */
  6014. public getAllAlbums(requestParameters: AlbumApiGetAllAlbumsRequest = {}, options?: AxiosRequestConfig) {
  6015. return AlbumApiFp(this.configuration).getAllAlbums(requestParameters.shared, requestParameters.assetId, options).then((request) => request(this.axios, this.basePath));
  6016. }
  6017. /**
  6018. *
  6019. * @param {AlbumApiRemoveAssetFromAlbumRequest} requestParameters Request parameters.
  6020. * @param {*} [options] Override http request option.
  6021. * @throws {RequiredError}
  6022. * @memberof AlbumApi
  6023. */
  6024. public removeAssetFromAlbum(requestParameters: AlbumApiRemoveAssetFromAlbumRequest, options?: AxiosRequestConfig) {
  6025. return AlbumApiFp(this.configuration).removeAssetFromAlbum(requestParameters.id, requestParameters.bulkIdsDto, options).then((request) => request(this.axios, this.basePath));
  6026. }
  6027. /**
  6028. *
  6029. * @param {AlbumApiRemoveUserFromAlbumRequest} requestParameters Request parameters.
  6030. * @param {*} [options] Override http request option.
  6031. * @throws {RequiredError}
  6032. * @memberof AlbumApi
  6033. */
  6034. public removeUserFromAlbum(requestParameters: AlbumApiRemoveUserFromAlbumRequest, options?: AxiosRequestConfig) {
  6035. return AlbumApiFp(this.configuration).removeUserFromAlbum(requestParameters.id, requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
  6036. }
  6037. /**
  6038. *
  6039. * @param {AlbumApiUpdateAlbumInfoRequest} requestParameters Request parameters.
  6040. * @param {*} [options] Override http request option.
  6041. * @throws {RequiredError}
  6042. * @memberof AlbumApi
  6043. */
  6044. public updateAlbumInfo(requestParameters: AlbumApiUpdateAlbumInfoRequest, options?: AxiosRequestConfig) {
  6045. return AlbumApiFp(this.configuration).updateAlbumInfo(requestParameters.id, requestParameters.updateAlbumDto, options).then((request) => request(this.axios, this.basePath));
  6046. }
  6047. }
  6048. /**
  6049. * AssetApi - axios parameter creator
  6050. * @export
  6051. */
  6052. export const AssetApiAxiosParamCreator = function (configuration?: Configuration) {
  6053. return {
  6054. /**
  6055. * Checks if assets exist by checksums
  6056. * @param {AssetBulkUploadCheckDto} assetBulkUploadCheckDto
  6057. * @param {*} [options] Override http request option.
  6058. * @throws {RequiredError}
  6059. */
  6060. bulkUploadCheck: async (assetBulkUploadCheckDto: AssetBulkUploadCheckDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6061. // verify required parameter 'assetBulkUploadCheckDto' is not null or undefined
  6062. assertParamExists('bulkUploadCheck', 'assetBulkUploadCheckDto', assetBulkUploadCheckDto)
  6063. const localVarPath = `/asset/bulk-upload-check`;
  6064. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6065. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6066. let baseOptions;
  6067. if (configuration) {
  6068. baseOptions = configuration.baseOptions;
  6069. }
  6070. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  6071. const localVarHeaderParameter = {} as any;
  6072. const localVarQueryParameter = {} as any;
  6073. // authentication cookie required
  6074. // authentication api_key required
  6075. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6076. // authentication bearer required
  6077. // http bearer authentication required
  6078. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6079. localVarHeaderParameter['Content-Type'] = 'application/json';
  6080. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6081. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6082. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6083. localVarRequestOptions.data = serializeDataIfNeeded(assetBulkUploadCheckDto, localVarRequestOptions, configuration)
  6084. return {
  6085. url: toPathString(localVarUrlObj),
  6086. options: localVarRequestOptions,
  6087. };
  6088. },
  6089. /**
  6090. * Checks if multiple assets exist on the server and returns all existing - used by background backup
  6091. * @param {CheckExistingAssetsDto} checkExistingAssetsDto
  6092. * @param {*} [options] Override http request option.
  6093. * @throws {RequiredError}
  6094. */
  6095. checkExistingAssets: async (checkExistingAssetsDto: CheckExistingAssetsDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6096. // verify required parameter 'checkExistingAssetsDto' is not null or undefined
  6097. assertParamExists('checkExistingAssets', 'checkExistingAssetsDto', checkExistingAssetsDto)
  6098. const localVarPath = `/asset/exist`;
  6099. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6100. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6101. let baseOptions;
  6102. if (configuration) {
  6103. baseOptions = configuration.baseOptions;
  6104. }
  6105. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  6106. const localVarHeaderParameter = {} as any;
  6107. const localVarQueryParameter = {} as any;
  6108. // authentication cookie required
  6109. // authentication api_key required
  6110. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6111. // authentication bearer required
  6112. // http bearer authentication required
  6113. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6114. localVarHeaderParameter['Content-Type'] = 'application/json';
  6115. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6116. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6117. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6118. localVarRequestOptions.data = serializeDataIfNeeded(checkExistingAssetsDto, localVarRequestOptions, configuration)
  6119. return {
  6120. url: toPathString(localVarUrlObj),
  6121. options: localVarRequestOptions,
  6122. };
  6123. },
  6124. /**
  6125. *
  6126. * @param {AssetBulkDeleteDto} assetBulkDeleteDto
  6127. * @param {*} [options] Override http request option.
  6128. * @throws {RequiredError}
  6129. */
  6130. deleteAssets: async (assetBulkDeleteDto: AssetBulkDeleteDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6131. // verify required parameter 'assetBulkDeleteDto' is not null or undefined
  6132. assertParamExists('deleteAssets', 'assetBulkDeleteDto', assetBulkDeleteDto)
  6133. const localVarPath = `/asset`;
  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: 'DELETE', ...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. localVarHeaderParameter['Content-Type'] = 'application/json';
  6150. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6151. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6152. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6153. localVarRequestOptions.data = serializeDataIfNeeded(assetBulkDeleteDto, localVarRequestOptions, configuration)
  6154. return {
  6155. url: toPathString(localVarUrlObj),
  6156. options: localVarRequestOptions,
  6157. };
  6158. },
  6159. /**
  6160. *
  6161. * @param {AssetIdsDto} assetIdsDto
  6162. * @param {string} [key]
  6163. * @param {*} [options] Override http request option.
  6164. * @throws {RequiredError}
  6165. */
  6166. downloadArchive: async (assetIdsDto: AssetIdsDto, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6167. // verify required parameter 'assetIdsDto' is not null or undefined
  6168. assertParamExists('downloadArchive', 'assetIdsDto', assetIdsDto)
  6169. const localVarPath = `/asset/download/archive`;
  6170. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6171. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6172. let baseOptions;
  6173. if (configuration) {
  6174. baseOptions = configuration.baseOptions;
  6175. }
  6176. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  6177. const localVarHeaderParameter = {} as any;
  6178. const localVarQueryParameter = {} as any;
  6179. // authentication cookie required
  6180. // authentication api_key required
  6181. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6182. // authentication bearer required
  6183. // http bearer authentication required
  6184. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6185. if (key !== undefined) {
  6186. localVarQueryParameter['key'] = key;
  6187. }
  6188. localVarHeaderParameter['Content-Type'] = 'application/json';
  6189. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6190. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6191. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6192. localVarRequestOptions.data = serializeDataIfNeeded(assetIdsDto, localVarRequestOptions, configuration)
  6193. return {
  6194. url: toPathString(localVarUrlObj),
  6195. options: localVarRequestOptions,
  6196. };
  6197. },
  6198. /**
  6199. *
  6200. * @param {string} id
  6201. * @param {string} [key]
  6202. * @param {*} [options] Override http request option.
  6203. * @throws {RequiredError}
  6204. */
  6205. downloadFile: async (id: string, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6206. // verify required parameter 'id' is not null or undefined
  6207. assertParamExists('downloadFile', 'id', id)
  6208. const localVarPath = `/asset/download/{id}`
  6209. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  6210. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6211. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6212. let baseOptions;
  6213. if (configuration) {
  6214. baseOptions = configuration.baseOptions;
  6215. }
  6216. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  6217. const localVarHeaderParameter = {} as any;
  6218. const localVarQueryParameter = {} as any;
  6219. // authentication cookie required
  6220. // authentication api_key required
  6221. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6222. // authentication bearer required
  6223. // http bearer authentication required
  6224. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6225. if (key !== undefined) {
  6226. localVarQueryParameter['key'] = key;
  6227. }
  6228. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6229. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6230. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6231. return {
  6232. url: toPathString(localVarUrlObj),
  6233. options: localVarRequestOptions,
  6234. };
  6235. },
  6236. /**
  6237. *
  6238. * @param {*} [options] Override http request option.
  6239. * @throws {RequiredError}
  6240. */
  6241. emptyTrash: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6242. const localVarPath = `/asset/trash/empty`;
  6243. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6244. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6245. let baseOptions;
  6246. if (configuration) {
  6247. baseOptions = configuration.baseOptions;
  6248. }
  6249. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  6250. const localVarHeaderParameter = {} as any;
  6251. const localVarQueryParameter = {} as any;
  6252. // authentication cookie required
  6253. // authentication api_key required
  6254. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6255. // authentication bearer required
  6256. // http bearer authentication required
  6257. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6258. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6259. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6260. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6261. return {
  6262. url: toPathString(localVarUrlObj),
  6263. options: localVarRequestOptions,
  6264. };
  6265. },
  6266. /**
  6267. * Get all AssetEntity belong to the user
  6268. * @param {string} [userId]
  6269. * @param {boolean} [isFavorite]
  6270. * @param {boolean} [isArchived]
  6271. * @param {number} [skip]
  6272. * @param {string} [updatedAfter]
  6273. * @param {string} [ifNoneMatch] ETag of data already cached on the client
  6274. * @param {*} [options] Override http request option.
  6275. * @throws {RequiredError}
  6276. */
  6277. getAllAssets: async (userId?: string, isFavorite?: boolean, isArchived?: boolean, skip?: number, updatedAfter?: string, ifNoneMatch?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6278. const localVarPath = `/asset`;
  6279. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6280. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6281. let baseOptions;
  6282. if (configuration) {
  6283. baseOptions = configuration.baseOptions;
  6284. }
  6285. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6286. const localVarHeaderParameter = {} as any;
  6287. const localVarQueryParameter = {} as any;
  6288. // authentication cookie required
  6289. // authentication api_key required
  6290. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6291. // authentication bearer required
  6292. // http bearer authentication required
  6293. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6294. if (userId !== undefined) {
  6295. localVarQueryParameter['userId'] = userId;
  6296. }
  6297. if (isFavorite !== undefined) {
  6298. localVarQueryParameter['isFavorite'] = isFavorite;
  6299. }
  6300. if (isArchived !== undefined) {
  6301. localVarQueryParameter['isArchived'] = isArchived;
  6302. }
  6303. if (skip !== undefined) {
  6304. localVarQueryParameter['skip'] = skip;
  6305. }
  6306. if (updatedAfter !== undefined) {
  6307. localVarQueryParameter['updatedAfter'] = (updatedAfter as any instanceof Date) ?
  6308. (updatedAfter as any).toISOString() :
  6309. updatedAfter;
  6310. }
  6311. if (ifNoneMatch != null) {
  6312. localVarHeaderParameter['if-none-match'] = String(ifNoneMatch);
  6313. }
  6314. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6315. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6316. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6317. return {
  6318. url: toPathString(localVarUrlObj),
  6319. options: localVarRequestOptions,
  6320. };
  6321. },
  6322. /**
  6323. * Get a single asset\'s information
  6324. * @param {string} id
  6325. * @param {string} [key]
  6326. * @param {*} [options] Override http request option.
  6327. * @throws {RequiredError}
  6328. */
  6329. getAssetById: async (id: string, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6330. // verify required parameter 'id' is not null or undefined
  6331. assertParamExists('getAssetById', 'id', id)
  6332. const localVarPath = `/asset/assetById/{id}`
  6333. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  6334. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6335. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6336. let baseOptions;
  6337. if (configuration) {
  6338. baseOptions = configuration.baseOptions;
  6339. }
  6340. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6341. const localVarHeaderParameter = {} as any;
  6342. const localVarQueryParameter = {} as any;
  6343. // authentication cookie required
  6344. // authentication api_key required
  6345. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6346. // authentication bearer required
  6347. // http bearer authentication required
  6348. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6349. if (key !== undefined) {
  6350. localVarQueryParameter['key'] = key;
  6351. }
  6352. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6353. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6354. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6355. return {
  6356. url: toPathString(localVarUrlObj),
  6357. options: localVarRequestOptions,
  6358. };
  6359. },
  6360. /**
  6361. *
  6362. * @param {*} [options] Override http request option.
  6363. * @throws {RequiredError}
  6364. */
  6365. getAssetSearchTerms: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6366. const localVarPath = `/asset/search-terms`;
  6367. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6368. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6369. let baseOptions;
  6370. if (configuration) {
  6371. baseOptions = configuration.baseOptions;
  6372. }
  6373. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6374. const localVarHeaderParameter = {} as any;
  6375. const localVarQueryParameter = {} as any;
  6376. // authentication cookie required
  6377. // authentication api_key required
  6378. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6379. // authentication bearer required
  6380. // http bearer authentication required
  6381. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6382. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6383. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6384. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6385. return {
  6386. url: toPathString(localVarUrlObj),
  6387. options: localVarRequestOptions,
  6388. };
  6389. },
  6390. /**
  6391. *
  6392. * @param {boolean} [isArchived]
  6393. * @param {boolean} [isFavorite]
  6394. * @param {boolean} [isTrashed]
  6395. * @param {*} [options] Override http request option.
  6396. * @throws {RequiredError}
  6397. */
  6398. getAssetStats: async (isArchived?: boolean, isFavorite?: boolean, isTrashed?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6399. const localVarPath = `/asset/statistics`;
  6400. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6401. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6402. let baseOptions;
  6403. if (configuration) {
  6404. baseOptions = configuration.baseOptions;
  6405. }
  6406. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6407. const localVarHeaderParameter = {} as any;
  6408. const localVarQueryParameter = {} as any;
  6409. // authentication cookie required
  6410. // authentication api_key required
  6411. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6412. // authentication bearer required
  6413. // http bearer authentication required
  6414. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6415. if (isArchived !== undefined) {
  6416. localVarQueryParameter['isArchived'] = isArchived;
  6417. }
  6418. if (isFavorite !== undefined) {
  6419. localVarQueryParameter['isFavorite'] = isFavorite;
  6420. }
  6421. if (isTrashed !== undefined) {
  6422. localVarQueryParameter['isTrashed'] = isTrashed;
  6423. }
  6424. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6425. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6426. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6427. return {
  6428. url: toPathString(localVarUrlObj),
  6429. options: localVarRequestOptions,
  6430. };
  6431. },
  6432. /**
  6433. *
  6434. * @param {string} id
  6435. * @param {ThumbnailFormat} [format]
  6436. * @param {string} [key]
  6437. * @param {*} [options] Override http request option.
  6438. * @throws {RequiredError}
  6439. */
  6440. getAssetThumbnail: async (id: string, format?: ThumbnailFormat, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6441. // verify required parameter 'id' is not null or undefined
  6442. assertParamExists('getAssetThumbnail', 'id', id)
  6443. const localVarPath = `/asset/thumbnail/{id}`
  6444. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  6445. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6446. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6447. let baseOptions;
  6448. if (configuration) {
  6449. baseOptions = configuration.baseOptions;
  6450. }
  6451. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6452. const localVarHeaderParameter = {} as any;
  6453. const localVarQueryParameter = {} as any;
  6454. // authentication cookie required
  6455. // authentication api_key required
  6456. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6457. // authentication bearer required
  6458. // http bearer authentication required
  6459. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6460. if (format !== undefined) {
  6461. localVarQueryParameter['format'] = format;
  6462. }
  6463. if (key !== undefined) {
  6464. localVarQueryParameter['key'] = key;
  6465. }
  6466. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6467. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6468. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6469. return {
  6470. url: toPathString(localVarUrlObj),
  6471. options: localVarRequestOptions,
  6472. };
  6473. },
  6474. /**
  6475. *
  6476. * @param {TimeBucketSize} size
  6477. * @param {string} timeBucket
  6478. * @param {string} [userId]
  6479. * @param {string} [albumId]
  6480. * @param {string} [personId]
  6481. * @param {boolean} [isArchived]
  6482. * @param {boolean} [isFavorite]
  6483. * @param {boolean} [isTrashed]
  6484. * @param {boolean} [withStacked]
  6485. * @param {string} [key]
  6486. * @param {*} [options] Override http request option.
  6487. * @throws {RequiredError}
  6488. */
  6489. 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> => {
  6490. // verify required parameter 'size' is not null or undefined
  6491. assertParamExists('getByTimeBucket', 'size', size)
  6492. // verify required parameter 'timeBucket' is not null or undefined
  6493. assertParamExists('getByTimeBucket', 'timeBucket', timeBucket)
  6494. const localVarPath = `/asset/time-bucket`;
  6495. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6496. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6497. let baseOptions;
  6498. if (configuration) {
  6499. baseOptions = configuration.baseOptions;
  6500. }
  6501. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6502. const localVarHeaderParameter = {} as any;
  6503. const localVarQueryParameter = {} as any;
  6504. // authentication cookie required
  6505. // authentication api_key required
  6506. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6507. // authentication bearer required
  6508. // http bearer authentication required
  6509. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6510. if (size !== undefined) {
  6511. localVarQueryParameter['size'] = size;
  6512. }
  6513. if (userId !== undefined) {
  6514. localVarQueryParameter['userId'] = userId;
  6515. }
  6516. if (albumId !== undefined) {
  6517. localVarQueryParameter['albumId'] = albumId;
  6518. }
  6519. if (personId !== undefined) {
  6520. localVarQueryParameter['personId'] = personId;
  6521. }
  6522. if (isArchived !== undefined) {
  6523. localVarQueryParameter['isArchived'] = isArchived;
  6524. }
  6525. if (isFavorite !== undefined) {
  6526. localVarQueryParameter['isFavorite'] = isFavorite;
  6527. }
  6528. if (isTrashed !== undefined) {
  6529. localVarQueryParameter['isTrashed'] = isTrashed;
  6530. }
  6531. if (withStacked !== undefined) {
  6532. localVarQueryParameter['withStacked'] = withStacked;
  6533. }
  6534. if (timeBucket !== undefined) {
  6535. localVarQueryParameter['timeBucket'] = timeBucket;
  6536. }
  6537. if (key !== undefined) {
  6538. localVarQueryParameter['key'] = key;
  6539. }
  6540. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6541. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6542. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6543. return {
  6544. url: toPathString(localVarUrlObj),
  6545. options: localVarRequestOptions,
  6546. };
  6547. },
  6548. /**
  6549. *
  6550. * @param {*} [options] Override http request option.
  6551. * @throws {RequiredError}
  6552. */
  6553. getCuratedLocations: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6554. const localVarPath = `/asset/curated-locations`;
  6555. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6556. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6557. let baseOptions;
  6558. if (configuration) {
  6559. baseOptions = configuration.baseOptions;
  6560. }
  6561. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6562. const localVarHeaderParameter = {} as any;
  6563. const localVarQueryParameter = {} as any;
  6564. // authentication cookie required
  6565. // authentication api_key required
  6566. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6567. // authentication bearer required
  6568. // http bearer authentication required
  6569. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6570. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6571. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6572. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6573. return {
  6574. url: toPathString(localVarUrlObj),
  6575. options: localVarRequestOptions,
  6576. };
  6577. },
  6578. /**
  6579. *
  6580. * @param {*} [options] Override http request option.
  6581. * @throws {RequiredError}
  6582. */
  6583. getCuratedObjects: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6584. const localVarPath = `/asset/curated-objects`;
  6585. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6586. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6587. let baseOptions;
  6588. if (configuration) {
  6589. baseOptions = configuration.baseOptions;
  6590. }
  6591. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6592. const localVarHeaderParameter = {} as any;
  6593. const localVarQueryParameter = {} as any;
  6594. // authentication cookie required
  6595. // authentication api_key required
  6596. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6597. // authentication bearer required
  6598. // http bearer authentication required
  6599. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6600. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6601. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6602. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6603. return {
  6604. url: toPathString(localVarUrlObj),
  6605. options: localVarRequestOptions,
  6606. };
  6607. },
  6608. /**
  6609. *
  6610. * @param {DownloadInfoDto} downloadInfoDto
  6611. * @param {string} [key]
  6612. * @param {*} [options] Override http request option.
  6613. * @throws {RequiredError}
  6614. */
  6615. getDownloadInfo: async (downloadInfoDto: DownloadInfoDto, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6616. // verify required parameter 'downloadInfoDto' is not null or undefined
  6617. assertParamExists('getDownloadInfo', 'downloadInfoDto', downloadInfoDto)
  6618. const localVarPath = `/asset/download/info`;
  6619. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6620. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6621. let baseOptions;
  6622. if (configuration) {
  6623. baseOptions = configuration.baseOptions;
  6624. }
  6625. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  6626. const localVarHeaderParameter = {} as any;
  6627. const localVarQueryParameter = {} as any;
  6628. // authentication cookie required
  6629. // authentication api_key required
  6630. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6631. // authentication bearer required
  6632. // http bearer authentication required
  6633. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6634. if (key !== undefined) {
  6635. localVarQueryParameter['key'] = key;
  6636. }
  6637. localVarHeaderParameter['Content-Type'] = 'application/json';
  6638. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6639. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6640. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6641. localVarRequestOptions.data = serializeDataIfNeeded(downloadInfoDto, localVarRequestOptions, configuration)
  6642. return {
  6643. url: toPathString(localVarUrlObj),
  6644. options: localVarRequestOptions,
  6645. };
  6646. },
  6647. /**
  6648. *
  6649. * @param {boolean} [isArchived]
  6650. * @param {boolean} [isFavorite]
  6651. * @param {string} [fileCreatedAfter]
  6652. * @param {string} [fileCreatedBefore]
  6653. * @param {*} [options] Override http request option.
  6654. * @throws {RequiredError}
  6655. */
  6656. getMapMarkers: async (isArchived?: boolean, isFavorite?: boolean, fileCreatedAfter?: string, fileCreatedBefore?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6657. const localVarPath = `/asset/map-marker`;
  6658. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6659. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6660. let baseOptions;
  6661. if (configuration) {
  6662. baseOptions = configuration.baseOptions;
  6663. }
  6664. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6665. const localVarHeaderParameter = {} as any;
  6666. const localVarQueryParameter = {} as any;
  6667. // authentication cookie required
  6668. // authentication api_key required
  6669. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6670. // authentication bearer required
  6671. // http bearer authentication required
  6672. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6673. if (isArchived !== undefined) {
  6674. localVarQueryParameter['isArchived'] = isArchived;
  6675. }
  6676. if (isFavorite !== undefined) {
  6677. localVarQueryParameter['isFavorite'] = isFavorite;
  6678. }
  6679. if (fileCreatedAfter !== undefined) {
  6680. localVarQueryParameter['fileCreatedAfter'] = (fileCreatedAfter as any instanceof Date) ?
  6681. (fileCreatedAfter as any).toISOString() :
  6682. fileCreatedAfter;
  6683. }
  6684. if (fileCreatedBefore !== undefined) {
  6685. localVarQueryParameter['fileCreatedBefore'] = (fileCreatedBefore as any instanceof Date) ?
  6686. (fileCreatedBefore as any).toISOString() :
  6687. fileCreatedBefore;
  6688. }
  6689. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6690. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6691. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6692. return {
  6693. url: toPathString(localVarUrlObj),
  6694. options: localVarRequestOptions,
  6695. };
  6696. },
  6697. /**
  6698. *
  6699. * @param {number} day
  6700. * @param {number} month
  6701. * @param {*} [options] Override http request option.
  6702. * @throws {RequiredError}
  6703. */
  6704. getMemoryLane: async (day: number, month: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6705. // verify required parameter 'day' is not null or undefined
  6706. assertParamExists('getMemoryLane', 'day', day)
  6707. // verify required parameter 'month' is not null or undefined
  6708. assertParamExists('getMemoryLane', 'month', month)
  6709. const localVarPath = `/asset/memory-lane`;
  6710. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6711. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6712. let baseOptions;
  6713. if (configuration) {
  6714. baseOptions = configuration.baseOptions;
  6715. }
  6716. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6717. const localVarHeaderParameter = {} as any;
  6718. const localVarQueryParameter = {} as any;
  6719. // authentication cookie required
  6720. // authentication api_key required
  6721. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6722. // authentication bearer required
  6723. // http bearer authentication required
  6724. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6725. if (day !== undefined) {
  6726. localVarQueryParameter['day'] = day;
  6727. }
  6728. if (month !== undefined) {
  6729. localVarQueryParameter['month'] = month;
  6730. }
  6731. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6732. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6733. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6734. return {
  6735. url: toPathString(localVarUrlObj),
  6736. options: localVarRequestOptions,
  6737. };
  6738. },
  6739. /**
  6740. *
  6741. * @param {number} [count]
  6742. * @param {*} [options] Override http request option.
  6743. * @throws {RequiredError}
  6744. */
  6745. getRandom: async (count?: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6746. const localVarPath = `/asset/random`;
  6747. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6748. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6749. let baseOptions;
  6750. if (configuration) {
  6751. baseOptions = configuration.baseOptions;
  6752. }
  6753. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6754. const localVarHeaderParameter = {} as any;
  6755. const localVarQueryParameter = {} as any;
  6756. // authentication cookie required
  6757. // authentication api_key required
  6758. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6759. // authentication bearer required
  6760. // http bearer authentication required
  6761. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6762. if (count !== undefined) {
  6763. localVarQueryParameter['count'] = count;
  6764. }
  6765. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6766. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6767. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6768. return {
  6769. url: toPathString(localVarUrlObj),
  6770. options: localVarRequestOptions,
  6771. };
  6772. },
  6773. /**
  6774. *
  6775. * @param {TimeBucketSize} size
  6776. * @param {string} [userId]
  6777. * @param {string} [albumId]
  6778. * @param {string} [personId]
  6779. * @param {boolean} [isArchived]
  6780. * @param {boolean} [isFavorite]
  6781. * @param {boolean} [isTrashed]
  6782. * @param {boolean} [withStacked]
  6783. * @param {string} [key]
  6784. * @param {*} [options] Override http request option.
  6785. * @throws {RequiredError}
  6786. */
  6787. getTimeBuckets: async (size: TimeBucketSize, userId?: string, albumId?: string, personId?: string, isArchived?: boolean, isFavorite?: boolean, isTrashed?: boolean, withStacked?: boolean, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6788. // verify required parameter 'size' is not null or undefined
  6789. assertParamExists('getTimeBuckets', 'size', size)
  6790. const localVarPath = `/asset/time-buckets`;
  6791. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6792. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6793. let baseOptions;
  6794. if (configuration) {
  6795. baseOptions = configuration.baseOptions;
  6796. }
  6797. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6798. const localVarHeaderParameter = {} as any;
  6799. const localVarQueryParameter = {} as any;
  6800. // authentication cookie required
  6801. // authentication api_key required
  6802. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6803. // authentication bearer required
  6804. // http bearer authentication required
  6805. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6806. if (size !== undefined) {
  6807. localVarQueryParameter['size'] = size;
  6808. }
  6809. if (userId !== undefined) {
  6810. localVarQueryParameter['userId'] = userId;
  6811. }
  6812. if (albumId !== undefined) {
  6813. localVarQueryParameter['albumId'] = albumId;
  6814. }
  6815. if (personId !== undefined) {
  6816. localVarQueryParameter['personId'] = personId;
  6817. }
  6818. if (isArchived !== undefined) {
  6819. localVarQueryParameter['isArchived'] = isArchived;
  6820. }
  6821. if (isFavorite !== undefined) {
  6822. localVarQueryParameter['isFavorite'] = isFavorite;
  6823. }
  6824. if (isTrashed !== undefined) {
  6825. localVarQueryParameter['isTrashed'] = isTrashed;
  6826. }
  6827. if (withStacked !== undefined) {
  6828. localVarQueryParameter['withStacked'] = withStacked;
  6829. }
  6830. if (key !== undefined) {
  6831. localVarQueryParameter['key'] = key;
  6832. }
  6833. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6834. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6835. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6836. return {
  6837. url: toPathString(localVarUrlObj),
  6838. options: localVarRequestOptions,
  6839. };
  6840. },
  6841. /**
  6842. * Get all asset of a device that are in the database, ID only.
  6843. * @param {string} deviceId
  6844. * @param {*} [options] Override http request option.
  6845. * @throws {RequiredError}
  6846. */
  6847. getUserAssetsByDeviceId: async (deviceId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6848. // verify required parameter 'deviceId' is not null or undefined
  6849. assertParamExists('getUserAssetsByDeviceId', 'deviceId', deviceId)
  6850. const localVarPath = `/asset/{deviceId}`
  6851. .replace(`{${"deviceId"}}`, encodeURIComponent(String(deviceId)));
  6852. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6853. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6854. let baseOptions;
  6855. if (configuration) {
  6856. baseOptions = configuration.baseOptions;
  6857. }
  6858. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6859. const localVarHeaderParameter = {} as any;
  6860. const localVarQueryParameter = {} as any;
  6861. // authentication cookie required
  6862. // authentication api_key required
  6863. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6864. // authentication bearer required
  6865. // http bearer authentication required
  6866. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6867. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6868. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6869. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6870. return {
  6871. url: toPathString(localVarUrlObj),
  6872. options: localVarRequestOptions,
  6873. };
  6874. },
  6875. /**
  6876. *
  6877. * @param {ImportAssetDto} importAssetDto
  6878. * @param {*} [options] Override http request option.
  6879. * @throws {RequiredError}
  6880. */
  6881. importFile: async (importAssetDto: ImportAssetDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6882. // verify required parameter 'importAssetDto' is not null or undefined
  6883. assertParamExists('importFile', 'importAssetDto', importAssetDto)
  6884. const localVarPath = `/asset/import`;
  6885. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6886. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6887. let baseOptions;
  6888. if (configuration) {
  6889. baseOptions = configuration.baseOptions;
  6890. }
  6891. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  6892. const localVarHeaderParameter = {} as any;
  6893. const localVarQueryParameter = {} as any;
  6894. // authentication cookie required
  6895. // authentication api_key required
  6896. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6897. // authentication bearer required
  6898. // http bearer authentication required
  6899. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6900. localVarHeaderParameter['Content-Type'] = 'application/json';
  6901. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6902. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6903. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6904. localVarRequestOptions.data = serializeDataIfNeeded(importAssetDto, localVarRequestOptions, configuration)
  6905. return {
  6906. url: toPathString(localVarUrlObj),
  6907. options: localVarRequestOptions,
  6908. };
  6909. },
  6910. /**
  6911. *
  6912. * @param {BulkIdsDto} bulkIdsDto
  6913. * @param {*} [options] Override http request option.
  6914. * @throws {RequiredError}
  6915. */
  6916. restoreAssets: async (bulkIdsDto: BulkIdsDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6917. // verify required parameter 'bulkIdsDto' is not null or undefined
  6918. assertParamExists('restoreAssets', 'bulkIdsDto', bulkIdsDto)
  6919. const localVarPath = `/asset/restore`;
  6920. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6921. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6922. let baseOptions;
  6923. if (configuration) {
  6924. baseOptions = configuration.baseOptions;
  6925. }
  6926. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  6927. const localVarHeaderParameter = {} as any;
  6928. const localVarQueryParameter = {} as any;
  6929. // authentication cookie required
  6930. // authentication api_key required
  6931. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6932. // authentication bearer required
  6933. // http bearer authentication required
  6934. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6935. localVarHeaderParameter['Content-Type'] = 'application/json';
  6936. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6937. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6938. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6939. localVarRequestOptions.data = serializeDataIfNeeded(bulkIdsDto, localVarRequestOptions, configuration)
  6940. return {
  6941. url: toPathString(localVarUrlObj),
  6942. options: localVarRequestOptions,
  6943. };
  6944. },
  6945. /**
  6946. *
  6947. * @param {*} [options] Override http request option.
  6948. * @throws {RequiredError}
  6949. */
  6950. restoreTrash: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6951. const localVarPath = `/asset/trash/restore`;
  6952. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6953. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6954. let baseOptions;
  6955. if (configuration) {
  6956. baseOptions = configuration.baseOptions;
  6957. }
  6958. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  6959. const localVarHeaderParameter = {} as any;
  6960. const localVarQueryParameter = {} as any;
  6961. // authentication cookie required
  6962. // authentication api_key required
  6963. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6964. // authentication bearer required
  6965. // http bearer authentication required
  6966. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6967. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6968. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6969. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6970. return {
  6971. url: toPathString(localVarUrlObj),
  6972. options: localVarRequestOptions,
  6973. };
  6974. },
  6975. /**
  6976. *
  6977. * @param {AssetJobsDto} assetJobsDto
  6978. * @param {*} [options] Override http request option.
  6979. * @throws {RequiredError}
  6980. */
  6981. runAssetJobs: async (assetJobsDto: AssetJobsDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6982. // verify required parameter 'assetJobsDto' is not null or undefined
  6983. assertParamExists('runAssetJobs', 'assetJobsDto', assetJobsDto)
  6984. const localVarPath = `/asset/jobs`;
  6985. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6986. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6987. let baseOptions;
  6988. if (configuration) {
  6989. baseOptions = configuration.baseOptions;
  6990. }
  6991. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  6992. const localVarHeaderParameter = {} as any;
  6993. const localVarQueryParameter = {} as any;
  6994. // authentication cookie required
  6995. // authentication api_key required
  6996. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6997. // authentication bearer required
  6998. // http bearer authentication required
  6999. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  7000. localVarHeaderParameter['Content-Type'] = 'application/json';
  7001. setSearchParams(localVarUrlObj, localVarQueryParameter);
  7002. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  7003. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  7004. localVarRequestOptions.data = serializeDataIfNeeded(assetJobsDto, localVarRequestOptions, configuration)
  7005. return {
  7006. url: toPathString(localVarUrlObj),
  7007. options: localVarRequestOptions,
  7008. };
  7009. },
  7010. /**
  7011. *
  7012. * @param {SearchAssetDto} searchAssetDto
  7013. * @param {*} [options] Override http request option.
  7014. * @throws {RequiredError}
  7015. */
  7016. searchAsset: async (searchAssetDto: SearchAssetDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  7017. // verify required parameter 'searchAssetDto' is not null or undefined
  7018. assertParamExists('searchAsset', 'searchAssetDto', searchAssetDto)
  7019. const localVarPath = `/asset/search`;
  7020. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  7021. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  7022. let baseOptions;
  7023. if (configuration) {
  7024. baseOptions = configuration.baseOptions;
  7025. }
  7026. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  7027. const localVarHeaderParameter = {} as any;
  7028. const localVarQueryParameter = {} as any;
  7029. // authentication cookie required
  7030. // authentication api_key required
  7031. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  7032. // authentication bearer required
  7033. // http bearer authentication required
  7034. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  7035. localVarHeaderParameter['Content-Type'] = 'application/json';
  7036. setSearchParams(localVarUrlObj, localVarQueryParameter);
  7037. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  7038. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  7039. localVarRequestOptions.data = serializeDataIfNeeded(searchAssetDto, localVarRequestOptions, configuration)
  7040. return {
  7041. url: toPathString(localVarUrlObj),
  7042. options: localVarRequestOptions,
  7043. };
  7044. },
  7045. /**
  7046. *
  7047. * @param {string} id
  7048. * @param {boolean} [isThumb]
  7049. * @param {boolean} [isWeb]
  7050. * @param {string} [key]
  7051. * @param {*} [options] Override http request option.
  7052. * @throws {RequiredError}
  7053. */
  7054. serveFile: async (id: string, isThumb?: boolean, isWeb?: boolean, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  7055. // verify required parameter 'id' is not null or undefined
  7056. assertParamExists('serveFile', 'id', id)
  7057. const localVarPath = `/asset/file/{id}`
  7058. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  7059. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  7060. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  7061. let baseOptions;
  7062. if (configuration) {
  7063. baseOptions = configuration.baseOptions;
  7064. }
  7065. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  7066. const localVarHeaderParameter = {} as any;
  7067. const localVarQueryParameter = {} as any;
  7068. // authentication cookie required
  7069. // authentication api_key required
  7070. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  7071. // authentication bearer required
  7072. // http bearer authentication required
  7073. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  7074. if (isThumb !== undefined) {
  7075. localVarQueryParameter['isThumb'] = isThumb;
  7076. }
  7077. if (isWeb !== undefined) {
  7078. localVarQueryParameter['isWeb'] = isWeb;
  7079. }
  7080. if (key !== undefined) {
  7081. localVarQueryParameter['key'] = key;
  7082. }
  7083. setSearchParams(localVarUrlObj, localVarQueryParameter);
  7084. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  7085. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  7086. return {
  7087. url: toPathString(localVarUrlObj),
  7088. options: localVarRequestOptions,
  7089. };
  7090. },
  7091. /**
  7092. *
  7093. * @param {string} id
  7094. * @param {UpdateAssetDto} updateAssetDto
  7095. * @param {*} [options] Override http request option.
  7096. * @throws {RequiredError}
  7097. */
  7098. updateAsset: async (id: string, updateAssetDto: UpdateAssetDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  7099. // verify required parameter 'id' is not null or undefined
  7100. assertParamExists('updateAsset', 'id', id)
  7101. // verify required parameter 'updateAssetDto' is not null or undefined
  7102. assertParamExists('updateAsset', 'updateAssetDto', updateAssetDto)
  7103. const localVarPath = `/asset/{id}`
  7104. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  7105. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  7106. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  7107. let baseOptions;
  7108. if (configuration) {
  7109. baseOptions = configuration.baseOptions;
  7110. }
  7111. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  7112. const localVarHeaderParameter = {} as any;
  7113. const localVarQueryParameter = {} as any;
  7114. // authentication cookie required
  7115. // authentication api_key required
  7116. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  7117. // authentication bearer required
  7118. // http bearer authentication required
  7119. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  7120. localVarHeaderParameter['Content-Type'] = 'application/json';
  7121. setSearchParams(localVarUrlObj, localVarQueryParameter);
  7122. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  7123. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  7124. localVarRequestOptions.data = serializeDataIfNeeded(updateAssetDto, localVarRequestOptions, configuration)
  7125. return {
  7126. url: toPathString(localVarUrlObj),
  7127. options: localVarRequestOptions,
  7128. };
  7129. },
  7130. /**
  7131. *
  7132. * @param {AssetBulkUpdateDto} assetBulkUpdateDto
  7133. * @param {*} [options] Override http request option.
  7134. * @throws {RequiredError}
  7135. */
  7136. updateAssets: async (assetBulkUpdateDto: AssetBulkUpdateDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  7137. // verify required parameter 'assetBulkUpdateDto' is not null or undefined
  7138. assertParamExists('updateAssets', 'assetBulkUpdateDto', assetBulkUpdateDto)
  7139. const localVarPath = `/asset`;
  7140. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  7141. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  7142. let baseOptions;
  7143. if (configuration) {
  7144. baseOptions = configuration.baseOptions;
  7145. }
  7146. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  7147. const localVarHeaderParameter = {} as any;
  7148. const localVarQueryParameter = {} as any;
  7149. // authentication cookie required
  7150. // authentication api_key required
  7151. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  7152. // authentication bearer required
  7153. // http bearer authentication required
  7154. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  7155. localVarHeaderParameter['Content-Type'] = 'application/json';
  7156. setSearchParams(localVarUrlObj, localVarQueryParameter);
  7157. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  7158. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  7159. localVarRequestOptions.data = serializeDataIfNeeded(assetBulkUpdateDto, localVarRequestOptions, configuration)
  7160. return {
  7161. url: toPathString(localVarUrlObj),
  7162. options: localVarRequestOptions,
  7163. };
  7164. },
  7165. /**
  7166. *
  7167. * @param {UpdateStackParentDto} updateStackParentDto
  7168. * @param {*} [options] Override http request option.
  7169. * @throws {RequiredError}
  7170. */
  7171. updateStackParent: async (updateStackParentDto: UpdateStackParentDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  7172. // verify required parameter 'updateStackParentDto' is not null or undefined
  7173. assertParamExists('updateStackParent', 'updateStackParentDto', updateStackParentDto)
  7174. const localVarPath = `/asset/stack/parent`;
  7175. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  7176. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  7177. let baseOptions;
  7178. if (configuration) {
  7179. baseOptions = configuration.baseOptions;
  7180. }
  7181. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  7182. const localVarHeaderParameter = {} as any;
  7183. const localVarQueryParameter = {} as any;
  7184. // authentication cookie required
  7185. // authentication api_key required
  7186. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  7187. // authentication bearer required
  7188. // http bearer authentication required
  7189. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  7190. localVarHeaderParameter['Content-Type'] = 'application/json';
  7191. setSearchParams(localVarUrlObj, localVarQueryParameter);
  7192. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  7193. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  7194. localVarRequestOptions.data = serializeDataIfNeeded(updateStackParentDto, localVarRequestOptions, configuration)
  7195. return {
  7196. url: toPathString(localVarUrlObj),
  7197. options: localVarRequestOptions,
  7198. };
  7199. },
  7200. /**
  7201. *
  7202. * @param {File} assetData
  7203. * @param {string} deviceAssetId
  7204. * @param {string} deviceId
  7205. * @param {string} fileCreatedAt
  7206. * @param {string} fileModifiedAt
  7207. * @param {boolean} isFavorite
  7208. * @param {string} [key]
  7209. * @param {string} [duration]
  7210. * @param {boolean} [isArchived]
  7211. * @param {boolean} [isExternal]
  7212. * @param {boolean} [isOffline]
  7213. * @param {boolean} [isReadOnly]
  7214. * @param {boolean} [isVisible]
  7215. * @param {string} [libraryId]
  7216. * @param {File} [livePhotoData]
  7217. * @param {File} [sidecarData]
  7218. * @param {*} [options] Override http request option.
  7219. * @throws {RequiredError}
  7220. */
  7221. 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> => {
  7222. // verify required parameter 'assetData' is not null or undefined
  7223. assertParamExists('uploadFile', 'assetData', assetData)
  7224. // verify required parameter 'deviceAssetId' is not null or undefined
  7225. assertParamExists('uploadFile', 'deviceAssetId', deviceAssetId)
  7226. // verify required parameter 'deviceId' is not null or undefined
  7227. assertParamExists('uploadFile', 'deviceId', deviceId)
  7228. // verify required parameter 'fileCreatedAt' is not null or undefined
  7229. assertParamExists('uploadFile', 'fileCreatedAt', fileCreatedAt)
  7230. // verify required parameter 'fileModifiedAt' is not null or undefined
  7231. assertParamExists('uploadFile', 'fileModifiedAt', fileModifiedAt)
  7232. // verify required parameter 'isFavorite' is not null or undefined
  7233. assertParamExists('uploadFile', 'isFavorite', isFavorite)
  7234. const localVarPath = `/asset/upload`;
  7235. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  7236. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  7237. let baseOptions;
  7238. if (configuration) {
  7239. baseOptions = configuration.baseOptions;
  7240. }
  7241. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  7242. const localVarHeaderParameter = {} as any;
  7243. const localVarQueryParameter = {} as any;
  7244. const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
  7245. // authentication cookie required
  7246. // authentication api_key required
  7247. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  7248. // authentication bearer required
  7249. // http bearer authentication required
  7250. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  7251. if (key !== undefined) {
  7252. localVarQueryParameter['key'] = key;
  7253. }
  7254. if (assetData !== undefined) {
  7255. localVarFormParams.append('assetData', assetData as any);
  7256. }
  7257. if (deviceAssetId !== undefined) {
  7258. localVarFormParams.append('deviceAssetId', deviceAssetId as any);
  7259. }
  7260. if (deviceId !== undefined) {
  7261. localVarFormParams.append('deviceId', deviceId as any);
  7262. }
  7263. if (duration !== undefined) {
  7264. localVarFormParams.append('duration', duration as any);
  7265. }
  7266. if (fileCreatedAt !== undefined) {
  7267. localVarFormParams.append('fileCreatedAt', fileCreatedAt as any);
  7268. }
  7269. if (fileModifiedAt !== undefined) {
  7270. localVarFormParams.append('fileModifiedAt', fileModifiedAt as any);
  7271. }
  7272. if (isArchived !== undefined) {
  7273. localVarFormParams.append('isArchived', isArchived as any);
  7274. }
  7275. if (isExternal !== undefined) {
  7276. localVarFormParams.append('isExternal', isExternal as any);
  7277. }
  7278. if (isFavorite !== undefined) {
  7279. localVarFormParams.append('isFavorite', isFavorite as any);
  7280. }
  7281. if (isOffline !== undefined) {
  7282. localVarFormParams.append('isOffline', isOffline as any);
  7283. }
  7284. if (isReadOnly !== undefined) {
  7285. localVarFormParams.append('isReadOnly', isReadOnly as any);
  7286. }
  7287. if (isVisible !== undefined) {
  7288. localVarFormParams.append('isVisible', isVisible as any);
  7289. }
  7290. if (libraryId !== undefined) {
  7291. localVarFormParams.append('libraryId', libraryId as any);
  7292. }
  7293. if (livePhotoData !== undefined) {
  7294. localVarFormParams.append('livePhotoData', livePhotoData as any);
  7295. }
  7296. if (sidecarData !== undefined) {
  7297. localVarFormParams.append('sidecarData', sidecarData as any);
  7298. }
  7299. localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
  7300. setSearchParams(localVarUrlObj, localVarQueryParameter);
  7301. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  7302. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  7303. localVarRequestOptions.data = localVarFormParams;
  7304. return {
  7305. url: toPathString(localVarUrlObj),
  7306. options: localVarRequestOptions,
  7307. };
  7308. },
  7309. }
  7310. };
  7311. /**
  7312. * AssetApi - functional programming interface
  7313. * @export
  7314. */
  7315. export const AssetApiFp = function(configuration?: Configuration) {
  7316. const localVarAxiosParamCreator = AssetApiAxiosParamCreator(configuration)
  7317. return {
  7318. /**
  7319. * Checks if assets exist by checksums
  7320. * @param {AssetBulkUploadCheckDto} assetBulkUploadCheckDto
  7321. * @param {*} [options] Override http request option.
  7322. * @throws {RequiredError}
  7323. */
  7324. async bulkUploadCheck(assetBulkUploadCheckDto: AssetBulkUploadCheckDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AssetBulkUploadCheckResponseDto>> {
  7325. const localVarAxiosArgs = await localVarAxiosParamCreator.bulkUploadCheck(assetBulkUploadCheckDto, options);
  7326. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7327. },
  7328. /**
  7329. * Checks if multiple assets exist on the server and returns all existing - used by background backup
  7330. * @param {CheckExistingAssetsDto} checkExistingAssetsDto
  7331. * @param {*} [options] Override http request option.
  7332. * @throws {RequiredError}
  7333. */
  7334. async checkExistingAssets(checkExistingAssetsDto: CheckExistingAssetsDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CheckExistingAssetsResponseDto>> {
  7335. const localVarAxiosArgs = await localVarAxiosParamCreator.checkExistingAssets(checkExistingAssetsDto, options);
  7336. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7337. },
  7338. /**
  7339. *
  7340. * @param {AssetBulkDeleteDto} assetBulkDeleteDto
  7341. * @param {*} [options] Override http request option.
  7342. * @throws {RequiredError}
  7343. */
  7344. async deleteAssets(assetBulkDeleteDto: AssetBulkDeleteDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  7345. const localVarAxiosArgs = await localVarAxiosParamCreator.deleteAssets(assetBulkDeleteDto, options);
  7346. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7347. },
  7348. /**
  7349. *
  7350. * @param {AssetIdsDto} assetIdsDto
  7351. * @param {string} [key]
  7352. * @param {*} [options] Override http request option.
  7353. * @throws {RequiredError}
  7354. */
  7355. async downloadArchive(assetIdsDto: AssetIdsDto, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>> {
  7356. const localVarAxiosArgs = await localVarAxiosParamCreator.downloadArchive(assetIdsDto, key, options);
  7357. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7358. },
  7359. /**
  7360. *
  7361. * @param {string} id
  7362. * @param {string} [key]
  7363. * @param {*} [options] Override http request option.
  7364. * @throws {RequiredError}
  7365. */
  7366. async downloadFile(id: string, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>> {
  7367. const localVarAxiosArgs = await localVarAxiosParamCreator.downloadFile(id, key, options);
  7368. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7369. },
  7370. /**
  7371. *
  7372. * @param {*} [options] Override http request option.
  7373. * @throws {RequiredError}
  7374. */
  7375. async emptyTrash(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  7376. const localVarAxiosArgs = await localVarAxiosParamCreator.emptyTrash(options);
  7377. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7378. },
  7379. /**
  7380. * Get all AssetEntity belong to the user
  7381. * @param {string} [userId]
  7382. * @param {boolean} [isFavorite]
  7383. * @param {boolean} [isArchived]
  7384. * @param {number} [skip]
  7385. * @param {string} [updatedAfter]
  7386. * @param {string} [ifNoneMatch] ETag of data already cached on the client
  7387. * @param {*} [options] Override http request option.
  7388. * @throws {RequiredError}
  7389. */
  7390. async getAllAssets(userId?: string, isFavorite?: boolean, isArchived?: boolean, skip?: number, updatedAfter?: string, ifNoneMatch?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetResponseDto>>> {
  7391. const localVarAxiosArgs = await localVarAxiosParamCreator.getAllAssets(userId, isFavorite, isArchived, skip, updatedAfter, ifNoneMatch, options);
  7392. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7393. },
  7394. /**
  7395. * Get a single asset\'s information
  7396. * @param {string} id
  7397. * @param {string} [key]
  7398. * @param {*} [options] Override http request option.
  7399. * @throws {RequiredError}
  7400. */
  7401. async getAssetById(id: string, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AssetResponseDto>> {
  7402. const localVarAxiosArgs = await localVarAxiosParamCreator.getAssetById(id, key, options);
  7403. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7404. },
  7405. /**
  7406. *
  7407. * @param {*} [options] Override http request option.
  7408. * @throws {RequiredError}
  7409. */
  7410. async getAssetSearchTerms(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<string>>> {
  7411. const localVarAxiosArgs = await localVarAxiosParamCreator.getAssetSearchTerms(options);
  7412. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7413. },
  7414. /**
  7415. *
  7416. * @param {boolean} [isArchived]
  7417. * @param {boolean} [isFavorite]
  7418. * @param {boolean} [isTrashed]
  7419. * @param {*} [options] Override http request option.
  7420. * @throws {RequiredError}
  7421. */
  7422. async getAssetStats(isArchived?: boolean, isFavorite?: boolean, isTrashed?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AssetStatsResponseDto>> {
  7423. const localVarAxiosArgs = await localVarAxiosParamCreator.getAssetStats(isArchived, isFavorite, isTrashed, options);
  7424. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7425. },
  7426. /**
  7427. *
  7428. * @param {string} id
  7429. * @param {ThumbnailFormat} [format]
  7430. * @param {string} [key]
  7431. * @param {*} [options] Override http request option.
  7432. * @throws {RequiredError}
  7433. */
  7434. async getAssetThumbnail(id: string, format?: ThumbnailFormat, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>> {
  7435. const localVarAxiosArgs = await localVarAxiosParamCreator.getAssetThumbnail(id, format, key, options);
  7436. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7437. },
  7438. /**
  7439. *
  7440. * @param {TimeBucketSize} size
  7441. * @param {string} timeBucket
  7442. * @param {string} [userId]
  7443. * @param {string} [albumId]
  7444. * @param {string} [personId]
  7445. * @param {boolean} [isArchived]
  7446. * @param {boolean} [isFavorite]
  7447. * @param {boolean} [isTrashed]
  7448. * @param {boolean} [withStacked]
  7449. * @param {string} [key]
  7450. * @param {*} [options] Override http request option.
  7451. * @throws {RequiredError}
  7452. */
  7453. 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>>> {
  7454. const localVarAxiosArgs = await localVarAxiosParamCreator.getByTimeBucket(size, timeBucket, userId, albumId, personId, isArchived, isFavorite, isTrashed, withStacked, key, options);
  7455. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7456. },
  7457. /**
  7458. *
  7459. * @param {*} [options] Override http request option.
  7460. * @throws {RequiredError}
  7461. */
  7462. async getCuratedLocations(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<CuratedLocationsResponseDto>>> {
  7463. const localVarAxiosArgs = await localVarAxiosParamCreator.getCuratedLocations(options);
  7464. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7465. },
  7466. /**
  7467. *
  7468. * @param {*} [options] Override http request option.
  7469. * @throws {RequiredError}
  7470. */
  7471. async getCuratedObjects(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<CuratedObjectsResponseDto>>> {
  7472. const localVarAxiosArgs = await localVarAxiosParamCreator.getCuratedObjects(options);
  7473. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7474. },
  7475. /**
  7476. *
  7477. * @param {DownloadInfoDto} downloadInfoDto
  7478. * @param {string} [key]
  7479. * @param {*} [options] Override http request option.
  7480. * @throws {RequiredError}
  7481. */
  7482. async getDownloadInfo(downloadInfoDto: DownloadInfoDto, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DownloadResponseDto>> {
  7483. const localVarAxiosArgs = await localVarAxiosParamCreator.getDownloadInfo(downloadInfoDto, key, options);
  7484. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7485. },
  7486. /**
  7487. *
  7488. * @param {boolean} [isArchived]
  7489. * @param {boolean} [isFavorite]
  7490. * @param {string} [fileCreatedAfter]
  7491. * @param {string} [fileCreatedBefore]
  7492. * @param {*} [options] Override http request option.
  7493. * @throws {RequiredError}
  7494. */
  7495. async getMapMarkers(isArchived?: boolean, isFavorite?: boolean, fileCreatedAfter?: string, fileCreatedBefore?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<MapMarkerResponseDto>>> {
  7496. const localVarAxiosArgs = await localVarAxiosParamCreator.getMapMarkers(isArchived, isFavorite, fileCreatedAfter, fileCreatedBefore, options);
  7497. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7498. },
  7499. /**
  7500. *
  7501. * @param {number} day
  7502. * @param {number} month
  7503. * @param {*} [options] Override http request option.
  7504. * @throws {RequiredError}
  7505. */
  7506. async getMemoryLane(day: number, month: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<MemoryLaneResponseDto>>> {
  7507. const localVarAxiosArgs = await localVarAxiosParamCreator.getMemoryLane(day, month, options);
  7508. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7509. },
  7510. /**
  7511. *
  7512. * @param {number} [count]
  7513. * @param {*} [options] Override http request option.
  7514. * @throws {RequiredError}
  7515. */
  7516. async getRandom(count?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetResponseDto>>> {
  7517. const localVarAxiosArgs = await localVarAxiosParamCreator.getRandom(count, options);
  7518. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7519. },
  7520. /**
  7521. *
  7522. * @param {TimeBucketSize} size
  7523. * @param {string} [userId]
  7524. * @param {string} [albumId]
  7525. * @param {string} [personId]
  7526. * @param {boolean} [isArchived]
  7527. * @param {boolean} [isFavorite]
  7528. * @param {boolean} [isTrashed]
  7529. * @param {boolean} [withStacked]
  7530. * @param {string} [key]
  7531. * @param {*} [options] Override http request option.
  7532. * @throws {RequiredError}
  7533. */
  7534. 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>>> {
  7535. const localVarAxiosArgs = await localVarAxiosParamCreator.getTimeBuckets(size, userId, albumId, personId, isArchived, isFavorite, isTrashed, withStacked, key, options);
  7536. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7537. },
  7538. /**
  7539. * Get all asset of a device that are in the database, ID only.
  7540. * @param {string} deviceId
  7541. * @param {*} [options] Override http request option.
  7542. * @throws {RequiredError}
  7543. */
  7544. async getUserAssetsByDeviceId(deviceId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<string>>> {
  7545. const localVarAxiosArgs = await localVarAxiosParamCreator.getUserAssetsByDeviceId(deviceId, options);
  7546. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7547. },
  7548. /**
  7549. *
  7550. * @param {ImportAssetDto} importAssetDto
  7551. * @param {*} [options] Override http request option.
  7552. * @throws {RequiredError}
  7553. */
  7554. async importFile(importAssetDto: ImportAssetDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AssetFileUploadResponseDto>> {
  7555. const localVarAxiosArgs = await localVarAxiosParamCreator.importFile(importAssetDto, options);
  7556. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7557. },
  7558. /**
  7559. *
  7560. * @param {BulkIdsDto} bulkIdsDto
  7561. * @param {*} [options] Override http request option.
  7562. * @throws {RequiredError}
  7563. */
  7564. async restoreAssets(bulkIdsDto: BulkIdsDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  7565. const localVarAxiosArgs = await localVarAxiosParamCreator.restoreAssets(bulkIdsDto, options);
  7566. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7567. },
  7568. /**
  7569. *
  7570. * @param {*} [options] Override http request option.
  7571. * @throws {RequiredError}
  7572. */
  7573. async restoreTrash(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  7574. const localVarAxiosArgs = await localVarAxiosParamCreator.restoreTrash(options);
  7575. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7576. },
  7577. /**
  7578. *
  7579. * @param {AssetJobsDto} assetJobsDto
  7580. * @param {*} [options] Override http request option.
  7581. * @throws {RequiredError}
  7582. */
  7583. async runAssetJobs(assetJobsDto: AssetJobsDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  7584. const localVarAxiosArgs = await localVarAxiosParamCreator.runAssetJobs(assetJobsDto, options);
  7585. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7586. },
  7587. /**
  7588. *
  7589. * @param {SearchAssetDto} searchAssetDto
  7590. * @param {*} [options] Override http request option.
  7591. * @throws {RequiredError}
  7592. */
  7593. async searchAsset(searchAssetDto: SearchAssetDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetResponseDto>>> {
  7594. const localVarAxiosArgs = await localVarAxiosParamCreator.searchAsset(searchAssetDto, options);
  7595. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7596. },
  7597. /**
  7598. *
  7599. * @param {string} id
  7600. * @param {boolean} [isThumb]
  7601. * @param {boolean} [isWeb]
  7602. * @param {string} [key]
  7603. * @param {*} [options] Override http request option.
  7604. * @throws {RequiredError}
  7605. */
  7606. async serveFile(id: string, isThumb?: boolean, isWeb?: boolean, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>> {
  7607. const localVarAxiosArgs = await localVarAxiosParamCreator.serveFile(id, isThumb, isWeb, key, options);
  7608. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7609. },
  7610. /**
  7611. *
  7612. * @param {string} id
  7613. * @param {UpdateAssetDto} updateAssetDto
  7614. * @param {*} [options] Override http request option.
  7615. * @throws {RequiredError}
  7616. */
  7617. async updateAsset(id: string, updateAssetDto: UpdateAssetDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AssetResponseDto>> {
  7618. const localVarAxiosArgs = await localVarAxiosParamCreator.updateAsset(id, updateAssetDto, options);
  7619. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7620. },
  7621. /**
  7622. *
  7623. * @param {AssetBulkUpdateDto} assetBulkUpdateDto
  7624. * @param {*} [options] Override http request option.
  7625. * @throws {RequiredError}
  7626. */
  7627. async updateAssets(assetBulkUpdateDto: AssetBulkUpdateDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  7628. const localVarAxiosArgs = await localVarAxiosParamCreator.updateAssets(assetBulkUpdateDto, options);
  7629. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7630. },
  7631. /**
  7632. *
  7633. * @param {UpdateStackParentDto} updateStackParentDto
  7634. * @param {*} [options] Override http request option.
  7635. * @throws {RequiredError}
  7636. */
  7637. async updateStackParent(updateStackParentDto: UpdateStackParentDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  7638. const localVarAxiosArgs = await localVarAxiosParamCreator.updateStackParent(updateStackParentDto, options);
  7639. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7640. },
  7641. /**
  7642. *
  7643. * @param {File} assetData
  7644. * @param {string} deviceAssetId
  7645. * @param {string} deviceId
  7646. * @param {string} fileCreatedAt
  7647. * @param {string} fileModifiedAt
  7648. * @param {boolean} isFavorite
  7649. * @param {string} [key]
  7650. * @param {string} [duration]
  7651. * @param {boolean} [isArchived]
  7652. * @param {boolean} [isExternal]
  7653. * @param {boolean} [isOffline]
  7654. * @param {boolean} [isReadOnly]
  7655. * @param {boolean} [isVisible]
  7656. * @param {string} [libraryId]
  7657. * @param {File} [livePhotoData]
  7658. * @param {File} [sidecarData]
  7659. * @param {*} [options] Override http request option.
  7660. * @throws {RequiredError}
  7661. */
  7662. 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>> {
  7663. const localVarAxiosArgs = await localVarAxiosParamCreator.uploadFile(assetData, deviceAssetId, deviceId, fileCreatedAt, fileModifiedAt, isFavorite, key, duration, isArchived, isExternal, isOffline, isReadOnly, isVisible, libraryId, livePhotoData, sidecarData, options);
  7664. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7665. },
  7666. }
  7667. };
  7668. /**
  7669. * AssetApi - factory interface
  7670. * @export
  7671. */
  7672. export const AssetApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  7673. const localVarFp = AssetApiFp(configuration)
  7674. return {
  7675. /**
  7676. * Checks if assets exist by checksums
  7677. * @param {AssetApiBulkUploadCheckRequest} requestParameters Request parameters.
  7678. * @param {*} [options] Override http request option.
  7679. * @throws {RequiredError}
  7680. */
  7681. bulkUploadCheck(requestParameters: AssetApiBulkUploadCheckRequest, options?: AxiosRequestConfig): AxiosPromise<AssetBulkUploadCheckResponseDto> {
  7682. return localVarFp.bulkUploadCheck(requestParameters.assetBulkUploadCheckDto, options).then((request) => request(axios, basePath));
  7683. },
  7684. /**
  7685. * Checks if multiple assets exist on the server and returns all existing - used by background backup
  7686. * @param {AssetApiCheckExistingAssetsRequest} requestParameters Request parameters.
  7687. * @param {*} [options] Override http request option.
  7688. * @throws {RequiredError}
  7689. */
  7690. checkExistingAssets(requestParameters: AssetApiCheckExistingAssetsRequest, options?: AxiosRequestConfig): AxiosPromise<CheckExistingAssetsResponseDto> {
  7691. return localVarFp.checkExistingAssets(requestParameters.checkExistingAssetsDto, options).then((request) => request(axios, basePath));
  7692. },
  7693. /**
  7694. *
  7695. * @param {AssetApiDeleteAssetsRequest} requestParameters Request parameters.
  7696. * @param {*} [options] Override http request option.
  7697. * @throws {RequiredError}
  7698. */
  7699. deleteAssets(requestParameters: AssetApiDeleteAssetsRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  7700. return localVarFp.deleteAssets(requestParameters.assetBulkDeleteDto, options).then((request) => request(axios, basePath));
  7701. },
  7702. /**
  7703. *
  7704. * @param {AssetApiDownloadArchiveRequest} requestParameters Request parameters.
  7705. * @param {*} [options] Override http request option.
  7706. * @throws {RequiredError}
  7707. */
  7708. downloadArchive(requestParameters: AssetApiDownloadArchiveRequest, options?: AxiosRequestConfig): AxiosPromise<File> {
  7709. return localVarFp.downloadArchive(requestParameters.assetIdsDto, requestParameters.key, options).then((request) => request(axios, basePath));
  7710. },
  7711. /**
  7712. *
  7713. * @param {AssetApiDownloadFileRequest} requestParameters Request parameters.
  7714. * @param {*} [options] Override http request option.
  7715. * @throws {RequiredError}
  7716. */
  7717. downloadFile(requestParameters: AssetApiDownloadFileRequest, options?: AxiosRequestConfig): AxiosPromise<File> {
  7718. return localVarFp.downloadFile(requestParameters.id, requestParameters.key, options).then((request) => request(axios, basePath));
  7719. },
  7720. /**
  7721. *
  7722. * @param {*} [options] Override http request option.
  7723. * @throws {RequiredError}
  7724. */
  7725. emptyTrash(options?: AxiosRequestConfig): AxiosPromise<void> {
  7726. return localVarFp.emptyTrash(options).then((request) => request(axios, basePath));
  7727. },
  7728. /**
  7729. * Get all AssetEntity belong to the user
  7730. * @param {AssetApiGetAllAssetsRequest} requestParameters Request parameters.
  7731. * @param {*} [options] Override http request option.
  7732. * @throws {RequiredError}
  7733. */
  7734. getAllAssets(requestParameters: AssetApiGetAllAssetsRequest = {}, options?: AxiosRequestConfig): AxiosPromise<Array<AssetResponseDto>> {
  7735. return localVarFp.getAllAssets(requestParameters.userId, requestParameters.isFavorite, requestParameters.isArchived, requestParameters.skip, requestParameters.updatedAfter, requestParameters.ifNoneMatch, options).then((request) => request(axios, basePath));
  7736. },
  7737. /**
  7738. * Get a single asset\'s information
  7739. * @param {AssetApiGetAssetByIdRequest} requestParameters Request parameters.
  7740. * @param {*} [options] Override http request option.
  7741. * @throws {RequiredError}
  7742. */
  7743. getAssetById(requestParameters: AssetApiGetAssetByIdRequest, options?: AxiosRequestConfig): AxiosPromise<AssetResponseDto> {
  7744. return localVarFp.getAssetById(requestParameters.id, requestParameters.key, options).then((request) => request(axios, basePath));
  7745. },
  7746. /**
  7747. *
  7748. * @param {*} [options] Override http request option.
  7749. * @throws {RequiredError}
  7750. */
  7751. getAssetSearchTerms(options?: AxiosRequestConfig): AxiosPromise<Array<string>> {
  7752. return localVarFp.getAssetSearchTerms(options).then((request) => request(axios, basePath));
  7753. },
  7754. /**
  7755. *
  7756. * @param {AssetApiGetAssetStatsRequest} requestParameters Request parameters.
  7757. * @param {*} [options] Override http request option.
  7758. * @throws {RequiredError}
  7759. */
  7760. getAssetStats(requestParameters: AssetApiGetAssetStatsRequest = {}, options?: AxiosRequestConfig): AxiosPromise<AssetStatsResponseDto> {
  7761. return localVarFp.getAssetStats(requestParameters.isArchived, requestParameters.isFavorite, requestParameters.isTrashed, options).then((request) => request(axios, basePath));
  7762. },
  7763. /**
  7764. *
  7765. * @param {AssetApiGetAssetThumbnailRequest} requestParameters Request parameters.
  7766. * @param {*} [options] Override http request option.
  7767. * @throws {RequiredError}
  7768. */
  7769. getAssetThumbnail(requestParameters: AssetApiGetAssetThumbnailRequest, options?: AxiosRequestConfig): AxiosPromise<File> {
  7770. return localVarFp.getAssetThumbnail(requestParameters.id, requestParameters.format, requestParameters.key, options).then((request) => request(axios, basePath));
  7771. },
  7772. /**
  7773. *
  7774. * @param {AssetApiGetByTimeBucketRequest} requestParameters Request parameters.
  7775. * @param {*} [options] Override http request option.
  7776. * @throws {RequiredError}
  7777. */
  7778. getByTimeBucket(requestParameters: AssetApiGetByTimeBucketRequest, options?: AxiosRequestConfig): AxiosPromise<Array<AssetResponseDto>> {
  7779. 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));
  7780. },
  7781. /**
  7782. *
  7783. * @param {*} [options] Override http request option.
  7784. * @throws {RequiredError}
  7785. */
  7786. getCuratedLocations(options?: AxiosRequestConfig): AxiosPromise<Array<CuratedLocationsResponseDto>> {
  7787. return localVarFp.getCuratedLocations(options).then((request) => request(axios, basePath));
  7788. },
  7789. /**
  7790. *
  7791. * @param {*} [options] Override http request option.
  7792. * @throws {RequiredError}
  7793. */
  7794. getCuratedObjects(options?: AxiosRequestConfig): AxiosPromise<Array<CuratedObjectsResponseDto>> {
  7795. return localVarFp.getCuratedObjects(options).then((request) => request(axios, basePath));
  7796. },
  7797. /**
  7798. *
  7799. * @param {AssetApiGetDownloadInfoRequest} requestParameters Request parameters.
  7800. * @param {*} [options] Override http request option.
  7801. * @throws {RequiredError}
  7802. */
  7803. getDownloadInfo(requestParameters: AssetApiGetDownloadInfoRequest, options?: AxiosRequestConfig): AxiosPromise<DownloadResponseDto> {
  7804. return localVarFp.getDownloadInfo(requestParameters.downloadInfoDto, requestParameters.key, options).then((request) => request(axios, basePath));
  7805. },
  7806. /**
  7807. *
  7808. * @param {AssetApiGetMapMarkersRequest} requestParameters Request parameters.
  7809. * @param {*} [options] Override http request option.
  7810. * @throws {RequiredError}
  7811. */
  7812. getMapMarkers(requestParameters: AssetApiGetMapMarkersRequest = {}, options?: AxiosRequestConfig): AxiosPromise<Array<MapMarkerResponseDto>> {
  7813. return localVarFp.getMapMarkers(requestParameters.isArchived, requestParameters.isFavorite, requestParameters.fileCreatedAfter, requestParameters.fileCreatedBefore, options).then((request) => request(axios, basePath));
  7814. },
  7815. /**
  7816. *
  7817. * @param {AssetApiGetMemoryLaneRequest} requestParameters Request parameters.
  7818. * @param {*} [options] Override http request option.
  7819. * @throws {RequiredError}
  7820. */
  7821. getMemoryLane(requestParameters: AssetApiGetMemoryLaneRequest, options?: AxiosRequestConfig): AxiosPromise<Array<MemoryLaneResponseDto>> {
  7822. return localVarFp.getMemoryLane(requestParameters.day, requestParameters.month, options).then((request) => request(axios, basePath));
  7823. },
  7824. /**
  7825. *
  7826. * @param {AssetApiGetRandomRequest} requestParameters Request parameters.
  7827. * @param {*} [options] Override http request option.
  7828. * @throws {RequiredError}
  7829. */
  7830. getRandom(requestParameters: AssetApiGetRandomRequest = {}, options?: AxiosRequestConfig): AxiosPromise<Array<AssetResponseDto>> {
  7831. return localVarFp.getRandom(requestParameters.count, options).then((request) => request(axios, basePath));
  7832. },
  7833. /**
  7834. *
  7835. * @param {AssetApiGetTimeBucketsRequest} requestParameters Request parameters.
  7836. * @param {*} [options] Override http request option.
  7837. * @throws {RequiredError}
  7838. */
  7839. getTimeBuckets(requestParameters: AssetApiGetTimeBucketsRequest, options?: AxiosRequestConfig): AxiosPromise<Array<TimeBucketResponseDto>> {
  7840. 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));
  7841. },
  7842. /**
  7843. * Get all asset of a device that are in the database, ID only.
  7844. * @param {AssetApiGetUserAssetsByDeviceIdRequest} requestParameters Request parameters.
  7845. * @param {*} [options] Override http request option.
  7846. * @throws {RequiredError}
  7847. */
  7848. getUserAssetsByDeviceId(requestParameters: AssetApiGetUserAssetsByDeviceIdRequest, options?: AxiosRequestConfig): AxiosPromise<Array<string>> {
  7849. return localVarFp.getUserAssetsByDeviceId(requestParameters.deviceId, options).then((request) => request(axios, basePath));
  7850. },
  7851. /**
  7852. *
  7853. * @param {AssetApiImportFileRequest} requestParameters Request parameters.
  7854. * @param {*} [options] Override http request option.
  7855. * @throws {RequiredError}
  7856. */
  7857. importFile(requestParameters: AssetApiImportFileRequest, options?: AxiosRequestConfig): AxiosPromise<AssetFileUploadResponseDto> {
  7858. return localVarFp.importFile(requestParameters.importAssetDto, options).then((request) => request(axios, basePath));
  7859. },
  7860. /**
  7861. *
  7862. * @param {AssetApiRestoreAssetsRequest} requestParameters Request parameters.
  7863. * @param {*} [options] Override http request option.
  7864. * @throws {RequiredError}
  7865. */
  7866. restoreAssets(requestParameters: AssetApiRestoreAssetsRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  7867. return localVarFp.restoreAssets(requestParameters.bulkIdsDto, options).then((request) => request(axios, basePath));
  7868. },
  7869. /**
  7870. *
  7871. * @param {*} [options] Override http request option.
  7872. * @throws {RequiredError}
  7873. */
  7874. restoreTrash(options?: AxiosRequestConfig): AxiosPromise<void> {
  7875. return localVarFp.restoreTrash(options).then((request) => request(axios, basePath));
  7876. },
  7877. /**
  7878. *
  7879. * @param {AssetApiRunAssetJobsRequest} requestParameters Request parameters.
  7880. * @param {*} [options] Override http request option.
  7881. * @throws {RequiredError}
  7882. */
  7883. runAssetJobs(requestParameters: AssetApiRunAssetJobsRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  7884. return localVarFp.runAssetJobs(requestParameters.assetJobsDto, options).then((request) => request(axios, basePath));
  7885. },
  7886. /**
  7887. *
  7888. * @param {AssetApiSearchAssetRequest} requestParameters Request parameters.
  7889. * @param {*} [options] Override http request option.
  7890. * @throws {RequiredError}
  7891. */
  7892. searchAsset(requestParameters: AssetApiSearchAssetRequest, options?: AxiosRequestConfig): AxiosPromise<Array<AssetResponseDto>> {
  7893. return localVarFp.searchAsset(requestParameters.searchAssetDto, options).then((request) => request(axios, basePath));
  7894. },
  7895. /**
  7896. *
  7897. * @param {AssetApiServeFileRequest} requestParameters Request parameters.
  7898. * @param {*} [options] Override http request option.
  7899. * @throws {RequiredError}
  7900. */
  7901. serveFile(requestParameters: AssetApiServeFileRequest, options?: AxiosRequestConfig): AxiosPromise<File> {
  7902. return localVarFp.serveFile(requestParameters.id, requestParameters.isThumb, requestParameters.isWeb, requestParameters.key, options).then((request) => request(axios, basePath));
  7903. },
  7904. /**
  7905. *
  7906. * @param {AssetApiUpdateAssetRequest} requestParameters Request parameters.
  7907. * @param {*} [options] Override http request option.
  7908. * @throws {RequiredError}
  7909. */
  7910. updateAsset(requestParameters: AssetApiUpdateAssetRequest, options?: AxiosRequestConfig): AxiosPromise<AssetResponseDto> {
  7911. return localVarFp.updateAsset(requestParameters.id, requestParameters.updateAssetDto, options).then((request) => request(axios, basePath));
  7912. },
  7913. /**
  7914. *
  7915. * @param {AssetApiUpdateAssetsRequest} requestParameters Request parameters.
  7916. * @param {*} [options] Override http request option.
  7917. * @throws {RequiredError}
  7918. */
  7919. updateAssets(requestParameters: AssetApiUpdateAssetsRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  7920. return localVarFp.updateAssets(requestParameters.assetBulkUpdateDto, options).then((request) => request(axios, basePath));
  7921. },
  7922. /**
  7923. *
  7924. * @param {AssetApiUpdateStackParentRequest} requestParameters Request parameters.
  7925. * @param {*} [options] Override http request option.
  7926. * @throws {RequiredError}
  7927. */
  7928. updateStackParent(requestParameters: AssetApiUpdateStackParentRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  7929. return localVarFp.updateStackParent(requestParameters.updateStackParentDto, options).then((request) => request(axios, basePath));
  7930. },
  7931. /**
  7932. *
  7933. * @param {AssetApiUploadFileRequest} requestParameters Request parameters.
  7934. * @param {*} [options] Override http request option.
  7935. * @throws {RequiredError}
  7936. */
  7937. uploadFile(requestParameters: AssetApiUploadFileRequest, options?: AxiosRequestConfig): AxiosPromise<AssetFileUploadResponseDto> {
  7938. 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));
  7939. },
  7940. };
  7941. };
  7942. /**
  7943. * Request parameters for bulkUploadCheck operation in AssetApi.
  7944. * @export
  7945. * @interface AssetApiBulkUploadCheckRequest
  7946. */
  7947. export interface AssetApiBulkUploadCheckRequest {
  7948. /**
  7949. *
  7950. * @type {AssetBulkUploadCheckDto}
  7951. * @memberof AssetApiBulkUploadCheck
  7952. */
  7953. readonly assetBulkUploadCheckDto: AssetBulkUploadCheckDto
  7954. }
  7955. /**
  7956. * Request parameters for checkExistingAssets operation in AssetApi.
  7957. * @export
  7958. * @interface AssetApiCheckExistingAssetsRequest
  7959. */
  7960. export interface AssetApiCheckExistingAssetsRequest {
  7961. /**
  7962. *
  7963. * @type {CheckExistingAssetsDto}
  7964. * @memberof AssetApiCheckExistingAssets
  7965. */
  7966. readonly checkExistingAssetsDto: CheckExistingAssetsDto
  7967. }
  7968. /**
  7969. * Request parameters for deleteAssets operation in AssetApi.
  7970. * @export
  7971. * @interface AssetApiDeleteAssetsRequest
  7972. */
  7973. export interface AssetApiDeleteAssetsRequest {
  7974. /**
  7975. *
  7976. * @type {AssetBulkDeleteDto}
  7977. * @memberof AssetApiDeleteAssets
  7978. */
  7979. readonly assetBulkDeleteDto: AssetBulkDeleteDto
  7980. }
  7981. /**
  7982. * Request parameters for downloadArchive operation in AssetApi.
  7983. * @export
  7984. * @interface AssetApiDownloadArchiveRequest
  7985. */
  7986. export interface AssetApiDownloadArchiveRequest {
  7987. /**
  7988. *
  7989. * @type {AssetIdsDto}
  7990. * @memberof AssetApiDownloadArchive
  7991. */
  7992. readonly assetIdsDto: AssetIdsDto
  7993. /**
  7994. *
  7995. * @type {string}
  7996. * @memberof AssetApiDownloadArchive
  7997. */
  7998. readonly key?: string
  7999. }
  8000. /**
  8001. * Request parameters for downloadFile operation in AssetApi.
  8002. * @export
  8003. * @interface AssetApiDownloadFileRequest
  8004. */
  8005. export interface AssetApiDownloadFileRequest {
  8006. /**
  8007. *
  8008. * @type {string}
  8009. * @memberof AssetApiDownloadFile
  8010. */
  8011. readonly id: string
  8012. /**
  8013. *
  8014. * @type {string}
  8015. * @memberof AssetApiDownloadFile
  8016. */
  8017. readonly key?: string
  8018. }
  8019. /**
  8020. * Request parameters for getAllAssets operation in AssetApi.
  8021. * @export
  8022. * @interface AssetApiGetAllAssetsRequest
  8023. */
  8024. export interface AssetApiGetAllAssetsRequest {
  8025. /**
  8026. *
  8027. * @type {string}
  8028. * @memberof AssetApiGetAllAssets
  8029. */
  8030. readonly userId?: string
  8031. /**
  8032. *
  8033. * @type {boolean}
  8034. * @memberof AssetApiGetAllAssets
  8035. */
  8036. readonly isFavorite?: boolean
  8037. /**
  8038. *
  8039. * @type {boolean}
  8040. * @memberof AssetApiGetAllAssets
  8041. */
  8042. readonly isArchived?: boolean
  8043. /**
  8044. *
  8045. * @type {number}
  8046. * @memberof AssetApiGetAllAssets
  8047. */
  8048. readonly skip?: number
  8049. /**
  8050. *
  8051. * @type {string}
  8052. * @memberof AssetApiGetAllAssets
  8053. */
  8054. readonly updatedAfter?: string
  8055. /**
  8056. * ETag of data already cached on the client
  8057. * @type {string}
  8058. * @memberof AssetApiGetAllAssets
  8059. */
  8060. readonly ifNoneMatch?: string
  8061. }
  8062. /**
  8063. * Request parameters for getAssetById operation in AssetApi.
  8064. * @export
  8065. * @interface AssetApiGetAssetByIdRequest
  8066. */
  8067. export interface AssetApiGetAssetByIdRequest {
  8068. /**
  8069. *
  8070. * @type {string}
  8071. * @memberof AssetApiGetAssetById
  8072. */
  8073. readonly id: string
  8074. /**
  8075. *
  8076. * @type {string}
  8077. * @memberof AssetApiGetAssetById
  8078. */
  8079. readonly key?: string
  8080. }
  8081. /**
  8082. * Request parameters for getAssetStats operation in AssetApi.
  8083. * @export
  8084. * @interface AssetApiGetAssetStatsRequest
  8085. */
  8086. export interface AssetApiGetAssetStatsRequest {
  8087. /**
  8088. *
  8089. * @type {boolean}
  8090. * @memberof AssetApiGetAssetStats
  8091. */
  8092. readonly isArchived?: boolean
  8093. /**
  8094. *
  8095. * @type {boolean}
  8096. * @memberof AssetApiGetAssetStats
  8097. */
  8098. readonly isFavorite?: boolean
  8099. /**
  8100. *
  8101. * @type {boolean}
  8102. * @memberof AssetApiGetAssetStats
  8103. */
  8104. readonly isTrashed?: boolean
  8105. }
  8106. /**
  8107. * Request parameters for getAssetThumbnail operation in AssetApi.
  8108. * @export
  8109. * @interface AssetApiGetAssetThumbnailRequest
  8110. */
  8111. export interface AssetApiGetAssetThumbnailRequest {
  8112. /**
  8113. *
  8114. * @type {string}
  8115. * @memberof AssetApiGetAssetThumbnail
  8116. */
  8117. readonly id: string
  8118. /**
  8119. *
  8120. * @type {ThumbnailFormat}
  8121. * @memberof AssetApiGetAssetThumbnail
  8122. */
  8123. readonly format?: ThumbnailFormat
  8124. /**
  8125. *
  8126. * @type {string}
  8127. * @memberof AssetApiGetAssetThumbnail
  8128. */
  8129. readonly key?: string
  8130. }
  8131. /**
  8132. * Request parameters for getByTimeBucket operation in AssetApi.
  8133. * @export
  8134. * @interface AssetApiGetByTimeBucketRequest
  8135. */
  8136. export interface AssetApiGetByTimeBucketRequest {
  8137. /**
  8138. *
  8139. * @type {TimeBucketSize}
  8140. * @memberof AssetApiGetByTimeBucket
  8141. */
  8142. readonly size: TimeBucketSize
  8143. /**
  8144. *
  8145. * @type {string}
  8146. * @memberof AssetApiGetByTimeBucket
  8147. */
  8148. readonly timeBucket: string
  8149. /**
  8150. *
  8151. * @type {string}
  8152. * @memberof AssetApiGetByTimeBucket
  8153. */
  8154. readonly userId?: string
  8155. /**
  8156. *
  8157. * @type {string}
  8158. * @memberof AssetApiGetByTimeBucket
  8159. */
  8160. readonly albumId?: string
  8161. /**
  8162. *
  8163. * @type {string}
  8164. * @memberof AssetApiGetByTimeBucket
  8165. */
  8166. readonly personId?: string
  8167. /**
  8168. *
  8169. * @type {boolean}
  8170. * @memberof AssetApiGetByTimeBucket
  8171. */
  8172. readonly isArchived?: boolean
  8173. /**
  8174. *
  8175. * @type {boolean}
  8176. * @memberof AssetApiGetByTimeBucket
  8177. */
  8178. readonly isFavorite?: boolean
  8179. /**
  8180. *
  8181. * @type {boolean}
  8182. * @memberof AssetApiGetByTimeBucket
  8183. */
  8184. readonly isTrashed?: boolean
  8185. /**
  8186. *
  8187. * @type {boolean}
  8188. * @memberof AssetApiGetByTimeBucket
  8189. */
  8190. readonly withStacked?: boolean
  8191. /**
  8192. *
  8193. * @type {string}
  8194. * @memberof AssetApiGetByTimeBucket
  8195. */
  8196. readonly key?: string
  8197. }
  8198. /**
  8199. * Request parameters for getDownloadInfo operation in AssetApi.
  8200. * @export
  8201. * @interface AssetApiGetDownloadInfoRequest
  8202. */
  8203. export interface AssetApiGetDownloadInfoRequest {
  8204. /**
  8205. *
  8206. * @type {DownloadInfoDto}
  8207. * @memberof AssetApiGetDownloadInfo
  8208. */
  8209. readonly downloadInfoDto: DownloadInfoDto
  8210. /**
  8211. *
  8212. * @type {string}
  8213. * @memberof AssetApiGetDownloadInfo
  8214. */
  8215. readonly key?: string
  8216. }
  8217. /**
  8218. * Request parameters for getMapMarkers operation in AssetApi.
  8219. * @export
  8220. * @interface AssetApiGetMapMarkersRequest
  8221. */
  8222. export interface AssetApiGetMapMarkersRequest {
  8223. /**
  8224. *
  8225. * @type {boolean}
  8226. * @memberof AssetApiGetMapMarkers
  8227. */
  8228. readonly isArchived?: boolean
  8229. /**
  8230. *
  8231. * @type {boolean}
  8232. * @memberof AssetApiGetMapMarkers
  8233. */
  8234. readonly isFavorite?: boolean
  8235. /**
  8236. *
  8237. * @type {string}
  8238. * @memberof AssetApiGetMapMarkers
  8239. */
  8240. readonly fileCreatedAfter?: string
  8241. /**
  8242. *
  8243. * @type {string}
  8244. * @memberof AssetApiGetMapMarkers
  8245. */
  8246. readonly fileCreatedBefore?: string
  8247. }
  8248. /**
  8249. * Request parameters for getMemoryLane operation in AssetApi.
  8250. * @export
  8251. * @interface AssetApiGetMemoryLaneRequest
  8252. */
  8253. export interface AssetApiGetMemoryLaneRequest {
  8254. /**
  8255. *
  8256. * @type {number}
  8257. * @memberof AssetApiGetMemoryLane
  8258. */
  8259. readonly day: number
  8260. /**
  8261. *
  8262. * @type {number}
  8263. * @memberof AssetApiGetMemoryLane
  8264. */
  8265. readonly month: number
  8266. }
  8267. /**
  8268. * Request parameters for getRandom operation in AssetApi.
  8269. * @export
  8270. * @interface AssetApiGetRandomRequest
  8271. */
  8272. export interface AssetApiGetRandomRequest {
  8273. /**
  8274. *
  8275. * @type {number}
  8276. * @memberof AssetApiGetRandom
  8277. */
  8278. readonly count?: number
  8279. }
  8280. /**
  8281. * Request parameters for getTimeBuckets operation in AssetApi.
  8282. * @export
  8283. * @interface AssetApiGetTimeBucketsRequest
  8284. */
  8285. export interface AssetApiGetTimeBucketsRequest {
  8286. /**
  8287. *
  8288. * @type {TimeBucketSize}
  8289. * @memberof AssetApiGetTimeBuckets
  8290. */
  8291. readonly size: TimeBucketSize
  8292. /**
  8293. *
  8294. * @type {string}
  8295. * @memberof AssetApiGetTimeBuckets
  8296. */
  8297. readonly userId?: string
  8298. /**
  8299. *
  8300. * @type {string}
  8301. * @memberof AssetApiGetTimeBuckets
  8302. */
  8303. readonly albumId?: string
  8304. /**
  8305. *
  8306. * @type {string}
  8307. * @memberof AssetApiGetTimeBuckets
  8308. */
  8309. readonly personId?: string
  8310. /**
  8311. *
  8312. * @type {boolean}
  8313. * @memberof AssetApiGetTimeBuckets
  8314. */
  8315. readonly isArchived?: boolean
  8316. /**
  8317. *
  8318. * @type {boolean}
  8319. * @memberof AssetApiGetTimeBuckets
  8320. */
  8321. readonly isFavorite?: boolean
  8322. /**
  8323. *
  8324. * @type {boolean}
  8325. * @memberof AssetApiGetTimeBuckets
  8326. */
  8327. readonly isTrashed?: boolean
  8328. /**
  8329. *
  8330. * @type {boolean}
  8331. * @memberof AssetApiGetTimeBuckets
  8332. */
  8333. readonly withStacked?: boolean
  8334. /**
  8335. *
  8336. * @type {string}
  8337. * @memberof AssetApiGetTimeBuckets
  8338. */
  8339. readonly key?: string
  8340. }
  8341. /**
  8342. * Request parameters for getUserAssetsByDeviceId operation in AssetApi.
  8343. * @export
  8344. * @interface AssetApiGetUserAssetsByDeviceIdRequest
  8345. */
  8346. export interface AssetApiGetUserAssetsByDeviceIdRequest {
  8347. /**
  8348. *
  8349. * @type {string}
  8350. * @memberof AssetApiGetUserAssetsByDeviceId
  8351. */
  8352. readonly deviceId: string
  8353. }
  8354. /**
  8355. * Request parameters for importFile operation in AssetApi.
  8356. * @export
  8357. * @interface AssetApiImportFileRequest
  8358. */
  8359. export interface AssetApiImportFileRequest {
  8360. /**
  8361. *
  8362. * @type {ImportAssetDto}
  8363. * @memberof AssetApiImportFile
  8364. */
  8365. readonly importAssetDto: ImportAssetDto
  8366. }
  8367. /**
  8368. * Request parameters for restoreAssets operation in AssetApi.
  8369. * @export
  8370. * @interface AssetApiRestoreAssetsRequest
  8371. */
  8372. export interface AssetApiRestoreAssetsRequest {
  8373. /**
  8374. *
  8375. * @type {BulkIdsDto}
  8376. * @memberof AssetApiRestoreAssets
  8377. */
  8378. readonly bulkIdsDto: BulkIdsDto
  8379. }
  8380. /**
  8381. * Request parameters for runAssetJobs operation in AssetApi.
  8382. * @export
  8383. * @interface AssetApiRunAssetJobsRequest
  8384. */
  8385. export interface AssetApiRunAssetJobsRequest {
  8386. /**
  8387. *
  8388. * @type {AssetJobsDto}
  8389. * @memberof AssetApiRunAssetJobs
  8390. */
  8391. readonly assetJobsDto: AssetJobsDto
  8392. }
  8393. /**
  8394. * Request parameters for searchAsset operation in AssetApi.
  8395. * @export
  8396. * @interface AssetApiSearchAssetRequest
  8397. */
  8398. export interface AssetApiSearchAssetRequest {
  8399. /**
  8400. *
  8401. * @type {SearchAssetDto}
  8402. * @memberof AssetApiSearchAsset
  8403. */
  8404. readonly searchAssetDto: SearchAssetDto
  8405. }
  8406. /**
  8407. * Request parameters for serveFile operation in AssetApi.
  8408. * @export
  8409. * @interface AssetApiServeFileRequest
  8410. */
  8411. export interface AssetApiServeFileRequest {
  8412. /**
  8413. *
  8414. * @type {string}
  8415. * @memberof AssetApiServeFile
  8416. */
  8417. readonly id: string
  8418. /**
  8419. *
  8420. * @type {boolean}
  8421. * @memberof AssetApiServeFile
  8422. */
  8423. readonly isThumb?: boolean
  8424. /**
  8425. *
  8426. * @type {boolean}
  8427. * @memberof AssetApiServeFile
  8428. */
  8429. readonly isWeb?: boolean
  8430. /**
  8431. *
  8432. * @type {string}
  8433. * @memberof AssetApiServeFile
  8434. */
  8435. readonly key?: string
  8436. }
  8437. /**
  8438. * Request parameters for updateAsset operation in AssetApi.
  8439. * @export
  8440. * @interface AssetApiUpdateAssetRequest
  8441. */
  8442. export interface AssetApiUpdateAssetRequest {
  8443. /**
  8444. *
  8445. * @type {string}
  8446. * @memberof AssetApiUpdateAsset
  8447. */
  8448. readonly id: string
  8449. /**
  8450. *
  8451. * @type {UpdateAssetDto}
  8452. * @memberof AssetApiUpdateAsset
  8453. */
  8454. readonly updateAssetDto: UpdateAssetDto
  8455. }
  8456. /**
  8457. * Request parameters for updateAssets operation in AssetApi.
  8458. * @export
  8459. * @interface AssetApiUpdateAssetsRequest
  8460. */
  8461. export interface AssetApiUpdateAssetsRequest {
  8462. /**
  8463. *
  8464. * @type {AssetBulkUpdateDto}
  8465. * @memberof AssetApiUpdateAssets
  8466. */
  8467. readonly assetBulkUpdateDto: AssetBulkUpdateDto
  8468. }
  8469. /**
  8470. * Request parameters for updateStackParent operation in AssetApi.
  8471. * @export
  8472. * @interface AssetApiUpdateStackParentRequest
  8473. */
  8474. export interface AssetApiUpdateStackParentRequest {
  8475. /**
  8476. *
  8477. * @type {UpdateStackParentDto}
  8478. * @memberof AssetApiUpdateStackParent
  8479. */
  8480. readonly updateStackParentDto: UpdateStackParentDto
  8481. }
  8482. /**
  8483. * Request parameters for uploadFile operation in AssetApi.
  8484. * @export
  8485. * @interface AssetApiUploadFileRequest
  8486. */
  8487. export interface AssetApiUploadFileRequest {
  8488. /**
  8489. *
  8490. * @type {File}
  8491. * @memberof AssetApiUploadFile
  8492. */
  8493. readonly assetData: File
  8494. /**
  8495. *
  8496. * @type {string}
  8497. * @memberof AssetApiUploadFile
  8498. */
  8499. readonly deviceAssetId: string
  8500. /**
  8501. *
  8502. * @type {string}
  8503. * @memberof AssetApiUploadFile
  8504. */
  8505. readonly deviceId: string
  8506. /**
  8507. *
  8508. * @type {string}
  8509. * @memberof AssetApiUploadFile
  8510. */
  8511. readonly fileCreatedAt: string
  8512. /**
  8513. *
  8514. * @type {string}
  8515. * @memberof AssetApiUploadFile
  8516. */
  8517. readonly fileModifiedAt: string
  8518. /**
  8519. *
  8520. * @type {boolean}
  8521. * @memberof AssetApiUploadFile
  8522. */
  8523. readonly isFavorite: boolean
  8524. /**
  8525. *
  8526. * @type {string}
  8527. * @memberof AssetApiUploadFile
  8528. */
  8529. readonly key?: string
  8530. /**
  8531. *
  8532. * @type {string}
  8533. * @memberof AssetApiUploadFile
  8534. */
  8535. readonly duration?: string
  8536. /**
  8537. *
  8538. * @type {boolean}
  8539. * @memberof AssetApiUploadFile
  8540. */
  8541. readonly isArchived?: boolean
  8542. /**
  8543. *
  8544. * @type {boolean}
  8545. * @memberof AssetApiUploadFile
  8546. */
  8547. readonly isExternal?: boolean
  8548. /**
  8549. *
  8550. * @type {boolean}
  8551. * @memberof AssetApiUploadFile
  8552. */
  8553. readonly isOffline?: boolean
  8554. /**
  8555. *
  8556. * @type {boolean}
  8557. * @memberof AssetApiUploadFile
  8558. */
  8559. readonly isReadOnly?: boolean
  8560. /**
  8561. *
  8562. * @type {boolean}
  8563. * @memberof AssetApiUploadFile
  8564. */
  8565. readonly isVisible?: boolean
  8566. /**
  8567. *
  8568. * @type {string}
  8569. * @memberof AssetApiUploadFile
  8570. */
  8571. readonly libraryId?: string
  8572. /**
  8573. *
  8574. * @type {File}
  8575. * @memberof AssetApiUploadFile
  8576. */
  8577. readonly livePhotoData?: File
  8578. /**
  8579. *
  8580. * @type {File}
  8581. * @memberof AssetApiUploadFile
  8582. */
  8583. readonly sidecarData?: File
  8584. }
  8585. /**
  8586. * AssetApi - object-oriented interface
  8587. * @export
  8588. * @class AssetApi
  8589. * @extends {BaseAPI}
  8590. */
  8591. export class AssetApi extends BaseAPI {
  8592. /**
  8593. * Checks if assets exist by checksums
  8594. * @param {AssetApiBulkUploadCheckRequest} requestParameters Request parameters.
  8595. * @param {*} [options] Override http request option.
  8596. * @throws {RequiredError}
  8597. * @memberof AssetApi
  8598. */
  8599. public bulkUploadCheck(requestParameters: AssetApiBulkUploadCheckRequest, options?: AxiosRequestConfig) {
  8600. return AssetApiFp(this.configuration).bulkUploadCheck(requestParameters.assetBulkUploadCheckDto, options).then((request) => request(this.axios, this.basePath));
  8601. }
  8602. /**
  8603. * Checks if multiple assets exist on the server and returns all existing - used by background backup
  8604. * @param {AssetApiCheckExistingAssetsRequest} requestParameters Request parameters.
  8605. * @param {*} [options] Override http request option.
  8606. * @throws {RequiredError}
  8607. * @memberof AssetApi
  8608. */
  8609. public checkExistingAssets(requestParameters: AssetApiCheckExistingAssetsRequest, options?: AxiosRequestConfig) {
  8610. return AssetApiFp(this.configuration).checkExistingAssets(requestParameters.checkExistingAssetsDto, options).then((request) => request(this.axios, this.basePath));
  8611. }
  8612. /**
  8613. *
  8614. * @param {AssetApiDeleteAssetsRequest} requestParameters Request parameters.
  8615. * @param {*} [options] Override http request option.
  8616. * @throws {RequiredError}
  8617. * @memberof AssetApi
  8618. */
  8619. public deleteAssets(requestParameters: AssetApiDeleteAssetsRequest, options?: AxiosRequestConfig) {
  8620. return AssetApiFp(this.configuration).deleteAssets(requestParameters.assetBulkDeleteDto, options).then((request) => request(this.axios, this.basePath));
  8621. }
  8622. /**
  8623. *
  8624. * @param {AssetApiDownloadArchiveRequest} requestParameters Request parameters.
  8625. * @param {*} [options] Override http request option.
  8626. * @throws {RequiredError}
  8627. * @memberof AssetApi
  8628. */
  8629. public downloadArchive(requestParameters: AssetApiDownloadArchiveRequest, options?: AxiosRequestConfig) {
  8630. return AssetApiFp(this.configuration).downloadArchive(requestParameters.assetIdsDto, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  8631. }
  8632. /**
  8633. *
  8634. * @param {AssetApiDownloadFileRequest} requestParameters Request parameters.
  8635. * @param {*} [options] Override http request option.
  8636. * @throws {RequiredError}
  8637. * @memberof AssetApi
  8638. */
  8639. public downloadFile(requestParameters: AssetApiDownloadFileRequest, options?: AxiosRequestConfig) {
  8640. return AssetApiFp(this.configuration).downloadFile(requestParameters.id, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  8641. }
  8642. /**
  8643. *
  8644. * @param {*} [options] Override http request option.
  8645. * @throws {RequiredError}
  8646. * @memberof AssetApi
  8647. */
  8648. public emptyTrash(options?: AxiosRequestConfig) {
  8649. return AssetApiFp(this.configuration).emptyTrash(options).then((request) => request(this.axios, this.basePath));
  8650. }
  8651. /**
  8652. * Get all AssetEntity belong to the user
  8653. * @param {AssetApiGetAllAssetsRequest} requestParameters Request parameters.
  8654. * @param {*} [options] Override http request option.
  8655. * @throws {RequiredError}
  8656. * @memberof AssetApi
  8657. */
  8658. public getAllAssets(requestParameters: AssetApiGetAllAssetsRequest = {}, options?: AxiosRequestConfig) {
  8659. 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));
  8660. }
  8661. /**
  8662. * Get a single asset\'s information
  8663. * @param {AssetApiGetAssetByIdRequest} requestParameters Request parameters.
  8664. * @param {*} [options] Override http request option.
  8665. * @throws {RequiredError}
  8666. * @memberof AssetApi
  8667. */
  8668. public getAssetById(requestParameters: AssetApiGetAssetByIdRequest, options?: AxiosRequestConfig) {
  8669. return AssetApiFp(this.configuration).getAssetById(requestParameters.id, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  8670. }
  8671. /**
  8672. *
  8673. * @param {*} [options] Override http request option.
  8674. * @throws {RequiredError}
  8675. * @memberof AssetApi
  8676. */
  8677. public getAssetSearchTerms(options?: AxiosRequestConfig) {
  8678. return AssetApiFp(this.configuration).getAssetSearchTerms(options).then((request) => request(this.axios, this.basePath));
  8679. }
  8680. /**
  8681. *
  8682. * @param {AssetApiGetAssetStatsRequest} requestParameters Request parameters.
  8683. * @param {*} [options] Override http request option.
  8684. * @throws {RequiredError}
  8685. * @memberof AssetApi
  8686. */
  8687. public getAssetStats(requestParameters: AssetApiGetAssetStatsRequest = {}, options?: AxiosRequestConfig) {
  8688. return AssetApiFp(this.configuration).getAssetStats(requestParameters.isArchived, requestParameters.isFavorite, requestParameters.isTrashed, options).then((request) => request(this.axios, this.basePath));
  8689. }
  8690. /**
  8691. *
  8692. * @param {AssetApiGetAssetThumbnailRequest} requestParameters Request parameters.
  8693. * @param {*} [options] Override http request option.
  8694. * @throws {RequiredError}
  8695. * @memberof AssetApi
  8696. */
  8697. public getAssetThumbnail(requestParameters: AssetApiGetAssetThumbnailRequest, options?: AxiosRequestConfig) {
  8698. return AssetApiFp(this.configuration).getAssetThumbnail(requestParameters.id, requestParameters.format, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  8699. }
  8700. /**
  8701. *
  8702. * @param {AssetApiGetByTimeBucketRequest} requestParameters Request parameters.
  8703. * @param {*} [options] Override http request option.
  8704. * @throws {RequiredError}
  8705. * @memberof AssetApi
  8706. */
  8707. public getByTimeBucket(requestParameters: AssetApiGetByTimeBucketRequest, options?: AxiosRequestConfig) {
  8708. 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));
  8709. }
  8710. /**
  8711. *
  8712. * @param {*} [options] Override http request option.
  8713. * @throws {RequiredError}
  8714. * @memberof AssetApi
  8715. */
  8716. public getCuratedLocations(options?: AxiosRequestConfig) {
  8717. return AssetApiFp(this.configuration).getCuratedLocations(options).then((request) => request(this.axios, this.basePath));
  8718. }
  8719. /**
  8720. *
  8721. * @param {*} [options] Override http request option.
  8722. * @throws {RequiredError}
  8723. * @memberof AssetApi
  8724. */
  8725. public getCuratedObjects(options?: AxiosRequestConfig) {
  8726. return AssetApiFp(this.configuration).getCuratedObjects(options).then((request) => request(this.axios, this.basePath));
  8727. }
  8728. /**
  8729. *
  8730. * @param {AssetApiGetDownloadInfoRequest} requestParameters Request parameters.
  8731. * @param {*} [options] Override http request option.
  8732. * @throws {RequiredError}
  8733. * @memberof AssetApi
  8734. */
  8735. public getDownloadInfo(requestParameters: AssetApiGetDownloadInfoRequest, options?: AxiosRequestConfig) {
  8736. return AssetApiFp(this.configuration).getDownloadInfo(requestParameters.downloadInfoDto, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  8737. }
  8738. /**
  8739. *
  8740. * @param {AssetApiGetMapMarkersRequest} requestParameters Request parameters.
  8741. * @param {*} [options] Override http request option.
  8742. * @throws {RequiredError}
  8743. * @memberof AssetApi
  8744. */
  8745. public getMapMarkers(requestParameters: AssetApiGetMapMarkersRequest = {}, options?: AxiosRequestConfig) {
  8746. return AssetApiFp(this.configuration).getMapMarkers(requestParameters.isArchived, requestParameters.isFavorite, requestParameters.fileCreatedAfter, requestParameters.fileCreatedBefore, options).then((request) => request(this.axios, this.basePath));
  8747. }
  8748. /**
  8749. *
  8750. * @param {AssetApiGetMemoryLaneRequest} requestParameters Request parameters.
  8751. * @param {*} [options] Override http request option.
  8752. * @throws {RequiredError}
  8753. * @memberof AssetApi
  8754. */
  8755. public getMemoryLane(requestParameters: AssetApiGetMemoryLaneRequest, options?: AxiosRequestConfig) {
  8756. return AssetApiFp(this.configuration).getMemoryLane(requestParameters.day, requestParameters.month, options).then((request) => request(this.axios, this.basePath));
  8757. }
  8758. /**
  8759. *
  8760. * @param {AssetApiGetRandomRequest} requestParameters Request parameters.
  8761. * @param {*} [options] Override http request option.
  8762. * @throws {RequiredError}
  8763. * @memberof AssetApi
  8764. */
  8765. public getRandom(requestParameters: AssetApiGetRandomRequest = {}, options?: AxiosRequestConfig) {
  8766. return AssetApiFp(this.configuration).getRandom(requestParameters.count, options).then((request) => request(this.axios, this.basePath));
  8767. }
  8768. /**
  8769. *
  8770. * @param {AssetApiGetTimeBucketsRequest} requestParameters Request parameters.
  8771. * @param {*} [options] Override http request option.
  8772. * @throws {RequiredError}
  8773. * @memberof AssetApi
  8774. */
  8775. public getTimeBuckets(requestParameters: AssetApiGetTimeBucketsRequest, options?: AxiosRequestConfig) {
  8776. 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));
  8777. }
  8778. /**
  8779. * Get all asset of a device that are in the database, ID only.
  8780. * @param {AssetApiGetUserAssetsByDeviceIdRequest} requestParameters Request parameters.
  8781. * @param {*} [options] Override http request option.
  8782. * @throws {RequiredError}
  8783. * @memberof AssetApi
  8784. */
  8785. public getUserAssetsByDeviceId(requestParameters: AssetApiGetUserAssetsByDeviceIdRequest, options?: AxiosRequestConfig) {
  8786. return AssetApiFp(this.configuration).getUserAssetsByDeviceId(requestParameters.deviceId, options).then((request) => request(this.axios, this.basePath));
  8787. }
  8788. /**
  8789. *
  8790. * @param {AssetApiImportFileRequest} requestParameters Request parameters.
  8791. * @param {*} [options] Override http request option.
  8792. * @throws {RequiredError}
  8793. * @memberof AssetApi
  8794. */
  8795. public importFile(requestParameters: AssetApiImportFileRequest, options?: AxiosRequestConfig) {
  8796. return AssetApiFp(this.configuration).importFile(requestParameters.importAssetDto, options).then((request) => request(this.axios, this.basePath));
  8797. }
  8798. /**
  8799. *
  8800. * @param {AssetApiRestoreAssetsRequest} requestParameters Request parameters.
  8801. * @param {*} [options] Override http request option.
  8802. * @throws {RequiredError}
  8803. * @memberof AssetApi
  8804. */
  8805. public restoreAssets(requestParameters: AssetApiRestoreAssetsRequest, options?: AxiosRequestConfig) {
  8806. return AssetApiFp(this.configuration).restoreAssets(requestParameters.bulkIdsDto, options).then((request) => request(this.axios, this.basePath));
  8807. }
  8808. /**
  8809. *
  8810. * @param {*} [options] Override http request option.
  8811. * @throws {RequiredError}
  8812. * @memberof AssetApi
  8813. */
  8814. public restoreTrash(options?: AxiosRequestConfig) {
  8815. return AssetApiFp(this.configuration).restoreTrash(options).then((request) => request(this.axios, this.basePath));
  8816. }
  8817. /**
  8818. *
  8819. * @param {AssetApiRunAssetJobsRequest} requestParameters Request parameters.
  8820. * @param {*} [options] Override http request option.
  8821. * @throws {RequiredError}
  8822. * @memberof AssetApi
  8823. */
  8824. public runAssetJobs(requestParameters: AssetApiRunAssetJobsRequest, options?: AxiosRequestConfig) {
  8825. return AssetApiFp(this.configuration).runAssetJobs(requestParameters.assetJobsDto, options).then((request) => request(this.axios, this.basePath));
  8826. }
  8827. /**
  8828. *
  8829. * @param {AssetApiSearchAssetRequest} requestParameters Request parameters.
  8830. * @param {*} [options] Override http request option.
  8831. * @throws {RequiredError}
  8832. * @memberof AssetApi
  8833. */
  8834. public searchAsset(requestParameters: AssetApiSearchAssetRequest, options?: AxiosRequestConfig) {
  8835. return AssetApiFp(this.configuration).searchAsset(requestParameters.searchAssetDto, options).then((request) => request(this.axios, this.basePath));
  8836. }
  8837. /**
  8838. *
  8839. * @param {AssetApiServeFileRequest} requestParameters Request parameters.
  8840. * @param {*} [options] Override http request option.
  8841. * @throws {RequiredError}
  8842. * @memberof AssetApi
  8843. */
  8844. public serveFile(requestParameters: AssetApiServeFileRequest, options?: AxiosRequestConfig) {
  8845. return AssetApiFp(this.configuration).serveFile(requestParameters.id, requestParameters.isThumb, requestParameters.isWeb, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  8846. }
  8847. /**
  8848. *
  8849. * @param {AssetApiUpdateAssetRequest} requestParameters Request parameters.
  8850. * @param {*} [options] Override http request option.
  8851. * @throws {RequiredError}
  8852. * @memberof AssetApi
  8853. */
  8854. public updateAsset(requestParameters: AssetApiUpdateAssetRequest, options?: AxiosRequestConfig) {
  8855. return AssetApiFp(this.configuration).updateAsset(requestParameters.id, requestParameters.updateAssetDto, options).then((request) => request(this.axios, this.basePath));
  8856. }
  8857. /**
  8858. *
  8859. * @param {AssetApiUpdateAssetsRequest} requestParameters Request parameters.
  8860. * @param {*} [options] Override http request option.
  8861. * @throws {RequiredError}
  8862. * @memberof AssetApi
  8863. */
  8864. public updateAssets(requestParameters: AssetApiUpdateAssetsRequest, options?: AxiosRequestConfig) {
  8865. return AssetApiFp(this.configuration).updateAssets(requestParameters.assetBulkUpdateDto, options).then((request) => request(this.axios, this.basePath));
  8866. }
  8867. /**
  8868. *
  8869. * @param {AssetApiUpdateStackParentRequest} requestParameters Request parameters.
  8870. * @param {*} [options] Override http request option.
  8871. * @throws {RequiredError}
  8872. * @memberof AssetApi
  8873. */
  8874. public updateStackParent(requestParameters: AssetApiUpdateStackParentRequest, options?: AxiosRequestConfig) {
  8875. return AssetApiFp(this.configuration).updateStackParent(requestParameters.updateStackParentDto, options).then((request) => request(this.axios, this.basePath));
  8876. }
  8877. /**
  8878. *
  8879. * @param {AssetApiUploadFileRequest} requestParameters Request parameters.
  8880. * @param {*} [options] Override http request option.
  8881. * @throws {RequiredError}
  8882. * @memberof AssetApi
  8883. */
  8884. public uploadFile(requestParameters: AssetApiUploadFileRequest, options?: AxiosRequestConfig) {
  8885. 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));
  8886. }
  8887. }
  8888. /**
  8889. * AuditApi - axios parameter creator
  8890. * @export
  8891. */
  8892. export const AuditApiAxiosParamCreator = function (configuration?: Configuration) {
  8893. return {
  8894. /**
  8895. *
  8896. * @param {FileReportFixDto} fileReportFixDto
  8897. * @param {*} [options] Override http request option.
  8898. * @throws {RequiredError}
  8899. */
  8900. fixAuditFiles: async (fileReportFixDto: FileReportFixDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  8901. // verify required parameter 'fileReportFixDto' is not null or undefined
  8902. assertParamExists('fixAuditFiles', 'fileReportFixDto', fileReportFixDto)
  8903. const localVarPath = `/audit/file-report/fix`;
  8904. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  8905. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  8906. let baseOptions;
  8907. if (configuration) {
  8908. baseOptions = configuration.baseOptions;
  8909. }
  8910. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  8911. const localVarHeaderParameter = {} as any;
  8912. const localVarQueryParameter = {} as any;
  8913. // authentication cookie required
  8914. // authentication api_key required
  8915. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  8916. // authentication bearer required
  8917. // http bearer authentication required
  8918. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  8919. localVarHeaderParameter['Content-Type'] = 'application/json';
  8920. setSearchParams(localVarUrlObj, localVarQueryParameter);
  8921. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  8922. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  8923. localVarRequestOptions.data = serializeDataIfNeeded(fileReportFixDto, localVarRequestOptions, configuration)
  8924. return {
  8925. url: toPathString(localVarUrlObj),
  8926. options: localVarRequestOptions,
  8927. };
  8928. },
  8929. /**
  8930. *
  8931. * @param {EntityType} entityType
  8932. * @param {string} after
  8933. * @param {string} [userId]
  8934. * @param {*} [options] Override http request option.
  8935. * @throws {RequiredError}
  8936. */
  8937. getAuditDeletes: async (entityType: EntityType, after: string, userId?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  8938. // verify required parameter 'entityType' is not null or undefined
  8939. assertParamExists('getAuditDeletes', 'entityType', entityType)
  8940. // verify required parameter 'after' is not null or undefined
  8941. assertParamExists('getAuditDeletes', 'after', after)
  8942. const localVarPath = `/audit/deletes`;
  8943. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  8944. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  8945. let baseOptions;
  8946. if (configuration) {
  8947. baseOptions = configuration.baseOptions;
  8948. }
  8949. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  8950. const localVarHeaderParameter = {} as any;
  8951. const localVarQueryParameter = {} as any;
  8952. // authentication cookie required
  8953. // authentication api_key required
  8954. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  8955. // authentication bearer required
  8956. // http bearer authentication required
  8957. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  8958. if (entityType !== undefined) {
  8959. localVarQueryParameter['entityType'] = entityType;
  8960. }
  8961. if (userId !== undefined) {
  8962. localVarQueryParameter['userId'] = userId;
  8963. }
  8964. if (after !== undefined) {
  8965. localVarQueryParameter['after'] = (after as any instanceof Date) ?
  8966. (after as any).toISOString() :
  8967. after;
  8968. }
  8969. setSearchParams(localVarUrlObj, localVarQueryParameter);
  8970. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  8971. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  8972. return {
  8973. url: toPathString(localVarUrlObj),
  8974. options: localVarRequestOptions,
  8975. };
  8976. },
  8977. /**
  8978. *
  8979. * @param {*} [options] Override http request option.
  8980. * @throws {RequiredError}
  8981. */
  8982. getAuditFiles: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  8983. const localVarPath = `/audit/file-report`;
  8984. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  8985. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  8986. let baseOptions;
  8987. if (configuration) {
  8988. baseOptions = configuration.baseOptions;
  8989. }
  8990. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  8991. const localVarHeaderParameter = {} as any;
  8992. const localVarQueryParameter = {} as any;
  8993. // authentication cookie required
  8994. // authentication api_key required
  8995. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  8996. // authentication bearer required
  8997. // http bearer authentication required
  8998. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  8999. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9000. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9001. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9002. return {
  9003. url: toPathString(localVarUrlObj),
  9004. options: localVarRequestOptions,
  9005. };
  9006. },
  9007. /**
  9008. *
  9009. * @param {FileChecksumDto} fileChecksumDto
  9010. * @param {*} [options] Override http request option.
  9011. * @throws {RequiredError}
  9012. */
  9013. getFileChecksums: async (fileChecksumDto: FileChecksumDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9014. // verify required parameter 'fileChecksumDto' is not null or undefined
  9015. assertParamExists('getFileChecksums', 'fileChecksumDto', fileChecksumDto)
  9016. const localVarPath = `/audit/file-report/checksum`;
  9017. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9018. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9019. let baseOptions;
  9020. if (configuration) {
  9021. baseOptions = configuration.baseOptions;
  9022. }
  9023. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  9024. const localVarHeaderParameter = {} as any;
  9025. const localVarQueryParameter = {} as any;
  9026. // authentication cookie required
  9027. // authentication api_key required
  9028. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  9029. // authentication bearer required
  9030. // http bearer authentication required
  9031. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  9032. localVarHeaderParameter['Content-Type'] = 'application/json';
  9033. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9034. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9035. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9036. localVarRequestOptions.data = serializeDataIfNeeded(fileChecksumDto, localVarRequestOptions, configuration)
  9037. return {
  9038. url: toPathString(localVarUrlObj),
  9039. options: localVarRequestOptions,
  9040. };
  9041. },
  9042. }
  9043. };
  9044. /**
  9045. * AuditApi - functional programming interface
  9046. * @export
  9047. */
  9048. export const AuditApiFp = function(configuration?: Configuration) {
  9049. const localVarAxiosParamCreator = AuditApiAxiosParamCreator(configuration)
  9050. return {
  9051. /**
  9052. *
  9053. * @param {FileReportFixDto} fileReportFixDto
  9054. * @param {*} [options] Override http request option.
  9055. * @throws {RequiredError}
  9056. */
  9057. async fixAuditFiles(fileReportFixDto: FileReportFixDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  9058. const localVarAxiosArgs = await localVarAxiosParamCreator.fixAuditFiles(fileReportFixDto, options);
  9059. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9060. },
  9061. /**
  9062. *
  9063. * @param {EntityType} entityType
  9064. * @param {string} after
  9065. * @param {string} [userId]
  9066. * @param {*} [options] Override http request option.
  9067. * @throws {RequiredError}
  9068. */
  9069. async getAuditDeletes(entityType: EntityType, after: string, userId?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AuditDeletesResponseDto>> {
  9070. const localVarAxiosArgs = await localVarAxiosParamCreator.getAuditDeletes(entityType, after, userId, options);
  9071. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9072. },
  9073. /**
  9074. *
  9075. * @param {*} [options] Override http request option.
  9076. * @throws {RequiredError}
  9077. */
  9078. async getAuditFiles(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FileReportDto>> {
  9079. const localVarAxiosArgs = await localVarAxiosParamCreator.getAuditFiles(options);
  9080. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9081. },
  9082. /**
  9083. *
  9084. * @param {FileChecksumDto} fileChecksumDto
  9085. * @param {*} [options] Override http request option.
  9086. * @throws {RequiredError}
  9087. */
  9088. async getFileChecksums(fileChecksumDto: FileChecksumDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<FileChecksumResponseDto>>> {
  9089. const localVarAxiosArgs = await localVarAxiosParamCreator.getFileChecksums(fileChecksumDto, options);
  9090. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9091. },
  9092. }
  9093. };
  9094. /**
  9095. * AuditApi - factory interface
  9096. * @export
  9097. */
  9098. export const AuditApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  9099. const localVarFp = AuditApiFp(configuration)
  9100. return {
  9101. /**
  9102. *
  9103. * @param {AuditApiFixAuditFilesRequest} requestParameters Request parameters.
  9104. * @param {*} [options] Override http request option.
  9105. * @throws {RequiredError}
  9106. */
  9107. fixAuditFiles(requestParameters: AuditApiFixAuditFilesRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  9108. return localVarFp.fixAuditFiles(requestParameters.fileReportFixDto, options).then((request) => request(axios, basePath));
  9109. },
  9110. /**
  9111. *
  9112. * @param {AuditApiGetAuditDeletesRequest} requestParameters Request parameters.
  9113. * @param {*} [options] Override http request option.
  9114. * @throws {RequiredError}
  9115. */
  9116. getAuditDeletes(requestParameters: AuditApiGetAuditDeletesRequest, options?: AxiosRequestConfig): AxiosPromise<AuditDeletesResponseDto> {
  9117. return localVarFp.getAuditDeletes(requestParameters.entityType, requestParameters.after, requestParameters.userId, options).then((request) => request(axios, basePath));
  9118. },
  9119. /**
  9120. *
  9121. * @param {*} [options] Override http request option.
  9122. * @throws {RequiredError}
  9123. */
  9124. getAuditFiles(options?: AxiosRequestConfig): AxiosPromise<FileReportDto> {
  9125. return localVarFp.getAuditFiles(options).then((request) => request(axios, basePath));
  9126. },
  9127. /**
  9128. *
  9129. * @param {AuditApiGetFileChecksumsRequest} requestParameters Request parameters.
  9130. * @param {*} [options] Override http request option.
  9131. * @throws {RequiredError}
  9132. */
  9133. getFileChecksums(requestParameters: AuditApiGetFileChecksumsRequest, options?: AxiosRequestConfig): AxiosPromise<Array<FileChecksumResponseDto>> {
  9134. return localVarFp.getFileChecksums(requestParameters.fileChecksumDto, options).then((request) => request(axios, basePath));
  9135. },
  9136. };
  9137. };
  9138. /**
  9139. * Request parameters for fixAuditFiles operation in AuditApi.
  9140. * @export
  9141. * @interface AuditApiFixAuditFilesRequest
  9142. */
  9143. export interface AuditApiFixAuditFilesRequest {
  9144. /**
  9145. *
  9146. * @type {FileReportFixDto}
  9147. * @memberof AuditApiFixAuditFiles
  9148. */
  9149. readonly fileReportFixDto: FileReportFixDto
  9150. }
  9151. /**
  9152. * Request parameters for getAuditDeletes operation in AuditApi.
  9153. * @export
  9154. * @interface AuditApiGetAuditDeletesRequest
  9155. */
  9156. export interface AuditApiGetAuditDeletesRequest {
  9157. /**
  9158. *
  9159. * @type {EntityType}
  9160. * @memberof AuditApiGetAuditDeletes
  9161. */
  9162. readonly entityType: EntityType
  9163. /**
  9164. *
  9165. * @type {string}
  9166. * @memberof AuditApiGetAuditDeletes
  9167. */
  9168. readonly after: string
  9169. /**
  9170. *
  9171. * @type {string}
  9172. * @memberof AuditApiGetAuditDeletes
  9173. */
  9174. readonly userId?: string
  9175. }
  9176. /**
  9177. * Request parameters for getFileChecksums operation in AuditApi.
  9178. * @export
  9179. * @interface AuditApiGetFileChecksumsRequest
  9180. */
  9181. export interface AuditApiGetFileChecksumsRequest {
  9182. /**
  9183. *
  9184. * @type {FileChecksumDto}
  9185. * @memberof AuditApiGetFileChecksums
  9186. */
  9187. readonly fileChecksumDto: FileChecksumDto
  9188. }
  9189. /**
  9190. * AuditApi - object-oriented interface
  9191. * @export
  9192. * @class AuditApi
  9193. * @extends {BaseAPI}
  9194. */
  9195. export class AuditApi extends BaseAPI {
  9196. /**
  9197. *
  9198. * @param {AuditApiFixAuditFilesRequest} requestParameters Request parameters.
  9199. * @param {*} [options] Override http request option.
  9200. * @throws {RequiredError}
  9201. * @memberof AuditApi
  9202. */
  9203. public fixAuditFiles(requestParameters: AuditApiFixAuditFilesRequest, options?: AxiosRequestConfig) {
  9204. return AuditApiFp(this.configuration).fixAuditFiles(requestParameters.fileReportFixDto, options).then((request) => request(this.axios, this.basePath));
  9205. }
  9206. /**
  9207. *
  9208. * @param {AuditApiGetAuditDeletesRequest} requestParameters Request parameters.
  9209. * @param {*} [options] Override http request option.
  9210. * @throws {RequiredError}
  9211. * @memberof AuditApi
  9212. */
  9213. public getAuditDeletes(requestParameters: AuditApiGetAuditDeletesRequest, options?: AxiosRequestConfig) {
  9214. return AuditApiFp(this.configuration).getAuditDeletes(requestParameters.entityType, requestParameters.after, requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
  9215. }
  9216. /**
  9217. *
  9218. * @param {*} [options] Override http request option.
  9219. * @throws {RequiredError}
  9220. * @memberof AuditApi
  9221. */
  9222. public getAuditFiles(options?: AxiosRequestConfig) {
  9223. return AuditApiFp(this.configuration).getAuditFiles(options).then((request) => request(this.axios, this.basePath));
  9224. }
  9225. /**
  9226. *
  9227. * @param {AuditApiGetFileChecksumsRequest} requestParameters Request parameters.
  9228. * @param {*} [options] Override http request option.
  9229. * @throws {RequiredError}
  9230. * @memberof AuditApi
  9231. */
  9232. public getFileChecksums(requestParameters: AuditApiGetFileChecksumsRequest, options?: AxiosRequestConfig) {
  9233. return AuditApiFp(this.configuration).getFileChecksums(requestParameters.fileChecksumDto, options).then((request) => request(this.axios, this.basePath));
  9234. }
  9235. }
  9236. /**
  9237. * AuthenticationApi - axios parameter creator
  9238. * @export
  9239. */
  9240. export const AuthenticationApiAxiosParamCreator = function (configuration?: Configuration) {
  9241. return {
  9242. /**
  9243. *
  9244. * @param {SignUpDto} signUpDto
  9245. * @param {*} [options] Override http request option.
  9246. * @throws {RequiredError}
  9247. */
  9248. adminSignUp: async (signUpDto: SignUpDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9249. // verify required parameter 'signUpDto' is not null or undefined
  9250. assertParamExists('adminSignUp', 'signUpDto', signUpDto)
  9251. const localVarPath = `/auth/admin-sign-up`;
  9252. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9253. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9254. let baseOptions;
  9255. if (configuration) {
  9256. baseOptions = configuration.baseOptions;
  9257. }
  9258. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  9259. const localVarHeaderParameter = {} as any;
  9260. const localVarQueryParameter = {} as any;
  9261. localVarHeaderParameter['Content-Type'] = 'application/json';
  9262. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9263. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9264. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9265. localVarRequestOptions.data = serializeDataIfNeeded(signUpDto, localVarRequestOptions, configuration)
  9266. return {
  9267. url: toPathString(localVarUrlObj),
  9268. options: localVarRequestOptions,
  9269. };
  9270. },
  9271. /**
  9272. *
  9273. * @param {ChangePasswordDto} changePasswordDto
  9274. * @param {*} [options] Override http request option.
  9275. * @throws {RequiredError}
  9276. */
  9277. changePassword: async (changePasswordDto: ChangePasswordDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9278. // verify required parameter 'changePasswordDto' is not null or undefined
  9279. assertParamExists('changePassword', 'changePasswordDto', changePasswordDto)
  9280. const localVarPath = `/auth/change-password`;
  9281. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9282. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9283. let baseOptions;
  9284. if (configuration) {
  9285. baseOptions = configuration.baseOptions;
  9286. }
  9287. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  9288. const localVarHeaderParameter = {} as any;
  9289. const localVarQueryParameter = {} as any;
  9290. // authentication cookie required
  9291. // authentication api_key required
  9292. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  9293. // authentication bearer required
  9294. // http bearer authentication required
  9295. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  9296. localVarHeaderParameter['Content-Type'] = 'application/json';
  9297. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9298. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9299. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9300. localVarRequestOptions.data = serializeDataIfNeeded(changePasswordDto, localVarRequestOptions, configuration)
  9301. return {
  9302. url: toPathString(localVarUrlObj),
  9303. options: localVarRequestOptions,
  9304. };
  9305. },
  9306. /**
  9307. *
  9308. * @param {*} [options] Override http request option.
  9309. * @throws {RequiredError}
  9310. */
  9311. getAuthDevices: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9312. const localVarPath = `/auth/devices`;
  9313. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9314. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9315. let baseOptions;
  9316. if (configuration) {
  9317. baseOptions = configuration.baseOptions;
  9318. }
  9319. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  9320. const localVarHeaderParameter = {} as any;
  9321. const localVarQueryParameter = {} as any;
  9322. // authentication cookie required
  9323. // authentication api_key required
  9324. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  9325. // authentication bearer required
  9326. // http bearer authentication required
  9327. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  9328. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9329. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9330. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9331. return {
  9332. url: toPathString(localVarUrlObj),
  9333. options: localVarRequestOptions,
  9334. };
  9335. },
  9336. /**
  9337. *
  9338. * @param {LoginCredentialDto} loginCredentialDto
  9339. * @param {*} [options] Override http request option.
  9340. * @throws {RequiredError}
  9341. */
  9342. login: async (loginCredentialDto: LoginCredentialDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9343. // verify required parameter 'loginCredentialDto' is not null or undefined
  9344. assertParamExists('login', 'loginCredentialDto', loginCredentialDto)
  9345. const localVarPath = `/auth/login`;
  9346. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9347. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9348. let baseOptions;
  9349. if (configuration) {
  9350. baseOptions = configuration.baseOptions;
  9351. }
  9352. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  9353. const localVarHeaderParameter = {} as any;
  9354. const localVarQueryParameter = {} as any;
  9355. localVarHeaderParameter['Content-Type'] = 'application/json';
  9356. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9357. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9358. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9359. localVarRequestOptions.data = serializeDataIfNeeded(loginCredentialDto, localVarRequestOptions, configuration)
  9360. return {
  9361. url: toPathString(localVarUrlObj),
  9362. options: localVarRequestOptions,
  9363. };
  9364. },
  9365. /**
  9366. *
  9367. * @param {*} [options] Override http request option.
  9368. * @throws {RequiredError}
  9369. */
  9370. logout: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9371. const localVarPath = `/auth/logout`;
  9372. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9373. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9374. let baseOptions;
  9375. if (configuration) {
  9376. baseOptions = configuration.baseOptions;
  9377. }
  9378. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  9379. const localVarHeaderParameter = {} as any;
  9380. const localVarQueryParameter = {} as any;
  9381. // authentication cookie required
  9382. // authentication api_key required
  9383. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  9384. // authentication bearer required
  9385. // http bearer authentication required
  9386. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  9387. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9388. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9389. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9390. return {
  9391. url: toPathString(localVarUrlObj),
  9392. options: localVarRequestOptions,
  9393. };
  9394. },
  9395. /**
  9396. *
  9397. * @param {string} id
  9398. * @param {*} [options] Override http request option.
  9399. * @throws {RequiredError}
  9400. */
  9401. logoutAuthDevice: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9402. // verify required parameter 'id' is not null or undefined
  9403. assertParamExists('logoutAuthDevice', 'id', id)
  9404. const localVarPath = `/auth/devices/{id}`
  9405. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  9406. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9407. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9408. let baseOptions;
  9409. if (configuration) {
  9410. baseOptions = configuration.baseOptions;
  9411. }
  9412. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  9413. const localVarHeaderParameter = {} as any;
  9414. const localVarQueryParameter = {} as any;
  9415. // authentication cookie required
  9416. // authentication api_key required
  9417. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  9418. // authentication bearer required
  9419. // http bearer authentication required
  9420. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  9421. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9422. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9423. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9424. return {
  9425. url: toPathString(localVarUrlObj),
  9426. options: localVarRequestOptions,
  9427. };
  9428. },
  9429. /**
  9430. *
  9431. * @param {*} [options] Override http request option.
  9432. * @throws {RequiredError}
  9433. */
  9434. logoutAuthDevices: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9435. const localVarPath = `/auth/devices`;
  9436. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9437. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9438. let baseOptions;
  9439. if (configuration) {
  9440. baseOptions = configuration.baseOptions;
  9441. }
  9442. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  9443. const localVarHeaderParameter = {} as any;
  9444. const localVarQueryParameter = {} as any;
  9445. // authentication cookie required
  9446. // authentication api_key required
  9447. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  9448. // authentication bearer required
  9449. // http bearer authentication required
  9450. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  9451. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9452. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9453. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9454. return {
  9455. url: toPathString(localVarUrlObj),
  9456. options: localVarRequestOptions,
  9457. };
  9458. },
  9459. /**
  9460. *
  9461. * @param {*} [options] Override http request option.
  9462. * @throws {RequiredError}
  9463. */
  9464. validateAccessToken: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9465. const localVarPath = `/auth/validateToken`;
  9466. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9467. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9468. let baseOptions;
  9469. if (configuration) {
  9470. baseOptions = configuration.baseOptions;
  9471. }
  9472. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  9473. const localVarHeaderParameter = {} as any;
  9474. const localVarQueryParameter = {} as any;
  9475. // authentication cookie required
  9476. // authentication api_key required
  9477. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  9478. // authentication bearer required
  9479. // http bearer authentication required
  9480. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  9481. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9482. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9483. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9484. return {
  9485. url: toPathString(localVarUrlObj),
  9486. options: localVarRequestOptions,
  9487. };
  9488. },
  9489. }
  9490. };
  9491. /**
  9492. * AuthenticationApi - functional programming interface
  9493. * @export
  9494. */
  9495. export const AuthenticationApiFp = function(configuration?: Configuration) {
  9496. const localVarAxiosParamCreator = AuthenticationApiAxiosParamCreator(configuration)
  9497. return {
  9498. /**
  9499. *
  9500. * @param {SignUpDto} signUpDto
  9501. * @param {*} [options] Override http request option.
  9502. * @throws {RequiredError}
  9503. */
  9504. async adminSignUp(signUpDto: SignUpDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AdminSignupResponseDto>> {
  9505. const localVarAxiosArgs = await localVarAxiosParamCreator.adminSignUp(signUpDto, options);
  9506. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9507. },
  9508. /**
  9509. *
  9510. * @param {ChangePasswordDto} changePasswordDto
  9511. * @param {*} [options] Override http request option.
  9512. * @throws {RequiredError}
  9513. */
  9514. async changePassword(changePasswordDto: ChangePasswordDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  9515. const localVarAxiosArgs = await localVarAxiosParamCreator.changePassword(changePasswordDto, options);
  9516. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9517. },
  9518. /**
  9519. *
  9520. * @param {*} [options] Override http request option.
  9521. * @throws {RequiredError}
  9522. */
  9523. async getAuthDevices(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AuthDeviceResponseDto>>> {
  9524. const localVarAxiosArgs = await localVarAxiosParamCreator.getAuthDevices(options);
  9525. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9526. },
  9527. /**
  9528. *
  9529. * @param {LoginCredentialDto} loginCredentialDto
  9530. * @param {*} [options] Override http request option.
  9531. * @throws {RequiredError}
  9532. */
  9533. async login(loginCredentialDto: LoginCredentialDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LoginResponseDto>> {
  9534. const localVarAxiosArgs = await localVarAxiosParamCreator.login(loginCredentialDto, options);
  9535. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9536. },
  9537. /**
  9538. *
  9539. * @param {*} [options] Override http request option.
  9540. * @throws {RequiredError}
  9541. */
  9542. async logout(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LogoutResponseDto>> {
  9543. const localVarAxiosArgs = await localVarAxiosParamCreator.logout(options);
  9544. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9545. },
  9546. /**
  9547. *
  9548. * @param {string} id
  9549. * @param {*} [options] Override http request option.
  9550. * @throws {RequiredError}
  9551. */
  9552. async logoutAuthDevice(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  9553. const localVarAxiosArgs = await localVarAxiosParamCreator.logoutAuthDevice(id, options);
  9554. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9555. },
  9556. /**
  9557. *
  9558. * @param {*} [options] Override http request option.
  9559. * @throws {RequiredError}
  9560. */
  9561. async logoutAuthDevices(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  9562. const localVarAxiosArgs = await localVarAxiosParamCreator.logoutAuthDevices(options);
  9563. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9564. },
  9565. /**
  9566. *
  9567. * @param {*} [options] Override http request option.
  9568. * @throws {RequiredError}
  9569. */
  9570. async validateAccessToken(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ValidateAccessTokenResponseDto>> {
  9571. const localVarAxiosArgs = await localVarAxiosParamCreator.validateAccessToken(options);
  9572. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9573. },
  9574. }
  9575. };
  9576. /**
  9577. * AuthenticationApi - factory interface
  9578. * @export
  9579. */
  9580. export const AuthenticationApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  9581. const localVarFp = AuthenticationApiFp(configuration)
  9582. return {
  9583. /**
  9584. *
  9585. * @param {AuthenticationApiAdminSignUpRequest} requestParameters Request parameters.
  9586. * @param {*} [options] Override http request option.
  9587. * @throws {RequiredError}
  9588. */
  9589. adminSignUp(requestParameters: AuthenticationApiAdminSignUpRequest, options?: AxiosRequestConfig): AxiosPromise<AdminSignupResponseDto> {
  9590. return localVarFp.adminSignUp(requestParameters.signUpDto, options).then((request) => request(axios, basePath));
  9591. },
  9592. /**
  9593. *
  9594. * @param {AuthenticationApiChangePasswordRequest} requestParameters Request parameters.
  9595. * @param {*} [options] Override http request option.
  9596. * @throws {RequiredError}
  9597. */
  9598. changePassword(requestParameters: AuthenticationApiChangePasswordRequest, options?: AxiosRequestConfig): AxiosPromise<UserResponseDto> {
  9599. return localVarFp.changePassword(requestParameters.changePasswordDto, options).then((request) => request(axios, basePath));
  9600. },
  9601. /**
  9602. *
  9603. * @param {*} [options] Override http request option.
  9604. * @throws {RequiredError}
  9605. */
  9606. getAuthDevices(options?: AxiosRequestConfig): AxiosPromise<Array<AuthDeviceResponseDto>> {
  9607. return localVarFp.getAuthDevices(options).then((request) => request(axios, basePath));
  9608. },
  9609. /**
  9610. *
  9611. * @param {AuthenticationApiLoginRequest} requestParameters Request parameters.
  9612. * @param {*} [options] Override http request option.
  9613. * @throws {RequiredError}
  9614. */
  9615. login(requestParameters: AuthenticationApiLoginRequest, options?: AxiosRequestConfig): AxiosPromise<LoginResponseDto> {
  9616. return localVarFp.login(requestParameters.loginCredentialDto, options).then((request) => request(axios, basePath));
  9617. },
  9618. /**
  9619. *
  9620. * @param {*} [options] Override http request option.
  9621. * @throws {RequiredError}
  9622. */
  9623. logout(options?: AxiosRequestConfig): AxiosPromise<LogoutResponseDto> {
  9624. return localVarFp.logout(options).then((request) => request(axios, basePath));
  9625. },
  9626. /**
  9627. *
  9628. * @param {AuthenticationApiLogoutAuthDeviceRequest} requestParameters Request parameters.
  9629. * @param {*} [options] Override http request option.
  9630. * @throws {RequiredError}
  9631. */
  9632. logoutAuthDevice(requestParameters: AuthenticationApiLogoutAuthDeviceRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  9633. return localVarFp.logoutAuthDevice(requestParameters.id, options).then((request) => request(axios, basePath));
  9634. },
  9635. /**
  9636. *
  9637. * @param {*} [options] Override http request option.
  9638. * @throws {RequiredError}
  9639. */
  9640. logoutAuthDevices(options?: AxiosRequestConfig): AxiosPromise<void> {
  9641. return localVarFp.logoutAuthDevices(options).then((request) => request(axios, basePath));
  9642. },
  9643. /**
  9644. *
  9645. * @param {*} [options] Override http request option.
  9646. * @throws {RequiredError}
  9647. */
  9648. validateAccessToken(options?: AxiosRequestConfig): AxiosPromise<ValidateAccessTokenResponseDto> {
  9649. return localVarFp.validateAccessToken(options).then((request) => request(axios, basePath));
  9650. },
  9651. };
  9652. };
  9653. /**
  9654. * Request parameters for adminSignUp operation in AuthenticationApi.
  9655. * @export
  9656. * @interface AuthenticationApiAdminSignUpRequest
  9657. */
  9658. export interface AuthenticationApiAdminSignUpRequest {
  9659. /**
  9660. *
  9661. * @type {SignUpDto}
  9662. * @memberof AuthenticationApiAdminSignUp
  9663. */
  9664. readonly signUpDto: SignUpDto
  9665. }
  9666. /**
  9667. * Request parameters for changePassword operation in AuthenticationApi.
  9668. * @export
  9669. * @interface AuthenticationApiChangePasswordRequest
  9670. */
  9671. export interface AuthenticationApiChangePasswordRequest {
  9672. /**
  9673. *
  9674. * @type {ChangePasswordDto}
  9675. * @memberof AuthenticationApiChangePassword
  9676. */
  9677. readonly changePasswordDto: ChangePasswordDto
  9678. }
  9679. /**
  9680. * Request parameters for login operation in AuthenticationApi.
  9681. * @export
  9682. * @interface AuthenticationApiLoginRequest
  9683. */
  9684. export interface AuthenticationApiLoginRequest {
  9685. /**
  9686. *
  9687. * @type {LoginCredentialDto}
  9688. * @memberof AuthenticationApiLogin
  9689. */
  9690. readonly loginCredentialDto: LoginCredentialDto
  9691. }
  9692. /**
  9693. * Request parameters for logoutAuthDevice operation in AuthenticationApi.
  9694. * @export
  9695. * @interface AuthenticationApiLogoutAuthDeviceRequest
  9696. */
  9697. export interface AuthenticationApiLogoutAuthDeviceRequest {
  9698. /**
  9699. *
  9700. * @type {string}
  9701. * @memberof AuthenticationApiLogoutAuthDevice
  9702. */
  9703. readonly id: string
  9704. }
  9705. /**
  9706. * AuthenticationApi - object-oriented interface
  9707. * @export
  9708. * @class AuthenticationApi
  9709. * @extends {BaseAPI}
  9710. */
  9711. export class AuthenticationApi extends BaseAPI {
  9712. /**
  9713. *
  9714. * @param {AuthenticationApiAdminSignUpRequest} requestParameters Request parameters.
  9715. * @param {*} [options] Override http request option.
  9716. * @throws {RequiredError}
  9717. * @memberof AuthenticationApi
  9718. */
  9719. public adminSignUp(requestParameters: AuthenticationApiAdminSignUpRequest, options?: AxiosRequestConfig) {
  9720. return AuthenticationApiFp(this.configuration).adminSignUp(requestParameters.signUpDto, options).then((request) => request(this.axios, this.basePath));
  9721. }
  9722. /**
  9723. *
  9724. * @param {AuthenticationApiChangePasswordRequest} requestParameters Request parameters.
  9725. * @param {*} [options] Override http request option.
  9726. * @throws {RequiredError}
  9727. * @memberof AuthenticationApi
  9728. */
  9729. public changePassword(requestParameters: AuthenticationApiChangePasswordRequest, options?: AxiosRequestConfig) {
  9730. return AuthenticationApiFp(this.configuration).changePassword(requestParameters.changePasswordDto, options).then((request) => request(this.axios, this.basePath));
  9731. }
  9732. /**
  9733. *
  9734. * @param {*} [options] Override http request option.
  9735. * @throws {RequiredError}
  9736. * @memberof AuthenticationApi
  9737. */
  9738. public getAuthDevices(options?: AxiosRequestConfig) {
  9739. return AuthenticationApiFp(this.configuration).getAuthDevices(options).then((request) => request(this.axios, this.basePath));
  9740. }
  9741. /**
  9742. *
  9743. * @param {AuthenticationApiLoginRequest} requestParameters Request parameters.
  9744. * @param {*} [options] Override http request option.
  9745. * @throws {RequiredError}
  9746. * @memberof AuthenticationApi
  9747. */
  9748. public login(requestParameters: AuthenticationApiLoginRequest, options?: AxiosRequestConfig) {
  9749. return AuthenticationApiFp(this.configuration).login(requestParameters.loginCredentialDto, options).then((request) => request(this.axios, this.basePath));
  9750. }
  9751. /**
  9752. *
  9753. * @param {*} [options] Override http request option.
  9754. * @throws {RequiredError}
  9755. * @memberof AuthenticationApi
  9756. */
  9757. public logout(options?: AxiosRequestConfig) {
  9758. return AuthenticationApiFp(this.configuration).logout(options).then((request) => request(this.axios, this.basePath));
  9759. }
  9760. /**
  9761. *
  9762. * @param {AuthenticationApiLogoutAuthDeviceRequest} requestParameters Request parameters.
  9763. * @param {*} [options] Override http request option.
  9764. * @throws {RequiredError}
  9765. * @memberof AuthenticationApi
  9766. */
  9767. public logoutAuthDevice(requestParameters: AuthenticationApiLogoutAuthDeviceRequest, options?: AxiosRequestConfig) {
  9768. return AuthenticationApiFp(this.configuration).logoutAuthDevice(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  9769. }
  9770. /**
  9771. *
  9772. * @param {*} [options] Override http request option.
  9773. * @throws {RequiredError}
  9774. * @memberof AuthenticationApi
  9775. */
  9776. public logoutAuthDevices(options?: AxiosRequestConfig) {
  9777. return AuthenticationApiFp(this.configuration).logoutAuthDevices(options).then((request) => request(this.axios, this.basePath));
  9778. }
  9779. /**
  9780. *
  9781. * @param {*} [options] Override http request option.
  9782. * @throws {RequiredError}
  9783. * @memberof AuthenticationApi
  9784. */
  9785. public validateAccessToken(options?: AxiosRequestConfig) {
  9786. return AuthenticationApiFp(this.configuration).validateAccessToken(options).then((request) => request(this.axios, this.basePath));
  9787. }
  9788. }
  9789. /**
  9790. * JobApi - axios parameter creator
  9791. * @export
  9792. */
  9793. export const JobApiAxiosParamCreator = function (configuration?: Configuration) {
  9794. return {
  9795. /**
  9796. *
  9797. * @param {*} [options] Override http request option.
  9798. * @throws {RequiredError}
  9799. */
  9800. getAllJobsStatus: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9801. const localVarPath = `/jobs`;
  9802. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9803. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9804. let baseOptions;
  9805. if (configuration) {
  9806. baseOptions = configuration.baseOptions;
  9807. }
  9808. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  9809. const localVarHeaderParameter = {} as any;
  9810. const localVarQueryParameter = {} as any;
  9811. // authentication cookie required
  9812. // authentication api_key required
  9813. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  9814. // authentication bearer required
  9815. // http bearer authentication required
  9816. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  9817. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9818. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9819. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9820. return {
  9821. url: toPathString(localVarUrlObj),
  9822. options: localVarRequestOptions,
  9823. };
  9824. },
  9825. /**
  9826. *
  9827. * @param {JobName} id
  9828. * @param {JobCommandDto} jobCommandDto
  9829. * @param {*} [options] Override http request option.
  9830. * @throws {RequiredError}
  9831. */
  9832. sendJobCommand: async (id: JobName, jobCommandDto: JobCommandDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9833. // verify required parameter 'id' is not null or undefined
  9834. assertParamExists('sendJobCommand', 'id', id)
  9835. // verify required parameter 'jobCommandDto' is not null or undefined
  9836. assertParamExists('sendJobCommand', 'jobCommandDto', jobCommandDto)
  9837. const localVarPath = `/jobs/{id}`
  9838. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  9839. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9840. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9841. let baseOptions;
  9842. if (configuration) {
  9843. baseOptions = configuration.baseOptions;
  9844. }
  9845. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  9846. const localVarHeaderParameter = {} as any;
  9847. const localVarQueryParameter = {} as any;
  9848. // authentication cookie required
  9849. // authentication api_key required
  9850. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  9851. // authentication bearer required
  9852. // http bearer authentication required
  9853. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  9854. localVarHeaderParameter['Content-Type'] = 'application/json';
  9855. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9856. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9857. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9858. localVarRequestOptions.data = serializeDataIfNeeded(jobCommandDto, localVarRequestOptions, configuration)
  9859. return {
  9860. url: toPathString(localVarUrlObj),
  9861. options: localVarRequestOptions,
  9862. };
  9863. },
  9864. }
  9865. };
  9866. /**
  9867. * JobApi - functional programming interface
  9868. * @export
  9869. */
  9870. export const JobApiFp = function(configuration?: Configuration) {
  9871. const localVarAxiosParamCreator = JobApiAxiosParamCreator(configuration)
  9872. return {
  9873. /**
  9874. *
  9875. * @param {*} [options] Override http request option.
  9876. * @throws {RequiredError}
  9877. */
  9878. async getAllJobsStatus(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AllJobStatusResponseDto>> {
  9879. const localVarAxiosArgs = await localVarAxiosParamCreator.getAllJobsStatus(options);
  9880. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9881. },
  9882. /**
  9883. *
  9884. * @param {JobName} id
  9885. * @param {JobCommandDto} jobCommandDto
  9886. * @param {*} [options] Override http request option.
  9887. * @throws {RequiredError}
  9888. */
  9889. async sendJobCommand(id: JobName, jobCommandDto: JobCommandDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<JobStatusDto>> {
  9890. const localVarAxiosArgs = await localVarAxiosParamCreator.sendJobCommand(id, jobCommandDto, options);
  9891. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9892. },
  9893. }
  9894. };
  9895. /**
  9896. * JobApi - factory interface
  9897. * @export
  9898. */
  9899. export const JobApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  9900. const localVarFp = JobApiFp(configuration)
  9901. return {
  9902. /**
  9903. *
  9904. * @param {*} [options] Override http request option.
  9905. * @throws {RequiredError}
  9906. */
  9907. getAllJobsStatus(options?: AxiosRequestConfig): AxiosPromise<AllJobStatusResponseDto> {
  9908. return localVarFp.getAllJobsStatus(options).then((request) => request(axios, basePath));
  9909. },
  9910. /**
  9911. *
  9912. * @param {JobApiSendJobCommandRequest} requestParameters Request parameters.
  9913. * @param {*} [options] Override http request option.
  9914. * @throws {RequiredError}
  9915. */
  9916. sendJobCommand(requestParameters: JobApiSendJobCommandRequest, options?: AxiosRequestConfig): AxiosPromise<JobStatusDto> {
  9917. return localVarFp.sendJobCommand(requestParameters.id, requestParameters.jobCommandDto, options).then((request) => request(axios, basePath));
  9918. },
  9919. };
  9920. };
  9921. /**
  9922. * Request parameters for sendJobCommand operation in JobApi.
  9923. * @export
  9924. * @interface JobApiSendJobCommandRequest
  9925. */
  9926. export interface JobApiSendJobCommandRequest {
  9927. /**
  9928. *
  9929. * @type {JobName}
  9930. * @memberof JobApiSendJobCommand
  9931. */
  9932. readonly id: JobName
  9933. /**
  9934. *
  9935. * @type {JobCommandDto}
  9936. * @memberof JobApiSendJobCommand
  9937. */
  9938. readonly jobCommandDto: JobCommandDto
  9939. }
  9940. /**
  9941. * JobApi - object-oriented interface
  9942. * @export
  9943. * @class JobApi
  9944. * @extends {BaseAPI}
  9945. */
  9946. export class JobApi extends BaseAPI {
  9947. /**
  9948. *
  9949. * @param {*} [options] Override http request option.
  9950. * @throws {RequiredError}
  9951. * @memberof JobApi
  9952. */
  9953. public getAllJobsStatus(options?: AxiosRequestConfig) {
  9954. return JobApiFp(this.configuration).getAllJobsStatus(options).then((request) => request(this.axios, this.basePath));
  9955. }
  9956. /**
  9957. *
  9958. * @param {JobApiSendJobCommandRequest} requestParameters Request parameters.
  9959. * @param {*} [options] Override http request option.
  9960. * @throws {RequiredError}
  9961. * @memberof JobApi
  9962. */
  9963. public sendJobCommand(requestParameters: JobApiSendJobCommandRequest, options?: AxiosRequestConfig) {
  9964. return JobApiFp(this.configuration).sendJobCommand(requestParameters.id, requestParameters.jobCommandDto, options).then((request) => request(this.axios, this.basePath));
  9965. }
  9966. }
  9967. /**
  9968. * LibraryApi - axios parameter creator
  9969. * @export
  9970. */
  9971. export const LibraryApiAxiosParamCreator = function (configuration?: Configuration) {
  9972. return {
  9973. /**
  9974. *
  9975. * @param {CreateLibraryDto} createLibraryDto
  9976. * @param {*} [options] Override http request option.
  9977. * @throws {RequiredError}
  9978. */
  9979. createLibrary: async (createLibraryDto: CreateLibraryDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9980. // verify required parameter 'createLibraryDto' is not null or undefined
  9981. assertParamExists('createLibrary', 'createLibraryDto', createLibraryDto)
  9982. const localVarPath = `/library`;
  9983. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9984. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9985. let baseOptions;
  9986. if (configuration) {
  9987. baseOptions = configuration.baseOptions;
  9988. }
  9989. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  9990. const localVarHeaderParameter = {} as any;
  9991. const localVarQueryParameter = {} as any;
  9992. // authentication cookie required
  9993. // authentication api_key required
  9994. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  9995. // authentication bearer required
  9996. // http bearer authentication required
  9997. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  9998. localVarHeaderParameter['Content-Type'] = 'application/json';
  9999. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10000. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10001. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10002. localVarRequestOptions.data = serializeDataIfNeeded(createLibraryDto, localVarRequestOptions, configuration)
  10003. return {
  10004. url: toPathString(localVarUrlObj),
  10005. options: localVarRequestOptions,
  10006. };
  10007. },
  10008. /**
  10009. *
  10010. * @param {string} id
  10011. * @param {*} [options] Override http request option.
  10012. * @throws {RequiredError}
  10013. */
  10014. deleteLibrary: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10015. // verify required parameter 'id' is not null or undefined
  10016. assertParamExists('deleteLibrary', 'id', id)
  10017. const localVarPath = `/library/{id}`
  10018. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  10019. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10020. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10021. let baseOptions;
  10022. if (configuration) {
  10023. baseOptions = configuration.baseOptions;
  10024. }
  10025. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  10026. const localVarHeaderParameter = {} as any;
  10027. const localVarQueryParameter = {} as any;
  10028. // authentication cookie required
  10029. // authentication api_key required
  10030. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10031. // authentication bearer required
  10032. // http bearer authentication required
  10033. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10034. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10035. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10036. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10037. return {
  10038. url: toPathString(localVarUrlObj),
  10039. options: localVarRequestOptions,
  10040. };
  10041. },
  10042. /**
  10043. *
  10044. * @param {*} [options] Override http request option.
  10045. * @throws {RequiredError}
  10046. */
  10047. getAllForUser: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10048. const localVarPath = `/library`;
  10049. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10050. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10051. let baseOptions;
  10052. if (configuration) {
  10053. baseOptions = configuration.baseOptions;
  10054. }
  10055. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  10056. const localVarHeaderParameter = {} as any;
  10057. const localVarQueryParameter = {} as any;
  10058. // authentication cookie required
  10059. // authentication api_key required
  10060. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10061. // authentication bearer required
  10062. // http bearer authentication required
  10063. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10064. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10065. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10066. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10067. return {
  10068. url: toPathString(localVarUrlObj),
  10069. options: localVarRequestOptions,
  10070. };
  10071. },
  10072. /**
  10073. *
  10074. * @param {string} id
  10075. * @param {*} [options] Override http request option.
  10076. * @throws {RequiredError}
  10077. */
  10078. getLibraryInfo: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10079. // verify required parameter 'id' is not null or undefined
  10080. assertParamExists('getLibraryInfo', 'id', id)
  10081. const localVarPath = `/library/{id}`
  10082. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  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: 'GET', ...baseOptions, ...options};
  10090. const localVarHeaderParameter = {} as any;
  10091. const localVarQueryParameter = {} as any;
  10092. // authentication cookie required
  10093. // authentication api_key required
  10094. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10095. // authentication bearer required
  10096. // http bearer authentication required
  10097. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10098. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10099. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10100. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10101. return {
  10102. url: toPathString(localVarUrlObj),
  10103. options: localVarRequestOptions,
  10104. };
  10105. },
  10106. /**
  10107. *
  10108. * @param {string} id
  10109. * @param {*} [options] Override http request option.
  10110. * @throws {RequiredError}
  10111. */
  10112. getLibraryStatistics: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10113. // verify required parameter 'id' is not null or undefined
  10114. assertParamExists('getLibraryStatistics', 'id', id)
  10115. const localVarPath = `/library/{id}/statistics`
  10116. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  10117. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10118. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10119. let baseOptions;
  10120. if (configuration) {
  10121. baseOptions = configuration.baseOptions;
  10122. }
  10123. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  10124. const localVarHeaderParameter = {} as any;
  10125. const localVarQueryParameter = {} as any;
  10126. // authentication cookie required
  10127. // authentication api_key required
  10128. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10129. // authentication bearer required
  10130. // http bearer authentication required
  10131. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10132. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10133. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10134. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10135. return {
  10136. url: toPathString(localVarUrlObj),
  10137. options: localVarRequestOptions,
  10138. };
  10139. },
  10140. /**
  10141. *
  10142. * @param {string} id
  10143. * @param {*} [options] Override http request option.
  10144. * @throws {RequiredError}
  10145. */
  10146. removeOfflineFiles: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10147. // verify required parameter 'id' is not null or undefined
  10148. assertParamExists('removeOfflineFiles', 'id', id)
  10149. const localVarPath = `/library/{id}/removeOffline`
  10150. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  10151. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10152. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10153. let baseOptions;
  10154. if (configuration) {
  10155. baseOptions = configuration.baseOptions;
  10156. }
  10157. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  10158. const localVarHeaderParameter = {} as any;
  10159. const localVarQueryParameter = {} as any;
  10160. // authentication cookie required
  10161. // authentication api_key required
  10162. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10163. // authentication bearer required
  10164. // http bearer authentication required
  10165. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10166. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10167. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10168. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10169. return {
  10170. url: toPathString(localVarUrlObj),
  10171. options: localVarRequestOptions,
  10172. };
  10173. },
  10174. /**
  10175. *
  10176. * @param {string} id
  10177. * @param {ScanLibraryDto} scanLibraryDto
  10178. * @param {*} [options] Override http request option.
  10179. * @throws {RequiredError}
  10180. */
  10181. scanLibrary: async (id: string, scanLibraryDto: ScanLibraryDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10182. // verify required parameter 'id' is not null or undefined
  10183. assertParamExists('scanLibrary', 'id', id)
  10184. // verify required parameter 'scanLibraryDto' is not null or undefined
  10185. assertParamExists('scanLibrary', 'scanLibraryDto', scanLibraryDto)
  10186. const localVarPath = `/library/{id}/scan`
  10187. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  10188. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10189. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10190. let baseOptions;
  10191. if (configuration) {
  10192. baseOptions = configuration.baseOptions;
  10193. }
  10194. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  10195. const localVarHeaderParameter = {} as any;
  10196. const localVarQueryParameter = {} as any;
  10197. // authentication cookie required
  10198. // authentication api_key required
  10199. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10200. // authentication bearer required
  10201. // http bearer authentication required
  10202. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10203. localVarHeaderParameter['Content-Type'] = 'application/json';
  10204. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10205. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10206. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10207. localVarRequestOptions.data = serializeDataIfNeeded(scanLibraryDto, localVarRequestOptions, configuration)
  10208. return {
  10209. url: toPathString(localVarUrlObj),
  10210. options: localVarRequestOptions,
  10211. };
  10212. },
  10213. /**
  10214. *
  10215. * @param {string} id
  10216. * @param {UpdateLibraryDto} updateLibraryDto
  10217. * @param {*} [options] Override http request option.
  10218. * @throws {RequiredError}
  10219. */
  10220. updateLibrary: async (id: string, updateLibraryDto: UpdateLibraryDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10221. // verify required parameter 'id' is not null or undefined
  10222. assertParamExists('updateLibrary', 'id', id)
  10223. // verify required parameter 'updateLibraryDto' is not null or undefined
  10224. assertParamExists('updateLibrary', 'updateLibraryDto', updateLibraryDto)
  10225. const localVarPath = `/library/{id}`
  10226. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  10227. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10228. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10229. let baseOptions;
  10230. if (configuration) {
  10231. baseOptions = configuration.baseOptions;
  10232. }
  10233. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  10234. const localVarHeaderParameter = {} as any;
  10235. const localVarQueryParameter = {} as any;
  10236. // authentication cookie required
  10237. // authentication api_key required
  10238. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10239. // authentication bearer required
  10240. // http bearer authentication required
  10241. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10242. localVarHeaderParameter['Content-Type'] = 'application/json';
  10243. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10244. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10245. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10246. localVarRequestOptions.data = serializeDataIfNeeded(updateLibraryDto, localVarRequestOptions, configuration)
  10247. return {
  10248. url: toPathString(localVarUrlObj),
  10249. options: localVarRequestOptions,
  10250. };
  10251. },
  10252. }
  10253. };
  10254. /**
  10255. * LibraryApi - functional programming interface
  10256. * @export
  10257. */
  10258. export const LibraryApiFp = function(configuration?: Configuration) {
  10259. const localVarAxiosParamCreator = LibraryApiAxiosParamCreator(configuration)
  10260. return {
  10261. /**
  10262. *
  10263. * @param {CreateLibraryDto} createLibraryDto
  10264. * @param {*} [options] Override http request option.
  10265. * @throws {RequiredError}
  10266. */
  10267. async createLibrary(createLibraryDto: CreateLibraryDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LibraryResponseDto>> {
  10268. const localVarAxiosArgs = await localVarAxiosParamCreator.createLibrary(createLibraryDto, options);
  10269. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10270. },
  10271. /**
  10272. *
  10273. * @param {string} id
  10274. * @param {*} [options] Override http request option.
  10275. * @throws {RequiredError}
  10276. */
  10277. async deleteLibrary(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  10278. const localVarAxiosArgs = await localVarAxiosParamCreator.deleteLibrary(id, options);
  10279. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10280. },
  10281. /**
  10282. *
  10283. * @param {*} [options] Override http request option.
  10284. * @throws {RequiredError}
  10285. */
  10286. async getAllForUser(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<LibraryResponseDto>>> {
  10287. const localVarAxiosArgs = await localVarAxiosParamCreator.getAllForUser(options);
  10288. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10289. },
  10290. /**
  10291. *
  10292. * @param {string} id
  10293. * @param {*} [options] Override http request option.
  10294. * @throws {RequiredError}
  10295. */
  10296. async getLibraryInfo(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LibraryResponseDto>> {
  10297. const localVarAxiosArgs = await localVarAxiosParamCreator.getLibraryInfo(id, options);
  10298. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10299. },
  10300. /**
  10301. *
  10302. * @param {string} id
  10303. * @param {*} [options] Override http request option.
  10304. * @throws {RequiredError}
  10305. */
  10306. async getLibraryStatistics(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LibraryStatsResponseDto>> {
  10307. const localVarAxiosArgs = await localVarAxiosParamCreator.getLibraryStatistics(id, options);
  10308. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10309. },
  10310. /**
  10311. *
  10312. * @param {string} id
  10313. * @param {*} [options] Override http request option.
  10314. * @throws {RequiredError}
  10315. */
  10316. async removeOfflineFiles(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  10317. const localVarAxiosArgs = await localVarAxiosParamCreator.removeOfflineFiles(id, options);
  10318. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10319. },
  10320. /**
  10321. *
  10322. * @param {string} id
  10323. * @param {ScanLibraryDto} scanLibraryDto
  10324. * @param {*} [options] Override http request option.
  10325. * @throws {RequiredError}
  10326. */
  10327. async scanLibrary(id: string, scanLibraryDto: ScanLibraryDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  10328. const localVarAxiosArgs = await localVarAxiosParamCreator.scanLibrary(id, scanLibraryDto, options);
  10329. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10330. },
  10331. /**
  10332. *
  10333. * @param {string} id
  10334. * @param {UpdateLibraryDto} updateLibraryDto
  10335. * @param {*} [options] Override http request option.
  10336. * @throws {RequiredError}
  10337. */
  10338. async updateLibrary(id: string, updateLibraryDto: UpdateLibraryDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LibraryResponseDto>> {
  10339. const localVarAxiosArgs = await localVarAxiosParamCreator.updateLibrary(id, updateLibraryDto, options);
  10340. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10341. },
  10342. }
  10343. };
  10344. /**
  10345. * LibraryApi - factory interface
  10346. * @export
  10347. */
  10348. export const LibraryApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  10349. const localVarFp = LibraryApiFp(configuration)
  10350. return {
  10351. /**
  10352. *
  10353. * @param {LibraryApiCreateLibraryRequest} requestParameters Request parameters.
  10354. * @param {*} [options] Override http request option.
  10355. * @throws {RequiredError}
  10356. */
  10357. createLibrary(requestParameters: LibraryApiCreateLibraryRequest, options?: AxiosRequestConfig): AxiosPromise<LibraryResponseDto> {
  10358. return localVarFp.createLibrary(requestParameters.createLibraryDto, options).then((request) => request(axios, basePath));
  10359. },
  10360. /**
  10361. *
  10362. * @param {LibraryApiDeleteLibraryRequest} requestParameters Request parameters.
  10363. * @param {*} [options] Override http request option.
  10364. * @throws {RequiredError}
  10365. */
  10366. deleteLibrary(requestParameters: LibraryApiDeleteLibraryRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  10367. return localVarFp.deleteLibrary(requestParameters.id, options).then((request) => request(axios, basePath));
  10368. },
  10369. /**
  10370. *
  10371. * @param {*} [options] Override http request option.
  10372. * @throws {RequiredError}
  10373. */
  10374. getAllForUser(options?: AxiosRequestConfig): AxiosPromise<Array<LibraryResponseDto>> {
  10375. return localVarFp.getAllForUser(options).then((request) => request(axios, basePath));
  10376. },
  10377. /**
  10378. *
  10379. * @param {LibraryApiGetLibraryInfoRequest} requestParameters Request parameters.
  10380. * @param {*} [options] Override http request option.
  10381. * @throws {RequiredError}
  10382. */
  10383. getLibraryInfo(requestParameters: LibraryApiGetLibraryInfoRequest, options?: AxiosRequestConfig): AxiosPromise<LibraryResponseDto> {
  10384. return localVarFp.getLibraryInfo(requestParameters.id, options).then((request) => request(axios, basePath));
  10385. },
  10386. /**
  10387. *
  10388. * @param {LibraryApiGetLibraryStatisticsRequest} requestParameters Request parameters.
  10389. * @param {*} [options] Override http request option.
  10390. * @throws {RequiredError}
  10391. */
  10392. getLibraryStatistics(requestParameters: LibraryApiGetLibraryStatisticsRequest, options?: AxiosRequestConfig): AxiosPromise<LibraryStatsResponseDto> {
  10393. return localVarFp.getLibraryStatistics(requestParameters.id, options).then((request) => request(axios, basePath));
  10394. },
  10395. /**
  10396. *
  10397. * @param {LibraryApiRemoveOfflineFilesRequest} requestParameters Request parameters.
  10398. * @param {*} [options] Override http request option.
  10399. * @throws {RequiredError}
  10400. */
  10401. removeOfflineFiles(requestParameters: LibraryApiRemoveOfflineFilesRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  10402. return localVarFp.removeOfflineFiles(requestParameters.id, options).then((request) => request(axios, basePath));
  10403. },
  10404. /**
  10405. *
  10406. * @param {LibraryApiScanLibraryRequest} requestParameters Request parameters.
  10407. * @param {*} [options] Override http request option.
  10408. * @throws {RequiredError}
  10409. */
  10410. scanLibrary(requestParameters: LibraryApiScanLibraryRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  10411. return localVarFp.scanLibrary(requestParameters.id, requestParameters.scanLibraryDto, options).then((request) => request(axios, basePath));
  10412. },
  10413. /**
  10414. *
  10415. * @param {LibraryApiUpdateLibraryRequest} requestParameters Request parameters.
  10416. * @param {*} [options] Override http request option.
  10417. * @throws {RequiredError}
  10418. */
  10419. updateLibrary(requestParameters: LibraryApiUpdateLibraryRequest, options?: AxiosRequestConfig): AxiosPromise<LibraryResponseDto> {
  10420. return localVarFp.updateLibrary(requestParameters.id, requestParameters.updateLibraryDto, options).then((request) => request(axios, basePath));
  10421. },
  10422. };
  10423. };
  10424. /**
  10425. * Request parameters for createLibrary operation in LibraryApi.
  10426. * @export
  10427. * @interface LibraryApiCreateLibraryRequest
  10428. */
  10429. export interface LibraryApiCreateLibraryRequest {
  10430. /**
  10431. *
  10432. * @type {CreateLibraryDto}
  10433. * @memberof LibraryApiCreateLibrary
  10434. */
  10435. readonly createLibraryDto: CreateLibraryDto
  10436. }
  10437. /**
  10438. * Request parameters for deleteLibrary operation in LibraryApi.
  10439. * @export
  10440. * @interface LibraryApiDeleteLibraryRequest
  10441. */
  10442. export interface LibraryApiDeleteLibraryRequest {
  10443. /**
  10444. *
  10445. * @type {string}
  10446. * @memberof LibraryApiDeleteLibrary
  10447. */
  10448. readonly id: string
  10449. }
  10450. /**
  10451. * Request parameters for getLibraryInfo operation in LibraryApi.
  10452. * @export
  10453. * @interface LibraryApiGetLibraryInfoRequest
  10454. */
  10455. export interface LibraryApiGetLibraryInfoRequest {
  10456. /**
  10457. *
  10458. * @type {string}
  10459. * @memberof LibraryApiGetLibraryInfo
  10460. */
  10461. readonly id: string
  10462. }
  10463. /**
  10464. * Request parameters for getLibraryStatistics operation in LibraryApi.
  10465. * @export
  10466. * @interface LibraryApiGetLibraryStatisticsRequest
  10467. */
  10468. export interface LibraryApiGetLibraryStatisticsRequest {
  10469. /**
  10470. *
  10471. * @type {string}
  10472. * @memberof LibraryApiGetLibraryStatistics
  10473. */
  10474. readonly id: string
  10475. }
  10476. /**
  10477. * Request parameters for removeOfflineFiles operation in LibraryApi.
  10478. * @export
  10479. * @interface LibraryApiRemoveOfflineFilesRequest
  10480. */
  10481. export interface LibraryApiRemoveOfflineFilesRequest {
  10482. /**
  10483. *
  10484. * @type {string}
  10485. * @memberof LibraryApiRemoveOfflineFiles
  10486. */
  10487. readonly id: string
  10488. }
  10489. /**
  10490. * Request parameters for scanLibrary operation in LibraryApi.
  10491. * @export
  10492. * @interface LibraryApiScanLibraryRequest
  10493. */
  10494. export interface LibraryApiScanLibraryRequest {
  10495. /**
  10496. *
  10497. * @type {string}
  10498. * @memberof LibraryApiScanLibrary
  10499. */
  10500. readonly id: string
  10501. /**
  10502. *
  10503. * @type {ScanLibraryDto}
  10504. * @memberof LibraryApiScanLibrary
  10505. */
  10506. readonly scanLibraryDto: ScanLibraryDto
  10507. }
  10508. /**
  10509. * Request parameters for updateLibrary operation in LibraryApi.
  10510. * @export
  10511. * @interface LibraryApiUpdateLibraryRequest
  10512. */
  10513. export interface LibraryApiUpdateLibraryRequest {
  10514. /**
  10515. *
  10516. * @type {string}
  10517. * @memberof LibraryApiUpdateLibrary
  10518. */
  10519. readonly id: string
  10520. /**
  10521. *
  10522. * @type {UpdateLibraryDto}
  10523. * @memberof LibraryApiUpdateLibrary
  10524. */
  10525. readonly updateLibraryDto: UpdateLibraryDto
  10526. }
  10527. /**
  10528. * LibraryApi - object-oriented interface
  10529. * @export
  10530. * @class LibraryApi
  10531. * @extends {BaseAPI}
  10532. */
  10533. export class LibraryApi extends BaseAPI {
  10534. /**
  10535. *
  10536. * @param {LibraryApiCreateLibraryRequest} requestParameters Request parameters.
  10537. * @param {*} [options] Override http request option.
  10538. * @throws {RequiredError}
  10539. * @memberof LibraryApi
  10540. */
  10541. public createLibrary(requestParameters: LibraryApiCreateLibraryRequest, options?: AxiosRequestConfig) {
  10542. return LibraryApiFp(this.configuration).createLibrary(requestParameters.createLibraryDto, options).then((request) => request(this.axios, this.basePath));
  10543. }
  10544. /**
  10545. *
  10546. * @param {LibraryApiDeleteLibraryRequest} requestParameters Request parameters.
  10547. * @param {*} [options] Override http request option.
  10548. * @throws {RequiredError}
  10549. * @memberof LibraryApi
  10550. */
  10551. public deleteLibrary(requestParameters: LibraryApiDeleteLibraryRequest, options?: AxiosRequestConfig) {
  10552. return LibraryApiFp(this.configuration).deleteLibrary(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  10553. }
  10554. /**
  10555. *
  10556. * @param {*} [options] Override http request option.
  10557. * @throws {RequiredError}
  10558. * @memberof LibraryApi
  10559. */
  10560. public getAllForUser(options?: AxiosRequestConfig) {
  10561. return LibraryApiFp(this.configuration).getAllForUser(options).then((request) => request(this.axios, this.basePath));
  10562. }
  10563. /**
  10564. *
  10565. * @param {LibraryApiGetLibraryInfoRequest} requestParameters Request parameters.
  10566. * @param {*} [options] Override http request option.
  10567. * @throws {RequiredError}
  10568. * @memberof LibraryApi
  10569. */
  10570. public getLibraryInfo(requestParameters: LibraryApiGetLibraryInfoRequest, options?: AxiosRequestConfig) {
  10571. return LibraryApiFp(this.configuration).getLibraryInfo(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  10572. }
  10573. /**
  10574. *
  10575. * @param {LibraryApiGetLibraryStatisticsRequest} requestParameters Request parameters.
  10576. * @param {*} [options] Override http request option.
  10577. * @throws {RequiredError}
  10578. * @memberof LibraryApi
  10579. */
  10580. public getLibraryStatistics(requestParameters: LibraryApiGetLibraryStatisticsRequest, options?: AxiosRequestConfig) {
  10581. return LibraryApiFp(this.configuration).getLibraryStatistics(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  10582. }
  10583. /**
  10584. *
  10585. * @param {LibraryApiRemoveOfflineFilesRequest} requestParameters Request parameters.
  10586. * @param {*} [options] Override http request option.
  10587. * @throws {RequiredError}
  10588. * @memberof LibraryApi
  10589. */
  10590. public removeOfflineFiles(requestParameters: LibraryApiRemoveOfflineFilesRequest, options?: AxiosRequestConfig) {
  10591. return LibraryApiFp(this.configuration).removeOfflineFiles(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  10592. }
  10593. /**
  10594. *
  10595. * @param {LibraryApiScanLibraryRequest} requestParameters Request parameters.
  10596. * @param {*} [options] Override http request option.
  10597. * @throws {RequiredError}
  10598. * @memberof LibraryApi
  10599. */
  10600. public scanLibrary(requestParameters: LibraryApiScanLibraryRequest, options?: AxiosRequestConfig) {
  10601. return LibraryApiFp(this.configuration).scanLibrary(requestParameters.id, requestParameters.scanLibraryDto, options).then((request) => request(this.axios, this.basePath));
  10602. }
  10603. /**
  10604. *
  10605. * @param {LibraryApiUpdateLibraryRequest} requestParameters Request parameters.
  10606. * @param {*} [options] Override http request option.
  10607. * @throws {RequiredError}
  10608. * @memberof LibraryApi
  10609. */
  10610. public updateLibrary(requestParameters: LibraryApiUpdateLibraryRequest, options?: AxiosRequestConfig) {
  10611. return LibraryApiFp(this.configuration).updateLibrary(requestParameters.id, requestParameters.updateLibraryDto, options).then((request) => request(this.axios, this.basePath));
  10612. }
  10613. }
  10614. /**
  10615. * OAuthApi - axios parameter creator
  10616. * @export
  10617. */
  10618. export const OAuthApiAxiosParamCreator = function (configuration?: Configuration) {
  10619. return {
  10620. /**
  10621. *
  10622. * @param {OAuthConfigDto} oAuthConfigDto
  10623. * @param {*} [options] Override http request option.
  10624. * @throws {RequiredError}
  10625. */
  10626. authorizeOAuth: async (oAuthConfigDto: OAuthConfigDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10627. // verify required parameter 'oAuthConfigDto' is not null or undefined
  10628. assertParamExists('authorizeOAuth', 'oAuthConfigDto', oAuthConfigDto)
  10629. const localVarPath = `/oauth/authorize`;
  10630. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10631. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10632. let baseOptions;
  10633. if (configuration) {
  10634. baseOptions = configuration.baseOptions;
  10635. }
  10636. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  10637. const localVarHeaderParameter = {} as any;
  10638. const localVarQueryParameter = {} as any;
  10639. localVarHeaderParameter['Content-Type'] = 'application/json';
  10640. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10641. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10642. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10643. localVarRequestOptions.data = serializeDataIfNeeded(oAuthConfigDto, localVarRequestOptions, configuration)
  10644. return {
  10645. url: toPathString(localVarUrlObj),
  10646. options: localVarRequestOptions,
  10647. };
  10648. },
  10649. /**
  10650. *
  10651. * @param {OAuthCallbackDto} oAuthCallbackDto
  10652. * @param {*} [options] Override http request option.
  10653. * @throws {RequiredError}
  10654. */
  10655. callback: async (oAuthCallbackDto: OAuthCallbackDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10656. // verify required parameter 'oAuthCallbackDto' is not null or undefined
  10657. assertParamExists('callback', 'oAuthCallbackDto', oAuthCallbackDto)
  10658. const localVarPath = `/oauth/callback`;
  10659. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10660. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10661. let baseOptions;
  10662. if (configuration) {
  10663. baseOptions = configuration.baseOptions;
  10664. }
  10665. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  10666. const localVarHeaderParameter = {} as any;
  10667. const localVarQueryParameter = {} as any;
  10668. localVarHeaderParameter['Content-Type'] = 'application/json';
  10669. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10670. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10671. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10672. localVarRequestOptions.data = serializeDataIfNeeded(oAuthCallbackDto, localVarRequestOptions, configuration)
  10673. return {
  10674. url: toPathString(localVarUrlObj),
  10675. options: localVarRequestOptions,
  10676. };
  10677. },
  10678. /**
  10679. * @deprecated use feature flags and /oauth/authorize
  10680. * @param {OAuthConfigDto} oAuthConfigDto
  10681. * @param {*} [options] Override http request option.
  10682. * @deprecated
  10683. * @throws {RequiredError}
  10684. */
  10685. generateConfig: async (oAuthConfigDto: OAuthConfigDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10686. // verify required parameter 'oAuthConfigDto' is not null or undefined
  10687. assertParamExists('generateConfig', 'oAuthConfigDto', oAuthConfigDto)
  10688. const localVarPath = `/oauth/config`;
  10689. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10690. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10691. let baseOptions;
  10692. if (configuration) {
  10693. baseOptions = configuration.baseOptions;
  10694. }
  10695. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  10696. const localVarHeaderParameter = {} as any;
  10697. const localVarQueryParameter = {} as any;
  10698. localVarHeaderParameter['Content-Type'] = 'application/json';
  10699. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10700. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10701. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10702. localVarRequestOptions.data = serializeDataIfNeeded(oAuthConfigDto, localVarRequestOptions, configuration)
  10703. return {
  10704. url: toPathString(localVarUrlObj),
  10705. options: localVarRequestOptions,
  10706. };
  10707. },
  10708. /**
  10709. *
  10710. * @param {OAuthCallbackDto} oAuthCallbackDto
  10711. * @param {*} [options] Override http request option.
  10712. * @throws {RequiredError}
  10713. */
  10714. link: async (oAuthCallbackDto: OAuthCallbackDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10715. // verify required parameter 'oAuthCallbackDto' is not null or undefined
  10716. assertParamExists('link', 'oAuthCallbackDto', oAuthCallbackDto)
  10717. const localVarPath = `/oauth/link`;
  10718. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10719. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10720. let baseOptions;
  10721. if (configuration) {
  10722. baseOptions = configuration.baseOptions;
  10723. }
  10724. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  10725. const localVarHeaderParameter = {} as any;
  10726. const localVarQueryParameter = {} as any;
  10727. // authentication cookie required
  10728. // authentication api_key required
  10729. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10730. // authentication bearer required
  10731. // http bearer authentication required
  10732. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10733. localVarHeaderParameter['Content-Type'] = 'application/json';
  10734. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10735. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10736. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10737. localVarRequestOptions.data = serializeDataIfNeeded(oAuthCallbackDto, localVarRequestOptions, configuration)
  10738. return {
  10739. url: toPathString(localVarUrlObj),
  10740. options: localVarRequestOptions,
  10741. };
  10742. },
  10743. /**
  10744. *
  10745. * @param {*} [options] Override http request option.
  10746. * @throws {RequiredError}
  10747. */
  10748. mobileRedirect: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10749. const localVarPath = `/oauth/mobile-redirect`;
  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. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10760. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10761. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10762. return {
  10763. url: toPathString(localVarUrlObj),
  10764. options: localVarRequestOptions,
  10765. };
  10766. },
  10767. /**
  10768. *
  10769. * @param {*} [options] Override http request option.
  10770. * @throws {RequiredError}
  10771. */
  10772. unlink: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10773. const localVarPath = `/oauth/unlink`;
  10774. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10775. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10776. let baseOptions;
  10777. if (configuration) {
  10778. baseOptions = configuration.baseOptions;
  10779. }
  10780. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  10781. const localVarHeaderParameter = {} as any;
  10782. const localVarQueryParameter = {} as any;
  10783. // authentication cookie required
  10784. // authentication api_key required
  10785. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10786. // authentication bearer required
  10787. // http bearer authentication required
  10788. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10789. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10790. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10791. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10792. return {
  10793. url: toPathString(localVarUrlObj),
  10794. options: localVarRequestOptions,
  10795. };
  10796. },
  10797. }
  10798. };
  10799. /**
  10800. * OAuthApi - functional programming interface
  10801. * @export
  10802. */
  10803. export const OAuthApiFp = function(configuration?: Configuration) {
  10804. const localVarAxiosParamCreator = OAuthApiAxiosParamCreator(configuration)
  10805. return {
  10806. /**
  10807. *
  10808. * @param {OAuthConfigDto} oAuthConfigDto
  10809. * @param {*} [options] Override http request option.
  10810. * @throws {RequiredError}
  10811. */
  10812. async authorizeOAuth(oAuthConfigDto: OAuthConfigDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OAuthAuthorizeResponseDto>> {
  10813. const localVarAxiosArgs = await localVarAxiosParamCreator.authorizeOAuth(oAuthConfigDto, options);
  10814. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10815. },
  10816. /**
  10817. *
  10818. * @param {OAuthCallbackDto} oAuthCallbackDto
  10819. * @param {*} [options] Override http request option.
  10820. * @throws {RequiredError}
  10821. */
  10822. async callback(oAuthCallbackDto: OAuthCallbackDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LoginResponseDto>> {
  10823. const localVarAxiosArgs = await localVarAxiosParamCreator.callback(oAuthCallbackDto, options);
  10824. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10825. },
  10826. /**
  10827. * @deprecated use feature flags and /oauth/authorize
  10828. * @param {OAuthConfigDto} oAuthConfigDto
  10829. * @param {*} [options] Override http request option.
  10830. * @deprecated
  10831. * @throws {RequiredError}
  10832. */
  10833. async generateConfig(oAuthConfigDto: OAuthConfigDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OAuthConfigResponseDto>> {
  10834. const localVarAxiosArgs = await localVarAxiosParamCreator.generateConfig(oAuthConfigDto, options);
  10835. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10836. },
  10837. /**
  10838. *
  10839. * @param {OAuthCallbackDto} oAuthCallbackDto
  10840. * @param {*} [options] Override http request option.
  10841. * @throws {RequiredError}
  10842. */
  10843. async link(oAuthCallbackDto: OAuthCallbackDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  10844. const localVarAxiosArgs = await localVarAxiosParamCreator.link(oAuthCallbackDto, options);
  10845. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10846. },
  10847. /**
  10848. *
  10849. * @param {*} [options] Override http request option.
  10850. * @throws {RequiredError}
  10851. */
  10852. async mobileRedirect(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  10853. const localVarAxiosArgs = await localVarAxiosParamCreator.mobileRedirect(options);
  10854. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10855. },
  10856. /**
  10857. *
  10858. * @param {*} [options] Override http request option.
  10859. * @throws {RequiredError}
  10860. */
  10861. async unlink(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  10862. const localVarAxiosArgs = await localVarAxiosParamCreator.unlink(options);
  10863. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10864. },
  10865. }
  10866. };
  10867. /**
  10868. * OAuthApi - factory interface
  10869. * @export
  10870. */
  10871. export const OAuthApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  10872. const localVarFp = OAuthApiFp(configuration)
  10873. return {
  10874. /**
  10875. *
  10876. * @param {OAuthApiAuthorizeOAuthRequest} requestParameters Request parameters.
  10877. * @param {*} [options] Override http request option.
  10878. * @throws {RequiredError}
  10879. */
  10880. authorizeOAuth(requestParameters: OAuthApiAuthorizeOAuthRequest, options?: AxiosRequestConfig): AxiosPromise<OAuthAuthorizeResponseDto> {
  10881. return localVarFp.authorizeOAuth(requestParameters.oAuthConfigDto, options).then((request) => request(axios, basePath));
  10882. },
  10883. /**
  10884. *
  10885. * @param {OAuthApiCallbackRequest} requestParameters Request parameters.
  10886. * @param {*} [options] Override http request option.
  10887. * @throws {RequiredError}
  10888. */
  10889. callback(requestParameters: OAuthApiCallbackRequest, options?: AxiosRequestConfig): AxiosPromise<LoginResponseDto> {
  10890. return localVarFp.callback(requestParameters.oAuthCallbackDto, options).then((request) => request(axios, basePath));
  10891. },
  10892. /**
  10893. * @deprecated use feature flags and /oauth/authorize
  10894. * @param {OAuthApiGenerateConfigRequest} requestParameters Request parameters.
  10895. * @param {*} [options] Override http request option.
  10896. * @deprecated
  10897. * @throws {RequiredError}
  10898. */
  10899. generateConfig(requestParameters: OAuthApiGenerateConfigRequest, options?: AxiosRequestConfig): AxiosPromise<OAuthConfigResponseDto> {
  10900. return localVarFp.generateConfig(requestParameters.oAuthConfigDto, options).then((request) => request(axios, basePath));
  10901. },
  10902. /**
  10903. *
  10904. * @param {OAuthApiLinkRequest} requestParameters Request parameters.
  10905. * @param {*} [options] Override http request option.
  10906. * @throws {RequiredError}
  10907. */
  10908. link(requestParameters: OAuthApiLinkRequest, options?: AxiosRequestConfig): AxiosPromise<UserResponseDto> {
  10909. return localVarFp.link(requestParameters.oAuthCallbackDto, options).then((request) => request(axios, basePath));
  10910. },
  10911. /**
  10912. *
  10913. * @param {*} [options] Override http request option.
  10914. * @throws {RequiredError}
  10915. */
  10916. mobileRedirect(options?: AxiosRequestConfig): AxiosPromise<void> {
  10917. return localVarFp.mobileRedirect(options).then((request) => request(axios, basePath));
  10918. },
  10919. /**
  10920. *
  10921. * @param {*} [options] Override http request option.
  10922. * @throws {RequiredError}
  10923. */
  10924. unlink(options?: AxiosRequestConfig): AxiosPromise<UserResponseDto> {
  10925. return localVarFp.unlink(options).then((request) => request(axios, basePath));
  10926. },
  10927. };
  10928. };
  10929. /**
  10930. * Request parameters for authorizeOAuth operation in OAuthApi.
  10931. * @export
  10932. * @interface OAuthApiAuthorizeOAuthRequest
  10933. */
  10934. export interface OAuthApiAuthorizeOAuthRequest {
  10935. /**
  10936. *
  10937. * @type {OAuthConfigDto}
  10938. * @memberof OAuthApiAuthorizeOAuth
  10939. */
  10940. readonly oAuthConfigDto: OAuthConfigDto
  10941. }
  10942. /**
  10943. * Request parameters for callback operation in OAuthApi.
  10944. * @export
  10945. * @interface OAuthApiCallbackRequest
  10946. */
  10947. export interface OAuthApiCallbackRequest {
  10948. /**
  10949. *
  10950. * @type {OAuthCallbackDto}
  10951. * @memberof OAuthApiCallback
  10952. */
  10953. readonly oAuthCallbackDto: OAuthCallbackDto
  10954. }
  10955. /**
  10956. * Request parameters for generateConfig operation in OAuthApi.
  10957. * @export
  10958. * @interface OAuthApiGenerateConfigRequest
  10959. */
  10960. export interface OAuthApiGenerateConfigRequest {
  10961. /**
  10962. *
  10963. * @type {OAuthConfigDto}
  10964. * @memberof OAuthApiGenerateConfig
  10965. */
  10966. readonly oAuthConfigDto: OAuthConfigDto
  10967. }
  10968. /**
  10969. * Request parameters for link operation in OAuthApi.
  10970. * @export
  10971. * @interface OAuthApiLinkRequest
  10972. */
  10973. export interface OAuthApiLinkRequest {
  10974. /**
  10975. *
  10976. * @type {OAuthCallbackDto}
  10977. * @memberof OAuthApiLink
  10978. */
  10979. readonly oAuthCallbackDto: OAuthCallbackDto
  10980. }
  10981. /**
  10982. * OAuthApi - object-oriented interface
  10983. * @export
  10984. * @class OAuthApi
  10985. * @extends {BaseAPI}
  10986. */
  10987. export class OAuthApi extends BaseAPI {
  10988. /**
  10989. *
  10990. * @param {OAuthApiAuthorizeOAuthRequest} requestParameters Request parameters.
  10991. * @param {*} [options] Override http request option.
  10992. * @throws {RequiredError}
  10993. * @memberof OAuthApi
  10994. */
  10995. public authorizeOAuth(requestParameters: OAuthApiAuthorizeOAuthRequest, options?: AxiosRequestConfig) {
  10996. return OAuthApiFp(this.configuration).authorizeOAuth(requestParameters.oAuthConfigDto, options).then((request) => request(this.axios, this.basePath));
  10997. }
  10998. /**
  10999. *
  11000. * @param {OAuthApiCallbackRequest} requestParameters Request parameters.
  11001. * @param {*} [options] Override http request option.
  11002. * @throws {RequiredError}
  11003. * @memberof OAuthApi
  11004. */
  11005. public callback(requestParameters: OAuthApiCallbackRequest, options?: AxiosRequestConfig) {
  11006. return OAuthApiFp(this.configuration).callback(requestParameters.oAuthCallbackDto, options).then((request) => request(this.axios, this.basePath));
  11007. }
  11008. /**
  11009. * @deprecated use feature flags and /oauth/authorize
  11010. * @param {OAuthApiGenerateConfigRequest} requestParameters Request parameters.
  11011. * @param {*} [options] Override http request option.
  11012. * @deprecated
  11013. * @throws {RequiredError}
  11014. * @memberof OAuthApi
  11015. */
  11016. public generateConfig(requestParameters: OAuthApiGenerateConfigRequest, options?: AxiosRequestConfig) {
  11017. return OAuthApiFp(this.configuration).generateConfig(requestParameters.oAuthConfigDto, options).then((request) => request(this.axios, this.basePath));
  11018. }
  11019. /**
  11020. *
  11021. * @param {OAuthApiLinkRequest} requestParameters Request parameters.
  11022. * @param {*} [options] Override http request option.
  11023. * @throws {RequiredError}
  11024. * @memberof OAuthApi
  11025. */
  11026. public link(requestParameters: OAuthApiLinkRequest, options?: AxiosRequestConfig) {
  11027. return OAuthApiFp(this.configuration).link(requestParameters.oAuthCallbackDto, options).then((request) => request(this.axios, this.basePath));
  11028. }
  11029. /**
  11030. *
  11031. * @param {*} [options] Override http request option.
  11032. * @throws {RequiredError}
  11033. * @memberof OAuthApi
  11034. */
  11035. public mobileRedirect(options?: AxiosRequestConfig) {
  11036. return OAuthApiFp(this.configuration).mobileRedirect(options).then((request) => request(this.axios, this.basePath));
  11037. }
  11038. /**
  11039. *
  11040. * @param {*} [options] Override http request option.
  11041. * @throws {RequiredError}
  11042. * @memberof OAuthApi
  11043. */
  11044. public unlink(options?: AxiosRequestConfig) {
  11045. return OAuthApiFp(this.configuration).unlink(options).then((request) => request(this.axios, this.basePath));
  11046. }
  11047. }
  11048. /**
  11049. * PartnerApi - axios parameter creator
  11050. * @export
  11051. */
  11052. export const PartnerApiAxiosParamCreator = function (configuration?: Configuration) {
  11053. return {
  11054. /**
  11055. *
  11056. * @param {string} id
  11057. * @param {*} [options] Override http request option.
  11058. * @throws {RequiredError}
  11059. */
  11060. createPartner: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11061. // verify required parameter 'id' is not null or undefined
  11062. assertParamExists('createPartner', 'id', id)
  11063. const localVarPath = `/partner/{id}`
  11064. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  11065. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11066. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11067. let baseOptions;
  11068. if (configuration) {
  11069. baseOptions = configuration.baseOptions;
  11070. }
  11071. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  11072. const localVarHeaderParameter = {} as any;
  11073. const localVarQueryParameter = {} as any;
  11074. // authentication cookie required
  11075. // authentication api_key required
  11076. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  11077. // authentication bearer required
  11078. // http bearer authentication required
  11079. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  11080. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11081. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11082. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11083. return {
  11084. url: toPathString(localVarUrlObj),
  11085. options: localVarRequestOptions,
  11086. };
  11087. },
  11088. /**
  11089. *
  11090. * @param {'shared-by' | 'shared-with'} direction
  11091. * @param {*} [options] Override http request option.
  11092. * @throws {RequiredError}
  11093. */
  11094. getPartners: async (direction: 'shared-by' | 'shared-with', options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11095. // verify required parameter 'direction' is not null or undefined
  11096. assertParamExists('getPartners', 'direction', direction)
  11097. const localVarPath = `/partner`;
  11098. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11099. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11100. let baseOptions;
  11101. if (configuration) {
  11102. baseOptions = configuration.baseOptions;
  11103. }
  11104. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  11105. const localVarHeaderParameter = {} as any;
  11106. const localVarQueryParameter = {} as any;
  11107. // authentication cookie required
  11108. // authentication api_key required
  11109. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  11110. // authentication bearer required
  11111. // http bearer authentication required
  11112. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  11113. if (direction !== undefined) {
  11114. localVarQueryParameter['direction'] = direction;
  11115. }
  11116. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11117. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11118. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11119. return {
  11120. url: toPathString(localVarUrlObj),
  11121. options: localVarRequestOptions,
  11122. };
  11123. },
  11124. /**
  11125. *
  11126. * @param {string} id
  11127. * @param {*} [options] Override http request option.
  11128. * @throws {RequiredError}
  11129. */
  11130. removePartner: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11131. // verify required parameter 'id' is not null or undefined
  11132. assertParamExists('removePartner', 'id', id)
  11133. const localVarPath = `/partner/{id}`
  11134. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  11135. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11136. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11137. let baseOptions;
  11138. if (configuration) {
  11139. baseOptions = configuration.baseOptions;
  11140. }
  11141. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  11142. const localVarHeaderParameter = {} as any;
  11143. const localVarQueryParameter = {} as any;
  11144. // authentication cookie required
  11145. // authentication api_key required
  11146. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  11147. // authentication bearer required
  11148. // http bearer authentication required
  11149. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  11150. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11151. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11152. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11153. return {
  11154. url: toPathString(localVarUrlObj),
  11155. options: localVarRequestOptions,
  11156. };
  11157. },
  11158. }
  11159. };
  11160. /**
  11161. * PartnerApi - functional programming interface
  11162. * @export
  11163. */
  11164. export const PartnerApiFp = function(configuration?: Configuration) {
  11165. const localVarAxiosParamCreator = PartnerApiAxiosParamCreator(configuration)
  11166. return {
  11167. /**
  11168. *
  11169. * @param {string} id
  11170. * @param {*} [options] Override http request option.
  11171. * @throws {RequiredError}
  11172. */
  11173. async createPartner(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  11174. const localVarAxiosArgs = await localVarAxiosParamCreator.createPartner(id, options);
  11175. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11176. },
  11177. /**
  11178. *
  11179. * @param {'shared-by' | 'shared-with'} direction
  11180. * @param {*} [options] Override http request option.
  11181. * @throws {RequiredError}
  11182. */
  11183. async getPartners(direction: 'shared-by' | 'shared-with', options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<UserResponseDto>>> {
  11184. const localVarAxiosArgs = await localVarAxiosParamCreator.getPartners(direction, options);
  11185. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11186. },
  11187. /**
  11188. *
  11189. * @param {string} id
  11190. * @param {*} [options] Override http request option.
  11191. * @throws {RequiredError}
  11192. */
  11193. async removePartner(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  11194. const localVarAxiosArgs = await localVarAxiosParamCreator.removePartner(id, options);
  11195. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11196. },
  11197. }
  11198. };
  11199. /**
  11200. * PartnerApi - factory interface
  11201. * @export
  11202. */
  11203. export const PartnerApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  11204. const localVarFp = PartnerApiFp(configuration)
  11205. return {
  11206. /**
  11207. *
  11208. * @param {PartnerApiCreatePartnerRequest} requestParameters Request parameters.
  11209. * @param {*} [options] Override http request option.
  11210. * @throws {RequiredError}
  11211. */
  11212. createPartner(requestParameters: PartnerApiCreatePartnerRequest, options?: AxiosRequestConfig): AxiosPromise<UserResponseDto> {
  11213. return localVarFp.createPartner(requestParameters.id, options).then((request) => request(axios, basePath));
  11214. },
  11215. /**
  11216. *
  11217. * @param {PartnerApiGetPartnersRequest} requestParameters Request parameters.
  11218. * @param {*} [options] Override http request option.
  11219. * @throws {RequiredError}
  11220. */
  11221. getPartners(requestParameters: PartnerApiGetPartnersRequest, options?: AxiosRequestConfig): AxiosPromise<Array<UserResponseDto>> {
  11222. return localVarFp.getPartners(requestParameters.direction, options).then((request) => request(axios, basePath));
  11223. },
  11224. /**
  11225. *
  11226. * @param {PartnerApiRemovePartnerRequest} requestParameters Request parameters.
  11227. * @param {*} [options] Override http request option.
  11228. * @throws {RequiredError}
  11229. */
  11230. removePartner(requestParameters: PartnerApiRemovePartnerRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  11231. return localVarFp.removePartner(requestParameters.id, options).then((request) => request(axios, basePath));
  11232. },
  11233. };
  11234. };
  11235. /**
  11236. * Request parameters for createPartner operation in PartnerApi.
  11237. * @export
  11238. * @interface PartnerApiCreatePartnerRequest
  11239. */
  11240. export interface PartnerApiCreatePartnerRequest {
  11241. /**
  11242. *
  11243. * @type {string}
  11244. * @memberof PartnerApiCreatePartner
  11245. */
  11246. readonly id: string
  11247. }
  11248. /**
  11249. * Request parameters for getPartners operation in PartnerApi.
  11250. * @export
  11251. * @interface PartnerApiGetPartnersRequest
  11252. */
  11253. export interface PartnerApiGetPartnersRequest {
  11254. /**
  11255. *
  11256. * @type {'shared-by' | 'shared-with'}
  11257. * @memberof PartnerApiGetPartners
  11258. */
  11259. readonly direction: 'shared-by' | 'shared-with'
  11260. }
  11261. /**
  11262. * Request parameters for removePartner operation in PartnerApi.
  11263. * @export
  11264. * @interface PartnerApiRemovePartnerRequest
  11265. */
  11266. export interface PartnerApiRemovePartnerRequest {
  11267. /**
  11268. *
  11269. * @type {string}
  11270. * @memberof PartnerApiRemovePartner
  11271. */
  11272. readonly id: string
  11273. }
  11274. /**
  11275. * PartnerApi - object-oriented interface
  11276. * @export
  11277. * @class PartnerApi
  11278. * @extends {BaseAPI}
  11279. */
  11280. export class PartnerApi extends BaseAPI {
  11281. /**
  11282. *
  11283. * @param {PartnerApiCreatePartnerRequest} requestParameters Request parameters.
  11284. * @param {*} [options] Override http request option.
  11285. * @throws {RequiredError}
  11286. * @memberof PartnerApi
  11287. */
  11288. public createPartner(requestParameters: PartnerApiCreatePartnerRequest, options?: AxiosRequestConfig) {
  11289. return PartnerApiFp(this.configuration).createPartner(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  11290. }
  11291. /**
  11292. *
  11293. * @param {PartnerApiGetPartnersRequest} requestParameters Request parameters.
  11294. * @param {*} [options] Override http request option.
  11295. * @throws {RequiredError}
  11296. * @memberof PartnerApi
  11297. */
  11298. public getPartners(requestParameters: PartnerApiGetPartnersRequest, options?: AxiosRequestConfig) {
  11299. return PartnerApiFp(this.configuration).getPartners(requestParameters.direction, options).then((request) => request(this.axios, this.basePath));
  11300. }
  11301. /**
  11302. *
  11303. * @param {PartnerApiRemovePartnerRequest} requestParameters Request parameters.
  11304. * @param {*} [options] Override http request option.
  11305. * @throws {RequiredError}
  11306. * @memberof PartnerApi
  11307. */
  11308. public removePartner(requestParameters: PartnerApiRemovePartnerRequest, options?: AxiosRequestConfig) {
  11309. return PartnerApiFp(this.configuration).removePartner(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  11310. }
  11311. }
  11312. /**
  11313. * PersonApi - axios parameter creator
  11314. * @export
  11315. */
  11316. export const PersonApiAxiosParamCreator = function (configuration?: Configuration) {
  11317. return {
  11318. /**
  11319. *
  11320. * @param {boolean} [withHidden]
  11321. * @param {*} [options] Override http request option.
  11322. * @throws {RequiredError}
  11323. */
  11324. getAllPeople: async (withHidden?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11325. const localVarPath = `/person`;
  11326. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11327. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11328. let baseOptions;
  11329. if (configuration) {
  11330. baseOptions = configuration.baseOptions;
  11331. }
  11332. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  11333. const localVarHeaderParameter = {} as any;
  11334. const localVarQueryParameter = {} as any;
  11335. // authentication cookie required
  11336. // authentication api_key required
  11337. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  11338. // authentication bearer required
  11339. // http bearer authentication required
  11340. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  11341. if (withHidden !== undefined) {
  11342. localVarQueryParameter['withHidden'] = withHidden;
  11343. }
  11344. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11345. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11346. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11347. return {
  11348. url: toPathString(localVarUrlObj),
  11349. options: localVarRequestOptions,
  11350. };
  11351. },
  11352. /**
  11353. *
  11354. * @param {string} id
  11355. * @param {*} [options] Override http request option.
  11356. * @throws {RequiredError}
  11357. */
  11358. getPerson: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11359. // verify required parameter 'id' is not null or undefined
  11360. assertParamExists('getPerson', 'id', id)
  11361. const localVarPath = `/person/{id}`
  11362. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  11363. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11364. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11365. let baseOptions;
  11366. if (configuration) {
  11367. baseOptions = configuration.baseOptions;
  11368. }
  11369. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  11370. const localVarHeaderParameter = {} as any;
  11371. const localVarQueryParameter = {} as any;
  11372. // authentication cookie required
  11373. // authentication api_key required
  11374. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  11375. // authentication bearer required
  11376. // http bearer authentication required
  11377. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  11378. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11379. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11380. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11381. return {
  11382. url: toPathString(localVarUrlObj),
  11383. options: localVarRequestOptions,
  11384. };
  11385. },
  11386. /**
  11387. *
  11388. * @param {string} id
  11389. * @param {*} [options] Override http request option.
  11390. * @throws {RequiredError}
  11391. */
  11392. getPersonAssets: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11393. // verify required parameter 'id' is not null or undefined
  11394. assertParamExists('getPersonAssets', 'id', id)
  11395. const localVarPath = `/person/{id}/assets`
  11396. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  11397. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11398. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11399. let baseOptions;
  11400. if (configuration) {
  11401. baseOptions = configuration.baseOptions;
  11402. }
  11403. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  11404. const localVarHeaderParameter = {} as any;
  11405. const localVarQueryParameter = {} as any;
  11406. // authentication cookie required
  11407. // authentication api_key required
  11408. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  11409. // authentication bearer required
  11410. // http bearer authentication required
  11411. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  11412. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11413. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11414. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11415. return {
  11416. url: toPathString(localVarUrlObj),
  11417. options: localVarRequestOptions,
  11418. };
  11419. },
  11420. /**
  11421. *
  11422. * @param {string} id
  11423. * @param {*} [options] Override http request option.
  11424. * @throws {RequiredError}
  11425. */
  11426. getPersonStatistics: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11427. // verify required parameter 'id' is not null or undefined
  11428. assertParamExists('getPersonStatistics', 'id', id)
  11429. const localVarPath = `/person/{id}/statistics`
  11430. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  11431. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11432. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11433. let baseOptions;
  11434. if (configuration) {
  11435. baseOptions = configuration.baseOptions;
  11436. }
  11437. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  11438. const localVarHeaderParameter = {} as any;
  11439. const localVarQueryParameter = {} as any;
  11440. // authentication cookie required
  11441. // authentication api_key required
  11442. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  11443. // authentication bearer required
  11444. // http bearer authentication required
  11445. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  11446. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11447. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11448. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11449. return {
  11450. url: toPathString(localVarUrlObj),
  11451. options: localVarRequestOptions,
  11452. };
  11453. },
  11454. /**
  11455. *
  11456. * @param {string} id
  11457. * @param {*} [options] Override http request option.
  11458. * @throws {RequiredError}
  11459. */
  11460. getPersonThumbnail: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11461. // verify required parameter 'id' is not null or undefined
  11462. assertParamExists('getPersonThumbnail', 'id', id)
  11463. const localVarPath = `/person/{id}/thumbnail`
  11464. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  11465. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11466. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11467. let baseOptions;
  11468. if (configuration) {
  11469. baseOptions = configuration.baseOptions;
  11470. }
  11471. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  11472. const localVarHeaderParameter = {} as any;
  11473. const localVarQueryParameter = {} as any;
  11474. // authentication cookie required
  11475. // authentication api_key required
  11476. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  11477. // authentication bearer required
  11478. // http bearer authentication required
  11479. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  11480. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11481. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11482. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11483. return {
  11484. url: toPathString(localVarUrlObj),
  11485. options: localVarRequestOptions,
  11486. };
  11487. },
  11488. /**
  11489. *
  11490. * @param {string} id
  11491. * @param {MergePersonDto} mergePersonDto
  11492. * @param {*} [options] Override http request option.
  11493. * @throws {RequiredError}
  11494. */
  11495. mergePerson: async (id: string, mergePersonDto: MergePersonDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11496. // verify required parameter 'id' is not null or undefined
  11497. assertParamExists('mergePerson', 'id', id)
  11498. // verify required parameter 'mergePersonDto' is not null or undefined
  11499. assertParamExists('mergePerson', 'mergePersonDto', mergePersonDto)
  11500. const localVarPath = `/person/{id}/merge`
  11501. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  11502. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11503. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11504. let baseOptions;
  11505. if (configuration) {
  11506. baseOptions = configuration.baseOptions;
  11507. }
  11508. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  11509. const localVarHeaderParameter = {} as any;
  11510. const localVarQueryParameter = {} as any;
  11511. // authentication cookie required
  11512. // authentication api_key required
  11513. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  11514. // authentication bearer required
  11515. // http bearer authentication required
  11516. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  11517. localVarHeaderParameter['Content-Type'] = 'application/json';
  11518. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11519. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11520. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11521. localVarRequestOptions.data = serializeDataIfNeeded(mergePersonDto, localVarRequestOptions, configuration)
  11522. return {
  11523. url: toPathString(localVarUrlObj),
  11524. options: localVarRequestOptions,
  11525. };
  11526. },
  11527. /**
  11528. *
  11529. * @param {PeopleUpdateDto} peopleUpdateDto
  11530. * @param {*} [options] Override http request option.
  11531. * @throws {RequiredError}
  11532. */
  11533. updatePeople: async (peopleUpdateDto: PeopleUpdateDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11534. // verify required parameter 'peopleUpdateDto' is not null or undefined
  11535. assertParamExists('updatePeople', 'peopleUpdateDto', peopleUpdateDto)
  11536. const localVarPath = `/person`;
  11537. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11538. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11539. let baseOptions;
  11540. if (configuration) {
  11541. baseOptions = configuration.baseOptions;
  11542. }
  11543. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  11544. const localVarHeaderParameter = {} as any;
  11545. const localVarQueryParameter = {} as any;
  11546. // authentication cookie required
  11547. // authentication api_key required
  11548. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  11549. // authentication bearer required
  11550. // http bearer authentication required
  11551. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  11552. localVarHeaderParameter['Content-Type'] = 'application/json';
  11553. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11554. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11555. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11556. localVarRequestOptions.data = serializeDataIfNeeded(peopleUpdateDto, localVarRequestOptions, configuration)
  11557. return {
  11558. url: toPathString(localVarUrlObj),
  11559. options: localVarRequestOptions,
  11560. };
  11561. },
  11562. /**
  11563. *
  11564. * @param {string} id
  11565. * @param {PersonUpdateDto} personUpdateDto
  11566. * @param {*} [options] Override http request option.
  11567. * @throws {RequiredError}
  11568. */
  11569. updatePerson: async (id: string, personUpdateDto: PersonUpdateDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11570. // verify required parameter 'id' is not null or undefined
  11571. assertParamExists('updatePerson', 'id', id)
  11572. // verify required parameter 'personUpdateDto' is not null or undefined
  11573. assertParamExists('updatePerson', 'personUpdateDto', personUpdateDto)
  11574. const localVarPath = `/person/{id}`
  11575. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  11576. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11577. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11578. let baseOptions;
  11579. if (configuration) {
  11580. baseOptions = configuration.baseOptions;
  11581. }
  11582. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  11583. const localVarHeaderParameter = {} as any;
  11584. const localVarQueryParameter = {} as any;
  11585. // authentication cookie required
  11586. // authentication api_key required
  11587. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  11588. // authentication bearer required
  11589. // http bearer authentication required
  11590. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  11591. localVarHeaderParameter['Content-Type'] = 'application/json';
  11592. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11593. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11594. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11595. localVarRequestOptions.data = serializeDataIfNeeded(personUpdateDto, localVarRequestOptions, configuration)
  11596. return {
  11597. url: toPathString(localVarUrlObj),
  11598. options: localVarRequestOptions,
  11599. };
  11600. },
  11601. }
  11602. };
  11603. /**
  11604. * PersonApi - functional programming interface
  11605. * @export
  11606. */
  11607. export const PersonApiFp = function(configuration?: Configuration) {
  11608. const localVarAxiosParamCreator = PersonApiAxiosParamCreator(configuration)
  11609. return {
  11610. /**
  11611. *
  11612. * @param {boolean} [withHidden]
  11613. * @param {*} [options] Override http request option.
  11614. * @throws {RequiredError}
  11615. */
  11616. async getAllPeople(withHidden?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PeopleResponseDto>> {
  11617. const localVarAxiosArgs = await localVarAxiosParamCreator.getAllPeople(withHidden, options);
  11618. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11619. },
  11620. /**
  11621. *
  11622. * @param {string} id
  11623. * @param {*} [options] Override http request option.
  11624. * @throws {RequiredError}
  11625. */
  11626. async getPerson(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PersonResponseDto>> {
  11627. const localVarAxiosArgs = await localVarAxiosParamCreator.getPerson(id, options);
  11628. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11629. },
  11630. /**
  11631. *
  11632. * @param {string} id
  11633. * @param {*} [options] Override http request option.
  11634. * @throws {RequiredError}
  11635. */
  11636. async getPersonAssets(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetResponseDto>>> {
  11637. const localVarAxiosArgs = await localVarAxiosParamCreator.getPersonAssets(id, options);
  11638. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11639. },
  11640. /**
  11641. *
  11642. * @param {string} id
  11643. * @param {*} [options] Override http request option.
  11644. * @throws {RequiredError}
  11645. */
  11646. async getPersonStatistics(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PersonStatisticsResponseDto>> {
  11647. const localVarAxiosArgs = await localVarAxiosParamCreator.getPersonStatistics(id, options);
  11648. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11649. },
  11650. /**
  11651. *
  11652. * @param {string} id
  11653. * @param {*} [options] Override http request option.
  11654. * @throws {RequiredError}
  11655. */
  11656. async getPersonThumbnail(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>> {
  11657. const localVarAxiosArgs = await localVarAxiosParamCreator.getPersonThumbnail(id, options);
  11658. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11659. },
  11660. /**
  11661. *
  11662. * @param {string} id
  11663. * @param {MergePersonDto} mergePersonDto
  11664. * @param {*} [options] Override http request option.
  11665. * @throws {RequiredError}
  11666. */
  11667. async mergePerson(id: string, mergePersonDto: MergePersonDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<BulkIdResponseDto>>> {
  11668. const localVarAxiosArgs = await localVarAxiosParamCreator.mergePerson(id, mergePersonDto, options);
  11669. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11670. },
  11671. /**
  11672. *
  11673. * @param {PeopleUpdateDto} peopleUpdateDto
  11674. * @param {*} [options] Override http request option.
  11675. * @throws {RequiredError}
  11676. */
  11677. async updatePeople(peopleUpdateDto: PeopleUpdateDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<BulkIdResponseDto>>> {
  11678. const localVarAxiosArgs = await localVarAxiosParamCreator.updatePeople(peopleUpdateDto, options);
  11679. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11680. },
  11681. /**
  11682. *
  11683. * @param {string} id
  11684. * @param {PersonUpdateDto} personUpdateDto
  11685. * @param {*} [options] Override http request option.
  11686. * @throws {RequiredError}
  11687. */
  11688. async updatePerson(id: string, personUpdateDto: PersonUpdateDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PersonResponseDto>> {
  11689. const localVarAxiosArgs = await localVarAxiosParamCreator.updatePerson(id, personUpdateDto, options);
  11690. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11691. },
  11692. }
  11693. };
  11694. /**
  11695. * PersonApi - factory interface
  11696. * @export
  11697. */
  11698. export const PersonApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  11699. const localVarFp = PersonApiFp(configuration)
  11700. return {
  11701. /**
  11702. *
  11703. * @param {PersonApiGetAllPeopleRequest} requestParameters Request parameters.
  11704. * @param {*} [options] Override http request option.
  11705. * @throws {RequiredError}
  11706. */
  11707. getAllPeople(requestParameters: PersonApiGetAllPeopleRequest = {}, options?: AxiosRequestConfig): AxiosPromise<PeopleResponseDto> {
  11708. return localVarFp.getAllPeople(requestParameters.withHidden, options).then((request) => request(axios, basePath));
  11709. },
  11710. /**
  11711. *
  11712. * @param {PersonApiGetPersonRequest} requestParameters Request parameters.
  11713. * @param {*} [options] Override http request option.
  11714. * @throws {RequiredError}
  11715. */
  11716. getPerson(requestParameters: PersonApiGetPersonRequest, options?: AxiosRequestConfig): AxiosPromise<PersonResponseDto> {
  11717. return localVarFp.getPerson(requestParameters.id, options).then((request) => request(axios, basePath));
  11718. },
  11719. /**
  11720. *
  11721. * @param {PersonApiGetPersonAssetsRequest} requestParameters Request parameters.
  11722. * @param {*} [options] Override http request option.
  11723. * @throws {RequiredError}
  11724. */
  11725. getPersonAssets(requestParameters: PersonApiGetPersonAssetsRequest, options?: AxiosRequestConfig): AxiosPromise<Array<AssetResponseDto>> {
  11726. return localVarFp.getPersonAssets(requestParameters.id, options).then((request) => request(axios, basePath));
  11727. },
  11728. /**
  11729. *
  11730. * @param {PersonApiGetPersonStatisticsRequest} requestParameters Request parameters.
  11731. * @param {*} [options] Override http request option.
  11732. * @throws {RequiredError}
  11733. */
  11734. getPersonStatistics(requestParameters: PersonApiGetPersonStatisticsRequest, options?: AxiosRequestConfig): AxiosPromise<PersonStatisticsResponseDto> {
  11735. return localVarFp.getPersonStatistics(requestParameters.id, options).then((request) => request(axios, basePath));
  11736. },
  11737. /**
  11738. *
  11739. * @param {PersonApiGetPersonThumbnailRequest} requestParameters Request parameters.
  11740. * @param {*} [options] Override http request option.
  11741. * @throws {RequiredError}
  11742. */
  11743. getPersonThumbnail(requestParameters: PersonApiGetPersonThumbnailRequest, options?: AxiosRequestConfig): AxiosPromise<File> {
  11744. return localVarFp.getPersonThumbnail(requestParameters.id, options).then((request) => request(axios, basePath));
  11745. },
  11746. /**
  11747. *
  11748. * @param {PersonApiMergePersonRequest} requestParameters Request parameters.
  11749. * @param {*} [options] Override http request option.
  11750. * @throws {RequiredError}
  11751. */
  11752. mergePerson(requestParameters: PersonApiMergePersonRequest, options?: AxiosRequestConfig): AxiosPromise<Array<BulkIdResponseDto>> {
  11753. return localVarFp.mergePerson(requestParameters.id, requestParameters.mergePersonDto, options).then((request) => request(axios, basePath));
  11754. },
  11755. /**
  11756. *
  11757. * @param {PersonApiUpdatePeopleRequest} requestParameters Request parameters.
  11758. * @param {*} [options] Override http request option.
  11759. * @throws {RequiredError}
  11760. */
  11761. updatePeople(requestParameters: PersonApiUpdatePeopleRequest, options?: AxiosRequestConfig): AxiosPromise<Array<BulkIdResponseDto>> {
  11762. return localVarFp.updatePeople(requestParameters.peopleUpdateDto, options).then((request) => request(axios, basePath));
  11763. },
  11764. /**
  11765. *
  11766. * @param {PersonApiUpdatePersonRequest} requestParameters Request parameters.
  11767. * @param {*} [options] Override http request option.
  11768. * @throws {RequiredError}
  11769. */
  11770. updatePerson(requestParameters: PersonApiUpdatePersonRequest, options?: AxiosRequestConfig): AxiosPromise<PersonResponseDto> {
  11771. return localVarFp.updatePerson(requestParameters.id, requestParameters.personUpdateDto, options).then((request) => request(axios, basePath));
  11772. },
  11773. };
  11774. };
  11775. /**
  11776. * Request parameters for getAllPeople operation in PersonApi.
  11777. * @export
  11778. * @interface PersonApiGetAllPeopleRequest
  11779. */
  11780. export interface PersonApiGetAllPeopleRequest {
  11781. /**
  11782. *
  11783. * @type {boolean}
  11784. * @memberof PersonApiGetAllPeople
  11785. */
  11786. readonly withHidden?: boolean
  11787. }
  11788. /**
  11789. * Request parameters for getPerson operation in PersonApi.
  11790. * @export
  11791. * @interface PersonApiGetPersonRequest
  11792. */
  11793. export interface PersonApiGetPersonRequest {
  11794. /**
  11795. *
  11796. * @type {string}
  11797. * @memberof PersonApiGetPerson
  11798. */
  11799. readonly id: string
  11800. }
  11801. /**
  11802. * Request parameters for getPersonAssets operation in PersonApi.
  11803. * @export
  11804. * @interface PersonApiGetPersonAssetsRequest
  11805. */
  11806. export interface PersonApiGetPersonAssetsRequest {
  11807. /**
  11808. *
  11809. * @type {string}
  11810. * @memberof PersonApiGetPersonAssets
  11811. */
  11812. readonly id: string
  11813. }
  11814. /**
  11815. * Request parameters for getPersonStatistics operation in PersonApi.
  11816. * @export
  11817. * @interface PersonApiGetPersonStatisticsRequest
  11818. */
  11819. export interface PersonApiGetPersonStatisticsRequest {
  11820. /**
  11821. *
  11822. * @type {string}
  11823. * @memberof PersonApiGetPersonStatistics
  11824. */
  11825. readonly id: string
  11826. }
  11827. /**
  11828. * Request parameters for getPersonThumbnail operation in PersonApi.
  11829. * @export
  11830. * @interface PersonApiGetPersonThumbnailRequest
  11831. */
  11832. export interface PersonApiGetPersonThumbnailRequest {
  11833. /**
  11834. *
  11835. * @type {string}
  11836. * @memberof PersonApiGetPersonThumbnail
  11837. */
  11838. readonly id: string
  11839. }
  11840. /**
  11841. * Request parameters for mergePerson operation in PersonApi.
  11842. * @export
  11843. * @interface PersonApiMergePersonRequest
  11844. */
  11845. export interface PersonApiMergePersonRequest {
  11846. /**
  11847. *
  11848. * @type {string}
  11849. * @memberof PersonApiMergePerson
  11850. */
  11851. readonly id: string
  11852. /**
  11853. *
  11854. * @type {MergePersonDto}
  11855. * @memberof PersonApiMergePerson
  11856. */
  11857. readonly mergePersonDto: MergePersonDto
  11858. }
  11859. /**
  11860. * Request parameters for updatePeople operation in PersonApi.
  11861. * @export
  11862. * @interface PersonApiUpdatePeopleRequest
  11863. */
  11864. export interface PersonApiUpdatePeopleRequest {
  11865. /**
  11866. *
  11867. * @type {PeopleUpdateDto}
  11868. * @memberof PersonApiUpdatePeople
  11869. */
  11870. readonly peopleUpdateDto: PeopleUpdateDto
  11871. }
  11872. /**
  11873. * Request parameters for updatePerson operation in PersonApi.
  11874. * @export
  11875. * @interface PersonApiUpdatePersonRequest
  11876. */
  11877. export interface PersonApiUpdatePersonRequest {
  11878. /**
  11879. *
  11880. * @type {string}
  11881. * @memberof PersonApiUpdatePerson
  11882. */
  11883. readonly id: string
  11884. /**
  11885. *
  11886. * @type {PersonUpdateDto}
  11887. * @memberof PersonApiUpdatePerson
  11888. */
  11889. readonly personUpdateDto: PersonUpdateDto
  11890. }
  11891. /**
  11892. * PersonApi - object-oriented interface
  11893. * @export
  11894. * @class PersonApi
  11895. * @extends {BaseAPI}
  11896. */
  11897. export class PersonApi extends BaseAPI {
  11898. /**
  11899. *
  11900. * @param {PersonApiGetAllPeopleRequest} requestParameters Request parameters.
  11901. * @param {*} [options] Override http request option.
  11902. * @throws {RequiredError}
  11903. * @memberof PersonApi
  11904. */
  11905. public getAllPeople(requestParameters: PersonApiGetAllPeopleRequest = {}, options?: AxiosRequestConfig) {
  11906. return PersonApiFp(this.configuration).getAllPeople(requestParameters.withHidden, options).then((request) => request(this.axios, this.basePath));
  11907. }
  11908. /**
  11909. *
  11910. * @param {PersonApiGetPersonRequest} requestParameters Request parameters.
  11911. * @param {*} [options] Override http request option.
  11912. * @throws {RequiredError}
  11913. * @memberof PersonApi
  11914. */
  11915. public getPerson(requestParameters: PersonApiGetPersonRequest, options?: AxiosRequestConfig) {
  11916. return PersonApiFp(this.configuration).getPerson(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  11917. }
  11918. /**
  11919. *
  11920. * @param {PersonApiGetPersonAssetsRequest} requestParameters Request parameters.
  11921. * @param {*} [options] Override http request option.
  11922. * @throws {RequiredError}
  11923. * @memberof PersonApi
  11924. */
  11925. public getPersonAssets(requestParameters: PersonApiGetPersonAssetsRequest, options?: AxiosRequestConfig) {
  11926. return PersonApiFp(this.configuration).getPersonAssets(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  11927. }
  11928. /**
  11929. *
  11930. * @param {PersonApiGetPersonStatisticsRequest} requestParameters Request parameters.
  11931. * @param {*} [options] Override http request option.
  11932. * @throws {RequiredError}
  11933. * @memberof PersonApi
  11934. */
  11935. public getPersonStatistics(requestParameters: PersonApiGetPersonStatisticsRequest, options?: AxiosRequestConfig) {
  11936. return PersonApiFp(this.configuration).getPersonStatistics(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  11937. }
  11938. /**
  11939. *
  11940. * @param {PersonApiGetPersonThumbnailRequest} requestParameters Request parameters.
  11941. * @param {*} [options] Override http request option.
  11942. * @throws {RequiredError}
  11943. * @memberof PersonApi
  11944. */
  11945. public getPersonThumbnail(requestParameters: PersonApiGetPersonThumbnailRequest, options?: AxiosRequestConfig) {
  11946. return PersonApiFp(this.configuration).getPersonThumbnail(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  11947. }
  11948. /**
  11949. *
  11950. * @param {PersonApiMergePersonRequest} requestParameters Request parameters.
  11951. * @param {*} [options] Override http request option.
  11952. * @throws {RequiredError}
  11953. * @memberof PersonApi
  11954. */
  11955. public mergePerson(requestParameters: PersonApiMergePersonRequest, options?: AxiosRequestConfig) {
  11956. return PersonApiFp(this.configuration).mergePerson(requestParameters.id, requestParameters.mergePersonDto, options).then((request) => request(this.axios, this.basePath));
  11957. }
  11958. /**
  11959. *
  11960. * @param {PersonApiUpdatePeopleRequest} requestParameters Request parameters.
  11961. * @param {*} [options] Override http request option.
  11962. * @throws {RequiredError}
  11963. * @memberof PersonApi
  11964. */
  11965. public updatePeople(requestParameters: PersonApiUpdatePeopleRequest, options?: AxiosRequestConfig) {
  11966. return PersonApiFp(this.configuration).updatePeople(requestParameters.peopleUpdateDto, options).then((request) => request(this.axios, this.basePath));
  11967. }
  11968. /**
  11969. *
  11970. * @param {PersonApiUpdatePersonRequest} requestParameters Request parameters.
  11971. * @param {*} [options] Override http request option.
  11972. * @throws {RequiredError}
  11973. * @memberof PersonApi
  11974. */
  11975. public updatePerson(requestParameters: PersonApiUpdatePersonRequest, options?: AxiosRequestConfig) {
  11976. return PersonApiFp(this.configuration).updatePerson(requestParameters.id, requestParameters.personUpdateDto, options).then((request) => request(this.axios, this.basePath));
  11977. }
  11978. }
  11979. /**
  11980. * SearchApi - axios parameter creator
  11981. * @export
  11982. */
  11983. export const SearchApiAxiosParamCreator = function (configuration?: Configuration) {
  11984. return {
  11985. /**
  11986. *
  11987. * @param {*} [options] Override http request option.
  11988. * @throws {RequiredError}
  11989. */
  11990. getExploreData: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11991. const localVarPath = `/search/explore`;
  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. // authentication cookie required
  12002. // authentication api_key required
  12003. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  12004. // authentication bearer required
  12005. // http bearer authentication required
  12006. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  12007. setSearchParams(localVarUrlObj, localVarQueryParameter);
  12008. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  12009. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  12010. return {
  12011. url: toPathString(localVarUrlObj),
  12012. options: localVarRequestOptions,
  12013. };
  12014. },
  12015. /**
  12016. *
  12017. * @param {string} [q]
  12018. * @param {string} [query]
  12019. * @param {boolean} [clip]
  12020. * @param {'IMAGE' | 'VIDEO' | 'AUDIO' | 'OTHER'} [type]
  12021. * @param {boolean} [isFavorite]
  12022. * @param {boolean} [isArchived]
  12023. * @param {string} [exifInfoCity]
  12024. * @param {string} [exifInfoState]
  12025. * @param {string} [exifInfoCountry]
  12026. * @param {string} [exifInfoMake]
  12027. * @param {string} [exifInfoModel]
  12028. * @param {string} [exifInfoProjectionType]
  12029. * @param {Array<string>} [smartInfoObjects]
  12030. * @param {Array<string>} [smartInfoTags]
  12031. * @param {boolean} [recent]
  12032. * @param {boolean} [motion]
  12033. * @param {*} [options] Override http request option.
  12034. * @throws {RequiredError}
  12035. */
  12036. 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> => {
  12037. const localVarPath = `/search`;
  12038. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  12039. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  12040. let baseOptions;
  12041. if (configuration) {
  12042. baseOptions = configuration.baseOptions;
  12043. }
  12044. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  12045. const localVarHeaderParameter = {} as any;
  12046. const localVarQueryParameter = {} as any;
  12047. // authentication cookie required
  12048. // authentication api_key required
  12049. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  12050. // authentication bearer required
  12051. // http bearer authentication required
  12052. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  12053. if (q !== undefined) {
  12054. localVarQueryParameter['q'] = q;
  12055. }
  12056. if (query !== undefined) {
  12057. localVarQueryParameter['query'] = query;
  12058. }
  12059. if (clip !== undefined) {
  12060. localVarQueryParameter['clip'] = clip;
  12061. }
  12062. if (type !== undefined) {
  12063. localVarQueryParameter['type'] = type;
  12064. }
  12065. if (isFavorite !== undefined) {
  12066. localVarQueryParameter['isFavorite'] = isFavorite;
  12067. }
  12068. if (isArchived !== undefined) {
  12069. localVarQueryParameter['isArchived'] = isArchived;
  12070. }
  12071. if (exifInfoCity !== undefined) {
  12072. localVarQueryParameter['exifInfo.city'] = exifInfoCity;
  12073. }
  12074. if (exifInfoState !== undefined) {
  12075. localVarQueryParameter['exifInfo.state'] = exifInfoState;
  12076. }
  12077. if (exifInfoCountry !== undefined) {
  12078. localVarQueryParameter['exifInfo.country'] = exifInfoCountry;
  12079. }
  12080. if (exifInfoMake !== undefined) {
  12081. localVarQueryParameter['exifInfo.make'] = exifInfoMake;
  12082. }
  12083. if (exifInfoModel !== undefined) {
  12084. localVarQueryParameter['exifInfo.model'] = exifInfoModel;
  12085. }
  12086. if (exifInfoProjectionType !== undefined) {
  12087. localVarQueryParameter['exifInfo.projectionType'] = exifInfoProjectionType;
  12088. }
  12089. if (smartInfoObjects) {
  12090. localVarQueryParameter['smartInfo.objects'] = smartInfoObjects;
  12091. }
  12092. if (smartInfoTags) {
  12093. localVarQueryParameter['smartInfo.tags'] = smartInfoTags;
  12094. }
  12095. if (recent !== undefined) {
  12096. localVarQueryParameter['recent'] = recent;
  12097. }
  12098. if (motion !== undefined) {
  12099. localVarQueryParameter['motion'] = motion;
  12100. }
  12101. setSearchParams(localVarUrlObj, localVarQueryParameter);
  12102. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  12103. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  12104. return {
  12105. url: toPathString(localVarUrlObj),
  12106. options: localVarRequestOptions,
  12107. };
  12108. },
  12109. /**
  12110. *
  12111. * @param {string} name
  12112. * @param {boolean} [withHidden]
  12113. * @param {*} [options] Override http request option.
  12114. * @throws {RequiredError}
  12115. */
  12116. searchPerson: async (name: string, withHidden?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  12117. // verify required parameter 'name' is not null or undefined
  12118. assertParamExists('searchPerson', 'name', name)
  12119. const localVarPath = `/search/person`;
  12120. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  12121. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  12122. let baseOptions;
  12123. if (configuration) {
  12124. baseOptions = configuration.baseOptions;
  12125. }
  12126. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  12127. const localVarHeaderParameter = {} as any;
  12128. const localVarQueryParameter = {} as any;
  12129. // authentication cookie required
  12130. // authentication api_key required
  12131. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  12132. // authentication bearer required
  12133. // http bearer authentication required
  12134. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  12135. if (name !== undefined) {
  12136. localVarQueryParameter['name'] = name;
  12137. }
  12138. if (withHidden !== undefined) {
  12139. localVarQueryParameter['withHidden'] = withHidden;
  12140. }
  12141. setSearchParams(localVarUrlObj, localVarQueryParameter);
  12142. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  12143. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  12144. return {
  12145. url: toPathString(localVarUrlObj),
  12146. options: localVarRequestOptions,
  12147. };
  12148. },
  12149. }
  12150. };
  12151. /**
  12152. * SearchApi - functional programming interface
  12153. * @export
  12154. */
  12155. export const SearchApiFp = function(configuration?: Configuration) {
  12156. const localVarAxiosParamCreator = SearchApiAxiosParamCreator(configuration)
  12157. return {
  12158. /**
  12159. *
  12160. * @param {*} [options] Override http request option.
  12161. * @throws {RequiredError}
  12162. */
  12163. async getExploreData(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<SearchExploreResponseDto>>> {
  12164. const localVarAxiosArgs = await localVarAxiosParamCreator.getExploreData(options);
  12165. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12166. },
  12167. /**
  12168. *
  12169. * @param {string} [q]
  12170. * @param {string} [query]
  12171. * @param {boolean} [clip]
  12172. * @param {'IMAGE' | 'VIDEO' | 'AUDIO' | 'OTHER'} [type]
  12173. * @param {boolean} [isFavorite]
  12174. * @param {boolean} [isArchived]
  12175. * @param {string} [exifInfoCity]
  12176. * @param {string} [exifInfoState]
  12177. * @param {string} [exifInfoCountry]
  12178. * @param {string} [exifInfoMake]
  12179. * @param {string} [exifInfoModel]
  12180. * @param {string} [exifInfoProjectionType]
  12181. * @param {Array<string>} [smartInfoObjects]
  12182. * @param {Array<string>} [smartInfoTags]
  12183. * @param {boolean} [recent]
  12184. * @param {boolean} [motion]
  12185. * @param {*} [options] Override http request option.
  12186. * @throws {RequiredError}
  12187. */
  12188. 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>> {
  12189. const localVarAxiosArgs = await localVarAxiosParamCreator.search(q, query, clip, type, isFavorite, isArchived, exifInfoCity, exifInfoState, exifInfoCountry, exifInfoMake, exifInfoModel, exifInfoProjectionType, smartInfoObjects, smartInfoTags, recent, motion, options);
  12190. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12191. },
  12192. /**
  12193. *
  12194. * @param {string} name
  12195. * @param {boolean} [withHidden]
  12196. * @param {*} [options] Override http request option.
  12197. * @throws {RequiredError}
  12198. */
  12199. async searchPerson(name: string, withHidden?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<PersonResponseDto>>> {
  12200. const localVarAxiosArgs = await localVarAxiosParamCreator.searchPerson(name, withHidden, options);
  12201. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12202. },
  12203. }
  12204. };
  12205. /**
  12206. * SearchApi - factory interface
  12207. * @export
  12208. */
  12209. export const SearchApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  12210. const localVarFp = SearchApiFp(configuration)
  12211. return {
  12212. /**
  12213. *
  12214. * @param {*} [options] Override http request option.
  12215. * @throws {RequiredError}
  12216. */
  12217. getExploreData(options?: AxiosRequestConfig): AxiosPromise<Array<SearchExploreResponseDto>> {
  12218. return localVarFp.getExploreData(options).then((request) => request(axios, basePath));
  12219. },
  12220. /**
  12221. *
  12222. * @param {SearchApiSearchRequest} requestParameters Request parameters.
  12223. * @param {*} [options] Override http request option.
  12224. * @throws {RequiredError}
  12225. */
  12226. search(requestParameters: SearchApiSearchRequest = {}, options?: AxiosRequestConfig): AxiosPromise<SearchResponseDto> {
  12227. 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));
  12228. },
  12229. /**
  12230. *
  12231. * @param {SearchApiSearchPersonRequest} requestParameters Request parameters.
  12232. * @param {*} [options] Override http request option.
  12233. * @throws {RequiredError}
  12234. */
  12235. searchPerson(requestParameters: SearchApiSearchPersonRequest, options?: AxiosRequestConfig): AxiosPromise<Array<PersonResponseDto>> {
  12236. return localVarFp.searchPerson(requestParameters.name, requestParameters.withHidden, options).then((request) => request(axios, basePath));
  12237. },
  12238. };
  12239. };
  12240. /**
  12241. * Request parameters for search operation in SearchApi.
  12242. * @export
  12243. * @interface SearchApiSearchRequest
  12244. */
  12245. export interface SearchApiSearchRequest {
  12246. /**
  12247. *
  12248. * @type {string}
  12249. * @memberof SearchApiSearch
  12250. */
  12251. readonly q?: string
  12252. /**
  12253. *
  12254. * @type {string}
  12255. * @memberof SearchApiSearch
  12256. */
  12257. readonly query?: string
  12258. /**
  12259. *
  12260. * @type {boolean}
  12261. * @memberof SearchApiSearch
  12262. */
  12263. readonly clip?: boolean
  12264. /**
  12265. *
  12266. * @type {'IMAGE' | 'VIDEO' | 'AUDIO' | 'OTHER'}
  12267. * @memberof SearchApiSearch
  12268. */
  12269. readonly type?: 'IMAGE' | 'VIDEO' | 'AUDIO' | 'OTHER'
  12270. /**
  12271. *
  12272. * @type {boolean}
  12273. * @memberof SearchApiSearch
  12274. */
  12275. readonly isFavorite?: boolean
  12276. /**
  12277. *
  12278. * @type {boolean}
  12279. * @memberof SearchApiSearch
  12280. */
  12281. readonly isArchived?: boolean
  12282. /**
  12283. *
  12284. * @type {string}
  12285. * @memberof SearchApiSearch
  12286. */
  12287. readonly exifInfoCity?: string
  12288. /**
  12289. *
  12290. * @type {string}
  12291. * @memberof SearchApiSearch
  12292. */
  12293. readonly exifInfoState?: string
  12294. /**
  12295. *
  12296. * @type {string}
  12297. * @memberof SearchApiSearch
  12298. */
  12299. readonly exifInfoCountry?: string
  12300. /**
  12301. *
  12302. * @type {string}
  12303. * @memberof SearchApiSearch
  12304. */
  12305. readonly exifInfoMake?: string
  12306. /**
  12307. *
  12308. * @type {string}
  12309. * @memberof SearchApiSearch
  12310. */
  12311. readonly exifInfoModel?: string
  12312. /**
  12313. *
  12314. * @type {string}
  12315. * @memberof SearchApiSearch
  12316. */
  12317. readonly exifInfoProjectionType?: string
  12318. /**
  12319. *
  12320. * @type {Array<string>}
  12321. * @memberof SearchApiSearch
  12322. */
  12323. readonly smartInfoObjects?: Array<string>
  12324. /**
  12325. *
  12326. * @type {Array<string>}
  12327. * @memberof SearchApiSearch
  12328. */
  12329. readonly smartInfoTags?: Array<string>
  12330. /**
  12331. *
  12332. * @type {boolean}
  12333. * @memberof SearchApiSearch
  12334. */
  12335. readonly recent?: boolean
  12336. /**
  12337. *
  12338. * @type {boolean}
  12339. * @memberof SearchApiSearch
  12340. */
  12341. readonly motion?: boolean
  12342. }
  12343. /**
  12344. * Request parameters for searchPerson operation in SearchApi.
  12345. * @export
  12346. * @interface SearchApiSearchPersonRequest
  12347. */
  12348. export interface SearchApiSearchPersonRequest {
  12349. /**
  12350. *
  12351. * @type {string}
  12352. * @memberof SearchApiSearchPerson
  12353. */
  12354. readonly name: string
  12355. /**
  12356. *
  12357. * @type {boolean}
  12358. * @memberof SearchApiSearchPerson
  12359. */
  12360. readonly withHidden?: boolean
  12361. }
  12362. /**
  12363. * SearchApi - object-oriented interface
  12364. * @export
  12365. * @class SearchApi
  12366. * @extends {BaseAPI}
  12367. */
  12368. export class SearchApi extends BaseAPI {
  12369. /**
  12370. *
  12371. * @param {*} [options] Override http request option.
  12372. * @throws {RequiredError}
  12373. * @memberof SearchApi
  12374. */
  12375. public getExploreData(options?: AxiosRequestConfig) {
  12376. return SearchApiFp(this.configuration).getExploreData(options).then((request) => request(this.axios, this.basePath));
  12377. }
  12378. /**
  12379. *
  12380. * @param {SearchApiSearchRequest} requestParameters Request parameters.
  12381. * @param {*} [options] Override http request option.
  12382. * @throws {RequiredError}
  12383. * @memberof SearchApi
  12384. */
  12385. public search(requestParameters: SearchApiSearchRequest = {}, options?: AxiosRequestConfig) {
  12386. 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));
  12387. }
  12388. /**
  12389. *
  12390. * @param {SearchApiSearchPersonRequest} requestParameters Request parameters.
  12391. * @param {*} [options] Override http request option.
  12392. * @throws {RequiredError}
  12393. * @memberof SearchApi
  12394. */
  12395. public searchPerson(requestParameters: SearchApiSearchPersonRequest, options?: AxiosRequestConfig) {
  12396. return SearchApiFp(this.configuration).searchPerson(requestParameters.name, requestParameters.withHidden, options).then((request) => request(this.axios, this.basePath));
  12397. }
  12398. }
  12399. /**
  12400. * ServerInfoApi - axios parameter creator
  12401. * @export
  12402. */
  12403. export const ServerInfoApiAxiosParamCreator = function (configuration?: Configuration) {
  12404. return {
  12405. /**
  12406. *
  12407. * @param {*} [options] Override http request option.
  12408. * @throws {RequiredError}
  12409. */
  12410. getServerConfig: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  12411. const localVarPath = `/server-info/config`;
  12412. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  12413. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  12414. let baseOptions;
  12415. if (configuration) {
  12416. baseOptions = configuration.baseOptions;
  12417. }
  12418. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  12419. const localVarHeaderParameter = {} as any;
  12420. const localVarQueryParameter = {} as any;
  12421. setSearchParams(localVarUrlObj, localVarQueryParameter);
  12422. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  12423. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  12424. return {
  12425. url: toPathString(localVarUrlObj),
  12426. options: localVarRequestOptions,
  12427. };
  12428. },
  12429. /**
  12430. *
  12431. * @param {*} [options] Override http request option.
  12432. * @throws {RequiredError}
  12433. */
  12434. getServerFeatures: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  12435. const localVarPath = `/server-info/features`;
  12436. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  12437. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  12438. let baseOptions;
  12439. if (configuration) {
  12440. baseOptions = configuration.baseOptions;
  12441. }
  12442. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  12443. const localVarHeaderParameter = {} as any;
  12444. const localVarQueryParameter = {} as any;
  12445. setSearchParams(localVarUrlObj, localVarQueryParameter);
  12446. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  12447. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  12448. return {
  12449. url: toPathString(localVarUrlObj),
  12450. options: localVarRequestOptions,
  12451. };
  12452. },
  12453. /**
  12454. *
  12455. * @param {*} [options] Override http request option.
  12456. * @throws {RequiredError}
  12457. */
  12458. getServerInfo: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  12459. const localVarPath = `/server-info`;
  12460. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  12461. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  12462. let baseOptions;
  12463. if (configuration) {
  12464. baseOptions = configuration.baseOptions;
  12465. }
  12466. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  12467. const localVarHeaderParameter = {} as any;
  12468. const localVarQueryParameter = {} as any;
  12469. // authentication cookie required
  12470. // authentication api_key required
  12471. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  12472. // authentication bearer required
  12473. // http bearer authentication required
  12474. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  12475. setSearchParams(localVarUrlObj, localVarQueryParameter);
  12476. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  12477. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  12478. return {
  12479. url: toPathString(localVarUrlObj),
  12480. options: localVarRequestOptions,
  12481. };
  12482. },
  12483. /**
  12484. *
  12485. * @param {*} [options] Override http request option.
  12486. * @throws {RequiredError}
  12487. */
  12488. getServerVersion: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  12489. const localVarPath = `/server-info/version`;
  12490. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  12491. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  12492. let baseOptions;
  12493. if (configuration) {
  12494. baseOptions = configuration.baseOptions;
  12495. }
  12496. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  12497. const localVarHeaderParameter = {} as any;
  12498. const localVarQueryParameter = {} as any;
  12499. setSearchParams(localVarUrlObj, localVarQueryParameter);
  12500. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  12501. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  12502. return {
  12503. url: toPathString(localVarUrlObj),
  12504. options: localVarRequestOptions,
  12505. };
  12506. },
  12507. /**
  12508. *
  12509. * @param {*} [options] Override http request option.
  12510. * @throws {RequiredError}
  12511. */
  12512. getStats: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  12513. const localVarPath = `/server-info/stats`;
  12514. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  12515. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  12516. let baseOptions;
  12517. if (configuration) {
  12518. baseOptions = configuration.baseOptions;
  12519. }
  12520. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  12521. const localVarHeaderParameter = {} as any;
  12522. const localVarQueryParameter = {} as any;
  12523. // authentication cookie required
  12524. // authentication api_key required
  12525. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  12526. // authentication bearer required
  12527. // http bearer authentication required
  12528. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  12529. setSearchParams(localVarUrlObj, localVarQueryParameter);
  12530. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  12531. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  12532. return {
  12533. url: toPathString(localVarUrlObj),
  12534. options: localVarRequestOptions,
  12535. };
  12536. },
  12537. /**
  12538. *
  12539. * @param {*} [options] Override http request option.
  12540. * @throws {RequiredError}
  12541. */
  12542. getSupportedMediaTypes: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  12543. const localVarPath = `/server-info/media-types`;
  12544. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  12545. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  12546. let baseOptions;
  12547. if (configuration) {
  12548. baseOptions = configuration.baseOptions;
  12549. }
  12550. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  12551. const localVarHeaderParameter = {} as any;
  12552. const localVarQueryParameter = {} as any;
  12553. setSearchParams(localVarUrlObj, localVarQueryParameter);
  12554. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  12555. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  12556. return {
  12557. url: toPathString(localVarUrlObj),
  12558. options: localVarRequestOptions,
  12559. };
  12560. },
  12561. /**
  12562. *
  12563. * @param {*} [options] Override http request option.
  12564. * @throws {RequiredError}
  12565. */
  12566. getTheme: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  12567. const localVarPath = `/server-info/theme`;
  12568. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  12569. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  12570. let baseOptions;
  12571. if (configuration) {
  12572. baseOptions = configuration.baseOptions;
  12573. }
  12574. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  12575. const localVarHeaderParameter = {} as any;
  12576. const localVarQueryParameter = {} as any;
  12577. setSearchParams(localVarUrlObj, localVarQueryParameter);
  12578. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  12579. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  12580. return {
  12581. url: toPathString(localVarUrlObj),
  12582. options: localVarRequestOptions,
  12583. };
  12584. },
  12585. /**
  12586. *
  12587. * @param {*} [options] Override http request option.
  12588. * @throws {RequiredError}
  12589. */
  12590. pingServer: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  12591. const localVarPath = `/server-info/ping`;
  12592. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  12593. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  12594. let baseOptions;
  12595. if (configuration) {
  12596. baseOptions = configuration.baseOptions;
  12597. }
  12598. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  12599. const localVarHeaderParameter = {} as any;
  12600. const localVarQueryParameter = {} as any;
  12601. setSearchParams(localVarUrlObj, localVarQueryParameter);
  12602. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  12603. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  12604. return {
  12605. url: toPathString(localVarUrlObj),
  12606. options: localVarRequestOptions,
  12607. };
  12608. },
  12609. }
  12610. };
  12611. /**
  12612. * ServerInfoApi - functional programming interface
  12613. * @export
  12614. */
  12615. export const ServerInfoApiFp = function(configuration?: Configuration) {
  12616. const localVarAxiosParamCreator = ServerInfoApiAxiosParamCreator(configuration)
  12617. return {
  12618. /**
  12619. *
  12620. * @param {*} [options] Override http request option.
  12621. * @throws {RequiredError}
  12622. */
  12623. async getServerConfig(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServerConfigDto>> {
  12624. const localVarAxiosArgs = await localVarAxiosParamCreator.getServerConfig(options);
  12625. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12626. },
  12627. /**
  12628. *
  12629. * @param {*} [options] Override http request option.
  12630. * @throws {RequiredError}
  12631. */
  12632. async getServerFeatures(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServerFeaturesDto>> {
  12633. const localVarAxiosArgs = await localVarAxiosParamCreator.getServerFeatures(options);
  12634. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12635. },
  12636. /**
  12637. *
  12638. * @param {*} [options] Override http request option.
  12639. * @throws {RequiredError}
  12640. */
  12641. async getServerInfo(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServerInfoResponseDto>> {
  12642. const localVarAxiosArgs = await localVarAxiosParamCreator.getServerInfo(options);
  12643. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12644. },
  12645. /**
  12646. *
  12647. * @param {*} [options] Override http request option.
  12648. * @throws {RequiredError}
  12649. */
  12650. async getServerVersion(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServerVersionResponseDto>> {
  12651. const localVarAxiosArgs = await localVarAxiosParamCreator.getServerVersion(options);
  12652. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12653. },
  12654. /**
  12655. *
  12656. * @param {*} [options] Override http request option.
  12657. * @throws {RequiredError}
  12658. */
  12659. async getStats(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServerStatsResponseDto>> {
  12660. const localVarAxiosArgs = await localVarAxiosParamCreator.getStats(options);
  12661. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12662. },
  12663. /**
  12664. *
  12665. * @param {*} [options] Override http request option.
  12666. * @throws {RequiredError}
  12667. */
  12668. async getSupportedMediaTypes(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServerMediaTypesResponseDto>> {
  12669. const localVarAxiosArgs = await localVarAxiosParamCreator.getSupportedMediaTypes(options);
  12670. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12671. },
  12672. /**
  12673. *
  12674. * @param {*} [options] Override http request option.
  12675. * @throws {RequiredError}
  12676. */
  12677. async getTheme(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServerThemeDto>> {
  12678. const localVarAxiosArgs = await localVarAxiosParamCreator.getTheme(options);
  12679. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12680. },
  12681. /**
  12682. *
  12683. * @param {*} [options] Override http request option.
  12684. * @throws {RequiredError}
  12685. */
  12686. async pingServer(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServerPingResponse>> {
  12687. const localVarAxiosArgs = await localVarAxiosParamCreator.pingServer(options);
  12688. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12689. },
  12690. }
  12691. };
  12692. /**
  12693. * ServerInfoApi - factory interface
  12694. * @export
  12695. */
  12696. export const ServerInfoApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  12697. const localVarFp = ServerInfoApiFp(configuration)
  12698. return {
  12699. /**
  12700. *
  12701. * @param {*} [options] Override http request option.
  12702. * @throws {RequiredError}
  12703. */
  12704. getServerConfig(options?: AxiosRequestConfig): AxiosPromise<ServerConfigDto> {
  12705. return localVarFp.getServerConfig(options).then((request) => request(axios, basePath));
  12706. },
  12707. /**
  12708. *
  12709. * @param {*} [options] Override http request option.
  12710. * @throws {RequiredError}
  12711. */
  12712. getServerFeatures(options?: AxiosRequestConfig): AxiosPromise<ServerFeaturesDto> {
  12713. return localVarFp.getServerFeatures(options).then((request) => request(axios, basePath));
  12714. },
  12715. /**
  12716. *
  12717. * @param {*} [options] Override http request option.
  12718. * @throws {RequiredError}
  12719. */
  12720. getServerInfo(options?: AxiosRequestConfig): AxiosPromise<ServerInfoResponseDto> {
  12721. return localVarFp.getServerInfo(options).then((request) => request(axios, basePath));
  12722. },
  12723. /**
  12724. *
  12725. * @param {*} [options] Override http request option.
  12726. * @throws {RequiredError}
  12727. */
  12728. getServerVersion(options?: AxiosRequestConfig): AxiosPromise<ServerVersionResponseDto> {
  12729. return localVarFp.getServerVersion(options).then((request) => request(axios, basePath));
  12730. },
  12731. /**
  12732. *
  12733. * @param {*} [options] Override http request option.
  12734. * @throws {RequiredError}
  12735. */
  12736. getStats(options?: AxiosRequestConfig): AxiosPromise<ServerStatsResponseDto> {
  12737. return localVarFp.getStats(options).then((request) => request(axios, basePath));
  12738. },
  12739. /**
  12740. *
  12741. * @param {*} [options] Override http request option.
  12742. * @throws {RequiredError}
  12743. */
  12744. getSupportedMediaTypes(options?: AxiosRequestConfig): AxiosPromise<ServerMediaTypesResponseDto> {
  12745. return localVarFp.getSupportedMediaTypes(options).then((request) => request(axios, basePath));
  12746. },
  12747. /**
  12748. *
  12749. * @param {*} [options] Override http request option.
  12750. * @throws {RequiredError}
  12751. */
  12752. getTheme(options?: AxiosRequestConfig): AxiosPromise<ServerThemeDto> {
  12753. return localVarFp.getTheme(options).then((request) => request(axios, basePath));
  12754. },
  12755. /**
  12756. *
  12757. * @param {*} [options] Override http request option.
  12758. * @throws {RequiredError}
  12759. */
  12760. pingServer(options?: AxiosRequestConfig): AxiosPromise<ServerPingResponse> {
  12761. return localVarFp.pingServer(options).then((request) => request(axios, basePath));
  12762. },
  12763. };
  12764. };
  12765. /**
  12766. * ServerInfoApi - object-oriented interface
  12767. * @export
  12768. * @class ServerInfoApi
  12769. * @extends {BaseAPI}
  12770. */
  12771. export class ServerInfoApi extends BaseAPI {
  12772. /**
  12773. *
  12774. * @param {*} [options] Override http request option.
  12775. * @throws {RequiredError}
  12776. * @memberof ServerInfoApi
  12777. */
  12778. public getServerConfig(options?: AxiosRequestConfig) {
  12779. return ServerInfoApiFp(this.configuration).getServerConfig(options).then((request) => request(this.axios, this.basePath));
  12780. }
  12781. /**
  12782. *
  12783. * @param {*} [options] Override http request option.
  12784. * @throws {RequiredError}
  12785. * @memberof ServerInfoApi
  12786. */
  12787. public getServerFeatures(options?: AxiosRequestConfig) {
  12788. return ServerInfoApiFp(this.configuration).getServerFeatures(options).then((request) => request(this.axios, this.basePath));
  12789. }
  12790. /**
  12791. *
  12792. * @param {*} [options] Override http request option.
  12793. * @throws {RequiredError}
  12794. * @memberof ServerInfoApi
  12795. */
  12796. public getServerInfo(options?: AxiosRequestConfig) {
  12797. return ServerInfoApiFp(this.configuration).getServerInfo(options).then((request) => request(this.axios, this.basePath));
  12798. }
  12799. /**
  12800. *
  12801. * @param {*} [options] Override http request option.
  12802. * @throws {RequiredError}
  12803. * @memberof ServerInfoApi
  12804. */
  12805. public getServerVersion(options?: AxiosRequestConfig) {
  12806. return ServerInfoApiFp(this.configuration).getServerVersion(options).then((request) => request(this.axios, this.basePath));
  12807. }
  12808. /**
  12809. *
  12810. * @param {*} [options] Override http request option.
  12811. * @throws {RequiredError}
  12812. * @memberof ServerInfoApi
  12813. */
  12814. public getStats(options?: AxiosRequestConfig) {
  12815. return ServerInfoApiFp(this.configuration).getStats(options).then((request) => request(this.axios, this.basePath));
  12816. }
  12817. /**
  12818. *
  12819. * @param {*} [options] Override http request option.
  12820. * @throws {RequiredError}
  12821. * @memberof ServerInfoApi
  12822. */
  12823. public getSupportedMediaTypes(options?: AxiosRequestConfig) {
  12824. return ServerInfoApiFp(this.configuration).getSupportedMediaTypes(options).then((request) => request(this.axios, this.basePath));
  12825. }
  12826. /**
  12827. *
  12828. * @param {*} [options] Override http request option.
  12829. * @throws {RequiredError}
  12830. * @memberof ServerInfoApi
  12831. */
  12832. public getTheme(options?: AxiosRequestConfig) {
  12833. return ServerInfoApiFp(this.configuration).getTheme(options).then((request) => request(this.axios, this.basePath));
  12834. }
  12835. /**
  12836. *
  12837. * @param {*} [options] Override http request option.
  12838. * @throws {RequiredError}
  12839. * @memberof ServerInfoApi
  12840. */
  12841. public pingServer(options?: AxiosRequestConfig) {
  12842. return ServerInfoApiFp(this.configuration).pingServer(options).then((request) => request(this.axios, this.basePath));
  12843. }
  12844. }
  12845. /**
  12846. * SharedLinkApi - axios parameter creator
  12847. * @export
  12848. */
  12849. export const SharedLinkApiAxiosParamCreator = function (configuration?: Configuration) {
  12850. return {
  12851. /**
  12852. *
  12853. * @param {string} id
  12854. * @param {AssetIdsDto} assetIdsDto
  12855. * @param {string} [key]
  12856. * @param {*} [options] Override http request option.
  12857. * @throws {RequiredError}
  12858. */
  12859. addSharedLinkAssets: async (id: string, assetIdsDto: AssetIdsDto, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  12860. // verify required parameter 'id' is not null or undefined
  12861. assertParamExists('addSharedLinkAssets', 'id', id)
  12862. // verify required parameter 'assetIdsDto' is not null or undefined
  12863. assertParamExists('addSharedLinkAssets', 'assetIdsDto', assetIdsDto)
  12864. const localVarPath = `/shared-link/{id}/assets`
  12865. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  12866. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  12867. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  12868. let baseOptions;
  12869. if (configuration) {
  12870. baseOptions = configuration.baseOptions;
  12871. }
  12872. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  12873. const localVarHeaderParameter = {} as any;
  12874. const localVarQueryParameter = {} as any;
  12875. // authentication cookie required
  12876. // authentication api_key required
  12877. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  12878. // authentication bearer required
  12879. // http bearer authentication required
  12880. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  12881. if (key !== undefined) {
  12882. localVarQueryParameter['key'] = key;
  12883. }
  12884. localVarHeaderParameter['Content-Type'] = 'application/json';
  12885. setSearchParams(localVarUrlObj, localVarQueryParameter);
  12886. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  12887. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  12888. localVarRequestOptions.data = serializeDataIfNeeded(assetIdsDto, localVarRequestOptions, configuration)
  12889. return {
  12890. url: toPathString(localVarUrlObj),
  12891. options: localVarRequestOptions,
  12892. };
  12893. },
  12894. /**
  12895. *
  12896. * @param {SharedLinkCreateDto} sharedLinkCreateDto
  12897. * @param {*} [options] Override http request option.
  12898. * @throws {RequiredError}
  12899. */
  12900. createSharedLink: async (sharedLinkCreateDto: SharedLinkCreateDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  12901. // verify required parameter 'sharedLinkCreateDto' is not null or undefined
  12902. assertParamExists('createSharedLink', 'sharedLinkCreateDto', sharedLinkCreateDto)
  12903. const localVarPath = `/shared-link`;
  12904. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  12905. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  12906. let baseOptions;
  12907. if (configuration) {
  12908. baseOptions = configuration.baseOptions;
  12909. }
  12910. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  12911. const localVarHeaderParameter = {} as any;
  12912. const localVarQueryParameter = {} as any;
  12913. // authentication cookie required
  12914. // authentication api_key required
  12915. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  12916. // authentication bearer required
  12917. // http bearer authentication required
  12918. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  12919. localVarHeaderParameter['Content-Type'] = 'application/json';
  12920. setSearchParams(localVarUrlObj, localVarQueryParameter);
  12921. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  12922. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  12923. localVarRequestOptions.data = serializeDataIfNeeded(sharedLinkCreateDto, localVarRequestOptions, configuration)
  12924. return {
  12925. url: toPathString(localVarUrlObj),
  12926. options: localVarRequestOptions,
  12927. };
  12928. },
  12929. /**
  12930. *
  12931. * @param {*} [options] Override http request option.
  12932. * @throws {RequiredError}
  12933. */
  12934. getAllSharedLinks: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  12935. const localVarPath = `/shared-link`;
  12936. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  12937. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  12938. let baseOptions;
  12939. if (configuration) {
  12940. baseOptions = configuration.baseOptions;
  12941. }
  12942. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  12943. const localVarHeaderParameter = {} as any;
  12944. const localVarQueryParameter = {} as any;
  12945. // authentication cookie required
  12946. // authentication api_key required
  12947. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  12948. // authentication bearer required
  12949. // http bearer authentication required
  12950. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  12951. setSearchParams(localVarUrlObj, localVarQueryParameter);
  12952. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  12953. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  12954. return {
  12955. url: toPathString(localVarUrlObj),
  12956. options: localVarRequestOptions,
  12957. };
  12958. },
  12959. /**
  12960. *
  12961. * @param {string} [password]
  12962. * @param {string} [token]
  12963. * @param {string} [key]
  12964. * @param {*} [options] Override http request option.
  12965. * @throws {RequiredError}
  12966. */
  12967. getMySharedLink: async (password?: string, token?: string, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  12968. const localVarPath = `/shared-link/me`;
  12969. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  12970. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  12971. let baseOptions;
  12972. if (configuration) {
  12973. baseOptions = configuration.baseOptions;
  12974. }
  12975. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  12976. const localVarHeaderParameter = {} as any;
  12977. const localVarQueryParameter = {} as any;
  12978. // authentication cookie required
  12979. // authentication api_key required
  12980. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  12981. // authentication bearer required
  12982. // http bearer authentication required
  12983. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  12984. if (password !== undefined) {
  12985. localVarQueryParameter['password'] = password;
  12986. }
  12987. if (token !== undefined) {
  12988. localVarQueryParameter['token'] = token;
  12989. }
  12990. if (key !== undefined) {
  12991. localVarQueryParameter['key'] = key;
  12992. }
  12993. setSearchParams(localVarUrlObj, localVarQueryParameter);
  12994. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  12995. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  12996. return {
  12997. url: toPathString(localVarUrlObj),
  12998. options: localVarRequestOptions,
  12999. };
  13000. },
  13001. /**
  13002. *
  13003. * @param {string} id
  13004. * @param {*} [options] Override http request option.
  13005. * @throws {RequiredError}
  13006. */
  13007. getSharedLinkById: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13008. // verify required parameter 'id' is not null or undefined
  13009. assertParamExists('getSharedLinkById', 'id', id)
  13010. const localVarPath = `/shared-link/{id}`
  13011. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  13012. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13013. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13014. let baseOptions;
  13015. if (configuration) {
  13016. baseOptions = configuration.baseOptions;
  13017. }
  13018. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  13019. const localVarHeaderParameter = {} as any;
  13020. const localVarQueryParameter = {} as any;
  13021. // authentication cookie required
  13022. // authentication api_key required
  13023. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13024. // authentication bearer required
  13025. // http bearer authentication required
  13026. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13027. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13028. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13029. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13030. return {
  13031. url: toPathString(localVarUrlObj),
  13032. options: localVarRequestOptions,
  13033. };
  13034. },
  13035. /**
  13036. *
  13037. * @param {string} id
  13038. * @param {*} [options] Override http request option.
  13039. * @throws {RequiredError}
  13040. */
  13041. removeSharedLink: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13042. // verify required parameter 'id' is not null or undefined
  13043. assertParamExists('removeSharedLink', 'id', id)
  13044. const localVarPath = `/shared-link/{id}`
  13045. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  13046. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13047. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13048. let baseOptions;
  13049. if (configuration) {
  13050. baseOptions = configuration.baseOptions;
  13051. }
  13052. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  13053. const localVarHeaderParameter = {} as any;
  13054. const localVarQueryParameter = {} as any;
  13055. // authentication cookie required
  13056. // authentication api_key required
  13057. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13058. // authentication bearer required
  13059. // http bearer authentication required
  13060. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13061. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13062. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13063. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13064. return {
  13065. url: toPathString(localVarUrlObj),
  13066. options: localVarRequestOptions,
  13067. };
  13068. },
  13069. /**
  13070. *
  13071. * @param {string} id
  13072. * @param {AssetIdsDto} assetIdsDto
  13073. * @param {string} [key]
  13074. * @param {*} [options] Override http request option.
  13075. * @throws {RequiredError}
  13076. */
  13077. removeSharedLinkAssets: async (id: string, assetIdsDto: AssetIdsDto, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13078. // verify required parameter 'id' is not null or undefined
  13079. assertParamExists('removeSharedLinkAssets', 'id', id)
  13080. // verify required parameter 'assetIdsDto' is not null or undefined
  13081. assertParamExists('removeSharedLinkAssets', 'assetIdsDto', assetIdsDto)
  13082. const localVarPath = `/shared-link/{id}/assets`
  13083. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  13084. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13085. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13086. let baseOptions;
  13087. if (configuration) {
  13088. baseOptions = configuration.baseOptions;
  13089. }
  13090. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  13091. const localVarHeaderParameter = {} as any;
  13092. const localVarQueryParameter = {} as any;
  13093. // authentication cookie required
  13094. // authentication api_key required
  13095. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13096. // authentication bearer required
  13097. // http bearer authentication required
  13098. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13099. if (key !== undefined) {
  13100. localVarQueryParameter['key'] = key;
  13101. }
  13102. localVarHeaderParameter['Content-Type'] = 'application/json';
  13103. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13104. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13105. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13106. localVarRequestOptions.data = serializeDataIfNeeded(assetIdsDto, localVarRequestOptions, configuration)
  13107. return {
  13108. url: toPathString(localVarUrlObj),
  13109. options: localVarRequestOptions,
  13110. };
  13111. },
  13112. /**
  13113. *
  13114. * @param {string} id
  13115. * @param {SharedLinkEditDto} sharedLinkEditDto
  13116. * @param {*} [options] Override http request option.
  13117. * @throws {RequiredError}
  13118. */
  13119. updateSharedLink: async (id: string, sharedLinkEditDto: SharedLinkEditDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13120. // verify required parameter 'id' is not null or undefined
  13121. assertParamExists('updateSharedLink', 'id', id)
  13122. // verify required parameter 'sharedLinkEditDto' is not null or undefined
  13123. assertParamExists('updateSharedLink', 'sharedLinkEditDto', sharedLinkEditDto)
  13124. const localVarPath = `/shared-link/{id}`
  13125. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  13126. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13127. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13128. let baseOptions;
  13129. if (configuration) {
  13130. baseOptions = configuration.baseOptions;
  13131. }
  13132. const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
  13133. const localVarHeaderParameter = {} as any;
  13134. const localVarQueryParameter = {} as any;
  13135. // authentication cookie required
  13136. // authentication api_key required
  13137. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13138. // authentication bearer required
  13139. // http bearer authentication required
  13140. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13141. localVarHeaderParameter['Content-Type'] = 'application/json';
  13142. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13143. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13144. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13145. localVarRequestOptions.data = serializeDataIfNeeded(sharedLinkEditDto, localVarRequestOptions, configuration)
  13146. return {
  13147. url: toPathString(localVarUrlObj),
  13148. options: localVarRequestOptions,
  13149. };
  13150. },
  13151. }
  13152. };
  13153. /**
  13154. * SharedLinkApi - functional programming interface
  13155. * @export
  13156. */
  13157. export const SharedLinkApiFp = function(configuration?: Configuration) {
  13158. const localVarAxiosParamCreator = SharedLinkApiAxiosParamCreator(configuration)
  13159. return {
  13160. /**
  13161. *
  13162. * @param {string} id
  13163. * @param {AssetIdsDto} assetIdsDto
  13164. * @param {string} [key]
  13165. * @param {*} [options] Override http request option.
  13166. * @throws {RequiredError}
  13167. */
  13168. async addSharedLinkAssets(id: string, assetIdsDto: AssetIdsDto, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetIdsResponseDto>>> {
  13169. const localVarAxiosArgs = await localVarAxiosParamCreator.addSharedLinkAssets(id, assetIdsDto, key, options);
  13170. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13171. },
  13172. /**
  13173. *
  13174. * @param {SharedLinkCreateDto} sharedLinkCreateDto
  13175. * @param {*} [options] Override http request option.
  13176. * @throws {RequiredError}
  13177. */
  13178. async createSharedLink(sharedLinkCreateDto: SharedLinkCreateDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SharedLinkResponseDto>> {
  13179. const localVarAxiosArgs = await localVarAxiosParamCreator.createSharedLink(sharedLinkCreateDto, options);
  13180. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13181. },
  13182. /**
  13183. *
  13184. * @param {*} [options] Override http request option.
  13185. * @throws {RequiredError}
  13186. */
  13187. async getAllSharedLinks(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<SharedLinkResponseDto>>> {
  13188. const localVarAxiosArgs = await localVarAxiosParamCreator.getAllSharedLinks(options);
  13189. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13190. },
  13191. /**
  13192. *
  13193. * @param {string} [password]
  13194. * @param {string} [token]
  13195. * @param {string} [key]
  13196. * @param {*} [options] Override http request option.
  13197. * @throws {RequiredError}
  13198. */
  13199. async getMySharedLink(password?: string, token?: string, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SharedLinkResponseDto>> {
  13200. const localVarAxiosArgs = await localVarAxiosParamCreator.getMySharedLink(password, token, key, options);
  13201. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13202. },
  13203. /**
  13204. *
  13205. * @param {string} id
  13206. * @param {*} [options] Override http request option.
  13207. * @throws {RequiredError}
  13208. */
  13209. async getSharedLinkById(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SharedLinkResponseDto>> {
  13210. const localVarAxiosArgs = await localVarAxiosParamCreator.getSharedLinkById(id, options);
  13211. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13212. },
  13213. /**
  13214. *
  13215. * @param {string} id
  13216. * @param {*} [options] Override http request option.
  13217. * @throws {RequiredError}
  13218. */
  13219. async removeSharedLink(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  13220. const localVarAxiosArgs = await localVarAxiosParamCreator.removeSharedLink(id, options);
  13221. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13222. },
  13223. /**
  13224. *
  13225. * @param {string} id
  13226. * @param {AssetIdsDto} assetIdsDto
  13227. * @param {string} [key]
  13228. * @param {*} [options] Override http request option.
  13229. * @throws {RequiredError}
  13230. */
  13231. async removeSharedLinkAssets(id: string, assetIdsDto: AssetIdsDto, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetIdsResponseDto>>> {
  13232. const localVarAxiosArgs = await localVarAxiosParamCreator.removeSharedLinkAssets(id, assetIdsDto, key, options);
  13233. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13234. },
  13235. /**
  13236. *
  13237. * @param {string} id
  13238. * @param {SharedLinkEditDto} sharedLinkEditDto
  13239. * @param {*} [options] Override http request option.
  13240. * @throws {RequiredError}
  13241. */
  13242. async updateSharedLink(id: string, sharedLinkEditDto: SharedLinkEditDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SharedLinkResponseDto>> {
  13243. const localVarAxiosArgs = await localVarAxiosParamCreator.updateSharedLink(id, sharedLinkEditDto, options);
  13244. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13245. },
  13246. }
  13247. };
  13248. /**
  13249. * SharedLinkApi - factory interface
  13250. * @export
  13251. */
  13252. export const SharedLinkApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  13253. const localVarFp = SharedLinkApiFp(configuration)
  13254. return {
  13255. /**
  13256. *
  13257. * @param {SharedLinkApiAddSharedLinkAssetsRequest} requestParameters Request parameters.
  13258. * @param {*} [options] Override http request option.
  13259. * @throws {RequiredError}
  13260. */
  13261. addSharedLinkAssets(requestParameters: SharedLinkApiAddSharedLinkAssetsRequest, options?: AxiosRequestConfig): AxiosPromise<Array<AssetIdsResponseDto>> {
  13262. return localVarFp.addSharedLinkAssets(requestParameters.id, requestParameters.assetIdsDto, requestParameters.key, options).then((request) => request(axios, basePath));
  13263. },
  13264. /**
  13265. *
  13266. * @param {SharedLinkApiCreateSharedLinkRequest} requestParameters Request parameters.
  13267. * @param {*} [options] Override http request option.
  13268. * @throws {RequiredError}
  13269. */
  13270. createSharedLink(requestParameters: SharedLinkApiCreateSharedLinkRequest, options?: AxiosRequestConfig): AxiosPromise<SharedLinkResponseDto> {
  13271. return localVarFp.createSharedLink(requestParameters.sharedLinkCreateDto, options).then((request) => request(axios, basePath));
  13272. },
  13273. /**
  13274. *
  13275. * @param {*} [options] Override http request option.
  13276. * @throws {RequiredError}
  13277. */
  13278. getAllSharedLinks(options?: AxiosRequestConfig): AxiosPromise<Array<SharedLinkResponseDto>> {
  13279. return localVarFp.getAllSharedLinks(options).then((request) => request(axios, basePath));
  13280. },
  13281. /**
  13282. *
  13283. * @param {SharedLinkApiGetMySharedLinkRequest} requestParameters Request parameters.
  13284. * @param {*} [options] Override http request option.
  13285. * @throws {RequiredError}
  13286. */
  13287. getMySharedLink(requestParameters: SharedLinkApiGetMySharedLinkRequest = {}, options?: AxiosRequestConfig): AxiosPromise<SharedLinkResponseDto> {
  13288. return localVarFp.getMySharedLink(requestParameters.password, requestParameters.token, requestParameters.key, options).then((request) => request(axios, basePath));
  13289. },
  13290. /**
  13291. *
  13292. * @param {SharedLinkApiGetSharedLinkByIdRequest} requestParameters Request parameters.
  13293. * @param {*} [options] Override http request option.
  13294. * @throws {RequiredError}
  13295. */
  13296. getSharedLinkById(requestParameters: SharedLinkApiGetSharedLinkByIdRequest, options?: AxiosRequestConfig): AxiosPromise<SharedLinkResponseDto> {
  13297. return localVarFp.getSharedLinkById(requestParameters.id, options).then((request) => request(axios, basePath));
  13298. },
  13299. /**
  13300. *
  13301. * @param {SharedLinkApiRemoveSharedLinkRequest} requestParameters Request parameters.
  13302. * @param {*} [options] Override http request option.
  13303. * @throws {RequiredError}
  13304. */
  13305. removeSharedLink(requestParameters: SharedLinkApiRemoveSharedLinkRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  13306. return localVarFp.removeSharedLink(requestParameters.id, options).then((request) => request(axios, basePath));
  13307. },
  13308. /**
  13309. *
  13310. * @param {SharedLinkApiRemoveSharedLinkAssetsRequest} requestParameters Request parameters.
  13311. * @param {*} [options] Override http request option.
  13312. * @throws {RequiredError}
  13313. */
  13314. removeSharedLinkAssets(requestParameters: SharedLinkApiRemoveSharedLinkAssetsRequest, options?: AxiosRequestConfig): AxiosPromise<Array<AssetIdsResponseDto>> {
  13315. return localVarFp.removeSharedLinkAssets(requestParameters.id, requestParameters.assetIdsDto, requestParameters.key, options).then((request) => request(axios, basePath));
  13316. },
  13317. /**
  13318. *
  13319. * @param {SharedLinkApiUpdateSharedLinkRequest} requestParameters Request parameters.
  13320. * @param {*} [options] Override http request option.
  13321. * @throws {RequiredError}
  13322. */
  13323. updateSharedLink(requestParameters: SharedLinkApiUpdateSharedLinkRequest, options?: AxiosRequestConfig): AxiosPromise<SharedLinkResponseDto> {
  13324. return localVarFp.updateSharedLink(requestParameters.id, requestParameters.sharedLinkEditDto, options).then((request) => request(axios, basePath));
  13325. },
  13326. };
  13327. };
  13328. /**
  13329. * Request parameters for addSharedLinkAssets operation in SharedLinkApi.
  13330. * @export
  13331. * @interface SharedLinkApiAddSharedLinkAssetsRequest
  13332. */
  13333. export interface SharedLinkApiAddSharedLinkAssetsRequest {
  13334. /**
  13335. *
  13336. * @type {string}
  13337. * @memberof SharedLinkApiAddSharedLinkAssets
  13338. */
  13339. readonly id: string
  13340. /**
  13341. *
  13342. * @type {AssetIdsDto}
  13343. * @memberof SharedLinkApiAddSharedLinkAssets
  13344. */
  13345. readonly assetIdsDto: AssetIdsDto
  13346. /**
  13347. *
  13348. * @type {string}
  13349. * @memberof SharedLinkApiAddSharedLinkAssets
  13350. */
  13351. readonly key?: string
  13352. }
  13353. /**
  13354. * Request parameters for createSharedLink operation in SharedLinkApi.
  13355. * @export
  13356. * @interface SharedLinkApiCreateSharedLinkRequest
  13357. */
  13358. export interface SharedLinkApiCreateSharedLinkRequest {
  13359. /**
  13360. *
  13361. * @type {SharedLinkCreateDto}
  13362. * @memberof SharedLinkApiCreateSharedLink
  13363. */
  13364. readonly sharedLinkCreateDto: SharedLinkCreateDto
  13365. }
  13366. /**
  13367. * Request parameters for getMySharedLink operation in SharedLinkApi.
  13368. * @export
  13369. * @interface SharedLinkApiGetMySharedLinkRequest
  13370. */
  13371. export interface SharedLinkApiGetMySharedLinkRequest {
  13372. /**
  13373. *
  13374. * @type {string}
  13375. * @memberof SharedLinkApiGetMySharedLink
  13376. */
  13377. readonly password?: string
  13378. /**
  13379. *
  13380. * @type {string}
  13381. * @memberof SharedLinkApiGetMySharedLink
  13382. */
  13383. readonly token?: string
  13384. /**
  13385. *
  13386. * @type {string}
  13387. * @memberof SharedLinkApiGetMySharedLink
  13388. */
  13389. readonly key?: string
  13390. }
  13391. /**
  13392. * Request parameters for getSharedLinkById operation in SharedLinkApi.
  13393. * @export
  13394. * @interface SharedLinkApiGetSharedLinkByIdRequest
  13395. */
  13396. export interface SharedLinkApiGetSharedLinkByIdRequest {
  13397. /**
  13398. *
  13399. * @type {string}
  13400. * @memberof SharedLinkApiGetSharedLinkById
  13401. */
  13402. readonly id: string
  13403. }
  13404. /**
  13405. * Request parameters for removeSharedLink operation in SharedLinkApi.
  13406. * @export
  13407. * @interface SharedLinkApiRemoveSharedLinkRequest
  13408. */
  13409. export interface SharedLinkApiRemoveSharedLinkRequest {
  13410. /**
  13411. *
  13412. * @type {string}
  13413. * @memberof SharedLinkApiRemoveSharedLink
  13414. */
  13415. readonly id: string
  13416. }
  13417. /**
  13418. * Request parameters for removeSharedLinkAssets operation in SharedLinkApi.
  13419. * @export
  13420. * @interface SharedLinkApiRemoveSharedLinkAssetsRequest
  13421. */
  13422. export interface SharedLinkApiRemoveSharedLinkAssetsRequest {
  13423. /**
  13424. *
  13425. * @type {string}
  13426. * @memberof SharedLinkApiRemoveSharedLinkAssets
  13427. */
  13428. readonly id: string
  13429. /**
  13430. *
  13431. * @type {AssetIdsDto}
  13432. * @memberof SharedLinkApiRemoveSharedLinkAssets
  13433. */
  13434. readonly assetIdsDto: AssetIdsDto
  13435. /**
  13436. *
  13437. * @type {string}
  13438. * @memberof SharedLinkApiRemoveSharedLinkAssets
  13439. */
  13440. readonly key?: string
  13441. }
  13442. /**
  13443. * Request parameters for updateSharedLink operation in SharedLinkApi.
  13444. * @export
  13445. * @interface SharedLinkApiUpdateSharedLinkRequest
  13446. */
  13447. export interface SharedLinkApiUpdateSharedLinkRequest {
  13448. /**
  13449. *
  13450. * @type {string}
  13451. * @memberof SharedLinkApiUpdateSharedLink
  13452. */
  13453. readonly id: string
  13454. /**
  13455. *
  13456. * @type {SharedLinkEditDto}
  13457. * @memberof SharedLinkApiUpdateSharedLink
  13458. */
  13459. readonly sharedLinkEditDto: SharedLinkEditDto
  13460. }
  13461. /**
  13462. * SharedLinkApi - object-oriented interface
  13463. * @export
  13464. * @class SharedLinkApi
  13465. * @extends {BaseAPI}
  13466. */
  13467. export class SharedLinkApi extends BaseAPI {
  13468. /**
  13469. *
  13470. * @param {SharedLinkApiAddSharedLinkAssetsRequest} requestParameters Request parameters.
  13471. * @param {*} [options] Override http request option.
  13472. * @throws {RequiredError}
  13473. * @memberof SharedLinkApi
  13474. */
  13475. public addSharedLinkAssets(requestParameters: SharedLinkApiAddSharedLinkAssetsRequest, options?: AxiosRequestConfig) {
  13476. return SharedLinkApiFp(this.configuration).addSharedLinkAssets(requestParameters.id, requestParameters.assetIdsDto, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  13477. }
  13478. /**
  13479. *
  13480. * @param {SharedLinkApiCreateSharedLinkRequest} requestParameters Request parameters.
  13481. * @param {*} [options] Override http request option.
  13482. * @throws {RequiredError}
  13483. * @memberof SharedLinkApi
  13484. */
  13485. public createSharedLink(requestParameters: SharedLinkApiCreateSharedLinkRequest, options?: AxiosRequestConfig) {
  13486. return SharedLinkApiFp(this.configuration).createSharedLink(requestParameters.sharedLinkCreateDto, options).then((request) => request(this.axios, this.basePath));
  13487. }
  13488. /**
  13489. *
  13490. * @param {*} [options] Override http request option.
  13491. * @throws {RequiredError}
  13492. * @memberof SharedLinkApi
  13493. */
  13494. public getAllSharedLinks(options?: AxiosRequestConfig) {
  13495. return SharedLinkApiFp(this.configuration).getAllSharedLinks(options).then((request) => request(this.axios, this.basePath));
  13496. }
  13497. /**
  13498. *
  13499. * @param {SharedLinkApiGetMySharedLinkRequest} requestParameters Request parameters.
  13500. * @param {*} [options] Override http request option.
  13501. * @throws {RequiredError}
  13502. * @memberof SharedLinkApi
  13503. */
  13504. public getMySharedLink(requestParameters: SharedLinkApiGetMySharedLinkRequest = {}, options?: AxiosRequestConfig) {
  13505. return SharedLinkApiFp(this.configuration).getMySharedLink(requestParameters.password, requestParameters.token, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  13506. }
  13507. /**
  13508. *
  13509. * @param {SharedLinkApiGetSharedLinkByIdRequest} requestParameters Request parameters.
  13510. * @param {*} [options] Override http request option.
  13511. * @throws {RequiredError}
  13512. * @memberof SharedLinkApi
  13513. */
  13514. public getSharedLinkById(requestParameters: SharedLinkApiGetSharedLinkByIdRequest, options?: AxiosRequestConfig) {
  13515. return SharedLinkApiFp(this.configuration).getSharedLinkById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  13516. }
  13517. /**
  13518. *
  13519. * @param {SharedLinkApiRemoveSharedLinkRequest} requestParameters Request parameters.
  13520. * @param {*} [options] Override http request option.
  13521. * @throws {RequiredError}
  13522. * @memberof SharedLinkApi
  13523. */
  13524. public removeSharedLink(requestParameters: SharedLinkApiRemoveSharedLinkRequest, options?: AxiosRequestConfig) {
  13525. return SharedLinkApiFp(this.configuration).removeSharedLink(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  13526. }
  13527. /**
  13528. *
  13529. * @param {SharedLinkApiRemoveSharedLinkAssetsRequest} requestParameters Request parameters.
  13530. * @param {*} [options] Override http request option.
  13531. * @throws {RequiredError}
  13532. * @memberof SharedLinkApi
  13533. */
  13534. public removeSharedLinkAssets(requestParameters: SharedLinkApiRemoveSharedLinkAssetsRequest, options?: AxiosRequestConfig) {
  13535. return SharedLinkApiFp(this.configuration).removeSharedLinkAssets(requestParameters.id, requestParameters.assetIdsDto, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  13536. }
  13537. /**
  13538. *
  13539. * @param {SharedLinkApiUpdateSharedLinkRequest} requestParameters Request parameters.
  13540. * @param {*} [options] Override http request option.
  13541. * @throws {RequiredError}
  13542. * @memberof SharedLinkApi
  13543. */
  13544. public updateSharedLink(requestParameters: SharedLinkApiUpdateSharedLinkRequest, options?: AxiosRequestConfig) {
  13545. return SharedLinkApiFp(this.configuration).updateSharedLink(requestParameters.id, requestParameters.sharedLinkEditDto, options).then((request) => request(this.axios, this.basePath));
  13546. }
  13547. }
  13548. /**
  13549. * SystemConfigApi - axios parameter creator
  13550. * @export
  13551. */
  13552. export const SystemConfigApiAxiosParamCreator = function (configuration?: Configuration) {
  13553. return {
  13554. /**
  13555. *
  13556. * @param {*} [options] Override http request option.
  13557. * @throws {RequiredError}
  13558. */
  13559. getConfig: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13560. const localVarPath = `/system-config`;
  13561. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13562. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13563. let baseOptions;
  13564. if (configuration) {
  13565. baseOptions = configuration.baseOptions;
  13566. }
  13567. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  13568. const localVarHeaderParameter = {} as any;
  13569. const localVarQueryParameter = {} as any;
  13570. // authentication cookie required
  13571. // authentication api_key required
  13572. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13573. // authentication bearer required
  13574. // http bearer authentication required
  13575. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13576. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13577. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13578. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13579. return {
  13580. url: toPathString(localVarUrlObj),
  13581. options: localVarRequestOptions,
  13582. };
  13583. },
  13584. /**
  13585. *
  13586. * @param {*} [options] Override http request option.
  13587. * @throws {RequiredError}
  13588. */
  13589. getDefaults: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13590. const localVarPath = `/system-config/defaults`;
  13591. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13592. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13593. let baseOptions;
  13594. if (configuration) {
  13595. baseOptions = configuration.baseOptions;
  13596. }
  13597. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  13598. const localVarHeaderParameter = {} as any;
  13599. const localVarQueryParameter = {} as any;
  13600. // authentication cookie required
  13601. // authentication api_key required
  13602. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13603. // authentication bearer required
  13604. // http bearer authentication required
  13605. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13606. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13607. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13608. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13609. return {
  13610. url: toPathString(localVarUrlObj),
  13611. options: localVarRequestOptions,
  13612. };
  13613. },
  13614. /**
  13615. *
  13616. * @param {*} [options] Override http request option.
  13617. * @throws {RequiredError}
  13618. */
  13619. getStorageTemplateOptions: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13620. const localVarPath = `/system-config/storage-template-options`;
  13621. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13622. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13623. let baseOptions;
  13624. if (configuration) {
  13625. baseOptions = configuration.baseOptions;
  13626. }
  13627. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  13628. const localVarHeaderParameter = {} as any;
  13629. const localVarQueryParameter = {} as any;
  13630. // authentication cookie required
  13631. // authentication api_key required
  13632. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13633. // authentication bearer required
  13634. // http bearer authentication required
  13635. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13636. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13637. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13638. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13639. return {
  13640. url: toPathString(localVarUrlObj),
  13641. options: localVarRequestOptions,
  13642. };
  13643. },
  13644. /**
  13645. *
  13646. * @param {SystemConfigDto} systemConfigDto
  13647. * @param {*} [options] Override http request option.
  13648. * @throws {RequiredError}
  13649. */
  13650. updateConfig: async (systemConfigDto: SystemConfigDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13651. // verify required parameter 'systemConfigDto' is not null or undefined
  13652. assertParamExists('updateConfig', 'systemConfigDto', systemConfigDto)
  13653. const localVarPath = `/system-config`;
  13654. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13655. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13656. let baseOptions;
  13657. if (configuration) {
  13658. baseOptions = configuration.baseOptions;
  13659. }
  13660. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  13661. const localVarHeaderParameter = {} as any;
  13662. const localVarQueryParameter = {} as any;
  13663. // authentication cookie required
  13664. // authentication api_key required
  13665. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13666. // authentication bearer required
  13667. // http bearer authentication required
  13668. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13669. localVarHeaderParameter['Content-Type'] = 'application/json';
  13670. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13671. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13672. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13673. localVarRequestOptions.data = serializeDataIfNeeded(systemConfigDto, localVarRequestOptions, configuration)
  13674. return {
  13675. url: toPathString(localVarUrlObj),
  13676. options: localVarRequestOptions,
  13677. };
  13678. },
  13679. }
  13680. };
  13681. /**
  13682. * SystemConfigApi - functional programming interface
  13683. * @export
  13684. */
  13685. export const SystemConfigApiFp = function(configuration?: Configuration) {
  13686. const localVarAxiosParamCreator = SystemConfigApiAxiosParamCreator(configuration)
  13687. return {
  13688. /**
  13689. *
  13690. * @param {*} [options] Override http request option.
  13691. * @throws {RequiredError}
  13692. */
  13693. async getConfig(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SystemConfigDto>> {
  13694. const localVarAxiosArgs = await localVarAxiosParamCreator.getConfig(options);
  13695. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13696. },
  13697. /**
  13698. *
  13699. * @param {*} [options] Override http request option.
  13700. * @throws {RequiredError}
  13701. */
  13702. async getDefaults(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SystemConfigDto>> {
  13703. const localVarAxiosArgs = await localVarAxiosParamCreator.getDefaults(options);
  13704. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13705. },
  13706. /**
  13707. *
  13708. * @param {*} [options] Override http request option.
  13709. * @throws {RequiredError}
  13710. */
  13711. async getStorageTemplateOptions(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SystemConfigTemplateStorageOptionDto>> {
  13712. const localVarAxiosArgs = await localVarAxiosParamCreator.getStorageTemplateOptions(options);
  13713. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13714. },
  13715. /**
  13716. *
  13717. * @param {SystemConfigDto} systemConfigDto
  13718. * @param {*} [options] Override http request option.
  13719. * @throws {RequiredError}
  13720. */
  13721. async updateConfig(systemConfigDto: SystemConfigDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SystemConfigDto>> {
  13722. const localVarAxiosArgs = await localVarAxiosParamCreator.updateConfig(systemConfigDto, options);
  13723. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13724. },
  13725. }
  13726. };
  13727. /**
  13728. * SystemConfigApi - factory interface
  13729. * @export
  13730. */
  13731. export const SystemConfigApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  13732. const localVarFp = SystemConfigApiFp(configuration)
  13733. return {
  13734. /**
  13735. *
  13736. * @param {*} [options] Override http request option.
  13737. * @throws {RequiredError}
  13738. */
  13739. getConfig(options?: AxiosRequestConfig): AxiosPromise<SystemConfigDto> {
  13740. return localVarFp.getConfig(options).then((request) => request(axios, basePath));
  13741. },
  13742. /**
  13743. *
  13744. * @param {*} [options] Override http request option.
  13745. * @throws {RequiredError}
  13746. */
  13747. getDefaults(options?: AxiosRequestConfig): AxiosPromise<SystemConfigDto> {
  13748. return localVarFp.getDefaults(options).then((request) => request(axios, basePath));
  13749. },
  13750. /**
  13751. *
  13752. * @param {*} [options] Override http request option.
  13753. * @throws {RequiredError}
  13754. */
  13755. getStorageTemplateOptions(options?: AxiosRequestConfig): AxiosPromise<SystemConfigTemplateStorageOptionDto> {
  13756. return localVarFp.getStorageTemplateOptions(options).then((request) => request(axios, basePath));
  13757. },
  13758. /**
  13759. *
  13760. * @param {SystemConfigApiUpdateConfigRequest} requestParameters Request parameters.
  13761. * @param {*} [options] Override http request option.
  13762. * @throws {RequiredError}
  13763. */
  13764. updateConfig(requestParameters: SystemConfigApiUpdateConfigRequest, options?: AxiosRequestConfig): AxiosPromise<SystemConfigDto> {
  13765. return localVarFp.updateConfig(requestParameters.systemConfigDto, options).then((request) => request(axios, basePath));
  13766. },
  13767. };
  13768. };
  13769. /**
  13770. * Request parameters for updateConfig operation in SystemConfigApi.
  13771. * @export
  13772. * @interface SystemConfigApiUpdateConfigRequest
  13773. */
  13774. export interface SystemConfigApiUpdateConfigRequest {
  13775. /**
  13776. *
  13777. * @type {SystemConfigDto}
  13778. * @memberof SystemConfigApiUpdateConfig
  13779. */
  13780. readonly systemConfigDto: SystemConfigDto
  13781. }
  13782. /**
  13783. * SystemConfigApi - object-oriented interface
  13784. * @export
  13785. * @class SystemConfigApi
  13786. * @extends {BaseAPI}
  13787. */
  13788. export class SystemConfigApi extends BaseAPI {
  13789. /**
  13790. *
  13791. * @param {*} [options] Override http request option.
  13792. * @throws {RequiredError}
  13793. * @memberof SystemConfigApi
  13794. */
  13795. public getConfig(options?: AxiosRequestConfig) {
  13796. return SystemConfigApiFp(this.configuration).getConfig(options).then((request) => request(this.axios, this.basePath));
  13797. }
  13798. /**
  13799. *
  13800. * @param {*} [options] Override http request option.
  13801. * @throws {RequiredError}
  13802. * @memberof SystemConfigApi
  13803. */
  13804. public getDefaults(options?: AxiosRequestConfig) {
  13805. return SystemConfigApiFp(this.configuration).getDefaults(options).then((request) => request(this.axios, this.basePath));
  13806. }
  13807. /**
  13808. *
  13809. * @param {*} [options] Override http request option.
  13810. * @throws {RequiredError}
  13811. * @memberof SystemConfigApi
  13812. */
  13813. public getStorageTemplateOptions(options?: AxiosRequestConfig) {
  13814. return SystemConfigApiFp(this.configuration).getStorageTemplateOptions(options).then((request) => request(this.axios, this.basePath));
  13815. }
  13816. /**
  13817. *
  13818. * @param {SystemConfigApiUpdateConfigRequest} requestParameters Request parameters.
  13819. * @param {*} [options] Override http request option.
  13820. * @throws {RequiredError}
  13821. * @memberof SystemConfigApi
  13822. */
  13823. public updateConfig(requestParameters: SystemConfigApiUpdateConfigRequest, options?: AxiosRequestConfig) {
  13824. return SystemConfigApiFp(this.configuration).updateConfig(requestParameters.systemConfigDto, options).then((request) => request(this.axios, this.basePath));
  13825. }
  13826. }
  13827. /**
  13828. * TagApi - axios parameter creator
  13829. * @export
  13830. */
  13831. export const TagApiAxiosParamCreator = function (configuration?: Configuration) {
  13832. return {
  13833. /**
  13834. *
  13835. * @param {CreateTagDto} createTagDto
  13836. * @param {*} [options] Override http request option.
  13837. * @throws {RequiredError}
  13838. */
  13839. createTag: async (createTagDto: CreateTagDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13840. // verify required parameter 'createTagDto' is not null or undefined
  13841. assertParamExists('createTag', 'createTagDto', createTagDto)
  13842. const localVarPath = `/tag`;
  13843. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13844. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13845. let baseOptions;
  13846. if (configuration) {
  13847. baseOptions = configuration.baseOptions;
  13848. }
  13849. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  13850. const localVarHeaderParameter = {} as any;
  13851. const localVarQueryParameter = {} as any;
  13852. // authentication cookie required
  13853. // authentication api_key required
  13854. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13855. // authentication bearer required
  13856. // http bearer authentication required
  13857. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13858. localVarHeaderParameter['Content-Type'] = 'application/json';
  13859. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13860. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13861. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13862. localVarRequestOptions.data = serializeDataIfNeeded(createTagDto, localVarRequestOptions, configuration)
  13863. return {
  13864. url: toPathString(localVarUrlObj),
  13865. options: localVarRequestOptions,
  13866. };
  13867. },
  13868. /**
  13869. *
  13870. * @param {string} id
  13871. * @param {*} [options] Override http request option.
  13872. * @throws {RequiredError}
  13873. */
  13874. deleteTag: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13875. // verify required parameter 'id' is not null or undefined
  13876. assertParamExists('deleteTag', 'id', id)
  13877. const localVarPath = `/tag/{id}`
  13878. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  13879. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13880. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13881. let baseOptions;
  13882. if (configuration) {
  13883. baseOptions = configuration.baseOptions;
  13884. }
  13885. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  13886. const localVarHeaderParameter = {} as any;
  13887. const localVarQueryParameter = {} as any;
  13888. // authentication cookie required
  13889. // authentication api_key required
  13890. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13891. // authentication bearer required
  13892. // http bearer authentication required
  13893. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13894. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13895. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13896. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13897. return {
  13898. url: toPathString(localVarUrlObj),
  13899. options: localVarRequestOptions,
  13900. };
  13901. },
  13902. /**
  13903. *
  13904. * @param {*} [options] Override http request option.
  13905. * @throws {RequiredError}
  13906. */
  13907. getAllTags: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13908. const localVarPath = `/tag`;
  13909. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13910. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13911. let baseOptions;
  13912. if (configuration) {
  13913. baseOptions = configuration.baseOptions;
  13914. }
  13915. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  13916. const localVarHeaderParameter = {} as any;
  13917. const localVarQueryParameter = {} as any;
  13918. // authentication cookie required
  13919. // authentication api_key required
  13920. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13921. // authentication bearer required
  13922. // http bearer authentication required
  13923. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13924. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13925. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13926. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13927. return {
  13928. url: toPathString(localVarUrlObj),
  13929. options: localVarRequestOptions,
  13930. };
  13931. },
  13932. /**
  13933. *
  13934. * @param {string} id
  13935. * @param {*} [options] Override http request option.
  13936. * @throws {RequiredError}
  13937. */
  13938. getTagAssets: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13939. // verify required parameter 'id' is not null or undefined
  13940. assertParamExists('getTagAssets', 'id', id)
  13941. const localVarPath = `/tag/{id}/assets`
  13942. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  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: 'GET', ...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. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13959. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13960. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13961. return {
  13962. url: toPathString(localVarUrlObj),
  13963. options: localVarRequestOptions,
  13964. };
  13965. },
  13966. /**
  13967. *
  13968. * @param {string} id
  13969. * @param {*} [options] Override http request option.
  13970. * @throws {RequiredError}
  13971. */
  13972. getTagById: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13973. // verify required parameter 'id' is not null or undefined
  13974. assertParamExists('getTagById', 'id', id)
  13975. const localVarPath = `/tag/{id}`
  13976. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  13977. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13978. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13979. let baseOptions;
  13980. if (configuration) {
  13981. baseOptions = configuration.baseOptions;
  13982. }
  13983. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  13984. const localVarHeaderParameter = {} as any;
  13985. const localVarQueryParameter = {} as any;
  13986. // authentication cookie required
  13987. // authentication api_key required
  13988. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13989. // authentication bearer required
  13990. // http bearer authentication required
  13991. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13992. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13993. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13994. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13995. return {
  13996. url: toPathString(localVarUrlObj),
  13997. options: localVarRequestOptions,
  13998. };
  13999. },
  14000. /**
  14001. *
  14002. * @param {string} id
  14003. * @param {AssetIdsDto} assetIdsDto
  14004. * @param {*} [options] Override http request option.
  14005. * @throws {RequiredError}
  14006. */
  14007. tagAssets: async (id: string, assetIdsDto: AssetIdsDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  14008. // verify required parameter 'id' is not null or undefined
  14009. assertParamExists('tagAssets', 'id', id)
  14010. // verify required parameter 'assetIdsDto' is not null or undefined
  14011. assertParamExists('tagAssets', 'assetIdsDto', assetIdsDto)
  14012. const localVarPath = `/tag/{id}/assets`
  14013. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  14014. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  14015. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  14016. let baseOptions;
  14017. if (configuration) {
  14018. baseOptions = configuration.baseOptions;
  14019. }
  14020. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  14021. const localVarHeaderParameter = {} as any;
  14022. const localVarQueryParameter = {} as any;
  14023. // authentication cookie required
  14024. // authentication api_key required
  14025. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  14026. // authentication bearer required
  14027. // http bearer authentication required
  14028. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  14029. localVarHeaderParameter['Content-Type'] = 'application/json';
  14030. setSearchParams(localVarUrlObj, localVarQueryParameter);
  14031. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  14032. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  14033. localVarRequestOptions.data = serializeDataIfNeeded(assetIdsDto, localVarRequestOptions, configuration)
  14034. return {
  14035. url: toPathString(localVarUrlObj),
  14036. options: localVarRequestOptions,
  14037. };
  14038. },
  14039. /**
  14040. *
  14041. * @param {string} id
  14042. * @param {AssetIdsDto} assetIdsDto
  14043. * @param {*} [options] Override http request option.
  14044. * @throws {RequiredError}
  14045. */
  14046. untagAssets: async (id: string, assetIdsDto: AssetIdsDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  14047. // verify required parameter 'id' is not null or undefined
  14048. assertParamExists('untagAssets', 'id', id)
  14049. // verify required parameter 'assetIdsDto' is not null or undefined
  14050. assertParamExists('untagAssets', 'assetIdsDto', assetIdsDto)
  14051. const localVarPath = `/tag/{id}/assets`
  14052. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  14053. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  14054. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  14055. let baseOptions;
  14056. if (configuration) {
  14057. baseOptions = configuration.baseOptions;
  14058. }
  14059. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  14060. const localVarHeaderParameter = {} as any;
  14061. const localVarQueryParameter = {} as any;
  14062. // authentication cookie required
  14063. // authentication api_key required
  14064. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  14065. // authentication bearer required
  14066. // http bearer authentication required
  14067. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  14068. localVarHeaderParameter['Content-Type'] = 'application/json';
  14069. setSearchParams(localVarUrlObj, localVarQueryParameter);
  14070. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  14071. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  14072. localVarRequestOptions.data = serializeDataIfNeeded(assetIdsDto, localVarRequestOptions, configuration)
  14073. return {
  14074. url: toPathString(localVarUrlObj),
  14075. options: localVarRequestOptions,
  14076. };
  14077. },
  14078. /**
  14079. *
  14080. * @param {string} id
  14081. * @param {UpdateTagDto} updateTagDto
  14082. * @param {*} [options] Override http request option.
  14083. * @throws {RequiredError}
  14084. */
  14085. updateTag: async (id: string, updateTagDto: UpdateTagDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  14086. // verify required parameter 'id' is not null or undefined
  14087. assertParamExists('updateTag', 'id', id)
  14088. // verify required parameter 'updateTagDto' is not null or undefined
  14089. assertParamExists('updateTag', 'updateTagDto', updateTagDto)
  14090. const localVarPath = `/tag/{id}`
  14091. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  14092. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  14093. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  14094. let baseOptions;
  14095. if (configuration) {
  14096. baseOptions = configuration.baseOptions;
  14097. }
  14098. const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
  14099. const localVarHeaderParameter = {} as any;
  14100. const localVarQueryParameter = {} as any;
  14101. // authentication cookie required
  14102. // authentication api_key required
  14103. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  14104. // authentication bearer required
  14105. // http bearer authentication required
  14106. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  14107. localVarHeaderParameter['Content-Type'] = 'application/json';
  14108. setSearchParams(localVarUrlObj, localVarQueryParameter);
  14109. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  14110. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  14111. localVarRequestOptions.data = serializeDataIfNeeded(updateTagDto, localVarRequestOptions, configuration)
  14112. return {
  14113. url: toPathString(localVarUrlObj),
  14114. options: localVarRequestOptions,
  14115. };
  14116. },
  14117. }
  14118. };
  14119. /**
  14120. * TagApi - functional programming interface
  14121. * @export
  14122. */
  14123. export const TagApiFp = function(configuration?: Configuration) {
  14124. const localVarAxiosParamCreator = TagApiAxiosParamCreator(configuration)
  14125. return {
  14126. /**
  14127. *
  14128. * @param {CreateTagDto} createTagDto
  14129. * @param {*} [options] Override http request option.
  14130. * @throws {RequiredError}
  14131. */
  14132. async createTag(createTagDto: CreateTagDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TagResponseDto>> {
  14133. const localVarAxiosArgs = await localVarAxiosParamCreator.createTag(createTagDto, options);
  14134. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  14135. },
  14136. /**
  14137. *
  14138. * @param {string} id
  14139. * @param {*} [options] Override http request option.
  14140. * @throws {RequiredError}
  14141. */
  14142. async deleteTag(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  14143. const localVarAxiosArgs = await localVarAxiosParamCreator.deleteTag(id, options);
  14144. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  14145. },
  14146. /**
  14147. *
  14148. * @param {*} [options] Override http request option.
  14149. * @throws {RequiredError}
  14150. */
  14151. async getAllTags(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<TagResponseDto>>> {
  14152. const localVarAxiosArgs = await localVarAxiosParamCreator.getAllTags(options);
  14153. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  14154. },
  14155. /**
  14156. *
  14157. * @param {string} id
  14158. * @param {*} [options] Override http request option.
  14159. * @throws {RequiredError}
  14160. */
  14161. async getTagAssets(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetResponseDto>>> {
  14162. const localVarAxiosArgs = await localVarAxiosParamCreator.getTagAssets(id, options);
  14163. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  14164. },
  14165. /**
  14166. *
  14167. * @param {string} id
  14168. * @param {*} [options] Override http request option.
  14169. * @throws {RequiredError}
  14170. */
  14171. async getTagById(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TagResponseDto>> {
  14172. const localVarAxiosArgs = await localVarAxiosParamCreator.getTagById(id, options);
  14173. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  14174. },
  14175. /**
  14176. *
  14177. * @param {string} id
  14178. * @param {AssetIdsDto} assetIdsDto
  14179. * @param {*} [options] Override http request option.
  14180. * @throws {RequiredError}
  14181. */
  14182. async tagAssets(id: string, assetIdsDto: AssetIdsDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetIdsResponseDto>>> {
  14183. const localVarAxiosArgs = await localVarAxiosParamCreator.tagAssets(id, assetIdsDto, options);
  14184. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  14185. },
  14186. /**
  14187. *
  14188. * @param {string} id
  14189. * @param {AssetIdsDto} assetIdsDto
  14190. * @param {*} [options] Override http request option.
  14191. * @throws {RequiredError}
  14192. */
  14193. async untagAssets(id: string, assetIdsDto: AssetIdsDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetIdsResponseDto>>> {
  14194. const localVarAxiosArgs = await localVarAxiosParamCreator.untagAssets(id, assetIdsDto, options);
  14195. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  14196. },
  14197. /**
  14198. *
  14199. * @param {string} id
  14200. * @param {UpdateTagDto} updateTagDto
  14201. * @param {*} [options] Override http request option.
  14202. * @throws {RequiredError}
  14203. */
  14204. async updateTag(id: string, updateTagDto: UpdateTagDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TagResponseDto>> {
  14205. const localVarAxiosArgs = await localVarAxiosParamCreator.updateTag(id, updateTagDto, options);
  14206. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  14207. },
  14208. }
  14209. };
  14210. /**
  14211. * TagApi - factory interface
  14212. * @export
  14213. */
  14214. export const TagApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  14215. const localVarFp = TagApiFp(configuration)
  14216. return {
  14217. /**
  14218. *
  14219. * @param {TagApiCreateTagRequest} requestParameters Request parameters.
  14220. * @param {*} [options] Override http request option.
  14221. * @throws {RequiredError}
  14222. */
  14223. createTag(requestParameters: TagApiCreateTagRequest, options?: AxiosRequestConfig): AxiosPromise<TagResponseDto> {
  14224. return localVarFp.createTag(requestParameters.createTagDto, options).then((request) => request(axios, basePath));
  14225. },
  14226. /**
  14227. *
  14228. * @param {TagApiDeleteTagRequest} requestParameters Request parameters.
  14229. * @param {*} [options] Override http request option.
  14230. * @throws {RequiredError}
  14231. */
  14232. deleteTag(requestParameters: TagApiDeleteTagRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  14233. return localVarFp.deleteTag(requestParameters.id, options).then((request) => request(axios, basePath));
  14234. },
  14235. /**
  14236. *
  14237. * @param {*} [options] Override http request option.
  14238. * @throws {RequiredError}
  14239. */
  14240. getAllTags(options?: AxiosRequestConfig): AxiosPromise<Array<TagResponseDto>> {
  14241. return localVarFp.getAllTags(options).then((request) => request(axios, basePath));
  14242. },
  14243. /**
  14244. *
  14245. * @param {TagApiGetTagAssetsRequest} requestParameters Request parameters.
  14246. * @param {*} [options] Override http request option.
  14247. * @throws {RequiredError}
  14248. */
  14249. getTagAssets(requestParameters: TagApiGetTagAssetsRequest, options?: AxiosRequestConfig): AxiosPromise<Array<AssetResponseDto>> {
  14250. return localVarFp.getTagAssets(requestParameters.id, options).then((request) => request(axios, basePath));
  14251. },
  14252. /**
  14253. *
  14254. * @param {TagApiGetTagByIdRequest} requestParameters Request parameters.
  14255. * @param {*} [options] Override http request option.
  14256. * @throws {RequiredError}
  14257. */
  14258. getTagById(requestParameters: TagApiGetTagByIdRequest, options?: AxiosRequestConfig): AxiosPromise<TagResponseDto> {
  14259. return localVarFp.getTagById(requestParameters.id, options).then((request) => request(axios, basePath));
  14260. },
  14261. /**
  14262. *
  14263. * @param {TagApiTagAssetsRequest} requestParameters Request parameters.
  14264. * @param {*} [options] Override http request option.
  14265. * @throws {RequiredError}
  14266. */
  14267. tagAssets(requestParameters: TagApiTagAssetsRequest, options?: AxiosRequestConfig): AxiosPromise<Array<AssetIdsResponseDto>> {
  14268. return localVarFp.tagAssets(requestParameters.id, requestParameters.assetIdsDto, options).then((request) => request(axios, basePath));
  14269. },
  14270. /**
  14271. *
  14272. * @param {TagApiUntagAssetsRequest} requestParameters Request parameters.
  14273. * @param {*} [options] Override http request option.
  14274. * @throws {RequiredError}
  14275. */
  14276. untagAssets(requestParameters: TagApiUntagAssetsRequest, options?: AxiosRequestConfig): AxiosPromise<Array<AssetIdsResponseDto>> {
  14277. return localVarFp.untagAssets(requestParameters.id, requestParameters.assetIdsDto, options).then((request) => request(axios, basePath));
  14278. },
  14279. /**
  14280. *
  14281. * @param {TagApiUpdateTagRequest} requestParameters Request parameters.
  14282. * @param {*} [options] Override http request option.
  14283. * @throws {RequiredError}
  14284. */
  14285. updateTag(requestParameters: TagApiUpdateTagRequest, options?: AxiosRequestConfig): AxiosPromise<TagResponseDto> {
  14286. return localVarFp.updateTag(requestParameters.id, requestParameters.updateTagDto, options).then((request) => request(axios, basePath));
  14287. },
  14288. };
  14289. };
  14290. /**
  14291. * Request parameters for createTag operation in TagApi.
  14292. * @export
  14293. * @interface TagApiCreateTagRequest
  14294. */
  14295. export interface TagApiCreateTagRequest {
  14296. /**
  14297. *
  14298. * @type {CreateTagDto}
  14299. * @memberof TagApiCreateTag
  14300. */
  14301. readonly createTagDto: CreateTagDto
  14302. }
  14303. /**
  14304. * Request parameters for deleteTag operation in TagApi.
  14305. * @export
  14306. * @interface TagApiDeleteTagRequest
  14307. */
  14308. export interface TagApiDeleteTagRequest {
  14309. /**
  14310. *
  14311. * @type {string}
  14312. * @memberof TagApiDeleteTag
  14313. */
  14314. readonly id: string
  14315. }
  14316. /**
  14317. * Request parameters for getTagAssets operation in TagApi.
  14318. * @export
  14319. * @interface TagApiGetTagAssetsRequest
  14320. */
  14321. export interface TagApiGetTagAssetsRequest {
  14322. /**
  14323. *
  14324. * @type {string}
  14325. * @memberof TagApiGetTagAssets
  14326. */
  14327. readonly id: string
  14328. }
  14329. /**
  14330. * Request parameters for getTagById operation in TagApi.
  14331. * @export
  14332. * @interface TagApiGetTagByIdRequest
  14333. */
  14334. export interface TagApiGetTagByIdRequest {
  14335. /**
  14336. *
  14337. * @type {string}
  14338. * @memberof TagApiGetTagById
  14339. */
  14340. readonly id: string
  14341. }
  14342. /**
  14343. * Request parameters for tagAssets operation in TagApi.
  14344. * @export
  14345. * @interface TagApiTagAssetsRequest
  14346. */
  14347. export interface TagApiTagAssetsRequest {
  14348. /**
  14349. *
  14350. * @type {string}
  14351. * @memberof TagApiTagAssets
  14352. */
  14353. readonly id: string
  14354. /**
  14355. *
  14356. * @type {AssetIdsDto}
  14357. * @memberof TagApiTagAssets
  14358. */
  14359. readonly assetIdsDto: AssetIdsDto
  14360. }
  14361. /**
  14362. * Request parameters for untagAssets operation in TagApi.
  14363. * @export
  14364. * @interface TagApiUntagAssetsRequest
  14365. */
  14366. export interface TagApiUntagAssetsRequest {
  14367. /**
  14368. *
  14369. * @type {string}
  14370. * @memberof TagApiUntagAssets
  14371. */
  14372. readonly id: string
  14373. /**
  14374. *
  14375. * @type {AssetIdsDto}
  14376. * @memberof TagApiUntagAssets
  14377. */
  14378. readonly assetIdsDto: AssetIdsDto
  14379. }
  14380. /**
  14381. * Request parameters for updateTag operation in TagApi.
  14382. * @export
  14383. * @interface TagApiUpdateTagRequest
  14384. */
  14385. export interface TagApiUpdateTagRequest {
  14386. /**
  14387. *
  14388. * @type {string}
  14389. * @memberof TagApiUpdateTag
  14390. */
  14391. readonly id: string
  14392. /**
  14393. *
  14394. * @type {UpdateTagDto}
  14395. * @memberof TagApiUpdateTag
  14396. */
  14397. readonly updateTagDto: UpdateTagDto
  14398. }
  14399. /**
  14400. * TagApi - object-oriented interface
  14401. * @export
  14402. * @class TagApi
  14403. * @extends {BaseAPI}
  14404. */
  14405. export class TagApi extends BaseAPI {
  14406. /**
  14407. *
  14408. * @param {TagApiCreateTagRequest} requestParameters Request parameters.
  14409. * @param {*} [options] Override http request option.
  14410. * @throws {RequiredError}
  14411. * @memberof TagApi
  14412. */
  14413. public createTag(requestParameters: TagApiCreateTagRequest, options?: AxiosRequestConfig) {
  14414. return TagApiFp(this.configuration).createTag(requestParameters.createTagDto, options).then((request) => request(this.axios, this.basePath));
  14415. }
  14416. /**
  14417. *
  14418. * @param {TagApiDeleteTagRequest} requestParameters Request parameters.
  14419. * @param {*} [options] Override http request option.
  14420. * @throws {RequiredError}
  14421. * @memberof TagApi
  14422. */
  14423. public deleteTag(requestParameters: TagApiDeleteTagRequest, options?: AxiosRequestConfig) {
  14424. return TagApiFp(this.configuration).deleteTag(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  14425. }
  14426. /**
  14427. *
  14428. * @param {*} [options] Override http request option.
  14429. * @throws {RequiredError}
  14430. * @memberof TagApi
  14431. */
  14432. public getAllTags(options?: AxiosRequestConfig) {
  14433. return TagApiFp(this.configuration).getAllTags(options).then((request) => request(this.axios, this.basePath));
  14434. }
  14435. /**
  14436. *
  14437. * @param {TagApiGetTagAssetsRequest} requestParameters Request parameters.
  14438. * @param {*} [options] Override http request option.
  14439. * @throws {RequiredError}
  14440. * @memberof TagApi
  14441. */
  14442. public getTagAssets(requestParameters: TagApiGetTagAssetsRequest, options?: AxiosRequestConfig) {
  14443. return TagApiFp(this.configuration).getTagAssets(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  14444. }
  14445. /**
  14446. *
  14447. * @param {TagApiGetTagByIdRequest} requestParameters Request parameters.
  14448. * @param {*} [options] Override http request option.
  14449. * @throws {RequiredError}
  14450. * @memberof TagApi
  14451. */
  14452. public getTagById(requestParameters: TagApiGetTagByIdRequest, options?: AxiosRequestConfig) {
  14453. return TagApiFp(this.configuration).getTagById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  14454. }
  14455. /**
  14456. *
  14457. * @param {TagApiTagAssetsRequest} requestParameters Request parameters.
  14458. * @param {*} [options] Override http request option.
  14459. * @throws {RequiredError}
  14460. * @memberof TagApi
  14461. */
  14462. public tagAssets(requestParameters: TagApiTagAssetsRequest, options?: AxiosRequestConfig) {
  14463. return TagApiFp(this.configuration).tagAssets(requestParameters.id, requestParameters.assetIdsDto, options).then((request) => request(this.axios, this.basePath));
  14464. }
  14465. /**
  14466. *
  14467. * @param {TagApiUntagAssetsRequest} requestParameters Request parameters.
  14468. * @param {*} [options] Override http request option.
  14469. * @throws {RequiredError}
  14470. * @memberof TagApi
  14471. */
  14472. public untagAssets(requestParameters: TagApiUntagAssetsRequest, options?: AxiosRequestConfig) {
  14473. return TagApiFp(this.configuration).untagAssets(requestParameters.id, requestParameters.assetIdsDto, options).then((request) => request(this.axios, this.basePath));
  14474. }
  14475. /**
  14476. *
  14477. * @param {TagApiUpdateTagRequest} requestParameters Request parameters.
  14478. * @param {*} [options] Override http request option.
  14479. * @throws {RequiredError}
  14480. * @memberof TagApi
  14481. */
  14482. public updateTag(requestParameters: TagApiUpdateTagRequest, options?: AxiosRequestConfig) {
  14483. return TagApiFp(this.configuration).updateTag(requestParameters.id, requestParameters.updateTagDto, options).then((request) => request(this.axios, this.basePath));
  14484. }
  14485. }
  14486. /**
  14487. * UserApi - axios parameter creator
  14488. * @export
  14489. */
  14490. export const UserApiAxiosParamCreator = function (configuration?: Configuration) {
  14491. return {
  14492. /**
  14493. *
  14494. * @param {File} file
  14495. * @param {*} [options] Override http request option.
  14496. * @throws {RequiredError}
  14497. */
  14498. createProfileImage: async (file: File, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  14499. // verify required parameter 'file' is not null or undefined
  14500. assertParamExists('createProfileImage', 'file', file)
  14501. const localVarPath = `/user/profile-image`;
  14502. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  14503. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  14504. let baseOptions;
  14505. if (configuration) {
  14506. baseOptions = configuration.baseOptions;
  14507. }
  14508. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  14509. const localVarHeaderParameter = {} as any;
  14510. const localVarQueryParameter = {} as any;
  14511. const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
  14512. // authentication cookie required
  14513. // authentication api_key required
  14514. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  14515. // authentication bearer required
  14516. // http bearer authentication required
  14517. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  14518. if (file !== undefined) {
  14519. localVarFormParams.append('file', file as any);
  14520. }
  14521. localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
  14522. setSearchParams(localVarUrlObj, localVarQueryParameter);
  14523. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  14524. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  14525. localVarRequestOptions.data = localVarFormParams;
  14526. return {
  14527. url: toPathString(localVarUrlObj),
  14528. options: localVarRequestOptions,
  14529. };
  14530. },
  14531. /**
  14532. *
  14533. * @param {CreateUserDto} createUserDto
  14534. * @param {*} [options] Override http request option.
  14535. * @throws {RequiredError}
  14536. */
  14537. createUser: async (createUserDto: CreateUserDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  14538. // verify required parameter 'createUserDto' is not null or undefined
  14539. assertParamExists('createUser', 'createUserDto', createUserDto)
  14540. const localVarPath = `/user`;
  14541. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  14542. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  14543. let baseOptions;
  14544. if (configuration) {
  14545. baseOptions = configuration.baseOptions;
  14546. }
  14547. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  14548. const localVarHeaderParameter = {} as any;
  14549. const localVarQueryParameter = {} as any;
  14550. // authentication cookie required
  14551. // authentication api_key required
  14552. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  14553. // authentication bearer required
  14554. // http bearer authentication required
  14555. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  14556. localVarHeaderParameter['Content-Type'] = 'application/json';
  14557. setSearchParams(localVarUrlObj, localVarQueryParameter);
  14558. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  14559. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  14560. localVarRequestOptions.data = serializeDataIfNeeded(createUserDto, localVarRequestOptions, configuration)
  14561. return {
  14562. url: toPathString(localVarUrlObj),
  14563. options: localVarRequestOptions,
  14564. };
  14565. },
  14566. /**
  14567. *
  14568. * @param {string} id
  14569. * @param {*} [options] Override http request option.
  14570. * @throws {RequiredError}
  14571. */
  14572. deleteUser: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  14573. // verify required parameter 'id' is not null or undefined
  14574. assertParamExists('deleteUser', 'id', id)
  14575. const localVarPath = `/user/{id}`
  14576. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  14577. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  14578. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  14579. let baseOptions;
  14580. if (configuration) {
  14581. baseOptions = configuration.baseOptions;
  14582. }
  14583. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  14584. const localVarHeaderParameter = {} as any;
  14585. const localVarQueryParameter = {} as any;
  14586. // authentication cookie required
  14587. // authentication api_key required
  14588. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  14589. // authentication bearer required
  14590. // http bearer authentication required
  14591. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  14592. setSearchParams(localVarUrlObj, localVarQueryParameter);
  14593. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  14594. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  14595. return {
  14596. url: toPathString(localVarUrlObj),
  14597. options: localVarRequestOptions,
  14598. };
  14599. },
  14600. /**
  14601. *
  14602. * @param {boolean} isAll
  14603. * @param {*} [options] Override http request option.
  14604. * @throws {RequiredError}
  14605. */
  14606. getAllUsers: async (isAll: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  14607. // verify required parameter 'isAll' is not null or undefined
  14608. assertParamExists('getAllUsers', 'isAll', isAll)
  14609. const localVarPath = `/user`;
  14610. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  14611. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  14612. let baseOptions;
  14613. if (configuration) {
  14614. baseOptions = configuration.baseOptions;
  14615. }
  14616. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  14617. const localVarHeaderParameter = {} as any;
  14618. const localVarQueryParameter = {} as any;
  14619. // authentication cookie required
  14620. // authentication api_key required
  14621. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  14622. // authentication bearer required
  14623. // http bearer authentication required
  14624. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  14625. if (isAll !== undefined) {
  14626. localVarQueryParameter['isAll'] = isAll;
  14627. }
  14628. setSearchParams(localVarUrlObj, localVarQueryParameter);
  14629. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  14630. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  14631. return {
  14632. url: toPathString(localVarUrlObj),
  14633. options: localVarRequestOptions,
  14634. };
  14635. },
  14636. /**
  14637. *
  14638. * @param {*} [options] Override http request option.
  14639. * @throws {RequiredError}
  14640. */
  14641. getMyUserInfo: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  14642. const localVarPath = `/user/me`;
  14643. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  14644. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  14645. let baseOptions;
  14646. if (configuration) {
  14647. baseOptions = configuration.baseOptions;
  14648. }
  14649. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  14650. const localVarHeaderParameter = {} as any;
  14651. const localVarQueryParameter = {} as any;
  14652. // authentication cookie required
  14653. // authentication api_key required
  14654. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  14655. // authentication bearer required
  14656. // http bearer authentication required
  14657. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  14658. setSearchParams(localVarUrlObj, localVarQueryParameter);
  14659. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  14660. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  14661. return {
  14662. url: toPathString(localVarUrlObj),
  14663. options: localVarRequestOptions,
  14664. };
  14665. },
  14666. /**
  14667. *
  14668. * @param {string} id
  14669. * @param {*} [options] Override http request option.
  14670. * @throws {RequiredError}
  14671. */
  14672. getProfileImage: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  14673. // verify required parameter 'id' is not null or undefined
  14674. assertParamExists('getProfileImage', 'id', id)
  14675. const localVarPath = `/user/profile-image/{id}`
  14676. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  14677. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  14678. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  14679. let baseOptions;
  14680. if (configuration) {
  14681. baseOptions = configuration.baseOptions;
  14682. }
  14683. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  14684. const localVarHeaderParameter = {} as any;
  14685. const localVarQueryParameter = {} as any;
  14686. // authentication cookie required
  14687. // authentication api_key required
  14688. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  14689. // authentication bearer required
  14690. // http bearer authentication required
  14691. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  14692. setSearchParams(localVarUrlObj, localVarQueryParameter);
  14693. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  14694. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  14695. return {
  14696. url: toPathString(localVarUrlObj),
  14697. options: localVarRequestOptions,
  14698. };
  14699. },
  14700. /**
  14701. *
  14702. * @param {string} id
  14703. * @param {*} [options] Override http request option.
  14704. * @throws {RequiredError}
  14705. */
  14706. getUserById: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  14707. // verify required parameter 'id' is not null or undefined
  14708. assertParamExists('getUserById', 'id', id)
  14709. const localVarPath = `/user/info/{id}`
  14710. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  14711. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  14712. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  14713. let baseOptions;
  14714. if (configuration) {
  14715. baseOptions = configuration.baseOptions;
  14716. }
  14717. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  14718. const localVarHeaderParameter = {} as any;
  14719. const localVarQueryParameter = {} as any;
  14720. // authentication cookie required
  14721. // authentication api_key required
  14722. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  14723. // authentication bearer required
  14724. // http bearer authentication required
  14725. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  14726. setSearchParams(localVarUrlObj, localVarQueryParameter);
  14727. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  14728. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  14729. return {
  14730. url: toPathString(localVarUrlObj),
  14731. options: localVarRequestOptions,
  14732. };
  14733. },
  14734. /**
  14735. *
  14736. * @param {string} id
  14737. * @param {*} [options] Override http request option.
  14738. * @throws {RequiredError}
  14739. */
  14740. restoreUser: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  14741. // verify required parameter 'id' is not null or undefined
  14742. assertParamExists('restoreUser', 'id', id)
  14743. const localVarPath = `/user/{id}/restore`
  14744. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  14745. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  14746. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  14747. let baseOptions;
  14748. if (configuration) {
  14749. baseOptions = configuration.baseOptions;
  14750. }
  14751. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  14752. const localVarHeaderParameter = {} as any;
  14753. const localVarQueryParameter = {} as any;
  14754. // authentication cookie required
  14755. // authentication api_key required
  14756. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  14757. // authentication bearer required
  14758. // http bearer authentication required
  14759. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  14760. setSearchParams(localVarUrlObj, localVarQueryParameter);
  14761. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  14762. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  14763. return {
  14764. url: toPathString(localVarUrlObj),
  14765. options: localVarRequestOptions,
  14766. };
  14767. },
  14768. /**
  14769. *
  14770. * @param {UpdateUserDto} updateUserDto
  14771. * @param {*} [options] Override http request option.
  14772. * @throws {RequiredError}
  14773. */
  14774. updateUser: async (updateUserDto: UpdateUserDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  14775. // verify required parameter 'updateUserDto' is not null or undefined
  14776. assertParamExists('updateUser', 'updateUserDto', updateUserDto)
  14777. const localVarPath = `/user`;
  14778. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  14779. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  14780. let baseOptions;
  14781. if (configuration) {
  14782. baseOptions = configuration.baseOptions;
  14783. }
  14784. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  14785. const localVarHeaderParameter = {} as any;
  14786. const localVarQueryParameter = {} as any;
  14787. // authentication cookie required
  14788. // authentication api_key required
  14789. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  14790. // authentication bearer required
  14791. // http bearer authentication required
  14792. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  14793. localVarHeaderParameter['Content-Type'] = 'application/json';
  14794. setSearchParams(localVarUrlObj, localVarQueryParameter);
  14795. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  14796. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  14797. localVarRequestOptions.data = serializeDataIfNeeded(updateUserDto, localVarRequestOptions, configuration)
  14798. return {
  14799. url: toPathString(localVarUrlObj),
  14800. options: localVarRequestOptions,
  14801. };
  14802. },
  14803. }
  14804. };
  14805. /**
  14806. * UserApi - functional programming interface
  14807. * @export
  14808. */
  14809. export const UserApiFp = function(configuration?: Configuration) {
  14810. const localVarAxiosParamCreator = UserApiAxiosParamCreator(configuration)
  14811. return {
  14812. /**
  14813. *
  14814. * @param {File} file
  14815. * @param {*} [options] Override http request option.
  14816. * @throws {RequiredError}
  14817. */
  14818. async createProfileImage(file: File, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateProfileImageResponseDto>> {
  14819. const localVarAxiosArgs = await localVarAxiosParamCreator.createProfileImage(file, options);
  14820. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  14821. },
  14822. /**
  14823. *
  14824. * @param {CreateUserDto} createUserDto
  14825. * @param {*} [options] Override http request option.
  14826. * @throws {RequiredError}
  14827. */
  14828. async createUser(createUserDto: CreateUserDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  14829. const localVarAxiosArgs = await localVarAxiosParamCreator.createUser(createUserDto, options);
  14830. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  14831. },
  14832. /**
  14833. *
  14834. * @param {string} id
  14835. * @param {*} [options] Override http request option.
  14836. * @throws {RequiredError}
  14837. */
  14838. async deleteUser(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  14839. const localVarAxiosArgs = await localVarAxiosParamCreator.deleteUser(id, options);
  14840. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  14841. },
  14842. /**
  14843. *
  14844. * @param {boolean} isAll
  14845. * @param {*} [options] Override http request option.
  14846. * @throws {RequiredError}
  14847. */
  14848. async getAllUsers(isAll: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<UserResponseDto>>> {
  14849. const localVarAxiosArgs = await localVarAxiosParamCreator.getAllUsers(isAll, options);
  14850. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  14851. },
  14852. /**
  14853. *
  14854. * @param {*} [options] Override http request option.
  14855. * @throws {RequiredError}
  14856. */
  14857. async getMyUserInfo(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  14858. const localVarAxiosArgs = await localVarAxiosParamCreator.getMyUserInfo(options);
  14859. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  14860. },
  14861. /**
  14862. *
  14863. * @param {string} id
  14864. * @param {*} [options] Override http request option.
  14865. * @throws {RequiredError}
  14866. */
  14867. async getProfileImage(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
  14868. const localVarAxiosArgs = await localVarAxiosParamCreator.getProfileImage(id, options);
  14869. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  14870. },
  14871. /**
  14872. *
  14873. * @param {string} id
  14874. * @param {*} [options] Override http request option.
  14875. * @throws {RequiredError}
  14876. */
  14877. async getUserById(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  14878. const localVarAxiosArgs = await localVarAxiosParamCreator.getUserById(id, options);
  14879. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  14880. },
  14881. /**
  14882. *
  14883. * @param {string} id
  14884. * @param {*} [options] Override http request option.
  14885. * @throws {RequiredError}
  14886. */
  14887. async restoreUser(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  14888. const localVarAxiosArgs = await localVarAxiosParamCreator.restoreUser(id, options);
  14889. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  14890. },
  14891. /**
  14892. *
  14893. * @param {UpdateUserDto} updateUserDto
  14894. * @param {*} [options] Override http request option.
  14895. * @throws {RequiredError}
  14896. */
  14897. async updateUser(updateUserDto: UpdateUserDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  14898. const localVarAxiosArgs = await localVarAxiosParamCreator.updateUser(updateUserDto, options);
  14899. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  14900. },
  14901. }
  14902. };
  14903. /**
  14904. * UserApi - factory interface
  14905. * @export
  14906. */
  14907. export const UserApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  14908. const localVarFp = UserApiFp(configuration)
  14909. return {
  14910. /**
  14911. *
  14912. * @param {UserApiCreateProfileImageRequest} requestParameters Request parameters.
  14913. * @param {*} [options] Override http request option.
  14914. * @throws {RequiredError}
  14915. */
  14916. createProfileImage(requestParameters: UserApiCreateProfileImageRequest, options?: AxiosRequestConfig): AxiosPromise<CreateProfileImageResponseDto> {
  14917. return localVarFp.createProfileImage(requestParameters.file, options).then((request) => request(axios, basePath));
  14918. },
  14919. /**
  14920. *
  14921. * @param {UserApiCreateUserRequest} requestParameters Request parameters.
  14922. * @param {*} [options] Override http request option.
  14923. * @throws {RequiredError}
  14924. */
  14925. createUser(requestParameters: UserApiCreateUserRequest, options?: AxiosRequestConfig): AxiosPromise<UserResponseDto> {
  14926. return localVarFp.createUser(requestParameters.createUserDto, options).then((request) => request(axios, basePath));
  14927. },
  14928. /**
  14929. *
  14930. * @param {UserApiDeleteUserRequest} requestParameters Request parameters.
  14931. * @param {*} [options] Override http request option.
  14932. * @throws {RequiredError}
  14933. */
  14934. deleteUser(requestParameters: UserApiDeleteUserRequest, options?: AxiosRequestConfig): AxiosPromise<UserResponseDto> {
  14935. return localVarFp.deleteUser(requestParameters.id, options).then((request) => request(axios, basePath));
  14936. },
  14937. /**
  14938. *
  14939. * @param {UserApiGetAllUsersRequest} requestParameters Request parameters.
  14940. * @param {*} [options] Override http request option.
  14941. * @throws {RequiredError}
  14942. */
  14943. getAllUsers(requestParameters: UserApiGetAllUsersRequest, options?: AxiosRequestConfig): AxiosPromise<Array<UserResponseDto>> {
  14944. return localVarFp.getAllUsers(requestParameters.isAll, options).then((request) => request(axios, basePath));
  14945. },
  14946. /**
  14947. *
  14948. * @param {*} [options] Override http request option.
  14949. * @throws {RequiredError}
  14950. */
  14951. getMyUserInfo(options?: AxiosRequestConfig): AxiosPromise<UserResponseDto> {
  14952. return localVarFp.getMyUserInfo(options).then((request) => request(axios, basePath));
  14953. },
  14954. /**
  14955. *
  14956. * @param {UserApiGetProfileImageRequest} requestParameters Request parameters.
  14957. * @param {*} [options] Override http request option.
  14958. * @throws {RequiredError}
  14959. */
  14960. getProfileImage(requestParameters: UserApiGetProfileImageRequest, options?: AxiosRequestConfig): AxiosPromise<object> {
  14961. return localVarFp.getProfileImage(requestParameters.id, options).then((request) => request(axios, basePath));
  14962. },
  14963. /**
  14964. *
  14965. * @param {UserApiGetUserByIdRequest} requestParameters Request parameters.
  14966. * @param {*} [options] Override http request option.
  14967. * @throws {RequiredError}
  14968. */
  14969. getUserById(requestParameters: UserApiGetUserByIdRequest, options?: AxiosRequestConfig): AxiosPromise<UserResponseDto> {
  14970. return localVarFp.getUserById(requestParameters.id, options).then((request) => request(axios, basePath));
  14971. },
  14972. /**
  14973. *
  14974. * @param {UserApiRestoreUserRequest} requestParameters Request parameters.
  14975. * @param {*} [options] Override http request option.
  14976. * @throws {RequiredError}
  14977. */
  14978. restoreUser(requestParameters: UserApiRestoreUserRequest, options?: AxiosRequestConfig): AxiosPromise<UserResponseDto> {
  14979. return localVarFp.restoreUser(requestParameters.id, options).then((request) => request(axios, basePath));
  14980. },
  14981. /**
  14982. *
  14983. * @param {UserApiUpdateUserRequest} requestParameters Request parameters.
  14984. * @param {*} [options] Override http request option.
  14985. * @throws {RequiredError}
  14986. */
  14987. updateUser(requestParameters: UserApiUpdateUserRequest, options?: AxiosRequestConfig): AxiosPromise<UserResponseDto> {
  14988. return localVarFp.updateUser(requestParameters.updateUserDto, options).then((request) => request(axios, basePath));
  14989. },
  14990. };
  14991. };
  14992. /**
  14993. * Request parameters for createProfileImage operation in UserApi.
  14994. * @export
  14995. * @interface UserApiCreateProfileImageRequest
  14996. */
  14997. export interface UserApiCreateProfileImageRequest {
  14998. /**
  14999. *
  15000. * @type {File}
  15001. * @memberof UserApiCreateProfileImage
  15002. */
  15003. readonly file: File
  15004. }
  15005. /**
  15006. * Request parameters for createUser operation in UserApi.
  15007. * @export
  15008. * @interface UserApiCreateUserRequest
  15009. */
  15010. export interface UserApiCreateUserRequest {
  15011. /**
  15012. *
  15013. * @type {CreateUserDto}
  15014. * @memberof UserApiCreateUser
  15015. */
  15016. readonly createUserDto: CreateUserDto
  15017. }
  15018. /**
  15019. * Request parameters for deleteUser operation in UserApi.
  15020. * @export
  15021. * @interface UserApiDeleteUserRequest
  15022. */
  15023. export interface UserApiDeleteUserRequest {
  15024. /**
  15025. *
  15026. * @type {string}
  15027. * @memberof UserApiDeleteUser
  15028. */
  15029. readonly id: string
  15030. }
  15031. /**
  15032. * Request parameters for getAllUsers operation in UserApi.
  15033. * @export
  15034. * @interface UserApiGetAllUsersRequest
  15035. */
  15036. export interface UserApiGetAllUsersRequest {
  15037. /**
  15038. *
  15039. * @type {boolean}
  15040. * @memberof UserApiGetAllUsers
  15041. */
  15042. readonly isAll: boolean
  15043. }
  15044. /**
  15045. * Request parameters for getProfileImage operation in UserApi.
  15046. * @export
  15047. * @interface UserApiGetProfileImageRequest
  15048. */
  15049. export interface UserApiGetProfileImageRequest {
  15050. /**
  15051. *
  15052. * @type {string}
  15053. * @memberof UserApiGetProfileImage
  15054. */
  15055. readonly id: string
  15056. }
  15057. /**
  15058. * Request parameters for getUserById operation in UserApi.
  15059. * @export
  15060. * @interface UserApiGetUserByIdRequest
  15061. */
  15062. export interface UserApiGetUserByIdRequest {
  15063. /**
  15064. *
  15065. * @type {string}
  15066. * @memberof UserApiGetUserById
  15067. */
  15068. readonly id: string
  15069. }
  15070. /**
  15071. * Request parameters for restoreUser operation in UserApi.
  15072. * @export
  15073. * @interface UserApiRestoreUserRequest
  15074. */
  15075. export interface UserApiRestoreUserRequest {
  15076. /**
  15077. *
  15078. * @type {string}
  15079. * @memberof UserApiRestoreUser
  15080. */
  15081. readonly id: string
  15082. }
  15083. /**
  15084. * Request parameters for updateUser operation in UserApi.
  15085. * @export
  15086. * @interface UserApiUpdateUserRequest
  15087. */
  15088. export interface UserApiUpdateUserRequest {
  15089. /**
  15090. *
  15091. * @type {UpdateUserDto}
  15092. * @memberof UserApiUpdateUser
  15093. */
  15094. readonly updateUserDto: UpdateUserDto
  15095. }
  15096. /**
  15097. * UserApi - object-oriented interface
  15098. * @export
  15099. * @class UserApi
  15100. * @extends {BaseAPI}
  15101. */
  15102. export class UserApi extends BaseAPI {
  15103. /**
  15104. *
  15105. * @param {UserApiCreateProfileImageRequest} requestParameters Request parameters.
  15106. * @param {*} [options] Override http request option.
  15107. * @throws {RequiredError}
  15108. * @memberof UserApi
  15109. */
  15110. public createProfileImage(requestParameters: UserApiCreateProfileImageRequest, options?: AxiosRequestConfig) {
  15111. return UserApiFp(this.configuration).createProfileImage(requestParameters.file, options).then((request) => request(this.axios, this.basePath));
  15112. }
  15113. /**
  15114. *
  15115. * @param {UserApiCreateUserRequest} requestParameters Request parameters.
  15116. * @param {*} [options] Override http request option.
  15117. * @throws {RequiredError}
  15118. * @memberof UserApi
  15119. */
  15120. public createUser(requestParameters: UserApiCreateUserRequest, options?: AxiosRequestConfig) {
  15121. return UserApiFp(this.configuration).createUser(requestParameters.createUserDto, options).then((request) => request(this.axios, this.basePath));
  15122. }
  15123. /**
  15124. *
  15125. * @param {UserApiDeleteUserRequest} requestParameters Request parameters.
  15126. * @param {*} [options] Override http request option.
  15127. * @throws {RequiredError}
  15128. * @memberof UserApi
  15129. */
  15130. public deleteUser(requestParameters: UserApiDeleteUserRequest, options?: AxiosRequestConfig) {
  15131. return UserApiFp(this.configuration).deleteUser(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  15132. }
  15133. /**
  15134. *
  15135. * @param {UserApiGetAllUsersRequest} requestParameters Request parameters.
  15136. * @param {*} [options] Override http request option.
  15137. * @throws {RequiredError}
  15138. * @memberof UserApi
  15139. */
  15140. public getAllUsers(requestParameters: UserApiGetAllUsersRequest, options?: AxiosRequestConfig) {
  15141. return UserApiFp(this.configuration).getAllUsers(requestParameters.isAll, options).then((request) => request(this.axios, this.basePath));
  15142. }
  15143. /**
  15144. *
  15145. * @param {*} [options] Override http request option.
  15146. * @throws {RequiredError}
  15147. * @memberof UserApi
  15148. */
  15149. public getMyUserInfo(options?: AxiosRequestConfig) {
  15150. return UserApiFp(this.configuration).getMyUserInfo(options).then((request) => request(this.axios, this.basePath));
  15151. }
  15152. /**
  15153. *
  15154. * @param {UserApiGetProfileImageRequest} requestParameters Request parameters.
  15155. * @param {*} [options] Override http request option.
  15156. * @throws {RequiredError}
  15157. * @memberof UserApi
  15158. */
  15159. public getProfileImage(requestParameters: UserApiGetProfileImageRequest, options?: AxiosRequestConfig) {
  15160. return UserApiFp(this.configuration).getProfileImage(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  15161. }
  15162. /**
  15163. *
  15164. * @param {UserApiGetUserByIdRequest} requestParameters Request parameters.
  15165. * @param {*} [options] Override http request option.
  15166. * @throws {RequiredError}
  15167. * @memberof UserApi
  15168. */
  15169. public getUserById(requestParameters: UserApiGetUserByIdRequest, options?: AxiosRequestConfig) {
  15170. return UserApiFp(this.configuration).getUserById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  15171. }
  15172. /**
  15173. *
  15174. * @param {UserApiRestoreUserRequest} requestParameters Request parameters.
  15175. * @param {*} [options] Override http request option.
  15176. * @throws {RequiredError}
  15177. * @memberof UserApi
  15178. */
  15179. public restoreUser(requestParameters: UserApiRestoreUserRequest, options?: AxiosRequestConfig) {
  15180. return UserApiFp(this.configuration).restoreUser(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  15181. }
  15182. /**
  15183. *
  15184. * @param {UserApiUpdateUserRequest} requestParameters Request parameters.
  15185. * @param {*} [options] Override http request option.
  15186. * @throws {RequiredError}
  15187. * @memberof UserApi
  15188. */
  15189. public updateUser(requestParameters: UserApiUpdateUserRequest, options?: AxiosRequestConfig) {
  15190. return UserApiFp(this.configuration).updateUser(requestParameters.updateUserDto, options).then((request) => request(this.axios, this.basePath));
  15191. }
  15192. }