api.ts 589 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185
  1. /* tslint:disable */
  2. /* eslint-disable */
  3. /**
  4. * Immich
  5. * Immich API
  6. *
  7. * The version of the OpenAPI document: 1.85.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 AlbumCountResponseDto
  208. */
  209. export interface AlbumCountResponseDto {
  210. /**
  211. *
  212. * @type {number}
  213. * @memberof AlbumCountResponseDto
  214. */
  215. 'notShared': number;
  216. /**
  217. *
  218. * @type {number}
  219. * @memberof AlbumCountResponseDto
  220. */
  221. 'owned': number;
  222. /**
  223. *
  224. * @type {number}
  225. * @memberof AlbumCountResponseDto
  226. */
  227. 'shared': number;
  228. }
  229. /**
  230. *
  231. * @export
  232. * @interface AlbumResponseDto
  233. */
  234. export interface AlbumResponseDto {
  235. /**
  236. *
  237. * @type {string}
  238. * @memberof AlbumResponseDto
  239. */
  240. 'albumName': string;
  241. /**
  242. *
  243. * @type {string}
  244. * @memberof AlbumResponseDto
  245. */
  246. 'albumThumbnailAssetId': string | null;
  247. /**
  248. *
  249. * @type {number}
  250. * @memberof AlbumResponseDto
  251. */
  252. 'assetCount': number;
  253. /**
  254. *
  255. * @type {Array<AssetResponseDto>}
  256. * @memberof AlbumResponseDto
  257. */
  258. 'assets': Array<AssetResponseDto>;
  259. /**
  260. *
  261. * @type {string}
  262. * @memberof AlbumResponseDto
  263. */
  264. 'createdAt': string;
  265. /**
  266. *
  267. * @type {string}
  268. * @memberof AlbumResponseDto
  269. */
  270. 'description': string;
  271. /**
  272. *
  273. * @type {string}
  274. * @memberof AlbumResponseDto
  275. */
  276. 'endDate'?: string;
  277. /**
  278. *
  279. * @type {boolean}
  280. * @memberof AlbumResponseDto
  281. */
  282. 'hasSharedLink': boolean;
  283. /**
  284. *
  285. * @type {string}
  286. * @memberof AlbumResponseDto
  287. */
  288. 'id': string;
  289. /**
  290. *
  291. * @type {boolean}
  292. * @memberof AlbumResponseDto
  293. */
  294. 'isActivityEnabled': boolean;
  295. /**
  296. *
  297. * @type {string}
  298. * @memberof AlbumResponseDto
  299. */
  300. 'lastModifiedAssetTimestamp'?: string;
  301. /**
  302. *
  303. * @type {UserResponseDto}
  304. * @memberof AlbumResponseDto
  305. */
  306. 'owner': UserResponseDto;
  307. /**
  308. *
  309. * @type {string}
  310. * @memberof AlbumResponseDto
  311. */
  312. 'ownerId': string;
  313. /**
  314. *
  315. * @type {boolean}
  316. * @memberof AlbumResponseDto
  317. */
  318. 'shared': boolean;
  319. /**
  320. *
  321. * @type {Array<UserResponseDto>}
  322. * @memberof AlbumResponseDto
  323. */
  324. 'sharedUsers': Array<UserResponseDto>;
  325. /**
  326. *
  327. * @type {string}
  328. * @memberof AlbumResponseDto
  329. */
  330. 'startDate'?: string;
  331. /**
  332. *
  333. * @type {string}
  334. * @memberof AlbumResponseDto
  335. */
  336. 'updatedAt': string;
  337. }
  338. /**
  339. *
  340. * @export
  341. * @interface AllJobStatusResponseDto
  342. */
  343. export interface AllJobStatusResponseDto {
  344. /**
  345. *
  346. * @type {JobStatusDto}
  347. * @memberof AllJobStatusResponseDto
  348. */
  349. 'backgroundTask': JobStatusDto;
  350. /**
  351. *
  352. * @type {JobStatusDto}
  353. * @memberof AllJobStatusResponseDto
  354. */
  355. 'clipEncoding': JobStatusDto;
  356. /**
  357. *
  358. * @type {JobStatusDto}
  359. * @memberof AllJobStatusResponseDto
  360. */
  361. 'library': JobStatusDto;
  362. /**
  363. *
  364. * @type {JobStatusDto}
  365. * @memberof AllJobStatusResponseDto
  366. */
  367. 'metadataExtraction': JobStatusDto;
  368. /**
  369. *
  370. * @type {JobStatusDto}
  371. * @memberof AllJobStatusResponseDto
  372. */
  373. 'migration': JobStatusDto;
  374. /**
  375. *
  376. * @type {JobStatusDto}
  377. * @memberof AllJobStatusResponseDto
  378. */
  379. 'objectTagging': JobStatusDto;
  380. /**
  381. *
  382. * @type {JobStatusDto}
  383. * @memberof AllJobStatusResponseDto
  384. */
  385. 'recognizeFaces': JobStatusDto;
  386. /**
  387. *
  388. * @type {JobStatusDto}
  389. * @memberof AllJobStatusResponseDto
  390. */
  391. 'search': JobStatusDto;
  392. /**
  393. *
  394. * @type {JobStatusDto}
  395. * @memberof AllJobStatusResponseDto
  396. */
  397. 'sidecar': JobStatusDto;
  398. /**
  399. *
  400. * @type {JobStatusDto}
  401. * @memberof AllJobStatusResponseDto
  402. */
  403. 'storageTemplateMigration': JobStatusDto;
  404. /**
  405. *
  406. * @type {JobStatusDto}
  407. * @memberof AllJobStatusResponseDto
  408. */
  409. 'thumbnailGeneration': JobStatusDto;
  410. /**
  411. *
  412. * @type {JobStatusDto}
  413. * @memberof AllJobStatusResponseDto
  414. */
  415. 'videoConversion': JobStatusDto;
  416. }
  417. /**
  418. *
  419. * @export
  420. * @interface AssetBulkDeleteDto
  421. */
  422. export interface AssetBulkDeleteDto {
  423. /**
  424. *
  425. * @type {boolean}
  426. * @memberof AssetBulkDeleteDto
  427. */
  428. 'force'?: boolean;
  429. /**
  430. *
  431. * @type {Array<string>}
  432. * @memberof AssetBulkDeleteDto
  433. */
  434. 'ids': Array<string>;
  435. }
  436. /**
  437. *
  438. * @export
  439. * @interface AssetBulkUpdateDto
  440. */
  441. export interface AssetBulkUpdateDto {
  442. /**
  443. *
  444. * @type {Array<string>}
  445. * @memberof AssetBulkUpdateDto
  446. */
  447. 'ids': Array<string>;
  448. /**
  449. *
  450. * @type {boolean}
  451. * @memberof AssetBulkUpdateDto
  452. */
  453. 'isArchived'?: boolean;
  454. /**
  455. *
  456. * @type {boolean}
  457. * @memberof AssetBulkUpdateDto
  458. */
  459. 'isFavorite'?: boolean;
  460. /**
  461. *
  462. * @type {boolean}
  463. * @memberof AssetBulkUpdateDto
  464. */
  465. 'removeParent'?: boolean;
  466. /**
  467. *
  468. * @type {string}
  469. * @memberof AssetBulkUpdateDto
  470. */
  471. 'stackParentId'?: string;
  472. }
  473. /**
  474. *
  475. * @export
  476. * @interface AssetBulkUploadCheckDto
  477. */
  478. export interface AssetBulkUploadCheckDto {
  479. /**
  480. *
  481. * @type {Array<AssetBulkUploadCheckItem>}
  482. * @memberof AssetBulkUploadCheckDto
  483. */
  484. 'assets': Array<AssetBulkUploadCheckItem>;
  485. }
  486. /**
  487. *
  488. * @export
  489. * @interface AssetBulkUploadCheckItem
  490. */
  491. export interface AssetBulkUploadCheckItem {
  492. /**
  493. * base64 or hex encoded sha1 hash
  494. * @type {string}
  495. * @memberof AssetBulkUploadCheckItem
  496. */
  497. 'checksum': string;
  498. /**
  499. *
  500. * @type {string}
  501. * @memberof AssetBulkUploadCheckItem
  502. */
  503. 'id': string;
  504. }
  505. /**
  506. *
  507. * @export
  508. * @interface AssetBulkUploadCheckResponseDto
  509. */
  510. export interface AssetBulkUploadCheckResponseDto {
  511. /**
  512. *
  513. * @type {Array<AssetBulkUploadCheckResult>}
  514. * @memberof AssetBulkUploadCheckResponseDto
  515. */
  516. 'results': Array<AssetBulkUploadCheckResult>;
  517. }
  518. /**
  519. *
  520. * @export
  521. * @interface AssetBulkUploadCheckResult
  522. */
  523. export interface AssetBulkUploadCheckResult {
  524. /**
  525. *
  526. * @type {string}
  527. * @memberof AssetBulkUploadCheckResult
  528. */
  529. 'action': AssetBulkUploadCheckResultActionEnum;
  530. /**
  531. *
  532. * @type {string}
  533. * @memberof AssetBulkUploadCheckResult
  534. */
  535. 'assetId'?: string;
  536. /**
  537. *
  538. * @type {string}
  539. * @memberof AssetBulkUploadCheckResult
  540. */
  541. 'id': string;
  542. /**
  543. *
  544. * @type {string}
  545. * @memberof AssetBulkUploadCheckResult
  546. */
  547. 'reason'?: AssetBulkUploadCheckResultReasonEnum;
  548. }
  549. export const AssetBulkUploadCheckResultActionEnum = {
  550. Accept: 'accept',
  551. Reject: 'reject'
  552. } as const;
  553. export type AssetBulkUploadCheckResultActionEnum = typeof AssetBulkUploadCheckResultActionEnum[keyof typeof AssetBulkUploadCheckResultActionEnum];
  554. export const AssetBulkUploadCheckResultReasonEnum = {
  555. Duplicate: 'duplicate',
  556. UnsupportedFormat: 'unsupported-format'
  557. } as const;
  558. export type AssetBulkUploadCheckResultReasonEnum = typeof AssetBulkUploadCheckResultReasonEnum[keyof typeof AssetBulkUploadCheckResultReasonEnum];
  559. /**
  560. *
  561. * @export
  562. * @interface AssetFileUploadResponseDto
  563. */
  564. export interface AssetFileUploadResponseDto {
  565. /**
  566. *
  567. * @type {boolean}
  568. * @memberof AssetFileUploadResponseDto
  569. */
  570. 'duplicate': boolean;
  571. /**
  572. *
  573. * @type {string}
  574. * @memberof AssetFileUploadResponseDto
  575. */
  576. 'id': string;
  577. }
  578. /**
  579. *
  580. * @export
  581. * @interface AssetIdsDto
  582. */
  583. export interface AssetIdsDto {
  584. /**
  585. *
  586. * @type {Array<string>}
  587. * @memberof AssetIdsDto
  588. */
  589. 'assetIds': Array<string>;
  590. }
  591. /**
  592. *
  593. * @export
  594. * @interface AssetIdsResponseDto
  595. */
  596. export interface AssetIdsResponseDto {
  597. /**
  598. *
  599. * @type {string}
  600. * @memberof AssetIdsResponseDto
  601. */
  602. 'assetId': string;
  603. /**
  604. *
  605. * @type {string}
  606. * @memberof AssetIdsResponseDto
  607. */
  608. 'error'?: AssetIdsResponseDtoErrorEnum;
  609. /**
  610. *
  611. * @type {boolean}
  612. * @memberof AssetIdsResponseDto
  613. */
  614. 'success': boolean;
  615. }
  616. export const AssetIdsResponseDtoErrorEnum = {
  617. Duplicate: 'duplicate',
  618. NoPermission: 'no_permission',
  619. NotFound: 'not_found'
  620. } as const;
  621. export type AssetIdsResponseDtoErrorEnum = typeof AssetIdsResponseDtoErrorEnum[keyof typeof AssetIdsResponseDtoErrorEnum];
  622. /**
  623. *
  624. * @export
  625. * @enum {string}
  626. */
  627. export const AssetJobName = {
  628. RegenerateThumbnail: 'regenerate-thumbnail',
  629. RefreshMetadata: 'refresh-metadata',
  630. TranscodeVideo: 'transcode-video'
  631. } as const;
  632. export type AssetJobName = typeof AssetJobName[keyof typeof AssetJobName];
  633. /**
  634. *
  635. * @export
  636. * @interface AssetJobsDto
  637. */
  638. export interface AssetJobsDto {
  639. /**
  640. *
  641. * @type {Array<string>}
  642. * @memberof AssetJobsDto
  643. */
  644. 'assetIds': Array<string>;
  645. /**
  646. *
  647. * @type {AssetJobName}
  648. * @memberof AssetJobsDto
  649. */
  650. 'name': AssetJobName;
  651. }
  652. /**
  653. *
  654. * @export
  655. * @interface AssetResponseDto
  656. */
  657. export interface AssetResponseDto {
  658. /**
  659. * base64 encoded sha1 hash
  660. * @type {string}
  661. * @memberof AssetResponseDto
  662. */
  663. 'checksum': string;
  664. /**
  665. *
  666. * @type {string}
  667. * @memberof AssetResponseDto
  668. */
  669. 'deviceAssetId': string;
  670. /**
  671. *
  672. * @type {string}
  673. * @memberof AssetResponseDto
  674. */
  675. 'deviceId': string;
  676. /**
  677. *
  678. * @type {string}
  679. * @memberof AssetResponseDto
  680. */
  681. 'duration': string;
  682. /**
  683. *
  684. * @type {ExifResponseDto}
  685. * @memberof AssetResponseDto
  686. */
  687. 'exifInfo'?: ExifResponseDto;
  688. /**
  689. *
  690. * @type {string}
  691. * @memberof AssetResponseDto
  692. */
  693. 'fileCreatedAt': string;
  694. /**
  695. *
  696. * @type {string}
  697. * @memberof AssetResponseDto
  698. */
  699. 'fileModifiedAt': string;
  700. /**
  701. *
  702. * @type {boolean}
  703. * @memberof AssetResponseDto
  704. */
  705. 'hasMetadata': boolean;
  706. /**
  707. *
  708. * @type {string}
  709. * @memberof AssetResponseDto
  710. */
  711. 'id': string;
  712. /**
  713. *
  714. * @type {boolean}
  715. * @memberof AssetResponseDto
  716. */
  717. 'isArchived': boolean;
  718. /**
  719. *
  720. * @type {boolean}
  721. * @memberof AssetResponseDto
  722. */
  723. 'isExternal': boolean;
  724. /**
  725. *
  726. * @type {boolean}
  727. * @memberof AssetResponseDto
  728. */
  729. 'isFavorite': boolean;
  730. /**
  731. *
  732. * @type {boolean}
  733. * @memberof AssetResponseDto
  734. */
  735. 'isOffline': boolean;
  736. /**
  737. *
  738. * @type {boolean}
  739. * @memberof AssetResponseDto
  740. */
  741. 'isReadOnly': boolean;
  742. /**
  743. *
  744. * @type {boolean}
  745. * @memberof AssetResponseDto
  746. */
  747. 'isTrashed': boolean;
  748. /**
  749. *
  750. * @type {string}
  751. * @memberof AssetResponseDto
  752. */
  753. 'libraryId': string;
  754. /**
  755. *
  756. * @type {string}
  757. * @memberof AssetResponseDto
  758. */
  759. 'livePhotoVideoId'?: string | null;
  760. /**
  761. *
  762. * @type {string}
  763. * @memberof AssetResponseDto
  764. */
  765. 'localDateTime': string;
  766. /**
  767. *
  768. * @type {string}
  769. * @memberof AssetResponseDto
  770. */
  771. 'originalFileName': string;
  772. /**
  773. *
  774. * @type {string}
  775. * @memberof AssetResponseDto
  776. */
  777. 'originalPath': string;
  778. /**
  779. *
  780. * @type {UserResponseDto}
  781. * @memberof AssetResponseDto
  782. */
  783. 'owner'?: UserResponseDto;
  784. /**
  785. *
  786. * @type {string}
  787. * @memberof AssetResponseDto
  788. */
  789. 'ownerId': string;
  790. /**
  791. *
  792. * @type {Array<PersonResponseDto>}
  793. * @memberof AssetResponseDto
  794. */
  795. 'people'?: Array<PersonResponseDto>;
  796. /**
  797. *
  798. * @type {boolean}
  799. * @memberof AssetResponseDto
  800. */
  801. 'resized': boolean;
  802. /**
  803. *
  804. * @type {SmartInfoResponseDto}
  805. * @memberof AssetResponseDto
  806. */
  807. 'smartInfo'?: SmartInfoResponseDto;
  808. /**
  809. *
  810. * @type {Array<AssetResponseDto>}
  811. * @memberof AssetResponseDto
  812. */
  813. 'stack'?: Array<AssetResponseDto>;
  814. /**
  815. *
  816. * @type {number}
  817. * @memberof AssetResponseDto
  818. */
  819. 'stackCount': number | null;
  820. /**
  821. *
  822. * @type {string}
  823. * @memberof AssetResponseDto
  824. */
  825. 'stackParentId'?: string | null;
  826. /**
  827. *
  828. * @type {Array<TagResponseDto>}
  829. * @memberof AssetResponseDto
  830. */
  831. 'tags'?: Array<TagResponseDto>;
  832. /**
  833. *
  834. * @type {string}
  835. * @memberof AssetResponseDto
  836. */
  837. 'thumbhash': string | null;
  838. /**
  839. *
  840. * @type {AssetTypeEnum}
  841. * @memberof AssetResponseDto
  842. */
  843. 'type': AssetTypeEnum;
  844. /**
  845. *
  846. * @type {string}
  847. * @memberof AssetResponseDto
  848. */
  849. 'updatedAt': string;
  850. }
  851. /**
  852. *
  853. * @export
  854. * @interface AssetStatsResponseDto
  855. */
  856. export interface AssetStatsResponseDto {
  857. /**
  858. *
  859. * @type {number}
  860. * @memberof AssetStatsResponseDto
  861. */
  862. 'images': number;
  863. /**
  864. *
  865. * @type {number}
  866. * @memberof AssetStatsResponseDto
  867. */
  868. 'total': number;
  869. /**
  870. *
  871. * @type {number}
  872. * @memberof AssetStatsResponseDto
  873. */
  874. 'videos': number;
  875. }
  876. /**
  877. *
  878. * @export
  879. * @enum {string}
  880. */
  881. export const AssetTypeEnum = {
  882. Image: 'IMAGE',
  883. Video: 'VIDEO',
  884. Audio: 'AUDIO',
  885. Other: 'OTHER'
  886. } as const;
  887. export type AssetTypeEnum = typeof AssetTypeEnum[keyof typeof AssetTypeEnum];
  888. /**
  889. *
  890. * @export
  891. * @enum {string}
  892. */
  893. export const AudioCodec = {
  894. Mp3: 'mp3',
  895. Aac: 'aac',
  896. Libopus: 'libopus'
  897. } as const;
  898. export type AudioCodec = typeof AudioCodec[keyof typeof AudioCodec];
  899. /**
  900. *
  901. * @export
  902. * @interface AuditDeletesResponseDto
  903. */
  904. export interface AuditDeletesResponseDto {
  905. /**
  906. *
  907. * @type {Array<string>}
  908. * @memberof AuditDeletesResponseDto
  909. */
  910. 'ids': Array<string>;
  911. /**
  912. *
  913. * @type {boolean}
  914. * @memberof AuditDeletesResponseDto
  915. */
  916. 'needsFullSync': boolean;
  917. }
  918. /**
  919. *
  920. * @export
  921. * @interface AuthDeviceResponseDto
  922. */
  923. export interface AuthDeviceResponseDto {
  924. /**
  925. *
  926. * @type {string}
  927. * @memberof AuthDeviceResponseDto
  928. */
  929. 'createdAt': string;
  930. /**
  931. *
  932. * @type {boolean}
  933. * @memberof AuthDeviceResponseDto
  934. */
  935. 'current': boolean;
  936. /**
  937. *
  938. * @type {string}
  939. * @memberof AuthDeviceResponseDto
  940. */
  941. 'deviceOS': string;
  942. /**
  943. *
  944. * @type {string}
  945. * @memberof AuthDeviceResponseDto
  946. */
  947. 'deviceType': string;
  948. /**
  949. *
  950. * @type {string}
  951. * @memberof AuthDeviceResponseDto
  952. */
  953. 'id': string;
  954. /**
  955. *
  956. * @type {string}
  957. * @memberof AuthDeviceResponseDto
  958. */
  959. 'updatedAt': string;
  960. }
  961. /**
  962. *
  963. * @export
  964. * @interface BulkIdResponseDto
  965. */
  966. export interface BulkIdResponseDto {
  967. /**
  968. *
  969. * @type {string}
  970. * @memberof BulkIdResponseDto
  971. */
  972. 'error'?: BulkIdResponseDtoErrorEnum;
  973. /**
  974. *
  975. * @type {string}
  976. * @memberof BulkIdResponseDto
  977. */
  978. 'id': string;
  979. /**
  980. *
  981. * @type {boolean}
  982. * @memberof BulkIdResponseDto
  983. */
  984. 'success': boolean;
  985. }
  986. export const BulkIdResponseDtoErrorEnum = {
  987. Duplicate: 'duplicate',
  988. NoPermission: 'no_permission',
  989. NotFound: 'not_found',
  990. Unknown: 'unknown'
  991. } as const;
  992. export type BulkIdResponseDtoErrorEnum = typeof BulkIdResponseDtoErrorEnum[keyof typeof BulkIdResponseDtoErrorEnum];
  993. /**
  994. *
  995. * @export
  996. * @interface BulkIdsDto
  997. */
  998. export interface BulkIdsDto {
  999. /**
  1000. *
  1001. * @type {Array<string>}
  1002. * @memberof BulkIdsDto
  1003. */
  1004. 'ids': Array<string>;
  1005. }
  1006. /**
  1007. *
  1008. * @export
  1009. * @interface CLIPConfig
  1010. */
  1011. export interface CLIPConfig {
  1012. /**
  1013. *
  1014. * @type {boolean}
  1015. * @memberof CLIPConfig
  1016. */
  1017. 'enabled': boolean;
  1018. /**
  1019. *
  1020. * @type {CLIPMode}
  1021. * @memberof CLIPConfig
  1022. */
  1023. 'mode'?: CLIPMode;
  1024. /**
  1025. *
  1026. * @type {string}
  1027. * @memberof CLIPConfig
  1028. */
  1029. 'modelName': string;
  1030. /**
  1031. *
  1032. * @type {ModelType}
  1033. * @memberof CLIPConfig
  1034. */
  1035. 'modelType'?: ModelType;
  1036. }
  1037. /**
  1038. *
  1039. * @export
  1040. * @enum {string}
  1041. */
  1042. export const CLIPMode = {
  1043. Vision: 'vision',
  1044. Text: 'text'
  1045. } as const;
  1046. export type CLIPMode = typeof CLIPMode[keyof typeof CLIPMode];
  1047. /**
  1048. *
  1049. * @export
  1050. * @enum {string}
  1051. */
  1052. export const CQMode = {
  1053. Auto: 'auto',
  1054. Cqp: 'cqp',
  1055. Icq: 'icq'
  1056. } as const;
  1057. export type CQMode = typeof CQMode[keyof typeof CQMode];
  1058. /**
  1059. *
  1060. * @export
  1061. * @interface ChangePasswordDto
  1062. */
  1063. export interface ChangePasswordDto {
  1064. /**
  1065. *
  1066. * @type {string}
  1067. * @memberof ChangePasswordDto
  1068. */
  1069. 'newPassword': string;
  1070. /**
  1071. *
  1072. * @type {string}
  1073. * @memberof ChangePasswordDto
  1074. */
  1075. 'password': string;
  1076. }
  1077. /**
  1078. *
  1079. * @export
  1080. * @interface CheckExistingAssetsDto
  1081. */
  1082. export interface CheckExistingAssetsDto {
  1083. /**
  1084. *
  1085. * @type {Array<string>}
  1086. * @memberof CheckExistingAssetsDto
  1087. */
  1088. 'deviceAssetIds': Array<string>;
  1089. /**
  1090. *
  1091. * @type {string}
  1092. * @memberof CheckExistingAssetsDto
  1093. */
  1094. 'deviceId': string;
  1095. }
  1096. /**
  1097. *
  1098. * @export
  1099. * @interface CheckExistingAssetsResponseDto
  1100. */
  1101. export interface CheckExistingAssetsResponseDto {
  1102. /**
  1103. *
  1104. * @type {Array<string>}
  1105. * @memberof CheckExistingAssetsResponseDto
  1106. */
  1107. 'existingIds': Array<string>;
  1108. }
  1109. /**
  1110. *
  1111. * @export
  1112. * @enum {string}
  1113. */
  1114. export const CitiesFile = {
  1115. Cities15000: 'cities15000',
  1116. Cities5000: 'cities5000',
  1117. Cities1000: 'cities1000',
  1118. Cities500: 'cities500'
  1119. } as const;
  1120. export type CitiesFile = typeof CitiesFile[keyof typeof CitiesFile];
  1121. /**
  1122. *
  1123. * @export
  1124. * @interface ClassificationConfig
  1125. */
  1126. export interface ClassificationConfig {
  1127. /**
  1128. *
  1129. * @type {boolean}
  1130. * @memberof ClassificationConfig
  1131. */
  1132. 'enabled': boolean;
  1133. /**
  1134. *
  1135. * @type {number}
  1136. * @memberof ClassificationConfig
  1137. */
  1138. 'minScore': number;
  1139. /**
  1140. *
  1141. * @type {string}
  1142. * @memberof ClassificationConfig
  1143. */
  1144. 'modelName': string;
  1145. /**
  1146. *
  1147. * @type {ModelType}
  1148. * @memberof ClassificationConfig
  1149. */
  1150. 'modelType'?: ModelType;
  1151. }
  1152. /**
  1153. *
  1154. * @export
  1155. * @enum {string}
  1156. */
  1157. export const Colorspace = {
  1158. Srgb: 'srgb',
  1159. P3: 'p3'
  1160. } as const;
  1161. export type Colorspace = typeof Colorspace[keyof typeof Colorspace];
  1162. /**
  1163. *
  1164. * @export
  1165. * @interface CreateAlbumDto
  1166. */
  1167. export interface CreateAlbumDto {
  1168. /**
  1169. *
  1170. * @type {string}
  1171. * @memberof CreateAlbumDto
  1172. */
  1173. 'albumName': string;
  1174. /**
  1175. *
  1176. * @type {Array<string>}
  1177. * @memberof CreateAlbumDto
  1178. */
  1179. 'assetIds'?: Array<string>;
  1180. /**
  1181. *
  1182. * @type {string}
  1183. * @memberof CreateAlbumDto
  1184. */
  1185. 'description'?: string;
  1186. /**
  1187. *
  1188. * @type {Array<string>}
  1189. * @memberof CreateAlbumDto
  1190. */
  1191. 'sharedWithUserIds'?: Array<string>;
  1192. }
  1193. /**
  1194. *
  1195. * @export
  1196. * @interface CreateLibraryDto
  1197. */
  1198. export interface CreateLibraryDto {
  1199. /**
  1200. *
  1201. * @type {Array<string>}
  1202. * @memberof CreateLibraryDto
  1203. */
  1204. 'exclusionPatterns'?: Array<string>;
  1205. /**
  1206. *
  1207. * @type {Array<string>}
  1208. * @memberof CreateLibraryDto
  1209. */
  1210. 'importPaths'?: Array<string>;
  1211. /**
  1212. *
  1213. * @type {boolean}
  1214. * @memberof CreateLibraryDto
  1215. */
  1216. 'isVisible'?: boolean;
  1217. /**
  1218. *
  1219. * @type {string}
  1220. * @memberof CreateLibraryDto
  1221. */
  1222. 'name'?: string;
  1223. /**
  1224. *
  1225. * @type {LibraryType}
  1226. * @memberof CreateLibraryDto
  1227. */
  1228. 'type': LibraryType;
  1229. }
  1230. /**
  1231. *
  1232. * @export
  1233. * @interface CreateProfileImageResponseDto
  1234. */
  1235. export interface CreateProfileImageResponseDto {
  1236. /**
  1237. *
  1238. * @type {string}
  1239. * @memberof CreateProfileImageResponseDto
  1240. */
  1241. 'profileImagePath': string;
  1242. /**
  1243. *
  1244. * @type {string}
  1245. * @memberof CreateProfileImageResponseDto
  1246. */
  1247. 'userId': string;
  1248. }
  1249. /**
  1250. *
  1251. * @export
  1252. * @interface CreateTagDto
  1253. */
  1254. export interface CreateTagDto {
  1255. /**
  1256. *
  1257. * @type {string}
  1258. * @memberof CreateTagDto
  1259. */
  1260. 'name': string;
  1261. /**
  1262. *
  1263. * @type {TagTypeEnum}
  1264. * @memberof CreateTagDto
  1265. */
  1266. 'type': TagTypeEnum;
  1267. }
  1268. /**
  1269. *
  1270. * @export
  1271. * @interface CreateUserDto
  1272. */
  1273. export interface CreateUserDto {
  1274. /**
  1275. *
  1276. * @type {string}
  1277. * @memberof CreateUserDto
  1278. */
  1279. 'email': string;
  1280. /**
  1281. *
  1282. * @type {string}
  1283. * @memberof CreateUserDto
  1284. */
  1285. 'externalPath'?: string | null;
  1286. /**
  1287. *
  1288. * @type {boolean}
  1289. * @memberof CreateUserDto
  1290. */
  1291. 'memoriesEnabled'?: boolean;
  1292. /**
  1293. *
  1294. * @type {string}
  1295. * @memberof CreateUserDto
  1296. */
  1297. 'name': string;
  1298. /**
  1299. *
  1300. * @type {string}
  1301. * @memberof CreateUserDto
  1302. */
  1303. 'password': string;
  1304. /**
  1305. *
  1306. * @type {string}
  1307. * @memberof CreateUserDto
  1308. */
  1309. 'storageLabel'?: string | null;
  1310. }
  1311. /**
  1312. *
  1313. * @export
  1314. * @interface CuratedLocationsResponseDto
  1315. */
  1316. export interface CuratedLocationsResponseDto {
  1317. /**
  1318. *
  1319. * @type {string}
  1320. * @memberof CuratedLocationsResponseDto
  1321. */
  1322. 'city': string;
  1323. /**
  1324. *
  1325. * @type {string}
  1326. * @memberof CuratedLocationsResponseDto
  1327. */
  1328. 'deviceAssetId': string;
  1329. /**
  1330. *
  1331. * @type {string}
  1332. * @memberof CuratedLocationsResponseDto
  1333. */
  1334. 'deviceId': string;
  1335. /**
  1336. *
  1337. * @type {string}
  1338. * @memberof CuratedLocationsResponseDto
  1339. */
  1340. 'id': string;
  1341. /**
  1342. *
  1343. * @type {string}
  1344. * @memberof CuratedLocationsResponseDto
  1345. */
  1346. 'resizePath': string;
  1347. }
  1348. /**
  1349. *
  1350. * @export
  1351. * @interface CuratedObjectsResponseDto
  1352. */
  1353. export interface CuratedObjectsResponseDto {
  1354. /**
  1355. *
  1356. * @type {string}
  1357. * @memberof CuratedObjectsResponseDto
  1358. */
  1359. 'deviceAssetId': string;
  1360. /**
  1361. *
  1362. * @type {string}
  1363. * @memberof CuratedObjectsResponseDto
  1364. */
  1365. 'deviceId': string;
  1366. /**
  1367. *
  1368. * @type {string}
  1369. * @memberof CuratedObjectsResponseDto
  1370. */
  1371. 'id': string;
  1372. /**
  1373. *
  1374. * @type {string}
  1375. * @memberof CuratedObjectsResponseDto
  1376. */
  1377. 'object': string;
  1378. /**
  1379. *
  1380. * @type {string}
  1381. * @memberof CuratedObjectsResponseDto
  1382. */
  1383. 'resizePath': string;
  1384. }
  1385. /**
  1386. *
  1387. * @export
  1388. * @interface DownloadArchiveInfo
  1389. */
  1390. export interface DownloadArchiveInfo {
  1391. /**
  1392. *
  1393. * @type {Array<string>}
  1394. * @memberof DownloadArchiveInfo
  1395. */
  1396. 'assetIds': Array<string>;
  1397. /**
  1398. *
  1399. * @type {number}
  1400. * @memberof DownloadArchiveInfo
  1401. */
  1402. 'size': number;
  1403. }
  1404. /**
  1405. *
  1406. * @export
  1407. * @interface DownloadInfoDto
  1408. */
  1409. export interface DownloadInfoDto {
  1410. /**
  1411. *
  1412. * @type {string}
  1413. * @memberof DownloadInfoDto
  1414. */
  1415. 'albumId'?: string;
  1416. /**
  1417. *
  1418. * @type {number}
  1419. * @memberof DownloadInfoDto
  1420. */
  1421. 'archiveSize'?: number;
  1422. /**
  1423. *
  1424. * @type {Array<string>}
  1425. * @memberof DownloadInfoDto
  1426. */
  1427. 'assetIds'?: Array<string>;
  1428. /**
  1429. *
  1430. * @type {string}
  1431. * @memberof DownloadInfoDto
  1432. */
  1433. 'userId'?: string;
  1434. }
  1435. /**
  1436. *
  1437. * @export
  1438. * @interface DownloadResponseDto
  1439. */
  1440. export interface DownloadResponseDto {
  1441. /**
  1442. *
  1443. * @type {Array<DownloadArchiveInfo>}
  1444. * @memberof DownloadResponseDto
  1445. */
  1446. 'archives': Array<DownloadArchiveInfo>;
  1447. /**
  1448. *
  1449. * @type {number}
  1450. * @memberof DownloadResponseDto
  1451. */
  1452. 'totalSize': number;
  1453. }
  1454. /**
  1455. *
  1456. * @export
  1457. * @enum {string}
  1458. */
  1459. export const EntityType = {
  1460. Asset: 'ASSET',
  1461. Album: 'ALBUM'
  1462. } as const;
  1463. export type EntityType = typeof EntityType[keyof typeof EntityType];
  1464. /**
  1465. *
  1466. * @export
  1467. * @interface ExifResponseDto
  1468. */
  1469. export interface ExifResponseDto {
  1470. /**
  1471. *
  1472. * @type {string}
  1473. * @memberof ExifResponseDto
  1474. */
  1475. 'city'?: string | null;
  1476. /**
  1477. *
  1478. * @type {string}
  1479. * @memberof ExifResponseDto
  1480. */
  1481. 'country'?: string | null;
  1482. /**
  1483. *
  1484. * @type {string}
  1485. * @memberof ExifResponseDto
  1486. */
  1487. 'dateTimeOriginal'?: string | null;
  1488. /**
  1489. *
  1490. * @type {string}
  1491. * @memberof ExifResponseDto
  1492. */
  1493. 'description'?: string | null;
  1494. /**
  1495. *
  1496. * @type {number}
  1497. * @memberof ExifResponseDto
  1498. */
  1499. 'exifImageHeight'?: number | null;
  1500. /**
  1501. *
  1502. * @type {number}
  1503. * @memberof ExifResponseDto
  1504. */
  1505. 'exifImageWidth'?: number | null;
  1506. /**
  1507. *
  1508. * @type {string}
  1509. * @memberof ExifResponseDto
  1510. */
  1511. 'exposureTime'?: string | null;
  1512. /**
  1513. *
  1514. * @type {number}
  1515. * @memberof ExifResponseDto
  1516. */
  1517. 'fNumber'?: number | null;
  1518. /**
  1519. *
  1520. * @type {number}
  1521. * @memberof ExifResponseDto
  1522. */
  1523. 'fileSizeInByte'?: number | null;
  1524. /**
  1525. *
  1526. * @type {number}
  1527. * @memberof ExifResponseDto
  1528. */
  1529. 'focalLength'?: number | null;
  1530. /**
  1531. *
  1532. * @type {number}
  1533. * @memberof ExifResponseDto
  1534. */
  1535. 'iso'?: number | null;
  1536. /**
  1537. *
  1538. * @type {number}
  1539. * @memberof ExifResponseDto
  1540. */
  1541. 'latitude'?: number | null;
  1542. /**
  1543. *
  1544. * @type {string}
  1545. * @memberof ExifResponseDto
  1546. */
  1547. 'lensModel'?: string | null;
  1548. /**
  1549. *
  1550. * @type {number}
  1551. * @memberof ExifResponseDto
  1552. */
  1553. 'longitude'?: number | null;
  1554. /**
  1555. *
  1556. * @type {string}
  1557. * @memberof ExifResponseDto
  1558. */
  1559. 'make'?: string | null;
  1560. /**
  1561. *
  1562. * @type {string}
  1563. * @memberof ExifResponseDto
  1564. */
  1565. 'model'?: string | null;
  1566. /**
  1567. *
  1568. * @type {string}
  1569. * @memberof ExifResponseDto
  1570. */
  1571. 'modifyDate'?: string | null;
  1572. /**
  1573. *
  1574. * @type {string}
  1575. * @memberof ExifResponseDto
  1576. */
  1577. 'orientation'?: string | null;
  1578. /**
  1579. *
  1580. * @type {string}
  1581. * @memberof ExifResponseDto
  1582. */
  1583. 'projectionType'?: string | null;
  1584. /**
  1585. *
  1586. * @type {string}
  1587. * @memberof ExifResponseDto
  1588. */
  1589. 'state'?: string | null;
  1590. /**
  1591. *
  1592. * @type {string}
  1593. * @memberof ExifResponseDto
  1594. */
  1595. 'timeZone'?: string | null;
  1596. }
  1597. /**
  1598. *
  1599. * @export
  1600. * @interface FileChecksumDto
  1601. */
  1602. export interface FileChecksumDto {
  1603. /**
  1604. *
  1605. * @type {Array<string>}
  1606. * @memberof FileChecksumDto
  1607. */
  1608. 'filenames': Array<string>;
  1609. }
  1610. /**
  1611. *
  1612. * @export
  1613. * @interface FileChecksumResponseDto
  1614. */
  1615. export interface FileChecksumResponseDto {
  1616. /**
  1617. *
  1618. * @type {string}
  1619. * @memberof FileChecksumResponseDto
  1620. */
  1621. 'checksum': string;
  1622. /**
  1623. *
  1624. * @type {string}
  1625. * @memberof FileChecksumResponseDto
  1626. */
  1627. 'filename': string;
  1628. }
  1629. /**
  1630. *
  1631. * @export
  1632. * @interface FileReportDto
  1633. */
  1634. export interface FileReportDto {
  1635. /**
  1636. *
  1637. * @type {Array<string>}
  1638. * @memberof FileReportDto
  1639. */
  1640. 'extras': Array<string>;
  1641. /**
  1642. *
  1643. * @type {Array<FileReportItemDto>}
  1644. * @memberof FileReportDto
  1645. */
  1646. 'orphans': Array<FileReportItemDto>;
  1647. }
  1648. /**
  1649. *
  1650. * @export
  1651. * @interface FileReportFixDto
  1652. */
  1653. export interface FileReportFixDto {
  1654. /**
  1655. *
  1656. * @type {Array<FileReportItemDto>}
  1657. * @memberof FileReportFixDto
  1658. */
  1659. 'items': Array<FileReportItemDto>;
  1660. }
  1661. /**
  1662. *
  1663. * @export
  1664. * @interface FileReportItemDto
  1665. */
  1666. export interface FileReportItemDto {
  1667. /**
  1668. *
  1669. * @type {string}
  1670. * @memberof FileReportItemDto
  1671. */
  1672. 'checksum'?: string;
  1673. /**
  1674. *
  1675. * @type {string}
  1676. * @memberof FileReportItemDto
  1677. */
  1678. 'entityId': string;
  1679. /**
  1680. *
  1681. * @type {PathEntityType}
  1682. * @memberof FileReportItemDto
  1683. */
  1684. 'entityType': PathEntityType;
  1685. /**
  1686. *
  1687. * @type {PathType}
  1688. * @memberof FileReportItemDto
  1689. */
  1690. 'pathType': PathType;
  1691. /**
  1692. *
  1693. * @type {string}
  1694. * @memberof FileReportItemDto
  1695. */
  1696. 'pathValue': string;
  1697. }
  1698. /**
  1699. *
  1700. * @export
  1701. * @interface ImportAssetDto
  1702. */
  1703. export interface ImportAssetDto {
  1704. /**
  1705. *
  1706. * @type {string}
  1707. * @memberof ImportAssetDto
  1708. */
  1709. 'assetPath': string;
  1710. /**
  1711. *
  1712. * @type {string}
  1713. * @memberof ImportAssetDto
  1714. */
  1715. 'deviceAssetId': string;
  1716. /**
  1717. *
  1718. * @type {string}
  1719. * @memberof ImportAssetDto
  1720. */
  1721. 'deviceId': string;
  1722. /**
  1723. *
  1724. * @type {string}
  1725. * @memberof ImportAssetDto
  1726. */
  1727. 'duration'?: string;
  1728. /**
  1729. *
  1730. * @type {string}
  1731. * @memberof ImportAssetDto
  1732. */
  1733. 'fileCreatedAt': string;
  1734. /**
  1735. *
  1736. * @type {string}
  1737. * @memberof ImportAssetDto
  1738. */
  1739. 'fileModifiedAt': string;
  1740. /**
  1741. *
  1742. * @type {boolean}
  1743. * @memberof ImportAssetDto
  1744. */
  1745. 'isArchived'?: boolean;
  1746. /**
  1747. *
  1748. * @type {boolean}
  1749. * @memberof ImportAssetDto
  1750. */
  1751. 'isExternal'?: boolean;
  1752. /**
  1753. *
  1754. * @type {boolean}
  1755. * @memberof ImportAssetDto
  1756. */
  1757. 'isFavorite'?: boolean;
  1758. /**
  1759. *
  1760. * @type {boolean}
  1761. * @memberof ImportAssetDto
  1762. */
  1763. 'isOffline'?: boolean;
  1764. /**
  1765. *
  1766. * @type {boolean}
  1767. * @memberof ImportAssetDto
  1768. */
  1769. 'isReadOnly'?: boolean;
  1770. /**
  1771. *
  1772. * @type {boolean}
  1773. * @memberof ImportAssetDto
  1774. */
  1775. 'isVisible'?: boolean;
  1776. /**
  1777. *
  1778. * @type {string}
  1779. * @memberof ImportAssetDto
  1780. */
  1781. 'libraryId'?: string;
  1782. /**
  1783. *
  1784. * @type {string}
  1785. * @memberof ImportAssetDto
  1786. */
  1787. 'sidecarPath'?: string;
  1788. }
  1789. /**
  1790. *
  1791. * @export
  1792. * @enum {string}
  1793. */
  1794. export const JobCommand = {
  1795. Start: 'start',
  1796. Pause: 'pause',
  1797. Resume: 'resume',
  1798. Empty: 'empty'
  1799. } as const;
  1800. export type JobCommand = typeof JobCommand[keyof typeof JobCommand];
  1801. /**
  1802. *
  1803. * @export
  1804. * @interface JobCommandDto
  1805. */
  1806. export interface JobCommandDto {
  1807. /**
  1808. *
  1809. * @type {JobCommand}
  1810. * @memberof JobCommandDto
  1811. */
  1812. 'command': JobCommand;
  1813. /**
  1814. *
  1815. * @type {boolean}
  1816. * @memberof JobCommandDto
  1817. */
  1818. 'force': boolean;
  1819. }
  1820. /**
  1821. *
  1822. * @export
  1823. * @interface JobCountsDto
  1824. */
  1825. export interface JobCountsDto {
  1826. /**
  1827. *
  1828. * @type {number}
  1829. * @memberof JobCountsDto
  1830. */
  1831. 'active': number;
  1832. /**
  1833. *
  1834. * @type {number}
  1835. * @memberof JobCountsDto
  1836. */
  1837. 'completed': number;
  1838. /**
  1839. *
  1840. * @type {number}
  1841. * @memberof JobCountsDto
  1842. */
  1843. 'delayed': number;
  1844. /**
  1845. *
  1846. * @type {number}
  1847. * @memberof JobCountsDto
  1848. */
  1849. 'failed': number;
  1850. /**
  1851. *
  1852. * @type {number}
  1853. * @memberof JobCountsDto
  1854. */
  1855. 'paused': number;
  1856. /**
  1857. *
  1858. * @type {number}
  1859. * @memberof JobCountsDto
  1860. */
  1861. 'waiting': number;
  1862. }
  1863. /**
  1864. *
  1865. * @export
  1866. * @enum {string}
  1867. */
  1868. export const JobName = {
  1869. ThumbnailGeneration: 'thumbnailGeneration',
  1870. MetadataExtraction: 'metadataExtraction',
  1871. VideoConversion: 'videoConversion',
  1872. ObjectTagging: 'objectTagging',
  1873. RecognizeFaces: 'recognizeFaces',
  1874. ClipEncoding: 'clipEncoding',
  1875. BackgroundTask: 'backgroundTask',
  1876. StorageTemplateMigration: 'storageTemplateMigration',
  1877. Migration: 'migration',
  1878. Search: 'search',
  1879. Sidecar: 'sidecar',
  1880. Library: 'library'
  1881. } as const;
  1882. export type JobName = typeof JobName[keyof typeof JobName];
  1883. /**
  1884. *
  1885. * @export
  1886. * @interface JobSettingsDto
  1887. */
  1888. export interface JobSettingsDto {
  1889. /**
  1890. *
  1891. * @type {number}
  1892. * @memberof JobSettingsDto
  1893. */
  1894. 'concurrency': number;
  1895. }
  1896. /**
  1897. *
  1898. * @export
  1899. * @interface JobStatusDto
  1900. */
  1901. export interface JobStatusDto {
  1902. /**
  1903. *
  1904. * @type {JobCountsDto}
  1905. * @memberof JobStatusDto
  1906. */
  1907. 'jobCounts': JobCountsDto;
  1908. /**
  1909. *
  1910. * @type {QueueStatusDto}
  1911. * @memberof JobStatusDto
  1912. */
  1913. 'queueStatus': QueueStatusDto;
  1914. }
  1915. /**
  1916. *
  1917. * @export
  1918. * @interface LibraryResponseDto
  1919. */
  1920. export interface LibraryResponseDto {
  1921. /**
  1922. *
  1923. * @type {number}
  1924. * @memberof LibraryResponseDto
  1925. */
  1926. 'assetCount': number;
  1927. /**
  1928. *
  1929. * @type {string}
  1930. * @memberof LibraryResponseDto
  1931. */
  1932. 'createdAt': string;
  1933. /**
  1934. *
  1935. * @type {Array<string>}
  1936. * @memberof LibraryResponseDto
  1937. */
  1938. 'exclusionPatterns': Array<string>;
  1939. /**
  1940. *
  1941. * @type {string}
  1942. * @memberof LibraryResponseDto
  1943. */
  1944. 'id': string;
  1945. /**
  1946. *
  1947. * @type {Array<string>}
  1948. * @memberof LibraryResponseDto
  1949. */
  1950. 'importPaths': Array<string>;
  1951. /**
  1952. *
  1953. * @type {string}
  1954. * @memberof LibraryResponseDto
  1955. */
  1956. 'name': string;
  1957. /**
  1958. *
  1959. * @type {string}
  1960. * @memberof LibraryResponseDto
  1961. */
  1962. 'ownerId': string;
  1963. /**
  1964. *
  1965. * @type {string}
  1966. * @memberof LibraryResponseDto
  1967. */
  1968. 'refreshedAt': string | null;
  1969. /**
  1970. *
  1971. * @type {LibraryType}
  1972. * @memberof LibraryResponseDto
  1973. */
  1974. 'type': LibraryType;
  1975. /**
  1976. *
  1977. * @type {string}
  1978. * @memberof LibraryResponseDto
  1979. */
  1980. 'updatedAt': string;
  1981. }
  1982. /**
  1983. *
  1984. * @export
  1985. * @interface LibraryStatsResponseDto
  1986. */
  1987. export interface LibraryStatsResponseDto {
  1988. /**
  1989. *
  1990. * @type {number}
  1991. * @memberof LibraryStatsResponseDto
  1992. */
  1993. 'photos': number;
  1994. /**
  1995. *
  1996. * @type {number}
  1997. * @memberof LibraryStatsResponseDto
  1998. */
  1999. 'total': number;
  2000. /**
  2001. *
  2002. * @type {number}
  2003. * @memberof LibraryStatsResponseDto
  2004. */
  2005. 'usage': number;
  2006. /**
  2007. *
  2008. * @type {number}
  2009. * @memberof LibraryStatsResponseDto
  2010. */
  2011. 'videos': number;
  2012. }
  2013. /**
  2014. *
  2015. * @export
  2016. * @enum {string}
  2017. */
  2018. export const LibraryType = {
  2019. Upload: 'UPLOAD',
  2020. External: 'EXTERNAL'
  2021. } as const;
  2022. export type LibraryType = typeof LibraryType[keyof typeof LibraryType];
  2023. /**
  2024. *
  2025. * @export
  2026. * @interface LoginCredentialDto
  2027. */
  2028. export interface LoginCredentialDto {
  2029. /**
  2030. *
  2031. * @type {string}
  2032. * @memberof LoginCredentialDto
  2033. */
  2034. 'email': string;
  2035. /**
  2036. *
  2037. * @type {string}
  2038. * @memberof LoginCredentialDto
  2039. */
  2040. 'password': string;
  2041. }
  2042. /**
  2043. *
  2044. * @export
  2045. * @interface LoginResponseDto
  2046. */
  2047. export interface LoginResponseDto {
  2048. /**
  2049. *
  2050. * @type {string}
  2051. * @memberof LoginResponseDto
  2052. */
  2053. 'accessToken': string;
  2054. /**
  2055. *
  2056. * @type {boolean}
  2057. * @memberof LoginResponseDto
  2058. */
  2059. 'isAdmin': boolean;
  2060. /**
  2061. *
  2062. * @type {string}
  2063. * @memberof LoginResponseDto
  2064. */
  2065. 'name': string;
  2066. /**
  2067. *
  2068. * @type {string}
  2069. * @memberof LoginResponseDto
  2070. */
  2071. 'profileImagePath': string;
  2072. /**
  2073. *
  2074. * @type {boolean}
  2075. * @memberof LoginResponseDto
  2076. */
  2077. 'shouldChangePassword': boolean;
  2078. /**
  2079. *
  2080. * @type {string}
  2081. * @memberof LoginResponseDto
  2082. */
  2083. 'userEmail': string;
  2084. /**
  2085. *
  2086. * @type {string}
  2087. * @memberof LoginResponseDto
  2088. */
  2089. 'userId': string;
  2090. }
  2091. /**
  2092. *
  2093. * @export
  2094. * @interface LogoutResponseDto
  2095. */
  2096. export interface LogoutResponseDto {
  2097. /**
  2098. *
  2099. * @type {string}
  2100. * @memberof LogoutResponseDto
  2101. */
  2102. 'redirectUri': string;
  2103. /**
  2104. *
  2105. * @type {boolean}
  2106. * @memberof LogoutResponseDto
  2107. */
  2108. 'successful': boolean;
  2109. }
  2110. /**
  2111. *
  2112. * @export
  2113. * @interface MapMarkerResponseDto
  2114. */
  2115. export interface MapMarkerResponseDto {
  2116. /**
  2117. *
  2118. * @type {string}
  2119. * @memberof MapMarkerResponseDto
  2120. */
  2121. 'id': string;
  2122. /**
  2123. *
  2124. * @type {number}
  2125. * @memberof MapMarkerResponseDto
  2126. */
  2127. 'lat': number;
  2128. /**
  2129. *
  2130. * @type {number}
  2131. * @memberof MapMarkerResponseDto
  2132. */
  2133. 'lon': number;
  2134. }
  2135. /**
  2136. *
  2137. * @export
  2138. * @enum {string}
  2139. */
  2140. export const MapTheme = {
  2141. Light: 'light',
  2142. Dark: 'dark'
  2143. } as const;
  2144. export type MapTheme = typeof MapTheme[keyof typeof MapTheme];
  2145. /**
  2146. *
  2147. * @export
  2148. * @interface MemoryLaneResponseDto
  2149. */
  2150. export interface MemoryLaneResponseDto {
  2151. /**
  2152. *
  2153. * @type {Array<AssetResponseDto>}
  2154. * @memberof MemoryLaneResponseDto
  2155. */
  2156. 'assets': Array<AssetResponseDto>;
  2157. /**
  2158. *
  2159. * @type {string}
  2160. * @memberof MemoryLaneResponseDto
  2161. */
  2162. 'title': string;
  2163. }
  2164. /**
  2165. *
  2166. * @export
  2167. * @interface MergePersonDto
  2168. */
  2169. export interface MergePersonDto {
  2170. /**
  2171. *
  2172. * @type {Array<string>}
  2173. * @memberof MergePersonDto
  2174. */
  2175. 'ids': Array<string>;
  2176. }
  2177. /**
  2178. *
  2179. * @export
  2180. * @enum {string}
  2181. */
  2182. export const ModelType = {
  2183. ImageClassification: 'image-classification',
  2184. FacialRecognition: 'facial-recognition',
  2185. Clip: 'clip'
  2186. } as const;
  2187. export type ModelType = typeof ModelType[keyof typeof ModelType];
  2188. /**
  2189. *
  2190. * @export
  2191. * @interface OAuthAuthorizeResponseDto
  2192. */
  2193. export interface OAuthAuthorizeResponseDto {
  2194. /**
  2195. *
  2196. * @type {string}
  2197. * @memberof OAuthAuthorizeResponseDto
  2198. */
  2199. 'url': string;
  2200. }
  2201. /**
  2202. *
  2203. * @export
  2204. * @interface OAuthCallbackDto
  2205. */
  2206. export interface OAuthCallbackDto {
  2207. /**
  2208. *
  2209. * @type {string}
  2210. * @memberof OAuthCallbackDto
  2211. */
  2212. 'url': string;
  2213. }
  2214. /**
  2215. *
  2216. * @export
  2217. * @interface OAuthConfigDto
  2218. */
  2219. export interface OAuthConfigDto {
  2220. /**
  2221. *
  2222. * @type {string}
  2223. * @memberof OAuthConfigDto
  2224. */
  2225. 'redirectUri': string;
  2226. }
  2227. /**
  2228. *
  2229. * @export
  2230. * @interface OAuthConfigResponseDto
  2231. */
  2232. export interface OAuthConfigResponseDto {
  2233. /**
  2234. *
  2235. * @type {boolean}
  2236. * @memberof OAuthConfigResponseDto
  2237. */
  2238. 'autoLaunch'?: boolean;
  2239. /**
  2240. *
  2241. * @type {string}
  2242. * @memberof OAuthConfigResponseDto
  2243. */
  2244. 'buttonText'?: string;
  2245. /**
  2246. *
  2247. * @type {boolean}
  2248. * @memberof OAuthConfigResponseDto
  2249. */
  2250. 'enabled': boolean;
  2251. /**
  2252. *
  2253. * @type {boolean}
  2254. * @memberof OAuthConfigResponseDto
  2255. */
  2256. 'passwordLoginEnabled': boolean;
  2257. /**
  2258. *
  2259. * @type {string}
  2260. * @memberof OAuthConfigResponseDto
  2261. */
  2262. 'url'?: string;
  2263. }
  2264. /**
  2265. *
  2266. * @export
  2267. * @interface PartnerResponseDto
  2268. */
  2269. export interface PartnerResponseDto {
  2270. /**
  2271. *
  2272. * @type {string}
  2273. * @memberof PartnerResponseDto
  2274. */
  2275. 'createdAt': string;
  2276. /**
  2277. *
  2278. * @type {string}
  2279. * @memberof PartnerResponseDto
  2280. */
  2281. 'deletedAt': string | null;
  2282. /**
  2283. *
  2284. * @type {string}
  2285. * @memberof PartnerResponseDto
  2286. */
  2287. 'email': string;
  2288. /**
  2289. *
  2290. * @type {string}
  2291. * @memberof PartnerResponseDto
  2292. */
  2293. 'externalPath': string | null;
  2294. /**
  2295. *
  2296. * @type {string}
  2297. * @memberof PartnerResponseDto
  2298. */
  2299. 'id': string;
  2300. /**
  2301. *
  2302. * @type {boolean}
  2303. * @memberof PartnerResponseDto
  2304. */
  2305. 'inTimeline'?: boolean;
  2306. /**
  2307. *
  2308. * @type {boolean}
  2309. * @memberof PartnerResponseDto
  2310. */
  2311. 'isAdmin': boolean;
  2312. /**
  2313. *
  2314. * @type {boolean}
  2315. * @memberof PartnerResponseDto
  2316. */
  2317. 'memoriesEnabled'?: boolean;
  2318. /**
  2319. *
  2320. * @type {string}
  2321. * @memberof PartnerResponseDto
  2322. */
  2323. 'name': string;
  2324. /**
  2325. *
  2326. * @type {string}
  2327. * @memberof PartnerResponseDto
  2328. */
  2329. 'oauthId': string;
  2330. /**
  2331. *
  2332. * @type {string}
  2333. * @memberof PartnerResponseDto
  2334. */
  2335. 'profileImagePath': string;
  2336. /**
  2337. *
  2338. * @type {boolean}
  2339. * @memberof PartnerResponseDto
  2340. */
  2341. 'shouldChangePassword': boolean;
  2342. /**
  2343. *
  2344. * @type {string}
  2345. * @memberof PartnerResponseDto
  2346. */
  2347. 'storageLabel': string | null;
  2348. /**
  2349. *
  2350. * @type {string}
  2351. * @memberof PartnerResponseDto
  2352. */
  2353. 'updatedAt': string;
  2354. }
  2355. /**
  2356. *
  2357. * @export
  2358. * @enum {string}
  2359. */
  2360. export const PathEntityType = {
  2361. Asset: 'asset',
  2362. Person: 'person',
  2363. User: 'user'
  2364. } as const;
  2365. export type PathEntityType = typeof PathEntityType[keyof typeof PathEntityType];
  2366. /**
  2367. *
  2368. * @export
  2369. * @enum {string}
  2370. */
  2371. export const PathType = {
  2372. Original: 'original',
  2373. JpegThumbnail: 'jpeg_thumbnail',
  2374. WebpThumbnail: 'webp_thumbnail',
  2375. EncodedVideo: 'encoded_video',
  2376. Sidecar: 'sidecar',
  2377. Face: 'face',
  2378. Profile: 'profile'
  2379. } as const;
  2380. export type PathType = typeof PathType[keyof typeof PathType];
  2381. /**
  2382. *
  2383. * @export
  2384. * @interface PeopleResponseDto
  2385. */
  2386. export interface PeopleResponseDto {
  2387. /**
  2388. *
  2389. * @type {Array<PersonResponseDto>}
  2390. * @memberof PeopleResponseDto
  2391. */
  2392. 'people': Array<PersonResponseDto>;
  2393. /**
  2394. *
  2395. * @type {number}
  2396. * @memberof PeopleResponseDto
  2397. */
  2398. 'total': number;
  2399. /**
  2400. *
  2401. * @type {number}
  2402. * @memberof PeopleResponseDto
  2403. */
  2404. 'visible': number;
  2405. }
  2406. /**
  2407. *
  2408. * @export
  2409. * @interface PeopleUpdateDto
  2410. */
  2411. export interface PeopleUpdateDto {
  2412. /**
  2413. *
  2414. * @type {Array<PeopleUpdateItem>}
  2415. * @memberof PeopleUpdateDto
  2416. */
  2417. 'people': Array<PeopleUpdateItem>;
  2418. }
  2419. /**
  2420. *
  2421. * @export
  2422. * @interface PeopleUpdateItem
  2423. */
  2424. export interface PeopleUpdateItem {
  2425. /**
  2426. * Person date of birth. Note: the mobile app cannot currently set the birth date to null.
  2427. * @type {string}
  2428. * @memberof PeopleUpdateItem
  2429. */
  2430. 'birthDate'?: string | null;
  2431. /**
  2432. * Asset is used to get the feature face thumbnail.
  2433. * @type {string}
  2434. * @memberof PeopleUpdateItem
  2435. */
  2436. 'featureFaceAssetId'?: string;
  2437. /**
  2438. * Person id.
  2439. * @type {string}
  2440. * @memberof PeopleUpdateItem
  2441. */
  2442. 'id': string;
  2443. /**
  2444. * Person visibility
  2445. * @type {boolean}
  2446. * @memberof PeopleUpdateItem
  2447. */
  2448. 'isHidden'?: boolean;
  2449. /**
  2450. * Person name.
  2451. * @type {string}
  2452. * @memberof PeopleUpdateItem
  2453. */
  2454. 'name'?: string;
  2455. }
  2456. /**
  2457. *
  2458. * @export
  2459. * @interface PersonResponseDto
  2460. */
  2461. export interface PersonResponseDto {
  2462. /**
  2463. *
  2464. * @type {string}
  2465. * @memberof PersonResponseDto
  2466. */
  2467. 'birthDate': string | null;
  2468. /**
  2469. *
  2470. * @type {string}
  2471. * @memberof PersonResponseDto
  2472. */
  2473. 'id': string;
  2474. /**
  2475. *
  2476. * @type {boolean}
  2477. * @memberof PersonResponseDto
  2478. */
  2479. 'isHidden': boolean;
  2480. /**
  2481. *
  2482. * @type {string}
  2483. * @memberof PersonResponseDto
  2484. */
  2485. 'name': string;
  2486. /**
  2487. *
  2488. * @type {string}
  2489. * @memberof PersonResponseDto
  2490. */
  2491. 'thumbnailPath': string;
  2492. }
  2493. /**
  2494. *
  2495. * @export
  2496. * @interface PersonStatisticsResponseDto
  2497. */
  2498. export interface PersonStatisticsResponseDto {
  2499. /**
  2500. *
  2501. * @type {number}
  2502. * @memberof PersonStatisticsResponseDto
  2503. */
  2504. 'assets': number;
  2505. }
  2506. /**
  2507. *
  2508. * @export
  2509. * @interface PersonUpdateDto
  2510. */
  2511. export interface PersonUpdateDto {
  2512. /**
  2513. * Person date of birth. Note: the mobile app cannot currently set the birth date to null.
  2514. * @type {string}
  2515. * @memberof PersonUpdateDto
  2516. */
  2517. 'birthDate'?: string | null;
  2518. /**
  2519. * Asset is used to get the feature face thumbnail.
  2520. * @type {string}
  2521. * @memberof PersonUpdateDto
  2522. */
  2523. 'featureFaceAssetId'?: string;
  2524. /**
  2525. * Person visibility
  2526. * @type {boolean}
  2527. * @memberof PersonUpdateDto
  2528. */
  2529. 'isHidden'?: boolean;
  2530. /**
  2531. * Person name.
  2532. * @type {string}
  2533. * @memberof PersonUpdateDto
  2534. */
  2535. 'name'?: string;
  2536. }
  2537. /**
  2538. *
  2539. * @export
  2540. * @interface QueueStatusDto
  2541. */
  2542. export interface QueueStatusDto {
  2543. /**
  2544. *
  2545. * @type {boolean}
  2546. * @memberof QueueStatusDto
  2547. */
  2548. 'isActive': boolean;
  2549. /**
  2550. *
  2551. * @type {boolean}
  2552. * @memberof QueueStatusDto
  2553. */
  2554. 'isPaused': boolean;
  2555. }
  2556. /**
  2557. *
  2558. * @export
  2559. * @enum {string}
  2560. */
  2561. export const ReactionLevel = {
  2562. Album: 'album',
  2563. Asset: 'asset'
  2564. } as const;
  2565. export type ReactionLevel = typeof ReactionLevel[keyof typeof ReactionLevel];
  2566. /**
  2567. *
  2568. * @export
  2569. * @enum {string}
  2570. */
  2571. export const ReactionType = {
  2572. Comment: 'comment',
  2573. Like: 'like'
  2574. } as const;
  2575. export type ReactionType = typeof ReactionType[keyof typeof ReactionType];
  2576. /**
  2577. *
  2578. * @export
  2579. * @interface RecognitionConfig
  2580. */
  2581. export interface RecognitionConfig {
  2582. /**
  2583. *
  2584. * @type {boolean}
  2585. * @memberof RecognitionConfig
  2586. */
  2587. 'enabled': boolean;
  2588. /**
  2589. *
  2590. * @type {number}
  2591. * @memberof RecognitionConfig
  2592. */
  2593. 'maxDistance': number;
  2594. /**
  2595. *
  2596. * @type {number}
  2597. * @memberof RecognitionConfig
  2598. */
  2599. 'minFaces': number;
  2600. /**
  2601. *
  2602. * @type {number}
  2603. * @memberof RecognitionConfig
  2604. */
  2605. 'minScore': number;
  2606. /**
  2607. *
  2608. * @type {string}
  2609. * @memberof RecognitionConfig
  2610. */
  2611. 'modelName': string;
  2612. /**
  2613. *
  2614. * @type {ModelType}
  2615. * @memberof RecognitionConfig
  2616. */
  2617. 'modelType'?: ModelType;
  2618. }
  2619. /**
  2620. *
  2621. * @export
  2622. * @interface ScanLibraryDto
  2623. */
  2624. export interface ScanLibraryDto {
  2625. /**
  2626. *
  2627. * @type {boolean}
  2628. * @memberof ScanLibraryDto
  2629. */
  2630. 'refreshAllFiles'?: boolean;
  2631. /**
  2632. *
  2633. * @type {boolean}
  2634. * @memberof ScanLibraryDto
  2635. */
  2636. 'refreshModifiedFiles'?: boolean;
  2637. }
  2638. /**
  2639. *
  2640. * @export
  2641. * @interface SearchAlbumResponseDto
  2642. */
  2643. export interface SearchAlbumResponseDto {
  2644. /**
  2645. *
  2646. * @type {number}
  2647. * @memberof SearchAlbumResponseDto
  2648. */
  2649. 'count': number;
  2650. /**
  2651. *
  2652. * @type {Array<SearchFacetResponseDto>}
  2653. * @memberof SearchAlbumResponseDto
  2654. */
  2655. 'facets': Array<SearchFacetResponseDto>;
  2656. /**
  2657. *
  2658. * @type {Array<AlbumResponseDto>}
  2659. * @memberof SearchAlbumResponseDto
  2660. */
  2661. 'items': Array<AlbumResponseDto>;
  2662. /**
  2663. *
  2664. * @type {number}
  2665. * @memberof SearchAlbumResponseDto
  2666. */
  2667. 'total': number;
  2668. }
  2669. /**
  2670. *
  2671. * @export
  2672. * @interface SearchAssetDto
  2673. */
  2674. export interface SearchAssetDto {
  2675. /**
  2676. *
  2677. * @type {string}
  2678. * @memberof SearchAssetDto
  2679. */
  2680. 'searchTerm': string;
  2681. }
  2682. /**
  2683. *
  2684. * @export
  2685. * @interface SearchAssetResponseDto
  2686. */
  2687. export interface SearchAssetResponseDto {
  2688. /**
  2689. *
  2690. * @type {number}
  2691. * @memberof SearchAssetResponseDto
  2692. */
  2693. 'count': number;
  2694. /**
  2695. *
  2696. * @type {Array<SearchFacetResponseDto>}
  2697. * @memberof SearchAssetResponseDto
  2698. */
  2699. 'facets': Array<SearchFacetResponseDto>;
  2700. /**
  2701. *
  2702. * @type {Array<AssetResponseDto>}
  2703. * @memberof SearchAssetResponseDto
  2704. */
  2705. 'items': Array<AssetResponseDto>;
  2706. /**
  2707. *
  2708. * @type {number}
  2709. * @memberof SearchAssetResponseDto
  2710. */
  2711. 'total': number;
  2712. }
  2713. /**
  2714. *
  2715. * @export
  2716. * @interface SearchExploreItem
  2717. */
  2718. export interface SearchExploreItem {
  2719. /**
  2720. *
  2721. * @type {AssetResponseDto}
  2722. * @memberof SearchExploreItem
  2723. */
  2724. 'data': AssetResponseDto;
  2725. /**
  2726. *
  2727. * @type {string}
  2728. * @memberof SearchExploreItem
  2729. */
  2730. 'value': string;
  2731. }
  2732. /**
  2733. *
  2734. * @export
  2735. * @interface SearchExploreResponseDto
  2736. */
  2737. export interface SearchExploreResponseDto {
  2738. /**
  2739. *
  2740. * @type {string}
  2741. * @memberof SearchExploreResponseDto
  2742. */
  2743. 'fieldName': string;
  2744. /**
  2745. *
  2746. * @type {Array<SearchExploreItem>}
  2747. * @memberof SearchExploreResponseDto
  2748. */
  2749. 'items': Array<SearchExploreItem>;
  2750. }
  2751. /**
  2752. *
  2753. * @export
  2754. * @interface SearchFacetCountResponseDto
  2755. */
  2756. export interface SearchFacetCountResponseDto {
  2757. /**
  2758. *
  2759. * @type {number}
  2760. * @memberof SearchFacetCountResponseDto
  2761. */
  2762. 'count': number;
  2763. /**
  2764. *
  2765. * @type {string}
  2766. * @memberof SearchFacetCountResponseDto
  2767. */
  2768. 'value': string;
  2769. }
  2770. /**
  2771. *
  2772. * @export
  2773. * @interface SearchFacetResponseDto
  2774. */
  2775. export interface SearchFacetResponseDto {
  2776. /**
  2777. *
  2778. * @type {Array<SearchFacetCountResponseDto>}
  2779. * @memberof SearchFacetResponseDto
  2780. */
  2781. 'counts': Array<SearchFacetCountResponseDto>;
  2782. /**
  2783. *
  2784. * @type {string}
  2785. * @memberof SearchFacetResponseDto
  2786. */
  2787. 'fieldName': string;
  2788. }
  2789. /**
  2790. *
  2791. * @export
  2792. * @interface SearchResponseDto
  2793. */
  2794. export interface SearchResponseDto {
  2795. /**
  2796. *
  2797. * @type {SearchAlbumResponseDto}
  2798. * @memberof SearchResponseDto
  2799. */
  2800. 'albums': SearchAlbumResponseDto;
  2801. /**
  2802. *
  2803. * @type {SearchAssetResponseDto}
  2804. * @memberof SearchResponseDto
  2805. */
  2806. 'assets': SearchAssetResponseDto;
  2807. }
  2808. /**
  2809. *
  2810. * @export
  2811. * @interface ServerConfigDto
  2812. */
  2813. export interface ServerConfigDto {
  2814. /**
  2815. *
  2816. * @type {boolean}
  2817. * @memberof ServerConfigDto
  2818. */
  2819. 'isInitialized': boolean;
  2820. /**
  2821. *
  2822. * @type {string}
  2823. * @memberof ServerConfigDto
  2824. */
  2825. 'loginPageMessage': string;
  2826. /**
  2827. *
  2828. * @type {string}
  2829. * @memberof ServerConfigDto
  2830. */
  2831. 'oauthButtonText': string;
  2832. /**
  2833. *
  2834. * @type {number}
  2835. * @memberof ServerConfigDto
  2836. */
  2837. 'trashDays': number;
  2838. }
  2839. /**
  2840. *
  2841. * @export
  2842. * @interface ServerFeaturesDto
  2843. */
  2844. export interface ServerFeaturesDto {
  2845. /**
  2846. *
  2847. * @type {boolean}
  2848. * @memberof ServerFeaturesDto
  2849. */
  2850. 'clipEncode': boolean;
  2851. /**
  2852. *
  2853. * @type {boolean}
  2854. * @memberof ServerFeaturesDto
  2855. */
  2856. 'configFile': boolean;
  2857. /**
  2858. *
  2859. * @type {boolean}
  2860. * @memberof ServerFeaturesDto
  2861. */
  2862. 'facialRecognition': boolean;
  2863. /**
  2864. *
  2865. * @type {boolean}
  2866. * @memberof ServerFeaturesDto
  2867. */
  2868. 'map': boolean;
  2869. /**
  2870. *
  2871. * @type {boolean}
  2872. * @memberof ServerFeaturesDto
  2873. */
  2874. 'oauth': boolean;
  2875. /**
  2876. *
  2877. * @type {boolean}
  2878. * @memberof ServerFeaturesDto
  2879. */
  2880. 'oauthAutoLaunch': boolean;
  2881. /**
  2882. *
  2883. * @type {boolean}
  2884. * @memberof ServerFeaturesDto
  2885. */
  2886. 'passwordLogin': boolean;
  2887. /**
  2888. *
  2889. * @type {boolean}
  2890. * @memberof ServerFeaturesDto
  2891. */
  2892. 'reverseGeocoding': boolean;
  2893. /**
  2894. *
  2895. * @type {boolean}
  2896. * @memberof ServerFeaturesDto
  2897. */
  2898. 'search': boolean;
  2899. /**
  2900. *
  2901. * @type {boolean}
  2902. * @memberof ServerFeaturesDto
  2903. */
  2904. 'sidecar': boolean;
  2905. /**
  2906. *
  2907. * @type {boolean}
  2908. * @memberof ServerFeaturesDto
  2909. */
  2910. 'tagImage': boolean;
  2911. /**
  2912. *
  2913. * @type {boolean}
  2914. * @memberof ServerFeaturesDto
  2915. */
  2916. 'trash': boolean;
  2917. }
  2918. /**
  2919. *
  2920. * @export
  2921. * @interface ServerInfoResponseDto
  2922. */
  2923. export interface ServerInfoResponseDto {
  2924. /**
  2925. *
  2926. * @type {string}
  2927. * @memberof ServerInfoResponseDto
  2928. */
  2929. 'diskAvailable': string;
  2930. /**
  2931. *
  2932. * @type {number}
  2933. * @memberof ServerInfoResponseDto
  2934. */
  2935. 'diskAvailableRaw': number;
  2936. /**
  2937. *
  2938. * @type {string}
  2939. * @memberof ServerInfoResponseDto
  2940. */
  2941. 'diskSize': string;
  2942. /**
  2943. *
  2944. * @type {number}
  2945. * @memberof ServerInfoResponseDto
  2946. */
  2947. 'diskSizeRaw': number;
  2948. /**
  2949. *
  2950. * @type {number}
  2951. * @memberof ServerInfoResponseDto
  2952. */
  2953. 'diskUsagePercentage': number;
  2954. /**
  2955. *
  2956. * @type {string}
  2957. * @memberof ServerInfoResponseDto
  2958. */
  2959. 'diskUse': string;
  2960. /**
  2961. *
  2962. * @type {number}
  2963. * @memberof ServerInfoResponseDto
  2964. */
  2965. 'diskUseRaw': number;
  2966. }
  2967. /**
  2968. *
  2969. * @export
  2970. * @interface ServerMediaTypesResponseDto
  2971. */
  2972. export interface ServerMediaTypesResponseDto {
  2973. /**
  2974. *
  2975. * @type {Array<string>}
  2976. * @memberof ServerMediaTypesResponseDto
  2977. */
  2978. 'image': Array<string>;
  2979. /**
  2980. *
  2981. * @type {Array<string>}
  2982. * @memberof ServerMediaTypesResponseDto
  2983. */
  2984. 'sidecar': Array<string>;
  2985. /**
  2986. *
  2987. * @type {Array<string>}
  2988. * @memberof ServerMediaTypesResponseDto
  2989. */
  2990. 'video': Array<string>;
  2991. }
  2992. /**
  2993. *
  2994. * @export
  2995. * @interface ServerPingResponse
  2996. */
  2997. export interface ServerPingResponse {
  2998. /**
  2999. *
  3000. * @type {string}
  3001. * @memberof ServerPingResponse
  3002. */
  3003. 'res': string;
  3004. }
  3005. /**
  3006. *
  3007. * @export
  3008. * @interface ServerStatsResponseDto
  3009. */
  3010. export interface ServerStatsResponseDto {
  3011. /**
  3012. *
  3013. * @type {number}
  3014. * @memberof ServerStatsResponseDto
  3015. */
  3016. 'photos': number;
  3017. /**
  3018. *
  3019. * @type {number}
  3020. * @memberof ServerStatsResponseDto
  3021. */
  3022. 'usage': number;
  3023. /**
  3024. *
  3025. * @type {Array<UsageByUserDto>}
  3026. * @memberof ServerStatsResponseDto
  3027. */
  3028. 'usageByUser': Array<UsageByUserDto>;
  3029. /**
  3030. *
  3031. * @type {number}
  3032. * @memberof ServerStatsResponseDto
  3033. */
  3034. 'videos': number;
  3035. }
  3036. /**
  3037. *
  3038. * @export
  3039. * @interface ServerThemeDto
  3040. */
  3041. export interface ServerThemeDto {
  3042. /**
  3043. *
  3044. * @type {string}
  3045. * @memberof ServerThemeDto
  3046. */
  3047. 'customCss': string;
  3048. }
  3049. /**
  3050. *
  3051. * @export
  3052. * @interface ServerVersionResponseDto
  3053. */
  3054. export interface ServerVersionResponseDto {
  3055. /**
  3056. *
  3057. * @type {number}
  3058. * @memberof ServerVersionResponseDto
  3059. */
  3060. 'major': number;
  3061. /**
  3062. *
  3063. * @type {number}
  3064. * @memberof ServerVersionResponseDto
  3065. */
  3066. 'minor': number;
  3067. /**
  3068. *
  3069. * @type {number}
  3070. * @memberof ServerVersionResponseDto
  3071. */
  3072. 'patch': number;
  3073. }
  3074. /**
  3075. *
  3076. * @export
  3077. * @interface SharedLinkCreateDto
  3078. */
  3079. export interface SharedLinkCreateDto {
  3080. /**
  3081. *
  3082. * @type {string}
  3083. * @memberof SharedLinkCreateDto
  3084. */
  3085. 'albumId'?: string;
  3086. /**
  3087. *
  3088. * @type {boolean}
  3089. * @memberof SharedLinkCreateDto
  3090. */
  3091. 'allowDownload'?: boolean;
  3092. /**
  3093. *
  3094. * @type {boolean}
  3095. * @memberof SharedLinkCreateDto
  3096. */
  3097. 'allowUpload'?: boolean;
  3098. /**
  3099. *
  3100. * @type {Array<string>}
  3101. * @memberof SharedLinkCreateDto
  3102. */
  3103. 'assetIds'?: Array<string>;
  3104. /**
  3105. *
  3106. * @type {string}
  3107. * @memberof SharedLinkCreateDto
  3108. */
  3109. 'description'?: string;
  3110. /**
  3111. *
  3112. * @type {string}
  3113. * @memberof SharedLinkCreateDto
  3114. */
  3115. 'expiresAt'?: string | null;
  3116. /**
  3117. *
  3118. * @type {string}
  3119. * @memberof SharedLinkCreateDto
  3120. */
  3121. 'password'?: string;
  3122. /**
  3123. *
  3124. * @type {boolean}
  3125. * @memberof SharedLinkCreateDto
  3126. */
  3127. 'showMetadata'?: boolean;
  3128. /**
  3129. *
  3130. * @type {SharedLinkType}
  3131. * @memberof SharedLinkCreateDto
  3132. */
  3133. 'type': SharedLinkType;
  3134. }
  3135. /**
  3136. *
  3137. * @export
  3138. * @interface SharedLinkEditDto
  3139. */
  3140. export interface SharedLinkEditDto {
  3141. /**
  3142. *
  3143. * @type {boolean}
  3144. * @memberof SharedLinkEditDto
  3145. */
  3146. 'allowDownload'?: boolean;
  3147. /**
  3148. *
  3149. * @type {boolean}
  3150. * @memberof SharedLinkEditDto
  3151. */
  3152. 'allowUpload'?: boolean;
  3153. /**
  3154. * 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.
  3155. * @type {boolean}
  3156. * @memberof SharedLinkEditDto
  3157. */
  3158. 'changeExpiryTime'?: boolean;
  3159. /**
  3160. *
  3161. * @type {string}
  3162. * @memberof SharedLinkEditDto
  3163. */
  3164. 'description'?: string;
  3165. /**
  3166. *
  3167. * @type {string}
  3168. * @memberof SharedLinkEditDto
  3169. */
  3170. 'expiresAt'?: string | null;
  3171. /**
  3172. *
  3173. * @type {string}
  3174. * @memberof SharedLinkEditDto
  3175. */
  3176. 'password'?: string;
  3177. /**
  3178. *
  3179. * @type {boolean}
  3180. * @memberof SharedLinkEditDto
  3181. */
  3182. 'showMetadata'?: boolean;
  3183. }
  3184. /**
  3185. *
  3186. * @export
  3187. * @interface SharedLinkResponseDto
  3188. */
  3189. export interface SharedLinkResponseDto {
  3190. /**
  3191. *
  3192. * @type {AlbumResponseDto}
  3193. * @memberof SharedLinkResponseDto
  3194. */
  3195. 'album'?: AlbumResponseDto;
  3196. /**
  3197. *
  3198. * @type {boolean}
  3199. * @memberof SharedLinkResponseDto
  3200. */
  3201. 'allowDownload': boolean;
  3202. /**
  3203. *
  3204. * @type {boolean}
  3205. * @memberof SharedLinkResponseDto
  3206. */
  3207. 'allowUpload': boolean;
  3208. /**
  3209. *
  3210. * @type {Array<AssetResponseDto>}
  3211. * @memberof SharedLinkResponseDto
  3212. */
  3213. 'assets': Array<AssetResponseDto>;
  3214. /**
  3215. *
  3216. * @type {string}
  3217. * @memberof SharedLinkResponseDto
  3218. */
  3219. 'createdAt': string;
  3220. /**
  3221. *
  3222. * @type {string}
  3223. * @memberof SharedLinkResponseDto
  3224. */
  3225. 'description': string | null;
  3226. /**
  3227. *
  3228. * @type {string}
  3229. * @memberof SharedLinkResponseDto
  3230. */
  3231. 'expiresAt': string | null;
  3232. /**
  3233. *
  3234. * @type {string}
  3235. * @memberof SharedLinkResponseDto
  3236. */
  3237. 'id': string;
  3238. /**
  3239. *
  3240. * @type {string}
  3241. * @memberof SharedLinkResponseDto
  3242. */
  3243. 'key': string;
  3244. /**
  3245. *
  3246. * @type {string}
  3247. * @memberof SharedLinkResponseDto
  3248. */
  3249. 'password': string | null;
  3250. /**
  3251. *
  3252. * @type {boolean}
  3253. * @memberof SharedLinkResponseDto
  3254. */
  3255. 'showMetadata': boolean;
  3256. /**
  3257. *
  3258. * @type {string}
  3259. * @memberof SharedLinkResponseDto
  3260. */
  3261. 'token'?: string | null;
  3262. /**
  3263. *
  3264. * @type {SharedLinkType}
  3265. * @memberof SharedLinkResponseDto
  3266. */
  3267. 'type': SharedLinkType;
  3268. /**
  3269. *
  3270. * @type {string}
  3271. * @memberof SharedLinkResponseDto
  3272. */
  3273. 'userId': string;
  3274. }
  3275. /**
  3276. *
  3277. * @export
  3278. * @enum {string}
  3279. */
  3280. export const SharedLinkType = {
  3281. Album: 'ALBUM',
  3282. Individual: 'INDIVIDUAL'
  3283. } as const;
  3284. export type SharedLinkType = typeof SharedLinkType[keyof typeof SharedLinkType];
  3285. /**
  3286. *
  3287. * @export
  3288. * @interface SignUpDto
  3289. */
  3290. export interface SignUpDto {
  3291. /**
  3292. *
  3293. * @type {string}
  3294. * @memberof SignUpDto
  3295. */
  3296. 'email': string;
  3297. /**
  3298. *
  3299. * @type {string}
  3300. * @memberof SignUpDto
  3301. */
  3302. 'name': string;
  3303. /**
  3304. *
  3305. * @type {string}
  3306. * @memberof SignUpDto
  3307. */
  3308. 'password': string;
  3309. }
  3310. /**
  3311. *
  3312. * @export
  3313. * @interface SmartInfoResponseDto
  3314. */
  3315. export interface SmartInfoResponseDto {
  3316. /**
  3317. *
  3318. * @type {Array<string>}
  3319. * @memberof SmartInfoResponseDto
  3320. */
  3321. 'objects'?: Array<string> | null;
  3322. /**
  3323. *
  3324. * @type {Array<string>}
  3325. * @memberof SmartInfoResponseDto
  3326. */
  3327. 'tags'?: Array<string> | null;
  3328. }
  3329. /**
  3330. *
  3331. * @export
  3332. * @interface SystemConfigDto
  3333. */
  3334. export interface SystemConfigDto {
  3335. /**
  3336. *
  3337. * @type {SystemConfigFFmpegDto}
  3338. * @memberof SystemConfigDto
  3339. */
  3340. 'ffmpeg': SystemConfigFFmpegDto;
  3341. /**
  3342. *
  3343. * @type {SystemConfigJobDto}
  3344. * @memberof SystemConfigDto
  3345. */
  3346. 'job': SystemConfigJobDto;
  3347. /**
  3348. *
  3349. * @type {SystemConfigLibraryDto}
  3350. * @memberof SystemConfigDto
  3351. */
  3352. 'library': SystemConfigLibraryDto;
  3353. /**
  3354. *
  3355. * @type {SystemConfigMachineLearningDto}
  3356. * @memberof SystemConfigDto
  3357. */
  3358. 'machineLearning': SystemConfigMachineLearningDto;
  3359. /**
  3360. *
  3361. * @type {SystemConfigMapDto}
  3362. * @memberof SystemConfigDto
  3363. */
  3364. 'map': SystemConfigMapDto;
  3365. /**
  3366. *
  3367. * @type {SystemConfigNewVersionCheckDto}
  3368. * @memberof SystemConfigDto
  3369. */
  3370. 'newVersionCheck': SystemConfigNewVersionCheckDto;
  3371. /**
  3372. *
  3373. * @type {SystemConfigOAuthDto}
  3374. * @memberof SystemConfigDto
  3375. */
  3376. 'oauth': SystemConfigOAuthDto;
  3377. /**
  3378. *
  3379. * @type {SystemConfigPasswordLoginDto}
  3380. * @memberof SystemConfigDto
  3381. */
  3382. 'passwordLogin': SystemConfigPasswordLoginDto;
  3383. /**
  3384. *
  3385. * @type {SystemConfigReverseGeocodingDto}
  3386. * @memberof SystemConfigDto
  3387. */
  3388. 'reverseGeocoding': SystemConfigReverseGeocodingDto;
  3389. /**
  3390. *
  3391. * @type {SystemConfigStorageTemplateDto}
  3392. * @memberof SystemConfigDto
  3393. */
  3394. 'storageTemplate': SystemConfigStorageTemplateDto;
  3395. /**
  3396. *
  3397. * @type {SystemConfigThemeDto}
  3398. * @memberof SystemConfigDto
  3399. */
  3400. 'theme': SystemConfigThemeDto;
  3401. /**
  3402. *
  3403. * @type {SystemConfigThumbnailDto}
  3404. * @memberof SystemConfigDto
  3405. */
  3406. 'thumbnail': SystemConfigThumbnailDto;
  3407. /**
  3408. *
  3409. * @type {SystemConfigTrashDto}
  3410. * @memberof SystemConfigDto
  3411. */
  3412. 'trash': SystemConfigTrashDto;
  3413. }
  3414. /**
  3415. *
  3416. * @export
  3417. * @interface SystemConfigFFmpegDto
  3418. */
  3419. export interface SystemConfigFFmpegDto {
  3420. /**
  3421. *
  3422. * @type {TranscodeHWAccel}
  3423. * @memberof SystemConfigFFmpegDto
  3424. */
  3425. 'accel': TranscodeHWAccel;
  3426. /**
  3427. *
  3428. * @type {number}
  3429. * @memberof SystemConfigFFmpegDto
  3430. */
  3431. 'bframes': number;
  3432. /**
  3433. *
  3434. * @type {CQMode}
  3435. * @memberof SystemConfigFFmpegDto
  3436. */
  3437. 'cqMode': CQMode;
  3438. /**
  3439. *
  3440. * @type {number}
  3441. * @memberof SystemConfigFFmpegDto
  3442. */
  3443. 'crf': number;
  3444. /**
  3445. *
  3446. * @type {number}
  3447. * @memberof SystemConfigFFmpegDto
  3448. */
  3449. 'gopSize': number;
  3450. /**
  3451. *
  3452. * @type {string}
  3453. * @memberof SystemConfigFFmpegDto
  3454. */
  3455. 'maxBitrate': string;
  3456. /**
  3457. *
  3458. * @type {number}
  3459. * @memberof SystemConfigFFmpegDto
  3460. */
  3461. 'npl': number;
  3462. /**
  3463. *
  3464. * @type {string}
  3465. * @memberof SystemConfigFFmpegDto
  3466. */
  3467. 'preset': string;
  3468. /**
  3469. *
  3470. * @type {number}
  3471. * @memberof SystemConfigFFmpegDto
  3472. */
  3473. 'refs': number;
  3474. /**
  3475. *
  3476. * @type {AudioCodec}
  3477. * @memberof SystemConfigFFmpegDto
  3478. */
  3479. 'targetAudioCodec': AudioCodec;
  3480. /**
  3481. *
  3482. * @type {string}
  3483. * @memberof SystemConfigFFmpegDto
  3484. */
  3485. 'targetResolution': string;
  3486. /**
  3487. *
  3488. * @type {VideoCodec}
  3489. * @memberof SystemConfigFFmpegDto
  3490. */
  3491. 'targetVideoCodec': VideoCodec;
  3492. /**
  3493. *
  3494. * @type {boolean}
  3495. * @memberof SystemConfigFFmpegDto
  3496. */
  3497. 'temporalAQ': boolean;
  3498. /**
  3499. *
  3500. * @type {number}
  3501. * @memberof SystemConfigFFmpegDto
  3502. */
  3503. 'threads': number;
  3504. /**
  3505. *
  3506. * @type {ToneMapping}
  3507. * @memberof SystemConfigFFmpegDto
  3508. */
  3509. 'tonemap': ToneMapping;
  3510. /**
  3511. *
  3512. * @type {TranscodePolicy}
  3513. * @memberof SystemConfigFFmpegDto
  3514. */
  3515. 'transcode': TranscodePolicy;
  3516. /**
  3517. *
  3518. * @type {boolean}
  3519. * @memberof SystemConfigFFmpegDto
  3520. */
  3521. 'twoPass': boolean;
  3522. }
  3523. /**
  3524. *
  3525. * @export
  3526. * @interface SystemConfigJobDto
  3527. */
  3528. export interface SystemConfigJobDto {
  3529. /**
  3530. *
  3531. * @type {JobSettingsDto}
  3532. * @memberof SystemConfigJobDto
  3533. */
  3534. 'backgroundTask': JobSettingsDto;
  3535. /**
  3536. *
  3537. * @type {JobSettingsDto}
  3538. * @memberof SystemConfigJobDto
  3539. */
  3540. 'clipEncoding': JobSettingsDto;
  3541. /**
  3542. *
  3543. * @type {JobSettingsDto}
  3544. * @memberof SystemConfigJobDto
  3545. */
  3546. 'library': JobSettingsDto;
  3547. /**
  3548. *
  3549. * @type {JobSettingsDto}
  3550. * @memberof SystemConfigJobDto
  3551. */
  3552. 'metadataExtraction': JobSettingsDto;
  3553. /**
  3554. *
  3555. * @type {JobSettingsDto}
  3556. * @memberof SystemConfigJobDto
  3557. */
  3558. 'migration': JobSettingsDto;
  3559. /**
  3560. *
  3561. * @type {JobSettingsDto}
  3562. * @memberof SystemConfigJobDto
  3563. */
  3564. 'objectTagging': JobSettingsDto;
  3565. /**
  3566. *
  3567. * @type {JobSettingsDto}
  3568. * @memberof SystemConfigJobDto
  3569. */
  3570. 'recognizeFaces': JobSettingsDto;
  3571. /**
  3572. *
  3573. * @type {JobSettingsDto}
  3574. * @memberof SystemConfigJobDto
  3575. */
  3576. 'search': JobSettingsDto;
  3577. /**
  3578. *
  3579. * @type {JobSettingsDto}
  3580. * @memberof SystemConfigJobDto
  3581. */
  3582. 'sidecar': JobSettingsDto;
  3583. /**
  3584. *
  3585. * @type {JobSettingsDto}
  3586. * @memberof SystemConfigJobDto
  3587. */
  3588. 'storageTemplateMigration': JobSettingsDto;
  3589. /**
  3590. *
  3591. * @type {JobSettingsDto}
  3592. * @memberof SystemConfigJobDto
  3593. */
  3594. 'thumbnailGeneration': JobSettingsDto;
  3595. /**
  3596. *
  3597. * @type {JobSettingsDto}
  3598. * @memberof SystemConfigJobDto
  3599. */
  3600. 'videoConversion': JobSettingsDto;
  3601. }
  3602. /**
  3603. *
  3604. * @export
  3605. * @interface SystemConfigLibraryDto
  3606. */
  3607. export interface SystemConfigLibraryDto {
  3608. /**
  3609. *
  3610. * @type {SystemConfigLibraryScanDto}
  3611. * @memberof SystemConfigLibraryDto
  3612. */
  3613. 'scan': SystemConfigLibraryScanDto;
  3614. }
  3615. /**
  3616. *
  3617. * @export
  3618. * @interface SystemConfigLibraryScanDto
  3619. */
  3620. export interface SystemConfigLibraryScanDto {
  3621. /**
  3622. *
  3623. * @type {string}
  3624. * @memberof SystemConfigLibraryScanDto
  3625. */
  3626. 'cronExpression': string;
  3627. /**
  3628. *
  3629. * @type {boolean}
  3630. * @memberof SystemConfigLibraryScanDto
  3631. */
  3632. 'enabled': boolean;
  3633. }
  3634. /**
  3635. *
  3636. * @export
  3637. * @interface SystemConfigMachineLearningDto
  3638. */
  3639. export interface SystemConfigMachineLearningDto {
  3640. /**
  3641. *
  3642. * @type {ClassificationConfig}
  3643. * @memberof SystemConfigMachineLearningDto
  3644. */
  3645. 'classification': ClassificationConfig;
  3646. /**
  3647. *
  3648. * @type {CLIPConfig}
  3649. * @memberof SystemConfigMachineLearningDto
  3650. */
  3651. 'clip': CLIPConfig;
  3652. /**
  3653. *
  3654. * @type {boolean}
  3655. * @memberof SystemConfigMachineLearningDto
  3656. */
  3657. 'enabled': boolean;
  3658. /**
  3659. *
  3660. * @type {RecognitionConfig}
  3661. * @memberof SystemConfigMachineLearningDto
  3662. */
  3663. 'facialRecognition': RecognitionConfig;
  3664. /**
  3665. *
  3666. * @type {string}
  3667. * @memberof SystemConfigMachineLearningDto
  3668. */
  3669. 'url': string;
  3670. }
  3671. /**
  3672. *
  3673. * @export
  3674. * @interface SystemConfigMapDto
  3675. */
  3676. export interface SystemConfigMapDto {
  3677. /**
  3678. *
  3679. * @type {string}
  3680. * @memberof SystemConfigMapDto
  3681. */
  3682. 'darkStyle': string;
  3683. /**
  3684. *
  3685. * @type {boolean}
  3686. * @memberof SystemConfigMapDto
  3687. */
  3688. 'enabled': boolean;
  3689. /**
  3690. *
  3691. * @type {string}
  3692. * @memberof SystemConfigMapDto
  3693. */
  3694. 'lightStyle': string;
  3695. }
  3696. /**
  3697. *
  3698. * @export
  3699. * @interface SystemConfigNewVersionCheckDto
  3700. */
  3701. export interface SystemConfigNewVersionCheckDto {
  3702. /**
  3703. *
  3704. * @type {boolean}
  3705. * @memberof SystemConfigNewVersionCheckDto
  3706. */
  3707. 'enabled': boolean;
  3708. }
  3709. /**
  3710. *
  3711. * @export
  3712. * @interface SystemConfigOAuthDto
  3713. */
  3714. export interface SystemConfigOAuthDto {
  3715. /**
  3716. *
  3717. * @type {boolean}
  3718. * @memberof SystemConfigOAuthDto
  3719. */
  3720. 'autoLaunch': boolean;
  3721. /**
  3722. *
  3723. * @type {boolean}
  3724. * @memberof SystemConfigOAuthDto
  3725. */
  3726. 'autoRegister': boolean;
  3727. /**
  3728. *
  3729. * @type {string}
  3730. * @memberof SystemConfigOAuthDto
  3731. */
  3732. 'buttonText': string;
  3733. /**
  3734. *
  3735. * @type {string}
  3736. * @memberof SystemConfigOAuthDto
  3737. */
  3738. 'clientId': string;
  3739. /**
  3740. *
  3741. * @type {string}
  3742. * @memberof SystemConfigOAuthDto
  3743. */
  3744. 'clientSecret': string;
  3745. /**
  3746. *
  3747. * @type {boolean}
  3748. * @memberof SystemConfigOAuthDto
  3749. */
  3750. 'enabled': boolean;
  3751. /**
  3752. *
  3753. * @type {string}
  3754. * @memberof SystemConfigOAuthDto
  3755. */
  3756. 'issuerUrl': string;
  3757. /**
  3758. *
  3759. * @type {boolean}
  3760. * @memberof SystemConfigOAuthDto
  3761. */
  3762. 'mobileOverrideEnabled': boolean;
  3763. /**
  3764. *
  3765. * @type {string}
  3766. * @memberof SystemConfigOAuthDto
  3767. */
  3768. 'mobileRedirectUri': string;
  3769. /**
  3770. *
  3771. * @type {string}
  3772. * @memberof SystemConfigOAuthDto
  3773. */
  3774. 'scope': string;
  3775. /**
  3776. *
  3777. * @type {string}
  3778. * @memberof SystemConfigOAuthDto
  3779. */
  3780. 'storageLabelClaim': string;
  3781. }
  3782. /**
  3783. *
  3784. * @export
  3785. * @interface SystemConfigPasswordLoginDto
  3786. */
  3787. export interface SystemConfigPasswordLoginDto {
  3788. /**
  3789. *
  3790. * @type {boolean}
  3791. * @memberof SystemConfigPasswordLoginDto
  3792. */
  3793. 'enabled': boolean;
  3794. }
  3795. /**
  3796. *
  3797. * @export
  3798. * @interface SystemConfigReverseGeocodingDto
  3799. */
  3800. export interface SystemConfigReverseGeocodingDto {
  3801. /**
  3802. *
  3803. * @type {CitiesFile}
  3804. * @memberof SystemConfigReverseGeocodingDto
  3805. */
  3806. 'citiesFileOverride': CitiesFile;
  3807. /**
  3808. *
  3809. * @type {boolean}
  3810. * @memberof SystemConfigReverseGeocodingDto
  3811. */
  3812. 'enabled': boolean;
  3813. }
  3814. /**
  3815. *
  3816. * @export
  3817. * @interface SystemConfigStorageTemplateDto
  3818. */
  3819. export interface SystemConfigStorageTemplateDto {
  3820. /**
  3821. *
  3822. * @type {string}
  3823. * @memberof SystemConfigStorageTemplateDto
  3824. */
  3825. 'template': string;
  3826. }
  3827. /**
  3828. *
  3829. * @export
  3830. * @interface SystemConfigTemplateStorageOptionDto
  3831. */
  3832. export interface SystemConfigTemplateStorageOptionDto {
  3833. /**
  3834. *
  3835. * @type {Array<string>}
  3836. * @memberof SystemConfigTemplateStorageOptionDto
  3837. */
  3838. 'dayOptions': Array<string>;
  3839. /**
  3840. *
  3841. * @type {Array<string>}
  3842. * @memberof SystemConfigTemplateStorageOptionDto
  3843. */
  3844. 'hourOptions': Array<string>;
  3845. /**
  3846. *
  3847. * @type {Array<string>}
  3848. * @memberof SystemConfigTemplateStorageOptionDto
  3849. */
  3850. 'minuteOptions': Array<string>;
  3851. /**
  3852. *
  3853. * @type {Array<string>}
  3854. * @memberof SystemConfigTemplateStorageOptionDto
  3855. */
  3856. 'monthOptions': Array<string>;
  3857. /**
  3858. *
  3859. * @type {Array<string>}
  3860. * @memberof SystemConfigTemplateStorageOptionDto
  3861. */
  3862. 'presetOptions': Array<string>;
  3863. /**
  3864. *
  3865. * @type {Array<string>}
  3866. * @memberof SystemConfigTemplateStorageOptionDto
  3867. */
  3868. 'secondOptions': Array<string>;
  3869. /**
  3870. *
  3871. * @type {Array<string>}
  3872. * @memberof SystemConfigTemplateStorageOptionDto
  3873. */
  3874. 'weekOptions': Array<string>;
  3875. /**
  3876. *
  3877. * @type {Array<string>}
  3878. * @memberof SystemConfigTemplateStorageOptionDto
  3879. */
  3880. 'yearOptions': Array<string>;
  3881. }
  3882. /**
  3883. *
  3884. * @export
  3885. * @interface SystemConfigThemeDto
  3886. */
  3887. export interface SystemConfigThemeDto {
  3888. /**
  3889. *
  3890. * @type {string}
  3891. * @memberof SystemConfigThemeDto
  3892. */
  3893. 'customCss': string;
  3894. }
  3895. /**
  3896. *
  3897. * @export
  3898. * @interface SystemConfigThumbnailDto
  3899. */
  3900. export interface SystemConfigThumbnailDto {
  3901. /**
  3902. *
  3903. * @type {Colorspace}
  3904. * @memberof SystemConfigThumbnailDto
  3905. */
  3906. 'colorspace': Colorspace;
  3907. /**
  3908. *
  3909. * @type {number}
  3910. * @memberof SystemConfigThumbnailDto
  3911. */
  3912. 'jpegSize': number;
  3913. /**
  3914. *
  3915. * @type {number}
  3916. * @memberof SystemConfigThumbnailDto
  3917. */
  3918. 'quality': number;
  3919. /**
  3920. *
  3921. * @type {number}
  3922. * @memberof SystemConfigThumbnailDto
  3923. */
  3924. 'webpSize': number;
  3925. }
  3926. /**
  3927. *
  3928. * @export
  3929. * @interface SystemConfigTrashDto
  3930. */
  3931. export interface SystemConfigTrashDto {
  3932. /**
  3933. *
  3934. * @type {number}
  3935. * @memberof SystemConfigTrashDto
  3936. */
  3937. 'days': number;
  3938. /**
  3939. *
  3940. * @type {boolean}
  3941. * @memberof SystemConfigTrashDto
  3942. */
  3943. 'enabled': boolean;
  3944. }
  3945. /**
  3946. *
  3947. * @export
  3948. * @interface TagResponseDto
  3949. */
  3950. export interface TagResponseDto {
  3951. /**
  3952. *
  3953. * @type {string}
  3954. * @memberof TagResponseDto
  3955. */
  3956. 'id': string;
  3957. /**
  3958. *
  3959. * @type {string}
  3960. * @memberof TagResponseDto
  3961. */
  3962. 'name': string;
  3963. /**
  3964. *
  3965. * @type {TagTypeEnum}
  3966. * @memberof TagResponseDto
  3967. */
  3968. 'type': TagTypeEnum;
  3969. /**
  3970. *
  3971. * @type {string}
  3972. * @memberof TagResponseDto
  3973. */
  3974. 'userId': string;
  3975. }
  3976. /**
  3977. *
  3978. * @export
  3979. * @enum {string}
  3980. */
  3981. export const TagTypeEnum = {
  3982. Object: 'OBJECT',
  3983. Face: 'FACE',
  3984. Custom: 'CUSTOM'
  3985. } as const;
  3986. export type TagTypeEnum = typeof TagTypeEnum[keyof typeof TagTypeEnum];
  3987. /**
  3988. *
  3989. * @export
  3990. * @enum {string}
  3991. */
  3992. export const ThumbnailFormat = {
  3993. Jpeg: 'JPEG',
  3994. Webp: 'WEBP'
  3995. } as const;
  3996. export type ThumbnailFormat = typeof ThumbnailFormat[keyof typeof ThumbnailFormat];
  3997. /**
  3998. *
  3999. * @export
  4000. * @interface TimeBucketResponseDto
  4001. */
  4002. export interface TimeBucketResponseDto {
  4003. /**
  4004. *
  4005. * @type {number}
  4006. * @memberof TimeBucketResponseDto
  4007. */
  4008. 'count': number;
  4009. /**
  4010. *
  4011. * @type {string}
  4012. * @memberof TimeBucketResponseDto
  4013. */
  4014. 'timeBucket': string;
  4015. }
  4016. /**
  4017. *
  4018. * @export
  4019. * @enum {string}
  4020. */
  4021. export const TimeBucketSize = {
  4022. Day: 'DAY',
  4023. Month: 'MONTH'
  4024. } as const;
  4025. export type TimeBucketSize = typeof TimeBucketSize[keyof typeof TimeBucketSize];
  4026. /**
  4027. *
  4028. * @export
  4029. * @enum {string}
  4030. */
  4031. export const ToneMapping = {
  4032. Hable: 'hable',
  4033. Mobius: 'mobius',
  4034. Reinhard: 'reinhard',
  4035. Disabled: 'disabled'
  4036. } as const;
  4037. export type ToneMapping = typeof ToneMapping[keyof typeof ToneMapping];
  4038. /**
  4039. *
  4040. * @export
  4041. * @enum {string}
  4042. */
  4043. export const TranscodeHWAccel = {
  4044. Nvenc: 'nvenc',
  4045. Qsv: 'qsv',
  4046. Vaapi: 'vaapi',
  4047. Rkmpp: 'rkmpp',
  4048. Disabled: 'disabled'
  4049. } as const;
  4050. export type TranscodeHWAccel = typeof TranscodeHWAccel[keyof typeof TranscodeHWAccel];
  4051. /**
  4052. *
  4053. * @export
  4054. * @enum {string}
  4055. */
  4056. export const TranscodePolicy = {
  4057. All: 'all',
  4058. Optimal: 'optimal',
  4059. Required: 'required',
  4060. Disabled: 'disabled'
  4061. } as const;
  4062. export type TranscodePolicy = typeof TranscodePolicy[keyof typeof TranscodePolicy];
  4063. /**
  4064. *
  4065. * @export
  4066. * @interface UpdateAlbumDto
  4067. */
  4068. export interface UpdateAlbumDto {
  4069. /**
  4070. *
  4071. * @type {string}
  4072. * @memberof UpdateAlbumDto
  4073. */
  4074. 'albumName'?: string;
  4075. /**
  4076. *
  4077. * @type {string}
  4078. * @memberof UpdateAlbumDto
  4079. */
  4080. 'albumThumbnailAssetId'?: string;
  4081. /**
  4082. *
  4083. * @type {string}
  4084. * @memberof UpdateAlbumDto
  4085. */
  4086. 'description'?: string;
  4087. /**
  4088. *
  4089. * @type {boolean}
  4090. * @memberof UpdateAlbumDto
  4091. */
  4092. 'isActivityEnabled'?: boolean;
  4093. }
  4094. /**
  4095. *
  4096. * @export
  4097. * @interface UpdateAssetDto
  4098. */
  4099. export interface UpdateAssetDto {
  4100. /**
  4101. *
  4102. * @type {string}
  4103. * @memberof UpdateAssetDto
  4104. */
  4105. 'description'?: string;
  4106. /**
  4107. *
  4108. * @type {boolean}
  4109. * @memberof UpdateAssetDto
  4110. */
  4111. 'isArchived'?: boolean;
  4112. /**
  4113. *
  4114. * @type {boolean}
  4115. * @memberof UpdateAssetDto
  4116. */
  4117. 'isFavorite'?: boolean;
  4118. }
  4119. /**
  4120. *
  4121. * @export
  4122. * @interface UpdateLibraryDto
  4123. */
  4124. export interface UpdateLibraryDto {
  4125. /**
  4126. *
  4127. * @type {Array<string>}
  4128. * @memberof UpdateLibraryDto
  4129. */
  4130. 'exclusionPatterns'?: Array<string>;
  4131. /**
  4132. *
  4133. * @type {Array<string>}
  4134. * @memberof UpdateLibraryDto
  4135. */
  4136. 'importPaths'?: Array<string>;
  4137. /**
  4138. *
  4139. * @type {boolean}
  4140. * @memberof UpdateLibraryDto
  4141. */
  4142. 'isVisible'?: boolean;
  4143. /**
  4144. *
  4145. * @type {string}
  4146. * @memberof UpdateLibraryDto
  4147. */
  4148. 'name'?: string;
  4149. }
  4150. /**
  4151. *
  4152. * @export
  4153. * @interface UpdatePartnerDto
  4154. */
  4155. export interface UpdatePartnerDto {
  4156. /**
  4157. *
  4158. * @type {boolean}
  4159. * @memberof UpdatePartnerDto
  4160. */
  4161. 'inTimeline': boolean;
  4162. }
  4163. /**
  4164. *
  4165. * @export
  4166. * @interface UpdateStackParentDto
  4167. */
  4168. export interface UpdateStackParentDto {
  4169. /**
  4170. *
  4171. * @type {string}
  4172. * @memberof UpdateStackParentDto
  4173. */
  4174. 'newParentId': string;
  4175. /**
  4176. *
  4177. * @type {string}
  4178. * @memberof UpdateStackParentDto
  4179. */
  4180. 'oldParentId': string;
  4181. }
  4182. /**
  4183. *
  4184. * @export
  4185. * @interface UpdateTagDto
  4186. */
  4187. export interface UpdateTagDto {
  4188. /**
  4189. *
  4190. * @type {string}
  4191. * @memberof UpdateTagDto
  4192. */
  4193. 'name'?: string;
  4194. }
  4195. /**
  4196. *
  4197. * @export
  4198. * @interface UpdateUserDto
  4199. */
  4200. export interface UpdateUserDto {
  4201. /**
  4202. *
  4203. * @type {string}
  4204. * @memberof UpdateUserDto
  4205. */
  4206. 'email'?: string;
  4207. /**
  4208. *
  4209. * @type {string}
  4210. * @memberof UpdateUserDto
  4211. */
  4212. 'externalPath'?: string;
  4213. /**
  4214. *
  4215. * @type {string}
  4216. * @memberof UpdateUserDto
  4217. */
  4218. 'id': string;
  4219. /**
  4220. *
  4221. * @type {boolean}
  4222. * @memberof UpdateUserDto
  4223. */
  4224. 'isAdmin'?: boolean;
  4225. /**
  4226. *
  4227. * @type {boolean}
  4228. * @memberof UpdateUserDto
  4229. */
  4230. 'memoriesEnabled'?: boolean;
  4231. /**
  4232. *
  4233. * @type {string}
  4234. * @memberof UpdateUserDto
  4235. */
  4236. 'name'?: string;
  4237. /**
  4238. *
  4239. * @type {string}
  4240. * @memberof UpdateUserDto
  4241. */
  4242. 'password'?: string;
  4243. /**
  4244. *
  4245. * @type {boolean}
  4246. * @memberof UpdateUserDto
  4247. */
  4248. 'shouldChangePassword'?: boolean;
  4249. /**
  4250. *
  4251. * @type {string}
  4252. * @memberof UpdateUserDto
  4253. */
  4254. 'storageLabel'?: string;
  4255. }
  4256. /**
  4257. *
  4258. * @export
  4259. * @interface UsageByUserDto
  4260. */
  4261. export interface UsageByUserDto {
  4262. /**
  4263. *
  4264. * @type {number}
  4265. * @memberof UsageByUserDto
  4266. */
  4267. 'photos': number;
  4268. /**
  4269. *
  4270. * @type {number}
  4271. * @memberof UsageByUserDto
  4272. */
  4273. 'usage': number;
  4274. /**
  4275. *
  4276. * @type {string}
  4277. * @memberof UsageByUserDto
  4278. */
  4279. 'userId': string;
  4280. /**
  4281. *
  4282. * @type {string}
  4283. * @memberof UsageByUserDto
  4284. */
  4285. 'userName': string;
  4286. /**
  4287. *
  4288. * @type {number}
  4289. * @memberof UsageByUserDto
  4290. */
  4291. 'videos': number;
  4292. }
  4293. /**
  4294. *
  4295. * @export
  4296. * @interface UserDto
  4297. */
  4298. export interface UserDto {
  4299. /**
  4300. *
  4301. * @type {string}
  4302. * @memberof UserDto
  4303. */
  4304. 'email': string;
  4305. /**
  4306. *
  4307. * @type {string}
  4308. * @memberof UserDto
  4309. */
  4310. 'id': string;
  4311. /**
  4312. *
  4313. * @type {string}
  4314. * @memberof UserDto
  4315. */
  4316. 'name': string;
  4317. /**
  4318. *
  4319. * @type {string}
  4320. * @memberof UserDto
  4321. */
  4322. 'profileImagePath': string;
  4323. }
  4324. /**
  4325. *
  4326. * @export
  4327. * @interface UserResponseDto
  4328. */
  4329. export interface UserResponseDto {
  4330. /**
  4331. *
  4332. * @type {string}
  4333. * @memberof UserResponseDto
  4334. */
  4335. 'createdAt': string;
  4336. /**
  4337. *
  4338. * @type {string}
  4339. * @memberof UserResponseDto
  4340. */
  4341. 'deletedAt': string | null;
  4342. /**
  4343. *
  4344. * @type {string}
  4345. * @memberof UserResponseDto
  4346. */
  4347. 'email': string;
  4348. /**
  4349. *
  4350. * @type {string}
  4351. * @memberof UserResponseDto
  4352. */
  4353. 'externalPath': string | null;
  4354. /**
  4355. *
  4356. * @type {string}
  4357. * @memberof UserResponseDto
  4358. */
  4359. 'id': string;
  4360. /**
  4361. *
  4362. * @type {boolean}
  4363. * @memberof UserResponseDto
  4364. */
  4365. 'isAdmin': boolean;
  4366. /**
  4367. *
  4368. * @type {boolean}
  4369. * @memberof UserResponseDto
  4370. */
  4371. 'memoriesEnabled'?: boolean;
  4372. /**
  4373. *
  4374. * @type {string}
  4375. * @memberof UserResponseDto
  4376. */
  4377. 'name': string;
  4378. /**
  4379. *
  4380. * @type {string}
  4381. * @memberof UserResponseDto
  4382. */
  4383. 'oauthId': string;
  4384. /**
  4385. *
  4386. * @type {string}
  4387. * @memberof UserResponseDto
  4388. */
  4389. 'profileImagePath': string;
  4390. /**
  4391. *
  4392. * @type {boolean}
  4393. * @memberof UserResponseDto
  4394. */
  4395. 'shouldChangePassword': boolean;
  4396. /**
  4397. *
  4398. * @type {string}
  4399. * @memberof UserResponseDto
  4400. */
  4401. 'storageLabel': string | null;
  4402. /**
  4403. *
  4404. * @type {string}
  4405. * @memberof UserResponseDto
  4406. */
  4407. 'updatedAt': string;
  4408. }
  4409. /**
  4410. *
  4411. * @export
  4412. * @interface ValidateAccessTokenResponseDto
  4413. */
  4414. export interface ValidateAccessTokenResponseDto {
  4415. /**
  4416. *
  4417. * @type {boolean}
  4418. * @memberof ValidateAccessTokenResponseDto
  4419. */
  4420. 'authStatus': boolean;
  4421. }
  4422. /**
  4423. *
  4424. * @export
  4425. * @enum {string}
  4426. */
  4427. export const VideoCodec = {
  4428. H264: 'h264',
  4429. Hevc: 'hevc',
  4430. Vp9: 'vp9'
  4431. } as const;
  4432. export type VideoCodec = typeof VideoCodec[keyof typeof VideoCodec];
  4433. /**
  4434. * APIKeyApi - axios parameter creator
  4435. * @export
  4436. */
  4437. export const APIKeyApiAxiosParamCreator = function (configuration?: Configuration) {
  4438. return {
  4439. /**
  4440. *
  4441. * @param {APIKeyCreateDto} aPIKeyCreateDto
  4442. * @param {*} [options] Override http request option.
  4443. * @throws {RequiredError}
  4444. */
  4445. createApiKey: async (aPIKeyCreateDto: APIKeyCreateDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4446. // verify required parameter 'aPIKeyCreateDto' is not null or undefined
  4447. assertParamExists('createApiKey', 'aPIKeyCreateDto', aPIKeyCreateDto)
  4448. const localVarPath = `/api-key`;
  4449. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4450. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4451. let baseOptions;
  4452. if (configuration) {
  4453. baseOptions = configuration.baseOptions;
  4454. }
  4455. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  4456. const localVarHeaderParameter = {} as any;
  4457. const localVarQueryParameter = {} as any;
  4458. // authentication cookie required
  4459. // authentication api_key required
  4460. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4461. // authentication bearer required
  4462. // http bearer authentication required
  4463. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4464. localVarHeaderParameter['Content-Type'] = 'application/json';
  4465. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4466. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4467. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4468. localVarRequestOptions.data = serializeDataIfNeeded(aPIKeyCreateDto, localVarRequestOptions, configuration)
  4469. return {
  4470. url: toPathString(localVarUrlObj),
  4471. options: localVarRequestOptions,
  4472. };
  4473. },
  4474. /**
  4475. *
  4476. * @param {string} id
  4477. * @param {*} [options] Override http request option.
  4478. * @throws {RequiredError}
  4479. */
  4480. deleteApiKey: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4481. // verify required parameter 'id' is not null or undefined
  4482. assertParamExists('deleteApiKey', 'id', id)
  4483. const localVarPath = `/api-key/{id}`
  4484. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  4485. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4486. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4487. let baseOptions;
  4488. if (configuration) {
  4489. baseOptions = configuration.baseOptions;
  4490. }
  4491. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  4492. const localVarHeaderParameter = {} as any;
  4493. const localVarQueryParameter = {} as any;
  4494. // authentication cookie required
  4495. // authentication api_key required
  4496. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4497. // authentication bearer required
  4498. // http bearer authentication required
  4499. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4500. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4501. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4502. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4503. return {
  4504. url: toPathString(localVarUrlObj),
  4505. options: localVarRequestOptions,
  4506. };
  4507. },
  4508. /**
  4509. *
  4510. * @param {string} id
  4511. * @param {*} [options] Override http request option.
  4512. * @throws {RequiredError}
  4513. */
  4514. getApiKey: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4515. // verify required parameter 'id' is not null or undefined
  4516. assertParamExists('getApiKey', 'id', id)
  4517. const localVarPath = `/api-key/{id}`
  4518. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  4519. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4520. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4521. let baseOptions;
  4522. if (configuration) {
  4523. baseOptions = configuration.baseOptions;
  4524. }
  4525. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  4526. const localVarHeaderParameter = {} as any;
  4527. const localVarQueryParameter = {} as any;
  4528. // authentication cookie required
  4529. // authentication api_key required
  4530. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4531. // authentication bearer required
  4532. // http bearer authentication required
  4533. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4534. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4535. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4536. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4537. return {
  4538. url: toPathString(localVarUrlObj),
  4539. options: localVarRequestOptions,
  4540. };
  4541. },
  4542. /**
  4543. *
  4544. * @param {*} [options] Override http request option.
  4545. * @throws {RequiredError}
  4546. */
  4547. getApiKeys: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4548. const localVarPath = `/api-key`;
  4549. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4550. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4551. let baseOptions;
  4552. if (configuration) {
  4553. baseOptions = configuration.baseOptions;
  4554. }
  4555. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  4556. const localVarHeaderParameter = {} as any;
  4557. const localVarQueryParameter = {} as any;
  4558. // authentication cookie required
  4559. // authentication api_key required
  4560. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4561. // authentication bearer required
  4562. // http bearer authentication required
  4563. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4564. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4565. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4566. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4567. return {
  4568. url: toPathString(localVarUrlObj),
  4569. options: localVarRequestOptions,
  4570. };
  4571. },
  4572. /**
  4573. *
  4574. * @param {string} id
  4575. * @param {APIKeyUpdateDto} aPIKeyUpdateDto
  4576. * @param {*} [options] Override http request option.
  4577. * @throws {RequiredError}
  4578. */
  4579. updateApiKey: async (id: string, aPIKeyUpdateDto: APIKeyUpdateDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4580. // verify required parameter 'id' is not null or undefined
  4581. assertParamExists('updateApiKey', 'id', id)
  4582. // verify required parameter 'aPIKeyUpdateDto' is not null or undefined
  4583. assertParamExists('updateApiKey', 'aPIKeyUpdateDto', aPIKeyUpdateDto)
  4584. const localVarPath = `/api-key/{id}`
  4585. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  4586. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4587. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4588. let baseOptions;
  4589. if (configuration) {
  4590. baseOptions = configuration.baseOptions;
  4591. }
  4592. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  4593. const localVarHeaderParameter = {} as any;
  4594. const localVarQueryParameter = {} as any;
  4595. // authentication cookie required
  4596. // authentication api_key required
  4597. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4598. // authentication bearer required
  4599. // http bearer authentication required
  4600. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4601. localVarHeaderParameter['Content-Type'] = 'application/json';
  4602. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4603. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4604. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4605. localVarRequestOptions.data = serializeDataIfNeeded(aPIKeyUpdateDto, localVarRequestOptions, configuration)
  4606. return {
  4607. url: toPathString(localVarUrlObj),
  4608. options: localVarRequestOptions,
  4609. };
  4610. },
  4611. }
  4612. };
  4613. /**
  4614. * APIKeyApi - functional programming interface
  4615. * @export
  4616. */
  4617. export const APIKeyApiFp = function(configuration?: Configuration) {
  4618. const localVarAxiosParamCreator = APIKeyApiAxiosParamCreator(configuration)
  4619. return {
  4620. /**
  4621. *
  4622. * @param {APIKeyCreateDto} aPIKeyCreateDto
  4623. * @param {*} [options] Override http request option.
  4624. * @throws {RequiredError}
  4625. */
  4626. async createApiKey(aPIKeyCreateDto: APIKeyCreateDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<APIKeyCreateResponseDto>> {
  4627. const localVarAxiosArgs = await localVarAxiosParamCreator.createApiKey(aPIKeyCreateDto, options);
  4628. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4629. },
  4630. /**
  4631. *
  4632. * @param {string} id
  4633. * @param {*} [options] Override http request option.
  4634. * @throws {RequiredError}
  4635. */
  4636. async deleteApiKey(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  4637. const localVarAxiosArgs = await localVarAxiosParamCreator.deleteApiKey(id, options);
  4638. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4639. },
  4640. /**
  4641. *
  4642. * @param {string} id
  4643. * @param {*} [options] Override http request option.
  4644. * @throws {RequiredError}
  4645. */
  4646. async getApiKey(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<APIKeyResponseDto>> {
  4647. const localVarAxiosArgs = await localVarAxiosParamCreator.getApiKey(id, options);
  4648. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4649. },
  4650. /**
  4651. *
  4652. * @param {*} [options] Override http request option.
  4653. * @throws {RequiredError}
  4654. */
  4655. async getApiKeys(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<APIKeyResponseDto>>> {
  4656. const localVarAxiosArgs = await localVarAxiosParamCreator.getApiKeys(options);
  4657. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4658. },
  4659. /**
  4660. *
  4661. * @param {string} id
  4662. * @param {APIKeyUpdateDto} aPIKeyUpdateDto
  4663. * @param {*} [options] Override http request option.
  4664. * @throws {RequiredError}
  4665. */
  4666. async updateApiKey(id: string, aPIKeyUpdateDto: APIKeyUpdateDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<APIKeyResponseDto>> {
  4667. const localVarAxiosArgs = await localVarAxiosParamCreator.updateApiKey(id, aPIKeyUpdateDto, options);
  4668. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4669. },
  4670. }
  4671. };
  4672. /**
  4673. * APIKeyApi - factory interface
  4674. * @export
  4675. */
  4676. export const APIKeyApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  4677. const localVarFp = APIKeyApiFp(configuration)
  4678. return {
  4679. /**
  4680. *
  4681. * @param {APIKeyApiCreateApiKeyRequest} requestParameters Request parameters.
  4682. * @param {*} [options] Override http request option.
  4683. * @throws {RequiredError}
  4684. */
  4685. createApiKey(requestParameters: APIKeyApiCreateApiKeyRequest, options?: AxiosRequestConfig): AxiosPromise<APIKeyCreateResponseDto> {
  4686. return localVarFp.createApiKey(requestParameters.aPIKeyCreateDto, options).then((request) => request(axios, basePath));
  4687. },
  4688. /**
  4689. *
  4690. * @param {APIKeyApiDeleteApiKeyRequest} requestParameters Request parameters.
  4691. * @param {*} [options] Override http request option.
  4692. * @throws {RequiredError}
  4693. */
  4694. deleteApiKey(requestParameters: APIKeyApiDeleteApiKeyRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  4695. return localVarFp.deleteApiKey(requestParameters.id, options).then((request) => request(axios, basePath));
  4696. },
  4697. /**
  4698. *
  4699. * @param {APIKeyApiGetApiKeyRequest} requestParameters Request parameters.
  4700. * @param {*} [options] Override http request option.
  4701. * @throws {RequiredError}
  4702. */
  4703. getApiKey(requestParameters: APIKeyApiGetApiKeyRequest, options?: AxiosRequestConfig): AxiosPromise<APIKeyResponseDto> {
  4704. return localVarFp.getApiKey(requestParameters.id, options).then((request) => request(axios, basePath));
  4705. },
  4706. /**
  4707. *
  4708. * @param {*} [options] Override http request option.
  4709. * @throws {RequiredError}
  4710. */
  4711. getApiKeys(options?: AxiosRequestConfig): AxiosPromise<Array<APIKeyResponseDto>> {
  4712. return localVarFp.getApiKeys(options).then((request) => request(axios, basePath));
  4713. },
  4714. /**
  4715. *
  4716. * @param {APIKeyApiUpdateApiKeyRequest} requestParameters Request parameters.
  4717. * @param {*} [options] Override http request option.
  4718. * @throws {RequiredError}
  4719. */
  4720. updateApiKey(requestParameters: APIKeyApiUpdateApiKeyRequest, options?: AxiosRequestConfig): AxiosPromise<APIKeyResponseDto> {
  4721. return localVarFp.updateApiKey(requestParameters.id, requestParameters.aPIKeyUpdateDto, options).then((request) => request(axios, basePath));
  4722. },
  4723. };
  4724. };
  4725. /**
  4726. * Request parameters for createApiKey operation in APIKeyApi.
  4727. * @export
  4728. * @interface APIKeyApiCreateApiKeyRequest
  4729. */
  4730. export interface APIKeyApiCreateApiKeyRequest {
  4731. /**
  4732. *
  4733. * @type {APIKeyCreateDto}
  4734. * @memberof APIKeyApiCreateApiKey
  4735. */
  4736. readonly aPIKeyCreateDto: APIKeyCreateDto
  4737. }
  4738. /**
  4739. * Request parameters for deleteApiKey operation in APIKeyApi.
  4740. * @export
  4741. * @interface APIKeyApiDeleteApiKeyRequest
  4742. */
  4743. export interface APIKeyApiDeleteApiKeyRequest {
  4744. /**
  4745. *
  4746. * @type {string}
  4747. * @memberof APIKeyApiDeleteApiKey
  4748. */
  4749. readonly id: string
  4750. }
  4751. /**
  4752. * Request parameters for getApiKey operation in APIKeyApi.
  4753. * @export
  4754. * @interface APIKeyApiGetApiKeyRequest
  4755. */
  4756. export interface APIKeyApiGetApiKeyRequest {
  4757. /**
  4758. *
  4759. * @type {string}
  4760. * @memberof APIKeyApiGetApiKey
  4761. */
  4762. readonly id: string
  4763. }
  4764. /**
  4765. * Request parameters for updateApiKey operation in APIKeyApi.
  4766. * @export
  4767. * @interface APIKeyApiUpdateApiKeyRequest
  4768. */
  4769. export interface APIKeyApiUpdateApiKeyRequest {
  4770. /**
  4771. *
  4772. * @type {string}
  4773. * @memberof APIKeyApiUpdateApiKey
  4774. */
  4775. readonly id: string
  4776. /**
  4777. *
  4778. * @type {APIKeyUpdateDto}
  4779. * @memberof APIKeyApiUpdateApiKey
  4780. */
  4781. readonly aPIKeyUpdateDto: APIKeyUpdateDto
  4782. }
  4783. /**
  4784. * APIKeyApi - object-oriented interface
  4785. * @export
  4786. * @class APIKeyApi
  4787. * @extends {BaseAPI}
  4788. */
  4789. export class APIKeyApi extends BaseAPI {
  4790. /**
  4791. *
  4792. * @param {APIKeyApiCreateApiKeyRequest} requestParameters Request parameters.
  4793. * @param {*} [options] Override http request option.
  4794. * @throws {RequiredError}
  4795. * @memberof APIKeyApi
  4796. */
  4797. public createApiKey(requestParameters: APIKeyApiCreateApiKeyRequest, options?: AxiosRequestConfig) {
  4798. return APIKeyApiFp(this.configuration).createApiKey(requestParameters.aPIKeyCreateDto, options).then((request) => request(this.axios, this.basePath));
  4799. }
  4800. /**
  4801. *
  4802. * @param {APIKeyApiDeleteApiKeyRequest} requestParameters Request parameters.
  4803. * @param {*} [options] Override http request option.
  4804. * @throws {RequiredError}
  4805. * @memberof APIKeyApi
  4806. */
  4807. public deleteApiKey(requestParameters: APIKeyApiDeleteApiKeyRequest, options?: AxiosRequestConfig) {
  4808. return APIKeyApiFp(this.configuration).deleteApiKey(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  4809. }
  4810. /**
  4811. *
  4812. * @param {APIKeyApiGetApiKeyRequest} requestParameters Request parameters.
  4813. * @param {*} [options] Override http request option.
  4814. * @throws {RequiredError}
  4815. * @memberof APIKeyApi
  4816. */
  4817. public getApiKey(requestParameters: APIKeyApiGetApiKeyRequest, options?: AxiosRequestConfig) {
  4818. return APIKeyApiFp(this.configuration).getApiKey(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  4819. }
  4820. /**
  4821. *
  4822. * @param {*} [options] Override http request option.
  4823. * @throws {RequiredError}
  4824. * @memberof APIKeyApi
  4825. */
  4826. public getApiKeys(options?: AxiosRequestConfig) {
  4827. return APIKeyApiFp(this.configuration).getApiKeys(options).then((request) => request(this.axios, this.basePath));
  4828. }
  4829. /**
  4830. *
  4831. * @param {APIKeyApiUpdateApiKeyRequest} requestParameters Request parameters.
  4832. * @param {*} [options] Override http request option.
  4833. * @throws {RequiredError}
  4834. * @memberof APIKeyApi
  4835. */
  4836. public updateApiKey(requestParameters: APIKeyApiUpdateApiKeyRequest, options?: AxiosRequestConfig) {
  4837. return APIKeyApiFp(this.configuration).updateApiKey(requestParameters.id, requestParameters.aPIKeyUpdateDto, options).then((request) => request(this.axios, this.basePath));
  4838. }
  4839. }
  4840. /**
  4841. * ActivityApi - axios parameter creator
  4842. * @export
  4843. */
  4844. export const ActivityApiAxiosParamCreator = function (configuration?: Configuration) {
  4845. return {
  4846. /**
  4847. *
  4848. * @param {ActivityCreateDto} activityCreateDto
  4849. * @param {*} [options] Override http request option.
  4850. * @throws {RequiredError}
  4851. */
  4852. createActivity: async (activityCreateDto: ActivityCreateDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4853. // verify required parameter 'activityCreateDto' is not null or undefined
  4854. assertParamExists('createActivity', 'activityCreateDto', activityCreateDto)
  4855. const localVarPath = `/activity`;
  4856. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4857. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4858. let baseOptions;
  4859. if (configuration) {
  4860. baseOptions = configuration.baseOptions;
  4861. }
  4862. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  4863. const localVarHeaderParameter = {} as any;
  4864. const localVarQueryParameter = {} as any;
  4865. // authentication cookie required
  4866. // authentication api_key required
  4867. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4868. // authentication bearer required
  4869. // http bearer authentication required
  4870. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4871. localVarHeaderParameter['Content-Type'] = 'application/json';
  4872. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4873. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4874. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4875. localVarRequestOptions.data = serializeDataIfNeeded(activityCreateDto, localVarRequestOptions, configuration)
  4876. return {
  4877. url: toPathString(localVarUrlObj),
  4878. options: localVarRequestOptions,
  4879. };
  4880. },
  4881. /**
  4882. *
  4883. * @param {string} id
  4884. * @param {*} [options] Override http request option.
  4885. * @throws {RequiredError}
  4886. */
  4887. deleteActivity: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4888. // verify required parameter 'id' is not null or undefined
  4889. assertParamExists('deleteActivity', 'id', id)
  4890. const localVarPath = `/activity/{id}`
  4891. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  4892. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4893. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4894. let baseOptions;
  4895. if (configuration) {
  4896. baseOptions = configuration.baseOptions;
  4897. }
  4898. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  4899. const localVarHeaderParameter = {} as any;
  4900. const localVarQueryParameter = {} as any;
  4901. // authentication cookie required
  4902. // authentication api_key required
  4903. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4904. // authentication bearer required
  4905. // http bearer authentication required
  4906. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4907. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4908. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4909. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4910. return {
  4911. url: toPathString(localVarUrlObj),
  4912. options: localVarRequestOptions,
  4913. };
  4914. },
  4915. /**
  4916. *
  4917. * @param {string} albumId
  4918. * @param {string} [assetId]
  4919. * @param {ReactionType} [type]
  4920. * @param {ReactionLevel} [level]
  4921. * @param {string} [userId]
  4922. * @param {*} [options] Override http request option.
  4923. * @throws {RequiredError}
  4924. */
  4925. getActivities: async (albumId: string, assetId?: string, type?: ReactionType, level?: ReactionLevel, userId?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4926. // verify required parameter 'albumId' is not null or undefined
  4927. assertParamExists('getActivities', 'albumId', albumId)
  4928. const localVarPath = `/activity`;
  4929. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4930. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4931. let baseOptions;
  4932. if (configuration) {
  4933. baseOptions = configuration.baseOptions;
  4934. }
  4935. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  4936. const localVarHeaderParameter = {} as any;
  4937. const localVarQueryParameter = {} as any;
  4938. // authentication cookie required
  4939. // authentication api_key required
  4940. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4941. // authentication bearer required
  4942. // http bearer authentication required
  4943. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4944. if (albumId !== undefined) {
  4945. localVarQueryParameter['albumId'] = albumId;
  4946. }
  4947. if (assetId !== undefined) {
  4948. localVarQueryParameter['assetId'] = assetId;
  4949. }
  4950. if (type !== undefined) {
  4951. localVarQueryParameter['type'] = type;
  4952. }
  4953. if (level !== undefined) {
  4954. localVarQueryParameter['level'] = level;
  4955. }
  4956. if (userId !== undefined) {
  4957. localVarQueryParameter['userId'] = userId;
  4958. }
  4959. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4960. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4961. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4962. return {
  4963. url: toPathString(localVarUrlObj),
  4964. options: localVarRequestOptions,
  4965. };
  4966. },
  4967. /**
  4968. *
  4969. * @param {string} albumId
  4970. * @param {string} [assetId]
  4971. * @param {*} [options] Override http request option.
  4972. * @throws {RequiredError}
  4973. */
  4974. getActivityStatistics: async (albumId: string, assetId?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4975. // verify required parameter 'albumId' is not null or undefined
  4976. assertParamExists('getActivityStatistics', 'albumId', albumId)
  4977. const localVarPath = `/activity/statistics`;
  4978. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4979. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4980. let baseOptions;
  4981. if (configuration) {
  4982. baseOptions = configuration.baseOptions;
  4983. }
  4984. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  4985. const localVarHeaderParameter = {} as any;
  4986. const localVarQueryParameter = {} as any;
  4987. // authentication cookie required
  4988. // authentication api_key required
  4989. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4990. // authentication bearer required
  4991. // http bearer authentication required
  4992. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4993. if (albumId !== undefined) {
  4994. localVarQueryParameter['albumId'] = albumId;
  4995. }
  4996. if (assetId !== undefined) {
  4997. localVarQueryParameter['assetId'] = assetId;
  4998. }
  4999. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5000. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5001. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5002. return {
  5003. url: toPathString(localVarUrlObj),
  5004. options: localVarRequestOptions,
  5005. };
  5006. },
  5007. }
  5008. };
  5009. /**
  5010. * ActivityApi - functional programming interface
  5011. * @export
  5012. */
  5013. export const ActivityApiFp = function(configuration?: Configuration) {
  5014. const localVarAxiosParamCreator = ActivityApiAxiosParamCreator(configuration)
  5015. return {
  5016. /**
  5017. *
  5018. * @param {ActivityCreateDto} activityCreateDto
  5019. * @param {*} [options] Override http request option.
  5020. * @throws {RequiredError}
  5021. */
  5022. async createActivity(activityCreateDto: ActivityCreateDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ActivityResponseDto>> {
  5023. const localVarAxiosArgs = await localVarAxiosParamCreator.createActivity(activityCreateDto, options);
  5024. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5025. },
  5026. /**
  5027. *
  5028. * @param {string} id
  5029. * @param {*} [options] Override http request option.
  5030. * @throws {RequiredError}
  5031. */
  5032. async deleteActivity(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  5033. const localVarAxiosArgs = await localVarAxiosParamCreator.deleteActivity(id, options);
  5034. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5035. },
  5036. /**
  5037. *
  5038. * @param {string} albumId
  5039. * @param {string} [assetId]
  5040. * @param {ReactionType} [type]
  5041. * @param {ReactionLevel} [level]
  5042. * @param {string} [userId]
  5043. * @param {*} [options] Override http request option.
  5044. * @throws {RequiredError}
  5045. */
  5046. async getActivities(albumId: string, assetId?: string, type?: ReactionType, level?: ReactionLevel, userId?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ActivityResponseDto>>> {
  5047. const localVarAxiosArgs = await localVarAxiosParamCreator.getActivities(albumId, assetId, type, level, userId, options);
  5048. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5049. },
  5050. /**
  5051. *
  5052. * @param {string} albumId
  5053. * @param {string} [assetId]
  5054. * @param {*} [options] Override http request option.
  5055. * @throws {RequiredError}
  5056. */
  5057. async getActivityStatistics(albumId: string, assetId?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ActivityStatisticsResponseDto>> {
  5058. const localVarAxiosArgs = await localVarAxiosParamCreator.getActivityStatistics(albumId, assetId, options);
  5059. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5060. },
  5061. }
  5062. };
  5063. /**
  5064. * ActivityApi - factory interface
  5065. * @export
  5066. */
  5067. export const ActivityApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  5068. const localVarFp = ActivityApiFp(configuration)
  5069. return {
  5070. /**
  5071. *
  5072. * @param {ActivityApiCreateActivityRequest} requestParameters Request parameters.
  5073. * @param {*} [options] Override http request option.
  5074. * @throws {RequiredError}
  5075. */
  5076. createActivity(requestParameters: ActivityApiCreateActivityRequest, options?: AxiosRequestConfig): AxiosPromise<ActivityResponseDto> {
  5077. return localVarFp.createActivity(requestParameters.activityCreateDto, options).then((request) => request(axios, basePath));
  5078. },
  5079. /**
  5080. *
  5081. * @param {ActivityApiDeleteActivityRequest} requestParameters Request parameters.
  5082. * @param {*} [options] Override http request option.
  5083. * @throws {RequiredError}
  5084. */
  5085. deleteActivity(requestParameters: ActivityApiDeleteActivityRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  5086. return localVarFp.deleteActivity(requestParameters.id, options).then((request) => request(axios, basePath));
  5087. },
  5088. /**
  5089. *
  5090. * @param {ActivityApiGetActivitiesRequest} requestParameters Request parameters.
  5091. * @param {*} [options] Override http request option.
  5092. * @throws {RequiredError}
  5093. */
  5094. getActivities(requestParameters: ActivityApiGetActivitiesRequest, options?: AxiosRequestConfig): AxiosPromise<Array<ActivityResponseDto>> {
  5095. return localVarFp.getActivities(requestParameters.albumId, requestParameters.assetId, requestParameters.type, requestParameters.level, requestParameters.userId, options).then((request) => request(axios, basePath));
  5096. },
  5097. /**
  5098. *
  5099. * @param {ActivityApiGetActivityStatisticsRequest} requestParameters Request parameters.
  5100. * @param {*} [options] Override http request option.
  5101. * @throws {RequiredError}
  5102. */
  5103. getActivityStatistics(requestParameters: ActivityApiGetActivityStatisticsRequest, options?: AxiosRequestConfig): AxiosPromise<ActivityStatisticsResponseDto> {
  5104. return localVarFp.getActivityStatistics(requestParameters.albumId, requestParameters.assetId, options).then((request) => request(axios, basePath));
  5105. },
  5106. };
  5107. };
  5108. /**
  5109. * Request parameters for createActivity operation in ActivityApi.
  5110. * @export
  5111. * @interface ActivityApiCreateActivityRequest
  5112. */
  5113. export interface ActivityApiCreateActivityRequest {
  5114. /**
  5115. *
  5116. * @type {ActivityCreateDto}
  5117. * @memberof ActivityApiCreateActivity
  5118. */
  5119. readonly activityCreateDto: ActivityCreateDto
  5120. }
  5121. /**
  5122. * Request parameters for deleteActivity operation in ActivityApi.
  5123. * @export
  5124. * @interface ActivityApiDeleteActivityRequest
  5125. */
  5126. export interface ActivityApiDeleteActivityRequest {
  5127. /**
  5128. *
  5129. * @type {string}
  5130. * @memberof ActivityApiDeleteActivity
  5131. */
  5132. readonly id: string
  5133. }
  5134. /**
  5135. * Request parameters for getActivities operation in ActivityApi.
  5136. * @export
  5137. * @interface ActivityApiGetActivitiesRequest
  5138. */
  5139. export interface ActivityApiGetActivitiesRequest {
  5140. /**
  5141. *
  5142. * @type {string}
  5143. * @memberof ActivityApiGetActivities
  5144. */
  5145. readonly albumId: string
  5146. /**
  5147. *
  5148. * @type {string}
  5149. * @memberof ActivityApiGetActivities
  5150. */
  5151. readonly assetId?: string
  5152. /**
  5153. *
  5154. * @type {ReactionType}
  5155. * @memberof ActivityApiGetActivities
  5156. */
  5157. readonly type?: ReactionType
  5158. /**
  5159. *
  5160. * @type {ReactionLevel}
  5161. * @memberof ActivityApiGetActivities
  5162. */
  5163. readonly level?: ReactionLevel
  5164. /**
  5165. *
  5166. * @type {string}
  5167. * @memberof ActivityApiGetActivities
  5168. */
  5169. readonly userId?: string
  5170. }
  5171. /**
  5172. * Request parameters for getActivityStatistics operation in ActivityApi.
  5173. * @export
  5174. * @interface ActivityApiGetActivityStatisticsRequest
  5175. */
  5176. export interface ActivityApiGetActivityStatisticsRequest {
  5177. /**
  5178. *
  5179. * @type {string}
  5180. * @memberof ActivityApiGetActivityStatistics
  5181. */
  5182. readonly albumId: string
  5183. /**
  5184. *
  5185. * @type {string}
  5186. * @memberof ActivityApiGetActivityStatistics
  5187. */
  5188. readonly assetId?: string
  5189. }
  5190. /**
  5191. * ActivityApi - object-oriented interface
  5192. * @export
  5193. * @class ActivityApi
  5194. * @extends {BaseAPI}
  5195. */
  5196. export class ActivityApi extends BaseAPI {
  5197. /**
  5198. *
  5199. * @param {ActivityApiCreateActivityRequest} requestParameters Request parameters.
  5200. * @param {*} [options] Override http request option.
  5201. * @throws {RequiredError}
  5202. * @memberof ActivityApi
  5203. */
  5204. public createActivity(requestParameters: ActivityApiCreateActivityRequest, options?: AxiosRequestConfig) {
  5205. return ActivityApiFp(this.configuration).createActivity(requestParameters.activityCreateDto, options).then((request) => request(this.axios, this.basePath));
  5206. }
  5207. /**
  5208. *
  5209. * @param {ActivityApiDeleteActivityRequest} requestParameters Request parameters.
  5210. * @param {*} [options] Override http request option.
  5211. * @throws {RequiredError}
  5212. * @memberof ActivityApi
  5213. */
  5214. public deleteActivity(requestParameters: ActivityApiDeleteActivityRequest, options?: AxiosRequestConfig) {
  5215. return ActivityApiFp(this.configuration).deleteActivity(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  5216. }
  5217. /**
  5218. *
  5219. * @param {ActivityApiGetActivitiesRequest} requestParameters Request parameters.
  5220. * @param {*} [options] Override http request option.
  5221. * @throws {RequiredError}
  5222. * @memberof ActivityApi
  5223. */
  5224. public getActivities(requestParameters: ActivityApiGetActivitiesRequest, options?: AxiosRequestConfig) {
  5225. return ActivityApiFp(this.configuration).getActivities(requestParameters.albumId, requestParameters.assetId, requestParameters.type, requestParameters.level, requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
  5226. }
  5227. /**
  5228. *
  5229. * @param {ActivityApiGetActivityStatisticsRequest} requestParameters Request parameters.
  5230. * @param {*} [options] Override http request option.
  5231. * @throws {RequiredError}
  5232. * @memberof ActivityApi
  5233. */
  5234. public getActivityStatistics(requestParameters: ActivityApiGetActivityStatisticsRequest, options?: AxiosRequestConfig) {
  5235. return ActivityApiFp(this.configuration).getActivityStatistics(requestParameters.albumId, requestParameters.assetId, options).then((request) => request(this.axios, this.basePath));
  5236. }
  5237. }
  5238. /**
  5239. * AlbumApi - axios parameter creator
  5240. * @export
  5241. */
  5242. export const AlbumApiAxiosParamCreator = function (configuration?: Configuration) {
  5243. return {
  5244. /**
  5245. *
  5246. * @param {string} id
  5247. * @param {BulkIdsDto} bulkIdsDto
  5248. * @param {string} [key]
  5249. * @param {*} [options] Override http request option.
  5250. * @throws {RequiredError}
  5251. */
  5252. addAssetsToAlbum: async (id: string, bulkIdsDto: BulkIdsDto, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5253. // verify required parameter 'id' is not null or undefined
  5254. assertParamExists('addAssetsToAlbum', 'id', id)
  5255. // verify required parameter 'bulkIdsDto' is not null or undefined
  5256. assertParamExists('addAssetsToAlbum', 'bulkIdsDto', bulkIdsDto)
  5257. const localVarPath = `/album/{id}/assets`
  5258. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  5259. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5260. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5261. let baseOptions;
  5262. if (configuration) {
  5263. baseOptions = configuration.baseOptions;
  5264. }
  5265. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  5266. const localVarHeaderParameter = {} as any;
  5267. const localVarQueryParameter = {} as any;
  5268. // authentication cookie required
  5269. // authentication api_key required
  5270. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5271. // authentication bearer required
  5272. // http bearer authentication required
  5273. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5274. if (key !== undefined) {
  5275. localVarQueryParameter['key'] = key;
  5276. }
  5277. localVarHeaderParameter['Content-Type'] = 'application/json';
  5278. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5279. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5280. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5281. localVarRequestOptions.data = serializeDataIfNeeded(bulkIdsDto, localVarRequestOptions, configuration)
  5282. return {
  5283. url: toPathString(localVarUrlObj),
  5284. options: localVarRequestOptions,
  5285. };
  5286. },
  5287. /**
  5288. *
  5289. * @param {string} id
  5290. * @param {AddUsersDto} addUsersDto
  5291. * @param {*} [options] Override http request option.
  5292. * @throws {RequiredError}
  5293. */
  5294. addUsersToAlbum: async (id: string, addUsersDto: AddUsersDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5295. // verify required parameter 'id' is not null or undefined
  5296. assertParamExists('addUsersToAlbum', 'id', id)
  5297. // verify required parameter 'addUsersDto' is not null or undefined
  5298. assertParamExists('addUsersToAlbum', 'addUsersDto', addUsersDto)
  5299. const localVarPath = `/album/{id}/users`
  5300. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  5301. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5302. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5303. let baseOptions;
  5304. if (configuration) {
  5305. baseOptions = configuration.baseOptions;
  5306. }
  5307. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  5308. const localVarHeaderParameter = {} as any;
  5309. const localVarQueryParameter = {} as any;
  5310. // authentication cookie required
  5311. // authentication api_key required
  5312. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5313. // authentication bearer required
  5314. // http bearer authentication required
  5315. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5316. localVarHeaderParameter['Content-Type'] = 'application/json';
  5317. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5318. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5319. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5320. localVarRequestOptions.data = serializeDataIfNeeded(addUsersDto, localVarRequestOptions, configuration)
  5321. return {
  5322. url: toPathString(localVarUrlObj),
  5323. options: localVarRequestOptions,
  5324. };
  5325. },
  5326. /**
  5327. *
  5328. * @param {CreateAlbumDto} createAlbumDto
  5329. * @param {*} [options] Override http request option.
  5330. * @throws {RequiredError}
  5331. */
  5332. createAlbum: async (createAlbumDto: CreateAlbumDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5333. // verify required parameter 'createAlbumDto' is not null or undefined
  5334. assertParamExists('createAlbum', 'createAlbumDto', createAlbumDto)
  5335. const localVarPath = `/album`;
  5336. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5337. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5338. let baseOptions;
  5339. if (configuration) {
  5340. baseOptions = configuration.baseOptions;
  5341. }
  5342. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  5343. const localVarHeaderParameter = {} as any;
  5344. const localVarQueryParameter = {} as any;
  5345. // authentication cookie required
  5346. // authentication api_key required
  5347. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5348. // authentication bearer required
  5349. // http bearer authentication required
  5350. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5351. localVarHeaderParameter['Content-Type'] = 'application/json';
  5352. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5353. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5354. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5355. localVarRequestOptions.data = serializeDataIfNeeded(createAlbumDto, localVarRequestOptions, configuration)
  5356. return {
  5357. url: toPathString(localVarUrlObj),
  5358. options: localVarRequestOptions,
  5359. };
  5360. },
  5361. /**
  5362. *
  5363. * @param {string} id
  5364. * @param {*} [options] Override http request option.
  5365. * @throws {RequiredError}
  5366. */
  5367. deleteAlbum: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5368. // verify required parameter 'id' is not null or undefined
  5369. assertParamExists('deleteAlbum', 'id', id)
  5370. const localVarPath = `/album/{id}`
  5371. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  5372. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5373. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5374. let baseOptions;
  5375. if (configuration) {
  5376. baseOptions = configuration.baseOptions;
  5377. }
  5378. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  5379. const localVarHeaderParameter = {} as any;
  5380. const localVarQueryParameter = {} as any;
  5381. // authentication cookie required
  5382. // authentication api_key required
  5383. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5384. // authentication bearer required
  5385. // http bearer authentication required
  5386. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5387. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5388. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5389. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5390. return {
  5391. url: toPathString(localVarUrlObj),
  5392. options: localVarRequestOptions,
  5393. };
  5394. },
  5395. /**
  5396. *
  5397. * @param {*} [options] Override http request option.
  5398. * @throws {RequiredError}
  5399. */
  5400. getAlbumCount: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5401. const localVarPath = `/album/count`;
  5402. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5403. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5404. let baseOptions;
  5405. if (configuration) {
  5406. baseOptions = configuration.baseOptions;
  5407. }
  5408. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  5409. const localVarHeaderParameter = {} as any;
  5410. const localVarQueryParameter = {} as any;
  5411. // authentication cookie required
  5412. // authentication api_key required
  5413. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5414. // authentication bearer required
  5415. // http bearer authentication required
  5416. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5417. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5418. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5419. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5420. return {
  5421. url: toPathString(localVarUrlObj),
  5422. options: localVarRequestOptions,
  5423. };
  5424. },
  5425. /**
  5426. *
  5427. * @param {string} id
  5428. * @param {boolean} [withoutAssets]
  5429. * @param {string} [key]
  5430. * @param {*} [options] Override http request option.
  5431. * @throws {RequiredError}
  5432. */
  5433. getAlbumInfo: async (id: string, withoutAssets?: boolean, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5434. // verify required parameter 'id' is not null or undefined
  5435. assertParamExists('getAlbumInfo', 'id', id)
  5436. const localVarPath = `/album/{id}`
  5437. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  5438. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5439. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5440. let baseOptions;
  5441. if (configuration) {
  5442. baseOptions = configuration.baseOptions;
  5443. }
  5444. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  5445. const localVarHeaderParameter = {} as any;
  5446. const localVarQueryParameter = {} as any;
  5447. // authentication cookie required
  5448. // authentication api_key required
  5449. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5450. // authentication bearer required
  5451. // http bearer authentication required
  5452. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5453. if (withoutAssets !== undefined) {
  5454. localVarQueryParameter['withoutAssets'] = withoutAssets;
  5455. }
  5456. if (key !== undefined) {
  5457. localVarQueryParameter['key'] = key;
  5458. }
  5459. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5460. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5461. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5462. return {
  5463. url: toPathString(localVarUrlObj),
  5464. options: localVarRequestOptions,
  5465. };
  5466. },
  5467. /**
  5468. *
  5469. * @param {boolean} [shared]
  5470. * @param {string} [assetId] Only returns albums that contain the asset Ignores the shared parameter undefined: get all albums
  5471. * @param {*} [options] Override http request option.
  5472. * @throws {RequiredError}
  5473. */
  5474. getAllAlbums: async (shared?: boolean, assetId?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5475. const localVarPath = `/album`;
  5476. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5477. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5478. let baseOptions;
  5479. if (configuration) {
  5480. baseOptions = configuration.baseOptions;
  5481. }
  5482. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  5483. const localVarHeaderParameter = {} as any;
  5484. const localVarQueryParameter = {} as any;
  5485. // authentication cookie required
  5486. // authentication api_key required
  5487. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5488. // authentication bearer required
  5489. // http bearer authentication required
  5490. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5491. if (shared !== undefined) {
  5492. localVarQueryParameter['shared'] = shared;
  5493. }
  5494. if (assetId !== undefined) {
  5495. localVarQueryParameter['assetId'] = assetId;
  5496. }
  5497. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5498. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5499. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5500. return {
  5501. url: toPathString(localVarUrlObj),
  5502. options: localVarRequestOptions,
  5503. };
  5504. },
  5505. /**
  5506. *
  5507. * @param {string} id
  5508. * @param {BulkIdsDto} bulkIdsDto
  5509. * @param {*} [options] Override http request option.
  5510. * @throws {RequiredError}
  5511. */
  5512. removeAssetFromAlbum: async (id: string, bulkIdsDto: BulkIdsDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5513. // verify required parameter 'id' is not null or undefined
  5514. assertParamExists('removeAssetFromAlbum', 'id', id)
  5515. // verify required parameter 'bulkIdsDto' is not null or undefined
  5516. assertParamExists('removeAssetFromAlbum', 'bulkIdsDto', bulkIdsDto)
  5517. const localVarPath = `/album/{id}/assets`
  5518. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  5519. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5520. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5521. let baseOptions;
  5522. if (configuration) {
  5523. baseOptions = configuration.baseOptions;
  5524. }
  5525. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  5526. const localVarHeaderParameter = {} as any;
  5527. const localVarQueryParameter = {} as any;
  5528. // authentication cookie required
  5529. // authentication api_key required
  5530. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5531. // authentication bearer required
  5532. // http bearer authentication required
  5533. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5534. localVarHeaderParameter['Content-Type'] = 'application/json';
  5535. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5536. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5537. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5538. localVarRequestOptions.data = serializeDataIfNeeded(bulkIdsDto, localVarRequestOptions, configuration)
  5539. return {
  5540. url: toPathString(localVarUrlObj),
  5541. options: localVarRequestOptions,
  5542. };
  5543. },
  5544. /**
  5545. *
  5546. * @param {string} id
  5547. * @param {string} userId
  5548. * @param {*} [options] Override http request option.
  5549. * @throws {RequiredError}
  5550. */
  5551. removeUserFromAlbum: async (id: string, userId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5552. // verify required parameter 'id' is not null or undefined
  5553. assertParamExists('removeUserFromAlbum', 'id', id)
  5554. // verify required parameter 'userId' is not null or undefined
  5555. assertParamExists('removeUserFromAlbum', 'userId', userId)
  5556. const localVarPath = `/album/{id}/user/{userId}`
  5557. .replace(`{${"id"}}`, encodeURIComponent(String(id)))
  5558. .replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
  5559. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5560. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5561. let baseOptions;
  5562. if (configuration) {
  5563. baseOptions = configuration.baseOptions;
  5564. }
  5565. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  5566. const localVarHeaderParameter = {} as any;
  5567. const localVarQueryParameter = {} as any;
  5568. // authentication cookie required
  5569. // authentication api_key required
  5570. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5571. // authentication bearer required
  5572. // http bearer authentication required
  5573. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5574. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5575. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5576. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5577. return {
  5578. url: toPathString(localVarUrlObj),
  5579. options: localVarRequestOptions,
  5580. };
  5581. },
  5582. /**
  5583. *
  5584. * @param {string} id
  5585. * @param {UpdateAlbumDto} updateAlbumDto
  5586. * @param {*} [options] Override http request option.
  5587. * @throws {RequiredError}
  5588. */
  5589. updateAlbumInfo: async (id: string, updateAlbumDto: UpdateAlbumDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5590. // verify required parameter 'id' is not null or undefined
  5591. assertParamExists('updateAlbumInfo', 'id', id)
  5592. // verify required parameter 'updateAlbumDto' is not null or undefined
  5593. assertParamExists('updateAlbumInfo', 'updateAlbumDto', updateAlbumDto)
  5594. const localVarPath = `/album/{id}`
  5595. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  5596. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5597. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5598. let baseOptions;
  5599. if (configuration) {
  5600. baseOptions = configuration.baseOptions;
  5601. }
  5602. const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
  5603. const localVarHeaderParameter = {} as any;
  5604. const localVarQueryParameter = {} as any;
  5605. // authentication cookie required
  5606. // authentication api_key required
  5607. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5608. // authentication bearer required
  5609. // http bearer authentication required
  5610. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5611. localVarHeaderParameter['Content-Type'] = 'application/json';
  5612. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5613. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5614. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5615. localVarRequestOptions.data = serializeDataIfNeeded(updateAlbumDto, localVarRequestOptions, configuration)
  5616. return {
  5617. url: toPathString(localVarUrlObj),
  5618. options: localVarRequestOptions,
  5619. };
  5620. },
  5621. }
  5622. };
  5623. /**
  5624. * AlbumApi - functional programming interface
  5625. * @export
  5626. */
  5627. export const AlbumApiFp = function(configuration?: Configuration) {
  5628. const localVarAxiosParamCreator = AlbumApiAxiosParamCreator(configuration)
  5629. return {
  5630. /**
  5631. *
  5632. * @param {string} id
  5633. * @param {BulkIdsDto} bulkIdsDto
  5634. * @param {string} [key]
  5635. * @param {*} [options] Override http request option.
  5636. * @throws {RequiredError}
  5637. */
  5638. async addAssetsToAlbum(id: string, bulkIdsDto: BulkIdsDto, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<BulkIdResponseDto>>> {
  5639. const localVarAxiosArgs = await localVarAxiosParamCreator.addAssetsToAlbum(id, bulkIdsDto, key, options);
  5640. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5641. },
  5642. /**
  5643. *
  5644. * @param {string} id
  5645. * @param {AddUsersDto} addUsersDto
  5646. * @param {*} [options] Override http request option.
  5647. * @throws {RequiredError}
  5648. */
  5649. async addUsersToAlbum(id: string, addUsersDto: AddUsersDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AlbumResponseDto>> {
  5650. const localVarAxiosArgs = await localVarAxiosParamCreator.addUsersToAlbum(id, addUsersDto, options);
  5651. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5652. },
  5653. /**
  5654. *
  5655. * @param {CreateAlbumDto} createAlbumDto
  5656. * @param {*} [options] Override http request option.
  5657. * @throws {RequiredError}
  5658. */
  5659. async createAlbum(createAlbumDto: CreateAlbumDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AlbumResponseDto>> {
  5660. const localVarAxiosArgs = await localVarAxiosParamCreator.createAlbum(createAlbumDto, options);
  5661. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5662. },
  5663. /**
  5664. *
  5665. * @param {string} id
  5666. * @param {*} [options] Override http request option.
  5667. * @throws {RequiredError}
  5668. */
  5669. async deleteAlbum(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  5670. const localVarAxiosArgs = await localVarAxiosParamCreator.deleteAlbum(id, options);
  5671. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5672. },
  5673. /**
  5674. *
  5675. * @param {*} [options] Override http request option.
  5676. * @throws {RequiredError}
  5677. */
  5678. async getAlbumCount(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AlbumCountResponseDto>> {
  5679. const localVarAxiosArgs = await localVarAxiosParamCreator.getAlbumCount(options);
  5680. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5681. },
  5682. /**
  5683. *
  5684. * @param {string} id
  5685. * @param {boolean} [withoutAssets]
  5686. * @param {string} [key]
  5687. * @param {*} [options] Override http request option.
  5688. * @throws {RequiredError}
  5689. */
  5690. async getAlbumInfo(id: string, withoutAssets?: boolean, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AlbumResponseDto>> {
  5691. const localVarAxiosArgs = await localVarAxiosParamCreator.getAlbumInfo(id, withoutAssets, key, options);
  5692. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5693. },
  5694. /**
  5695. *
  5696. * @param {boolean} [shared]
  5697. * @param {string} [assetId] Only returns albums that contain the asset Ignores the shared parameter undefined: get all albums
  5698. * @param {*} [options] Override http request option.
  5699. * @throws {RequiredError}
  5700. */
  5701. async getAllAlbums(shared?: boolean, assetId?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AlbumResponseDto>>> {
  5702. const localVarAxiosArgs = await localVarAxiosParamCreator.getAllAlbums(shared, assetId, options);
  5703. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5704. },
  5705. /**
  5706. *
  5707. * @param {string} id
  5708. * @param {BulkIdsDto} bulkIdsDto
  5709. * @param {*} [options] Override http request option.
  5710. * @throws {RequiredError}
  5711. */
  5712. async removeAssetFromAlbum(id: string, bulkIdsDto: BulkIdsDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<BulkIdResponseDto>>> {
  5713. const localVarAxiosArgs = await localVarAxiosParamCreator.removeAssetFromAlbum(id, bulkIdsDto, options);
  5714. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5715. },
  5716. /**
  5717. *
  5718. * @param {string} id
  5719. * @param {string} userId
  5720. * @param {*} [options] Override http request option.
  5721. * @throws {RequiredError}
  5722. */
  5723. async removeUserFromAlbum(id: string, userId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  5724. const localVarAxiosArgs = await localVarAxiosParamCreator.removeUserFromAlbum(id, userId, options);
  5725. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5726. },
  5727. /**
  5728. *
  5729. * @param {string} id
  5730. * @param {UpdateAlbumDto} updateAlbumDto
  5731. * @param {*} [options] Override http request option.
  5732. * @throws {RequiredError}
  5733. */
  5734. async updateAlbumInfo(id: string, updateAlbumDto: UpdateAlbumDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AlbumResponseDto>> {
  5735. const localVarAxiosArgs = await localVarAxiosParamCreator.updateAlbumInfo(id, updateAlbumDto, options);
  5736. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5737. },
  5738. }
  5739. };
  5740. /**
  5741. * AlbumApi - factory interface
  5742. * @export
  5743. */
  5744. export const AlbumApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  5745. const localVarFp = AlbumApiFp(configuration)
  5746. return {
  5747. /**
  5748. *
  5749. * @param {AlbumApiAddAssetsToAlbumRequest} requestParameters Request parameters.
  5750. * @param {*} [options] Override http request option.
  5751. * @throws {RequiredError}
  5752. */
  5753. addAssetsToAlbum(requestParameters: AlbumApiAddAssetsToAlbumRequest, options?: AxiosRequestConfig): AxiosPromise<Array<BulkIdResponseDto>> {
  5754. return localVarFp.addAssetsToAlbum(requestParameters.id, requestParameters.bulkIdsDto, requestParameters.key, options).then((request) => request(axios, basePath));
  5755. },
  5756. /**
  5757. *
  5758. * @param {AlbumApiAddUsersToAlbumRequest} requestParameters Request parameters.
  5759. * @param {*} [options] Override http request option.
  5760. * @throws {RequiredError}
  5761. */
  5762. addUsersToAlbum(requestParameters: AlbumApiAddUsersToAlbumRequest, options?: AxiosRequestConfig): AxiosPromise<AlbumResponseDto> {
  5763. return localVarFp.addUsersToAlbum(requestParameters.id, requestParameters.addUsersDto, options).then((request) => request(axios, basePath));
  5764. },
  5765. /**
  5766. *
  5767. * @param {AlbumApiCreateAlbumRequest} requestParameters Request parameters.
  5768. * @param {*} [options] Override http request option.
  5769. * @throws {RequiredError}
  5770. */
  5771. createAlbum(requestParameters: AlbumApiCreateAlbumRequest, options?: AxiosRequestConfig): AxiosPromise<AlbumResponseDto> {
  5772. return localVarFp.createAlbum(requestParameters.createAlbumDto, options).then((request) => request(axios, basePath));
  5773. },
  5774. /**
  5775. *
  5776. * @param {AlbumApiDeleteAlbumRequest} requestParameters Request parameters.
  5777. * @param {*} [options] Override http request option.
  5778. * @throws {RequiredError}
  5779. */
  5780. deleteAlbum(requestParameters: AlbumApiDeleteAlbumRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  5781. return localVarFp.deleteAlbum(requestParameters.id, options).then((request) => request(axios, basePath));
  5782. },
  5783. /**
  5784. *
  5785. * @param {*} [options] Override http request option.
  5786. * @throws {RequiredError}
  5787. */
  5788. getAlbumCount(options?: AxiosRequestConfig): AxiosPromise<AlbumCountResponseDto> {
  5789. return localVarFp.getAlbumCount(options).then((request) => request(axios, basePath));
  5790. },
  5791. /**
  5792. *
  5793. * @param {AlbumApiGetAlbumInfoRequest} requestParameters Request parameters.
  5794. * @param {*} [options] Override http request option.
  5795. * @throws {RequiredError}
  5796. */
  5797. getAlbumInfo(requestParameters: AlbumApiGetAlbumInfoRequest, options?: AxiosRequestConfig): AxiosPromise<AlbumResponseDto> {
  5798. return localVarFp.getAlbumInfo(requestParameters.id, requestParameters.withoutAssets, requestParameters.key, options).then((request) => request(axios, basePath));
  5799. },
  5800. /**
  5801. *
  5802. * @param {AlbumApiGetAllAlbumsRequest} requestParameters Request parameters.
  5803. * @param {*} [options] Override http request option.
  5804. * @throws {RequiredError}
  5805. */
  5806. getAllAlbums(requestParameters: AlbumApiGetAllAlbumsRequest = {}, options?: AxiosRequestConfig): AxiosPromise<Array<AlbumResponseDto>> {
  5807. return localVarFp.getAllAlbums(requestParameters.shared, requestParameters.assetId, options).then((request) => request(axios, basePath));
  5808. },
  5809. /**
  5810. *
  5811. * @param {AlbumApiRemoveAssetFromAlbumRequest} requestParameters Request parameters.
  5812. * @param {*} [options] Override http request option.
  5813. * @throws {RequiredError}
  5814. */
  5815. removeAssetFromAlbum(requestParameters: AlbumApiRemoveAssetFromAlbumRequest, options?: AxiosRequestConfig): AxiosPromise<Array<BulkIdResponseDto>> {
  5816. return localVarFp.removeAssetFromAlbum(requestParameters.id, requestParameters.bulkIdsDto, options).then((request) => request(axios, basePath));
  5817. },
  5818. /**
  5819. *
  5820. * @param {AlbumApiRemoveUserFromAlbumRequest} requestParameters Request parameters.
  5821. * @param {*} [options] Override http request option.
  5822. * @throws {RequiredError}
  5823. */
  5824. removeUserFromAlbum(requestParameters: AlbumApiRemoveUserFromAlbumRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  5825. return localVarFp.removeUserFromAlbum(requestParameters.id, requestParameters.userId, options).then((request) => request(axios, basePath));
  5826. },
  5827. /**
  5828. *
  5829. * @param {AlbumApiUpdateAlbumInfoRequest} requestParameters Request parameters.
  5830. * @param {*} [options] Override http request option.
  5831. * @throws {RequiredError}
  5832. */
  5833. updateAlbumInfo(requestParameters: AlbumApiUpdateAlbumInfoRequest, options?: AxiosRequestConfig): AxiosPromise<AlbumResponseDto> {
  5834. return localVarFp.updateAlbumInfo(requestParameters.id, requestParameters.updateAlbumDto, options).then((request) => request(axios, basePath));
  5835. },
  5836. };
  5837. };
  5838. /**
  5839. * Request parameters for addAssetsToAlbum operation in AlbumApi.
  5840. * @export
  5841. * @interface AlbumApiAddAssetsToAlbumRequest
  5842. */
  5843. export interface AlbumApiAddAssetsToAlbumRequest {
  5844. /**
  5845. *
  5846. * @type {string}
  5847. * @memberof AlbumApiAddAssetsToAlbum
  5848. */
  5849. readonly id: string
  5850. /**
  5851. *
  5852. * @type {BulkIdsDto}
  5853. * @memberof AlbumApiAddAssetsToAlbum
  5854. */
  5855. readonly bulkIdsDto: BulkIdsDto
  5856. /**
  5857. *
  5858. * @type {string}
  5859. * @memberof AlbumApiAddAssetsToAlbum
  5860. */
  5861. readonly key?: string
  5862. }
  5863. /**
  5864. * Request parameters for addUsersToAlbum operation in AlbumApi.
  5865. * @export
  5866. * @interface AlbumApiAddUsersToAlbumRequest
  5867. */
  5868. export interface AlbumApiAddUsersToAlbumRequest {
  5869. /**
  5870. *
  5871. * @type {string}
  5872. * @memberof AlbumApiAddUsersToAlbum
  5873. */
  5874. readonly id: string
  5875. /**
  5876. *
  5877. * @type {AddUsersDto}
  5878. * @memberof AlbumApiAddUsersToAlbum
  5879. */
  5880. readonly addUsersDto: AddUsersDto
  5881. }
  5882. /**
  5883. * Request parameters for createAlbum operation in AlbumApi.
  5884. * @export
  5885. * @interface AlbumApiCreateAlbumRequest
  5886. */
  5887. export interface AlbumApiCreateAlbumRequest {
  5888. /**
  5889. *
  5890. * @type {CreateAlbumDto}
  5891. * @memberof AlbumApiCreateAlbum
  5892. */
  5893. readonly createAlbumDto: CreateAlbumDto
  5894. }
  5895. /**
  5896. * Request parameters for deleteAlbum operation in AlbumApi.
  5897. * @export
  5898. * @interface AlbumApiDeleteAlbumRequest
  5899. */
  5900. export interface AlbumApiDeleteAlbumRequest {
  5901. /**
  5902. *
  5903. * @type {string}
  5904. * @memberof AlbumApiDeleteAlbum
  5905. */
  5906. readonly id: string
  5907. }
  5908. /**
  5909. * Request parameters for getAlbumInfo operation in AlbumApi.
  5910. * @export
  5911. * @interface AlbumApiGetAlbumInfoRequest
  5912. */
  5913. export interface AlbumApiGetAlbumInfoRequest {
  5914. /**
  5915. *
  5916. * @type {string}
  5917. * @memberof AlbumApiGetAlbumInfo
  5918. */
  5919. readonly id: string
  5920. /**
  5921. *
  5922. * @type {boolean}
  5923. * @memberof AlbumApiGetAlbumInfo
  5924. */
  5925. readonly withoutAssets?: boolean
  5926. /**
  5927. *
  5928. * @type {string}
  5929. * @memberof AlbumApiGetAlbumInfo
  5930. */
  5931. readonly key?: string
  5932. }
  5933. /**
  5934. * Request parameters for getAllAlbums operation in AlbumApi.
  5935. * @export
  5936. * @interface AlbumApiGetAllAlbumsRequest
  5937. */
  5938. export interface AlbumApiGetAllAlbumsRequest {
  5939. /**
  5940. *
  5941. * @type {boolean}
  5942. * @memberof AlbumApiGetAllAlbums
  5943. */
  5944. readonly shared?: boolean
  5945. /**
  5946. * Only returns albums that contain the asset Ignores the shared parameter undefined: get all albums
  5947. * @type {string}
  5948. * @memberof AlbumApiGetAllAlbums
  5949. */
  5950. readonly assetId?: string
  5951. }
  5952. /**
  5953. * Request parameters for removeAssetFromAlbum operation in AlbumApi.
  5954. * @export
  5955. * @interface AlbumApiRemoveAssetFromAlbumRequest
  5956. */
  5957. export interface AlbumApiRemoveAssetFromAlbumRequest {
  5958. /**
  5959. *
  5960. * @type {string}
  5961. * @memberof AlbumApiRemoveAssetFromAlbum
  5962. */
  5963. readonly id: string
  5964. /**
  5965. *
  5966. * @type {BulkIdsDto}
  5967. * @memberof AlbumApiRemoveAssetFromAlbum
  5968. */
  5969. readonly bulkIdsDto: BulkIdsDto
  5970. }
  5971. /**
  5972. * Request parameters for removeUserFromAlbum operation in AlbumApi.
  5973. * @export
  5974. * @interface AlbumApiRemoveUserFromAlbumRequest
  5975. */
  5976. export interface AlbumApiRemoveUserFromAlbumRequest {
  5977. /**
  5978. *
  5979. * @type {string}
  5980. * @memberof AlbumApiRemoveUserFromAlbum
  5981. */
  5982. readonly id: string
  5983. /**
  5984. *
  5985. * @type {string}
  5986. * @memberof AlbumApiRemoveUserFromAlbum
  5987. */
  5988. readonly userId: string
  5989. }
  5990. /**
  5991. * Request parameters for updateAlbumInfo operation in AlbumApi.
  5992. * @export
  5993. * @interface AlbumApiUpdateAlbumInfoRequest
  5994. */
  5995. export interface AlbumApiUpdateAlbumInfoRequest {
  5996. /**
  5997. *
  5998. * @type {string}
  5999. * @memberof AlbumApiUpdateAlbumInfo
  6000. */
  6001. readonly id: string
  6002. /**
  6003. *
  6004. * @type {UpdateAlbumDto}
  6005. * @memberof AlbumApiUpdateAlbumInfo
  6006. */
  6007. readonly updateAlbumDto: UpdateAlbumDto
  6008. }
  6009. /**
  6010. * AlbumApi - object-oriented interface
  6011. * @export
  6012. * @class AlbumApi
  6013. * @extends {BaseAPI}
  6014. */
  6015. export class AlbumApi extends BaseAPI {
  6016. /**
  6017. *
  6018. * @param {AlbumApiAddAssetsToAlbumRequest} requestParameters Request parameters.
  6019. * @param {*} [options] Override http request option.
  6020. * @throws {RequiredError}
  6021. * @memberof AlbumApi
  6022. */
  6023. public addAssetsToAlbum(requestParameters: AlbumApiAddAssetsToAlbumRequest, options?: AxiosRequestConfig) {
  6024. return AlbumApiFp(this.configuration).addAssetsToAlbum(requestParameters.id, requestParameters.bulkIdsDto, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  6025. }
  6026. /**
  6027. *
  6028. * @param {AlbumApiAddUsersToAlbumRequest} requestParameters Request parameters.
  6029. * @param {*} [options] Override http request option.
  6030. * @throws {RequiredError}
  6031. * @memberof AlbumApi
  6032. */
  6033. public addUsersToAlbum(requestParameters: AlbumApiAddUsersToAlbumRequest, options?: AxiosRequestConfig) {
  6034. return AlbumApiFp(this.configuration).addUsersToAlbum(requestParameters.id, requestParameters.addUsersDto, options).then((request) => request(this.axios, this.basePath));
  6035. }
  6036. /**
  6037. *
  6038. * @param {AlbumApiCreateAlbumRequest} requestParameters Request parameters.
  6039. * @param {*} [options] Override http request option.
  6040. * @throws {RequiredError}
  6041. * @memberof AlbumApi
  6042. */
  6043. public createAlbum(requestParameters: AlbumApiCreateAlbumRequest, options?: AxiosRequestConfig) {
  6044. return AlbumApiFp(this.configuration).createAlbum(requestParameters.createAlbumDto, options).then((request) => request(this.axios, this.basePath));
  6045. }
  6046. /**
  6047. *
  6048. * @param {AlbumApiDeleteAlbumRequest} requestParameters Request parameters.
  6049. * @param {*} [options] Override http request option.
  6050. * @throws {RequiredError}
  6051. * @memberof AlbumApi
  6052. */
  6053. public deleteAlbum(requestParameters: AlbumApiDeleteAlbumRequest, options?: AxiosRequestConfig) {
  6054. return AlbumApiFp(this.configuration).deleteAlbum(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  6055. }
  6056. /**
  6057. *
  6058. * @param {*} [options] Override http request option.
  6059. * @throws {RequiredError}
  6060. * @memberof AlbumApi
  6061. */
  6062. public getAlbumCount(options?: AxiosRequestConfig) {
  6063. return AlbumApiFp(this.configuration).getAlbumCount(options).then((request) => request(this.axios, this.basePath));
  6064. }
  6065. /**
  6066. *
  6067. * @param {AlbumApiGetAlbumInfoRequest} requestParameters Request parameters.
  6068. * @param {*} [options] Override http request option.
  6069. * @throws {RequiredError}
  6070. * @memberof AlbumApi
  6071. */
  6072. public getAlbumInfo(requestParameters: AlbumApiGetAlbumInfoRequest, options?: AxiosRequestConfig) {
  6073. return AlbumApiFp(this.configuration).getAlbumInfo(requestParameters.id, requestParameters.withoutAssets, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  6074. }
  6075. /**
  6076. *
  6077. * @param {AlbumApiGetAllAlbumsRequest} requestParameters Request parameters.
  6078. * @param {*} [options] Override http request option.
  6079. * @throws {RequiredError}
  6080. * @memberof AlbumApi
  6081. */
  6082. public getAllAlbums(requestParameters: AlbumApiGetAllAlbumsRequest = {}, options?: AxiosRequestConfig) {
  6083. return AlbumApiFp(this.configuration).getAllAlbums(requestParameters.shared, requestParameters.assetId, options).then((request) => request(this.axios, this.basePath));
  6084. }
  6085. /**
  6086. *
  6087. * @param {AlbumApiRemoveAssetFromAlbumRequest} requestParameters Request parameters.
  6088. * @param {*} [options] Override http request option.
  6089. * @throws {RequiredError}
  6090. * @memberof AlbumApi
  6091. */
  6092. public removeAssetFromAlbum(requestParameters: AlbumApiRemoveAssetFromAlbumRequest, options?: AxiosRequestConfig) {
  6093. return AlbumApiFp(this.configuration).removeAssetFromAlbum(requestParameters.id, requestParameters.bulkIdsDto, options).then((request) => request(this.axios, this.basePath));
  6094. }
  6095. /**
  6096. *
  6097. * @param {AlbumApiRemoveUserFromAlbumRequest} requestParameters Request parameters.
  6098. * @param {*} [options] Override http request option.
  6099. * @throws {RequiredError}
  6100. * @memberof AlbumApi
  6101. */
  6102. public removeUserFromAlbum(requestParameters: AlbumApiRemoveUserFromAlbumRequest, options?: AxiosRequestConfig) {
  6103. return AlbumApiFp(this.configuration).removeUserFromAlbum(requestParameters.id, requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
  6104. }
  6105. /**
  6106. *
  6107. * @param {AlbumApiUpdateAlbumInfoRequest} requestParameters Request parameters.
  6108. * @param {*} [options] Override http request option.
  6109. * @throws {RequiredError}
  6110. * @memberof AlbumApi
  6111. */
  6112. public updateAlbumInfo(requestParameters: AlbumApiUpdateAlbumInfoRequest, options?: AxiosRequestConfig) {
  6113. return AlbumApiFp(this.configuration).updateAlbumInfo(requestParameters.id, requestParameters.updateAlbumDto, options).then((request) => request(this.axios, this.basePath));
  6114. }
  6115. }
  6116. /**
  6117. * AssetApi - axios parameter creator
  6118. * @export
  6119. */
  6120. export const AssetApiAxiosParamCreator = function (configuration?: Configuration) {
  6121. return {
  6122. /**
  6123. * Checks if assets exist by checksums
  6124. * @param {AssetBulkUploadCheckDto} assetBulkUploadCheckDto
  6125. * @param {*} [options] Override http request option.
  6126. * @throws {RequiredError}
  6127. */
  6128. checkBulkUpload: async (assetBulkUploadCheckDto: AssetBulkUploadCheckDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6129. // verify required parameter 'assetBulkUploadCheckDto' is not null or undefined
  6130. assertParamExists('checkBulkUpload', 'assetBulkUploadCheckDto', assetBulkUploadCheckDto)
  6131. const localVarPath = `/asset/bulk-upload-check`;
  6132. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6133. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6134. let baseOptions;
  6135. if (configuration) {
  6136. baseOptions = configuration.baseOptions;
  6137. }
  6138. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  6139. const localVarHeaderParameter = {} as any;
  6140. const localVarQueryParameter = {} as any;
  6141. // authentication cookie required
  6142. // authentication api_key required
  6143. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6144. // authentication bearer required
  6145. // http bearer authentication required
  6146. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6147. localVarHeaderParameter['Content-Type'] = 'application/json';
  6148. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6149. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6150. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6151. localVarRequestOptions.data = serializeDataIfNeeded(assetBulkUploadCheckDto, localVarRequestOptions, configuration)
  6152. return {
  6153. url: toPathString(localVarUrlObj),
  6154. options: localVarRequestOptions,
  6155. };
  6156. },
  6157. /**
  6158. * Checks if multiple assets exist on the server and returns all existing - used by background backup
  6159. * @param {CheckExistingAssetsDto} checkExistingAssetsDto
  6160. * @param {*} [options] Override http request option.
  6161. * @throws {RequiredError}
  6162. */
  6163. checkExistingAssets: async (checkExistingAssetsDto: CheckExistingAssetsDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6164. // verify required parameter 'checkExistingAssetsDto' is not null or undefined
  6165. assertParamExists('checkExistingAssets', 'checkExistingAssetsDto', checkExistingAssetsDto)
  6166. const localVarPath = `/asset/exist`;
  6167. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6168. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6169. let baseOptions;
  6170. if (configuration) {
  6171. baseOptions = configuration.baseOptions;
  6172. }
  6173. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  6174. const localVarHeaderParameter = {} as any;
  6175. const localVarQueryParameter = {} as any;
  6176. // authentication cookie required
  6177. // authentication api_key required
  6178. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6179. // authentication bearer required
  6180. // http bearer authentication required
  6181. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6182. localVarHeaderParameter['Content-Type'] = 'application/json';
  6183. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6184. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6185. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6186. localVarRequestOptions.data = serializeDataIfNeeded(checkExistingAssetsDto, localVarRequestOptions, configuration)
  6187. return {
  6188. url: toPathString(localVarUrlObj),
  6189. options: localVarRequestOptions,
  6190. };
  6191. },
  6192. /**
  6193. *
  6194. * @param {AssetBulkDeleteDto} assetBulkDeleteDto
  6195. * @param {*} [options] Override http request option.
  6196. * @throws {RequiredError}
  6197. */
  6198. deleteAssets: async (assetBulkDeleteDto: AssetBulkDeleteDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6199. // verify required parameter 'assetBulkDeleteDto' is not null or undefined
  6200. assertParamExists('deleteAssets', 'assetBulkDeleteDto', assetBulkDeleteDto)
  6201. const localVarPath = `/asset`;
  6202. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6203. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6204. let baseOptions;
  6205. if (configuration) {
  6206. baseOptions = configuration.baseOptions;
  6207. }
  6208. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  6209. const localVarHeaderParameter = {} as any;
  6210. const localVarQueryParameter = {} as any;
  6211. // authentication cookie required
  6212. // authentication api_key required
  6213. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6214. // authentication bearer required
  6215. // http bearer authentication required
  6216. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6217. localVarHeaderParameter['Content-Type'] = 'application/json';
  6218. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6219. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6220. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6221. localVarRequestOptions.data = serializeDataIfNeeded(assetBulkDeleteDto, localVarRequestOptions, configuration)
  6222. return {
  6223. url: toPathString(localVarUrlObj),
  6224. options: localVarRequestOptions,
  6225. };
  6226. },
  6227. /**
  6228. *
  6229. * @param {AssetIdsDto} assetIdsDto
  6230. * @param {string} [key]
  6231. * @param {*} [options] Override http request option.
  6232. * @throws {RequiredError}
  6233. */
  6234. downloadArchive: async (assetIdsDto: AssetIdsDto, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6235. // verify required parameter 'assetIdsDto' is not null or undefined
  6236. assertParamExists('downloadArchive', 'assetIdsDto', assetIdsDto)
  6237. const localVarPath = `/asset/download/archive`;
  6238. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6239. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6240. let baseOptions;
  6241. if (configuration) {
  6242. baseOptions = configuration.baseOptions;
  6243. }
  6244. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  6245. const localVarHeaderParameter = {} as any;
  6246. const localVarQueryParameter = {} as any;
  6247. // authentication cookie required
  6248. // authentication api_key required
  6249. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6250. // authentication bearer required
  6251. // http bearer authentication required
  6252. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6253. if (key !== undefined) {
  6254. localVarQueryParameter['key'] = key;
  6255. }
  6256. localVarHeaderParameter['Content-Type'] = 'application/json';
  6257. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6258. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6259. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6260. localVarRequestOptions.data = serializeDataIfNeeded(assetIdsDto, localVarRequestOptions, configuration)
  6261. return {
  6262. url: toPathString(localVarUrlObj),
  6263. options: localVarRequestOptions,
  6264. };
  6265. },
  6266. /**
  6267. *
  6268. * @param {string} id
  6269. * @param {string} [key]
  6270. * @param {*} [options] Override http request option.
  6271. * @throws {RequiredError}
  6272. */
  6273. downloadFile: async (id: string, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6274. // verify required parameter 'id' is not null or undefined
  6275. assertParamExists('downloadFile', 'id', id)
  6276. const localVarPath = `/asset/download/{id}`
  6277. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  6278. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6279. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6280. let baseOptions;
  6281. if (configuration) {
  6282. baseOptions = configuration.baseOptions;
  6283. }
  6284. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  6285. const localVarHeaderParameter = {} as any;
  6286. const localVarQueryParameter = {} as any;
  6287. // authentication cookie required
  6288. // authentication api_key required
  6289. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6290. // authentication bearer required
  6291. // http bearer authentication required
  6292. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6293. if (key !== undefined) {
  6294. localVarQueryParameter['key'] = key;
  6295. }
  6296. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6297. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6298. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6299. return {
  6300. url: toPathString(localVarUrlObj),
  6301. options: localVarRequestOptions,
  6302. };
  6303. },
  6304. /**
  6305. *
  6306. * @param {*} [options] Override http request option.
  6307. * @throws {RequiredError}
  6308. */
  6309. emptyTrash: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6310. const localVarPath = `/asset/trash/empty`;
  6311. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6312. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6313. let baseOptions;
  6314. if (configuration) {
  6315. baseOptions = configuration.baseOptions;
  6316. }
  6317. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  6318. const localVarHeaderParameter = {} as any;
  6319. const localVarQueryParameter = {} as any;
  6320. // authentication cookie required
  6321. // authentication api_key required
  6322. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6323. // authentication bearer required
  6324. // http bearer authentication required
  6325. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6326. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6327. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6328. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6329. return {
  6330. url: toPathString(localVarUrlObj),
  6331. options: localVarRequestOptions,
  6332. };
  6333. },
  6334. /**
  6335. * Get all AssetEntity belong to the user
  6336. * @param {number} [skip]
  6337. * @param {number} [take]
  6338. * @param {string} [userId]
  6339. * @param {boolean} [isFavorite]
  6340. * @param {boolean} [isArchived]
  6341. * @param {string} [updatedAfter]
  6342. * @param {string} [updatedBefore]
  6343. * @param {string} [ifNoneMatch] ETag of data already cached on the client
  6344. * @param {*} [options] Override http request option.
  6345. * @throws {RequiredError}
  6346. */
  6347. getAllAssets: async (skip?: number, take?: number, userId?: string, isFavorite?: boolean, isArchived?: boolean, updatedAfter?: string, updatedBefore?: string, ifNoneMatch?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6348. const localVarPath = `/asset`;
  6349. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6350. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6351. let baseOptions;
  6352. if (configuration) {
  6353. baseOptions = configuration.baseOptions;
  6354. }
  6355. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6356. const localVarHeaderParameter = {} as any;
  6357. const localVarQueryParameter = {} as any;
  6358. // authentication cookie required
  6359. // authentication api_key required
  6360. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6361. // authentication bearer required
  6362. // http bearer authentication required
  6363. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6364. if (skip !== undefined) {
  6365. localVarQueryParameter['skip'] = skip;
  6366. }
  6367. if (take !== undefined) {
  6368. localVarQueryParameter['take'] = take;
  6369. }
  6370. if (userId !== undefined) {
  6371. localVarQueryParameter['userId'] = userId;
  6372. }
  6373. if (isFavorite !== undefined) {
  6374. localVarQueryParameter['isFavorite'] = isFavorite;
  6375. }
  6376. if (isArchived !== undefined) {
  6377. localVarQueryParameter['isArchived'] = isArchived;
  6378. }
  6379. if (updatedAfter !== undefined) {
  6380. localVarQueryParameter['updatedAfter'] = (updatedAfter as any instanceof Date) ?
  6381. (updatedAfter as any).toISOString() :
  6382. updatedAfter;
  6383. }
  6384. if (updatedBefore !== undefined) {
  6385. localVarQueryParameter['updatedBefore'] = (updatedBefore as any instanceof Date) ?
  6386. (updatedBefore as any).toISOString() :
  6387. updatedBefore;
  6388. }
  6389. if (ifNoneMatch != null) {
  6390. localVarHeaderParameter['if-none-match'] = String(ifNoneMatch);
  6391. }
  6392. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6393. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6394. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6395. return {
  6396. url: toPathString(localVarUrlObj),
  6397. options: localVarRequestOptions,
  6398. };
  6399. },
  6400. /**
  6401. * Get a single asset\'s information
  6402. * @param {string} id
  6403. * @param {string} [key]
  6404. * @param {*} [options] Override http request option.
  6405. * @throws {RequiredError}
  6406. */
  6407. getAssetById: async (id: string, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6408. // verify required parameter 'id' is not null or undefined
  6409. assertParamExists('getAssetById', 'id', id)
  6410. const localVarPath = `/asset/assetById/{id}`
  6411. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  6412. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6413. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6414. let baseOptions;
  6415. if (configuration) {
  6416. baseOptions = configuration.baseOptions;
  6417. }
  6418. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6419. const localVarHeaderParameter = {} as any;
  6420. const localVarQueryParameter = {} as any;
  6421. // authentication cookie required
  6422. // authentication api_key required
  6423. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6424. // authentication bearer required
  6425. // http bearer authentication required
  6426. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6427. if (key !== undefined) {
  6428. localVarQueryParameter['key'] = key;
  6429. }
  6430. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6431. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6432. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6433. return {
  6434. url: toPathString(localVarUrlObj),
  6435. options: localVarRequestOptions,
  6436. };
  6437. },
  6438. /**
  6439. *
  6440. * @param {*} [options] Override http request option.
  6441. * @throws {RequiredError}
  6442. */
  6443. getAssetSearchTerms: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6444. const localVarPath = `/asset/search-terms`;
  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. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6461. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6462. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6463. return {
  6464. url: toPathString(localVarUrlObj),
  6465. options: localVarRequestOptions,
  6466. };
  6467. },
  6468. /**
  6469. *
  6470. * @param {boolean} [isArchived]
  6471. * @param {boolean} [isFavorite]
  6472. * @param {boolean} [isTrashed]
  6473. * @param {*} [options] Override http request option.
  6474. * @throws {RequiredError}
  6475. */
  6476. getAssetStatistics: async (isArchived?: boolean, isFavorite?: boolean, isTrashed?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6477. const localVarPath = `/asset/statistics`;
  6478. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6479. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6480. let baseOptions;
  6481. if (configuration) {
  6482. baseOptions = configuration.baseOptions;
  6483. }
  6484. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6485. const localVarHeaderParameter = {} as any;
  6486. const localVarQueryParameter = {} as any;
  6487. // authentication cookie required
  6488. // authentication api_key required
  6489. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6490. // authentication bearer required
  6491. // http bearer authentication required
  6492. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6493. if (isArchived !== undefined) {
  6494. localVarQueryParameter['isArchived'] = isArchived;
  6495. }
  6496. if (isFavorite !== undefined) {
  6497. localVarQueryParameter['isFavorite'] = isFavorite;
  6498. }
  6499. if (isTrashed !== undefined) {
  6500. localVarQueryParameter['isTrashed'] = isTrashed;
  6501. }
  6502. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6503. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6504. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6505. return {
  6506. url: toPathString(localVarUrlObj),
  6507. options: localVarRequestOptions,
  6508. };
  6509. },
  6510. /**
  6511. *
  6512. * @param {string} id
  6513. * @param {ThumbnailFormat} [format]
  6514. * @param {string} [key]
  6515. * @param {*} [options] Override http request option.
  6516. * @throws {RequiredError}
  6517. */
  6518. getAssetThumbnail: async (id: string, format?: ThumbnailFormat, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6519. // verify required parameter 'id' is not null or undefined
  6520. assertParamExists('getAssetThumbnail', 'id', id)
  6521. const localVarPath = `/asset/thumbnail/{id}`
  6522. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  6523. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6524. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6525. let baseOptions;
  6526. if (configuration) {
  6527. baseOptions = configuration.baseOptions;
  6528. }
  6529. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6530. const localVarHeaderParameter = {} as any;
  6531. const localVarQueryParameter = {} as any;
  6532. // authentication cookie required
  6533. // authentication api_key required
  6534. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6535. // authentication bearer required
  6536. // http bearer authentication required
  6537. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6538. if (format !== undefined) {
  6539. localVarQueryParameter['format'] = format;
  6540. }
  6541. if (key !== undefined) {
  6542. localVarQueryParameter['key'] = key;
  6543. }
  6544. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6545. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6546. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6547. return {
  6548. url: toPathString(localVarUrlObj),
  6549. options: localVarRequestOptions,
  6550. };
  6551. },
  6552. /**
  6553. *
  6554. * @param {*} [options] Override http request option.
  6555. * @throws {RequiredError}
  6556. */
  6557. getCuratedLocations: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6558. const localVarPath = `/asset/curated-locations`;
  6559. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6560. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6561. let baseOptions;
  6562. if (configuration) {
  6563. baseOptions = configuration.baseOptions;
  6564. }
  6565. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6566. const localVarHeaderParameter = {} as any;
  6567. const localVarQueryParameter = {} as any;
  6568. // authentication cookie required
  6569. // authentication api_key required
  6570. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6571. // authentication bearer required
  6572. // http bearer authentication required
  6573. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6574. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6575. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6576. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6577. return {
  6578. url: toPathString(localVarUrlObj),
  6579. options: localVarRequestOptions,
  6580. };
  6581. },
  6582. /**
  6583. *
  6584. * @param {*} [options] Override http request option.
  6585. * @throws {RequiredError}
  6586. */
  6587. getCuratedObjects: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6588. const localVarPath = `/asset/curated-objects`;
  6589. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6590. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6591. let baseOptions;
  6592. if (configuration) {
  6593. baseOptions = configuration.baseOptions;
  6594. }
  6595. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6596. const localVarHeaderParameter = {} as any;
  6597. const localVarQueryParameter = {} as any;
  6598. // authentication cookie required
  6599. // authentication api_key required
  6600. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6601. // authentication bearer required
  6602. // http bearer authentication required
  6603. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6604. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6605. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6606. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6607. return {
  6608. url: toPathString(localVarUrlObj),
  6609. options: localVarRequestOptions,
  6610. };
  6611. },
  6612. /**
  6613. *
  6614. * @param {DownloadInfoDto} downloadInfoDto
  6615. * @param {string} [key]
  6616. * @param {*} [options] Override http request option.
  6617. * @throws {RequiredError}
  6618. */
  6619. getDownloadInfo: async (downloadInfoDto: DownloadInfoDto, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6620. // verify required parameter 'downloadInfoDto' is not null or undefined
  6621. assertParamExists('getDownloadInfo', 'downloadInfoDto', downloadInfoDto)
  6622. const localVarPath = `/asset/download/info`;
  6623. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6624. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6625. let baseOptions;
  6626. if (configuration) {
  6627. baseOptions = configuration.baseOptions;
  6628. }
  6629. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  6630. const localVarHeaderParameter = {} as any;
  6631. const localVarQueryParameter = {} as any;
  6632. // authentication cookie required
  6633. // authentication api_key required
  6634. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6635. // authentication bearer required
  6636. // http bearer authentication required
  6637. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6638. if (key !== undefined) {
  6639. localVarQueryParameter['key'] = key;
  6640. }
  6641. localVarHeaderParameter['Content-Type'] = 'application/json';
  6642. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6643. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6644. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6645. localVarRequestOptions.data = serializeDataIfNeeded(downloadInfoDto, localVarRequestOptions, configuration)
  6646. return {
  6647. url: toPathString(localVarUrlObj),
  6648. options: localVarRequestOptions,
  6649. };
  6650. },
  6651. /**
  6652. *
  6653. * @param {boolean} [isArchived]
  6654. * @param {boolean} [isFavorite]
  6655. * @param {string} [fileCreatedAfter]
  6656. * @param {string} [fileCreatedBefore]
  6657. * @param {*} [options] Override http request option.
  6658. * @throws {RequiredError}
  6659. */
  6660. getMapMarkers: async (isArchived?: boolean, isFavorite?: boolean, fileCreatedAfter?: string, fileCreatedBefore?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6661. const localVarPath = `/asset/map-marker`;
  6662. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6663. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6664. let baseOptions;
  6665. if (configuration) {
  6666. baseOptions = configuration.baseOptions;
  6667. }
  6668. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6669. const localVarHeaderParameter = {} as any;
  6670. const localVarQueryParameter = {} as any;
  6671. // authentication cookie required
  6672. // authentication api_key required
  6673. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6674. // authentication bearer required
  6675. // http bearer authentication required
  6676. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6677. if (isArchived !== undefined) {
  6678. localVarQueryParameter['isArchived'] = isArchived;
  6679. }
  6680. if (isFavorite !== undefined) {
  6681. localVarQueryParameter['isFavorite'] = isFavorite;
  6682. }
  6683. if (fileCreatedAfter !== undefined) {
  6684. localVarQueryParameter['fileCreatedAfter'] = (fileCreatedAfter as any instanceof Date) ?
  6685. (fileCreatedAfter as any).toISOString() :
  6686. fileCreatedAfter;
  6687. }
  6688. if (fileCreatedBefore !== undefined) {
  6689. localVarQueryParameter['fileCreatedBefore'] = (fileCreatedBefore as any instanceof Date) ?
  6690. (fileCreatedBefore as any).toISOString() :
  6691. fileCreatedBefore;
  6692. }
  6693. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6694. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6695. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6696. return {
  6697. url: toPathString(localVarUrlObj),
  6698. options: localVarRequestOptions,
  6699. };
  6700. },
  6701. /**
  6702. *
  6703. * @param {number} day
  6704. * @param {number} month
  6705. * @param {*} [options] Override http request option.
  6706. * @throws {RequiredError}
  6707. */
  6708. getMemoryLane: async (day: number, month: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6709. // verify required parameter 'day' is not null or undefined
  6710. assertParamExists('getMemoryLane', 'day', day)
  6711. // verify required parameter 'month' is not null or undefined
  6712. assertParamExists('getMemoryLane', 'month', month)
  6713. const localVarPath = `/asset/memory-lane`;
  6714. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6715. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6716. let baseOptions;
  6717. if (configuration) {
  6718. baseOptions = configuration.baseOptions;
  6719. }
  6720. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6721. const localVarHeaderParameter = {} as any;
  6722. const localVarQueryParameter = {} as any;
  6723. // authentication cookie required
  6724. // authentication api_key required
  6725. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6726. // authentication bearer required
  6727. // http bearer authentication required
  6728. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6729. if (day !== undefined) {
  6730. localVarQueryParameter['day'] = day;
  6731. }
  6732. if (month !== undefined) {
  6733. localVarQueryParameter['month'] = month;
  6734. }
  6735. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6736. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6737. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6738. return {
  6739. url: toPathString(localVarUrlObj),
  6740. options: localVarRequestOptions,
  6741. };
  6742. },
  6743. /**
  6744. *
  6745. * @param {number} [count]
  6746. * @param {*} [options] Override http request option.
  6747. * @throws {RequiredError}
  6748. */
  6749. getRandom: async (count?: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6750. const localVarPath = `/asset/random`;
  6751. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6752. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6753. let baseOptions;
  6754. if (configuration) {
  6755. baseOptions = configuration.baseOptions;
  6756. }
  6757. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6758. const localVarHeaderParameter = {} as any;
  6759. const localVarQueryParameter = {} as any;
  6760. // authentication cookie required
  6761. // authentication api_key required
  6762. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6763. // authentication bearer required
  6764. // http bearer authentication required
  6765. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6766. if (count !== undefined) {
  6767. localVarQueryParameter['count'] = count;
  6768. }
  6769. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6770. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6771. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6772. return {
  6773. url: toPathString(localVarUrlObj),
  6774. options: localVarRequestOptions,
  6775. };
  6776. },
  6777. /**
  6778. *
  6779. * @param {TimeBucketSize} size
  6780. * @param {string} timeBucket
  6781. * @param {string} [userId]
  6782. * @param {string} [albumId]
  6783. * @param {string} [personId]
  6784. * @param {boolean} [isArchived]
  6785. * @param {boolean} [isFavorite]
  6786. * @param {boolean} [isTrashed]
  6787. * @param {boolean} [withStacked]
  6788. * @param {boolean} [withPartners]
  6789. * @param {string} [key]
  6790. * @param {*} [options] Override http request option.
  6791. * @throws {RequiredError}
  6792. */
  6793. getTimeBucket: async (size: TimeBucketSize, timeBucket: string, userId?: string, albumId?: string, personId?: string, isArchived?: boolean, isFavorite?: boolean, isTrashed?: boolean, withStacked?: boolean, withPartners?: boolean, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6794. // verify required parameter 'size' is not null or undefined
  6795. assertParamExists('getTimeBucket', 'size', size)
  6796. // verify required parameter 'timeBucket' is not null or undefined
  6797. assertParamExists('getTimeBucket', 'timeBucket', timeBucket)
  6798. const localVarPath = `/asset/time-bucket`;
  6799. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6800. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6801. let baseOptions;
  6802. if (configuration) {
  6803. baseOptions = configuration.baseOptions;
  6804. }
  6805. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6806. const localVarHeaderParameter = {} as any;
  6807. const localVarQueryParameter = {} as any;
  6808. // authentication cookie required
  6809. // authentication api_key required
  6810. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6811. // authentication bearer required
  6812. // http bearer authentication required
  6813. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6814. if (size !== undefined) {
  6815. localVarQueryParameter['size'] = size;
  6816. }
  6817. if (userId !== undefined) {
  6818. localVarQueryParameter['userId'] = userId;
  6819. }
  6820. if (albumId !== undefined) {
  6821. localVarQueryParameter['albumId'] = albumId;
  6822. }
  6823. if (personId !== undefined) {
  6824. localVarQueryParameter['personId'] = personId;
  6825. }
  6826. if (isArchived !== undefined) {
  6827. localVarQueryParameter['isArchived'] = isArchived;
  6828. }
  6829. if (isFavorite !== undefined) {
  6830. localVarQueryParameter['isFavorite'] = isFavorite;
  6831. }
  6832. if (isTrashed !== undefined) {
  6833. localVarQueryParameter['isTrashed'] = isTrashed;
  6834. }
  6835. if (withStacked !== undefined) {
  6836. localVarQueryParameter['withStacked'] = withStacked;
  6837. }
  6838. if (withPartners !== undefined) {
  6839. localVarQueryParameter['withPartners'] = withPartners;
  6840. }
  6841. if (timeBucket !== undefined) {
  6842. localVarQueryParameter['timeBucket'] = timeBucket;
  6843. }
  6844. if (key !== undefined) {
  6845. localVarQueryParameter['key'] = key;
  6846. }
  6847. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6848. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6849. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6850. return {
  6851. url: toPathString(localVarUrlObj),
  6852. options: localVarRequestOptions,
  6853. };
  6854. },
  6855. /**
  6856. *
  6857. * @param {TimeBucketSize} size
  6858. * @param {string} [userId]
  6859. * @param {string} [albumId]
  6860. * @param {string} [personId]
  6861. * @param {boolean} [isArchived]
  6862. * @param {boolean} [isFavorite]
  6863. * @param {boolean} [isTrashed]
  6864. * @param {boolean} [withStacked]
  6865. * @param {boolean} [withPartners]
  6866. * @param {string} [key]
  6867. * @param {*} [options] Override http request option.
  6868. * @throws {RequiredError}
  6869. */
  6870. getTimeBuckets: async (size: TimeBucketSize, userId?: string, albumId?: string, personId?: string, isArchived?: boolean, isFavorite?: boolean, isTrashed?: boolean, withStacked?: boolean, withPartners?: boolean, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6871. // verify required parameter 'size' is not null or undefined
  6872. assertParamExists('getTimeBuckets', 'size', size)
  6873. const localVarPath = `/asset/time-buckets`;
  6874. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6875. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6876. let baseOptions;
  6877. if (configuration) {
  6878. baseOptions = configuration.baseOptions;
  6879. }
  6880. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6881. const localVarHeaderParameter = {} as any;
  6882. const localVarQueryParameter = {} as any;
  6883. // authentication cookie required
  6884. // authentication api_key required
  6885. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6886. // authentication bearer required
  6887. // http bearer authentication required
  6888. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6889. if (size !== undefined) {
  6890. localVarQueryParameter['size'] = size;
  6891. }
  6892. if (userId !== undefined) {
  6893. localVarQueryParameter['userId'] = userId;
  6894. }
  6895. if (albumId !== undefined) {
  6896. localVarQueryParameter['albumId'] = albumId;
  6897. }
  6898. if (personId !== undefined) {
  6899. localVarQueryParameter['personId'] = personId;
  6900. }
  6901. if (isArchived !== undefined) {
  6902. localVarQueryParameter['isArchived'] = isArchived;
  6903. }
  6904. if (isFavorite !== undefined) {
  6905. localVarQueryParameter['isFavorite'] = isFavorite;
  6906. }
  6907. if (isTrashed !== undefined) {
  6908. localVarQueryParameter['isTrashed'] = isTrashed;
  6909. }
  6910. if (withStacked !== undefined) {
  6911. localVarQueryParameter['withStacked'] = withStacked;
  6912. }
  6913. if (withPartners !== undefined) {
  6914. localVarQueryParameter['withPartners'] = withPartners;
  6915. }
  6916. if (key !== undefined) {
  6917. localVarQueryParameter['key'] = key;
  6918. }
  6919. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6920. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6921. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6922. return {
  6923. url: toPathString(localVarUrlObj),
  6924. options: localVarRequestOptions,
  6925. };
  6926. },
  6927. /**
  6928. * Get all asset of a device that are in the database, ID only.
  6929. * @param {string} deviceId
  6930. * @param {*} [options] Override http request option.
  6931. * @throws {RequiredError}
  6932. */
  6933. getUserAssetsByDeviceId: async (deviceId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6934. // verify required parameter 'deviceId' is not null or undefined
  6935. assertParamExists('getUserAssetsByDeviceId', 'deviceId', deviceId)
  6936. const localVarPath = `/asset/{deviceId}`
  6937. .replace(`{${"deviceId"}}`, encodeURIComponent(String(deviceId)));
  6938. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6939. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6940. let baseOptions;
  6941. if (configuration) {
  6942. baseOptions = configuration.baseOptions;
  6943. }
  6944. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6945. const localVarHeaderParameter = {} as any;
  6946. const localVarQueryParameter = {} as any;
  6947. // authentication cookie required
  6948. // authentication api_key required
  6949. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6950. // authentication bearer required
  6951. // http bearer authentication required
  6952. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6953. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6954. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6955. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6956. return {
  6957. url: toPathString(localVarUrlObj),
  6958. options: localVarRequestOptions,
  6959. };
  6960. },
  6961. /**
  6962. *
  6963. * @param {ImportAssetDto} importAssetDto
  6964. * @param {*} [options] Override http request option.
  6965. * @throws {RequiredError}
  6966. */
  6967. importFile: async (importAssetDto: ImportAssetDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6968. // verify required parameter 'importAssetDto' is not null or undefined
  6969. assertParamExists('importFile', 'importAssetDto', importAssetDto)
  6970. const localVarPath = `/asset/import`;
  6971. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6972. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6973. let baseOptions;
  6974. if (configuration) {
  6975. baseOptions = configuration.baseOptions;
  6976. }
  6977. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  6978. const localVarHeaderParameter = {} as any;
  6979. const localVarQueryParameter = {} as any;
  6980. // authentication cookie required
  6981. // authentication api_key required
  6982. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6983. // authentication bearer required
  6984. // http bearer authentication required
  6985. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6986. localVarHeaderParameter['Content-Type'] = 'application/json';
  6987. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6988. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6989. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6990. localVarRequestOptions.data = serializeDataIfNeeded(importAssetDto, localVarRequestOptions, configuration)
  6991. return {
  6992. url: toPathString(localVarUrlObj),
  6993. options: localVarRequestOptions,
  6994. };
  6995. },
  6996. /**
  6997. *
  6998. * @param {BulkIdsDto} bulkIdsDto
  6999. * @param {*} [options] Override http request option.
  7000. * @throws {RequiredError}
  7001. */
  7002. restoreAssets: async (bulkIdsDto: BulkIdsDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  7003. // verify required parameter 'bulkIdsDto' is not null or undefined
  7004. assertParamExists('restoreAssets', 'bulkIdsDto', bulkIdsDto)
  7005. const localVarPath = `/asset/restore`;
  7006. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  7007. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  7008. let baseOptions;
  7009. if (configuration) {
  7010. baseOptions = configuration.baseOptions;
  7011. }
  7012. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  7013. const localVarHeaderParameter = {} as any;
  7014. const localVarQueryParameter = {} as any;
  7015. // authentication cookie required
  7016. // authentication api_key required
  7017. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  7018. // authentication bearer required
  7019. // http bearer authentication required
  7020. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  7021. localVarHeaderParameter['Content-Type'] = 'application/json';
  7022. setSearchParams(localVarUrlObj, localVarQueryParameter);
  7023. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  7024. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  7025. localVarRequestOptions.data = serializeDataIfNeeded(bulkIdsDto, localVarRequestOptions, configuration)
  7026. return {
  7027. url: toPathString(localVarUrlObj),
  7028. options: localVarRequestOptions,
  7029. };
  7030. },
  7031. /**
  7032. *
  7033. * @param {*} [options] Override http request option.
  7034. * @throws {RequiredError}
  7035. */
  7036. restoreTrash: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  7037. const localVarPath = `/asset/trash/restore`;
  7038. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  7039. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  7040. let baseOptions;
  7041. if (configuration) {
  7042. baseOptions = configuration.baseOptions;
  7043. }
  7044. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  7045. const localVarHeaderParameter = {} as any;
  7046. const localVarQueryParameter = {} as any;
  7047. // authentication cookie required
  7048. // authentication api_key required
  7049. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  7050. // authentication bearer required
  7051. // http bearer authentication required
  7052. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  7053. setSearchParams(localVarUrlObj, localVarQueryParameter);
  7054. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  7055. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  7056. return {
  7057. url: toPathString(localVarUrlObj),
  7058. options: localVarRequestOptions,
  7059. };
  7060. },
  7061. /**
  7062. *
  7063. * @param {AssetJobsDto} assetJobsDto
  7064. * @param {*} [options] Override http request option.
  7065. * @throws {RequiredError}
  7066. */
  7067. runAssetJobs: async (assetJobsDto: AssetJobsDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  7068. // verify required parameter 'assetJobsDto' is not null or undefined
  7069. assertParamExists('runAssetJobs', 'assetJobsDto', assetJobsDto)
  7070. const localVarPath = `/asset/jobs`;
  7071. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  7072. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  7073. let baseOptions;
  7074. if (configuration) {
  7075. baseOptions = configuration.baseOptions;
  7076. }
  7077. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  7078. const localVarHeaderParameter = {} as any;
  7079. const localVarQueryParameter = {} as any;
  7080. // authentication cookie required
  7081. // authentication api_key required
  7082. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  7083. // authentication bearer required
  7084. // http bearer authentication required
  7085. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  7086. localVarHeaderParameter['Content-Type'] = 'application/json';
  7087. setSearchParams(localVarUrlObj, localVarQueryParameter);
  7088. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  7089. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  7090. localVarRequestOptions.data = serializeDataIfNeeded(assetJobsDto, localVarRequestOptions, configuration)
  7091. return {
  7092. url: toPathString(localVarUrlObj),
  7093. options: localVarRequestOptions,
  7094. };
  7095. },
  7096. /**
  7097. *
  7098. * @param {SearchAssetDto} searchAssetDto
  7099. * @param {*} [options] Override http request option.
  7100. * @throws {RequiredError}
  7101. */
  7102. searchAsset: async (searchAssetDto: SearchAssetDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  7103. // verify required parameter 'searchAssetDto' is not null or undefined
  7104. assertParamExists('searchAsset', 'searchAssetDto', searchAssetDto)
  7105. const localVarPath = `/asset/search`;
  7106. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  7107. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  7108. let baseOptions;
  7109. if (configuration) {
  7110. baseOptions = configuration.baseOptions;
  7111. }
  7112. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  7113. const localVarHeaderParameter = {} as any;
  7114. const localVarQueryParameter = {} as any;
  7115. // authentication cookie required
  7116. // authentication api_key required
  7117. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  7118. // authentication bearer required
  7119. // http bearer authentication required
  7120. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  7121. localVarHeaderParameter['Content-Type'] = 'application/json';
  7122. setSearchParams(localVarUrlObj, localVarQueryParameter);
  7123. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  7124. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  7125. localVarRequestOptions.data = serializeDataIfNeeded(searchAssetDto, localVarRequestOptions, configuration)
  7126. return {
  7127. url: toPathString(localVarUrlObj),
  7128. options: localVarRequestOptions,
  7129. };
  7130. },
  7131. /**
  7132. *
  7133. * @param {string} id
  7134. * @param {boolean} [isThumb]
  7135. * @param {boolean} [isWeb]
  7136. * @param {string} [key]
  7137. * @param {*} [options] Override http request option.
  7138. * @throws {RequiredError}
  7139. */
  7140. serveFile: async (id: string, isThumb?: boolean, isWeb?: boolean, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  7141. // verify required parameter 'id' is not null or undefined
  7142. assertParamExists('serveFile', 'id', id)
  7143. const localVarPath = `/asset/file/{id}`
  7144. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  7145. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  7146. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  7147. let baseOptions;
  7148. if (configuration) {
  7149. baseOptions = configuration.baseOptions;
  7150. }
  7151. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  7152. const localVarHeaderParameter = {} as any;
  7153. const localVarQueryParameter = {} as any;
  7154. // authentication cookie required
  7155. // authentication api_key required
  7156. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  7157. // authentication bearer required
  7158. // http bearer authentication required
  7159. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  7160. if (isThumb !== undefined) {
  7161. localVarQueryParameter['isThumb'] = isThumb;
  7162. }
  7163. if (isWeb !== undefined) {
  7164. localVarQueryParameter['isWeb'] = isWeb;
  7165. }
  7166. if (key !== undefined) {
  7167. localVarQueryParameter['key'] = key;
  7168. }
  7169. setSearchParams(localVarUrlObj, localVarQueryParameter);
  7170. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  7171. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  7172. return {
  7173. url: toPathString(localVarUrlObj),
  7174. options: localVarRequestOptions,
  7175. };
  7176. },
  7177. /**
  7178. *
  7179. * @param {string} id
  7180. * @param {UpdateAssetDto} updateAssetDto
  7181. * @param {*} [options] Override http request option.
  7182. * @throws {RequiredError}
  7183. */
  7184. updateAsset: async (id: string, updateAssetDto: UpdateAssetDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  7185. // verify required parameter 'id' is not null or undefined
  7186. assertParamExists('updateAsset', 'id', id)
  7187. // verify required parameter 'updateAssetDto' is not null or undefined
  7188. assertParamExists('updateAsset', 'updateAssetDto', updateAssetDto)
  7189. const localVarPath = `/asset/{id}`
  7190. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  7191. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  7192. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  7193. let baseOptions;
  7194. if (configuration) {
  7195. baseOptions = configuration.baseOptions;
  7196. }
  7197. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  7198. const localVarHeaderParameter = {} as any;
  7199. const localVarQueryParameter = {} as any;
  7200. // authentication cookie required
  7201. // authentication api_key required
  7202. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  7203. // authentication bearer required
  7204. // http bearer authentication required
  7205. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  7206. localVarHeaderParameter['Content-Type'] = 'application/json';
  7207. setSearchParams(localVarUrlObj, localVarQueryParameter);
  7208. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  7209. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  7210. localVarRequestOptions.data = serializeDataIfNeeded(updateAssetDto, localVarRequestOptions, configuration)
  7211. return {
  7212. url: toPathString(localVarUrlObj),
  7213. options: localVarRequestOptions,
  7214. };
  7215. },
  7216. /**
  7217. *
  7218. * @param {AssetBulkUpdateDto} assetBulkUpdateDto
  7219. * @param {*} [options] Override http request option.
  7220. * @throws {RequiredError}
  7221. */
  7222. updateAssets: async (assetBulkUpdateDto: AssetBulkUpdateDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  7223. // verify required parameter 'assetBulkUpdateDto' is not null or undefined
  7224. assertParamExists('updateAssets', 'assetBulkUpdateDto', assetBulkUpdateDto)
  7225. const localVarPath = `/asset`;
  7226. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  7227. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  7228. let baseOptions;
  7229. if (configuration) {
  7230. baseOptions = configuration.baseOptions;
  7231. }
  7232. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  7233. const localVarHeaderParameter = {} as any;
  7234. const localVarQueryParameter = {} as any;
  7235. // authentication cookie required
  7236. // authentication api_key required
  7237. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  7238. // authentication bearer required
  7239. // http bearer authentication required
  7240. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  7241. localVarHeaderParameter['Content-Type'] = 'application/json';
  7242. setSearchParams(localVarUrlObj, localVarQueryParameter);
  7243. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  7244. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  7245. localVarRequestOptions.data = serializeDataIfNeeded(assetBulkUpdateDto, localVarRequestOptions, configuration)
  7246. return {
  7247. url: toPathString(localVarUrlObj),
  7248. options: localVarRequestOptions,
  7249. };
  7250. },
  7251. /**
  7252. *
  7253. * @param {UpdateStackParentDto} updateStackParentDto
  7254. * @param {*} [options] Override http request option.
  7255. * @throws {RequiredError}
  7256. */
  7257. updateStackParent: async (updateStackParentDto: UpdateStackParentDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  7258. // verify required parameter 'updateStackParentDto' is not null or undefined
  7259. assertParamExists('updateStackParent', 'updateStackParentDto', updateStackParentDto)
  7260. const localVarPath = `/asset/stack/parent`;
  7261. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  7262. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  7263. let baseOptions;
  7264. if (configuration) {
  7265. baseOptions = configuration.baseOptions;
  7266. }
  7267. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  7268. const localVarHeaderParameter = {} as any;
  7269. const localVarQueryParameter = {} as any;
  7270. // authentication cookie required
  7271. // authentication api_key required
  7272. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  7273. // authentication bearer required
  7274. // http bearer authentication required
  7275. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  7276. localVarHeaderParameter['Content-Type'] = 'application/json';
  7277. setSearchParams(localVarUrlObj, localVarQueryParameter);
  7278. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  7279. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  7280. localVarRequestOptions.data = serializeDataIfNeeded(updateStackParentDto, localVarRequestOptions, configuration)
  7281. return {
  7282. url: toPathString(localVarUrlObj),
  7283. options: localVarRequestOptions,
  7284. };
  7285. },
  7286. /**
  7287. *
  7288. * @param {File} assetData
  7289. * @param {string} deviceAssetId
  7290. * @param {string} deviceId
  7291. * @param {string} fileCreatedAt
  7292. * @param {string} fileModifiedAt
  7293. * @param {string} [key]
  7294. * @param {string} [duration]
  7295. * @param {boolean} [isArchived]
  7296. * @param {boolean} [isExternal]
  7297. * @param {boolean} [isFavorite]
  7298. * @param {boolean} [isOffline]
  7299. * @param {boolean} [isReadOnly]
  7300. * @param {boolean} [isVisible]
  7301. * @param {string} [libraryId]
  7302. * @param {File} [livePhotoData]
  7303. * @param {File} [sidecarData]
  7304. * @param {*} [options] Override http request option.
  7305. * @throws {RequiredError}
  7306. */
  7307. uploadFile: async (assetData: File, deviceAssetId: string, deviceId: string, fileCreatedAt: string, fileModifiedAt: string, key?: string, duration?: string, isArchived?: boolean, isExternal?: boolean, isFavorite?: boolean, isOffline?: boolean, isReadOnly?: boolean, isVisible?: boolean, libraryId?: string, livePhotoData?: File, sidecarData?: File, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  7308. // verify required parameter 'assetData' is not null or undefined
  7309. assertParamExists('uploadFile', 'assetData', assetData)
  7310. // verify required parameter 'deviceAssetId' is not null or undefined
  7311. assertParamExists('uploadFile', 'deviceAssetId', deviceAssetId)
  7312. // verify required parameter 'deviceId' is not null or undefined
  7313. assertParamExists('uploadFile', 'deviceId', deviceId)
  7314. // verify required parameter 'fileCreatedAt' is not null or undefined
  7315. assertParamExists('uploadFile', 'fileCreatedAt', fileCreatedAt)
  7316. // verify required parameter 'fileModifiedAt' is not null or undefined
  7317. assertParamExists('uploadFile', 'fileModifiedAt', fileModifiedAt)
  7318. const localVarPath = `/asset/upload`;
  7319. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  7320. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  7321. let baseOptions;
  7322. if (configuration) {
  7323. baseOptions = configuration.baseOptions;
  7324. }
  7325. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  7326. const localVarHeaderParameter = {} as any;
  7327. const localVarQueryParameter = {} as any;
  7328. const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
  7329. // authentication cookie required
  7330. // authentication api_key required
  7331. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  7332. // authentication bearer required
  7333. // http bearer authentication required
  7334. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  7335. if (key !== undefined) {
  7336. localVarQueryParameter['key'] = key;
  7337. }
  7338. if (assetData !== undefined) {
  7339. localVarFormParams.append('assetData', assetData as any);
  7340. }
  7341. if (deviceAssetId !== undefined) {
  7342. localVarFormParams.append('deviceAssetId', deviceAssetId as any);
  7343. }
  7344. if (deviceId !== undefined) {
  7345. localVarFormParams.append('deviceId', deviceId as any);
  7346. }
  7347. if (duration !== undefined) {
  7348. localVarFormParams.append('duration', duration as any);
  7349. }
  7350. if (fileCreatedAt !== undefined) {
  7351. localVarFormParams.append('fileCreatedAt', fileCreatedAt as any);
  7352. }
  7353. if (fileModifiedAt !== undefined) {
  7354. localVarFormParams.append('fileModifiedAt', fileModifiedAt as any);
  7355. }
  7356. if (isArchived !== undefined) {
  7357. localVarFormParams.append('isArchived', isArchived as any);
  7358. }
  7359. if (isExternal !== undefined) {
  7360. localVarFormParams.append('isExternal', isExternal as any);
  7361. }
  7362. if (isFavorite !== undefined) {
  7363. localVarFormParams.append('isFavorite', isFavorite as any);
  7364. }
  7365. if (isOffline !== undefined) {
  7366. localVarFormParams.append('isOffline', isOffline as any);
  7367. }
  7368. if (isReadOnly !== undefined) {
  7369. localVarFormParams.append('isReadOnly', isReadOnly as any);
  7370. }
  7371. if (isVisible !== undefined) {
  7372. localVarFormParams.append('isVisible', isVisible as any);
  7373. }
  7374. if (libraryId !== undefined) {
  7375. localVarFormParams.append('libraryId', libraryId as any);
  7376. }
  7377. if (livePhotoData !== undefined) {
  7378. localVarFormParams.append('livePhotoData', livePhotoData as any);
  7379. }
  7380. if (sidecarData !== undefined) {
  7381. localVarFormParams.append('sidecarData', sidecarData as any);
  7382. }
  7383. localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
  7384. setSearchParams(localVarUrlObj, localVarQueryParameter);
  7385. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  7386. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  7387. localVarRequestOptions.data = localVarFormParams;
  7388. return {
  7389. url: toPathString(localVarUrlObj),
  7390. options: localVarRequestOptions,
  7391. };
  7392. },
  7393. }
  7394. };
  7395. /**
  7396. * AssetApi - functional programming interface
  7397. * @export
  7398. */
  7399. export const AssetApiFp = function(configuration?: Configuration) {
  7400. const localVarAxiosParamCreator = AssetApiAxiosParamCreator(configuration)
  7401. return {
  7402. /**
  7403. * Checks if assets exist by checksums
  7404. * @param {AssetBulkUploadCheckDto} assetBulkUploadCheckDto
  7405. * @param {*} [options] Override http request option.
  7406. * @throws {RequiredError}
  7407. */
  7408. async checkBulkUpload(assetBulkUploadCheckDto: AssetBulkUploadCheckDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AssetBulkUploadCheckResponseDto>> {
  7409. const localVarAxiosArgs = await localVarAxiosParamCreator.checkBulkUpload(assetBulkUploadCheckDto, options);
  7410. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7411. },
  7412. /**
  7413. * Checks if multiple assets exist on the server and returns all existing - used by background backup
  7414. * @param {CheckExistingAssetsDto} checkExistingAssetsDto
  7415. * @param {*} [options] Override http request option.
  7416. * @throws {RequiredError}
  7417. */
  7418. async checkExistingAssets(checkExistingAssetsDto: CheckExistingAssetsDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CheckExistingAssetsResponseDto>> {
  7419. const localVarAxiosArgs = await localVarAxiosParamCreator.checkExistingAssets(checkExistingAssetsDto, options);
  7420. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7421. },
  7422. /**
  7423. *
  7424. * @param {AssetBulkDeleteDto} assetBulkDeleteDto
  7425. * @param {*} [options] Override http request option.
  7426. * @throws {RequiredError}
  7427. */
  7428. async deleteAssets(assetBulkDeleteDto: AssetBulkDeleteDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  7429. const localVarAxiosArgs = await localVarAxiosParamCreator.deleteAssets(assetBulkDeleteDto, options);
  7430. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7431. },
  7432. /**
  7433. *
  7434. * @param {AssetIdsDto} assetIdsDto
  7435. * @param {string} [key]
  7436. * @param {*} [options] Override http request option.
  7437. * @throws {RequiredError}
  7438. */
  7439. async downloadArchive(assetIdsDto: AssetIdsDto, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>> {
  7440. const localVarAxiosArgs = await localVarAxiosParamCreator.downloadArchive(assetIdsDto, key, options);
  7441. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7442. },
  7443. /**
  7444. *
  7445. * @param {string} id
  7446. * @param {string} [key]
  7447. * @param {*} [options] Override http request option.
  7448. * @throws {RequiredError}
  7449. */
  7450. async downloadFile(id: string, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>> {
  7451. const localVarAxiosArgs = await localVarAxiosParamCreator.downloadFile(id, key, options);
  7452. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7453. },
  7454. /**
  7455. *
  7456. * @param {*} [options] Override http request option.
  7457. * @throws {RequiredError}
  7458. */
  7459. async emptyTrash(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  7460. const localVarAxiosArgs = await localVarAxiosParamCreator.emptyTrash(options);
  7461. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7462. },
  7463. /**
  7464. * Get all AssetEntity belong to the user
  7465. * @param {number} [skip]
  7466. * @param {number} [take]
  7467. * @param {string} [userId]
  7468. * @param {boolean} [isFavorite]
  7469. * @param {boolean} [isArchived]
  7470. * @param {string} [updatedAfter]
  7471. * @param {string} [updatedBefore]
  7472. * @param {string} [ifNoneMatch] ETag of data already cached on the client
  7473. * @param {*} [options] Override http request option.
  7474. * @throws {RequiredError}
  7475. */
  7476. async getAllAssets(skip?: number, take?: number, userId?: string, isFavorite?: boolean, isArchived?: boolean, updatedAfter?: string, updatedBefore?: string, ifNoneMatch?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetResponseDto>>> {
  7477. const localVarAxiosArgs = await localVarAxiosParamCreator.getAllAssets(skip, take, userId, isFavorite, isArchived, updatedAfter, updatedBefore, ifNoneMatch, options);
  7478. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7479. },
  7480. /**
  7481. * Get a single asset\'s information
  7482. * @param {string} id
  7483. * @param {string} [key]
  7484. * @param {*} [options] Override http request option.
  7485. * @throws {RequiredError}
  7486. */
  7487. async getAssetById(id: string, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AssetResponseDto>> {
  7488. const localVarAxiosArgs = await localVarAxiosParamCreator.getAssetById(id, key, options);
  7489. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7490. },
  7491. /**
  7492. *
  7493. * @param {*} [options] Override http request option.
  7494. * @throws {RequiredError}
  7495. */
  7496. async getAssetSearchTerms(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<string>>> {
  7497. const localVarAxiosArgs = await localVarAxiosParamCreator.getAssetSearchTerms(options);
  7498. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7499. },
  7500. /**
  7501. *
  7502. * @param {boolean} [isArchived]
  7503. * @param {boolean} [isFavorite]
  7504. * @param {boolean} [isTrashed]
  7505. * @param {*} [options] Override http request option.
  7506. * @throws {RequiredError}
  7507. */
  7508. async getAssetStatistics(isArchived?: boolean, isFavorite?: boolean, isTrashed?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AssetStatsResponseDto>> {
  7509. const localVarAxiosArgs = await localVarAxiosParamCreator.getAssetStatistics(isArchived, isFavorite, isTrashed, options);
  7510. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7511. },
  7512. /**
  7513. *
  7514. * @param {string} id
  7515. * @param {ThumbnailFormat} [format]
  7516. * @param {string} [key]
  7517. * @param {*} [options] Override http request option.
  7518. * @throws {RequiredError}
  7519. */
  7520. async getAssetThumbnail(id: string, format?: ThumbnailFormat, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>> {
  7521. const localVarAxiosArgs = await localVarAxiosParamCreator.getAssetThumbnail(id, format, key, options);
  7522. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7523. },
  7524. /**
  7525. *
  7526. * @param {*} [options] Override http request option.
  7527. * @throws {RequiredError}
  7528. */
  7529. async getCuratedLocations(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<CuratedLocationsResponseDto>>> {
  7530. const localVarAxiosArgs = await localVarAxiosParamCreator.getCuratedLocations(options);
  7531. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7532. },
  7533. /**
  7534. *
  7535. * @param {*} [options] Override http request option.
  7536. * @throws {RequiredError}
  7537. */
  7538. async getCuratedObjects(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<CuratedObjectsResponseDto>>> {
  7539. const localVarAxiosArgs = await localVarAxiosParamCreator.getCuratedObjects(options);
  7540. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7541. },
  7542. /**
  7543. *
  7544. * @param {DownloadInfoDto} downloadInfoDto
  7545. * @param {string} [key]
  7546. * @param {*} [options] Override http request option.
  7547. * @throws {RequiredError}
  7548. */
  7549. async getDownloadInfo(downloadInfoDto: DownloadInfoDto, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DownloadResponseDto>> {
  7550. const localVarAxiosArgs = await localVarAxiosParamCreator.getDownloadInfo(downloadInfoDto, key, options);
  7551. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7552. },
  7553. /**
  7554. *
  7555. * @param {boolean} [isArchived]
  7556. * @param {boolean} [isFavorite]
  7557. * @param {string} [fileCreatedAfter]
  7558. * @param {string} [fileCreatedBefore]
  7559. * @param {*} [options] Override http request option.
  7560. * @throws {RequiredError}
  7561. */
  7562. async getMapMarkers(isArchived?: boolean, isFavorite?: boolean, fileCreatedAfter?: string, fileCreatedBefore?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<MapMarkerResponseDto>>> {
  7563. const localVarAxiosArgs = await localVarAxiosParamCreator.getMapMarkers(isArchived, isFavorite, fileCreatedAfter, fileCreatedBefore, options);
  7564. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7565. },
  7566. /**
  7567. *
  7568. * @param {number} day
  7569. * @param {number} month
  7570. * @param {*} [options] Override http request option.
  7571. * @throws {RequiredError}
  7572. */
  7573. async getMemoryLane(day: number, month: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<MemoryLaneResponseDto>>> {
  7574. const localVarAxiosArgs = await localVarAxiosParamCreator.getMemoryLane(day, month, options);
  7575. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7576. },
  7577. /**
  7578. *
  7579. * @param {number} [count]
  7580. * @param {*} [options] Override http request option.
  7581. * @throws {RequiredError}
  7582. */
  7583. async getRandom(count?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetResponseDto>>> {
  7584. const localVarAxiosArgs = await localVarAxiosParamCreator.getRandom(count, options);
  7585. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7586. },
  7587. /**
  7588. *
  7589. * @param {TimeBucketSize} size
  7590. * @param {string} timeBucket
  7591. * @param {string} [userId]
  7592. * @param {string} [albumId]
  7593. * @param {string} [personId]
  7594. * @param {boolean} [isArchived]
  7595. * @param {boolean} [isFavorite]
  7596. * @param {boolean} [isTrashed]
  7597. * @param {boolean} [withStacked]
  7598. * @param {boolean} [withPartners]
  7599. * @param {string} [key]
  7600. * @param {*} [options] Override http request option.
  7601. * @throws {RequiredError}
  7602. */
  7603. async getTimeBucket(size: TimeBucketSize, timeBucket: string, userId?: string, albumId?: string, personId?: string, isArchived?: boolean, isFavorite?: boolean, isTrashed?: boolean, withStacked?: boolean, withPartners?: boolean, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetResponseDto>>> {
  7604. const localVarAxiosArgs = await localVarAxiosParamCreator.getTimeBucket(size, timeBucket, userId, albumId, personId, isArchived, isFavorite, isTrashed, withStacked, withPartners, key, options);
  7605. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7606. },
  7607. /**
  7608. *
  7609. * @param {TimeBucketSize} size
  7610. * @param {string} [userId]
  7611. * @param {string} [albumId]
  7612. * @param {string} [personId]
  7613. * @param {boolean} [isArchived]
  7614. * @param {boolean} [isFavorite]
  7615. * @param {boolean} [isTrashed]
  7616. * @param {boolean} [withStacked]
  7617. * @param {boolean} [withPartners]
  7618. * @param {string} [key]
  7619. * @param {*} [options] Override http request option.
  7620. * @throws {RequiredError}
  7621. */
  7622. async getTimeBuckets(size: TimeBucketSize, userId?: string, albumId?: string, personId?: string, isArchived?: boolean, isFavorite?: boolean, isTrashed?: boolean, withStacked?: boolean, withPartners?: boolean, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<TimeBucketResponseDto>>> {
  7623. const localVarAxiosArgs = await localVarAxiosParamCreator.getTimeBuckets(size, userId, albumId, personId, isArchived, isFavorite, isTrashed, withStacked, withPartners, key, options);
  7624. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7625. },
  7626. /**
  7627. * Get all asset of a device that are in the database, ID only.
  7628. * @param {string} deviceId
  7629. * @param {*} [options] Override http request option.
  7630. * @throws {RequiredError}
  7631. */
  7632. async getUserAssetsByDeviceId(deviceId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<string>>> {
  7633. const localVarAxiosArgs = await localVarAxiosParamCreator.getUserAssetsByDeviceId(deviceId, options);
  7634. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7635. },
  7636. /**
  7637. *
  7638. * @param {ImportAssetDto} importAssetDto
  7639. * @param {*} [options] Override http request option.
  7640. * @throws {RequiredError}
  7641. */
  7642. async importFile(importAssetDto: ImportAssetDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AssetFileUploadResponseDto>> {
  7643. const localVarAxiosArgs = await localVarAxiosParamCreator.importFile(importAssetDto, options);
  7644. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7645. },
  7646. /**
  7647. *
  7648. * @param {BulkIdsDto} bulkIdsDto
  7649. * @param {*} [options] Override http request option.
  7650. * @throws {RequiredError}
  7651. */
  7652. async restoreAssets(bulkIdsDto: BulkIdsDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  7653. const localVarAxiosArgs = await localVarAxiosParamCreator.restoreAssets(bulkIdsDto, options);
  7654. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7655. },
  7656. /**
  7657. *
  7658. * @param {*} [options] Override http request option.
  7659. * @throws {RequiredError}
  7660. */
  7661. async restoreTrash(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  7662. const localVarAxiosArgs = await localVarAxiosParamCreator.restoreTrash(options);
  7663. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7664. },
  7665. /**
  7666. *
  7667. * @param {AssetJobsDto} assetJobsDto
  7668. * @param {*} [options] Override http request option.
  7669. * @throws {RequiredError}
  7670. */
  7671. async runAssetJobs(assetJobsDto: AssetJobsDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  7672. const localVarAxiosArgs = await localVarAxiosParamCreator.runAssetJobs(assetJobsDto, options);
  7673. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7674. },
  7675. /**
  7676. *
  7677. * @param {SearchAssetDto} searchAssetDto
  7678. * @param {*} [options] Override http request option.
  7679. * @throws {RequiredError}
  7680. */
  7681. async searchAsset(searchAssetDto: SearchAssetDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetResponseDto>>> {
  7682. const localVarAxiosArgs = await localVarAxiosParamCreator.searchAsset(searchAssetDto, options);
  7683. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7684. },
  7685. /**
  7686. *
  7687. * @param {string} id
  7688. * @param {boolean} [isThumb]
  7689. * @param {boolean} [isWeb]
  7690. * @param {string} [key]
  7691. * @param {*} [options] Override http request option.
  7692. * @throws {RequiredError}
  7693. */
  7694. async serveFile(id: string, isThumb?: boolean, isWeb?: boolean, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>> {
  7695. const localVarAxiosArgs = await localVarAxiosParamCreator.serveFile(id, isThumb, isWeb, key, options);
  7696. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7697. },
  7698. /**
  7699. *
  7700. * @param {string} id
  7701. * @param {UpdateAssetDto} updateAssetDto
  7702. * @param {*} [options] Override http request option.
  7703. * @throws {RequiredError}
  7704. */
  7705. async updateAsset(id: string, updateAssetDto: UpdateAssetDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AssetResponseDto>> {
  7706. const localVarAxiosArgs = await localVarAxiosParamCreator.updateAsset(id, updateAssetDto, options);
  7707. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7708. },
  7709. /**
  7710. *
  7711. * @param {AssetBulkUpdateDto} assetBulkUpdateDto
  7712. * @param {*} [options] Override http request option.
  7713. * @throws {RequiredError}
  7714. */
  7715. async updateAssets(assetBulkUpdateDto: AssetBulkUpdateDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  7716. const localVarAxiosArgs = await localVarAxiosParamCreator.updateAssets(assetBulkUpdateDto, options);
  7717. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7718. },
  7719. /**
  7720. *
  7721. * @param {UpdateStackParentDto} updateStackParentDto
  7722. * @param {*} [options] Override http request option.
  7723. * @throws {RequiredError}
  7724. */
  7725. async updateStackParent(updateStackParentDto: UpdateStackParentDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  7726. const localVarAxiosArgs = await localVarAxiosParamCreator.updateStackParent(updateStackParentDto, options);
  7727. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7728. },
  7729. /**
  7730. *
  7731. * @param {File} assetData
  7732. * @param {string} deviceAssetId
  7733. * @param {string} deviceId
  7734. * @param {string} fileCreatedAt
  7735. * @param {string} fileModifiedAt
  7736. * @param {string} [key]
  7737. * @param {string} [duration]
  7738. * @param {boolean} [isArchived]
  7739. * @param {boolean} [isExternal]
  7740. * @param {boolean} [isFavorite]
  7741. * @param {boolean} [isOffline]
  7742. * @param {boolean} [isReadOnly]
  7743. * @param {boolean} [isVisible]
  7744. * @param {string} [libraryId]
  7745. * @param {File} [livePhotoData]
  7746. * @param {File} [sidecarData]
  7747. * @param {*} [options] Override http request option.
  7748. * @throws {RequiredError}
  7749. */
  7750. async uploadFile(assetData: File, deviceAssetId: string, deviceId: string, fileCreatedAt: string, fileModifiedAt: string, key?: string, duration?: string, isArchived?: boolean, isExternal?: boolean, isFavorite?: boolean, isOffline?: boolean, isReadOnly?: boolean, isVisible?: boolean, libraryId?: string, livePhotoData?: File, sidecarData?: File, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AssetFileUploadResponseDto>> {
  7751. const localVarAxiosArgs = await localVarAxiosParamCreator.uploadFile(assetData, deviceAssetId, deviceId, fileCreatedAt, fileModifiedAt, key, duration, isArchived, isExternal, isFavorite, isOffline, isReadOnly, isVisible, libraryId, livePhotoData, sidecarData, options);
  7752. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7753. },
  7754. }
  7755. };
  7756. /**
  7757. * AssetApi - factory interface
  7758. * @export
  7759. */
  7760. export const AssetApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  7761. const localVarFp = AssetApiFp(configuration)
  7762. return {
  7763. /**
  7764. * Checks if assets exist by checksums
  7765. * @param {AssetApiCheckBulkUploadRequest} requestParameters Request parameters.
  7766. * @param {*} [options] Override http request option.
  7767. * @throws {RequiredError}
  7768. */
  7769. checkBulkUpload(requestParameters: AssetApiCheckBulkUploadRequest, options?: AxiosRequestConfig): AxiosPromise<AssetBulkUploadCheckResponseDto> {
  7770. return localVarFp.checkBulkUpload(requestParameters.assetBulkUploadCheckDto, options).then((request) => request(axios, basePath));
  7771. },
  7772. /**
  7773. * Checks if multiple assets exist on the server and returns all existing - used by background backup
  7774. * @param {AssetApiCheckExistingAssetsRequest} requestParameters Request parameters.
  7775. * @param {*} [options] Override http request option.
  7776. * @throws {RequiredError}
  7777. */
  7778. checkExistingAssets(requestParameters: AssetApiCheckExistingAssetsRequest, options?: AxiosRequestConfig): AxiosPromise<CheckExistingAssetsResponseDto> {
  7779. return localVarFp.checkExistingAssets(requestParameters.checkExistingAssetsDto, options).then((request) => request(axios, basePath));
  7780. },
  7781. /**
  7782. *
  7783. * @param {AssetApiDeleteAssetsRequest} requestParameters Request parameters.
  7784. * @param {*} [options] Override http request option.
  7785. * @throws {RequiredError}
  7786. */
  7787. deleteAssets(requestParameters: AssetApiDeleteAssetsRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  7788. return localVarFp.deleteAssets(requestParameters.assetBulkDeleteDto, options).then((request) => request(axios, basePath));
  7789. },
  7790. /**
  7791. *
  7792. * @param {AssetApiDownloadArchiveRequest} requestParameters Request parameters.
  7793. * @param {*} [options] Override http request option.
  7794. * @throws {RequiredError}
  7795. */
  7796. downloadArchive(requestParameters: AssetApiDownloadArchiveRequest, options?: AxiosRequestConfig): AxiosPromise<File> {
  7797. return localVarFp.downloadArchive(requestParameters.assetIdsDto, requestParameters.key, options).then((request) => request(axios, basePath));
  7798. },
  7799. /**
  7800. *
  7801. * @param {AssetApiDownloadFileRequest} requestParameters Request parameters.
  7802. * @param {*} [options] Override http request option.
  7803. * @throws {RequiredError}
  7804. */
  7805. downloadFile(requestParameters: AssetApiDownloadFileRequest, options?: AxiosRequestConfig): AxiosPromise<File> {
  7806. return localVarFp.downloadFile(requestParameters.id, requestParameters.key, options).then((request) => request(axios, basePath));
  7807. },
  7808. /**
  7809. *
  7810. * @param {*} [options] Override http request option.
  7811. * @throws {RequiredError}
  7812. */
  7813. emptyTrash(options?: AxiosRequestConfig): AxiosPromise<void> {
  7814. return localVarFp.emptyTrash(options).then((request) => request(axios, basePath));
  7815. },
  7816. /**
  7817. * Get all AssetEntity belong to the user
  7818. * @param {AssetApiGetAllAssetsRequest} requestParameters Request parameters.
  7819. * @param {*} [options] Override http request option.
  7820. * @throws {RequiredError}
  7821. */
  7822. getAllAssets(requestParameters: AssetApiGetAllAssetsRequest = {}, options?: AxiosRequestConfig): AxiosPromise<Array<AssetResponseDto>> {
  7823. return localVarFp.getAllAssets(requestParameters.skip, requestParameters.take, requestParameters.userId, requestParameters.isFavorite, requestParameters.isArchived, requestParameters.updatedAfter, requestParameters.updatedBefore, requestParameters.ifNoneMatch, options).then((request) => request(axios, basePath));
  7824. },
  7825. /**
  7826. * Get a single asset\'s information
  7827. * @param {AssetApiGetAssetByIdRequest} requestParameters Request parameters.
  7828. * @param {*} [options] Override http request option.
  7829. * @throws {RequiredError}
  7830. */
  7831. getAssetById(requestParameters: AssetApiGetAssetByIdRequest, options?: AxiosRequestConfig): AxiosPromise<AssetResponseDto> {
  7832. return localVarFp.getAssetById(requestParameters.id, requestParameters.key, options).then((request) => request(axios, basePath));
  7833. },
  7834. /**
  7835. *
  7836. * @param {*} [options] Override http request option.
  7837. * @throws {RequiredError}
  7838. */
  7839. getAssetSearchTerms(options?: AxiosRequestConfig): AxiosPromise<Array<string>> {
  7840. return localVarFp.getAssetSearchTerms(options).then((request) => request(axios, basePath));
  7841. },
  7842. /**
  7843. *
  7844. * @param {AssetApiGetAssetStatisticsRequest} requestParameters Request parameters.
  7845. * @param {*} [options] Override http request option.
  7846. * @throws {RequiredError}
  7847. */
  7848. getAssetStatistics(requestParameters: AssetApiGetAssetStatisticsRequest = {}, options?: AxiosRequestConfig): AxiosPromise<AssetStatsResponseDto> {
  7849. return localVarFp.getAssetStatistics(requestParameters.isArchived, requestParameters.isFavorite, requestParameters.isTrashed, options).then((request) => request(axios, basePath));
  7850. },
  7851. /**
  7852. *
  7853. * @param {AssetApiGetAssetThumbnailRequest} requestParameters Request parameters.
  7854. * @param {*} [options] Override http request option.
  7855. * @throws {RequiredError}
  7856. */
  7857. getAssetThumbnail(requestParameters: AssetApiGetAssetThumbnailRequest, options?: AxiosRequestConfig): AxiosPromise<File> {
  7858. return localVarFp.getAssetThumbnail(requestParameters.id, requestParameters.format, requestParameters.key, options).then((request) => request(axios, basePath));
  7859. },
  7860. /**
  7861. *
  7862. * @param {*} [options] Override http request option.
  7863. * @throws {RequiredError}
  7864. */
  7865. getCuratedLocations(options?: AxiosRequestConfig): AxiosPromise<Array<CuratedLocationsResponseDto>> {
  7866. return localVarFp.getCuratedLocations(options).then((request) => request(axios, basePath));
  7867. },
  7868. /**
  7869. *
  7870. * @param {*} [options] Override http request option.
  7871. * @throws {RequiredError}
  7872. */
  7873. getCuratedObjects(options?: AxiosRequestConfig): AxiosPromise<Array<CuratedObjectsResponseDto>> {
  7874. return localVarFp.getCuratedObjects(options).then((request) => request(axios, basePath));
  7875. },
  7876. /**
  7877. *
  7878. * @param {AssetApiGetDownloadInfoRequest} requestParameters Request parameters.
  7879. * @param {*} [options] Override http request option.
  7880. * @throws {RequiredError}
  7881. */
  7882. getDownloadInfo(requestParameters: AssetApiGetDownloadInfoRequest, options?: AxiosRequestConfig): AxiosPromise<DownloadResponseDto> {
  7883. return localVarFp.getDownloadInfo(requestParameters.downloadInfoDto, requestParameters.key, options).then((request) => request(axios, basePath));
  7884. },
  7885. /**
  7886. *
  7887. * @param {AssetApiGetMapMarkersRequest} requestParameters Request parameters.
  7888. * @param {*} [options] Override http request option.
  7889. * @throws {RequiredError}
  7890. */
  7891. getMapMarkers(requestParameters: AssetApiGetMapMarkersRequest = {}, options?: AxiosRequestConfig): AxiosPromise<Array<MapMarkerResponseDto>> {
  7892. return localVarFp.getMapMarkers(requestParameters.isArchived, requestParameters.isFavorite, requestParameters.fileCreatedAfter, requestParameters.fileCreatedBefore, options).then((request) => request(axios, basePath));
  7893. },
  7894. /**
  7895. *
  7896. * @param {AssetApiGetMemoryLaneRequest} requestParameters Request parameters.
  7897. * @param {*} [options] Override http request option.
  7898. * @throws {RequiredError}
  7899. */
  7900. getMemoryLane(requestParameters: AssetApiGetMemoryLaneRequest, options?: AxiosRequestConfig): AxiosPromise<Array<MemoryLaneResponseDto>> {
  7901. return localVarFp.getMemoryLane(requestParameters.day, requestParameters.month, options).then((request) => request(axios, basePath));
  7902. },
  7903. /**
  7904. *
  7905. * @param {AssetApiGetRandomRequest} requestParameters Request parameters.
  7906. * @param {*} [options] Override http request option.
  7907. * @throws {RequiredError}
  7908. */
  7909. getRandom(requestParameters: AssetApiGetRandomRequest = {}, options?: AxiosRequestConfig): AxiosPromise<Array<AssetResponseDto>> {
  7910. return localVarFp.getRandom(requestParameters.count, options).then((request) => request(axios, basePath));
  7911. },
  7912. /**
  7913. *
  7914. * @param {AssetApiGetTimeBucketRequest} requestParameters Request parameters.
  7915. * @param {*} [options] Override http request option.
  7916. * @throws {RequiredError}
  7917. */
  7918. getTimeBucket(requestParameters: AssetApiGetTimeBucketRequest, options?: AxiosRequestConfig): AxiosPromise<Array<AssetResponseDto>> {
  7919. return localVarFp.getTimeBucket(requestParameters.size, requestParameters.timeBucket, requestParameters.userId, requestParameters.albumId, requestParameters.personId, requestParameters.isArchived, requestParameters.isFavorite, requestParameters.isTrashed, requestParameters.withStacked, requestParameters.withPartners, requestParameters.key, options).then((request) => request(axios, basePath));
  7920. },
  7921. /**
  7922. *
  7923. * @param {AssetApiGetTimeBucketsRequest} requestParameters Request parameters.
  7924. * @param {*} [options] Override http request option.
  7925. * @throws {RequiredError}
  7926. */
  7927. getTimeBuckets(requestParameters: AssetApiGetTimeBucketsRequest, options?: AxiosRequestConfig): AxiosPromise<Array<TimeBucketResponseDto>> {
  7928. return localVarFp.getTimeBuckets(requestParameters.size, requestParameters.userId, requestParameters.albumId, requestParameters.personId, requestParameters.isArchived, requestParameters.isFavorite, requestParameters.isTrashed, requestParameters.withStacked, requestParameters.withPartners, requestParameters.key, options).then((request) => request(axios, basePath));
  7929. },
  7930. /**
  7931. * Get all asset of a device that are in the database, ID only.
  7932. * @param {AssetApiGetUserAssetsByDeviceIdRequest} requestParameters Request parameters.
  7933. * @param {*} [options] Override http request option.
  7934. * @throws {RequiredError}
  7935. */
  7936. getUserAssetsByDeviceId(requestParameters: AssetApiGetUserAssetsByDeviceIdRequest, options?: AxiosRequestConfig): AxiosPromise<Array<string>> {
  7937. return localVarFp.getUserAssetsByDeviceId(requestParameters.deviceId, options).then((request) => request(axios, basePath));
  7938. },
  7939. /**
  7940. *
  7941. * @param {AssetApiImportFileRequest} requestParameters Request parameters.
  7942. * @param {*} [options] Override http request option.
  7943. * @throws {RequiredError}
  7944. */
  7945. importFile(requestParameters: AssetApiImportFileRequest, options?: AxiosRequestConfig): AxiosPromise<AssetFileUploadResponseDto> {
  7946. return localVarFp.importFile(requestParameters.importAssetDto, options).then((request) => request(axios, basePath));
  7947. },
  7948. /**
  7949. *
  7950. * @param {AssetApiRestoreAssetsRequest} requestParameters Request parameters.
  7951. * @param {*} [options] Override http request option.
  7952. * @throws {RequiredError}
  7953. */
  7954. restoreAssets(requestParameters: AssetApiRestoreAssetsRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  7955. return localVarFp.restoreAssets(requestParameters.bulkIdsDto, options).then((request) => request(axios, basePath));
  7956. },
  7957. /**
  7958. *
  7959. * @param {*} [options] Override http request option.
  7960. * @throws {RequiredError}
  7961. */
  7962. restoreTrash(options?: AxiosRequestConfig): AxiosPromise<void> {
  7963. return localVarFp.restoreTrash(options).then((request) => request(axios, basePath));
  7964. },
  7965. /**
  7966. *
  7967. * @param {AssetApiRunAssetJobsRequest} requestParameters Request parameters.
  7968. * @param {*} [options] Override http request option.
  7969. * @throws {RequiredError}
  7970. */
  7971. runAssetJobs(requestParameters: AssetApiRunAssetJobsRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  7972. return localVarFp.runAssetJobs(requestParameters.assetJobsDto, options).then((request) => request(axios, basePath));
  7973. },
  7974. /**
  7975. *
  7976. * @param {AssetApiSearchAssetRequest} requestParameters Request parameters.
  7977. * @param {*} [options] Override http request option.
  7978. * @throws {RequiredError}
  7979. */
  7980. searchAsset(requestParameters: AssetApiSearchAssetRequest, options?: AxiosRequestConfig): AxiosPromise<Array<AssetResponseDto>> {
  7981. return localVarFp.searchAsset(requestParameters.searchAssetDto, options).then((request) => request(axios, basePath));
  7982. },
  7983. /**
  7984. *
  7985. * @param {AssetApiServeFileRequest} requestParameters Request parameters.
  7986. * @param {*} [options] Override http request option.
  7987. * @throws {RequiredError}
  7988. */
  7989. serveFile(requestParameters: AssetApiServeFileRequest, options?: AxiosRequestConfig): AxiosPromise<File> {
  7990. return localVarFp.serveFile(requestParameters.id, requestParameters.isThumb, requestParameters.isWeb, requestParameters.key, options).then((request) => request(axios, basePath));
  7991. },
  7992. /**
  7993. *
  7994. * @param {AssetApiUpdateAssetRequest} requestParameters Request parameters.
  7995. * @param {*} [options] Override http request option.
  7996. * @throws {RequiredError}
  7997. */
  7998. updateAsset(requestParameters: AssetApiUpdateAssetRequest, options?: AxiosRequestConfig): AxiosPromise<AssetResponseDto> {
  7999. return localVarFp.updateAsset(requestParameters.id, requestParameters.updateAssetDto, options).then((request) => request(axios, basePath));
  8000. },
  8001. /**
  8002. *
  8003. * @param {AssetApiUpdateAssetsRequest} requestParameters Request parameters.
  8004. * @param {*} [options] Override http request option.
  8005. * @throws {RequiredError}
  8006. */
  8007. updateAssets(requestParameters: AssetApiUpdateAssetsRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  8008. return localVarFp.updateAssets(requestParameters.assetBulkUpdateDto, options).then((request) => request(axios, basePath));
  8009. },
  8010. /**
  8011. *
  8012. * @param {AssetApiUpdateStackParentRequest} requestParameters Request parameters.
  8013. * @param {*} [options] Override http request option.
  8014. * @throws {RequiredError}
  8015. */
  8016. updateStackParent(requestParameters: AssetApiUpdateStackParentRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  8017. return localVarFp.updateStackParent(requestParameters.updateStackParentDto, options).then((request) => request(axios, basePath));
  8018. },
  8019. /**
  8020. *
  8021. * @param {AssetApiUploadFileRequest} requestParameters Request parameters.
  8022. * @param {*} [options] Override http request option.
  8023. * @throws {RequiredError}
  8024. */
  8025. uploadFile(requestParameters: AssetApiUploadFileRequest, options?: AxiosRequestConfig): AxiosPromise<AssetFileUploadResponseDto> {
  8026. return localVarFp.uploadFile(requestParameters.assetData, requestParameters.deviceAssetId, requestParameters.deviceId, requestParameters.fileCreatedAt, requestParameters.fileModifiedAt, requestParameters.key, requestParameters.duration, requestParameters.isArchived, requestParameters.isExternal, requestParameters.isFavorite, requestParameters.isOffline, requestParameters.isReadOnly, requestParameters.isVisible, requestParameters.libraryId, requestParameters.livePhotoData, requestParameters.sidecarData, options).then((request) => request(axios, basePath));
  8027. },
  8028. };
  8029. };
  8030. /**
  8031. * Request parameters for checkBulkUpload operation in AssetApi.
  8032. * @export
  8033. * @interface AssetApiCheckBulkUploadRequest
  8034. */
  8035. export interface AssetApiCheckBulkUploadRequest {
  8036. /**
  8037. *
  8038. * @type {AssetBulkUploadCheckDto}
  8039. * @memberof AssetApiCheckBulkUpload
  8040. */
  8041. readonly assetBulkUploadCheckDto: AssetBulkUploadCheckDto
  8042. }
  8043. /**
  8044. * Request parameters for checkExistingAssets operation in AssetApi.
  8045. * @export
  8046. * @interface AssetApiCheckExistingAssetsRequest
  8047. */
  8048. export interface AssetApiCheckExistingAssetsRequest {
  8049. /**
  8050. *
  8051. * @type {CheckExistingAssetsDto}
  8052. * @memberof AssetApiCheckExistingAssets
  8053. */
  8054. readonly checkExistingAssetsDto: CheckExistingAssetsDto
  8055. }
  8056. /**
  8057. * Request parameters for deleteAssets operation in AssetApi.
  8058. * @export
  8059. * @interface AssetApiDeleteAssetsRequest
  8060. */
  8061. export interface AssetApiDeleteAssetsRequest {
  8062. /**
  8063. *
  8064. * @type {AssetBulkDeleteDto}
  8065. * @memberof AssetApiDeleteAssets
  8066. */
  8067. readonly assetBulkDeleteDto: AssetBulkDeleteDto
  8068. }
  8069. /**
  8070. * Request parameters for downloadArchive operation in AssetApi.
  8071. * @export
  8072. * @interface AssetApiDownloadArchiveRequest
  8073. */
  8074. export interface AssetApiDownloadArchiveRequest {
  8075. /**
  8076. *
  8077. * @type {AssetIdsDto}
  8078. * @memberof AssetApiDownloadArchive
  8079. */
  8080. readonly assetIdsDto: AssetIdsDto
  8081. /**
  8082. *
  8083. * @type {string}
  8084. * @memberof AssetApiDownloadArchive
  8085. */
  8086. readonly key?: string
  8087. }
  8088. /**
  8089. * Request parameters for downloadFile operation in AssetApi.
  8090. * @export
  8091. * @interface AssetApiDownloadFileRequest
  8092. */
  8093. export interface AssetApiDownloadFileRequest {
  8094. /**
  8095. *
  8096. * @type {string}
  8097. * @memberof AssetApiDownloadFile
  8098. */
  8099. readonly id: string
  8100. /**
  8101. *
  8102. * @type {string}
  8103. * @memberof AssetApiDownloadFile
  8104. */
  8105. readonly key?: string
  8106. }
  8107. /**
  8108. * Request parameters for getAllAssets operation in AssetApi.
  8109. * @export
  8110. * @interface AssetApiGetAllAssetsRequest
  8111. */
  8112. export interface AssetApiGetAllAssetsRequest {
  8113. /**
  8114. *
  8115. * @type {number}
  8116. * @memberof AssetApiGetAllAssets
  8117. */
  8118. readonly skip?: number
  8119. /**
  8120. *
  8121. * @type {number}
  8122. * @memberof AssetApiGetAllAssets
  8123. */
  8124. readonly take?: number
  8125. /**
  8126. *
  8127. * @type {string}
  8128. * @memberof AssetApiGetAllAssets
  8129. */
  8130. readonly userId?: string
  8131. /**
  8132. *
  8133. * @type {boolean}
  8134. * @memberof AssetApiGetAllAssets
  8135. */
  8136. readonly isFavorite?: boolean
  8137. /**
  8138. *
  8139. * @type {boolean}
  8140. * @memberof AssetApiGetAllAssets
  8141. */
  8142. readonly isArchived?: boolean
  8143. /**
  8144. *
  8145. * @type {string}
  8146. * @memberof AssetApiGetAllAssets
  8147. */
  8148. readonly updatedAfter?: string
  8149. /**
  8150. *
  8151. * @type {string}
  8152. * @memberof AssetApiGetAllAssets
  8153. */
  8154. readonly updatedBefore?: string
  8155. /**
  8156. * ETag of data already cached on the client
  8157. * @type {string}
  8158. * @memberof AssetApiGetAllAssets
  8159. */
  8160. readonly ifNoneMatch?: string
  8161. }
  8162. /**
  8163. * Request parameters for getAssetById operation in AssetApi.
  8164. * @export
  8165. * @interface AssetApiGetAssetByIdRequest
  8166. */
  8167. export interface AssetApiGetAssetByIdRequest {
  8168. /**
  8169. *
  8170. * @type {string}
  8171. * @memberof AssetApiGetAssetById
  8172. */
  8173. readonly id: string
  8174. /**
  8175. *
  8176. * @type {string}
  8177. * @memberof AssetApiGetAssetById
  8178. */
  8179. readonly key?: string
  8180. }
  8181. /**
  8182. * Request parameters for getAssetStatistics operation in AssetApi.
  8183. * @export
  8184. * @interface AssetApiGetAssetStatisticsRequest
  8185. */
  8186. export interface AssetApiGetAssetStatisticsRequest {
  8187. /**
  8188. *
  8189. * @type {boolean}
  8190. * @memberof AssetApiGetAssetStatistics
  8191. */
  8192. readonly isArchived?: boolean
  8193. /**
  8194. *
  8195. * @type {boolean}
  8196. * @memberof AssetApiGetAssetStatistics
  8197. */
  8198. readonly isFavorite?: boolean
  8199. /**
  8200. *
  8201. * @type {boolean}
  8202. * @memberof AssetApiGetAssetStatistics
  8203. */
  8204. readonly isTrashed?: boolean
  8205. }
  8206. /**
  8207. * Request parameters for getAssetThumbnail operation in AssetApi.
  8208. * @export
  8209. * @interface AssetApiGetAssetThumbnailRequest
  8210. */
  8211. export interface AssetApiGetAssetThumbnailRequest {
  8212. /**
  8213. *
  8214. * @type {string}
  8215. * @memberof AssetApiGetAssetThumbnail
  8216. */
  8217. readonly id: string
  8218. /**
  8219. *
  8220. * @type {ThumbnailFormat}
  8221. * @memberof AssetApiGetAssetThumbnail
  8222. */
  8223. readonly format?: ThumbnailFormat
  8224. /**
  8225. *
  8226. * @type {string}
  8227. * @memberof AssetApiGetAssetThumbnail
  8228. */
  8229. readonly key?: string
  8230. }
  8231. /**
  8232. * Request parameters for getDownloadInfo operation in AssetApi.
  8233. * @export
  8234. * @interface AssetApiGetDownloadInfoRequest
  8235. */
  8236. export interface AssetApiGetDownloadInfoRequest {
  8237. /**
  8238. *
  8239. * @type {DownloadInfoDto}
  8240. * @memberof AssetApiGetDownloadInfo
  8241. */
  8242. readonly downloadInfoDto: DownloadInfoDto
  8243. /**
  8244. *
  8245. * @type {string}
  8246. * @memberof AssetApiGetDownloadInfo
  8247. */
  8248. readonly key?: string
  8249. }
  8250. /**
  8251. * Request parameters for getMapMarkers operation in AssetApi.
  8252. * @export
  8253. * @interface AssetApiGetMapMarkersRequest
  8254. */
  8255. export interface AssetApiGetMapMarkersRequest {
  8256. /**
  8257. *
  8258. * @type {boolean}
  8259. * @memberof AssetApiGetMapMarkers
  8260. */
  8261. readonly isArchived?: boolean
  8262. /**
  8263. *
  8264. * @type {boolean}
  8265. * @memberof AssetApiGetMapMarkers
  8266. */
  8267. readonly isFavorite?: boolean
  8268. /**
  8269. *
  8270. * @type {string}
  8271. * @memberof AssetApiGetMapMarkers
  8272. */
  8273. readonly fileCreatedAfter?: string
  8274. /**
  8275. *
  8276. * @type {string}
  8277. * @memberof AssetApiGetMapMarkers
  8278. */
  8279. readonly fileCreatedBefore?: string
  8280. }
  8281. /**
  8282. * Request parameters for getMemoryLane operation in AssetApi.
  8283. * @export
  8284. * @interface AssetApiGetMemoryLaneRequest
  8285. */
  8286. export interface AssetApiGetMemoryLaneRequest {
  8287. /**
  8288. *
  8289. * @type {number}
  8290. * @memberof AssetApiGetMemoryLane
  8291. */
  8292. readonly day: number
  8293. /**
  8294. *
  8295. * @type {number}
  8296. * @memberof AssetApiGetMemoryLane
  8297. */
  8298. readonly month: number
  8299. }
  8300. /**
  8301. * Request parameters for getRandom operation in AssetApi.
  8302. * @export
  8303. * @interface AssetApiGetRandomRequest
  8304. */
  8305. export interface AssetApiGetRandomRequest {
  8306. /**
  8307. *
  8308. * @type {number}
  8309. * @memberof AssetApiGetRandom
  8310. */
  8311. readonly count?: number
  8312. }
  8313. /**
  8314. * Request parameters for getTimeBucket operation in AssetApi.
  8315. * @export
  8316. * @interface AssetApiGetTimeBucketRequest
  8317. */
  8318. export interface AssetApiGetTimeBucketRequest {
  8319. /**
  8320. *
  8321. * @type {TimeBucketSize}
  8322. * @memberof AssetApiGetTimeBucket
  8323. */
  8324. readonly size: TimeBucketSize
  8325. /**
  8326. *
  8327. * @type {string}
  8328. * @memberof AssetApiGetTimeBucket
  8329. */
  8330. readonly timeBucket: string
  8331. /**
  8332. *
  8333. * @type {string}
  8334. * @memberof AssetApiGetTimeBucket
  8335. */
  8336. readonly userId?: string
  8337. /**
  8338. *
  8339. * @type {string}
  8340. * @memberof AssetApiGetTimeBucket
  8341. */
  8342. readonly albumId?: string
  8343. /**
  8344. *
  8345. * @type {string}
  8346. * @memberof AssetApiGetTimeBucket
  8347. */
  8348. readonly personId?: string
  8349. /**
  8350. *
  8351. * @type {boolean}
  8352. * @memberof AssetApiGetTimeBucket
  8353. */
  8354. readonly isArchived?: boolean
  8355. /**
  8356. *
  8357. * @type {boolean}
  8358. * @memberof AssetApiGetTimeBucket
  8359. */
  8360. readonly isFavorite?: boolean
  8361. /**
  8362. *
  8363. * @type {boolean}
  8364. * @memberof AssetApiGetTimeBucket
  8365. */
  8366. readonly isTrashed?: boolean
  8367. /**
  8368. *
  8369. * @type {boolean}
  8370. * @memberof AssetApiGetTimeBucket
  8371. */
  8372. readonly withStacked?: boolean
  8373. /**
  8374. *
  8375. * @type {boolean}
  8376. * @memberof AssetApiGetTimeBucket
  8377. */
  8378. readonly withPartners?: boolean
  8379. /**
  8380. *
  8381. * @type {string}
  8382. * @memberof AssetApiGetTimeBucket
  8383. */
  8384. readonly key?: string
  8385. }
  8386. /**
  8387. * Request parameters for getTimeBuckets operation in AssetApi.
  8388. * @export
  8389. * @interface AssetApiGetTimeBucketsRequest
  8390. */
  8391. export interface AssetApiGetTimeBucketsRequest {
  8392. /**
  8393. *
  8394. * @type {TimeBucketSize}
  8395. * @memberof AssetApiGetTimeBuckets
  8396. */
  8397. readonly size: TimeBucketSize
  8398. /**
  8399. *
  8400. * @type {string}
  8401. * @memberof AssetApiGetTimeBuckets
  8402. */
  8403. readonly userId?: string
  8404. /**
  8405. *
  8406. * @type {string}
  8407. * @memberof AssetApiGetTimeBuckets
  8408. */
  8409. readonly albumId?: string
  8410. /**
  8411. *
  8412. * @type {string}
  8413. * @memberof AssetApiGetTimeBuckets
  8414. */
  8415. readonly personId?: string
  8416. /**
  8417. *
  8418. * @type {boolean}
  8419. * @memberof AssetApiGetTimeBuckets
  8420. */
  8421. readonly isArchived?: boolean
  8422. /**
  8423. *
  8424. * @type {boolean}
  8425. * @memberof AssetApiGetTimeBuckets
  8426. */
  8427. readonly isFavorite?: boolean
  8428. /**
  8429. *
  8430. * @type {boolean}
  8431. * @memberof AssetApiGetTimeBuckets
  8432. */
  8433. readonly isTrashed?: boolean
  8434. /**
  8435. *
  8436. * @type {boolean}
  8437. * @memberof AssetApiGetTimeBuckets
  8438. */
  8439. readonly withStacked?: boolean
  8440. /**
  8441. *
  8442. * @type {boolean}
  8443. * @memberof AssetApiGetTimeBuckets
  8444. */
  8445. readonly withPartners?: boolean
  8446. /**
  8447. *
  8448. * @type {string}
  8449. * @memberof AssetApiGetTimeBuckets
  8450. */
  8451. readonly key?: string
  8452. }
  8453. /**
  8454. * Request parameters for getUserAssetsByDeviceId operation in AssetApi.
  8455. * @export
  8456. * @interface AssetApiGetUserAssetsByDeviceIdRequest
  8457. */
  8458. export interface AssetApiGetUserAssetsByDeviceIdRequest {
  8459. /**
  8460. *
  8461. * @type {string}
  8462. * @memberof AssetApiGetUserAssetsByDeviceId
  8463. */
  8464. readonly deviceId: string
  8465. }
  8466. /**
  8467. * Request parameters for importFile operation in AssetApi.
  8468. * @export
  8469. * @interface AssetApiImportFileRequest
  8470. */
  8471. export interface AssetApiImportFileRequest {
  8472. /**
  8473. *
  8474. * @type {ImportAssetDto}
  8475. * @memberof AssetApiImportFile
  8476. */
  8477. readonly importAssetDto: ImportAssetDto
  8478. }
  8479. /**
  8480. * Request parameters for restoreAssets operation in AssetApi.
  8481. * @export
  8482. * @interface AssetApiRestoreAssetsRequest
  8483. */
  8484. export interface AssetApiRestoreAssetsRequest {
  8485. /**
  8486. *
  8487. * @type {BulkIdsDto}
  8488. * @memberof AssetApiRestoreAssets
  8489. */
  8490. readonly bulkIdsDto: BulkIdsDto
  8491. }
  8492. /**
  8493. * Request parameters for runAssetJobs operation in AssetApi.
  8494. * @export
  8495. * @interface AssetApiRunAssetJobsRequest
  8496. */
  8497. export interface AssetApiRunAssetJobsRequest {
  8498. /**
  8499. *
  8500. * @type {AssetJobsDto}
  8501. * @memberof AssetApiRunAssetJobs
  8502. */
  8503. readonly assetJobsDto: AssetJobsDto
  8504. }
  8505. /**
  8506. * Request parameters for searchAsset operation in AssetApi.
  8507. * @export
  8508. * @interface AssetApiSearchAssetRequest
  8509. */
  8510. export interface AssetApiSearchAssetRequest {
  8511. /**
  8512. *
  8513. * @type {SearchAssetDto}
  8514. * @memberof AssetApiSearchAsset
  8515. */
  8516. readonly searchAssetDto: SearchAssetDto
  8517. }
  8518. /**
  8519. * Request parameters for serveFile operation in AssetApi.
  8520. * @export
  8521. * @interface AssetApiServeFileRequest
  8522. */
  8523. export interface AssetApiServeFileRequest {
  8524. /**
  8525. *
  8526. * @type {string}
  8527. * @memberof AssetApiServeFile
  8528. */
  8529. readonly id: string
  8530. /**
  8531. *
  8532. * @type {boolean}
  8533. * @memberof AssetApiServeFile
  8534. */
  8535. readonly isThumb?: boolean
  8536. /**
  8537. *
  8538. * @type {boolean}
  8539. * @memberof AssetApiServeFile
  8540. */
  8541. readonly isWeb?: boolean
  8542. /**
  8543. *
  8544. * @type {string}
  8545. * @memberof AssetApiServeFile
  8546. */
  8547. readonly key?: string
  8548. }
  8549. /**
  8550. * Request parameters for updateAsset operation in AssetApi.
  8551. * @export
  8552. * @interface AssetApiUpdateAssetRequest
  8553. */
  8554. export interface AssetApiUpdateAssetRequest {
  8555. /**
  8556. *
  8557. * @type {string}
  8558. * @memberof AssetApiUpdateAsset
  8559. */
  8560. readonly id: string
  8561. /**
  8562. *
  8563. * @type {UpdateAssetDto}
  8564. * @memberof AssetApiUpdateAsset
  8565. */
  8566. readonly updateAssetDto: UpdateAssetDto
  8567. }
  8568. /**
  8569. * Request parameters for updateAssets operation in AssetApi.
  8570. * @export
  8571. * @interface AssetApiUpdateAssetsRequest
  8572. */
  8573. export interface AssetApiUpdateAssetsRequest {
  8574. /**
  8575. *
  8576. * @type {AssetBulkUpdateDto}
  8577. * @memberof AssetApiUpdateAssets
  8578. */
  8579. readonly assetBulkUpdateDto: AssetBulkUpdateDto
  8580. }
  8581. /**
  8582. * Request parameters for updateStackParent operation in AssetApi.
  8583. * @export
  8584. * @interface AssetApiUpdateStackParentRequest
  8585. */
  8586. export interface AssetApiUpdateStackParentRequest {
  8587. /**
  8588. *
  8589. * @type {UpdateStackParentDto}
  8590. * @memberof AssetApiUpdateStackParent
  8591. */
  8592. readonly updateStackParentDto: UpdateStackParentDto
  8593. }
  8594. /**
  8595. * Request parameters for uploadFile operation in AssetApi.
  8596. * @export
  8597. * @interface AssetApiUploadFileRequest
  8598. */
  8599. export interface AssetApiUploadFileRequest {
  8600. /**
  8601. *
  8602. * @type {File}
  8603. * @memberof AssetApiUploadFile
  8604. */
  8605. readonly assetData: File
  8606. /**
  8607. *
  8608. * @type {string}
  8609. * @memberof AssetApiUploadFile
  8610. */
  8611. readonly deviceAssetId: string
  8612. /**
  8613. *
  8614. * @type {string}
  8615. * @memberof AssetApiUploadFile
  8616. */
  8617. readonly deviceId: string
  8618. /**
  8619. *
  8620. * @type {string}
  8621. * @memberof AssetApiUploadFile
  8622. */
  8623. readonly fileCreatedAt: string
  8624. /**
  8625. *
  8626. * @type {string}
  8627. * @memberof AssetApiUploadFile
  8628. */
  8629. readonly fileModifiedAt: string
  8630. /**
  8631. *
  8632. * @type {string}
  8633. * @memberof AssetApiUploadFile
  8634. */
  8635. readonly key?: string
  8636. /**
  8637. *
  8638. * @type {string}
  8639. * @memberof AssetApiUploadFile
  8640. */
  8641. readonly duration?: string
  8642. /**
  8643. *
  8644. * @type {boolean}
  8645. * @memberof AssetApiUploadFile
  8646. */
  8647. readonly isArchived?: boolean
  8648. /**
  8649. *
  8650. * @type {boolean}
  8651. * @memberof AssetApiUploadFile
  8652. */
  8653. readonly isExternal?: boolean
  8654. /**
  8655. *
  8656. * @type {boolean}
  8657. * @memberof AssetApiUploadFile
  8658. */
  8659. readonly isFavorite?: boolean
  8660. /**
  8661. *
  8662. * @type {boolean}
  8663. * @memberof AssetApiUploadFile
  8664. */
  8665. readonly isOffline?: boolean
  8666. /**
  8667. *
  8668. * @type {boolean}
  8669. * @memberof AssetApiUploadFile
  8670. */
  8671. readonly isReadOnly?: boolean
  8672. /**
  8673. *
  8674. * @type {boolean}
  8675. * @memberof AssetApiUploadFile
  8676. */
  8677. readonly isVisible?: boolean
  8678. /**
  8679. *
  8680. * @type {string}
  8681. * @memberof AssetApiUploadFile
  8682. */
  8683. readonly libraryId?: string
  8684. /**
  8685. *
  8686. * @type {File}
  8687. * @memberof AssetApiUploadFile
  8688. */
  8689. readonly livePhotoData?: File
  8690. /**
  8691. *
  8692. * @type {File}
  8693. * @memberof AssetApiUploadFile
  8694. */
  8695. readonly sidecarData?: File
  8696. }
  8697. /**
  8698. * AssetApi - object-oriented interface
  8699. * @export
  8700. * @class AssetApi
  8701. * @extends {BaseAPI}
  8702. */
  8703. export class AssetApi extends BaseAPI {
  8704. /**
  8705. * Checks if assets exist by checksums
  8706. * @param {AssetApiCheckBulkUploadRequest} requestParameters Request parameters.
  8707. * @param {*} [options] Override http request option.
  8708. * @throws {RequiredError}
  8709. * @memberof AssetApi
  8710. */
  8711. public checkBulkUpload(requestParameters: AssetApiCheckBulkUploadRequest, options?: AxiosRequestConfig) {
  8712. return AssetApiFp(this.configuration).checkBulkUpload(requestParameters.assetBulkUploadCheckDto, options).then((request) => request(this.axios, this.basePath));
  8713. }
  8714. /**
  8715. * Checks if multiple assets exist on the server and returns all existing - used by background backup
  8716. * @param {AssetApiCheckExistingAssetsRequest} requestParameters Request parameters.
  8717. * @param {*} [options] Override http request option.
  8718. * @throws {RequiredError}
  8719. * @memberof AssetApi
  8720. */
  8721. public checkExistingAssets(requestParameters: AssetApiCheckExistingAssetsRequest, options?: AxiosRequestConfig) {
  8722. return AssetApiFp(this.configuration).checkExistingAssets(requestParameters.checkExistingAssetsDto, options).then((request) => request(this.axios, this.basePath));
  8723. }
  8724. /**
  8725. *
  8726. * @param {AssetApiDeleteAssetsRequest} requestParameters Request parameters.
  8727. * @param {*} [options] Override http request option.
  8728. * @throws {RequiredError}
  8729. * @memberof AssetApi
  8730. */
  8731. public deleteAssets(requestParameters: AssetApiDeleteAssetsRequest, options?: AxiosRequestConfig) {
  8732. return AssetApiFp(this.configuration).deleteAssets(requestParameters.assetBulkDeleteDto, options).then((request) => request(this.axios, this.basePath));
  8733. }
  8734. /**
  8735. *
  8736. * @param {AssetApiDownloadArchiveRequest} requestParameters Request parameters.
  8737. * @param {*} [options] Override http request option.
  8738. * @throws {RequiredError}
  8739. * @memberof AssetApi
  8740. */
  8741. public downloadArchive(requestParameters: AssetApiDownloadArchiveRequest, options?: AxiosRequestConfig) {
  8742. return AssetApiFp(this.configuration).downloadArchive(requestParameters.assetIdsDto, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  8743. }
  8744. /**
  8745. *
  8746. * @param {AssetApiDownloadFileRequest} requestParameters Request parameters.
  8747. * @param {*} [options] Override http request option.
  8748. * @throws {RequiredError}
  8749. * @memberof AssetApi
  8750. */
  8751. public downloadFile(requestParameters: AssetApiDownloadFileRequest, options?: AxiosRequestConfig) {
  8752. return AssetApiFp(this.configuration).downloadFile(requestParameters.id, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  8753. }
  8754. /**
  8755. *
  8756. * @param {*} [options] Override http request option.
  8757. * @throws {RequiredError}
  8758. * @memberof AssetApi
  8759. */
  8760. public emptyTrash(options?: AxiosRequestConfig) {
  8761. return AssetApiFp(this.configuration).emptyTrash(options).then((request) => request(this.axios, this.basePath));
  8762. }
  8763. /**
  8764. * Get all AssetEntity belong to the user
  8765. * @param {AssetApiGetAllAssetsRequest} requestParameters Request parameters.
  8766. * @param {*} [options] Override http request option.
  8767. * @throws {RequiredError}
  8768. * @memberof AssetApi
  8769. */
  8770. public getAllAssets(requestParameters: AssetApiGetAllAssetsRequest = {}, options?: AxiosRequestConfig) {
  8771. return AssetApiFp(this.configuration).getAllAssets(requestParameters.skip, requestParameters.take, requestParameters.userId, requestParameters.isFavorite, requestParameters.isArchived, requestParameters.updatedAfter, requestParameters.updatedBefore, requestParameters.ifNoneMatch, options).then((request) => request(this.axios, this.basePath));
  8772. }
  8773. /**
  8774. * Get a single asset\'s information
  8775. * @param {AssetApiGetAssetByIdRequest} requestParameters Request parameters.
  8776. * @param {*} [options] Override http request option.
  8777. * @throws {RequiredError}
  8778. * @memberof AssetApi
  8779. */
  8780. public getAssetById(requestParameters: AssetApiGetAssetByIdRequest, options?: AxiosRequestConfig) {
  8781. return AssetApiFp(this.configuration).getAssetById(requestParameters.id, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  8782. }
  8783. /**
  8784. *
  8785. * @param {*} [options] Override http request option.
  8786. * @throws {RequiredError}
  8787. * @memberof AssetApi
  8788. */
  8789. public getAssetSearchTerms(options?: AxiosRequestConfig) {
  8790. return AssetApiFp(this.configuration).getAssetSearchTerms(options).then((request) => request(this.axios, this.basePath));
  8791. }
  8792. /**
  8793. *
  8794. * @param {AssetApiGetAssetStatisticsRequest} requestParameters Request parameters.
  8795. * @param {*} [options] Override http request option.
  8796. * @throws {RequiredError}
  8797. * @memberof AssetApi
  8798. */
  8799. public getAssetStatistics(requestParameters: AssetApiGetAssetStatisticsRequest = {}, options?: AxiosRequestConfig) {
  8800. return AssetApiFp(this.configuration).getAssetStatistics(requestParameters.isArchived, requestParameters.isFavorite, requestParameters.isTrashed, options).then((request) => request(this.axios, this.basePath));
  8801. }
  8802. /**
  8803. *
  8804. * @param {AssetApiGetAssetThumbnailRequest} requestParameters Request parameters.
  8805. * @param {*} [options] Override http request option.
  8806. * @throws {RequiredError}
  8807. * @memberof AssetApi
  8808. */
  8809. public getAssetThumbnail(requestParameters: AssetApiGetAssetThumbnailRequest, options?: AxiosRequestConfig) {
  8810. return AssetApiFp(this.configuration).getAssetThumbnail(requestParameters.id, requestParameters.format, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  8811. }
  8812. /**
  8813. *
  8814. * @param {*} [options] Override http request option.
  8815. * @throws {RequiredError}
  8816. * @memberof AssetApi
  8817. */
  8818. public getCuratedLocations(options?: AxiosRequestConfig) {
  8819. return AssetApiFp(this.configuration).getCuratedLocations(options).then((request) => request(this.axios, this.basePath));
  8820. }
  8821. /**
  8822. *
  8823. * @param {*} [options] Override http request option.
  8824. * @throws {RequiredError}
  8825. * @memberof AssetApi
  8826. */
  8827. public getCuratedObjects(options?: AxiosRequestConfig) {
  8828. return AssetApiFp(this.configuration).getCuratedObjects(options).then((request) => request(this.axios, this.basePath));
  8829. }
  8830. /**
  8831. *
  8832. * @param {AssetApiGetDownloadInfoRequest} requestParameters Request parameters.
  8833. * @param {*} [options] Override http request option.
  8834. * @throws {RequiredError}
  8835. * @memberof AssetApi
  8836. */
  8837. public getDownloadInfo(requestParameters: AssetApiGetDownloadInfoRequest, options?: AxiosRequestConfig) {
  8838. return AssetApiFp(this.configuration).getDownloadInfo(requestParameters.downloadInfoDto, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  8839. }
  8840. /**
  8841. *
  8842. * @param {AssetApiGetMapMarkersRequest} requestParameters Request parameters.
  8843. * @param {*} [options] Override http request option.
  8844. * @throws {RequiredError}
  8845. * @memberof AssetApi
  8846. */
  8847. public getMapMarkers(requestParameters: AssetApiGetMapMarkersRequest = {}, options?: AxiosRequestConfig) {
  8848. return AssetApiFp(this.configuration).getMapMarkers(requestParameters.isArchived, requestParameters.isFavorite, requestParameters.fileCreatedAfter, requestParameters.fileCreatedBefore, options).then((request) => request(this.axios, this.basePath));
  8849. }
  8850. /**
  8851. *
  8852. * @param {AssetApiGetMemoryLaneRequest} requestParameters Request parameters.
  8853. * @param {*} [options] Override http request option.
  8854. * @throws {RequiredError}
  8855. * @memberof AssetApi
  8856. */
  8857. public getMemoryLane(requestParameters: AssetApiGetMemoryLaneRequest, options?: AxiosRequestConfig) {
  8858. return AssetApiFp(this.configuration).getMemoryLane(requestParameters.day, requestParameters.month, options).then((request) => request(this.axios, this.basePath));
  8859. }
  8860. /**
  8861. *
  8862. * @param {AssetApiGetRandomRequest} requestParameters Request parameters.
  8863. * @param {*} [options] Override http request option.
  8864. * @throws {RequiredError}
  8865. * @memberof AssetApi
  8866. */
  8867. public getRandom(requestParameters: AssetApiGetRandomRequest = {}, options?: AxiosRequestConfig) {
  8868. return AssetApiFp(this.configuration).getRandom(requestParameters.count, options).then((request) => request(this.axios, this.basePath));
  8869. }
  8870. /**
  8871. *
  8872. * @param {AssetApiGetTimeBucketRequest} requestParameters Request parameters.
  8873. * @param {*} [options] Override http request option.
  8874. * @throws {RequiredError}
  8875. * @memberof AssetApi
  8876. */
  8877. public getTimeBucket(requestParameters: AssetApiGetTimeBucketRequest, options?: AxiosRequestConfig) {
  8878. return AssetApiFp(this.configuration).getTimeBucket(requestParameters.size, requestParameters.timeBucket, requestParameters.userId, requestParameters.albumId, requestParameters.personId, requestParameters.isArchived, requestParameters.isFavorite, requestParameters.isTrashed, requestParameters.withStacked, requestParameters.withPartners, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  8879. }
  8880. /**
  8881. *
  8882. * @param {AssetApiGetTimeBucketsRequest} requestParameters Request parameters.
  8883. * @param {*} [options] Override http request option.
  8884. * @throws {RequiredError}
  8885. * @memberof AssetApi
  8886. */
  8887. public getTimeBuckets(requestParameters: AssetApiGetTimeBucketsRequest, options?: AxiosRequestConfig) {
  8888. return AssetApiFp(this.configuration).getTimeBuckets(requestParameters.size, requestParameters.userId, requestParameters.albumId, requestParameters.personId, requestParameters.isArchived, requestParameters.isFavorite, requestParameters.isTrashed, requestParameters.withStacked, requestParameters.withPartners, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  8889. }
  8890. /**
  8891. * Get all asset of a device that are in the database, ID only.
  8892. * @param {AssetApiGetUserAssetsByDeviceIdRequest} requestParameters Request parameters.
  8893. * @param {*} [options] Override http request option.
  8894. * @throws {RequiredError}
  8895. * @memberof AssetApi
  8896. */
  8897. public getUserAssetsByDeviceId(requestParameters: AssetApiGetUserAssetsByDeviceIdRequest, options?: AxiosRequestConfig) {
  8898. return AssetApiFp(this.configuration).getUserAssetsByDeviceId(requestParameters.deviceId, options).then((request) => request(this.axios, this.basePath));
  8899. }
  8900. /**
  8901. *
  8902. * @param {AssetApiImportFileRequest} requestParameters Request parameters.
  8903. * @param {*} [options] Override http request option.
  8904. * @throws {RequiredError}
  8905. * @memberof AssetApi
  8906. */
  8907. public importFile(requestParameters: AssetApiImportFileRequest, options?: AxiosRequestConfig) {
  8908. return AssetApiFp(this.configuration).importFile(requestParameters.importAssetDto, options).then((request) => request(this.axios, this.basePath));
  8909. }
  8910. /**
  8911. *
  8912. * @param {AssetApiRestoreAssetsRequest} requestParameters Request parameters.
  8913. * @param {*} [options] Override http request option.
  8914. * @throws {RequiredError}
  8915. * @memberof AssetApi
  8916. */
  8917. public restoreAssets(requestParameters: AssetApiRestoreAssetsRequest, options?: AxiosRequestConfig) {
  8918. return AssetApiFp(this.configuration).restoreAssets(requestParameters.bulkIdsDto, options).then((request) => request(this.axios, this.basePath));
  8919. }
  8920. /**
  8921. *
  8922. * @param {*} [options] Override http request option.
  8923. * @throws {RequiredError}
  8924. * @memberof AssetApi
  8925. */
  8926. public restoreTrash(options?: AxiosRequestConfig) {
  8927. return AssetApiFp(this.configuration).restoreTrash(options).then((request) => request(this.axios, this.basePath));
  8928. }
  8929. /**
  8930. *
  8931. * @param {AssetApiRunAssetJobsRequest} requestParameters Request parameters.
  8932. * @param {*} [options] Override http request option.
  8933. * @throws {RequiredError}
  8934. * @memberof AssetApi
  8935. */
  8936. public runAssetJobs(requestParameters: AssetApiRunAssetJobsRequest, options?: AxiosRequestConfig) {
  8937. return AssetApiFp(this.configuration).runAssetJobs(requestParameters.assetJobsDto, options).then((request) => request(this.axios, this.basePath));
  8938. }
  8939. /**
  8940. *
  8941. * @param {AssetApiSearchAssetRequest} requestParameters Request parameters.
  8942. * @param {*} [options] Override http request option.
  8943. * @throws {RequiredError}
  8944. * @memberof AssetApi
  8945. */
  8946. public searchAsset(requestParameters: AssetApiSearchAssetRequest, options?: AxiosRequestConfig) {
  8947. return AssetApiFp(this.configuration).searchAsset(requestParameters.searchAssetDto, options).then((request) => request(this.axios, this.basePath));
  8948. }
  8949. /**
  8950. *
  8951. * @param {AssetApiServeFileRequest} requestParameters Request parameters.
  8952. * @param {*} [options] Override http request option.
  8953. * @throws {RequiredError}
  8954. * @memberof AssetApi
  8955. */
  8956. public serveFile(requestParameters: AssetApiServeFileRequest, options?: AxiosRequestConfig) {
  8957. return AssetApiFp(this.configuration).serveFile(requestParameters.id, requestParameters.isThumb, requestParameters.isWeb, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  8958. }
  8959. /**
  8960. *
  8961. * @param {AssetApiUpdateAssetRequest} requestParameters Request parameters.
  8962. * @param {*} [options] Override http request option.
  8963. * @throws {RequiredError}
  8964. * @memberof AssetApi
  8965. */
  8966. public updateAsset(requestParameters: AssetApiUpdateAssetRequest, options?: AxiosRequestConfig) {
  8967. return AssetApiFp(this.configuration).updateAsset(requestParameters.id, requestParameters.updateAssetDto, options).then((request) => request(this.axios, this.basePath));
  8968. }
  8969. /**
  8970. *
  8971. * @param {AssetApiUpdateAssetsRequest} requestParameters Request parameters.
  8972. * @param {*} [options] Override http request option.
  8973. * @throws {RequiredError}
  8974. * @memberof AssetApi
  8975. */
  8976. public updateAssets(requestParameters: AssetApiUpdateAssetsRequest, options?: AxiosRequestConfig) {
  8977. return AssetApiFp(this.configuration).updateAssets(requestParameters.assetBulkUpdateDto, options).then((request) => request(this.axios, this.basePath));
  8978. }
  8979. /**
  8980. *
  8981. * @param {AssetApiUpdateStackParentRequest} requestParameters Request parameters.
  8982. * @param {*} [options] Override http request option.
  8983. * @throws {RequiredError}
  8984. * @memberof AssetApi
  8985. */
  8986. public updateStackParent(requestParameters: AssetApiUpdateStackParentRequest, options?: AxiosRequestConfig) {
  8987. return AssetApiFp(this.configuration).updateStackParent(requestParameters.updateStackParentDto, options).then((request) => request(this.axios, this.basePath));
  8988. }
  8989. /**
  8990. *
  8991. * @param {AssetApiUploadFileRequest} requestParameters Request parameters.
  8992. * @param {*} [options] Override http request option.
  8993. * @throws {RequiredError}
  8994. * @memberof AssetApi
  8995. */
  8996. public uploadFile(requestParameters: AssetApiUploadFileRequest, options?: AxiosRequestConfig) {
  8997. return AssetApiFp(this.configuration).uploadFile(requestParameters.assetData, requestParameters.deviceAssetId, requestParameters.deviceId, requestParameters.fileCreatedAt, requestParameters.fileModifiedAt, requestParameters.key, requestParameters.duration, requestParameters.isArchived, requestParameters.isExternal, requestParameters.isFavorite, requestParameters.isOffline, requestParameters.isReadOnly, requestParameters.isVisible, requestParameters.libraryId, requestParameters.livePhotoData, requestParameters.sidecarData, options).then((request) => request(this.axios, this.basePath));
  8998. }
  8999. }
  9000. /**
  9001. * AuditApi - axios parameter creator
  9002. * @export
  9003. */
  9004. export const AuditApiAxiosParamCreator = function (configuration?: Configuration) {
  9005. return {
  9006. /**
  9007. *
  9008. * @param {FileReportFixDto} fileReportFixDto
  9009. * @param {*} [options] Override http request option.
  9010. * @throws {RequiredError}
  9011. */
  9012. fixAuditFiles: async (fileReportFixDto: FileReportFixDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9013. // verify required parameter 'fileReportFixDto' is not null or undefined
  9014. assertParamExists('fixAuditFiles', 'fileReportFixDto', fileReportFixDto)
  9015. const localVarPath = `/audit/file-report/fix`;
  9016. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9017. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9018. let baseOptions;
  9019. if (configuration) {
  9020. baseOptions = configuration.baseOptions;
  9021. }
  9022. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  9023. const localVarHeaderParameter = {} as any;
  9024. const localVarQueryParameter = {} as any;
  9025. // authentication cookie required
  9026. // authentication api_key required
  9027. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  9028. // authentication bearer required
  9029. // http bearer authentication required
  9030. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  9031. localVarHeaderParameter['Content-Type'] = 'application/json';
  9032. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9033. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9034. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9035. localVarRequestOptions.data = serializeDataIfNeeded(fileReportFixDto, localVarRequestOptions, configuration)
  9036. return {
  9037. url: toPathString(localVarUrlObj),
  9038. options: localVarRequestOptions,
  9039. };
  9040. },
  9041. /**
  9042. *
  9043. * @param {EntityType} entityType
  9044. * @param {string} after
  9045. * @param {string} [userId]
  9046. * @param {*} [options] Override http request option.
  9047. * @throws {RequiredError}
  9048. */
  9049. getAuditDeletes: async (entityType: EntityType, after: string, userId?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9050. // verify required parameter 'entityType' is not null or undefined
  9051. assertParamExists('getAuditDeletes', 'entityType', entityType)
  9052. // verify required parameter 'after' is not null or undefined
  9053. assertParamExists('getAuditDeletes', 'after', after)
  9054. const localVarPath = `/audit/deletes`;
  9055. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9056. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9057. let baseOptions;
  9058. if (configuration) {
  9059. baseOptions = configuration.baseOptions;
  9060. }
  9061. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  9062. const localVarHeaderParameter = {} as any;
  9063. const localVarQueryParameter = {} as any;
  9064. // authentication cookie required
  9065. // authentication api_key required
  9066. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  9067. // authentication bearer required
  9068. // http bearer authentication required
  9069. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  9070. if (entityType !== undefined) {
  9071. localVarQueryParameter['entityType'] = entityType;
  9072. }
  9073. if (userId !== undefined) {
  9074. localVarQueryParameter['userId'] = userId;
  9075. }
  9076. if (after !== undefined) {
  9077. localVarQueryParameter['after'] = (after as any instanceof Date) ?
  9078. (after as any).toISOString() :
  9079. after;
  9080. }
  9081. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9082. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9083. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9084. return {
  9085. url: toPathString(localVarUrlObj),
  9086. options: localVarRequestOptions,
  9087. };
  9088. },
  9089. /**
  9090. *
  9091. * @param {*} [options] Override http request option.
  9092. * @throws {RequiredError}
  9093. */
  9094. getAuditFiles: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9095. const localVarPath = `/audit/file-report`;
  9096. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9097. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9098. let baseOptions;
  9099. if (configuration) {
  9100. baseOptions = configuration.baseOptions;
  9101. }
  9102. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  9103. const localVarHeaderParameter = {} as any;
  9104. const localVarQueryParameter = {} as any;
  9105. // authentication cookie required
  9106. // authentication api_key required
  9107. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  9108. // authentication bearer required
  9109. // http bearer authentication required
  9110. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  9111. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9112. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9113. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9114. return {
  9115. url: toPathString(localVarUrlObj),
  9116. options: localVarRequestOptions,
  9117. };
  9118. },
  9119. /**
  9120. *
  9121. * @param {FileChecksumDto} fileChecksumDto
  9122. * @param {*} [options] Override http request option.
  9123. * @throws {RequiredError}
  9124. */
  9125. getFileChecksums: async (fileChecksumDto: FileChecksumDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9126. // verify required parameter 'fileChecksumDto' is not null or undefined
  9127. assertParamExists('getFileChecksums', 'fileChecksumDto', fileChecksumDto)
  9128. const localVarPath = `/audit/file-report/checksum`;
  9129. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9130. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9131. let baseOptions;
  9132. if (configuration) {
  9133. baseOptions = configuration.baseOptions;
  9134. }
  9135. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  9136. const localVarHeaderParameter = {} as any;
  9137. const localVarQueryParameter = {} as any;
  9138. // authentication cookie required
  9139. // authentication api_key required
  9140. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  9141. // authentication bearer required
  9142. // http bearer authentication required
  9143. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  9144. localVarHeaderParameter['Content-Type'] = 'application/json';
  9145. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9146. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9147. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9148. localVarRequestOptions.data = serializeDataIfNeeded(fileChecksumDto, localVarRequestOptions, configuration)
  9149. return {
  9150. url: toPathString(localVarUrlObj),
  9151. options: localVarRequestOptions,
  9152. };
  9153. },
  9154. }
  9155. };
  9156. /**
  9157. * AuditApi - functional programming interface
  9158. * @export
  9159. */
  9160. export const AuditApiFp = function(configuration?: Configuration) {
  9161. const localVarAxiosParamCreator = AuditApiAxiosParamCreator(configuration)
  9162. return {
  9163. /**
  9164. *
  9165. * @param {FileReportFixDto} fileReportFixDto
  9166. * @param {*} [options] Override http request option.
  9167. * @throws {RequiredError}
  9168. */
  9169. async fixAuditFiles(fileReportFixDto: FileReportFixDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  9170. const localVarAxiosArgs = await localVarAxiosParamCreator.fixAuditFiles(fileReportFixDto, options);
  9171. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9172. },
  9173. /**
  9174. *
  9175. * @param {EntityType} entityType
  9176. * @param {string} after
  9177. * @param {string} [userId]
  9178. * @param {*} [options] Override http request option.
  9179. * @throws {RequiredError}
  9180. */
  9181. async getAuditDeletes(entityType: EntityType, after: string, userId?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AuditDeletesResponseDto>> {
  9182. const localVarAxiosArgs = await localVarAxiosParamCreator.getAuditDeletes(entityType, after, userId, options);
  9183. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9184. },
  9185. /**
  9186. *
  9187. * @param {*} [options] Override http request option.
  9188. * @throws {RequiredError}
  9189. */
  9190. async getAuditFiles(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FileReportDto>> {
  9191. const localVarAxiosArgs = await localVarAxiosParamCreator.getAuditFiles(options);
  9192. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9193. },
  9194. /**
  9195. *
  9196. * @param {FileChecksumDto} fileChecksumDto
  9197. * @param {*} [options] Override http request option.
  9198. * @throws {RequiredError}
  9199. */
  9200. async getFileChecksums(fileChecksumDto: FileChecksumDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<FileChecksumResponseDto>>> {
  9201. const localVarAxiosArgs = await localVarAxiosParamCreator.getFileChecksums(fileChecksumDto, options);
  9202. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9203. },
  9204. }
  9205. };
  9206. /**
  9207. * AuditApi - factory interface
  9208. * @export
  9209. */
  9210. export const AuditApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  9211. const localVarFp = AuditApiFp(configuration)
  9212. return {
  9213. /**
  9214. *
  9215. * @param {AuditApiFixAuditFilesRequest} requestParameters Request parameters.
  9216. * @param {*} [options] Override http request option.
  9217. * @throws {RequiredError}
  9218. */
  9219. fixAuditFiles(requestParameters: AuditApiFixAuditFilesRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  9220. return localVarFp.fixAuditFiles(requestParameters.fileReportFixDto, options).then((request) => request(axios, basePath));
  9221. },
  9222. /**
  9223. *
  9224. * @param {AuditApiGetAuditDeletesRequest} requestParameters Request parameters.
  9225. * @param {*} [options] Override http request option.
  9226. * @throws {RequiredError}
  9227. */
  9228. getAuditDeletes(requestParameters: AuditApiGetAuditDeletesRequest, options?: AxiosRequestConfig): AxiosPromise<AuditDeletesResponseDto> {
  9229. return localVarFp.getAuditDeletes(requestParameters.entityType, requestParameters.after, requestParameters.userId, options).then((request) => request(axios, basePath));
  9230. },
  9231. /**
  9232. *
  9233. * @param {*} [options] Override http request option.
  9234. * @throws {RequiredError}
  9235. */
  9236. getAuditFiles(options?: AxiosRequestConfig): AxiosPromise<FileReportDto> {
  9237. return localVarFp.getAuditFiles(options).then((request) => request(axios, basePath));
  9238. },
  9239. /**
  9240. *
  9241. * @param {AuditApiGetFileChecksumsRequest} requestParameters Request parameters.
  9242. * @param {*} [options] Override http request option.
  9243. * @throws {RequiredError}
  9244. */
  9245. getFileChecksums(requestParameters: AuditApiGetFileChecksumsRequest, options?: AxiosRequestConfig): AxiosPromise<Array<FileChecksumResponseDto>> {
  9246. return localVarFp.getFileChecksums(requestParameters.fileChecksumDto, options).then((request) => request(axios, basePath));
  9247. },
  9248. };
  9249. };
  9250. /**
  9251. * Request parameters for fixAuditFiles operation in AuditApi.
  9252. * @export
  9253. * @interface AuditApiFixAuditFilesRequest
  9254. */
  9255. export interface AuditApiFixAuditFilesRequest {
  9256. /**
  9257. *
  9258. * @type {FileReportFixDto}
  9259. * @memberof AuditApiFixAuditFiles
  9260. */
  9261. readonly fileReportFixDto: FileReportFixDto
  9262. }
  9263. /**
  9264. * Request parameters for getAuditDeletes operation in AuditApi.
  9265. * @export
  9266. * @interface AuditApiGetAuditDeletesRequest
  9267. */
  9268. export interface AuditApiGetAuditDeletesRequest {
  9269. /**
  9270. *
  9271. * @type {EntityType}
  9272. * @memberof AuditApiGetAuditDeletes
  9273. */
  9274. readonly entityType: EntityType
  9275. /**
  9276. *
  9277. * @type {string}
  9278. * @memberof AuditApiGetAuditDeletes
  9279. */
  9280. readonly after: string
  9281. /**
  9282. *
  9283. * @type {string}
  9284. * @memberof AuditApiGetAuditDeletes
  9285. */
  9286. readonly userId?: string
  9287. }
  9288. /**
  9289. * Request parameters for getFileChecksums operation in AuditApi.
  9290. * @export
  9291. * @interface AuditApiGetFileChecksumsRequest
  9292. */
  9293. export interface AuditApiGetFileChecksumsRequest {
  9294. /**
  9295. *
  9296. * @type {FileChecksumDto}
  9297. * @memberof AuditApiGetFileChecksums
  9298. */
  9299. readonly fileChecksumDto: FileChecksumDto
  9300. }
  9301. /**
  9302. * AuditApi - object-oriented interface
  9303. * @export
  9304. * @class AuditApi
  9305. * @extends {BaseAPI}
  9306. */
  9307. export class AuditApi extends BaseAPI {
  9308. /**
  9309. *
  9310. * @param {AuditApiFixAuditFilesRequest} requestParameters Request parameters.
  9311. * @param {*} [options] Override http request option.
  9312. * @throws {RequiredError}
  9313. * @memberof AuditApi
  9314. */
  9315. public fixAuditFiles(requestParameters: AuditApiFixAuditFilesRequest, options?: AxiosRequestConfig) {
  9316. return AuditApiFp(this.configuration).fixAuditFiles(requestParameters.fileReportFixDto, options).then((request) => request(this.axios, this.basePath));
  9317. }
  9318. /**
  9319. *
  9320. * @param {AuditApiGetAuditDeletesRequest} requestParameters Request parameters.
  9321. * @param {*} [options] Override http request option.
  9322. * @throws {RequiredError}
  9323. * @memberof AuditApi
  9324. */
  9325. public getAuditDeletes(requestParameters: AuditApiGetAuditDeletesRequest, options?: AxiosRequestConfig) {
  9326. return AuditApiFp(this.configuration).getAuditDeletes(requestParameters.entityType, requestParameters.after, requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
  9327. }
  9328. /**
  9329. *
  9330. * @param {*} [options] Override http request option.
  9331. * @throws {RequiredError}
  9332. * @memberof AuditApi
  9333. */
  9334. public getAuditFiles(options?: AxiosRequestConfig) {
  9335. return AuditApiFp(this.configuration).getAuditFiles(options).then((request) => request(this.axios, this.basePath));
  9336. }
  9337. /**
  9338. *
  9339. * @param {AuditApiGetFileChecksumsRequest} requestParameters Request parameters.
  9340. * @param {*} [options] Override http request option.
  9341. * @throws {RequiredError}
  9342. * @memberof AuditApi
  9343. */
  9344. public getFileChecksums(requestParameters: AuditApiGetFileChecksumsRequest, options?: AxiosRequestConfig) {
  9345. return AuditApiFp(this.configuration).getFileChecksums(requestParameters.fileChecksumDto, options).then((request) => request(this.axios, this.basePath));
  9346. }
  9347. }
  9348. /**
  9349. * AuthenticationApi - axios parameter creator
  9350. * @export
  9351. */
  9352. export const AuthenticationApiAxiosParamCreator = function (configuration?: Configuration) {
  9353. return {
  9354. /**
  9355. *
  9356. * @param {ChangePasswordDto} changePasswordDto
  9357. * @param {*} [options] Override http request option.
  9358. * @throws {RequiredError}
  9359. */
  9360. changePassword: async (changePasswordDto: ChangePasswordDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9361. // verify required parameter 'changePasswordDto' is not null or undefined
  9362. assertParamExists('changePassword', 'changePasswordDto', changePasswordDto)
  9363. const localVarPath = `/auth/change-password`;
  9364. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9365. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9366. let baseOptions;
  9367. if (configuration) {
  9368. baseOptions = configuration.baseOptions;
  9369. }
  9370. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  9371. const localVarHeaderParameter = {} as any;
  9372. const localVarQueryParameter = {} as any;
  9373. // authentication cookie required
  9374. // authentication api_key required
  9375. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  9376. // authentication bearer required
  9377. // http bearer authentication required
  9378. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  9379. localVarHeaderParameter['Content-Type'] = 'application/json';
  9380. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9381. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9382. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9383. localVarRequestOptions.data = serializeDataIfNeeded(changePasswordDto, localVarRequestOptions, configuration)
  9384. return {
  9385. url: toPathString(localVarUrlObj),
  9386. options: localVarRequestOptions,
  9387. };
  9388. },
  9389. /**
  9390. *
  9391. * @param {*} [options] Override http request option.
  9392. * @throws {RequiredError}
  9393. */
  9394. getAuthDevices: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9395. const localVarPath = `/auth/devices`;
  9396. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9397. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9398. let baseOptions;
  9399. if (configuration) {
  9400. baseOptions = configuration.baseOptions;
  9401. }
  9402. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  9403. const localVarHeaderParameter = {} as any;
  9404. const localVarQueryParameter = {} as any;
  9405. // authentication cookie required
  9406. // authentication api_key required
  9407. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  9408. // authentication bearer required
  9409. // http bearer authentication required
  9410. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  9411. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9412. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9413. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9414. return {
  9415. url: toPathString(localVarUrlObj),
  9416. options: localVarRequestOptions,
  9417. };
  9418. },
  9419. /**
  9420. *
  9421. * @param {LoginCredentialDto} loginCredentialDto
  9422. * @param {*} [options] Override http request option.
  9423. * @throws {RequiredError}
  9424. */
  9425. login: async (loginCredentialDto: LoginCredentialDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9426. // verify required parameter 'loginCredentialDto' is not null or undefined
  9427. assertParamExists('login', 'loginCredentialDto', loginCredentialDto)
  9428. const localVarPath = `/auth/login`;
  9429. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9430. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9431. let baseOptions;
  9432. if (configuration) {
  9433. baseOptions = configuration.baseOptions;
  9434. }
  9435. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  9436. const localVarHeaderParameter = {} as any;
  9437. const localVarQueryParameter = {} as any;
  9438. localVarHeaderParameter['Content-Type'] = 'application/json';
  9439. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9440. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9441. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9442. localVarRequestOptions.data = serializeDataIfNeeded(loginCredentialDto, localVarRequestOptions, configuration)
  9443. return {
  9444. url: toPathString(localVarUrlObj),
  9445. options: localVarRequestOptions,
  9446. };
  9447. },
  9448. /**
  9449. *
  9450. * @param {*} [options] Override http request option.
  9451. * @throws {RequiredError}
  9452. */
  9453. logout: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9454. const localVarPath = `/auth/logout`;
  9455. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9456. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9457. let baseOptions;
  9458. if (configuration) {
  9459. baseOptions = configuration.baseOptions;
  9460. }
  9461. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  9462. const localVarHeaderParameter = {} as any;
  9463. const localVarQueryParameter = {} as any;
  9464. // authentication cookie required
  9465. // authentication api_key required
  9466. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  9467. // authentication bearer required
  9468. // http bearer authentication required
  9469. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  9470. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9471. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9472. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9473. return {
  9474. url: toPathString(localVarUrlObj),
  9475. options: localVarRequestOptions,
  9476. };
  9477. },
  9478. /**
  9479. *
  9480. * @param {string} id
  9481. * @param {*} [options] Override http request option.
  9482. * @throws {RequiredError}
  9483. */
  9484. logoutAuthDevice: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9485. // verify required parameter 'id' is not null or undefined
  9486. assertParamExists('logoutAuthDevice', 'id', id)
  9487. const localVarPath = `/auth/devices/{id}`
  9488. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  9489. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9490. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9491. let baseOptions;
  9492. if (configuration) {
  9493. baseOptions = configuration.baseOptions;
  9494. }
  9495. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  9496. const localVarHeaderParameter = {} as any;
  9497. const localVarQueryParameter = {} as any;
  9498. // authentication cookie required
  9499. // authentication api_key required
  9500. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  9501. // authentication bearer required
  9502. // http bearer authentication required
  9503. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  9504. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9505. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9506. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9507. return {
  9508. url: toPathString(localVarUrlObj),
  9509. options: localVarRequestOptions,
  9510. };
  9511. },
  9512. /**
  9513. *
  9514. * @param {*} [options] Override http request option.
  9515. * @throws {RequiredError}
  9516. */
  9517. logoutAuthDevices: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9518. const localVarPath = `/auth/devices`;
  9519. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9520. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9521. let baseOptions;
  9522. if (configuration) {
  9523. baseOptions = configuration.baseOptions;
  9524. }
  9525. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  9526. const localVarHeaderParameter = {} as any;
  9527. const localVarQueryParameter = {} as any;
  9528. // authentication cookie required
  9529. // authentication api_key required
  9530. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  9531. // authentication bearer required
  9532. // http bearer authentication required
  9533. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  9534. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9535. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9536. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9537. return {
  9538. url: toPathString(localVarUrlObj),
  9539. options: localVarRequestOptions,
  9540. };
  9541. },
  9542. /**
  9543. *
  9544. * @param {SignUpDto} signUpDto
  9545. * @param {*} [options] Override http request option.
  9546. * @throws {RequiredError}
  9547. */
  9548. signUpAdmin: async (signUpDto: SignUpDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9549. // verify required parameter 'signUpDto' is not null or undefined
  9550. assertParamExists('signUpAdmin', 'signUpDto', signUpDto)
  9551. const localVarPath = `/auth/admin-sign-up`;
  9552. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9553. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9554. let baseOptions;
  9555. if (configuration) {
  9556. baseOptions = configuration.baseOptions;
  9557. }
  9558. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  9559. const localVarHeaderParameter = {} as any;
  9560. const localVarQueryParameter = {} as any;
  9561. localVarHeaderParameter['Content-Type'] = 'application/json';
  9562. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9563. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9564. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9565. localVarRequestOptions.data = serializeDataIfNeeded(signUpDto, localVarRequestOptions, configuration)
  9566. return {
  9567. url: toPathString(localVarUrlObj),
  9568. options: localVarRequestOptions,
  9569. };
  9570. },
  9571. /**
  9572. *
  9573. * @param {*} [options] Override http request option.
  9574. * @throws {RequiredError}
  9575. */
  9576. validateAccessToken: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9577. const localVarPath = `/auth/validateToken`;
  9578. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9579. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9580. let baseOptions;
  9581. if (configuration) {
  9582. baseOptions = configuration.baseOptions;
  9583. }
  9584. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  9585. const localVarHeaderParameter = {} as any;
  9586. const localVarQueryParameter = {} as any;
  9587. // authentication cookie required
  9588. // authentication api_key required
  9589. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  9590. // authentication bearer required
  9591. // http bearer authentication required
  9592. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  9593. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9594. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9595. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9596. return {
  9597. url: toPathString(localVarUrlObj),
  9598. options: localVarRequestOptions,
  9599. };
  9600. },
  9601. }
  9602. };
  9603. /**
  9604. * AuthenticationApi - functional programming interface
  9605. * @export
  9606. */
  9607. export const AuthenticationApiFp = function(configuration?: Configuration) {
  9608. const localVarAxiosParamCreator = AuthenticationApiAxiosParamCreator(configuration)
  9609. return {
  9610. /**
  9611. *
  9612. * @param {ChangePasswordDto} changePasswordDto
  9613. * @param {*} [options] Override http request option.
  9614. * @throws {RequiredError}
  9615. */
  9616. async changePassword(changePasswordDto: ChangePasswordDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  9617. const localVarAxiosArgs = await localVarAxiosParamCreator.changePassword(changePasswordDto, options);
  9618. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9619. },
  9620. /**
  9621. *
  9622. * @param {*} [options] Override http request option.
  9623. * @throws {RequiredError}
  9624. */
  9625. async getAuthDevices(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AuthDeviceResponseDto>>> {
  9626. const localVarAxiosArgs = await localVarAxiosParamCreator.getAuthDevices(options);
  9627. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9628. },
  9629. /**
  9630. *
  9631. * @param {LoginCredentialDto} loginCredentialDto
  9632. * @param {*} [options] Override http request option.
  9633. * @throws {RequiredError}
  9634. */
  9635. async login(loginCredentialDto: LoginCredentialDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LoginResponseDto>> {
  9636. const localVarAxiosArgs = await localVarAxiosParamCreator.login(loginCredentialDto, options);
  9637. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9638. },
  9639. /**
  9640. *
  9641. * @param {*} [options] Override http request option.
  9642. * @throws {RequiredError}
  9643. */
  9644. async logout(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LogoutResponseDto>> {
  9645. const localVarAxiosArgs = await localVarAxiosParamCreator.logout(options);
  9646. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9647. },
  9648. /**
  9649. *
  9650. * @param {string} id
  9651. * @param {*} [options] Override http request option.
  9652. * @throws {RequiredError}
  9653. */
  9654. async logoutAuthDevice(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  9655. const localVarAxiosArgs = await localVarAxiosParamCreator.logoutAuthDevice(id, options);
  9656. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9657. },
  9658. /**
  9659. *
  9660. * @param {*} [options] Override http request option.
  9661. * @throws {RequiredError}
  9662. */
  9663. async logoutAuthDevices(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  9664. const localVarAxiosArgs = await localVarAxiosParamCreator.logoutAuthDevices(options);
  9665. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9666. },
  9667. /**
  9668. *
  9669. * @param {SignUpDto} signUpDto
  9670. * @param {*} [options] Override http request option.
  9671. * @throws {RequiredError}
  9672. */
  9673. async signUpAdmin(signUpDto: SignUpDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  9674. const localVarAxiosArgs = await localVarAxiosParamCreator.signUpAdmin(signUpDto, options);
  9675. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9676. },
  9677. /**
  9678. *
  9679. * @param {*} [options] Override http request option.
  9680. * @throws {RequiredError}
  9681. */
  9682. async validateAccessToken(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ValidateAccessTokenResponseDto>> {
  9683. const localVarAxiosArgs = await localVarAxiosParamCreator.validateAccessToken(options);
  9684. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9685. },
  9686. }
  9687. };
  9688. /**
  9689. * AuthenticationApi - factory interface
  9690. * @export
  9691. */
  9692. export const AuthenticationApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  9693. const localVarFp = AuthenticationApiFp(configuration)
  9694. return {
  9695. /**
  9696. *
  9697. * @param {AuthenticationApiChangePasswordRequest} requestParameters Request parameters.
  9698. * @param {*} [options] Override http request option.
  9699. * @throws {RequiredError}
  9700. */
  9701. changePassword(requestParameters: AuthenticationApiChangePasswordRequest, options?: AxiosRequestConfig): AxiosPromise<UserResponseDto> {
  9702. return localVarFp.changePassword(requestParameters.changePasswordDto, options).then((request) => request(axios, basePath));
  9703. },
  9704. /**
  9705. *
  9706. * @param {*} [options] Override http request option.
  9707. * @throws {RequiredError}
  9708. */
  9709. getAuthDevices(options?: AxiosRequestConfig): AxiosPromise<Array<AuthDeviceResponseDto>> {
  9710. return localVarFp.getAuthDevices(options).then((request) => request(axios, basePath));
  9711. },
  9712. /**
  9713. *
  9714. * @param {AuthenticationApiLoginRequest} requestParameters Request parameters.
  9715. * @param {*} [options] Override http request option.
  9716. * @throws {RequiredError}
  9717. */
  9718. login(requestParameters: AuthenticationApiLoginRequest, options?: AxiosRequestConfig): AxiosPromise<LoginResponseDto> {
  9719. return localVarFp.login(requestParameters.loginCredentialDto, options).then((request) => request(axios, basePath));
  9720. },
  9721. /**
  9722. *
  9723. * @param {*} [options] Override http request option.
  9724. * @throws {RequiredError}
  9725. */
  9726. logout(options?: AxiosRequestConfig): AxiosPromise<LogoutResponseDto> {
  9727. return localVarFp.logout(options).then((request) => request(axios, basePath));
  9728. },
  9729. /**
  9730. *
  9731. * @param {AuthenticationApiLogoutAuthDeviceRequest} requestParameters Request parameters.
  9732. * @param {*} [options] Override http request option.
  9733. * @throws {RequiredError}
  9734. */
  9735. logoutAuthDevice(requestParameters: AuthenticationApiLogoutAuthDeviceRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  9736. return localVarFp.logoutAuthDevice(requestParameters.id, options).then((request) => request(axios, basePath));
  9737. },
  9738. /**
  9739. *
  9740. * @param {*} [options] Override http request option.
  9741. * @throws {RequiredError}
  9742. */
  9743. logoutAuthDevices(options?: AxiosRequestConfig): AxiosPromise<void> {
  9744. return localVarFp.logoutAuthDevices(options).then((request) => request(axios, basePath));
  9745. },
  9746. /**
  9747. *
  9748. * @param {AuthenticationApiSignUpAdminRequest} requestParameters Request parameters.
  9749. * @param {*} [options] Override http request option.
  9750. * @throws {RequiredError}
  9751. */
  9752. signUpAdmin(requestParameters: AuthenticationApiSignUpAdminRequest, options?: AxiosRequestConfig): AxiosPromise<UserResponseDto> {
  9753. return localVarFp.signUpAdmin(requestParameters.signUpDto, options).then((request) => request(axios, basePath));
  9754. },
  9755. /**
  9756. *
  9757. * @param {*} [options] Override http request option.
  9758. * @throws {RequiredError}
  9759. */
  9760. validateAccessToken(options?: AxiosRequestConfig): AxiosPromise<ValidateAccessTokenResponseDto> {
  9761. return localVarFp.validateAccessToken(options).then((request) => request(axios, basePath));
  9762. },
  9763. };
  9764. };
  9765. /**
  9766. * Request parameters for changePassword operation in AuthenticationApi.
  9767. * @export
  9768. * @interface AuthenticationApiChangePasswordRequest
  9769. */
  9770. export interface AuthenticationApiChangePasswordRequest {
  9771. /**
  9772. *
  9773. * @type {ChangePasswordDto}
  9774. * @memberof AuthenticationApiChangePassword
  9775. */
  9776. readonly changePasswordDto: ChangePasswordDto
  9777. }
  9778. /**
  9779. * Request parameters for login operation in AuthenticationApi.
  9780. * @export
  9781. * @interface AuthenticationApiLoginRequest
  9782. */
  9783. export interface AuthenticationApiLoginRequest {
  9784. /**
  9785. *
  9786. * @type {LoginCredentialDto}
  9787. * @memberof AuthenticationApiLogin
  9788. */
  9789. readonly loginCredentialDto: LoginCredentialDto
  9790. }
  9791. /**
  9792. * Request parameters for logoutAuthDevice operation in AuthenticationApi.
  9793. * @export
  9794. * @interface AuthenticationApiLogoutAuthDeviceRequest
  9795. */
  9796. export interface AuthenticationApiLogoutAuthDeviceRequest {
  9797. /**
  9798. *
  9799. * @type {string}
  9800. * @memberof AuthenticationApiLogoutAuthDevice
  9801. */
  9802. readonly id: string
  9803. }
  9804. /**
  9805. * Request parameters for signUpAdmin operation in AuthenticationApi.
  9806. * @export
  9807. * @interface AuthenticationApiSignUpAdminRequest
  9808. */
  9809. export interface AuthenticationApiSignUpAdminRequest {
  9810. /**
  9811. *
  9812. * @type {SignUpDto}
  9813. * @memberof AuthenticationApiSignUpAdmin
  9814. */
  9815. readonly signUpDto: SignUpDto
  9816. }
  9817. /**
  9818. * AuthenticationApi - object-oriented interface
  9819. * @export
  9820. * @class AuthenticationApi
  9821. * @extends {BaseAPI}
  9822. */
  9823. export class AuthenticationApi extends BaseAPI {
  9824. /**
  9825. *
  9826. * @param {AuthenticationApiChangePasswordRequest} requestParameters Request parameters.
  9827. * @param {*} [options] Override http request option.
  9828. * @throws {RequiredError}
  9829. * @memberof AuthenticationApi
  9830. */
  9831. public changePassword(requestParameters: AuthenticationApiChangePasswordRequest, options?: AxiosRequestConfig) {
  9832. return AuthenticationApiFp(this.configuration).changePassword(requestParameters.changePasswordDto, options).then((request) => request(this.axios, this.basePath));
  9833. }
  9834. /**
  9835. *
  9836. * @param {*} [options] Override http request option.
  9837. * @throws {RequiredError}
  9838. * @memberof AuthenticationApi
  9839. */
  9840. public getAuthDevices(options?: AxiosRequestConfig) {
  9841. return AuthenticationApiFp(this.configuration).getAuthDevices(options).then((request) => request(this.axios, this.basePath));
  9842. }
  9843. /**
  9844. *
  9845. * @param {AuthenticationApiLoginRequest} requestParameters Request parameters.
  9846. * @param {*} [options] Override http request option.
  9847. * @throws {RequiredError}
  9848. * @memberof AuthenticationApi
  9849. */
  9850. public login(requestParameters: AuthenticationApiLoginRequest, options?: AxiosRequestConfig) {
  9851. return AuthenticationApiFp(this.configuration).login(requestParameters.loginCredentialDto, options).then((request) => request(this.axios, this.basePath));
  9852. }
  9853. /**
  9854. *
  9855. * @param {*} [options] Override http request option.
  9856. * @throws {RequiredError}
  9857. * @memberof AuthenticationApi
  9858. */
  9859. public logout(options?: AxiosRequestConfig) {
  9860. return AuthenticationApiFp(this.configuration).logout(options).then((request) => request(this.axios, this.basePath));
  9861. }
  9862. /**
  9863. *
  9864. * @param {AuthenticationApiLogoutAuthDeviceRequest} requestParameters Request parameters.
  9865. * @param {*} [options] Override http request option.
  9866. * @throws {RequiredError}
  9867. * @memberof AuthenticationApi
  9868. */
  9869. public logoutAuthDevice(requestParameters: AuthenticationApiLogoutAuthDeviceRequest, options?: AxiosRequestConfig) {
  9870. return AuthenticationApiFp(this.configuration).logoutAuthDevice(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  9871. }
  9872. /**
  9873. *
  9874. * @param {*} [options] Override http request option.
  9875. * @throws {RequiredError}
  9876. * @memberof AuthenticationApi
  9877. */
  9878. public logoutAuthDevices(options?: AxiosRequestConfig) {
  9879. return AuthenticationApiFp(this.configuration).logoutAuthDevices(options).then((request) => request(this.axios, this.basePath));
  9880. }
  9881. /**
  9882. *
  9883. * @param {AuthenticationApiSignUpAdminRequest} requestParameters Request parameters.
  9884. * @param {*} [options] Override http request option.
  9885. * @throws {RequiredError}
  9886. * @memberof AuthenticationApi
  9887. */
  9888. public signUpAdmin(requestParameters: AuthenticationApiSignUpAdminRequest, options?: AxiosRequestConfig) {
  9889. return AuthenticationApiFp(this.configuration).signUpAdmin(requestParameters.signUpDto, options).then((request) => request(this.axios, this.basePath));
  9890. }
  9891. /**
  9892. *
  9893. * @param {*} [options] Override http request option.
  9894. * @throws {RequiredError}
  9895. * @memberof AuthenticationApi
  9896. */
  9897. public validateAccessToken(options?: AxiosRequestConfig) {
  9898. return AuthenticationApiFp(this.configuration).validateAccessToken(options).then((request) => request(this.axios, this.basePath));
  9899. }
  9900. }
  9901. /**
  9902. * JobApi - axios parameter creator
  9903. * @export
  9904. */
  9905. export const JobApiAxiosParamCreator = function (configuration?: Configuration) {
  9906. return {
  9907. /**
  9908. *
  9909. * @param {*} [options] Override http request option.
  9910. * @throws {RequiredError}
  9911. */
  9912. getAllJobsStatus: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9913. const localVarPath = `/jobs`;
  9914. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9915. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9916. let baseOptions;
  9917. if (configuration) {
  9918. baseOptions = configuration.baseOptions;
  9919. }
  9920. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  9921. const localVarHeaderParameter = {} as any;
  9922. const localVarQueryParameter = {} as any;
  9923. // authentication cookie required
  9924. // authentication api_key required
  9925. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  9926. // authentication bearer required
  9927. // http bearer authentication required
  9928. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  9929. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9930. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9931. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9932. return {
  9933. url: toPathString(localVarUrlObj),
  9934. options: localVarRequestOptions,
  9935. };
  9936. },
  9937. /**
  9938. *
  9939. * @param {JobName} id
  9940. * @param {JobCommandDto} jobCommandDto
  9941. * @param {*} [options] Override http request option.
  9942. * @throws {RequiredError}
  9943. */
  9944. sendJobCommand: async (id: JobName, jobCommandDto: JobCommandDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9945. // verify required parameter 'id' is not null or undefined
  9946. assertParamExists('sendJobCommand', 'id', id)
  9947. // verify required parameter 'jobCommandDto' is not null or undefined
  9948. assertParamExists('sendJobCommand', 'jobCommandDto', jobCommandDto)
  9949. const localVarPath = `/jobs/{id}`
  9950. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  9951. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9952. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9953. let baseOptions;
  9954. if (configuration) {
  9955. baseOptions = configuration.baseOptions;
  9956. }
  9957. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  9958. const localVarHeaderParameter = {} as any;
  9959. const localVarQueryParameter = {} as any;
  9960. // authentication cookie required
  9961. // authentication api_key required
  9962. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  9963. // authentication bearer required
  9964. // http bearer authentication required
  9965. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  9966. localVarHeaderParameter['Content-Type'] = 'application/json';
  9967. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9968. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9969. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9970. localVarRequestOptions.data = serializeDataIfNeeded(jobCommandDto, localVarRequestOptions, configuration)
  9971. return {
  9972. url: toPathString(localVarUrlObj),
  9973. options: localVarRequestOptions,
  9974. };
  9975. },
  9976. }
  9977. };
  9978. /**
  9979. * JobApi - functional programming interface
  9980. * @export
  9981. */
  9982. export const JobApiFp = function(configuration?: Configuration) {
  9983. const localVarAxiosParamCreator = JobApiAxiosParamCreator(configuration)
  9984. return {
  9985. /**
  9986. *
  9987. * @param {*} [options] Override http request option.
  9988. * @throws {RequiredError}
  9989. */
  9990. async getAllJobsStatus(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AllJobStatusResponseDto>> {
  9991. const localVarAxiosArgs = await localVarAxiosParamCreator.getAllJobsStatus(options);
  9992. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9993. },
  9994. /**
  9995. *
  9996. * @param {JobName} id
  9997. * @param {JobCommandDto} jobCommandDto
  9998. * @param {*} [options] Override http request option.
  9999. * @throws {RequiredError}
  10000. */
  10001. async sendJobCommand(id: JobName, jobCommandDto: JobCommandDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<JobStatusDto>> {
  10002. const localVarAxiosArgs = await localVarAxiosParamCreator.sendJobCommand(id, jobCommandDto, options);
  10003. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10004. },
  10005. }
  10006. };
  10007. /**
  10008. * JobApi - factory interface
  10009. * @export
  10010. */
  10011. export const JobApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  10012. const localVarFp = JobApiFp(configuration)
  10013. return {
  10014. /**
  10015. *
  10016. * @param {*} [options] Override http request option.
  10017. * @throws {RequiredError}
  10018. */
  10019. getAllJobsStatus(options?: AxiosRequestConfig): AxiosPromise<AllJobStatusResponseDto> {
  10020. return localVarFp.getAllJobsStatus(options).then((request) => request(axios, basePath));
  10021. },
  10022. /**
  10023. *
  10024. * @param {JobApiSendJobCommandRequest} requestParameters Request parameters.
  10025. * @param {*} [options] Override http request option.
  10026. * @throws {RequiredError}
  10027. */
  10028. sendJobCommand(requestParameters: JobApiSendJobCommandRequest, options?: AxiosRequestConfig): AxiosPromise<JobStatusDto> {
  10029. return localVarFp.sendJobCommand(requestParameters.id, requestParameters.jobCommandDto, options).then((request) => request(axios, basePath));
  10030. },
  10031. };
  10032. };
  10033. /**
  10034. * Request parameters for sendJobCommand operation in JobApi.
  10035. * @export
  10036. * @interface JobApiSendJobCommandRequest
  10037. */
  10038. export interface JobApiSendJobCommandRequest {
  10039. /**
  10040. *
  10041. * @type {JobName}
  10042. * @memberof JobApiSendJobCommand
  10043. */
  10044. readonly id: JobName
  10045. /**
  10046. *
  10047. * @type {JobCommandDto}
  10048. * @memberof JobApiSendJobCommand
  10049. */
  10050. readonly jobCommandDto: JobCommandDto
  10051. }
  10052. /**
  10053. * JobApi - object-oriented interface
  10054. * @export
  10055. * @class JobApi
  10056. * @extends {BaseAPI}
  10057. */
  10058. export class JobApi extends BaseAPI {
  10059. /**
  10060. *
  10061. * @param {*} [options] Override http request option.
  10062. * @throws {RequiredError}
  10063. * @memberof JobApi
  10064. */
  10065. public getAllJobsStatus(options?: AxiosRequestConfig) {
  10066. return JobApiFp(this.configuration).getAllJobsStatus(options).then((request) => request(this.axios, this.basePath));
  10067. }
  10068. /**
  10069. *
  10070. * @param {JobApiSendJobCommandRequest} requestParameters Request parameters.
  10071. * @param {*} [options] Override http request option.
  10072. * @throws {RequiredError}
  10073. * @memberof JobApi
  10074. */
  10075. public sendJobCommand(requestParameters: JobApiSendJobCommandRequest, options?: AxiosRequestConfig) {
  10076. return JobApiFp(this.configuration).sendJobCommand(requestParameters.id, requestParameters.jobCommandDto, options).then((request) => request(this.axios, this.basePath));
  10077. }
  10078. }
  10079. /**
  10080. * LibraryApi - axios parameter creator
  10081. * @export
  10082. */
  10083. export const LibraryApiAxiosParamCreator = function (configuration?: Configuration) {
  10084. return {
  10085. /**
  10086. *
  10087. * @param {CreateLibraryDto} createLibraryDto
  10088. * @param {*} [options] Override http request option.
  10089. * @throws {RequiredError}
  10090. */
  10091. createLibrary: async (createLibraryDto: CreateLibraryDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10092. // verify required parameter 'createLibraryDto' is not null or undefined
  10093. assertParamExists('createLibrary', 'createLibraryDto', createLibraryDto)
  10094. const localVarPath = `/library`;
  10095. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10096. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10097. let baseOptions;
  10098. if (configuration) {
  10099. baseOptions = configuration.baseOptions;
  10100. }
  10101. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  10102. const localVarHeaderParameter = {} as any;
  10103. const localVarQueryParameter = {} as any;
  10104. // authentication cookie required
  10105. // authentication api_key required
  10106. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10107. // authentication bearer required
  10108. // http bearer authentication required
  10109. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10110. localVarHeaderParameter['Content-Type'] = 'application/json';
  10111. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10112. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10113. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10114. localVarRequestOptions.data = serializeDataIfNeeded(createLibraryDto, localVarRequestOptions, configuration)
  10115. return {
  10116. url: toPathString(localVarUrlObj),
  10117. options: localVarRequestOptions,
  10118. };
  10119. },
  10120. /**
  10121. *
  10122. * @param {string} id
  10123. * @param {*} [options] Override http request option.
  10124. * @throws {RequiredError}
  10125. */
  10126. deleteLibrary: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10127. // verify required parameter 'id' is not null or undefined
  10128. assertParamExists('deleteLibrary', 'id', id)
  10129. const localVarPath = `/library/{id}`
  10130. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  10131. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10132. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10133. let baseOptions;
  10134. if (configuration) {
  10135. baseOptions = configuration.baseOptions;
  10136. }
  10137. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  10138. const localVarHeaderParameter = {} as any;
  10139. const localVarQueryParameter = {} as any;
  10140. // authentication cookie required
  10141. // authentication api_key required
  10142. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10143. // authentication bearer required
  10144. // http bearer authentication required
  10145. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10146. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10147. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10148. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10149. return {
  10150. url: toPathString(localVarUrlObj),
  10151. options: localVarRequestOptions,
  10152. };
  10153. },
  10154. /**
  10155. *
  10156. * @param {*} [options] Override http request option.
  10157. * @throws {RequiredError}
  10158. */
  10159. getLibraries: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10160. const localVarPath = `/library`;
  10161. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10162. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10163. let baseOptions;
  10164. if (configuration) {
  10165. baseOptions = configuration.baseOptions;
  10166. }
  10167. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  10168. const localVarHeaderParameter = {} as any;
  10169. const localVarQueryParameter = {} as any;
  10170. // authentication cookie required
  10171. // authentication api_key required
  10172. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10173. // authentication bearer required
  10174. // http bearer authentication required
  10175. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10176. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10177. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10178. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10179. return {
  10180. url: toPathString(localVarUrlObj),
  10181. options: localVarRequestOptions,
  10182. };
  10183. },
  10184. /**
  10185. *
  10186. * @param {string} id
  10187. * @param {*} [options] Override http request option.
  10188. * @throws {RequiredError}
  10189. */
  10190. getLibraryInfo: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10191. // verify required parameter 'id' is not null or undefined
  10192. assertParamExists('getLibraryInfo', 'id', id)
  10193. const localVarPath = `/library/{id}`
  10194. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  10195. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10196. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10197. let baseOptions;
  10198. if (configuration) {
  10199. baseOptions = configuration.baseOptions;
  10200. }
  10201. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  10202. const localVarHeaderParameter = {} as any;
  10203. const localVarQueryParameter = {} as any;
  10204. // authentication cookie required
  10205. // authentication api_key required
  10206. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10207. // authentication bearer required
  10208. // http bearer authentication required
  10209. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10210. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10211. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10212. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10213. return {
  10214. url: toPathString(localVarUrlObj),
  10215. options: localVarRequestOptions,
  10216. };
  10217. },
  10218. /**
  10219. *
  10220. * @param {string} id
  10221. * @param {*} [options] Override http request option.
  10222. * @throws {RequiredError}
  10223. */
  10224. getLibraryStatistics: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10225. // verify required parameter 'id' is not null or undefined
  10226. assertParamExists('getLibraryStatistics', 'id', id)
  10227. const localVarPath = `/library/{id}/statistics`
  10228. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  10229. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10230. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10231. let baseOptions;
  10232. if (configuration) {
  10233. baseOptions = configuration.baseOptions;
  10234. }
  10235. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  10236. const localVarHeaderParameter = {} as any;
  10237. const localVarQueryParameter = {} as any;
  10238. // authentication cookie required
  10239. // authentication api_key required
  10240. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10241. // authentication bearer required
  10242. // http bearer authentication required
  10243. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10244. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10245. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10246. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10247. return {
  10248. url: toPathString(localVarUrlObj),
  10249. options: localVarRequestOptions,
  10250. };
  10251. },
  10252. /**
  10253. *
  10254. * @param {string} id
  10255. * @param {*} [options] Override http request option.
  10256. * @throws {RequiredError}
  10257. */
  10258. removeOfflineFiles: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10259. // verify required parameter 'id' is not null or undefined
  10260. assertParamExists('removeOfflineFiles', 'id', id)
  10261. const localVarPath = `/library/{id}/removeOffline`
  10262. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  10263. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10264. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10265. let baseOptions;
  10266. if (configuration) {
  10267. baseOptions = configuration.baseOptions;
  10268. }
  10269. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  10270. const localVarHeaderParameter = {} as any;
  10271. const localVarQueryParameter = {} as any;
  10272. // authentication cookie required
  10273. // authentication api_key required
  10274. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10275. // authentication bearer required
  10276. // http bearer authentication required
  10277. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10278. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10279. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10280. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10281. return {
  10282. url: toPathString(localVarUrlObj),
  10283. options: localVarRequestOptions,
  10284. };
  10285. },
  10286. /**
  10287. *
  10288. * @param {string} id
  10289. * @param {ScanLibraryDto} scanLibraryDto
  10290. * @param {*} [options] Override http request option.
  10291. * @throws {RequiredError}
  10292. */
  10293. scanLibrary: async (id: string, scanLibraryDto: ScanLibraryDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10294. // verify required parameter 'id' is not null or undefined
  10295. assertParamExists('scanLibrary', 'id', id)
  10296. // verify required parameter 'scanLibraryDto' is not null or undefined
  10297. assertParamExists('scanLibrary', 'scanLibraryDto', scanLibraryDto)
  10298. const localVarPath = `/library/{id}/scan`
  10299. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  10300. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10301. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10302. let baseOptions;
  10303. if (configuration) {
  10304. baseOptions = configuration.baseOptions;
  10305. }
  10306. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  10307. const localVarHeaderParameter = {} as any;
  10308. const localVarQueryParameter = {} as any;
  10309. // authentication cookie required
  10310. // authentication api_key required
  10311. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10312. // authentication bearer required
  10313. // http bearer authentication required
  10314. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10315. localVarHeaderParameter['Content-Type'] = 'application/json';
  10316. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10317. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10318. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10319. localVarRequestOptions.data = serializeDataIfNeeded(scanLibraryDto, localVarRequestOptions, configuration)
  10320. return {
  10321. url: toPathString(localVarUrlObj),
  10322. options: localVarRequestOptions,
  10323. };
  10324. },
  10325. /**
  10326. *
  10327. * @param {string} id
  10328. * @param {UpdateLibraryDto} updateLibraryDto
  10329. * @param {*} [options] Override http request option.
  10330. * @throws {RequiredError}
  10331. */
  10332. updateLibrary: async (id: string, updateLibraryDto: UpdateLibraryDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10333. // verify required parameter 'id' is not null or undefined
  10334. assertParamExists('updateLibrary', 'id', id)
  10335. // verify required parameter 'updateLibraryDto' is not null or undefined
  10336. assertParamExists('updateLibrary', 'updateLibraryDto', updateLibraryDto)
  10337. const localVarPath = `/library/{id}`
  10338. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  10339. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10340. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10341. let baseOptions;
  10342. if (configuration) {
  10343. baseOptions = configuration.baseOptions;
  10344. }
  10345. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  10346. const localVarHeaderParameter = {} as any;
  10347. const localVarQueryParameter = {} as any;
  10348. // authentication cookie required
  10349. // authentication api_key required
  10350. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10351. // authentication bearer required
  10352. // http bearer authentication required
  10353. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10354. localVarHeaderParameter['Content-Type'] = 'application/json';
  10355. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10356. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10357. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10358. localVarRequestOptions.data = serializeDataIfNeeded(updateLibraryDto, localVarRequestOptions, configuration)
  10359. return {
  10360. url: toPathString(localVarUrlObj),
  10361. options: localVarRequestOptions,
  10362. };
  10363. },
  10364. }
  10365. };
  10366. /**
  10367. * LibraryApi - functional programming interface
  10368. * @export
  10369. */
  10370. export const LibraryApiFp = function(configuration?: Configuration) {
  10371. const localVarAxiosParamCreator = LibraryApiAxiosParamCreator(configuration)
  10372. return {
  10373. /**
  10374. *
  10375. * @param {CreateLibraryDto} createLibraryDto
  10376. * @param {*} [options] Override http request option.
  10377. * @throws {RequiredError}
  10378. */
  10379. async createLibrary(createLibraryDto: CreateLibraryDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LibraryResponseDto>> {
  10380. const localVarAxiosArgs = await localVarAxiosParamCreator.createLibrary(createLibraryDto, options);
  10381. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10382. },
  10383. /**
  10384. *
  10385. * @param {string} id
  10386. * @param {*} [options] Override http request option.
  10387. * @throws {RequiredError}
  10388. */
  10389. async deleteLibrary(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  10390. const localVarAxiosArgs = await localVarAxiosParamCreator.deleteLibrary(id, options);
  10391. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10392. },
  10393. /**
  10394. *
  10395. * @param {*} [options] Override http request option.
  10396. * @throws {RequiredError}
  10397. */
  10398. async getLibraries(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<LibraryResponseDto>>> {
  10399. const localVarAxiosArgs = await localVarAxiosParamCreator.getLibraries(options);
  10400. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10401. },
  10402. /**
  10403. *
  10404. * @param {string} id
  10405. * @param {*} [options] Override http request option.
  10406. * @throws {RequiredError}
  10407. */
  10408. async getLibraryInfo(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LibraryResponseDto>> {
  10409. const localVarAxiosArgs = await localVarAxiosParamCreator.getLibraryInfo(id, options);
  10410. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10411. },
  10412. /**
  10413. *
  10414. * @param {string} id
  10415. * @param {*} [options] Override http request option.
  10416. * @throws {RequiredError}
  10417. */
  10418. async getLibraryStatistics(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LibraryStatsResponseDto>> {
  10419. const localVarAxiosArgs = await localVarAxiosParamCreator.getLibraryStatistics(id, options);
  10420. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10421. },
  10422. /**
  10423. *
  10424. * @param {string} id
  10425. * @param {*} [options] Override http request option.
  10426. * @throws {RequiredError}
  10427. */
  10428. async removeOfflineFiles(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  10429. const localVarAxiosArgs = await localVarAxiosParamCreator.removeOfflineFiles(id, options);
  10430. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10431. },
  10432. /**
  10433. *
  10434. * @param {string} id
  10435. * @param {ScanLibraryDto} scanLibraryDto
  10436. * @param {*} [options] Override http request option.
  10437. * @throws {RequiredError}
  10438. */
  10439. async scanLibrary(id: string, scanLibraryDto: ScanLibraryDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  10440. const localVarAxiosArgs = await localVarAxiosParamCreator.scanLibrary(id, scanLibraryDto, options);
  10441. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10442. },
  10443. /**
  10444. *
  10445. * @param {string} id
  10446. * @param {UpdateLibraryDto} updateLibraryDto
  10447. * @param {*} [options] Override http request option.
  10448. * @throws {RequiredError}
  10449. */
  10450. async updateLibrary(id: string, updateLibraryDto: UpdateLibraryDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LibraryResponseDto>> {
  10451. const localVarAxiosArgs = await localVarAxiosParamCreator.updateLibrary(id, updateLibraryDto, options);
  10452. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10453. },
  10454. }
  10455. };
  10456. /**
  10457. * LibraryApi - factory interface
  10458. * @export
  10459. */
  10460. export const LibraryApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  10461. const localVarFp = LibraryApiFp(configuration)
  10462. return {
  10463. /**
  10464. *
  10465. * @param {LibraryApiCreateLibraryRequest} requestParameters Request parameters.
  10466. * @param {*} [options] Override http request option.
  10467. * @throws {RequiredError}
  10468. */
  10469. createLibrary(requestParameters: LibraryApiCreateLibraryRequest, options?: AxiosRequestConfig): AxiosPromise<LibraryResponseDto> {
  10470. return localVarFp.createLibrary(requestParameters.createLibraryDto, options).then((request) => request(axios, basePath));
  10471. },
  10472. /**
  10473. *
  10474. * @param {LibraryApiDeleteLibraryRequest} requestParameters Request parameters.
  10475. * @param {*} [options] Override http request option.
  10476. * @throws {RequiredError}
  10477. */
  10478. deleteLibrary(requestParameters: LibraryApiDeleteLibraryRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  10479. return localVarFp.deleteLibrary(requestParameters.id, options).then((request) => request(axios, basePath));
  10480. },
  10481. /**
  10482. *
  10483. * @param {*} [options] Override http request option.
  10484. * @throws {RequiredError}
  10485. */
  10486. getLibraries(options?: AxiosRequestConfig): AxiosPromise<Array<LibraryResponseDto>> {
  10487. return localVarFp.getLibraries(options).then((request) => request(axios, basePath));
  10488. },
  10489. /**
  10490. *
  10491. * @param {LibraryApiGetLibraryInfoRequest} requestParameters Request parameters.
  10492. * @param {*} [options] Override http request option.
  10493. * @throws {RequiredError}
  10494. */
  10495. getLibraryInfo(requestParameters: LibraryApiGetLibraryInfoRequest, options?: AxiosRequestConfig): AxiosPromise<LibraryResponseDto> {
  10496. return localVarFp.getLibraryInfo(requestParameters.id, options).then((request) => request(axios, basePath));
  10497. },
  10498. /**
  10499. *
  10500. * @param {LibraryApiGetLibraryStatisticsRequest} requestParameters Request parameters.
  10501. * @param {*} [options] Override http request option.
  10502. * @throws {RequiredError}
  10503. */
  10504. getLibraryStatistics(requestParameters: LibraryApiGetLibraryStatisticsRequest, options?: AxiosRequestConfig): AxiosPromise<LibraryStatsResponseDto> {
  10505. return localVarFp.getLibraryStatistics(requestParameters.id, options).then((request) => request(axios, basePath));
  10506. },
  10507. /**
  10508. *
  10509. * @param {LibraryApiRemoveOfflineFilesRequest} requestParameters Request parameters.
  10510. * @param {*} [options] Override http request option.
  10511. * @throws {RequiredError}
  10512. */
  10513. removeOfflineFiles(requestParameters: LibraryApiRemoveOfflineFilesRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  10514. return localVarFp.removeOfflineFiles(requestParameters.id, options).then((request) => request(axios, basePath));
  10515. },
  10516. /**
  10517. *
  10518. * @param {LibraryApiScanLibraryRequest} requestParameters Request parameters.
  10519. * @param {*} [options] Override http request option.
  10520. * @throws {RequiredError}
  10521. */
  10522. scanLibrary(requestParameters: LibraryApiScanLibraryRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  10523. return localVarFp.scanLibrary(requestParameters.id, requestParameters.scanLibraryDto, options).then((request) => request(axios, basePath));
  10524. },
  10525. /**
  10526. *
  10527. * @param {LibraryApiUpdateLibraryRequest} requestParameters Request parameters.
  10528. * @param {*} [options] Override http request option.
  10529. * @throws {RequiredError}
  10530. */
  10531. updateLibrary(requestParameters: LibraryApiUpdateLibraryRequest, options?: AxiosRequestConfig): AxiosPromise<LibraryResponseDto> {
  10532. return localVarFp.updateLibrary(requestParameters.id, requestParameters.updateLibraryDto, options).then((request) => request(axios, basePath));
  10533. },
  10534. };
  10535. };
  10536. /**
  10537. * Request parameters for createLibrary operation in LibraryApi.
  10538. * @export
  10539. * @interface LibraryApiCreateLibraryRequest
  10540. */
  10541. export interface LibraryApiCreateLibraryRequest {
  10542. /**
  10543. *
  10544. * @type {CreateLibraryDto}
  10545. * @memberof LibraryApiCreateLibrary
  10546. */
  10547. readonly createLibraryDto: CreateLibraryDto
  10548. }
  10549. /**
  10550. * Request parameters for deleteLibrary operation in LibraryApi.
  10551. * @export
  10552. * @interface LibraryApiDeleteLibraryRequest
  10553. */
  10554. export interface LibraryApiDeleteLibraryRequest {
  10555. /**
  10556. *
  10557. * @type {string}
  10558. * @memberof LibraryApiDeleteLibrary
  10559. */
  10560. readonly id: string
  10561. }
  10562. /**
  10563. * Request parameters for getLibraryInfo operation in LibraryApi.
  10564. * @export
  10565. * @interface LibraryApiGetLibraryInfoRequest
  10566. */
  10567. export interface LibraryApiGetLibraryInfoRequest {
  10568. /**
  10569. *
  10570. * @type {string}
  10571. * @memberof LibraryApiGetLibraryInfo
  10572. */
  10573. readonly id: string
  10574. }
  10575. /**
  10576. * Request parameters for getLibraryStatistics operation in LibraryApi.
  10577. * @export
  10578. * @interface LibraryApiGetLibraryStatisticsRequest
  10579. */
  10580. export interface LibraryApiGetLibraryStatisticsRequest {
  10581. /**
  10582. *
  10583. * @type {string}
  10584. * @memberof LibraryApiGetLibraryStatistics
  10585. */
  10586. readonly id: string
  10587. }
  10588. /**
  10589. * Request parameters for removeOfflineFiles operation in LibraryApi.
  10590. * @export
  10591. * @interface LibraryApiRemoveOfflineFilesRequest
  10592. */
  10593. export interface LibraryApiRemoveOfflineFilesRequest {
  10594. /**
  10595. *
  10596. * @type {string}
  10597. * @memberof LibraryApiRemoveOfflineFiles
  10598. */
  10599. readonly id: string
  10600. }
  10601. /**
  10602. * Request parameters for scanLibrary operation in LibraryApi.
  10603. * @export
  10604. * @interface LibraryApiScanLibraryRequest
  10605. */
  10606. export interface LibraryApiScanLibraryRequest {
  10607. /**
  10608. *
  10609. * @type {string}
  10610. * @memberof LibraryApiScanLibrary
  10611. */
  10612. readonly id: string
  10613. /**
  10614. *
  10615. * @type {ScanLibraryDto}
  10616. * @memberof LibraryApiScanLibrary
  10617. */
  10618. readonly scanLibraryDto: ScanLibraryDto
  10619. }
  10620. /**
  10621. * Request parameters for updateLibrary operation in LibraryApi.
  10622. * @export
  10623. * @interface LibraryApiUpdateLibraryRequest
  10624. */
  10625. export interface LibraryApiUpdateLibraryRequest {
  10626. /**
  10627. *
  10628. * @type {string}
  10629. * @memberof LibraryApiUpdateLibrary
  10630. */
  10631. readonly id: string
  10632. /**
  10633. *
  10634. * @type {UpdateLibraryDto}
  10635. * @memberof LibraryApiUpdateLibrary
  10636. */
  10637. readonly updateLibraryDto: UpdateLibraryDto
  10638. }
  10639. /**
  10640. * LibraryApi - object-oriented interface
  10641. * @export
  10642. * @class LibraryApi
  10643. * @extends {BaseAPI}
  10644. */
  10645. export class LibraryApi extends BaseAPI {
  10646. /**
  10647. *
  10648. * @param {LibraryApiCreateLibraryRequest} requestParameters Request parameters.
  10649. * @param {*} [options] Override http request option.
  10650. * @throws {RequiredError}
  10651. * @memberof LibraryApi
  10652. */
  10653. public createLibrary(requestParameters: LibraryApiCreateLibraryRequest, options?: AxiosRequestConfig) {
  10654. return LibraryApiFp(this.configuration).createLibrary(requestParameters.createLibraryDto, options).then((request) => request(this.axios, this.basePath));
  10655. }
  10656. /**
  10657. *
  10658. * @param {LibraryApiDeleteLibraryRequest} requestParameters Request parameters.
  10659. * @param {*} [options] Override http request option.
  10660. * @throws {RequiredError}
  10661. * @memberof LibraryApi
  10662. */
  10663. public deleteLibrary(requestParameters: LibraryApiDeleteLibraryRequest, options?: AxiosRequestConfig) {
  10664. return LibraryApiFp(this.configuration).deleteLibrary(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  10665. }
  10666. /**
  10667. *
  10668. * @param {*} [options] Override http request option.
  10669. * @throws {RequiredError}
  10670. * @memberof LibraryApi
  10671. */
  10672. public getLibraries(options?: AxiosRequestConfig) {
  10673. return LibraryApiFp(this.configuration).getLibraries(options).then((request) => request(this.axios, this.basePath));
  10674. }
  10675. /**
  10676. *
  10677. * @param {LibraryApiGetLibraryInfoRequest} requestParameters Request parameters.
  10678. * @param {*} [options] Override http request option.
  10679. * @throws {RequiredError}
  10680. * @memberof LibraryApi
  10681. */
  10682. public getLibraryInfo(requestParameters: LibraryApiGetLibraryInfoRequest, options?: AxiosRequestConfig) {
  10683. return LibraryApiFp(this.configuration).getLibraryInfo(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  10684. }
  10685. /**
  10686. *
  10687. * @param {LibraryApiGetLibraryStatisticsRequest} requestParameters Request parameters.
  10688. * @param {*} [options] Override http request option.
  10689. * @throws {RequiredError}
  10690. * @memberof LibraryApi
  10691. */
  10692. public getLibraryStatistics(requestParameters: LibraryApiGetLibraryStatisticsRequest, options?: AxiosRequestConfig) {
  10693. return LibraryApiFp(this.configuration).getLibraryStatistics(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  10694. }
  10695. /**
  10696. *
  10697. * @param {LibraryApiRemoveOfflineFilesRequest} requestParameters Request parameters.
  10698. * @param {*} [options] Override http request option.
  10699. * @throws {RequiredError}
  10700. * @memberof LibraryApi
  10701. */
  10702. public removeOfflineFiles(requestParameters: LibraryApiRemoveOfflineFilesRequest, options?: AxiosRequestConfig) {
  10703. return LibraryApiFp(this.configuration).removeOfflineFiles(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  10704. }
  10705. /**
  10706. *
  10707. * @param {LibraryApiScanLibraryRequest} requestParameters Request parameters.
  10708. * @param {*} [options] Override http request option.
  10709. * @throws {RequiredError}
  10710. * @memberof LibraryApi
  10711. */
  10712. public scanLibrary(requestParameters: LibraryApiScanLibraryRequest, options?: AxiosRequestConfig) {
  10713. return LibraryApiFp(this.configuration).scanLibrary(requestParameters.id, requestParameters.scanLibraryDto, options).then((request) => request(this.axios, this.basePath));
  10714. }
  10715. /**
  10716. *
  10717. * @param {LibraryApiUpdateLibraryRequest} requestParameters Request parameters.
  10718. * @param {*} [options] Override http request option.
  10719. * @throws {RequiredError}
  10720. * @memberof LibraryApi
  10721. */
  10722. public updateLibrary(requestParameters: LibraryApiUpdateLibraryRequest, options?: AxiosRequestConfig) {
  10723. return LibraryApiFp(this.configuration).updateLibrary(requestParameters.id, requestParameters.updateLibraryDto, options).then((request) => request(this.axios, this.basePath));
  10724. }
  10725. }
  10726. /**
  10727. * OAuthApi - axios parameter creator
  10728. * @export
  10729. */
  10730. export const OAuthApiAxiosParamCreator = function (configuration?: Configuration) {
  10731. return {
  10732. /**
  10733. *
  10734. * @param {OAuthCallbackDto} oAuthCallbackDto
  10735. * @param {*} [options] Override http request option.
  10736. * @throws {RequiredError}
  10737. */
  10738. finishOAuth: async (oAuthCallbackDto: OAuthCallbackDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10739. // verify required parameter 'oAuthCallbackDto' is not null or undefined
  10740. assertParamExists('finishOAuth', 'oAuthCallbackDto', oAuthCallbackDto)
  10741. const localVarPath = `/oauth/callback`;
  10742. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10743. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10744. let baseOptions;
  10745. if (configuration) {
  10746. baseOptions = configuration.baseOptions;
  10747. }
  10748. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  10749. const localVarHeaderParameter = {} as any;
  10750. const localVarQueryParameter = {} as any;
  10751. localVarHeaderParameter['Content-Type'] = 'application/json';
  10752. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10753. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10754. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10755. localVarRequestOptions.data = serializeDataIfNeeded(oAuthCallbackDto, localVarRequestOptions, configuration)
  10756. return {
  10757. url: toPathString(localVarUrlObj),
  10758. options: localVarRequestOptions,
  10759. };
  10760. },
  10761. /**
  10762. * @deprecated use feature flags and /oauth/authorize
  10763. * @param {OAuthConfigDto} oAuthConfigDto
  10764. * @param {*} [options] Override http request option.
  10765. * @deprecated
  10766. * @throws {RequiredError}
  10767. */
  10768. generateOAuthConfig: async (oAuthConfigDto: OAuthConfigDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10769. // verify required parameter 'oAuthConfigDto' is not null or undefined
  10770. assertParamExists('generateOAuthConfig', 'oAuthConfigDto', oAuthConfigDto)
  10771. const localVarPath = `/oauth/config`;
  10772. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10773. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10774. let baseOptions;
  10775. if (configuration) {
  10776. baseOptions = configuration.baseOptions;
  10777. }
  10778. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  10779. const localVarHeaderParameter = {} as any;
  10780. const localVarQueryParameter = {} as any;
  10781. localVarHeaderParameter['Content-Type'] = 'application/json';
  10782. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10783. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10784. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10785. localVarRequestOptions.data = serializeDataIfNeeded(oAuthConfigDto, localVarRequestOptions, configuration)
  10786. return {
  10787. url: toPathString(localVarUrlObj),
  10788. options: localVarRequestOptions,
  10789. };
  10790. },
  10791. /**
  10792. *
  10793. * @param {OAuthCallbackDto} oAuthCallbackDto
  10794. * @param {*} [options] Override http request option.
  10795. * @throws {RequiredError}
  10796. */
  10797. linkOAuthAccount: async (oAuthCallbackDto: OAuthCallbackDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10798. // verify required parameter 'oAuthCallbackDto' is not null or undefined
  10799. assertParamExists('linkOAuthAccount', 'oAuthCallbackDto', oAuthCallbackDto)
  10800. const localVarPath = `/oauth/link`;
  10801. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10802. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10803. let baseOptions;
  10804. if (configuration) {
  10805. baseOptions = configuration.baseOptions;
  10806. }
  10807. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  10808. const localVarHeaderParameter = {} as any;
  10809. const localVarQueryParameter = {} as any;
  10810. // authentication cookie required
  10811. // authentication api_key required
  10812. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10813. // authentication bearer required
  10814. // http bearer authentication required
  10815. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10816. localVarHeaderParameter['Content-Type'] = 'application/json';
  10817. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10818. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10819. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10820. localVarRequestOptions.data = serializeDataIfNeeded(oAuthCallbackDto, localVarRequestOptions, configuration)
  10821. return {
  10822. url: toPathString(localVarUrlObj),
  10823. options: localVarRequestOptions,
  10824. };
  10825. },
  10826. /**
  10827. *
  10828. * @param {*} [options] Override http request option.
  10829. * @throws {RequiredError}
  10830. */
  10831. redirectOAuthToMobile: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10832. const localVarPath = `/oauth/mobile-redirect`;
  10833. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10834. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10835. let baseOptions;
  10836. if (configuration) {
  10837. baseOptions = configuration.baseOptions;
  10838. }
  10839. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  10840. const localVarHeaderParameter = {} as any;
  10841. const localVarQueryParameter = {} as any;
  10842. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10843. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10844. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10845. return {
  10846. url: toPathString(localVarUrlObj),
  10847. options: localVarRequestOptions,
  10848. };
  10849. },
  10850. /**
  10851. *
  10852. * @param {OAuthConfigDto} oAuthConfigDto
  10853. * @param {*} [options] Override http request option.
  10854. * @throws {RequiredError}
  10855. */
  10856. startOAuth: async (oAuthConfigDto: OAuthConfigDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10857. // verify required parameter 'oAuthConfigDto' is not null or undefined
  10858. assertParamExists('startOAuth', 'oAuthConfigDto', oAuthConfigDto)
  10859. const localVarPath = `/oauth/authorize`;
  10860. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10861. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10862. let baseOptions;
  10863. if (configuration) {
  10864. baseOptions = configuration.baseOptions;
  10865. }
  10866. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  10867. const localVarHeaderParameter = {} as any;
  10868. const localVarQueryParameter = {} as any;
  10869. localVarHeaderParameter['Content-Type'] = 'application/json';
  10870. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10871. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10872. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10873. localVarRequestOptions.data = serializeDataIfNeeded(oAuthConfigDto, localVarRequestOptions, configuration)
  10874. return {
  10875. url: toPathString(localVarUrlObj),
  10876. options: localVarRequestOptions,
  10877. };
  10878. },
  10879. /**
  10880. *
  10881. * @param {*} [options] Override http request option.
  10882. * @throws {RequiredError}
  10883. */
  10884. unlinkOAuthAccount: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10885. const localVarPath = `/oauth/unlink`;
  10886. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10887. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10888. let baseOptions;
  10889. if (configuration) {
  10890. baseOptions = configuration.baseOptions;
  10891. }
  10892. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  10893. const localVarHeaderParameter = {} as any;
  10894. const localVarQueryParameter = {} as any;
  10895. // authentication cookie required
  10896. // authentication api_key required
  10897. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10898. // authentication bearer required
  10899. // http bearer authentication required
  10900. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10901. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10902. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10903. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10904. return {
  10905. url: toPathString(localVarUrlObj),
  10906. options: localVarRequestOptions,
  10907. };
  10908. },
  10909. }
  10910. };
  10911. /**
  10912. * OAuthApi - functional programming interface
  10913. * @export
  10914. */
  10915. export const OAuthApiFp = function(configuration?: Configuration) {
  10916. const localVarAxiosParamCreator = OAuthApiAxiosParamCreator(configuration)
  10917. return {
  10918. /**
  10919. *
  10920. * @param {OAuthCallbackDto} oAuthCallbackDto
  10921. * @param {*} [options] Override http request option.
  10922. * @throws {RequiredError}
  10923. */
  10924. async finishOAuth(oAuthCallbackDto: OAuthCallbackDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LoginResponseDto>> {
  10925. const localVarAxiosArgs = await localVarAxiosParamCreator.finishOAuth(oAuthCallbackDto, options);
  10926. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10927. },
  10928. /**
  10929. * @deprecated use feature flags and /oauth/authorize
  10930. * @param {OAuthConfigDto} oAuthConfigDto
  10931. * @param {*} [options] Override http request option.
  10932. * @deprecated
  10933. * @throws {RequiredError}
  10934. */
  10935. async generateOAuthConfig(oAuthConfigDto: OAuthConfigDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OAuthConfigResponseDto>> {
  10936. const localVarAxiosArgs = await localVarAxiosParamCreator.generateOAuthConfig(oAuthConfigDto, options);
  10937. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10938. },
  10939. /**
  10940. *
  10941. * @param {OAuthCallbackDto} oAuthCallbackDto
  10942. * @param {*} [options] Override http request option.
  10943. * @throws {RequiredError}
  10944. */
  10945. async linkOAuthAccount(oAuthCallbackDto: OAuthCallbackDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  10946. const localVarAxiosArgs = await localVarAxiosParamCreator.linkOAuthAccount(oAuthCallbackDto, options);
  10947. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10948. },
  10949. /**
  10950. *
  10951. * @param {*} [options] Override http request option.
  10952. * @throws {RequiredError}
  10953. */
  10954. async redirectOAuthToMobile(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  10955. const localVarAxiosArgs = await localVarAxiosParamCreator.redirectOAuthToMobile(options);
  10956. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10957. },
  10958. /**
  10959. *
  10960. * @param {OAuthConfigDto} oAuthConfigDto
  10961. * @param {*} [options] Override http request option.
  10962. * @throws {RequiredError}
  10963. */
  10964. async startOAuth(oAuthConfigDto: OAuthConfigDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OAuthAuthorizeResponseDto>> {
  10965. const localVarAxiosArgs = await localVarAxiosParamCreator.startOAuth(oAuthConfigDto, options);
  10966. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10967. },
  10968. /**
  10969. *
  10970. * @param {*} [options] Override http request option.
  10971. * @throws {RequiredError}
  10972. */
  10973. async unlinkOAuthAccount(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  10974. const localVarAxiosArgs = await localVarAxiosParamCreator.unlinkOAuthAccount(options);
  10975. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10976. },
  10977. }
  10978. };
  10979. /**
  10980. * OAuthApi - factory interface
  10981. * @export
  10982. */
  10983. export const OAuthApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  10984. const localVarFp = OAuthApiFp(configuration)
  10985. return {
  10986. /**
  10987. *
  10988. * @param {OAuthApiFinishOAuthRequest} requestParameters Request parameters.
  10989. * @param {*} [options] Override http request option.
  10990. * @throws {RequiredError}
  10991. */
  10992. finishOAuth(requestParameters: OAuthApiFinishOAuthRequest, options?: AxiosRequestConfig): AxiosPromise<LoginResponseDto> {
  10993. return localVarFp.finishOAuth(requestParameters.oAuthCallbackDto, options).then((request) => request(axios, basePath));
  10994. },
  10995. /**
  10996. * @deprecated use feature flags and /oauth/authorize
  10997. * @param {OAuthApiGenerateOAuthConfigRequest} requestParameters Request parameters.
  10998. * @param {*} [options] Override http request option.
  10999. * @deprecated
  11000. * @throws {RequiredError}
  11001. */
  11002. generateOAuthConfig(requestParameters: OAuthApiGenerateOAuthConfigRequest, options?: AxiosRequestConfig): AxiosPromise<OAuthConfigResponseDto> {
  11003. return localVarFp.generateOAuthConfig(requestParameters.oAuthConfigDto, options).then((request) => request(axios, basePath));
  11004. },
  11005. /**
  11006. *
  11007. * @param {OAuthApiLinkOAuthAccountRequest} requestParameters Request parameters.
  11008. * @param {*} [options] Override http request option.
  11009. * @throws {RequiredError}
  11010. */
  11011. linkOAuthAccount(requestParameters: OAuthApiLinkOAuthAccountRequest, options?: AxiosRequestConfig): AxiosPromise<UserResponseDto> {
  11012. return localVarFp.linkOAuthAccount(requestParameters.oAuthCallbackDto, options).then((request) => request(axios, basePath));
  11013. },
  11014. /**
  11015. *
  11016. * @param {*} [options] Override http request option.
  11017. * @throws {RequiredError}
  11018. */
  11019. redirectOAuthToMobile(options?: AxiosRequestConfig): AxiosPromise<void> {
  11020. return localVarFp.redirectOAuthToMobile(options).then((request) => request(axios, basePath));
  11021. },
  11022. /**
  11023. *
  11024. * @param {OAuthApiStartOAuthRequest} requestParameters Request parameters.
  11025. * @param {*} [options] Override http request option.
  11026. * @throws {RequiredError}
  11027. */
  11028. startOAuth(requestParameters: OAuthApiStartOAuthRequest, options?: AxiosRequestConfig): AxiosPromise<OAuthAuthorizeResponseDto> {
  11029. return localVarFp.startOAuth(requestParameters.oAuthConfigDto, options).then((request) => request(axios, basePath));
  11030. },
  11031. /**
  11032. *
  11033. * @param {*} [options] Override http request option.
  11034. * @throws {RequiredError}
  11035. */
  11036. unlinkOAuthAccount(options?: AxiosRequestConfig): AxiosPromise<UserResponseDto> {
  11037. return localVarFp.unlinkOAuthAccount(options).then((request) => request(axios, basePath));
  11038. },
  11039. };
  11040. };
  11041. /**
  11042. * Request parameters for finishOAuth operation in OAuthApi.
  11043. * @export
  11044. * @interface OAuthApiFinishOAuthRequest
  11045. */
  11046. export interface OAuthApiFinishOAuthRequest {
  11047. /**
  11048. *
  11049. * @type {OAuthCallbackDto}
  11050. * @memberof OAuthApiFinishOAuth
  11051. */
  11052. readonly oAuthCallbackDto: OAuthCallbackDto
  11053. }
  11054. /**
  11055. * Request parameters for generateOAuthConfig operation in OAuthApi.
  11056. * @export
  11057. * @interface OAuthApiGenerateOAuthConfigRequest
  11058. */
  11059. export interface OAuthApiGenerateOAuthConfigRequest {
  11060. /**
  11061. *
  11062. * @type {OAuthConfigDto}
  11063. * @memberof OAuthApiGenerateOAuthConfig
  11064. */
  11065. readonly oAuthConfigDto: OAuthConfigDto
  11066. }
  11067. /**
  11068. * Request parameters for linkOAuthAccount operation in OAuthApi.
  11069. * @export
  11070. * @interface OAuthApiLinkOAuthAccountRequest
  11071. */
  11072. export interface OAuthApiLinkOAuthAccountRequest {
  11073. /**
  11074. *
  11075. * @type {OAuthCallbackDto}
  11076. * @memberof OAuthApiLinkOAuthAccount
  11077. */
  11078. readonly oAuthCallbackDto: OAuthCallbackDto
  11079. }
  11080. /**
  11081. * Request parameters for startOAuth operation in OAuthApi.
  11082. * @export
  11083. * @interface OAuthApiStartOAuthRequest
  11084. */
  11085. export interface OAuthApiStartOAuthRequest {
  11086. /**
  11087. *
  11088. * @type {OAuthConfigDto}
  11089. * @memberof OAuthApiStartOAuth
  11090. */
  11091. readonly oAuthConfigDto: OAuthConfigDto
  11092. }
  11093. /**
  11094. * OAuthApi - object-oriented interface
  11095. * @export
  11096. * @class OAuthApi
  11097. * @extends {BaseAPI}
  11098. */
  11099. export class OAuthApi extends BaseAPI {
  11100. /**
  11101. *
  11102. * @param {OAuthApiFinishOAuthRequest} requestParameters Request parameters.
  11103. * @param {*} [options] Override http request option.
  11104. * @throws {RequiredError}
  11105. * @memberof OAuthApi
  11106. */
  11107. public finishOAuth(requestParameters: OAuthApiFinishOAuthRequest, options?: AxiosRequestConfig) {
  11108. return OAuthApiFp(this.configuration).finishOAuth(requestParameters.oAuthCallbackDto, options).then((request) => request(this.axios, this.basePath));
  11109. }
  11110. /**
  11111. * @deprecated use feature flags and /oauth/authorize
  11112. * @param {OAuthApiGenerateOAuthConfigRequest} requestParameters Request parameters.
  11113. * @param {*} [options] Override http request option.
  11114. * @deprecated
  11115. * @throws {RequiredError}
  11116. * @memberof OAuthApi
  11117. */
  11118. public generateOAuthConfig(requestParameters: OAuthApiGenerateOAuthConfigRequest, options?: AxiosRequestConfig) {
  11119. return OAuthApiFp(this.configuration).generateOAuthConfig(requestParameters.oAuthConfigDto, options).then((request) => request(this.axios, this.basePath));
  11120. }
  11121. /**
  11122. *
  11123. * @param {OAuthApiLinkOAuthAccountRequest} requestParameters Request parameters.
  11124. * @param {*} [options] Override http request option.
  11125. * @throws {RequiredError}
  11126. * @memberof OAuthApi
  11127. */
  11128. public linkOAuthAccount(requestParameters: OAuthApiLinkOAuthAccountRequest, options?: AxiosRequestConfig) {
  11129. return OAuthApiFp(this.configuration).linkOAuthAccount(requestParameters.oAuthCallbackDto, options).then((request) => request(this.axios, this.basePath));
  11130. }
  11131. /**
  11132. *
  11133. * @param {*} [options] Override http request option.
  11134. * @throws {RequiredError}
  11135. * @memberof OAuthApi
  11136. */
  11137. public redirectOAuthToMobile(options?: AxiosRequestConfig) {
  11138. return OAuthApiFp(this.configuration).redirectOAuthToMobile(options).then((request) => request(this.axios, this.basePath));
  11139. }
  11140. /**
  11141. *
  11142. * @param {OAuthApiStartOAuthRequest} requestParameters Request parameters.
  11143. * @param {*} [options] Override http request option.
  11144. * @throws {RequiredError}
  11145. * @memberof OAuthApi
  11146. */
  11147. public startOAuth(requestParameters: OAuthApiStartOAuthRequest, options?: AxiosRequestConfig) {
  11148. return OAuthApiFp(this.configuration).startOAuth(requestParameters.oAuthConfigDto, options).then((request) => request(this.axios, this.basePath));
  11149. }
  11150. /**
  11151. *
  11152. * @param {*} [options] Override http request option.
  11153. * @throws {RequiredError}
  11154. * @memberof OAuthApi
  11155. */
  11156. public unlinkOAuthAccount(options?: AxiosRequestConfig) {
  11157. return OAuthApiFp(this.configuration).unlinkOAuthAccount(options).then((request) => request(this.axios, this.basePath));
  11158. }
  11159. }
  11160. /**
  11161. * PartnerApi - axios parameter creator
  11162. * @export
  11163. */
  11164. export const PartnerApiAxiosParamCreator = function (configuration?: Configuration) {
  11165. return {
  11166. /**
  11167. *
  11168. * @param {string} id
  11169. * @param {*} [options] Override http request option.
  11170. * @throws {RequiredError}
  11171. */
  11172. createPartner: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11173. // verify required parameter 'id' is not null or undefined
  11174. assertParamExists('createPartner', 'id', id)
  11175. const localVarPath = `/partner/{id}`
  11176. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  11177. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11178. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11179. let baseOptions;
  11180. if (configuration) {
  11181. baseOptions = configuration.baseOptions;
  11182. }
  11183. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  11184. const localVarHeaderParameter = {} as any;
  11185. const localVarQueryParameter = {} as any;
  11186. // authentication cookie required
  11187. // authentication api_key required
  11188. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  11189. // authentication bearer required
  11190. // http bearer authentication required
  11191. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  11192. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11193. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11194. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11195. return {
  11196. url: toPathString(localVarUrlObj),
  11197. options: localVarRequestOptions,
  11198. };
  11199. },
  11200. /**
  11201. *
  11202. * @param {'shared-by' | 'shared-with'} direction
  11203. * @param {*} [options] Override http request option.
  11204. * @throws {RequiredError}
  11205. */
  11206. getPartners: async (direction: 'shared-by' | 'shared-with', options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11207. // verify required parameter 'direction' is not null or undefined
  11208. assertParamExists('getPartners', 'direction', direction)
  11209. const localVarPath = `/partner`;
  11210. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11211. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11212. let baseOptions;
  11213. if (configuration) {
  11214. baseOptions = configuration.baseOptions;
  11215. }
  11216. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  11217. const localVarHeaderParameter = {} as any;
  11218. const localVarQueryParameter = {} as any;
  11219. // authentication cookie required
  11220. // authentication api_key required
  11221. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  11222. // authentication bearer required
  11223. // http bearer authentication required
  11224. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  11225. if (direction !== undefined) {
  11226. localVarQueryParameter['direction'] = direction;
  11227. }
  11228. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11229. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11230. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11231. return {
  11232. url: toPathString(localVarUrlObj),
  11233. options: localVarRequestOptions,
  11234. };
  11235. },
  11236. /**
  11237. *
  11238. * @param {string} id
  11239. * @param {*} [options] Override http request option.
  11240. * @throws {RequiredError}
  11241. */
  11242. removePartner: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11243. // verify required parameter 'id' is not null or undefined
  11244. assertParamExists('removePartner', 'id', id)
  11245. const localVarPath = `/partner/{id}`
  11246. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  11247. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11248. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11249. let baseOptions;
  11250. if (configuration) {
  11251. baseOptions = configuration.baseOptions;
  11252. }
  11253. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  11254. const localVarHeaderParameter = {} as any;
  11255. const localVarQueryParameter = {} as any;
  11256. // authentication cookie required
  11257. // authentication api_key required
  11258. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  11259. // authentication bearer required
  11260. // http bearer authentication required
  11261. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  11262. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11263. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11264. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11265. return {
  11266. url: toPathString(localVarUrlObj),
  11267. options: localVarRequestOptions,
  11268. };
  11269. },
  11270. /**
  11271. *
  11272. * @param {string} id
  11273. * @param {UpdatePartnerDto} updatePartnerDto
  11274. * @param {*} [options] Override http request option.
  11275. * @throws {RequiredError}
  11276. */
  11277. updatePartner: async (id: string, updatePartnerDto: UpdatePartnerDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11278. // verify required parameter 'id' is not null or undefined
  11279. assertParamExists('updatePartner', 'id', id)
  11280. // verify required parameter 'updatePartnerDto' is not null or undefined
  11281. assertParamExists('updatePartner', 'updatePartnerDto', updatePartnerDto)
  11282. const localVarPath = `/partner/{id}`
  11283. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  11284. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11285. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11286. let baseOptions;
  11287. if (configuration) {
  11288. baseOptions = configuration.baseOptions;
  11289. }
  11290. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  11291. const localVarHeaderParameter = {} as any;
  11292. const localVarQueryParameter = {} as any;
  11293. // authentication cookie required
  11294. // authentication api_key required
  11295. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  11296. // authentication bearer required
  11297. // http bearer authentication required
  11298. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  11299. localVarHeaderParameter['Content-Type'] = 'application/json';
  11300. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11301. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11302. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11303. localVarRequestOptions.data = serializeDataIfNeeded(updatePartnerDto, localVarRequestOptions, configuration)
  11304. return {
  11305. url: toPathString(localVarUrlObj),
  11306. options: localVarRequestOptions,
  11307. };
  11308. },
  11309. }
  11310. };
  11311. /**
  11312. * PartnerApi - functional programming interface
  11313. * @export
  11314. */
  11315. export const PartnerApiFp = function(configuration?: Configuration) {
  11316. const localVarAxiosParamCreator = PartnerApiAxiosParamCreator(configuration)
  11317. return {
  11318. /**
  11319. *
  11320. * @param {string} id
  11321. * @param {*} [options] Override http request option.
  11322. * @throws {RequiredError}
  11323. */
  11324. async createPartner(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PartnerResponseDto>> {
  11325. const localVarAxiosArgs = await localVarAxiosParamCreator.createPartner(id, options);
  11326. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11327. },
  11328. /**
  11329. *
  11330. * @param {'shared-by' | 'shared-with'} direction
  11331. * @param {*} [options] Override http request option.
  11332. * @throws {RequiredError}
  11333. */
  11334. async getPartners(direction: 'shared-by' | 'shared-with', options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<PartnerResponseDto>>> {
  11335. const localVarAxiosArgs = await localVarAxiosParamCreator.getPartners(direction, options);
  11336. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11337. },
  11338. /**
  11339. *
  11340. * @param {string} id
  11341. * @param {*} [options] Override http request option.
  11342. * @throws {RequiredError}
  11343. */
  11344. async removePartner(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  11345. const localVarAxiosArgs = await localVarAxiosParamCreator.removePartner(id, options);
  11346. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11347. },
  11348. /**
  11349. *
  11350. * @param {string} id
  11351. * @param {UpdatePartnerDto} updatePartnerDto
  11352. * @param {*} [options] Override http request option.
  11353. * @throws {RequiredError}
  11354. */
  11355. async updatePartner(id: string, updatePartnerDto: UpdatePartnerDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PartnerResponseDto>> {
  11356. const localVarAxiosArgs = await localVarAxiosParamCreator.updatePartner(id, updatePartnerDto, options);
  11357. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11358. },
  11359. }
  11360. };
  11361. /**
  11362. * PartnerApi - factory interface
  11363. * @export
  11364. */
  11365. export const PartnerApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  11366. const localVarFp = PartnerApiFp(configuration)
  11367. return {
  11368. /**
  11369. *
  11370. * @param {PartnerApiCreatePartnerRequest} requestParameters Request parameters.
  11371. * @param {*} [options] Override http request option.
  11372. * @throws {RequiredError}
  11373. */
  11374. createPartner(requestParameters: PartnerApiCreatePartnerRequest, options?: AxiosRequestConfig): AxiosPromise<PartnerResponseDto> {
  11375. return localVarFp.createPartner(requestParameters.id, options).then((request) => request(axios, basePath));
  11376. },
  11377. /**
  11378. *
  11379. * @param {PartnerApiGetPartnersRequest} requestParameters Request parameters.
  11380. * @param {*} [options] Override http request option.
  11381. * @throws {RequiredError}
  11382. */
  11383. getPartners(requestParameters: PartnerApiGetPartnersRequest, options?: AxiosRequestConfig): AxiosPromise<Array<PartnerResponseDto>> {
  11384. return localVarFp.getPartners(requestParameters.direction, options).then((request) => request(axios, basePath));
  11385. },
  11386. /**
  11387. *
  11388. * @param {PartnerApiRemovePartnerRequest} requestParameters Request parameters.
  11389. * @param {*} [options] Override http request option.
  11390. * @throws {RequiredError}
  11391. */
  11392. removePartner(requestParameters: PartnerApiRemovePartnerRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  11393. return localVarFp.removePartner(requestParameters.id, options).then((request) => request(axios, basePath));
  11394. },
  11395. /**
  11396. *
  11397. * @param {PartnerApiUpdatePartnerRequest} requestParameters Request parameters.
  11398. * @param {*} [options] Override http request option.
  11399. * @throws {RequiredError}
  11400. */
  11401. updatePartner(requestParameters: PartnerApiUpdatePartnerRequest, options?: AxiosRequestConfig): AxiosPromise<PartnerResponseDto> {
  11402. return localVarFp.updatePartner(requestParameters.id, requestParameters.updatePartnerDto, options).then((request) => request(axios, basePath));
  11403. },
  11404. };
  11405. };
  11406. /**
  11407. * Request parameters for createPartner operation in PartnerApi.
  11408. * @export
  11409. * @interface PartnerApiCreatePartnerRequest
  11410. */
  11411. export interface PartnerApiCreatePartnerRequest {
  11412. /**
  11413. *
  11414. * @type {string}
  11415. * @memberof PartnerApiCreatePartner
  11416. */
  11417. readonly id: string
  11418. }
  11419. /**
  11420. * Request parameters for getPartners operation in PartnerApi.
  11421. * @export
  11422. * @interface PartnerApiGetPartnersRequest
  11423. */
  11424. export interface PartnerApiGetPartnersRequest {
  11425. /**
  11426. *
  11427. * @type {'shared-by' | 'shared-with'}
  11428. * @memberof PartnerApiGetPartners
  11429. */
  11430. readonly direction: 'shared-by' | 'shared-with'
  11431. }
  11432. /**
  11433. * Request parameters for removePartner operation in PartnerApi.
  11434. * @export
  11435. * @interface PartnerApiRemovePartnerRequest
  11436. */
  11437. export interface PartnerApiRemovePartnerRequest {
  11438. /**
  11439. *
  11440. * @type {string}
  11441. * @memberof PartnerApiRemovePartner
  11442. */
  11443. readonly id: string
  11444. }
  11445. /**
  11446. * Request parameters for updatePartner operation in PartnerApi.
  11447. * @export
  11448. * @interface PartnerApiUpdatePartnerRequest
  11449. */
  11450. export interface PartnerApiUpdatePartnerRequest {
  11451. /**
  11452. *
  11453. * @type {string}
  11454. * @memberof PartnerApiUpdatePartner
  11455. */
  11456. readonly id: string
  11457. /**
  11458. *
  11459. * @type {UpdatePartnerDto}
  11460. * @memberof PartnerApiUpdatePartner
  11461. */
  11462. readonly updatePartnerDto: UpdatePartnerDto
  11463. }
  11464. /**
  11465. * PartnerApi - object-oriented interface
  11466. * @export
  11467. * @class PartnerApi
  11468. * @extends {BaseAPI}
  11469. */
  11470. export class PartnerApi extends BaseAPI {
  11471. /**
  11472. *
  11473. * @param {PartnerApiCreatePartnerRequest} requestParameters Request parameters.
  11474. * @param {*} [options] Override http request option.
  11475. * @throws {RequiredError}
  11476. * @memberof PartnerApi
  11477. */
  11478. public createPartner(requestParameters: PartnerApiCreatePartnerRequest, options?: AxiosRequestConfig) {
  11479. return PartnerApiFp(this.configuration).createPartner(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  11480. }
  11481. /**
  11482. *
  11483. * @param {PartnerApiGetPartnersRequest} requestParameters Request parameters.
  11484. * @param {*} [options] Override http request option.
  11485. * @throws {RequiredError}
  11486. * @memberof PartnerApi
  11487. */
  11488. public getPartners(requestParameters: PartnerApiGetPartnersRequest, options?: AxiosRequestConfig) {
  11489. return PartnerApiFp(this.configuration).getPartners(requestParameters.direction, options).then((request) => request(this.axios, this.basePath));
  11490. }
  11491. /**
  11492. *
  11493. * @param {PartnerApiRemovePartnerRequest} requestParameters Request parameters.
  11494. * @param {*} [options] Override http request option.
  11495. * @throws {RequiredError}
  11496. * @memberof PartnerApi
  11497. */
  11498. public removePartner(requestParameters: PartnerApiRemovePartnerRequest, options?: AxiosRequestConfig) {
  11499. return PartnerApiFp(this.configuration).removePartner(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  11500. }
  11501. /**
  11502. *
  11503. * @param {PartnerApiUpdatePartnerRequest} requestParameters Request parameters.
  11504. * @param {*} [options] Override http request option.
  11505. * @throws {RequiredError}
  11506. * @memberof PartnerApi
  11507. */
  11508. public updatePartner(requestParameters: PartnerApiUpdatePartnerRequest, options?: AxiosRequestConfig) {
  11509. return PartnerApiFp(this.configuration).updatePartner(requestParameters.id, requestParameters.updatePartnerDto, options).then((request) => request(this.axios, this.basePath));
  11510. }
  11511. }
  11512. /**
  11513. * PersonApi - axios parameter creator
  11514. * @export
  11515. */
  11516. export const PersonApiAxiosParamCreator = function (configuration?: Configuration) {
  11517. return {
  11518. /**
  11519. *
  11520. * @param {boolean} [withHidden]
  11521. * @param {*} [options] Override http request option.
  11522. * @throws {RequiredError}
  11523. */
  11524. getAllPeople: async (withHidden?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11525. const localVarPath = `/person`;
  11526. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11527. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11528. let baseOptions;
  11529. if (configuration) {
  11530. baseOptions = configuration.baseOptions;
  11531. }
  11532. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  11533. const localVarHeaderParameter = {} as any;
  11534. const localVarQueryParameter = {} as any;
  11535. // authentication cookie required
  11536. // authentication api_key required
  11537. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  11538. // authentication bearer required
  11539. // http bearer authentication required
  11540. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  11541. if (withHidden !== undefined) {
  11542. localVarQueryParameter['withHidden'] = withHidden;
  11543. }
  11544. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11545. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11546. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11547. return {
  11548. url: toPathString(localVarUrlObj),
  11549. options: localVarRequestOptions,
  11550. };
  11551. },
  11552. /**
  11553. *
  11554. * @param {string} id
  11555. * @param {*} [options] Override http request option.
  11556. * @throws {RequiredError}
  11557. */
  11558. getPerson: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11559. // verify required parameter 'id' is not null or undefined
  11560. assertParamExists('getPerson', 'id', id)
  11561. const localVarPath = `/person/{id}`
  11562. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  11563. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11564. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11565. let baseOptions;
  11566. if (configuration) {
  11567. baseOptions = configuration.baseOptions;
  11568. }
  11569. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  11570. const localVarHeaderParameter = {} as any;
  11571. const localVarQueryParameter = {} as any;
  11572. // authentication cookie required
  11573. // authentication api_key required
  11574. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  11575. // authentication bearer required
  11576. // http bearer authentication required
  11577. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  11578. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11579. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11580. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11581. return {
  11582. url: toPathString(localVarUrlObj),
  11583. options: localVarRequestOptions,
  11584. };
  11585. },
  11586. /**
  11587. *
  11588. * @param {string} id
  11589. * @param {*} [options] Override http request option.
  11590. * @throws {RequiredError}
  11591. */
  11592. getPersonAssets: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11593. // verify required parameter 'id' is not null or undefined
  11594. assertParamExists('getPersonAssets', 'id', id)
  11595. const localVarPath = `/person/{id}/assets`
  11596. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  11597. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11598. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11599. let baseOptions;
  11600. if (configuration) {
  11601. baseOptions = configuration.baseOptions;
  11602. }
  11603. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  11604. const localVarHeaderParameter = {} as any;
  11605. const localVarQueryParameter = {} as any;
  11606. // authentication cookie required
  11607. // authentication api_key required
  11608. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  11609. // authentication bearer required
  11610. // http bearer authentication required
  11611. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  11612. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11613. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11614. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11615. return {
  11616. url: toPathString(localVarUrlObj),
  11617. options: localVarRequestOptions,
  11618. };
  11619. },
  11620. /**
  11621. *
  11622. * @param {string} id
  11623. * @param {*} [options] Override http request option.
  11624. * @throws {RequiredError}
  11625. */
  11626. getPersonStatistics: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11627. // verify required parameter 'id' is not null or undefined
  11628. assertParamExists('getPersonStatistics', 'id', id)
  11629. const localVarPath = `/person/{id}/statistics`
  11630. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  11631. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11632. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11633. let baseOptions;
  11634. if (configuration) {
  11635. baseOptions = configuration.baseOptions;
  11636. }
  11637. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  11638. const localVarHeaderParameter = {} as any;
  11639. const localVarQueryParameter = {} as any;
  11640. // authentication cookie required
  11641. // authentication api_key required
  11642. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  11643. // authentication bearer required
  11644. // http bearer authentication required
  11645. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  11646. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11647. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11648. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11649. return {
  11650. url: toPathString(localVarUrlObj),
  11651. options: localVarRequestOptions,
  11652. };
  11653. },
  11654. /**
  11655. *
  11656. * @param {string} id
  11657. * @param {*} [options] Override http request option.
  11658. * @throws {RequiredError}
  11659. */
  11660. getPersonThumbnail: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11661. // verify required parameter 'id' is not null or undefined
  11662. assertParamExists('getPersonThumbnail', 'id', id)
  11663. const localVarPath = `/person/{id}/thumbnail`
  11664. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  11665. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11666. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11667. let baseOptions;
  11668. if (configuration) {
  11669. baseOptions = configuration.baseOptions;
  11670. }
  11671. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  11672. const localVarHeaderParameter = {} as any;
  11673. const localVarQueryParameter = {} as any;
  11674. // authentication cookie required
  11675. // authentication api_key required
  11676. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  11677. // authentication bearer required
  11678. // http bearer authentication required
  11679. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  11680. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11681. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11682. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11683. return {
  11684. url: toPathString(localVarUrlObj),
  11685. options: localVarRequestOptions,
  11686. };
  11687. },
  11688. /**
  11689. *
  11690. * @param {string} id
  11691. * @param {MergePersonDto} mergePersonDto
  11692. * @param {*} [options] Override http request option.
  11693. * @throws {RequiredError}
  11694. */
  11695. mergePerson: async (id: string, mergePersonDto: MergePersonDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11696. // verify required parameter 'id' is not null or undefined
  11697. assertParamExists('mergePerson', 'id', id)
  11698. // verify required parameter 'mergePersonDto' is not null or undefined
  11699. assertParamExists('mergePerson', 'mergePersonDto', mergePersonDto)
  11700. const localVarPath = `/person/{id}/merge`
  11701. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  11702. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11703. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11704. let baseOptions;
  11705. if (configuration) {
  11706. baseOptions = configuration.baseOptions;
  11707. }
  11708. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  11709. const localVarHeaderParameter = {} as any;
  11710. const localVarQueryParameter = {} as any;
  11711. // authentication cookie required
  11712. // authentication api_key required
  11713. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  11714. // authentication bearer required
  11715. // http bearer authentication required
  11716. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  11717. localVarHeaderParameter['Content-Type'] = 'application/json';
  11718. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11719. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11720. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11721. localVarRequestOptions.data = serializeDataIfNeeded(mergePersonDto, localVarRequestOptions, configuration)
  11722. return {
  11723. url: toPathString(localVarUrlObj),
  11724. options: localVarRequestOptions,
  11725. };
  11726. },
  11727. /**
  11728. *
  11729. * @param {PeopleUpdateDto} peopleUpdateDto
  11730. * @param {*} [options] Override http request option.
  11731. * @throws {RequiredError}
  11732. */
  11733. updatePeople: async (peopleUpdateDto: PeopleUpdateDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11734. // verify required parameter 'peopleUpdateDto' is not null or undefined
  11735. assertParamExists('updatePeople', 'peopleUpdateDto', peopleUpdateDto)
  11736. const localVarPath = `/person`;
  11737. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11738. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11739. let baseOptions;
  11740. if (configuration) {
  11741. baseOptions = configuration.baseOptions;
  11742. }
  11743. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  11744. const localVarHeaderParameter = {} as any;
  11745. const localVarQueryParameter = {} as any;
  11746. // authentication cookie required
  11747. // authentication api_key required
  11748. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  11749. // authentication bearer required
  11750. // http bearer authentication required
  11751. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  11752. localVarHeaderParameter['Content-Type'] = 'application/json';
  11753. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11754. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11755. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11756. localVarRequestOptions.data = serializeDataIfNeeded(peopleUpdateDto, localVarRequestOptions, configuration)
  11757. return {
  11758. url: toPathString(localVarUrlObj),
  11759. options: localVarRequestOptions,
  11760. };
  11761. },
  11762. /**
  11763. *
  11764. * @param {string} id
  11765. * @param {PersonUpdateDto} personUpdateDto
  11766. * @param {*} [options] Override http request option.
  11767. * @throws {RequiredError}
  11768. */
  11769. updatePerson: async (id: string, personUpdateDto: PersonUpdateDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11770. // verify required parameter 'id' is not null or undefined
  11771. assertParamExists('updatePerson', 'id', id)
  11772. // verify required parameter 'personUpdateDto' is not null or undefined
  11773. assertParamExists('updatePerson', 'personUpdateDto', personUpdateDto)
  11774. const localVarPath = `/person/{id}`
  11775. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  11776. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11777. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11778. let baseOptions;
  11779. if (configuration) {
  11780. baseOptions = configuration.baseOptions;
  11781. }
  11782. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  11783. const localVarHeaderParameter = {} as any;
  11784. const localVarQueryParameter = {} as any;
  11785. // authentication cookie required
  11786. // authentication api_key required
  11787. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  11788. // authentication bearer required
  11789. // http bearer authentication required
  11790. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  11791. localVarHeaderParameter['Content-Type'] = 'application/json';
  11792. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11793. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11794. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11795. localVarRequestOptions.data = serializeDataIfNeeded(personUpdateDto, localVarRequestOptions, configuration)
  11796. return {
  11797. url: toPathString(localVarUrlObj),
  11798. options: localVarRequestOptions,
  11799. };
  11800. },
  11801. }
  11802. };
  11803. /**
  11804. * PersonApi - functional programming interface
  11805. * @export
  11806. */
  11807. export const PersonApiFp = function(configuration?: Configuration) {
  11808. const localVarAxiosParamCreator = PersonApiAxiosParamCreator(configuration)
  11809. return {
  11810. /**
  11811. *
  11812. * @param {boolean} [withHidden]
  11813. * @param {*} [options] Override http request option.
  11814. * @throws {RequiredError}
  11815. */
  11816. async getAllPeople(withHidden?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PeopleResponseDto>> {
  11817. const localVarAxiosArgs = await localVarAxiosParamCreator.getAllPeople(withHidden, options);
  11818. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11819. },
  11820. /**
  11821. *
  11822. * @param {string} id
  11823. * @param {*} [options] Override http request option.
  11824. * @throws {RequiredError}
  11825. */
  11826. async getPerson(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PersonResponseDto>> {
  11827. const localVarAxiosArgs = await localVarAxiosParamCreator.getPerson(id, options);
  11828. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11829. },
  11830. /**
  11831. *
  11832. * @param {string} id
  11833. * @param {*} [options] Override http request option.
  11834. * @throws {RequiredError}
  11835. */
  11836. async getPersonAssets(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetResponseDto>>> {
  11837. const localVarAxiosArgs = await localVarAxiosParamCreator.getPersonAssets(id, options);
  11838. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11839. },
  11840. /**
  11841. *
  11842. * @param {string} id
  11843. * @param {*} [options] Override http request option.
  11844. * @throws {RequiredError}
  11845. */
  11846. async getPersonStatistics(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PersonStatisticsResponseDto>> {
  11847. const localVarAxiosArgs = await localVarAxiosParamCreator.getPersonStatistics(id, options);
  11848. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11849. },
  11850. /**
  11851. *
  11852. * @param {string} id
  11853. * @param {*} [options] Override http request option.
  11854. * @throws {RequiredError}
  11855. */
  11856. async getPersonThumbnail(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>> {
  11857. const localVarAxiosArgs = await localVarAxiosParamCreator.getPersonThumbnail(id, options);
  11858. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11859. },
  11860. /**
  11861. *
  11862. * @param {string} id
  11863. * @param {MergePersonDto} mergePersonDto
  11864. * @param {*} [options] Override http request option.
  11865. * @throws {RequiredError}
  11866. */
  11867. async mergePerson(id: string, mergePersonDto: MergePersonDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<BulkIdResponseDto>>> {
  11868. const localVarAxiosArgs = await localVarAxiosParamCreator.mergePerson(id, mergePersonDto, options);
  11869. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11870. },
  11871. /**
  11872. *
  11873. * @param {PeopleUpdateDto} peopleUpdateDto
  11874. * @param {*} [options] Override http request option.
  11875. * @throws {RequiredError}
  11876. */
  11877. async updatePeople(peopleUpdateDto: PeopleUpdateDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<BulkIdResponseDto>>> {
  11878. const localVarAxiosArgs = await localVarAxiosParamCreator.updatePeople(peopleUpdateDto, options);
  11879. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11880. },
  11881. /**
  11882. *
  11883. * @param {string} id
  11884. * @param {PersonUpdateDto} personUpdateDto
  11885. * @param {*} [options] Override http request option.
  11886. * @throws {RequiredError}
  11887. */
  11888. async updatePerson(id: string, personUpdateDto: PersonUpdateDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PersonResponseDto>> {
  11889. const localVarAxiosArgs = await localVarAxiosParamCreator.updatePerson(id, personUpdateDto, options);
  11890. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11891. },
  11892. }
  11893. };
  11894. /**
  11895. * PersonApi - factory interface
  11896. * @export
  11897. */
  11898. export const PersonApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  11899. const localVarFp = PersonApiFp(configuration)
  11900. return {
  11901. /**
  11902. *
  11903. * @param {PersonApiGetAllPeopleRequest} requestParameters Request parameters.
  11904. * @param {*} [options] Override http request option.
  11905. * @throws {RequiredError}
  11906. */
  11907. getAllPeople(requestParameters: PersonApiGetAllPeopleRequest = {}, options?: AxiosRequestConfig): AxiosPromise<PeopleResponseDto> {
  11908. return localVarFp.getAllPeople(requestParameters.withHidden, options).then((request) => request(axios, basePath));
  11909. },
  11910. /**
  11911. *
  11912. * @param {PersonApiGetPersonRequest} requestParameters Request parameters.
  11913. * @param {*} [options] Override http request option.
  11914. * @throws {RequiredError}
  11915. */
  11916. getPerson(requestParameters: PersonApiGetPersonRequest, options?: AxiosRequestConfig): AxiosPromise<PersonResponseDto> {
  11917. return localVarFp.getPerson(requestParameters.id, options).then((request) => request(axios, basePath));
  11918. },
  11919. /**
  11920. *
  11921. * @param {PersonApiGetPersonAssetsRequest} requestParameters Request parameters.
  11922. * @param {*} [options] Override http request option.
  11923. * @throws {RequiredError}
  11924. */
  11925. getPersonAssets(requestParameters: PersonApiGetPersonAssetsRequest, options?: AxiosRequestConfig): AxiosPromise<Array<AssetResponseDto>> {
  11926. return localVarFp.getPersonAssets(requestParameters.id, options).then((request) => request(axios, basePath));
  11927. },
  11928. /**
  11929. *
  11930. * @param {PersonApiGetPersonStatisticsRequest} requestParameters Request parameters.
  11931. * @param {*} [options] Override http request option.
  11932. * @throws {RequiredError}
  11933. */
  11934. getPersonStatistics(requestParameters: PersonApiGetPersonStatisticsRequest, options?: AxiosRequestConfig): AxiosPromise<PersonStatisticsResponseDto> {
  11935. return localVarFp.getPersonStatistics(requestParameters.id, options).then((request) => request(axios, basePath));
  11936. },
  11937. /**
  11938. *
  11939. * @param {PersonApiGetPersonThumbnailRequest} requestParameters Request parameters.
  11940. * @param {*} [options] Override http request option.
  11941. * @throws {RequiredError}
  11942. */
  11943. getPersonThumbnail(requestParameters: PersonApiGetPersonThumbnailRequest, options?: AxiosRequestConfig): AxiosPromise<File> {
  11944. return localVarFp.getPersonThumbnail(requestParameters.id, options).then((request) => request(axios, basePath));
  11945. },
  11946. /**
  11947. *
  11948. * @param {PersonApiMergePersonRequest} requestParameters Request parameters.
  11949. * @param {*} [options] Override http request option.
  11950. * @throws {RequiredError}
  11951. */
  11952. mergePerson(requestParameters: PersonApiMergePersonRequest, options?: AxiosRequestConfig): AxiosPromise<Array<BulkIdResponseDto>> {
  11953. return localVarFp.mergePerson(requestParameters.id, requestParameters.mergePersonDto, options).then((request) => request(axios, basePath));
  11954. },
  11955. /**
  11956. *
  11957. * @param {PersonApiUpdatePeopleRequest} requestParameters Request parameters.
  11958. * @param {*} [options] Override http request option.
  11959. * @throws {RequiredError}
  11960. */
  11961. updatePeople(requestParameters: PersonApiUpdatePeopleRequest, options?: AxiosRequestConfig): AxiosPromise<Array<BulkIdResponseDto>> {
  11962. return localVarFp.updatePeople(requestParameters.peopleUpdateDto, options).then((request) => request(axios, basePath));
  11963. },
  11964. /**
  11965. *
  11966. * @param {PersonApiUpdatePersonRequest} requestParameters Request parameters.
  11967. * @param {*} [options] Override http request option.
  11968. * @throws {RequiredError}
  11969. */
  11970. updatePerson(requestParameters: PersonApiUpdatePersonRequest, options?: AxiosRequestConfig): AxiosPromise<PersonResponseDto> {
  11971. return localVarFp.updatePerson(requestParameters.id, requestParameters.personUpdateDto, options).then((request) => request(axios, basePath));
  11972. },
  11973. };
  11974. };
  11975. /**
  11976. * Request parameters for getAllPeople operation in PersonApi.
  11977. * @export
  11978. * @interface PersonApiGetAllPeopleRequest
  11979. */
  11980. export interface PersonApiGetAllPeopleRequest {
  11981. /**
  11982. *
  11983. * @type {boolean}
  11984. * @memberof PersonApiGetAllPeople
  11985. */
  11986. readonly withHidden?: boolean
  11987. }
  11988. /**
  11989. * Request parameters for getPerson operation in PersonApi.
  11990. * @export
  11991. * @interface PersonApiGetPersonRequest
  11992. */
  11993. export interface PersonApiGetPersonRequest {
  11994. /**
  11995. *
  11996. * @type {string}
  11997. * @memberof PersonApiGetPerson
  11998. */
  11999. readonly id: string
  12000. }
  12001. /**
  12002. * Request parameters for getPersonAssets operation in PersonApi.
  12003. * @export
  12004. * @interface PersonApiGetPersonAssetsRequest
  12005. */
  12006. export interface PersonApiGetPersonAssetsRequest {
  12007. /**
  12008. *
  12009. * @type {string}
  12010. * @memberof PersonApiGetPersonAssets
  12011. */
  12012. readonly id: string
  12013. }
  12014. /**
  12015. * Request parameters for getPersonStatistics operation in PersonApi.
  12016. * @export
  12017. * @interface PersonApiGetPersonStatisticsRequest
  12018. */
  12019. export interface PersonApiGetPersonStatisticsRequest {
  12020. /**
  12021. *
  12022. * @type {string}
  12023. * @memberof PersonApiGetPersonStatistics
  12024. */
  12025. readonly id: string
  12026. }
  12027. /**
  12028. * Request parameters for getPersonThumbnail operation in PersonApi.
  12029. * @export
  12030. * @interface PersonApiGetPersonThumbnailRequest
  12031. */
  12032. export interface PersonApiGetPersonThumbnailRequest {
  12033. /**
  12034. *
  12035. * @type {string}
  12036. * @memberof PersonApiGetPersonThumbnail
  12037. */
  12038. readonly id: string
  12039. }
  12040. /**
  12041. * Request parameters for mergePerson operation in PersonApi.
  12042. * @export
  12043. * @interface PersonApiMergePersonRequest
  12044. */
  12045. export interface PersonApiMergePersonRequest {
  12046. /**
  12047. *
  12048. * @type {string}
  12049. * @memberof PersonApiMergePerson
  12050. */
  12051. readonly id: string
  12052. /**
  12053. *
  12054. * @type {MergePersonDto}
  12055. * @memberof PersonApiMergePerson
  12056. */
  12057. readonly mergePersonDto: MergePersonDto
  12058. }
  12059. /**
  12060. * Request parameters for updatePeople operation in PersonApi.
  12061. * @export
  12062. * @interface PersonApiUpdatePeopleRequest
  12063. */
  12064. export interface PersonApiUpdatePeopleRequest {
  12065. /**
  12066. *
  12067. * @type {PeopleUpdateDto}
  12068. * @memberof PersonApiUpdatePeople
  12069. */
  12070. readonly peopleUpdateDto: PeopleUpdateDto
  12071. }
  12072. /**
  12073. * Request parameters for updatePerson operation in PersonApi.
  12074. * @export
  12075. * @interface PersonApiUpdatePersonRequest
  12076. */
  12077. export interface PersonApiUpdatePersonRequest {
  12078. /**
  12079. *
  12080. * @type {string}
  12081. * @memberof PersonApiUpdatePerson
  12082. */
  12083. readonly id: string
  12084. /**
  12085. *
  12086. * @type {PersonUpdateDto}
  12087. * @memberof PersonApiUpdatePerson
  12088. */
  12089. readonly personUpdateDto: PersonUpdateDto
  12090. }
  12091. /**
  12092. * PersonApi - object-oriented interface
  12093. * @export
  12094. * @class PersonApi
  12095. * @extends {BaseAPI}
  12096. */
  12097. export class PersonApi extends BaseAPI {
  12098. /**
  12099. *
  12100. * @param {PersonApiGetAllPeopleRequest} requestParameters Request parameters.
  12101. * @param {*} [options] Override http request option.
  12102. * @throws {RequiredError}
  12103. * @memberof PersonApi
  12104. */
  12105. public getAllPeople(requestParameters: PersonApiGetAllPeopleRequest = {}, options?: AxiosRequestConfig) {
  12106. return PersonApiFp(this.configuration).getAllPeople(requestParameters.withHidden, options).then((request) => request(this.axios, this.basePath));
  12107. }
  12108. /**
  12109. *
  12110. * @param {PersonApiGetPersonRequest} requestParameters Request parameters.
  12111. * @param {*} [options] Override http request option.
  12112. * @throws {RequiredError}
  12113. * @memberof PersonApi
  12114. */
  12115. public getPerson(requestParameters: PersonApiGetPersonRequest, options?: AxiosRequestConfig) {
  12116. return PersonApiFp(this.configuration).getPerson(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  12117. }
  12118. /**
  12119. *
  12120. * @param {PersonApiGetPersonAssetsRequest} requestParameters Request parameters.
  12121. * @param {*} [options] Override http request option.
  12122. * @throws {RequiredError}
  12123. * @memberof PersonApi
  12124. */
  12125. public getPersonAssets(requestParameters: PersonApiGetPersonAssetsRequest, options?: AxiosRequestConfig) {
  12126. return PersonApiFp(this.configuration).getPersonAssets(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  12127. }
  12128. /**
  12129. *
  12130. * @param {PersonApiGetPersonStatisticsRequest} requestParameters Request parameters.
  12131. * @param {*} [options] Override http request option.
  12132. * @throws {RequiredError}
  12133. * @memberof PersonApi
  12134. */
  12135. public getPersonStatistics(requestParameters: PersonApiGetPersonStatisticsRequest, options?: AxiosRequestConfig) {
  12136. return PersonApiFp(this.configuration).getPersonStatistics(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  12137. }
  12138. /**
  12139. *
  12140. * @param {PersonApiGetPersonThumbnailRequest} requestParameters Request parameters.
  12141. * @param {*} [options] Override http request option.
  12142. * @throws {RequiredError}
  12143. * @memberof PersonApi
  12144. */
  12145. public getPersonThumbnail(requestParameters: PersonApiGetPersonThumbnailRequest, options?: AxiosRequestConfig) {
  12146. return PersonApiFp(this.configuration).getPersonThumbnail(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  12147. }
  12148. /**
  12149. *
  12150. * @param {PersonApiMergePersonRequest} requestParameters Request parameters.
  12151. * @param {*} [options] Override http request option.
  12152. * @throws {RequiredError}
  12153. * @memberof PersonApi
  12154. */
  12155. public mergePerson(requestParameters: PersonApiMergePersonRequest, options?: AxiosRequestConfig) {
  12156. return PersonApiFp(this.configuration).mergePerson(requestParameters.id, requestParameters.mergePersonDto, options).then((request) => request(this.axios, this.basePath));
  12157. }
  12158. /**
  12159. *
  12160. * @param {PersonApiUpdatePeopleRequest} requestParameters Request parameters.
  12161. * @param {*} [options] Override http request option.
  12162. * @throws {RequiredError}
  12163. * @memberof PersonApi
  12164. */
  12165. public updatePeople(requestParameters: PersonApiUpdatePeopleRequest, options?: AxiosRequestConfig) {
  12166. return PersonApiFp(this.configuration).updatePeople(requestParameters.peopleUpdateDto, options).then((request) => request(this.axios, this.basePath));
  12167. }
  12168. /**
  12169. *
  12170. * @param {PersonApiUpdatePersonRequest} requestParameters Request parameters.
  12171. * @param {*} [options] Override http request option.
  12172. * @throws {RequiredError}
  12173. * @memberof PersonApi
  12174. */
  12175. public updatePerson(requestParameters: PersonApiUpdatePersonRequest, options?: AxiosRequestConfig) {
  12176. return PersonApiFp(this.configuration).updatePerson(requestParameters.id, requestParameters.personUpdateDto, options).then((request) => request(this.axios, this.basePath));
  12177. }
  12178. }
  12179. /**
  12180. * SearchApi - axios parameter creator
  12181. * @export
  12182. */
  12183. export const SearchApiAxiosParamCreator = function (configuration?: Configuration) {
  12184. return {
  12185. /**
  12186. *
  12187. * @param {*} [options] Override http request option.
  12188. * @throws {RequiredError}
  12189. */
  12190. getExploreData: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  12191. const localVarPath = `/search/explore`;
  12192. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  12193. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  12194. let baseOptions;
  12195. if (configuration) {
  12196. baseOptions = configuration.baseOptions;
  12197. }
  12198. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  12199. const localVarHeaderParameter = {} as any;
  12200. const localVarQueryParameter = {} as any;
  12201. // authentication cookie required
  12202. // authentication api_key required
  12203. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  12204. // authentication bearer required
  12205. // http bearer authentication required
  12206. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  12207. setSearchParams(localVarUrlObj, localVarQueryParameter);
  12208. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  12209. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  12210. return {
  12211. url: toPathString(localVarUrlObj),
  12212. options: localVarRequestOptions,
  12213. };
  12214. },
  12215. /**
  12216. *
  12217. * @param {string} [q]
  12218. * @param {string} [query]
  12219. * @param {boolean} [clip]
  12220. * @param {'IMAGE' | 'VIDEO' | 'AUDIO' | 'OTHER'} [type]
  12221. * @param {boolean} [isFavorite]
  12222. * @param {boolean} [isArchived]
  12223. * @param {string} [exifInfoCity]
  12224. * @param {string} [exifInfoState]
  12225. * @param {string} [exifInfoCountry]
  12226. * @param {string} [exifInfoMake]
  12227. * @param {string} [exifInfoModel]
  12228. * @param {string} [exifInfoProjectionType]
  12229. * @param {Array<string>} [smartInfoObjects]
  12230. * @param {Array<string>} [smartInfoTags]
  12231. * @param {boolean} [recent]
  12232. * @param {boolean} [motion]
  12233. * @param {*} [options] Override http request option.
  12234. * @throws {RequiredError}
  12235. */
  12236. 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> => {
  12237. const localVarPath = `/search`;
  12238. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  12239. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  12240. let baseOptions;
  12241. if (configuration) {
  12242. baseOptions = configuration.baseOptions;
  12243. }
  12244. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  12245. const localVarHeaderParameter = {} as any;
  12246. const localVarQueryParameter = {} as any;
  12247. // authentication cookie required
  12248. // authentication api_key required
  12249. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  12250. // authentication bearer required
  12251. // http bearer authentication required
  12252. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  12253. if (q !== undefined) {
  12254. localVarQueryParameter['q'] = q;
  12255. }
  12256. if (query !== undefined) {
  12257. localVarQueryParameter['query'] = query;
  12258. }
  12259. if (clip !== undefined) {
  12260. localVarQueryParameter['clip'] = clip;
  12261. }
  12262. if (type !== undefined) {
  12263. localVarQueryParameter['type'] = type;
  12264. }
  12265. if (isFavorite !== undefined) {
  12266. localVarQueryParameter['isFavorite'] = isFavorite;
  12267. }
  12268. if (isArchived !== undefined) {
  12269. localVarQueryParameter['isArchived'] = isArchived;
  12270. }
  12271. if (exifInfoCity !== undefined) {
  12272. localVarQueryParameter['exifInfo.city'] = exifInfoCity;
  12273. }
  12274. if (exifInfoState !== undefined) {
  12275. localVarQueryParameter['exifInfo.state'] = exifInfoState;
  12276. }
  12277. if (exifInfoCountry !== undefined) {
  12278. localVarQueryParameter['exifInfo.country'] = exifInfoCountry;
  12279. }
  12280. if (exifInfoMake !== undefined) {
  12281. localVarQueryParameter['exifInfo.make'] = exifInfoMake;
  12282. }
  12283. if (exifInfoModel !== undefined) {
  12284. localVarQueryParameter['exifInfo.model'] = exifInfoModel;
  12285. }
  12286. if (exifInfoProjectionType !== undefined) {
  12287. localVarQueryParameter['exifInfo.projectionType'] = exifInfoProjectionType;
  12288. }
  12289. if (smartInfoObjects) {
  12290. localVarQueryParameter['smartInfo.objects'] = smartInfoObjects;
  12291. }
  12292. if (smartInfoTags) {
  12293. localVarQueryParameter['smartInfo.tags'] = smartInfoTags;
  12294. }
  12295. if (recent !== undefined) {
  12296. localVarQueryParameter['recent'] = recent;
  12297. }
  12298. if (motion !== undefined) {
  12299. localVarQueryParameter['motion'] = motion;
  12300. }
  12301. setSearchParams(localVarUrlObj, localVarQueryParameter);
  12302. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  12303. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  12304. return {
  12305. url: toPathString(localVarUrlObj),
  12306. options: localVarRequestOptions,
  12307. };
  12308. },
  12309. /**
  12310. *
  12311. * @param {string} name
  12312. * @param {boolean} [withHidden]
  12313. * @param {*} [options] Override http request option.
  12314. * @throws {RequiredError}
  12315. */
  12316. searchPerson: async (name: string, withHidden?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  12317. // verify required parameter 'name' is not null or undefined
  12318. assertParamExists('searchPerson', 'name', name)
  12319. const localVarPath = `/search/person`;
  12320. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  12321. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  12322. let baseOptions;
  12323. if (configuration) {
  12324. baseOptions = configuration.baseOptions;
  12325. }
  12326. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  12327. const localVarHeaderParameter = {} as any;
  12328. const localVarQueryParameter = {} as any;
  12329. // authentication cookie required
  12330. // authentication api_key required
  12331. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  12332. // authentication bearer required
  12333. // http bearer authentication required
  12334. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  12335. if (name !== undefined) {
  12336. localVarQueryParameter['name'] = name;
  12337. }
  12338. if (withHidden !== undefined) {
  12339. localVarQueryParameter['withHidden'] = withHidden;
  12340. }
  12341. setSearchParams(localVarUrlObj, localVarQueryParameter);
  12342. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  12343. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  12344. return {
  12345. url: toPathString(localVarUrlObj),
  12346. options: localVarRequestOptions,
  12347. };
  12348. },
  12349. }
  12350. };
  12351. /**
  12352. * SearchApi - functional programming interface
  12353. * @export
  12354. */
  12355. export const SearchApiFp = function(configuration?: Configuration) {
  12356. const localVarAxiosParamCreator = SearchApiAxiosParamCreator(configuration)
  12357. return {
  12358. /**
  12359. *
  12360. * @param {*} [options] Override http request option.
  12361. * @throws {RequiredError}
  12362. */
  12363. async getExploreData(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<SearchExploreResponseDto>>> {
  12364. const localVarAxiosArgs = await localVarAxiosParamCreator.getExploreData(options);
  12365. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12366. },
  12367. /**
  12368. *
  12369. * @param {string} [q]
  12370. * @param {string} [query]
  12371. * @param {boolean} [clip]
  12372. * @param {'IMAGE' | 'VIDEO' | 'AUDIO' | 'OTHER'} [type]
  12373. * @param {boolean} [isFavorite]
  12374. * @param {boolean} [isArchived]
  12375. * @param {string} [exifInfoCity]
  12376. * @param {string} [exifInfoState]
  12377. * @param {string} [exifInfoCountry]
  12378. * @param {string} [exifInfoMake]
  12379. * @param {string} [exifInfoModel]
  12380. * @param {string} [exifInfoProjectionType]
  12381. * @param {Array<string>} [smartInfoObjects]
  12382. * @param {Array<string>} [smartInfoTags]
  12383. * @param {boolean} [recent]
  12384. * @param {boolean} [motion]
  12385. * @param {*} [options] Override http request option.
  12386. * @throws {RequiredError}
  12387. */
  12388. 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>> {
  12389. const localVarAxiosArgs = await localVarAxiosParamCreator.search(q, query, clip, type, isFavorite, isArchived, exifInfoCity, exifInfoState, exifInfoCountry, exifInfoMake, exifInfoModel, exifInfoProjectionType, smartInfoObjects, smartInfoTags, recent, motion, options);
  12390. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12391. },
  12392. /**
  12393. *
  12394. * @param {string} name
  12395. * @param {boolean} [withHidden]
  12396. * @param {*} [options] Override http request option.
  12397. * @throws {RequiredError}
  12398. */
  12399. async searchPerson(name: string, withHidden?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<PersonResponseDto>>> {
  12400. const localVarAxiosArgs = await localVarAxiosParamCreator.searchPerson(name, withHidden, options);
  12401. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12402. },
  12403. }
  12404. };
  12405. /**
  12406. * SearchApi - factory interface
  12407. * @export
  12408. */
  12409. export const SearchApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  12410. const localVarFp = SearchApiFp(configuration)
  12411. return {
  12412. /**
  12413. *
  12414. * @param {*} [options] Override http request option.
  12415. * @throws {RequiredError}
  12416. */
  12417. getExploreData(options?: AxiosRequestConfig): AxiosPromise<Array<SearchExploreResponseDto>> {
  12418. return localVarFp.getExploreData(options).then((request) => request(axios, basePath));
  12419. },
  12420. /**
  12421. *
  12422. * @param {SearchApiSearchRequest} requestParameters Request parameters.
  12423. * @param {*} [options] Override http request option.
  12424. * @throws {RequiredError}
  12425. */
  12426. search(requestParameters: SearchApiSearchRequest = {}, options?: AxiosRequestConfig): AxiosPromise<SearchResponseDto> {
  12427. 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));
  12428. },
  12429. /**
  12430. *
  12431. * @param {SearchApiSearchPersonRequest} requestParameters Request parameters.
  12432. * @param {*} [options] Override http request option.
  12433. * @throws {RequiredError}
  12434. */
  12435. searchPerson(requestParameters: SearchApiSearchPersonRequest, options?: AxiosRequestConfig): AxiosPromise<Array<PersonResponseDto>> {
  12436. return localVarFp.searchPerson(requestParameters.name, requestParameters.withHidden, options).then((request) => request(axios, basePath));
  12437. },
  12438. };
  12439. };
  12440. /**
  12441. * Request parameters for search operation in SearchApi.
  12442. * @export
  12443. * @interface SearchApiSearchRequest
  12444. */
  12445. export interface SearchApiSearchRequest {
  12446. /**
  12447. *
  12448. * @type {string}
  12449. * @memberof SearchApiSearch
  12450. */
  12451. readonly q?: string
  12452. /**
  12453. *
  12454. * @type {string}
  12455. * @memberof SearchApiSearch
  12456. */
  12457. readonly query?: string
  12458. /**
  12459. *
  12460. * @type {boolean}
  12461. * @memberof SearchApiSearch
  12462. */
  12463. readonly clip?: boolean
  12464. /**
  12465. *
  12466. * @type {'IMAGE' | 'VIDEO' | 'AUDIO' | 'OTHER'}
  12467. * @memberof SearchApiSearch
  12468. */
  12469. readonly type?: 'IMAGE' | 'VIDEO' | 'AUDIO' | 'OTHER'
  12470. /**
  12471. *
  12472. * @type {boolean}
  12473. * @memberof SearchApiSearch
  12474. */
  12475. readonly isFavorite?: boolean
  12476. /**
  12477. *
  12478. * @type {boolean}
  12479. * @memberof SearchApiSearch
  12480. */
  12481. readonly isArchived?: boolean
  12482. /**
  12483. *
  12484. * @type {string}
  12485. * @memberof SearchApiSearch
  12486. */
  12487. readonly exifInfoCity?: string
  12488. /**
  12489. *
  12490. * @type {string}
  12491. * @memberof SearchApiSearch
  12492. */
  12493. readonly exifInfoState?: string
  12494. /**
  12495. *
  12496. * @type {string}
  12497. * @memberof SearchApiSearch
  12498. */
  12499. readonly exifInfoCountry?: string
  12500. /**
  12501. *
  12502. * @type {string}
  12503. * @memberof SearchApiSearch
  12504. */
  12505. readonly exifInfoMake?: string
  12506. /**
  12507. *
  12508. * @type {string}
  12509. * @memberof SearchApiSearch
  12510. */
  12511. readonly exifInfoModel?: string
  12512. /**
  12513. *
  12514. * @type {string}
  12515. * @memberof SearchApiSearch
  12516. */
  12517. readonly exifInfoProjectionType?: string
  12518. /**
  12519. *
  12520. * @type {Array<string>}
  12521. * @memberof SearchApiSearch
  12522. */
  12523. readonly smartInfoObjects?: Array<string>
  12524. /**
  12525. *
  12526. * @type {Array<string>}
  12527. * @memberof SearchApiSearch
  12528. */
  12529. readonly smartInfoTags?: Array<string>
  12530. /**
  12531. *
  12532. * @type {boolean}
  12533. * @memberof SearchApiSearch
  12534. */
  12535. readonly recent?: boolean
  12536. /**
  12537. *
  12538. * @type {boolean}
  12539. * @memberof SearchApiSearch
  12540. */
  12541. readonly motion?: boolean
  12542. }
  12543. /**
  12544. * Request parameters for searchPerson operation in SearchApi.
  12545. * @export
  12546. * @interface SearchApiSearchPersonRequest
  12547. */
  12548. export interface SearchApiSearchPersonRequest {
  12549. /**
  12550. *
  12551. * @type {string}
  12552. * @memberof SearchApiSearchPerson
  12553. */
  12554. readonly name: string
  12555. /**
  12556. *
  12557. * @type {boolean}
  12558. * @memberof SearchApiSearchPerson
  12559. */
  12560. readonly withHidden?: boolean
  12561. }
  12562. /**
  12563. * SearchApi - object-oriented interface
  12564. * @export
  12565. * @class SearchApi
  12566. * @extends {BaseAPI}
  12567. */
  12568. export class SearchApi extends BaseAPI {
  12569. /**
  12570. *
  12571. * @param {*} [options] Override http request option.
  12572. * @throws {RequiredError}
  12573. * @memberof SearchApi
  12574. */
  12575. public getExploreData(options?: AxiosRequestConfig) {
  12576. return SearchApiFp(this.configuration).getExploreData(options).then((request) => request(this.axios, this.basePath));
  12577. }
  12578. /**
  12579. *
  12580. * @param {SearchApiSearchRequest} requestParameters Request parameters.
  12581. * @param {*} [options] Override http request option.
  12582. * @throws {RequiredError}
  12583. * @memberof SearchApi
  12584. */
  12585. public search(requestParameters: SearchApiSearchRequest = {}, options?: AxiosRequestConfig) {
  12586. 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));
  12587. }
  12588. /**
  12589. *
  12590. * @param {SearchApiSearchPersonRequest} requestParameters Request parameters.
  12591. * @param {*} [options] Override http request option.
  12592. * @throws {RequiredError}
  12593. * @memberof SearchApi
  12594. */
  12595. public searchPerson(requestParameters: SearchApiSearchPersonRequest, options?: AxiosRequestConfig) {
  12596. return SearchApiFp(this.configuration).searchPerson(requestParameters.name, requestParameters.withHidden, options).then((request) => request(this.axios, this.basePath));
  12597. }
  12598. }
  12599. /**
  12600. * ServerInfoApi - axios parameter creator
  12601. * @export
  12602. */
  12603. export const ServerInfoApiAxiosParamCreator = function (configuration?: Configuration) {
  12604. return {
  12605. /**
  12606. *
  12607. * @param {*} [options] Override http request option.
  12608. * @throws {RequiredError}
  12609. */
  12610. getServerConfig: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  12611. const localVarPath = `/server-info/config`;
  12612. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  12613. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  12614. let baseOptions;
  12615. if (configuration) {
  12616. baseOptions = configuration.baseOptions;
  12617. }
  12618. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  12619. const localVarHeaderParameter = {} as any;
  12620. const localVarQueryParameter = {} as any;
  12621. setSearchParams(localVarUrlObj, localVarQueryParameter);
  12622. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  12623. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  12624. return {
  12625. url: toPathString(localVarUrlObj),
  12626. options: localVarRequestOptions,
  12627. };
  12628. },
  12629. /**
  12630. *
  12631. * @param {*} [options] Override http request option.
  12632. * @throws {RequiredError}
  12633. */
  12634. getServerFeatures: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  12635. const localVarPath = `/server-info/features`;
  12636. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  12637. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  12638. let baseOptions;
  12639. if (configuration) {
  12640. baseOptions = configuration.baseOptions;
  12641. }
  12642. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  12643. const localVarHeaderParameter = {} as any;
  12644. const localVarQueryParameter = {} as any;
  12645. setSearchParams(localVarUrlObj, localVarQueryParameter);
  12646. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  12647. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  12648. return {
  12649. url: toPathString(localVarUrlObj),
  12650. options: localVarRequestOptions,
  12651. };
  12652. },
  12653. /**
  12654. *
  12655. * @param {*} [options] Override http request option.
  12656. * @throws {RequiredError}
  12657. */
  12658. getServerInfo: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  12659. const localVarPath = `/server-info`;
  12660. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  12661. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  12662. let baseOptions;
  12663. if (configuration) {
  12664. baseOptions = configuration.baseOptions;
  12665. }
  12666. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  12667. const localVarHeaderParameter = {} as any;
  12668. const localVarQueryParameter = {} as any;
  12669. // authentication cookie required
  12670. // authentication api_key required
  12671. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  12672. // authentication bearer required
  12673. // http bearer authentication required
  12674. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  12675. setSearchParams(localVarUrlObj, localVarQueryParameter);
  12676. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  12677. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  12678. return {
  12679. url: toPathString(localVarUrlObj),
  12680. options: localVarRequestOptions,
  12681. };
  12682. },
  12683. /**
  12684. *
  12685. * @param {*} [options] Override http request option.
  12686. * @throws {RequiredError}
  12687. */
  12688. getServerStatistics: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  12689. const localVarPath = `/server-info/statistics`;
  12690. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  12691. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  12692. let baseOptions;
  12693. if (configuration) {
  12694. baseOptions = configuration.baseOptions;
  12695. }
  12696. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  12697. const localVarHeaderParameter = {} as any;
  12698. const localVarQueryParameter = {} as any;
  12699. // authentication cookie required
  12700. // authentication api_key required
  12701. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  12702. // authentication bearer required
  12703. // http bearer authentication required
  12704. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  12705. setSearchParams(localVarUrlObj, localVarQueryParameter);
  12706. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  12707. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  12708. return {
  12709. url: toPathString(localVarUrlObj),
  12710. options: localVarRequestOptions,
  12711. };
  12712. },
  12713. /**
  12714. *
  12715. * @param {*} [options] Override http request option.
  12716. * @throws {RequiredError}
  12717. */
  12718. getServerVersion: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  12719. const localVarPath = `/server-info/version`;
  12720. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  12721. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  12722. let baseOptions;
  12723. if (configuration) {
  12724. baseOptions = configuration.baseOptions;
  12725. }
  12726. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  12727. const localVarHeaderParameter = {} as any;
  12728. const localVarQueryParameter = {} as any;
  12729. setSearchParams(localVarUrlObj, localVarQueryParameter);
  12730. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  12731. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  12732. return {
  12733. url: toPathString(localVarUrlObj),
  12734. options: localVarRequestOptions,
  12735. };
  12736. },
  12737. /**
  12738. *
  12739. * @param {*} [options] Override http request option.
  12740. * @throws {RequiredError}
  12741. */
  12742. getSupportedMediaTypes: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  12743. const localVarPath = `/server-info/media-types`;
  12744. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  12745. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  12746. let baseOptions;
  12747. if (configuration) {
  12748. baseOptions = configuration.baseOptions;
  12749. }
  12750. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  12751. const localVarHeaderParameter = {} as any;
  12752. const localVarQueryParameter = {} as any;
  12753. setSearchParams(localVarUrlObj, localVarQueryParameter);
  12754. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  12755. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  12756. return {
  12757. url: toPathString(localVarUrlObj),
  12758. options: localVarRequestOptions,
  12759. };
  12760. },
  12761. /**
  12762. *
  12763. * @param {*} [options] Override http request option.
  12764. * @throws {RequiredError}
  12765. */
  12766. getTheme: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  12767. const localVarPath = `/server-info/theme`;
  12768. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  12769. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  12770. let baseOptions;
  12771. if (configuration) {
  12772. baseOptions = configuration.baseOptions;
  12773. }
  12774. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  12775. const localVarHeaderParameter = {} as any;
  12776. const localVarQueryParameter = {} as any;
  12777. setSearchParams(localVarUrlObj, localVarQueryParameter);
  12778. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  12779. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  12780. return {
  12781. url: toPathString(localVarUrlObj),
  12782. options: localVarRequestOptions,
  12783. };
  12784. },
  12785. /**
  12786. *
  12787. * @param {*} [options] Override http request option.
  12788. * @throws {RequiredError}
  12789. */
  12790. pingServer: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  12791. const localVarPath = `/server-info/ping`;
  12792. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  12793. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  12794. let baseOptions;
  12795. if (configuration) {
  12796. baseOptions = configuration.baseOptions;
  12797. }
  12798. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  12799. const localVarHeaderParameter = {} as any;
  12800. const localVarQueryParameter = {} as any;
  12801. setSearchParams(localVarUrlObj, localVarQueryParameter);
  12802. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  12803. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  12804. return {
  12805. url: toPathString(localVarUrlObj),
  12806. options: localVarRequestOptions,
  12807. };
  12808. },
  12809. }
  12810. };
  12811. /**
  12812. * ServerInfoApi - functional programming interface
  12813. * @export
  12814. */
  12815. export const ServerInfoApiFp = function(configuration?: Configuration) {
  12816. const localVarAxiosParamCreator = ServerInfoApiAxiosParamCreator(configuration)
  12817. return {
  12818. /**
  12819. *
  12820. * @param {*} [options] Override http request option.
  12821. * @throws {RequiredError}
  12822. */
  12823. async getServerConfig(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServerConfigDto>> {
  12824. const localVarAxiosArgs = await localVarAxiosParamCreator.getServerConfig(options);
  12825. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12826. },
  12827. /**
  12828. *
  12829. * @param {*} [options] Override http request option.
  12830. * @throws {RequiredError}
  12831. */
  12832. async getServerFeatures(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServerFeaturesDto>> {
  12833. const localVarAxiosArgs = await localVarAxiosParamCreator.getServerFeatures(options);
  12834. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12835. },
  12836. /**
  12837. *
  12838. * @param {*} [options] Override http request option.
  12839. * @throws {RequiredError}
  12840. */
  12841. async getServerInfo(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServerInfoResponseDto>> {
  12842. const localVarAxiosArgs = await localVarAxiosParamCreator.getServerInfo(options);
  12843. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12844. },
  12845. /**
  12846. *
  12847. * @param {*} [options] Override http request option.
  12848. * @throws {RequiredError}
  12849. */
  12850. async getServerStatistics(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServerStatsResponseDto>> {
  12851. const localVarAxiosArgs = await localVarAxiosParamCreator.getServerStatistics(options);
  12852. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12853. },
  12854. /**
  12855. *
  12856. * @param {*} [options] Override http request option.
  12857. * @throws {RequiredError}
  12858. */
  12859. async getServerVersion(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServerVersionResponseDto>> {
  12860. const localVarAxiosArgs = await localVarAxiosParamCreator.getServerVersion(options);
  12861. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12862. },
  12863. /**
  12864. *
  12865. * @param {*} [options] Override http request option.
  12866. * @throws {RequiredError}
  12867. */
  12868. async getSupportedMediaTypes(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServerMediaTypesResponseDto>> {
  12869. const localVarAxiosArgs = await localVarAxiosParamCreator.getSupportedMediaTypes(options);
  12870. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12871. },
  12872. /**
  12873. *
  12874. * @param {*} [options] Override http request option.
  12875. * @throws {RequiredError}
  12876. */
  12877. async getTheme(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServerThemeDto>> {
  12878. const localVarAxiosArgs = await localVarAxiosParamCreator.getTheme(options);
  12879. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12880. },
  12881. /**
  12882. *
  12883. * @param {*} [options] Override http request option.
  12884. * @throws {RequiredError}
  12885. */
  12886. async pingServer(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServerPingResponse>> {
  12887. const localVarAxiosArgs = await localVarAxiosParamCreator.pingServer(options);
  12888. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12889. },
  12890. }
  12891. };
  12892. /**
  12893. * ServerInfoApi - factory interface
  12894. * @export
  12895. */
  12896. export const ServerInfoApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  12897. const localVarFp = ServerInfoApiFp(configuration)
  12898. return {
  12899. /**
  12900. *
  12901. * @param {*} [options] Override http request option.
  12902. * @throws {RequiredError}
  12903. */
  12904. getServerConfig(options?: AxiosRequestConfig): AxiosPromise<ServerConfigDto> {
  12905. return localVarFp.getServerConfig(options).then((request) => request(axios, basePath));
  12906. },
  12907. /**
  12908. *
  12909. * @param {*} [options] Override http request option.
  12910. * @throws {RequiredError}
  12911. */
  12912. getServerFeatures(options?: AxiosRequestConfig): AxiosPromise<ServerFeaturesDto> {
  12913. return localVarFp.getServerFeatures(options).then((request) => request(axios, basePath));
  12914. },
  12915. /**
  12916. *
  12917. * @param {*} [options] Override http request option.
  12918. * @throws {RequiredError}
  12919. */
  12920. getServerInfo(options?: AxiosRequestConfig): AxiosPromise<ServerInfoResponseDto> {
  12921. return localVarFp.getServerInfo(options).then((request) => request(axios, basePath));
  12922. },
  12923. /**
  12924. *
  12925. * @param {*} [options] Override http request option.
  12926. * @throws {RequiredError}
  12927. */
  12928. getServerStatistics(options?: AxiosRequestConfig): AxiosPromise<ServerStatsResponseDto> {
  12929. return localVarFp.getServerStatistics(options).then((request) => request(axios, basePath));
  12930. },
  12931. /**
  12932. *
  12933. * @param {*} [options] Override http request option.
  12934. * @throws {RequiredError}
  12935. */
  12936. getServerVersion(options?: AxiosRequestConfig): AxiosPromise<ServerVersionResponseDto> {
  12937. return localVarFp.getServerVersion(options).then((request) => request(axios, basePath));
  12938. },
  12939. /**
  12940. *
  12941. * @param {*} [options] Override http request option.
  12942. * @throws {RequiredError}
  12943. */
  12944. getSupportedMediaTypes(options?: AxiosRequestConfig): AxiosPromise<ServerMediaTypesResponseDto> {
  12945. return localVarFp.getSupportedMediaTypes(options).then((request) => request(axios, basePath));
  12946. },
  12947. /**
  12948. *
  12949. * @param {*} [options] Override http request option.
  12950. * @throws {RequiredError}
  12951. */
  12952. getTheme(options?: AxiosRequestConfig): AxiosPromise<ServerThemeDto> {
  12953. return localVarFp.getTheme(options).then((request) => request(axios, basePath));
  12954. },
  12955. /**
  12956. *
  12957. * @param {*} [options] Override http request option.
  12958. * @throws {RequiredError}
  12959. */
  12960. pingServer(options?: AxiosRequestConfig): AxiosPromise<ServerPingResponse> {
  12961. return localVarFp.pingServer(options).then((request) => request(axios, basePath));
  12962. },
  12963. };
  12964. };
  12965. /**
  12966. * ServerInfoApi - object-oriented interface
  12967. * @export
  12968. * @class ServerInfoApi
  12969. * @extends {BaseAPI}
  12970. */
  12971. export class ServerInfoApi extends BaseAPI {
  12972. /**
  12973. *
  12974. * @param {*} [options] Override http request option.
  12975. * @throws {RequiredError}
  12976. * @memberof ServerInfoApi
  12977. */
  12978. public getServerConfig(options?: AxiosRequestConfig) {
  12979. return ServerInfoApiFp(this.configuration).getServerConfig(options).then((request) => request(this.axios, this.basePath));
  12980. }
  12981. /**
  12982. *
  12983. * @param {*} [options] Override http request option.
  12984. * @throws {RequiredError}
  12985. * @memberof ServerInfoApi
  12986. */
  12987. public getServerFeatures(options?: AxiosRequestConfig) {
  12988. return ServerInfoApiFp(this.configuration).getServerFeatures(options).then((request) => request(this.axios, this.basePath));
  12989. }
  12990. /**
  12991. *
  12992. * @param {*} [options] Override http request option.
  12993. * @throws {RequiredError}
  12994. * @memberof ServerInfoApi
  12995. */
  12996. public getServerInfo(options?: AxiosRequestConfig) {
  12997. return ServerInfoApiFp(this.configuration).getServerInfo(options).then((request) => request(this.axios, this.basePath));
  12998. }
  12999. /**
  13000. *
  13001. * @param {*} [options] Override http request option.
  13002. * @throws {RequiredError}
  13003. * @memberof ServerInfoApi
  13004. */
  13005. public getServerStatistics(options?: AxiosRequestConfig) {
  13006. return ServerInfoApiFp(this.configuration).getServerStatistics(options).then((request) => request(this.axios, this.basePath));
  13007. }
  13008. /**
  13009. *
  13010. * @param {*} [options] Override http request option.
  13011. * @throws {RequiredError}
  13012. * @memberof ServerInfoApi
  13013. */
  13014. public getServerVersion(options?: AxiosRequestConfig) {
  13015. return ServerInfoApiFp(this.configuration).getServerVersion(options).then((request) => request(this.axios, this.basePath));
  13016. }
  13017. /**
  13018. *
  13019. * @param {*} [options] Override http request option.
  13020. * @throws {RequiredError}
  13021. * @memberof ServerInfoApi
  13022. */
  13023. public getSupportedMediaTypes(options?: AxiosRequestConfig) {
  13024. return ServerInfoApiFp(this.configuration).getSupportedMediaTypes(options).then((request) => request(this.axios, this.basePath));
  13025. }
  13026. /**
  13027. *
  13028. * @param {*} [options] Override http request option.
  13029. * @throws {RequiredError}
  13030. * @memberof ServerInfoApi
  13031. */
  13032. public getTheme(options?: AxiosRequestConfig) {
  13033. return ServerInfoApiFp(this.configuration).getTheme(options).then((request) => request(this.axios, this.basePath));
  13034. }
  13035. /**
  13036. *
  13037. * @param {*} [options] Override http request option.
  13038. * @throws {RequiredError}
  13039. * @memberof ServerInfoApi
  13040. */
  13041. public pingServer(options?: AxiosRequestConfig) {
  13042. return ServerInfoApiFp(this.configuration).pingServer(options).then((request) => request(this.axios, this.basePath));
  13043. }
  13044. }
  13045. /**
  13046. * SharedLinkApi - axios parameter creator
  13047. * @export
  13048. */
  13049. export const SharedLinkApiAxiosParamCreator = function (configuration?: Configuration) {
  13050. return {
  13051. /**
  13052. *
  13053. * @param {string} id
  13054. * @param {AssetIdsDto} assetIdsDto
  13055. * @param {string} [key]
  13056. * @param {*} [options] Override http request option.
  13057. * @throws {RequiredError}
  13058. */
  13059. addSharedLinkAssets: async (id: string, assetIdsDto: AssetIdsDto, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13060. // verify required parameter 'id' is not null or undefined
  13061. assertParamExists('addSharedLinkAssets', 'id', id)
  13062. // verify required parameter 'assetIdsDto' is not null or undefined
  13063. assertParamExists('addSharedLinkAssets', 'assetIdsDto', assetIdsDto)
  13064. const localVarPath = `/shared-link/{id}/assets`
  13065. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  13066. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13067. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13068. let baseOptions;
  13069. if (configuration) {
  13070. baseOptions = configuration.baseOptions;
  13071. }
  13072. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  13073. const localVarHeaderParameter = {} as any;
  13074. const localVarQueryParameter = {} as any;
  13075. // authentication cookie required
  13076. // authentication api_key required
  13077. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13078. // authentication bearer required
  13079. // http bearer authentication required
  13080. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13081. if (key !== undefined) {
  13082. localVarQueryParameter['key'] = key;
  13083. }
  13084. localVarHeaderParameter['Content-Type'] = 'application/json';
  13085. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13086. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13087. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13088. localVarRequestOptions.data = serializeDataIfNeeded(assetIdsDto, localVarRequestOptions, configuration)
  13089. return {
  13090. url: toPathString(localVarUrlObj),
  13091. options: localVarRequestOptions,
  13092. };
  13093. },
  13094. /**
  13095. *
  13096. * @param {SharedLinkCreateDto} sharedLinkCreateDto
  13097. * @param {*} [options] Override http request option.
  13098. * @throws {RequiredError}
  13099. */
  13100. createSharedLink: async (sharedLinkCreateDto: SharedLinkCreateDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13101. // verify required parameter 'sharedLinkCreateDto' is not null or undefined
  13102. assertParamExists('createSharedLink', 'sharedLinkCreateDto', sharedLinkCreateDto)
  13103. const localVarPath = `/shared-link`;
  13104. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13105. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13106. let baseOptions;
  13107. if (configuration) {
  13108. baseOptions = configuration.baseOptions;
  13109. }
  13110. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  13111. const localVarHeaderParameter = {} as any;
  13112. const localVarQueryParameter = {} as any;
  13113. // authentication cookie required
  13114. // authentication api_key required
  13115. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13116. // authentication bearer required
  13117. // http bearer authentication required
  13118. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13119. localVarHeaderParameter['Content-Type'] = 'application/json';
  13120. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13121. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13122. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13123. localVarRequestOptions.data = serializeDataIfNeeded(sharedLinkCreateDto, localVarRequestOptions, configuration)
  13124. return {
  13125. url: toPathString(localVarUrlObj),
  13126. options: localVarRequestOptions,
  13127. };
  13128. },
  13129. /**
  13130. *
  13131. * @param {*} [options] Override http request option.
  13132. * @throws {RequiredError}
  13133. */
  13134. getAllSharedLinks: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13135. const localVarPath = `/shared-link`;
  13136. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13137. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13138. let baseOptions;
  13139. if (configuration) {
  13140. baseOptions = configuration.baseOptions;
  13141. }
  13142. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  13143. const localVarHeaderParameter = {} as any;
  13144. const localVarQueryParameter = {} as any;
  13145. // authentication cookie required
  13146. // authentication api_key required
  13147. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13148. // authentication bearer required
  13149. // http bearer authentication required
  13150. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13151. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13152. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13153. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13154. return {
  13155. url: toPathString(localVarUrlObj),
  13156. options: localVarRequestOptions,
  13157. };
  13158. },
  13159. /**
  13160. *
  13161. * @param {string} [password]
  13162. * @param {string} [token]
  13163. * @param {string} [key]
  13164. * @param {*} [options] Override http request option.
  13165. * @throws {RequiredError}
  13166. */
  13167. getMySharedLink: async (password?: string, token?: string, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13168. const localVarPath = `/shared-link/me`;
  13169. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13170. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13171. let baseOptions;
  13172. if (configuration) {
  13173. baseOptions = configuration.baseOptions;
  13174. }
  13175. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  13176. const localVarHeaderParameter = {} as any;
  13177. const localVarQueryParameter = {} as any;
  13178. // authentication cookie required
  13179. // authentication api_key required
  13180. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13181. // authentication bearer required
  13182. // http bearer authentication required
  13183. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13184. if (password !== undefined) {
  13185. localVarQueryParameter['password'] = password;
  13186. }
  13187. if (token !== undefined) {
  13188. localVarQueryParameter['token'] = token;
  13189. }
  13190. if (key !== undefined) {
  13191. localVarQueryParameter['key'] = key;
  13192. }
  13193. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13194. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13195. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13196. return {
  13197. url: toPathString(localVarUrlObj),
  13198. options: localVarRequestOptions,
  13199. };
  13200. },
  13201. /**
  13202. *
  13203. * @param {string} id
  13204. * @param {*} [options] Override http request option.
  13205. * @throws {RequiredError}
  13206. */
  13207. getSharedLinkById: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13208. // verify required parameter 'id' is not null or undefined
  13209. assertParamExists('getSharedLinkById', 'id', id)
  13210. const localVarPath = `/shared-link/{id}`
  13211. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  13212. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13213. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13214. let baseOptions;
  13215. if (configuration) {
  13216. baseOptions = configuration.baseOptions;
  13217. }
  13218. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  13219. const localVarHeaderParameter = {} as any;
  13220. const localVarQueryParameter = {} as any;
  13221. // authentication cookie required
  13222. // authentication api_key required
  13223. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13224. // authentication bearer required
  13225. // http bearer authentication required
  13226. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13227. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13228. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13229. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13230. return {
  13231. url: toPathString(localVarUrlObj),
  13232. options: localVarRequestOptions,
  13233. };
  13234. },
  13235. /**
  13236. *
  13237. * @param {string} id
  13238. * @param {*} [options] Override http request option.
  13239. * @throws {RequiredError}
  13240. */
  13241. removeSharedLink: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13242. // verify required parameter 'id' is not null or undefined
  13243. assertParamExists('removeSharedLink', 'id', id)
  13244. const localVarPath = `/shared-link/{id}`
  13245. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  13246. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13247. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13248. let baseOptions;
  13249. if (configuration) {
  13250. baseOptions = configuration.baseOptions;
  13251. }
  13252. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  13253. const localVarHeaderParameter = {} as any;
  13254. const localVarQueryParameter = {} as any;
  13255. // authentication cookie required
  13256. // authentication api_key required
  13257. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13258. // authentication bearer required
  13259. // http bearer authentication required
  13260. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13261. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13262. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13263. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13264. return {
  13265. url: toPathString(localVarUrlObj),
  13266. options: localVarRequestOptions,
  13267. };
  13268. },
  13269. /**
  13270. *
  13271. * @param {string} id
  13272. * @param {AssetIdsDto} assetIdsDto
  13273. * @param {string} [key]
  13274. * @param {*} [options] Override http request option.
  13275. * @throws {RequiredError}
  13276. */
  13277. removeSharedLinkAssets: async (id: string, assetIdsDto: AssetIdsDto, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13278. // verify required parameter 'id' is not null or undefined
  13279. assertParamExists('removeSharedLinkAssets', 'id', id)
  13280. // verify required parameter 'assetIdsDto' is not null or undefined
  13281. assertParamExists('removeSharedLinkAssets', 'assetIdsDto', assetIdsDto)
  13282. const localVarPath = `/shared-link/{id}/assets`
  13283. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  13284. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13285. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13286. let baseOptions;
  13287. if (configuration) {
  13288. baseOptions = configuration.baseOptions;
  13289. }
  13290. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  13291. const localVarHeaderParameter = {} as any;
  13292. const localVarQueryParameter = {} as any;
  13293. // authentication cookie required
  13294. // authentication api_key required
  13295. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13296. // authentication bearer required
  13297. // http bearer authentication required
  13298. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13299. if (key !== undefined) {
  13300. localVarQueryParameter['key'] = key;
  13301. }
  13302. localVarHeaderParameter['Content-Type'] = 'application/json';
  13303. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13304. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13305. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13306. localVarRequestOptions.data = serializeDataIfNeeded(assetIdsDto, localVarRequestOptions, configuration)
  13307. return {
  13308. url: toPathString(localVarUrlObj),
  13309. options: localVarRequestOptions,
  13310. };
  13311. },
  13312. /**
  13313. *
  13314. * @param {string} id
  13315. * @param {SharedLinkEditDto} sharedLinkEditDto
  13316. * @param {*} [options] Override http request option.
  13317. * @throws {RequiredError}
  13318. */
  13319. updateSharedLink: async (id: string, sharedLinkEditDto: SharedLinkEditDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13320. // verify required parameter 'id' is not null or undefined
  13321. assertParamExists('updateSharedLink', 'id', id)
  13322. // verify required parameter 'sharedLinkEditDto' is not null or undefined
  13323. assertParamExists('updateSharedLink', 'sharedLinkEditDto', sharedLinkEditDto)
  13324. const localVarPath = `/shared-link/{id}`
  13325. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  13326. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13327. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13328. let baseOptions;
  13329. if (configuration) {
  13330. baseOptions = configuration.baseOptions;
  13331. }
  13332. const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
  13333. const localVarHeaderParameter = {} as any;
  13334. const localVarQueryParameter = {} as any;
  13335. // authentication cookie required
  13336. // authentication api_key required
  13337. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13338. // authentication bearer required
  13339. // http bearer authentication required
  13340. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13341. localVarHeaderParameter['Content-Type'] = 'application/json';
  13342. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13343. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13344. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13345. localVarRequestOptions.data = serializeDataIfNeeded(sharedLinkEditDto, localVarRequestOptions, configuration)
  13346. return {
  13347. url: toPathString(localVarUrlObj),
  13348. options: localVarRequestOptions,
  13349. };
  13350. },
  13351. }
  13352. };
  13353. /**
  13354. * SharedLinkApi - functional programming interface
  13355. * @export
  13356. */
  13357. export const SharedLinkApiFp = function(configuration?: Configuration) {
  13358. const localVarAxiosParamCreator = SharedLinkApiAxiosParamCreator(configuration)
  13359. return {
  13360. /**
  13361. *
  13362. * @param {string} id
  13363. * @param {AssetIdsDto} assetIdsDto
  13364. * @param {string} [key]
  13365. * @param {*} [options] Override http request option.
  13366. * @throws {RequiredError}
  13367. */
  13368. async addSharedLinkAssets(id: string, assetIdsDto: AssetIdsDto, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetIdsResponseDto>>> {
  13369. const localVarAxiosArgs = await localVarAxiosParamCreator.addSharedLinkAssets(id, assetIdsDto, key, options);
  13370. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13371. },
  13372. /**
  13373. *
  13374. * @param {SharedLinkCreateDto} sharedLinkCreateDto
  13375. * @param {*} [options] Override http request option.
  13376. * @throws {RequiredError}
  13377. */
  13378. async createSharedLink(sharedLinkCreateDto: SharedLinkCreateDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SharedLinkResponseDto>> {
  13379. const localVarAxiosArgs = await localVarAxiosParamCreator.createSharedLink(sharedLinkCreateDto, options);
  13380. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13381. },
  13382. /**
  13383. *
  13384. * @param {*} [options] Override http request option.
  13385. * @throws {RequiredError}
  13386. */
  13387. async getAllSharedLinks(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<SharedLinkResponseDto>>> {
  13388. const localVarAxiosArgs = await localVarAxiosParamCreator.getAllSharedLinks(options);
  13389. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13390. },
  13391. /**
  13392. *
  13393. * @param {string} [password]
  13394. * @param {string} [token]
  13395. * @param {string} [key]
  13396. * @param {*} [options] Override http request option.
  13397. * @throws {RequiredError}
  13398. */
  13399. async getMySharedLink(password?: string, token?: string, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SharedLinkResponseDto>> {
  13400. const localVarAxiosArgs = await localVarAxiosParamCreator.getMySharedLink(password, token, key, options);
  13401. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13402. },
  13403. /**
  13404. *
  13405. * @param {string} id
  13406. * @param {*} [options] Override http request option.
  13407. * @throws {RequiredError}
  13408. */
  13409. async getSharedLinkById(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SharedLinkResponseDto>> {
  13410. const localVarAxiosArgs = await localVarAxiosParamCreator.getSharedLinkById(id, options);
  13411. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13412. },
  13413. /**
  13414. *
  13415. * @param {string} id
  13416. * @param {*} [options] Override http request option.
  13417. * @throws {RequiredError}
  13418. */
  13419. async removeSharedLink(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  13420. const localVarAxiosArgs = await localVarAxiosParamCreator.removeSharedLink(id, options);
  13421. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13422. },
  13423. /**
  13424. *
  13425. * @param {string} id
  13426. * @param {AssetIdsDto} assetIdsDto
  13427. * @param {string} [key]
  13428. * @param {*} [options] Override http request option.
  13429. * @throws {RequiredError}
  13430. */
  13431. async removeSharedLinkAssets(id: string, assetIdsDto: AssetIdsDto, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetIdsResponseDto>>> {
  13432. const localVarAxiosArgs = await localVarAxiosParamCreator.removeSharedLinkAssets(id, assetIdsDto, key, options);
  13433. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13434. },
  13435. /**
  13436. *
  13437. * @param {string} id
  13438. * @param {SharedLinkEditDto} sharedLinkEditDto
  13439. * @param {*} [options] Override http request option.
  13440. * @throws {RequiredError}
  13441. */
  13442. async updateSharedLink(id: string, sharedLinkEditDto: SharedLinkEditDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SharedLinkResponseDto>> {
  13443. const localVarAxiosArgs = await localVarAxiosParamCreator.updateSharedLink(id, sharedLinkEditDto, options);
  13444. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13445. },
  13446. }
  13447. };
  13448. /**
  13449. * SharedLinkApi - factory interface
  13450. * @export
  13451. */
  13452. export const SharedLinkApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  13453. const localVarFp = SharedLinkApiFp(configuration)
  13454. return {
  13455. /**
  13456. *
  13457. * @param {SharedLinkApiAddSharedLinkAssetsRequest} requestParameters Request parameters.
  13458. * @param {*} [options] Override http request option.
  13459. * @throws {RequiredError}
  13460. */
  13461. addSharedLinkAssets(requestParameters: SharedLinkApiAddSharedLinkAssetsRequest, options?: AxiosRequestConfig): AxiosPromise<Array<AssetIdsResponseDto>> {
  13462. return localVarFp.addSharedLinkAssets(requestParameters.id, requestParameters.assetIdsDto, requestParameters.key, options).then((request) => request(axios, basePath));
  13463. },
  13464. /**
  13465. *
  13466. * @param {SharedLinkApiCreateSharedLinkRequest} requestParameters Request parameters.
  13467. * @param {*} [options] Override http request option.
  13468. * @throws {RequiredError}
  13469. */
  13470. createSharedLink(requestParameters: SharedLinkApiCreateSharedLinkRequest, options?: AxiosRequestConfig): AxiosPromise<SharedLinkResponseDto> {
  13471. return localVarFp.createSharedLink(requestParameters.sharedLinkCreateDto, options).then((request) => request(axios, basePath));
  13472. },
  13473. /**
  13474. *
  13475. * @param {*} [options] Override http request option.
  13476. * @throws {RequiredError}
  13477. */
  13478. getAllSharedLinks(options?: AxiosRequestConfig): AxiosPromise<Array<SharedLinkResponseDto>> {
  13479. return localVarFp.getAllSharedLinks(options).then((request) => request(axios, basePath));
  13480. },
  13481. /**
  13482. *
  13483. * @param {SharedLinkApiGetMySharedLinkRequest} requestParameters Request parameters.
  13484. * @param {*} [options] Override http request option.
  13485. * @throws {RequiredError}
  13486. */
  13487. getMySharedLink(requestParameters: SharedLinkApiGetMySharedLinkRequest = {}, options?: AxiosRequestConfig): AxiosPromise<SharedLinkResponseDto> {
  13488. return localVarFp.getMySharedLink(requestParameters.password, requestParameters.token, requestParameters.key, options).then((request) => request(axios, basePath));
  13489. },
  13490. /**
  13491. *
  13492. * @param {SharedLinkApiGetSharedLinkByIdRequest} requestParameters Request parameters.
  13493. * @param {*} [options] Override http request option.
  13494. * @throws {RequiredError}
  13495. */
  13496. getSharedLinkById(requestParameters: SharedLinkApiGetSharedLinkByIdRequest, options?: AxiosRequestConfig): AxiosPromise<SharedLinkResponseDto> {
  13497. return localVarFp.getSharedLinkById(requestParameters.id, options).then((request) => request(axios, basePath));
  13498. },
  13499. /**
  13500. *
  13501. * @param {SharedLinkApiRemoveSharedLinkRequest} requestParameters Request parameters.
  13502. * @param {*} [options] Override http request option.
  13503. * @throws {RequiredError}
  13504. */
  13505. removeSharedLink(requestParameters: SharedLinkApiRemoveSharedLinkRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  13506. return localVarFp.removeSharedLink(requestParameters.id, options).then((request) => request(axios, basePath));
  13507. },
  13508. /**
  13509. *
  13510. * @param {SharedLinkApiRemoveSharedLinkAssetsRequest} requestParameters Request parameters.
  13511. * @param {*} [options] Override http request option.
  13512. * @throws {RequiredError}
  13513. */
  13514. removeSharedLinkAssets(requestParameters: SharedLinkApiRemoveSharedLinkAssetsRequest, options?: AxiosRequestConfig): AxiosPromise<Array<AssetIdsResponseDto>> {
  13515. return localVarFp.removeSharedLinkAssets(requestParameters.id, requestParameters.assetIdsDto, requestParameters.key, options).then((request) => request(axios, basePath));
  13516. },
  13517. /**
  13518. *
  13519. * @param {SharedLinkApiUpdateSharedLinkRequest} requestParameters Request parameters.
  13520. * @param {*} [options] Override http request option.
  13521. * @throws {RequiredError}
  13522. */
  13523. updateSharedLink(requestParameters: SharedLinkApiUpdateSharedLinkRequest, options?: AxiosRequestConfig): AxiosPromise<SharedLinkResponseDto> {
  13524. return localVarFp.updateSharedLink(requestParameters.id, requestParameters.sharedLinkEditDto, options).then((request) => request(axios, basePath));
  13525. },
  13526. };
  13527. };
  13528. /**
  13529. * Request parameters for addSharedLinkAssets operation in SharedLinkApi.
  13530. * @export
  13531. * @interface SharedLinkApiAddSharedLinkAssetsRequest
  13532. */
  13533. export interface SharedLinkApiAddSharedLinkAssetsRequest {
  13534. /**
  13535. *
  13536. * @type {string}
  13537. * @memberof SharedLinkApiAddSharedLinkAssets
  13538. */
  13539. readonly id: string
  13540. /**
  13541. *
  13542. * @type {AssetIdsDto}
  13543. * @memberof SharedLinkApiAddSharedLinkAssets
  13544. */
  13545. readonly assetIdsDto: AssetIdsDto
  13546. /**
  13547. *
  13548. * @type {string}
  13549. * @memberof SharedLinkApiAddSharedLinkAssets
  13550. */
  13551. readonly key?: string
  13552. }
  13553. /**
  13554. * Request parameters for createSharedLink operation in SharedLinkApi.
  13555. * @export
  13556. * @interface SharedLinkApiCreateSharedLinkRequest
  13557. */
  13558. export interface SharedLinkApiCreateSharedLinkRequest {
  13559. /**
  13560. *
  13561. * @type {SharedLinkCreateDto}
  13562. * @memberof SharedLinkApiCreateSharedLink
  13563. */
  13564. readonly sharedLinkCreateDto: SharedLinkCreateDto
  13565. }
  13566. /**
  13567. * Request parameters for getMySharedLink operation in SharedLinkApi.
  13568. * @export
  13569. * @interface SharedLinkApiGetMySharedLinkRequest
  13570. */
  13571. export interface SharedLinkApiGetMySharedLinkRequest {
  13572. /**
  13573. *
  13574. * @type {string}
  13575. * @memberof SharedLinkApiGetMySharedLink
  13576. */
  13577. readonly password?: string
  13578. /**
  13579. *
  13580. * @type {string}
  13581. * @memberof SharedLinkApiGetMySharedLink
  13582. */
  13583. readonly token?: string
  13584. /**
  13585. *
  13586. * @type {string}
  13587. * @memberof SharedLinkApiGetMySharedLink
  13588. */
  13589. readonly key?: string
  13590. }
  13591. /**
  13592. * Request parameters for getSharedLinkById operation in SharedLinkApi.
  13593. * @export
  13594. * @interface SharedLinkApiGetSharedLinkByIdRequest
  13595. */
  13596. export interface SharedLinkApiGetSharedLinkByIdRequest {
  13597. /**
  13598. *
  13599. * @type {string}
  13600. * @memberof SharedLinkApiGetSharedLinkById
  13601. */
  13602. readonly id: string
  13603. }
  13604. /**
  13605. * Request parameters for removeSharedLink operation in SharedLinkApi.
  13606. * @export
  13607. * @interface SharedLinkApiRemoveSharedLinkRequest
  13608. */
  13609. export interface SharedLinkApiRemoveSharedLinkRequest {
  13610. /**
  13611. *
  13612. * @type {string}
  13613. * @memberof SharedLinkApiRemoveSharedLink
  13614. */
  13615. readonly id: string
  13616. }
  13617. /**
  13618. * Request parameters for removeSharedLinkAssets operation in SharedLinkApi.
  13619. * @export
  13620. * @interface SharedLinkApiRemoveSharedLinkAssetsRequest
  13621. */
  13622. export interface SharedLinkApiRemoveSharedLinkAssetsRequest {
  13623. /**
  13624. *
  13625. * @type {string}
  13626. * @memberof SharedLinkApiRemoveSharedLinkAssets
  13627. */
  13628. readonly id: string
  13629. /**
  13630. *
  13631. * @type {AssetIdsDto}
  13632. * @memberof SharedLinkApiRemoveSharedLinkAssets
  13633. */
  13634. readonly assetIdsDto: AssetIdsDto
  13635. /**
  13636. *
  13637. * @type {string}
  13638. * @memberof SharedLinkApiRemoveSharedLinkAssets
  13639. */
  13640. readonly key?: string
  13641. }
  13642. /**
  13643. * Request parameters for updateSharedLink operation in SharedLinkApi.
  13644. * @export
  13645. * @interface SharedLinkApiUpdateSharedLinkRequest
  13646. */
  13647. export interface SharedLinkApiUpdateSharedLinkRequest {
  13648. /**
  13649. *
  13650. * @type {string}
  13651. * @memberof SharedLinkApiUpdateSharedLink
  13652. */
  13653. readonly id: string
  13654. /**
  13655. *
  13656. * @type {SharedLinkEditDto}
  13657. * @memberof SharedLinkApiUpdateSharedLink
  13658. */
  13659. readonly sharedLinkEditDto: SharedLinkEditDto
  13660. }
  13661. /**
  13662. * SharedLinkApi - object-oriented interface
  13663. * @export
  13664. * @class SharedLinkApi
  13665. * @extends {BaseAPI}
  13666. */
  13667. export class SharedLinkApi extends BaseAPI {
  13668. /**
  13669. *
  13670. * @param {SharedLinkApiAddSharedLinkAssetsRequest} requestParameters Request parameters.
  13671. * @param {*} [options] Override http request option.
  13672. * @throws {RequiredError}
  13673. * @memberof SharedLinkApi
  13674. */
  13675. public addSharedLinkAssets(requestParameters: SharedLinkApiAddSharedLinkAssetsRequest, options?: AxiosRequestConfig) {
  13676. return SharedLinkApiFp(this.configuration).addSharedLinkAssets(requestParameters.id, requestParameters.assetIdsDto, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  13677. }
  13678. /**
  13679. *
  13680. * @param {SharedLinkApiCreateSharedLinkRequest} requestParameters Request parameters.
  13681. * @param {*} [options] Override http request option.
  13682. * @throws {RequiredError}
  13683. * @memberof SharedLinkApi
  13684. */
  13685. public createSharedLink(requestParameters: SharedLinkApiCreateSharedLinkRequest, options?: AxiosRequestConfig) {
  13686. return SharedLinkApiFp(this.configuration).createSharedLink(requestParameters.sharedLinkCreateDto, options).then((request) => request(this.axios, this.basePath));
  13687. }
  13688. /**
  13689. *
  13690. * @param {*} [options] Override http request option.
  13691. * @throws {RequiredError}
  13692. * @memberof SharedLinkApi
  13693. */
  13694. public getAllSharedLinks(options?: AxiosRequestConfig) {
  13695. return SharedLinkApiFp(this.configuration).getAllSharedLinks(options).then((request) => request(this.axios, this.basePath));
  13696. }
  13697. /**
  13698. *
  13699. * @param {SharedLinkApiGetMySharedLinkRequest} requestParameters Request parameters.
  13700. * @param {*} [options] Override http request option.
  13701. * @throws {RequiredError}
  13702. * @memberof SharedLinkApi
  13703. */
  13704. public getMySharedLink(requestParameters: SharedLinkApiGetMySharedLinkRequest = {}, options?: AxiosRequestConfig) {
  13705. return SharedLinkApiFp(this.configuration).getMySharedLink(requestParameters.password, requestParameters.token, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  13706. }
  13707. /**
  13708. *
  13709. * @param {SharedLinkApiGetSharedLinkByIdRequest} requestParameters Request parameters.
  13710. * @param {*} [options] Override http request option.
  13711. * @throws {RequiredError}
  13712. * @memberof SharedLinkApi
  13713. */
  13714. public getSharedLinkById(requestParameters: SharedLinkApiGetSharedLinkByIdRequest, options?: AxiosRequestConfig) {
  13715. return SharedLinkApiFp(this.configuration).getSharedLinkById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  13716. }
  13717. /**
  13718. *
  13719. * @param {SharedLinkApiRemoveSharedLinkRequest} requestParameters Request parameters.
  13720. * @param {*} [options] Override http request option.
  13721. * @throws {RequiredError}
  13722. * @memberof SharedLinkApi
  13723. */
  13724. public removeSharedLink(requestParameters: SharedLinkApiRemoveSharedLinkRequest, options?: AxiosRequestConfig) {
  13725. return SharedLinkApiFp(this.configuration).removeSharedLink(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  13726. }
  13727. /**
  13728. *
  13729. * @param {SharedLinkApiRemoveSharedLinkAssetsRequest} requestParameters Request parameters.
  13730. * @param {*} [options] Override http request option.
  13731. * @throws {RequiredError}
  13732. * @memberof SharedLinkApi
  13733. */
  13734. public removeSharedLinkAssets(requestParameters: SharedLinkApiRemoveSharedLinkAssetsRequest, options?: AxiosRequestConfig) {
  13735. return SharedLinkApiFp(this.configuration).removeSharedLinkAssets(requestParameters.id, requestParameters.assetIdsDto, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  13736. }
  13737. /**
  13738. *
  13739. * @param {SharedLinkApiUpdateSharedLinkRequest} requestParameters Request parameters.
  13740. * @param {*} [options] Override http request option.
  13741. * @throws {RequiredError}
  13742. * @memberof SharedLinkApi
  13743. */
  13744. public updateSharedLink(requestParameters: SharedLinkApiUpdateSharedLinkRequest, options?: AxiosRequestConfig) {
  13745. return SharedLinkApiFp(this.configuration).updateSharedLink(requestParameters.id, requestParameters.sharedLinkEditDto, options).then((request) => request(this.axios, this.basePath));
  13746. }
  13747. }
  13748. /**
  13749. * SystemConfigApi - axios parameter creator
  13750. * @export
  13751. */
  13752. export const SystemConfigApiAxiosParamCreator = function (configuration?: Configuration) {
  13753. return {
  13754. /**
  13755. *
  13756. * @param {*} [options] Override http request option.
  13757. * @throws {RequiredError}
  13758. */
  13759. getConfig: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13760. const localVarPath = `/system-config`;
  13761. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13762. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13763. let baseOptions;
  13764. if (configuration) {
  13765. baseOptions = configuration.baseOptions;
  13766. }
  13767. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  13768. const localVarHeaderParameter = {} as any;
  13769. const localVarQueryParameter = {} as any;
  13770. // authentication cookie required
  13771. // authentication api_key required
  13772. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13773. // authentication bearer required
  13774. // http bearer authentication required
  13775. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13776. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13777. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13778. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13779. return {
  13780. url: toPathString(localVarUrlObj),
  13781. options: localVarRequestOptions,
  13782. };
  13783. },
  13784. /**
  13785. *
  13786. * @param {*} [options] Override http request option.
  13787. * @throws {RequiredError}
  13788. */
  13789. getConfigDefaults: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13790. const localVarPath = `/system-config/defaults`;
  13791. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13792. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13793. let baseOptions;
  13794. if (configuration) {
  13795. baseOptions = configuration.baseOptions;
  13796. }
  13797. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  13798. const localVarHeaderParameter = {} as any;
  13799. const localVarQueryParameter = {} as any;
  13800. // authentication cookie required
  13801. // authentication api_key required
  13802. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13803. // authentication bearer required
  13804. // http bearer authentication required
  13805. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13806. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13807. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13808. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13809. return {
  13810. url: toPathString(localVarUrlObj),
  13811. options: localVarRequestOptions,
  13812. };
  13813. },
  13814. /**
  13815. *
  13816. * @param {MapTheme} theme
  13817. * @param {*} [options] Override http request option.
  13818. * @throws {RequiredError}
  13819. */
  13820. getMapStyle: async (theme: MapTheme, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13821. // verify required parameter 'theme' is not null or undefined
  13822. assertParamExists('getMapStyle', 'theme', theme)
  13823. const localVarPath = `/system-config/map/style.json`;
  13824. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13825. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13826. let baseOptions;
  13827. if (configuration) {
  13828. baseOptions = configuration.baseOptions;
  13829. }
  13830. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  13831. const localVarHeaderParameter = {} as any;
  13832. const localVarQueryParameter = {} as any;
  13833. // authentication cookie required
  13834. // authentication api_key required
  13835. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13836. // authentication bearer required
  13837. // http bearer authentication required
  13838. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13839. if (theme !== undefined) {
  13840. localVarQueryParameter['theme'] = theme;
  13841. }
  13842. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13843. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13844. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13845. return {
  13846. url: toPathString(localVarUrlObj),
  13847. options: localVarRequestOptions,
  13848. };
  13849. },
  13850. /**
  13851. *
  13852. * @param {*} [options] Override http request option.
  13853. * @throws {RequiredError}
  13854. */
  13855. getStorageTemplateOptions: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13856. const localVarPath = `/system-config/storage-template-options`;
  13857. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13858. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13859. let baseOptions;
  13860. if (configuration) {
  13861. baseOptions = configuration.baseOptions;
  13862. }
  13863. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  13864. const localVarHeaderParameter = {} as any;
  13865. const localVarQueryParameter = {} as any;
  13866. // authentication cookie required
  13867. // authentication api_key required
  13868. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13869. // authentication bearer required
  13870. // http bearer authentication required
  13871. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13872. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13873. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13874. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13875. return {
  13876. url: toPathString(localVarUrlObj),
  13877. options: localVarRequestOptions,
  13878. };
  13879. },
  13880. /**
  13881. *
  13882. * @param {SystemConfigDto} systemConfigDto
  13883. * @param {*} [options] Override http request option.
  13884. * @throws {RequiredError}
  13885. */
  13886. updateConfig: async (systemConfigDto: SystemConfigDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13887. // verify required parameter 'systemConfigDto' is not null or undefined
  13888. assertParamExists('updateConfig', 'systemConfigDto', systemConfigDto)
  13889. const localVarPath = `/system-config`;
  13890. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13891. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13892. let baseOptions;
  13893. if (configuration) {
  13894. baseOptions = configuration.baseOptions;
  13895. }
  13896. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  13897. const localVarHeaderParameter = {} as any;
  13898. const localVarQueryParameter = {} as any;
  13899. // authentication cookie required
  13900. // authentication api_key required
  13901. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13902. // authentication bearer required
  13903. // http bearer authentication required
  13904. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13905. localVarHeaderParameter['Content-Type'] = 'application/json';
  13906. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13907. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13908. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13909. localVarRequestOptions.data = serializeDataIfNeeded(systemConfigDto, localVarRequestOptions, configuration)
  13910. return {
  13911. url: toPathString(localVarUrlObj),
  13912. options: localVarRequestOptions,
  13913. };
  13914. },
  13915. }
  13916. };
  13917. /**
  13918. * SystemConfigApi - functional programming interface
  13919. * @export
  13920. */
  13921. export const SystemConfigApiFp = function(configuration?: Configuration) {
  13922. const localVarAxiosParamCreator = SystemConfigApiAxiosParamCreator(configuration)
  13923. return {
  13924. /**
  13925. *
  13926. * @param {*} [options] Override http request option.
  13927. * @throws {RequiredError}
  13928. */
  13929. async getConfig(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SystemConfigDto>> {
  13930. const localVarAxiosArgs = await localVarAxiosParamCreator.getConfig(options);
  13931. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13932. },
  13933. /**
  13934. *
  13935. * @param {*} [options] Override http request option.
  13936. * @throws {RequiredError}
  13937. */
  13938. async getConfigDefaults(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SystemConfigDto>> {
  13939. const localVarAxiosArgs = await localVarAxiosParamCreator.getConfigDefaults(options);
  13940. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13941. },
  13942. /**
  13943. *
  13944. * @param {MapTheme} theme
  13945. * @param {*} [options] Override http request option.
  13946. * @throws {RequiredError}
  13947. */
  13948. async getMapStyle(theme: MapTheme, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
  13949. const localVarAxiosArgs = await localVarAxiosParamCreator.getMapStyle(theme, options);
  13950. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13951. },
  13952. /**
  13953. *
  13954. * @param {*} [options] Override http request option.
  13955. * @throws {RequiredError}
  13956. */
  13957. async getStorageTemplateOptions(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SystemConfigTemplateStorageOptionDto>> {
  13958. const localVarAxiosArgs = await localVarAxiosParamCreator.getStorageTemplateOptions(options);
  13959. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13960. },
  13961. /**
  13962. *
  13963. * @param {SystemConfigDto} systemConfigDto
  13964. * @param {*} [options] Override http request option.
  13965. * @throws {RequiredError}
  13966. */
  13967. async updateConfig(systemConfigDto: SystemConfigDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SystemConfigDto>> {
  13968. const localVarAxiosArgs = await localVarAxiosParamCreator.updateConfig(systemConfigDto, options);
  13969. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13970. },
  13971. }
  13972. };
  13973. /**
  13974. * SystemConfigApi - factory interface
  13975. * @export
  13976. */
  13977. export const SystemConfigApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  13978. const localVarFp = SystemConfigApiFp(configuration)
  13979. return {
  13980. /**
  13981. *
  13982. * @param {*} [options] Override http request option.
  13983. * @throws {RequiredError}
  13984. */
  13985. getConfig(options?: AxiosRequestConfig): AxiosPromise<SystemConfigDto> {
  13986. return localVarFp.getConfig(options).then((request) => request(axios, basePath));
  13987. },
  13988. /**
  13989. *
  13990. * @param {*} [options] Override http request option.
  13991. * @throws {RequiredError}
  13992. */
  13993. getConfigDefaults(options?: AxiosRequestConfig): AxiosPromise<SystemConfigDto> {
  13994. return localVarFp.getConfigDefaults(options).then((request) => request(axios, basePath));
  13995. },
  13996. /**
  13997. *
  13998. * @param {SystemConfigApiGetMapStyleRequest} requestParameters Request parameters.
  13999. * @param {*} [options] Override http request option.
  14000. * @throws {RequiredError}
  14001. */
  14002. getMapStyle(requestParameters: SystemConfigApiGetMapStyleRequest, options?: AxiosRequestConfig): AxiosPromise<object> {
  14003. return localVarFp.getMapStyle(requestParameters.theme, options).then((request) => request(axios, basePath));
  14004. },
  14005. /**
  14006. *
  14007. * @param {*} [options] Override http request option.
  14008. * @throws {RequiredError}
  14009. */
  14010. getStorageTemplateOptions(options?: AxiosRequestConfig): AxiosPromise<SystemConfigTemplateStorageOptionDto> {
  14011. return localVarFp.getStorageTemplateOptions(options).then((request) => request(axios, basePath));
  14012. },
  14013. /**
  14014. *
  14015. * @param {SystemConfigApiUpdateConfigRequest} requestParameters Request parameters.
  14016. * @param {*} [options] Override http request option.
  14017. * @throws {RequiredError}
  14018. */
  14019. updateConfig(requestParameters: SystemConfigApiUpdateConfigRequest, options?: AxiosRequestConfig): AxiosPromise<SystemConfigDto> {
  14020. return localVarFp.updateConfig(requestParameters.systemConfigDto, options).then((request) => request(axios, basePath));
  14021. },
  14022. };
  14023. };
  14024. /**
  14025. * Request parameters for getMapStyle operation in SystemConfigApi.
  14026. * @export
  14027. * @interface SystemConfigApiGetMapStyleRequest
  14028. */
  14029. export interface SystemConfigApiGetMapStyleRequest {
  14030. /**
  14031. *
  14032. * @type {MapTheme}
  14033. * @memberof SystemConfigApiGetMapStyle
  14034. */
  14035. readonly theme: MapTheme
  14036. }
  14037. /**
  14038. * Request parameters for updateConfig operation in SystemConfigApi.
  14039. * @export
  14040. * @interface SystemConfigApiUpdateConfigRequest
  14041. */
  14042. export interface SystemConfigApiUpdateConfigRequest {
  14043. /**
  14044. *
  14045. * @type {SystemConfigDto}
  14046. * @memberof SystemConfigApiUpdateConfig
  14047. */
  14048. readonly systemConfigDto: SystemConfigDto
  14049. }
  14050. /**
  14051. * SystemConfigApi - object-oriented interface
  14052. * @export
  14053. * @class SystemConfigApi
  14054. * @extends {BaseAPI}
  14055. */
  14056. export class SystemConfigApi extends BaseAPI {
  14057. /**
  14058. *
  14059. * @param {*} [options] Override http request option.
  14060. * @throws {RequiredError}
  14061. * @memberof SystemConfigApi
  14062. */
  14063. public getConfig(options?: AxiosRequestConfig) {
  14064. return SystemConfigApiFp(this.configuration).getConfig(options).then((request) => request(this.axios, this.basePath));
  14065. }
  14066. /**
  14067. *
  14068. * @param {*} [options] Override http request option.
  14069. * @throws {RequiredError}
  14070. * @memberof SystemConfigApi
  14071. */
  14072. public getConfigDefaults(options?: AxiosRequestConfig) {
  14073. return SystemConfigApiFp(this.configuration).getConfigDefaults(options).then((request) => request(this.axios, this.basePath));
  14074. }
  14075. /**
  14076. *
  14077. * @param {SystemConfigApiGetMapStyleRequest} requestParameters Request parameters.
  14078. * @param {*} [options] Override http request option.
  14079. * @throws {RequiredError}
  14080. * @memberof SystemConfigApi
  14081. */
  14082. public getMapStyle(requestParameters: SystemConfigApiGetMapStyleRequest, options?: AxiosRequestConfig) {
  14083. return SystemConfigApiFp(this.configuration).getMapStyle(requestParameters.theme, options).then((request) => request(this.axios, this.basePath));
  14084. }
  14085. /**
  14086. *
  14087. * @param {*} [options] Override http request option.
  14088. * @throws {RequiredError}
  14089. * @memberof SystemConfigApi
  14090. */
  14091. public getStorageTemplateOptions(options?: AxiosRequestConfig) {
  14092. return SystemConfigApiFp(this.configuration).getStorageTemplateOptions(options).then((request) => request(this.axios, this.basePath));
  14093. }
  14094. /**
  14095. *
  14096. * @param {SystemConfigApiUpdateConfigRequest} requestParameters Request parameters.
  14097. * @param {*} [options] Override http request option.
  14098. * @throws {RequiredError}
  14099. * @memberof SystemConfigApi
  14100. */
  14101. public updateConfig(requestParameters: SystemConfigApiUpdateConfigRequest, options?: AxiosRequestConfig) {
  14102. return SystemConfigApiFp(this.configuration).updateConfig(requestParameters.systemConfigDto, options).then((request) => request(this.axios, this.basePath));
  14103. }
  14104. }
  14105. /**
  14106. * TagApi - axios parameter creator
  14107. * @export
  14108. */
  14109. export const TagApiAxiosParamCreator = function (configuration?: Configuration) {
  14110. return {
  14111. /**
  14112. *
  14113. * @param {CreateTagDto} createTagDto
  14114. * @param {*} [options] Override http request option.
  14115. * @throws {RequiredError}
  14116. */
  14117. createTag: async (createTagDto: CreateTagDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  14118. // verify required parameter 'createTagDto' is not null or undefined
  14119. assertParamExists('createTag', 'createTagDto', createTagDto)
  14120. const localVarPath = `/tag`;
  14121. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  14122. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  14123. let baseOptions;
  14124. if (configuration) {
  14125. baseOptions = configuration.baseOptions;
  14126. }
  14127. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  14128. const localVarHeaderParameter = {} as any;
  14129. const localVarQueryParameter = {} as any;
  14130. // authentication cookie required
  14131. // authentication api_key required
  14132. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  14133. // authentication bearer required
  14134. // http bearer authentication required
  14135. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  14136. localVarHeaderParameter['Content-Type'] = 'application/json';
  14137. setSearchParams(localVarUrlObj, localVarQueryParameter);
  14138. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  14139. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  14140. localVarRequestOptions.data = serializeDataIfNeeded(createTagDto, localVarRequestOptions, configuration)
  14141. return {
  14142. url: toPathString(localVarUrlObj),
  14143. options: localVarRequestOptions,
  14144. };
  14145. },
  14146. /**
  14147. *
  14148. * @param {string} id
  14149. * @param {*} [options] Override http request option.
  14150. * @throws {RequiredError}
  14151. */
  14152. deleteTag: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  14153. // verify required parameter 'id' is not null or undefined
  14154. assertParamExists('deleteTag', 'id', id)
  14155. const localVarPath = `/tag/{id}`
  14156. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  14157. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  14158. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  14159. let baseOptions;
  14160. if (configuration) {
  14161. baseOptions = configuration.baseOptions;
  14162. }
  14163. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  14164. const localVarHeaderParameter = {} as any;
  14165. const localVarQueryParameter = {} as any;
  14166. // authentication cookie required
  14167. // authentication api_key required
  14168. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  14169. // authentication bearer required
  14170. // http bearer authentication required
  14171. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  14172. setSearchParams(localVarUrlObj, localVarQueryParameter);
  14173. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  14174. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  14175. return {
  14176. url: toPathString(localVarUrlObj),
  14177. options: localVarRequestOptions,
  14178. };
  14179. },
  14180. /**
  14181. *
  14182. * @param {*} [options] Override http request option.
  14183. * @throws {RequiredError}
  14184. */
  14185. getAllTags: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  14186. const localVarPath = `/tag`;
  14187. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  14188. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  14189. let baseOptions;
  14190. if (configuration) {
  14191. baseOptions = configuration.baseOptions;
  14192. }
  14193. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  14194. const localVarHeaderParameter = {} as any;
  14195. const localVarQueryParameter = {} as any;
  14196. // authentication cookie required
  14197. // authentication api_key required
  14198. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  14199. // authentication bearer required
  14200. // http bearer authentication required
  14201. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  14202. setSearchParams(localVarUrlObj, localVarQueryParameter);
  14203. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  14204. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  14205. return {
  14206. url: toPathString(localVarUrlObj),
  14207. options: localVarRequestOptions,
  14208. };
  14209. },
  14210. /**
  14211. *
  14212. * @param {string} id
  14213. * @param {*} [options] Override http request option.
  14214. * @throws {RequiredError}
  14215. */
  14216. getTagAssets: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  14217. // verify required parameter 'id' is not null or undefined
  14218. assertParamExists('getTagAssets', 'id', id)
  14219. const localVarPath = `/tag/{id}/assets`
  14220. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  14221. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  14222. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  14223. let baseOptions;
  14224. if (configuration) {
  14225. baseOptions = configuration.baseOptions;
  14226. }
  14227. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  14228. const localVarHeaderParameter = {} as any;
  14229. const localVarQueryParameter = {} as any;
  14230. // authentication cookie required
  14231. // authentication api_key required
  14232. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  14233. // authentication bearer required
  14234. // http bearer authentication required
  14235. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  14236. setSearchParams(localVarUrlObj, localVarQueryParameter);
  14237. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  14238. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  14239. return {
  14240. url: toPathString(localVarUrlObj),
  14241. options: localVarRequestOptions,
  14242. };
  14243. },
  14244. /**
  14245. *
  14246. * @param {string} id
  14247. * @param {*} [options] Override http request option.
  14248. * @throws {RequiredError}
  14249. */
  14250. getTagById: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  14251. // verify required parameter 'id' is not null or undefined
  14252. assertParamExists('getTagById', 'id', id)
  14253. const localVarPath = `/tag/{id}`
  14254. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  14255. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  14256. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  14257. let baseOptions;
  14258. if (configuration) {
  14259. baseOptions = configuration.baseOptions;
  14260. }
  14261. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  14262. const localVarHeaderParameter = {} as any;
  14263. const localVarQueryParameter = {} as any;
  14264. // authentication cookie required
  14265. // authentication api_key required
  14266. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  14267. // authentication bearer required
  14268. // http bearer authentication required
  14269. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  14270. setSearchParams(localVarUrlObj, localVarQueryParameter);
  14271. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  14272. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  14273. return {
  14274. url: toPathString(localVarUrlObj),
  14275. options: localVarRequestOptions,
  14276. };
  14277. },
  14278. /**
  14279. *
  14280. * @param {string} id
  14281. * @param {AssetIdsDto} assetIdsDto
  14282. * @param {*} [options] Override http request option.
  14283. * @throws {RequiredError}
  14284. */
  14285. tagAssets: async (id: string, assetIdsDto: AssetIdsDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  14286. // verify required parameter 'id' is not null or undefined
  14287. assertParamExists('tagAssets', 'id', id)
  14288. // verify required parameter 'assetIdsDto' is not null or undefined
  14289. assertParamExists('tagAssets', 'assetIdsDto', assetIdsDto)
  14290. const localVarPath = `/tag/{id}/assets`
  14291. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  14292. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  14293. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  14294. let baseOptions;
  14295. if (configuration) {
  14296. baseOptions = configuration.baseOptions;
  14297. }
  14298. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  14299. const localVarHeaderParameter = {} as any;
  14300. const localVarQueryParameter = {} as any;
  14301. // authentication cookie required
  14302. // authentication api_key required
  14303. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  14304. // authentication bearer required
  14305. // http bearer authentication required
  14306. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  14307. localVarHeaderParameter['Content-Type'] = 'application/json';
  14308. setSearchParams(localVarUrlObj, localVarQueryParameter);
  14309. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  14310. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  14311. localVarRequestOptions.data = serializeDataIfNeeded(assetIdsDto, localVarRequestOptions, configuration)
  14312. return {
  14313. url: toPathString(localVarUrlObj),
  14314. options: localVarRequestOptions,
  14315. };
  14316. },
  14317. /**
  14318. *
  14319. * @param {string} id
  14320. * @param {AssetIdsDto} assetIdsDto
  14321. * @param {*} [options] Override http request option.
  14322. * @throws {RequiredError}
  14323. */
  14324. untagAssets: async (id: string, assetIdsDto: AssetIdsDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  14325. // verify required parameter 'id' is not null or undefined
  14326. assertParamExists('untagAssets', 'id', id)
  14327. // verify required parameter 'assetIdsDto' is not null or undefined
  14328. assertParamExists('untagAssets', 'assetIdsDto', assetIdsDto)
  14329. const localVarPath = `/tag/{id}/assets`
  14330. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  14331. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  14332. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  14333. let baseOptions;
  14334. if (configuration) {
  14335. baseOptions = configuration.baseOptions;
  14336. }
  14337. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  14338. const localVarHeaderParameter = {} as any;
  14339. const localVarQueryParameter = {} as any;
  14340. // authentication cookie required
  14341. // authentication api_key required
  14342. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  14343. // authentication bearer required
  14344. // http bearer authentication required
  14345. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  14346. localVarHeaderParameter['Content-Type'] = 'application/json';
  14347. setSearchParams(localVarUrlObj, localVarQueryParameter);
  14348. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  14349. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  14350. localVarRequestOptions.data = serializeDataIfNeeded(assetIdsDto, localVarRequestOptions, configuration)
  14351. return {
  14352. url: toPathString(localVarUrlObj),
  14353. options: localVarRequestOptions,
  14354. };
  14355. },
  14356. /**
  14357. *
  14358. * @param {string} id
  14359. * @param {UpdateTagDto} updateTagDto
  14360. * @param {*} [options] Override http request option.
  14361. * @throws {RequiredError}
  14362. */
  14363. updateTag: async (id: string, updateTagDto: UpdateTagDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  14364. // verify required parameter 'id' is not null or undefined
  14365. assertParamExists('updateTag', 'id', id)
  14366. // verify required parameter 'updateTagDto' is not null or undefined
  14367. assertParamExists('updateTag', 'updateTagDto', updateTagDto)
  14368. const localVarPath = `/tag/{id}`
  14369. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  14370. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  14371. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  14372. let baseOptions;
  14373. if (configuration) {
  14374. baseOptions = configuration.baseOptions;
  14375. }
  14376. const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
  14377. const localVarHeaderParameter = {} as any;
  14378. const localVarQueryParameter = {} as any;
  14379. // authentication cookie required
  14380. // authentication api_key required
  14381. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  14382. // authentication bearer required
  14383. // http bearer authentication required
  14384. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  14385. localVarHeaderParameter['Content-Type'] = 'application/json';
  14386. setSearchParams(localVarUrlObj, localVarQueryParameter);
  14387. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  14388. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  14389. localVarRequestOptions.data = serializeDataIfNeeded(updateTagDto, localVarRequestOptions, configuration)
  14390. return {
  14391. url: toPathString(localVarUrlObj),
  14392. options: localVarRequestOptions,
  14393. };
  14394. },
  14395. }
  14396. };
  14397. /**
  14398. * TagApi - functional programming interface
  14399. * @export
  14400. */
  14401. export const TagApiFp = function(configuration?: Configuration) {
  14402. const localVarAxiosParamCreator = TagApiAxiosParamCreator(configuration)
  14403. return {
  14404. /**
  14405. *
  14406. * @param {CreateTagDto} createTagDto
  14407. * @param {*} [options] Override http request option.
  14408. * @throws {RequiredError}
  14409. */
  14410. async createTag(createTagDto: CreateTagDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TagResponseDto>> {
  14411. const localVarAxiosArgs = await localVarAxiosParamCreator.createTag(createTagDto, options);
  14412. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  14413. },
  14414. /**
  14415. *
  14416. * @param {string} id
  14417. * @param {*} [options] Override http request option.
  14418. * @throws {RequiredError}
  14419. */
  14420. async deleteTag(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  14421. const localVarAxiosArgs = await localVarAxiosParamCreator.deleteTag(id, options);
  14422. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  14423. },
  14424. /**
  14425. *
  14426. * @param {*} [options] Override http request option.
  14427. * @throws {RequiredError}
  14428. */
  14429. async getAllTags(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<TagResponseDto>>> {
  14430. const localVarAxiosArgs = await localVarAxiosParamCreator.getAllTags(options);
  14431. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  14432. },
  14433. /**
  14434. *
  14435. * @param {string} id
  14436. * @param {*} [options] Override http request option.
  14437. * @throws {RequiredError}
  14438. */
  14439. async getTagAssets(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetResponseDto>>> {
  14440. const localVarAxiosArgs = await localVarAxiosParamCreator.getTagAssets(id, options);
  14441. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  14442. },
  14443. /**
  14444. *
  14445. * @param {string} id
  14446. * @param {*} [options] Override http request option.
  14447. * @throws {RequiredError}
  14448. */
  14449. async getTagById(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TagResponseDto>> {
  14450. const localVarAxiosArgs = await localVarAxiosParamCreator.getTagById(id, options);
  14451. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  14452. },
  14453. /**
  14454. *
  14455. * @param {string} id
  14456. * @param {AssetIdsDto} assetIdsDto
  14457. * @param {*} [options] Override http request option.
  14458. * @throws {RequiredError}
  14459. */
  14460. async tagAssets(id: string, assetIdsDto: AssetIdsDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetIdsResponseDto>>> {
  14461. const localVarAxiosArgs = await localVarAxiosParamCreator.tagAssets(id, assetIdsDto, options);
  14462. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  14463. },
  14464. /**
  14465. *
  14466. * @param {string} id
  14467. * @param {AssetIdsDto} assetIdsDto
  14468. * @param {*} [options] Override http request option.
  14469. * @throws {RequiredError}
  14470. */
  14471. async untagAssets(id: string, assetIdsDto: AssetIdsDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetIdsResponseDto>>> {
  14472. const localVarAxiosArgs = await localVarAxiosParamCreator.untagAssets(id, assetIdsDto, options);
  14473. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  14474. },
  14475. /**
  14476. *
  14477. * @param {string} id
  14478. * @param {UpdateTagDto} updateTagDto
  14479. * @param {*} [options] Override http request option.
  14480. * @throws {RequiredError}
  14481. */
  14482. async updateTag(id: string, updateTagDto: UpdateTagDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TagResponseDto>> {
  14483. const localVarAxiosArgs = await localVarAxiosParamCreator.updateTag(id, updateTagDto, options);
  14484. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  14485. },
  14486. }
  14487. };
  14488. /**
  14489. * TagApi - factory interface
  14490. * @export
  14491. */
  14492. export const TagApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  14493. const localVarFp = TagApiFp(configuration)
  14494. return {
  14495. /**
  14496. *
  14497. * @param {TagApiCreateTagRequest} requestParameters Request parameters.
  14498. * @param {*} [options] Override http request option.
  14499. * @throws {RequiredError}
  14500. */
  14501. createTag(requestParameters: TagApiCreateTagRequest, options?: AxiosRequestConfig): AxiosPromise<TagResponseDto> {
  14502. return localVarFp.createTag(requestParameters.createTagDto, options).then((request) => request(axios, basePath));
  14503. },
  14504. /**
  14505. *
  14506. * @param {TagApiDeleteTagRequest} requestParameters Request parameters.
  14507. * @param {*} [options] Override http request option.
  14508. * @throws {RequiredError}
  14509. */
  14510. deleteTag(requestParameters: TagApiDeleteTagRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  14511. return localVarFp.deleteTag(requestParameters.id, options).then((request) => request(axios, basePath));
  14512. },
  14513. /**
  14514. *
  14515. * @param {*} [options] Override http request option.
  14516. * @throws {RequiredError}
  14517. */
  14518. getAllTags(options?: AxiosRequestConfig): AxiosPromise<Array<TagResponseDto>> {
  14519. return localVarFp.getAllTags(options).then((request) => request(axios, basePath));
  14520. },
  14521. /**
  14522. *
  14523. * @param {TagApiGetTagAssetsRequest} requestParameters Request parameters.
  14524. * @param {*} [options] Override http request option.
  14525. * @throws {RequiredError}
  14526. */
  14527. getTagAssets(requestParameters: TagApiGetTagAssetsRequest, options?: AxiosRequestConfig): AxiosPromise<Array<AssetResponseDto>> {
  14528. return localVarFp.getTagAssets(requestParameters.id, options).then((request) => request(axios, basePath));
  14529. },
  14530. /**
  14531. *
  14532. * @param {TagApiGetTagByIdRequest} requestParameters Request parameters.
  14533. * @param {*} [options] Override http request option.
  14534. * @throws {RequiredError}
  14535. */
  14536. getTagById(requestParameters: TagApiGetTagByIdRequest, options?: AxiosRequestConfig): AxiosPromise<TagResponseDto> {
  14537. return localVarFp.getTagById(requestParameters.id, options).then((request) => request(axios, basePath));
  14538. },
  14539. /**
  14540. *
  14541. * @param {TagApiTagAssetsRequest} requestParameters Request parameters.
  14542. * @param {*} [options] Override http request option.
  14543. * @throws {RequiredError}
  14544. */
  14545. tagAssets(requestParameters: TagApiTagAssetsRequest, options?: AxiosRequestConfig): AxiosPromise<Array<AssetIdsResponseDto>> {
  14546. return localVarFp.tagAssets(requestParameters.id, requestParameters.assetIdsDto, options).then((request) => request(axios, basePath));
  14547. },
  14548. /**
  14549. *
  14550. * @param {TagApiUntagAssetsRequest} requestParameters Request parameters.
  14551. * @param {*} [options] Override http request option.
  14552. * @throws {RequiredError}
  14553. */
  14554. untagAssets(requestParameters: TagApiUntagAssetsRequest, options?: AxiosRequestConfig): AxiosPromise<Array<AssetIdsResponseDto>> {
  14555. return localVarFp.untagAssets(requestParameters.id, requestParameters.assetIdsDto, options).then((request) => request(axios, basePath));
  14556. },
  14557. /**
  14558. *
  14559. * @param {TagApiUpdateTagRequest} requestParameters Request parameters.
  14560. * @param {*} [options] Override http request option.
  14561. * @throws {RequiredError}
  14562. */
  14563. updateTag(requestParameters: TagApiUpdateTagRequest, options?: AxiosRequestConfig): AxiosPromise<TagResponseDto> {
  14564. return localVarFp.updateTag(requestParameters.id, requestParameters.updateTagDto, options).then((request) => request(axios, basePath));
  14565. },
  14566. };
  14567. };
  14568. /**
  14569. * Request parameters for createTag operation in TagApi.
  14570. * @export
  14571. * @interface TagApiCreateTagRequest
  14572. */
  14573. export interface TagApiCreateTagRequest {
  14574. /**
  14575. *
  14576. * @type {CreateTagDto}
  14577. * @memberof TagApiCreateTag
  14578. */
  14579. readonly createTagDto: CreateTagDto
  14580. }
  14581. /**
  14582. * Request parameters for deleteTag operation in TagApi.
  14583. * @export
  14584. * @interface TagApiDeleteTagRequest
  14585. */
  14586. export interface TagApiDeleteTagRequest {
  14587. /**
  14588. *
  14589. * @type {string}
  14590. * @memberof TagApiDeleteTag
  14591. */
  14592. readonly id: string
  14593. }
  14594. /**
  14595. * Request parameters for getTagAssets operation in TagApi.
  14596. * @export
  14597. * @interface TagApiGetTagAssetsRequest
  14598. */
  14599. export interface TagApiGetTagAssetsRequest {
  14600. /**
  14601. *
  14602. * @type {string}
  14603. * @memberof TagApiGetTagAssets
  14604. */
  14605. readonly id: string
  14606. }
  14607. /**
  14608. * Request parameters for getTagById operation in TagApi.
  14609. * @export
  14610. * @interface TagApiGetTagByIdRequest
  14611. */
  14612. export interface TagApiGetTagByIdRequest {
  14613. /**
  14614. *
  14615. * @type {string}
  14616. * @memberof TagApiGetTagById
  14617. */
  14618. readonly id: string
  14619. }
  14620. /**
  14621. * Request parameters for tagAssets operation in TagApi.
  14622. * @export
  14623. * @interface TagApiTagAssetsRequest
  14624. */
  14625. export interface TagApiTagAssetsRequest {
  14626. /**
  14627. *
  14628. * @type {string}
  14629. * @memberof TagApiTagAssets
  14630. */
  14631. readonly id: string
  14632. /**
  14633. *
  14634. * @type {AssetIdsDto}
  14635. * @memberof TagApiTagAssets
  14636. */
  14637. readonly assetIdsDto: AssetIdsDto
  14638. }
  14639. /**
  14640. * Request parameters for untagAssets operation in TagApi.
  14641. * @export
  14642. * @interface TagApiUntagAssetsRequest
  14643. */
  14644. export interface TagApiUntagAssetsRequest {
  14645. /**
  14646. *
  14647. * @type {string}
  14648. * @memberof TagApiUntagAssets
  14649. */
  14650. readonly id: string
  14651. /**
  14652. *
  14653. * @type {AssetIdsDto}
  14654. * @memberof TagApiUntagAssets
  14655. */
  14656. readonly assetIdsDto: AssetIdsDto
  14657. }
  14658. /**
  14659. * Request parameters for updateTag operation in TagApi.
  14660. * @export
  14661. * @interface TagApiUpdateTagRequest
  14662. */
  14663. export interface TagApiUpdateTagRequest {
  14664. /**
  14665. *
  14666. * @type {string}
  14667. * @memberof TagApiUpdateTag
  14668. */
  14669. readonly id: string
  14670. /**
  14671. *
  14672. * @type {UpdateTagDto}
  14673. * @memberof TagApiUpdateTag
  14674. */
  14675. readonly updateTagDto: UpdateTagDto
  14676. }
  14677. /**
  14678. * TagApi - object-oriented interface
  14679. * @export
  14680. * @class TagApi
  14681. * @extends {BaseAPI}
  14682. */
  14683. export class TagApi extends BaseAPI {
  14684. /**
  14685. *
  14686. * @param {TagApiCreateTagRequest} requestParameters Request parameters.
  14687. * @param {*} [options] Override http request option.
  14688. * @throws {RequiredError}
  14689. * @memberof TagApi
  14690. */
  14691. public createTag(requestParameters: TagApiCreateTagRequest, options?: AxiosRequestConfig) {
  14692. return TagApiFp(this.configuration).createTag(requestParameters.createTagDto, options).then((request) => request(this.axios, this.basePath));
  14693. }
  14694. /**
  14695. *
  14696. * @param {TagApiDeleteTagRequest} requestParameters Request parameters.
  14697. * @param {*} [options] Override http request option.
  14698. * @throws {RequiredError}
  14699. * @memberof TagApi
  14700. */
  14701. public deleteTag(requestParameters: TagApiDeleteTagRequest, options?: AxiosRequestConfig) {
  14702. return TagApiFp(this.configuration).deleteTag(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  14703. }
  14704. /**
  14705. *
  14706. * @param {*} [options] Override http request option.
  14707. * @throws {RequiredError}
  14708. * @memberof TagApi
  14709. */
  14710. public getAllTags(options?: AxiosRequestConfig) {
  14711. return TagApiFp(this.configuration).getAllTags(options).then((request) => request(this.axios, this.basePath));
  14712. }
  14713. /**
  14714. *
  14715. * @param {TagApiGetTagAssetsRequest} requestParameters Request parameters.
  14716. * @param {*} [options] Override http request option.
  14717. * @throws {RequiredError}
  14718. * @memberof TagApi
  14719. */
  14720. public getTagAssets(requestParameters: TagApiGetTagAssetsRequest, options?: AxiosRequestConfig) {
  14721. return TagApiFp(this.configuration).getTagAssets(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  14722. }
  14723. /**
  14724. *
  14725. * @param {TagApiGetTagByIdRequest} requestParameters Request parameters.
  14726. * @param {*} [options] Override http request option.
  14727. * @throws {RequiredError}
  14728. * @memberof TagApi
  14729. */
  14730. public getTagById(requestParameters: TagApiGetTagByIdRequest, options?: AxiosRequestConfig) {
  14731. return TagApiFp(this.configuration).getTagById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  14732. }
  14733. /**
  14734. *
  14735. * @param {TagApiTagAssetsRequest} requestParameters Request parameters.
  14736. * @param {*} [options] Override http request option.
  14737. * @throws {RequiredError}
  14738. * @memberof TagApi
  14739. */
  14740. public tagAssets(requestParameters: TagApiTagAssetsRequest, options?: AxiosRequestConfig) {
  14741. return TagApiFp(this.configuration).tagAssets(requestParameters.id, requestParameters.assetIdsDto, options).then((request) => request(this.axios, this.basePath));
  14742. }
  14743. /**
  14744. *
  14745. * @param {TagApiUntagAssetsRequest} requestParameters Request parameters.
  14746. * @param {*} [options] Override http request option.
  14747. * @throws {RequiredError}
  14748. * @memberof TagApi
  14749. */
  14750. public untagAssets(requestParameters: TagApiUntagAssetsRequest, options?: AxiosRequestConfig) {
  14751. return TagApiFp(this.configuration).untagAssets(requestParameters.id, requestParameters.assetIdsDto, options).then((request) => request(this.axios, this.basePath));
  14752. }
  14753. /**
  14754. *
  14755. * @param {TagApiUpdateTagRequest} requestParameters Request parameters.
  14756. * @param {*} [options] Override http request option.
  14757. * @throws {RequiredError}
  14758. * @memberof TagApi
  14759. */
  14760. public updateTag(requestParameters: TagApiUpdateTagRequest, options?: AxiosRequestConfig) {
  14761. return TagApiFp(this.configuration).updateTag(requestParameters.id, requestParameters.updateTagDto, options).then((request) => request(this.axios, this.basePath));
  14762. }
  14763. }
  14764. /**
  14765. * UserApi - axios parameter creator
  14766. * @export
  14767. */
  14768. export const UserApiAxiosParamCreator = function (configuration?: Configuration) {
  14769. return {
  14770. /**
  14771. *
  14772. * @param {File} file
  14773. * @param {*} [options] Override http request option.
  14774. * @throws {RequiredError}
  14775. */
  14776. createProfileImage: async (file: File, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  14777. // verify required parameter 'file' is not null or undefined
  14778. assertParamExists('createProfileImage', 'file', file)
  14779. const localVarPath = `/user/profile-image`;
  14780. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  14781. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  14782. let baseOptions;
  14783. if (configuration) {
  14784. baseOptions = configuration.baseOptions;
  14785. }
  14786. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  14787. const localVarHeaderParameter = {} as any;
  14788. const localVarQueryParameter = {} as any;
  14789. const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
  14790. // authentication cookie required
  14791. // authentication api_key required
  14792. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  14793. // authentication bearer required
  14794. // http bearer authentication required
  14795. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  14796. if (file !== undefined) {
  14797. localVarFormParams.append('file', file as any);
  14798. }
  14799. localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
  14800. setSearchParams(localVarUrlObj, localVarQueryParameter);
  14801. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  14802. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  14803. localVarRequestOptions.data = localVarFormParams;
  14804. return {
  14805. url: toPathString(localVarUrlObj),
  14806. options: localVarRequestOptions,
  14807. };
  14808. },
  14809. /**
  14810. *
  14811. * @param {CreateUserDto} createUserDto
  14812. * @param {*} [options] Override http request option.
  14813. * @throws {RequiredError}
  14814. */
  14815. createUser: async (createUserDto: CreateUserDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  14816. // verify required parameter 'createUserDto' is not null or undefined
  14817. assertParamExists('createUser', 'createUserDto', createUserDto)
  14818. const localVarPath = `/user`;
  14819. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  14820. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  14821. let baseOptions;
  14822. if (configuration) {
  14823. baseOptions = configuration.baseOptions;
  14824. }
  14825. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  14826. const localVarHeaderParameter = {} as any;
  14827. const localVarQueryParameter = {} as any;
  14828. // authentication cookie required
  14829. // authentication api_key required
  14830. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  14831. // authentication bearer required
  14832. // http bearer authentication required
  14833. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  14834. localVarHeaderParameter['Content-Type'] = 'application/json';
  14835. setSearchParams(localVarUrlObj, localVarQueryParameter);
  14836. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  14837. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  14838. localVarRequestOptions.data = serializeDataIfNeeded(createUserDto, localVarRequestOptions, configuration)
  14839. return {
  14840. url: toPathString(localVarUrlObj),
  14841. options: localVarRequestOptions,
  14842. };
  14843. },
  14844. /**
  14845. *
  14846. * @param {string} id
  14847. * @param {*} [options] Override http request option.
  14848. * @throws {RequiredError}
  14849. */
  14850. deleteUser: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  14851. // verify required parameter 'id' is not null or undefined
  14852. assertParamExists('deleteUser', 'id', id)
  14853. const localVarPath = `/user/{id}`
  14854. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  14855. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  14856. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  14857. let baseOptions;
  14858. if (configuration) {
  14859. baseOptions = configuration.baseOptions;
  14860. }
  14861. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  14862. const localVarHeaderParameter = {} as any;
  14863. const localVarQueryParameter = {} as any;
  14864. // authentication cookie required
  14865. // authentication api_key required
  14866. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  14867. // authentication bearer required
  14868. // http bearer authentication required
  14869. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  14870. setSearchParams(localVarUrlObj, localVarQueryParameter);
  14871. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  14872. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  14873. return {
  14874. url: toPathString(localVarUrlObj),
  14875. options: localVarRequestOptions,
  14876. };
  14877. },
  14878. /**
  14879. *
  14880. * @param {boolean} isAll
  14881. * @param {*} [options] Override http request option.
  14882. * @throws {RequiredError}
  14883. */
  14884. getAllUsers: async (isAll: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  14885. // verify required parameter 'isAll' is not null or undefined
  14886. assertParamExists('getAllUsers', 'isAll', isAll)
  14887. const localVarPath = `/user`;
  14888. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  14889. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  14890. let baseOptions;
  14891. if (configuration) {
  14892. baseOptions = configuration.baseOptions;
  14893. }
  14894. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  14895. const localVarHeaderParameter = {} as any;
  14896. const localVarQueryParameter = {} as any;
  14897. // authentication cookie required
  14898. // authentication api_key required
  14899. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  14900. // authentication bearer required
  14901. // http bearer authentication required
  14902. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  14903. if (isAll !== undefined) {
  14904. localVarQueryParameter['isAll'] = isAll;
  14905. }
  14906. setSearchParams(localVarUrlObj, localVarQueryParameter);
  14907. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  14908. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  14909. return {
  14910. url: toPathString(localVarUrlObj),
  14911. options: localVarRequestOptions,
  14912. };
  14913. },
  14914. /**
  14915. *
  14916. * @param {*} [options] Override http request option.
  14917. * @throws {RequiredError}
  14918. */
  14919. getMyUserInfo: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  14920. const localVarPath = `/user/me`;
  14921. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  14922. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  14923. let baseOptions;
  14924. if (configuration) {
  14925. baseOptions = configuration.baseOptions;
  14926. }
  14927. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  14928. const localVarHeaderParameter = {} as any;
  14929. const localVarQueryParameter = {} as any;
  14930. // authentication cookie required
  14931. // authentication api_key required
  14932. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  14933. // authentication bearer required
  14934. // http bearer authentication required
  14935. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  14936. setSearchParams(localVarUrlObj, localVarQueryParameter);
  14937. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  14938. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  14939. return {
  14940. url: toPathString(localVarUrlObj),
  14941. options: localVarRequestOptions,
  14942. };
  14943. },
  14944. /**
  14945. *
  14946. * @param {string} id
  14947. * @param {*} [options] Override http request option.
  14948. * @throws {RequiredError}
  14949. */
  14950. getProfileImage: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  14951. // verify required parameter 'id' is not null or undefined
  14952. assertParamExists('getProfileImage', 'id', id)
  14953. const localVarPath = `/user/profile-image/{id}`
  14954. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  14955. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  14956. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  14957. let baseOptions;
  14958. if (configuration) {
  14959. baseOptions = configuration.baseOptions;
  14960. }
  14961. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  14962. const localVarHeaderParameter = {} as any;
  14963. const localVarQueryParameter = {} as any;
  14964. // authentication cookie required
  14965. // authentication api_key required
  14966. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  14967. // authentication bearer required
  14968. // http bearer authentication required
  14969. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  14970. setSearchParams(localVarUrlObj, localVarQueryParameter);
  14971. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  14972. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  14973. return {
  14974. url: toPathString(localVarUrlObj),
  14975. options: localVarRequestOptions,
  14976. };
  14977. },
  14978. /**
  14979. *
  14980. * @param {string} id
  14981. * @param {*} [options] Override http request option.
  14982. * @throws {RequiredError}
  14983. */
  14984. getUserById: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  14985. // verify required parameter 'id' is not null or undefined
  14986. assertParamExists('getUserById', 'id', id)
  14987. const localVarPath = `/user/info/{id}`
  14988. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  14989. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  14990. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  14991. let baseOptions;
  14992. if (configuration) {
  14993. baseOptions = configuration.baseOptions;
  14994. }
  14995. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  14996. const localVarHeaderParameter = {} as any;
  14997. const localVarQueryParameter = {} as any;
  14998. // authentication cookie required
  14999. // authentication api_key required
  15000. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  15001. // authentication bearer required
  15002. // http bearer authentication required
  15003. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  15004. setSearchParams(localVarUrlObj, localVarQueryParameter);
  15005. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  15006. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  15007. return {
  15008. url: toPathString(localVarUrlObj),
  15009. options: localVarRequestOptions,
  15010. };
  15011. },
  15012. /**
  15013. *
  15014. * @param {string} id
  15015. * @param {*} [options] Override http request option.
  15016. * @throws {RequiredError}
  15017. */
  15018. restoreUser: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  15019. // verify required parameter 'id' is not null or undefined
  15020. assertParamExists('restoreUser', 'id', id)
  15021. const localVarPath = `/user/{id}/restore`
  15022. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  15023. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  15024. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  15025. let baseOptions;
  15026. if (configuration) {
  15027. baseOptions = configuration.baseOptions;
  15028. }
  15029. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  15030. const localVarHeaderParameter = {} as any;
  15031. const localVarQueryParameter = {} as any;
  15032. // authentication cookie required
  15033. // authentication api_key required
  15034. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  15035. // authentication bearer required
  15036. // http bearer authentication required
  15037. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  15038. setSearchParams(localVarUrlObj, localVarQueryParameter);
  15039. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  15040. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  15041. return {
  15042. url: toPathString(localVarUrlObj),
  15043. options: localVarRequestOptions,
  15044. };
  15045. },
  15046. /**
  15047. *
  15048. * @param {UpdateUserDto} updateUserDto
  15049. * @param {*} [options] Override http request option.
  15050. * @throws {RequiredError}
  15051. */
  15052. updateUser: async (updateUserDto: UpdateUserDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  15053. // verify required parameter 'updateUserDto' is not null or undefined
  15054. assertParamExists('updateUser', 'updateUserDto', updateUserDto)
  15055. const localVarPath = `/user`;
  15056. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  15057. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  15058. let baseOptions;
  15059. if (configuration) {
  15060. baseOptions = configuration.baseOptions;
  15061. }
  15062. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  15063. const localVarHeaderParameter = {} as any;
  15064. const localVarQueryParameter = {} as any;
  15065. // authentication cookie required
  15066. // authentication api_key required
  15067. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  15068. // authentication bearer required
  15069. // http bearer authentication required
  15070. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  15071. localVarHeaderParameter['Content-Type'] = 'application/json';
  15072. setSearchParams(localVarUrlObj, localVarQueryParameter);
  15073. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  15074. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  15075. localVarRequestOptions.data = serializeDataIfNeeded(updateUserDto, localVarRequestOptions, configuration)
  15076. return {
  15077. url: toPathString(localVarUrlObj),
  15078. options: localVarRequestOptions,
  15079. };
  15080. },
  15081. }
  15082. };
  15083. /**
  15084. * UserApi - functional programming interface
  15085. * @export
  15086. */
  15087. export const UserApiFp = function(configuration?: Configuration) {
  15088. const localVarAxiosParamCreator = UserApiAxiosParamCreator(configuration)
  15089. return {
  15090. /**
  15091. *
  15092. * @param {File} file
  15093. * @param {*} [options] Override http request option.
  15094. * @throws {RequiredError}
  15095. */
  15096. async createProfileImage(file: File, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateProfileImageResponseDto>> {
  15097. const localVarAxiosArgs = await localVarAxiosParamCreator.createProfileImage(file, options);
  15098. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  15099. },
  15100. /**
  15101. *
  15102. * @param {CreateUserDto} createUserDto
  15103. * @param {*} [options] Override http request option.
  15104. * @throws {RequiredError}
  15105. */
  15106. async createUser(createUserDto: CreateUserDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  15107. const localVarAxiosArgs = await localVarAxiosParamCreator.createUser(createUserDto, options);
  15108. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  15109. },
  15110. /**
  15111. *
  15112. * @param {string} id
  15113. * @param {*} [options] Override http request option.
  15114. * @throws {RequiredError}
  15115. */
  15116. async deleteUser(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  15117. const localVarAxiosArgs = await localVarAxiosParamCreator.deleteUser(id, options);
  15118. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  15119. },
  15120. /**
  15121. *
  15122. * @param {boolean} isAll
  15123. * @param {*} [options] Override http request option.
  15124. * @throws {RequiredError}
  15125. */
  15126. async getAllUsers(isAll: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<UserResponseDto>>> {
  15127. const localVarAxiosArgs = await localVarAxiosParamCreator.getAllUsers(isAll, options);
  15128. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  15129. },
  15130. /**
  15131. *
  15132. * @param {*} [options] Override http request option.
  15133. * @throws {RequiredError}
  15134. */
  15135. async getMyUserInfo(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  15136. const localVarAxiosArgs = await localVarAxiosParamCreator.getMyUserInfo(options);
  15137. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  15138. },
  15139. /**
  15140. *
  15141. * @param {string} id
  15142. * @param {*} [options] Override http request option.
  15143. * @throws {RequiredError}
  15144. */
  15145. async getProfileImage(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
  15146. const localVarAxiosArgs = await localVarAxiosParamCreator.getProfileImage(id, options);
  15147. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  15148. },
  15149. /**
  15150. *
  15151. * @param {string} id
  15152. * @param {*} [options] Override http request option.
  15153. * @throws {RequiredError}
  15154. */
  15155. async getUserById(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  15156. const localVarAxiosArgs = await localVarAxiosParamCreator.getUserById(id, options);
  15157. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  15158. },
  15159. /**
  15160. *
  15161. * @param {string} id
  15162. * @param {*} [options] Override http request option.
  15163. * @throws {RequiredError}
  15164. */
  15165. async restoreUser(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  15166. const localVarAxiosArgs = await localVarAxiosParamCreator.restoreUser(id, options);
  15167. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  15168. },
  15169. /**
  15170. *
  15171. * @param {UpdateUserDto} updateUserDto
  15172. * @param {*} [options] Override http request option.
  15173. * @throws {RequiredError}
  15174. */
  15175. async updateUser(updateUserDto: UpdateUserDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  15176. const localVarAxiosArgs = await localVarAxiosParamCreator.updateUser(updateUserDto, options);
  15177. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  15178. },
  15179. }
  15180. };
  15181. /**
  15182. * UserApi - factory interface
  15183. * @export
  15184. */
  15185. export const UserApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  15186. const localVarFp = UserApiFp(configuration)
  15187. return {
  15188. /**
  15189. *
  15190. * @param {UserApiCreateProfileImageRequest} requestParameters Request parameters.
  15191. * @param {*} [options] Override http request option.
  15192. * @throws {RequiredError}
  15193. */
  15194. createProfileImage(requestParameters: UserApiCreateProfileImageRequest, options?: AxiosRequestConfig): AxiosPromise<CreateProfileImageResponseDto> {
  15195. return localVarFp.createProfileImage(requestParameters.file, options).then((request) => request(axios, basePath));
  15196. },
  15197. /**
  15198. *
  15199. * @param {UserApiCreateUserRequest} requestParameters Request parameters.
  15200. * @param {*} [options] Override http request option.
  15201. * @throws {RequiredError}
  15202. */
  15203. createUser(requestParameters: UserApiCreateUserRequest, options?: AxiosRequestConfig): AxiosPromise<UserResponseDto> {
  15204. return localVarFp.createUser(requestParameters.createUserDto, options).then((request) => request(axios, basePath));
  15205. },
  15206. /**
  15207. *
  15208. * @param {UserApiDeleteUserRequest} requestParameters Request parameters.
  15209. * @param {*} [options] Override http request option.
  15210. * @throws {RequiredError}
  15211. */
  15212. deleteUser(requestParameters: UserApiDeleteUserRequest, options?: AxiosRequestConfig): AxiosPromise<UserResponseDto> {
  15213. return localVarFp.deleteUser(requestParameters.id, options).then((request) => request(axios, basePath));
  15214. },
  15215. /**
  15216. *
  15217. * @param {UserApiGetAllUsersRequest} requestParameters Request parameters.
  15218. * @param {*} [options] Override http request option.
  15219. * @throws {RequiredError}
  15220. */
  15221. getAllUsers(requestParameters: UserApiGetAllUsersRequest, options?: AxiosRequestConfig): AxiosPromise<Array<UserResponseDto>> {
  15222. return localVarFp.getAllUsers(requestParameters.isAll, options).then((request) => request(axios, basePath));
  15223. },
  15224. /**
  15225. *
  15226. * @param {*} [options] Override http request option.
  15227. * @throws {RequiredError}
  15228. */
  15229. getMyUserInfo(options?: AxiosRequestConfig): AxiosPromise<UserResponseDto> {
  15230. return localVarFp.getMyUserInfo(options).then((request) => request(axios, basePath));
  15231. },
  15232. /**
  15233. *
  15234. * @param {UserApiGetProfileImageRequest} requestParameters Request parameters.
  15235. * @param {*} [options] Override http request option.
  15236. * @throws {RequiredError}
  15237. */
  15238. getProfileImage(requestParameters: UserApiGetProfileImageRequest, options?: AxiosRequestConfig): AxiosPromise<object> {
  15239. return localVarFp.getProfileImage(requestParameters.id, options).then((request) => request(axios, basePath));
  15240. },
  15241. /**
  15242. *
  15243. * @param {UserApiGetUserByIdRequest} requestParameters Request parameters.
  15244. * @param {*} [options] Override http request option.
  15245. * @throws {RequiredError}
  15246. */
  15247. getUserById(requestParameters: UserApiGetUserByIdRequest, options?: AxiosRequestConfig): AxiosPromise<UserResponseDto> {
  15248. return localVarFp.getUserById(requestParameters.id, options).then((request) => request(axios, basePath));
  15249. },
  15250. /**
  15251. *
  15252. * @param {UserApiRestoreUserRequest} requestParameters Request parameters.
  15253. * @param {*} [options] Override http request option.
  15254. * @throws {RequiredError}
  15255. */
  15256. restoreUser(requestParameters: UserApiRestoreUserRequest, options?: AxiosRequestConfig): AxiosPromise<UserResponseDto> {
  15257. return localVarFp.restoreUser(requestParameters.id, options).then((request) => request(axios, basePath));
  15258. },
  15259. /**
  15260. *
  15261. * @param {UserApiUpdateUserRequest} requestParameters Request parameters.
  15262. * @param {*} [options] Override http request option.
  15263. * @throws {RequiredError}
  15264. */
  15265. updateUser(requestParameters: UserApiUpdateUserRequest, options?: AxiosRequestConfig): AxiosPromise<UserResponseDto> {
  15266. return localVarFp.updateUser(requestParameters.updateUserDto, options).then((request) => request(axios, basePath));
  15267. },
  15268. };
  15269. };
  15270. /**
  15271. * Request parameters for createProfileImage operation in UserApi.
  15272. * @export
  15273. * @interface UserApiCreateProfileImageRequest
  15274. */
  15275. export interface UserApiCreateProfileImageRequest {
  15276. /**
  15277. *
  15278. * @type {File}
  15279. * @memberof UserApiCreateProfileImage
  15280. */
  15281. readonly file: File
  15282. }
  15283. /**
  15284. * Request parameters for createUser operation in UserApi.
  15285. * @export
  15286. * @interface UserApiCreateUserRequest
  15287. */
  15288. export interface UserApiCreateUserRequest {
  15289. /**
  15290. *
  15291. * @type {CreateUserDto}
  15292. * @memberof UserApiCreateUser
  15293. */
  15294. readonly createUserDto: CreateUserDto
  15295. }
  15296. /**
  15297. * Request parameters for deleteUser operation in UserApi.
  15298. * @export
  15299. * @interface UserApiDeleteUserRequest
  15300. */
  15301. export interface UserApiDeleteUserRequest {
  15302. /**
  15303. *
  15304. * @type {string}
  15305. * @memberof UserApiDeleteUser
  15306. */
  15307. readonly id: string
  15308. }
  15309. /**
  15310. * Request parameters for getAllUsers operation in UserApi.
  15311. * @export
  15312. * @interface UserApiGetAllUsersRequest
  15313. */
  15314. export interface UserApiGetAllUsersRequest {
  15315. /**
  15316. *
  15317. * @type {boolean}
  15318. * @memberof UserApiGetAllUsers
  15319. */
  15320. readonly isAll: boolean
  15321. }
  15322. /**
  15323. * Request parameters for getProfileImage operation in UserApi.
  15324. * @export
  15325. * @interface UserApiGetProfileImageRequest
  15326. */
  15327. export interface UserApiGetProfileImageRequest {
  15328. /**
  15329. *
  15330. * @type {string}
  15331. * @memberof UserApiGetProfileImage
  15332. */
  15333. readonly id: string
  15334. }
  15335. /**
  15336. * Request parameters for getUserById operation in UserApi.
  15337. * @export
  15338. * @interface UserApiGetUserByIdRequest
  15339. */
  15340. export interface UserApiGetUserByIdRequest {
  15341. /**
  15342. *
  15343. * @type {string}
  15344. * @memberof UserApiGetUserById
  15345. */
  15346. readonly id: string
  15347. }
  15348. /**
  15349. * Request parameters for restoreUser operation in UserApi.
  15350. * @export
  15351. * @interface UserApiRestoreUserRequest
  15352. */
  15353. export interface UserApiRestoreUserRequest {
  15354. /**
  15355. *
  15356. * @type {string}
  15357. * @memberof UserApiRestoreUser
  15358. */
  15359. readonly id: string
  15360. }
  15361. /**
  15362. * Request parameters for updateUser operation in UserApi.
  15363. * @export
  15364. * @interface UserApiUpdateUserRequest
  15365. */
  15366. export interface UserApiUpdateUserRequest {
  15367. /**
  15368. *
  15369. * @type {UpdateUserDto}
  15370. * @memberof UserApiUpdateUser
  15371. */
  15372. readonly updateUserDto: UpdateUserDto
  15373. }
  15374. /**
  15375. * UserApi - object-oriented interface
  15376. * @export
  15377. * @class UserApi
  15378. * @extends {BaseAPI}
  15379. */
  15380. export class UserApi extends BaseAPI {
  15381. /**
  15382. *
  15383. * @param {UserApiCreateProfileImageRequest} requestParameters Request parameters.
  15384. * @param {*} [options] Override http request option.
  15385. * @throws {RequiredError}
  15386. * @memberof UserApi
  15387. */
  15388. public createProfileImage(requestParameters: UserApiCreateProfileImageRequest, options?: AxiosRequestConfig) {
  15389. return UserApiFp(this.configuration).createProfileImage(requestParameters.file, options).then((request) => request(this.axios, this.basePath));
  15390. }
  15391. /**
  15392. *
  15393. * @param {UserApiCreateUserRequest} requestParameters Request parameters.
  15394. * @param {*} [options] Override http request option.
  15395. * @throws {RequiredError}
  15396. * @memberof UserApi
  15397. */
  15398. public createUser(requestParameters: UserApiCreateUserRequest, options?: AxiosRequestConfig) {
  15399. return UserApiFp(this.configuration).createUser(requestParameters.createUserDto, options).then((request) => request(this.axios, this.basePath));
  15400. }
  15401. /**
  15402. *
  15403. * @param {UserApiDeleteUserRequest} requestParameters Request parameters.
  15404. * @param {*} [options] Override http request option.
  15405. * @throws {RequiredError}
  15406. * @memberof UserApi
  15407. */
  15408. public deleteUser(requestParameters: UserApiDeleteUserRequest, options?: AxiosRequestConfig) {
  15409. return UserApiFp(this.configuration).deleteUser(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  15410. }
  15411. /**
  15412. *
  15413. * @param {UserApiGetAllUsersRequest} requestParameters Request parameters.
  15414. * @param {*} [options] Override http request option.
  15415. * @throws {RequiredError}
  15416. * @memberof UserApi
  15417. */
  15418. public getAllUsers(requestParameters: UserApiGetAllUsersRequest, options?: AxiosRequestConfig) {
  15419. return UserApiFp(this.configuration).getAllUsers(requestParameters.isAll, options).then((request) => request(this.axios, this.basePath));
  15420. }
  15421. /**
  15422. *
  15423. * @param {*} [options] Override http request option.
  15424. * @throws {RequiredError}
  15425. * @memberof UserApi
  15426. */
  15427. public getMyUserInfo(options?: AxiosRequestConfig) {
  15428. return UserApiFp(this.configuration).getMyUserInfo(options).then((request) => request(this.axios, this.basePath));
  15429. }
  15430. /**
  15431. *
  15432. * @param {UserApiGetProfileImageRequest} requestParameters Request parameters.
  15433. * @param {*} [options] Override http request option.
  15434. * @throws {RequiredError}
  15435. * @memberof UserApi
  15436. */
  15437. public getProfileImage(requestParameters: UserApiGetProfileImageRequest, options?: AxiosRequestConfig) {
  15438. return UserApiFp(this.configuration).getProfileImage(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  15439. }
  15440. /**
  15441. *
  15442. * @param {UserApiGetUserByIdRequest} requestParameters Request parameters.
  15443. * @param {*} [options] Override http request option.
  15444. * @throws {RequiredError}
  15445. * @memberof UserApi
  15446. */
  15447. public getUserById(requestParameters: UserApiGetUserByIdRequest, options?: AxiosRequestConfig) {
  15448. return UserApiFp(this.configuration).getUserById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  15449. }
  15450. /**
  15451. *
  15452. * @param {UserApiRestoreUserRequest} requestParameters Request parameters.
  15453. * @param {*} [options] Override http request option.
  15454. * @throws {RequiredError}
  15455. * @memberof UserApi
  15456. */
  15457. public restoreUser(requestParameters: UserApiRestoreUserRequest, options?: AxiosRequestConfig) {
  15458. return UserApiFp(this.configuration).restoreUser(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  15459. }
  15460. /**
  15461. *
  15462. * @param {UserApiUpdateUserRequest} requestParameters Request parameters.
  15463. * @param {*} [options] Override http request option.
  15464. * @throws {RequiredError}
  15465. * @memberof UserApi
  15466. */
  15467. public updateUser(requestParameters: UserApiUpdateUserRequest, options?: AxiosRequestConfig) {
  15468. return UserApiFp(this.configuration).updateUser(requestParameters.updateUserDto, options).then((request) => request(this.axios, this.basePath));
  15469. }
  15470. }