api.ts 556 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200
  1. /* tslint:disable */
  2. /* eslint-disable */
  3. /**
  4. * Immich
  5. * Immich API
  6. *
  7. * The version of the OpenAPI document: 1.82.1
  8. *
  9. *
  10. * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
  11. * https://openapi-generator.tech
  12. * Do not edit the class manually.
  13. */
  14. import type { Configuration } from './configuration';
  15. import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
  16. import globalAxios from 'axios';
  17. // Some imports not used depending on template conditions
  18. // @ts-ignore
  19. import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';
  20. import type { RequestArgs } from './base';
  21. // @ts-ignore
  22. import { BASE_PATH, COLLECTION_FORMATS, BaseAPI, RequiredError } from './base';
  23. /**
  24. *
  25. * @export
  26. * @interface APIKeyCreateDto
  27. */
  28. export interface APIKeyCreateDto {
  29. /**
  30. *
  31. * @type {string}
  32. * @memberof APIKeyCreateDto
  33. */
  34. 'name'?: string;
  35. }
  36. /**
  37. *
  38. * @export
  39. * @interface APIKeyCreateResponseDto
  40. */
  41. export interface APIKeyCreateResponseDto {
  42. /**
  43. *
  44. * @type {APIKeyResponseDto}
  45. * @memberof APIKeyCreateResponseDto
  46. */
  47. 'apiKey': APIKeyResponseDto;
  48. /**
  49. *
  50. * @type {string}
  51. * @memberof APIKeyCreateResponseDto
  52. */
  53. 'secret': string;
  54. }
  55. /**
  56. *
  57. * @export
  58. * @interface APIKeyResponseDto
  59. */
  60. export interface APIKeyResponseDto {
  61. /**
  62. *
  63. * @type {string}
  64. * @memberof APIKeyResponseDto
  65. */
  66. 'createdAt': string;
  67. /**
  68. *
  69. * @type {string}
  70. * @memberof APIKeyResponseDto
  71. */
  72. 'id': string;
  73. /**
  74. *
  75. * @type {string}
  76. * @memberof APIKeyResponseDto
  77. */
  78. 'name': string;
  79. /**
  80. *
  81. * @type {string}
  82. * @memberof APIKeyResponseDto
  83. */
  84. 'updatedAt': string;
  85. }
  86. /**
  87. *
  88. * @export
  89. * @interface APIKeyUpdateDto
  90. */
  91. export interface APIKeyUpdateDto {
  92. /**
  93. *
  94. * @type {string}
  95. * @memberof APIKeyUpdateDto
  96. */
  97. 'name': string;
  98. }
  99. /**
  100. *
  101. * @export
  102. * @interface AddUsersDto
  103. */
  104. export interface AddUsersDto {
  105. /**
  106. *
  107. * @type {Array<string>}
  108. * @memberof AddUsersDto
  109. */
  110. 'sharedUserIds': Array<string>;
  111. }
  112. /**
  113. *
  114. * @export
  115. * @interface AdminSignupResponseDto
  116. */
  117. export interface AdminSignupResponseDto {
  118. /**
  119. *
  120. * @type {string}
  121. * @memberof AdminSignupResponseDto
  122. */
  123. 'createdAt': string;
  124. /**
  125. *
  126. * @type {string}
  127. * @memberof AdminSignupResponseDto
  128. */
  129. 'email': string;
  130. /**
  131. *
  132. * @type {string}
  133. * @memberof AdminSignupResponseDto
  134. */
  135. 'firstName': string;
  136. /**
  137. *
  138. * @type {string}
  139. * @memberof AdminSignupResponseDto
  140. */
  141. 'id': string;
  142. /**
  143. *
  144. * @type {string}
  145. * @memberof AdminSignupResponseDto
  146. */
  147. 'lastName': string;
  148. }
  149. /**
  150. *
  151. * @export
  152. * @interface AlbumCountResponseDto
  153. */
  154. export interface AlbumCountResponseDto {
  155. /**
  156. *
  157. * @type {number}
  158. * @memberof AlbumCountResponseDto
  159. */
  160. 'notShared': number;
  161. /**
  162. *
  163. * @type {number}
  164. * @memberof AlbumCountResponseDto
  165. */
  166. 'owned': number;
  167. /**
  168. *
  169. * @type {number}
  170. * @memberof AlbumCountResponseDto
  171. */
  172. 'shared': number;
  173. }
  174. /**
  175. *
  176. * @export
  177. * @interface AlbumResponseDto
  178. */
  179. export interface AlbumResponseDto {
  180. /**
  181. *
  182. * @type {string}
  183. * @memberof AlbumResponseDto
  184. */
  185. 'albumName': string;
  186. /**
  187. *
  188. * @type {string}
  189. * @memberof AlbumResponseDto
  190. */
  191. 'albumThumbnailAssetId': string | null;
  192. /**
  193. *
  194. * @type {number}
  195. * @memberof AlbumResponseDto
  196. */
  197. 'assetCount': number;
  198. /**
  199. *
  200. * @type {Array<AssetResponseDto>}
  201. * @memberof AlbumResponseDto
  202. */
  203. 'assets': Array<AssetResponseDto>;
  204. /**
  205. *
  206. * @type {string}
  207. * @memberof AlbumResponseDto
  208. */
  209. 'createdAt': string;
  210. /**
  211. *
  212. * @type {string}
  213. * @memberof AlbumResponseDto
  214. */
  215. 'description': string;
  216. /**
  217. *
  218. * @type {string}
  219. * @memberof AlbumResponseDto
  220. */
  221. 'endDate'?: string;
  222. /**
  223. *
  224. * @type {boolean}
  225. * @memberof AlbumResponseDto
  226. */
  227. 'hasSharedLink': boolean;
  228. /**
  229. *
  230. * @type {string}
  231. * @memberof AlbumResponseDto
  232. */
  233. 'id': string;
  234. /**
  235. *
  236. * @type {string}
  237. * @memberof AlbumResponseDto
  238. */
  239. 'lastModifiedAssetTimestamp'?: string;
  240. /**
  241. *
  242. * @type {UserResponseDto}
  243. * @memberof AlbumResponseDto
  244. */
  245. 'owner': UserResponseDto;
  246. /**
  247. *
  248. * @type {string}
  249. * @memberof AlbumResponseDto
  250. */
  251. 'ownerId': string;
  252. /**
  253. *
  254. * @type {boolean}
  255. * @memberof AlbumResponseDto
  256. */
  257. 'shared': boolean;
  258. /**
  259. *
  260. * @type {Array<UserResponseDto>}
  261. * @memberof AlbumResponseDto
  262. */
  263. 'sharedUsers': Array<UserResponseDto>;
  264. /**
  265. *
  266. * @type {string}
  267. * @memberof AlbumResponseDto
  268. */
  269. 'startDate'?: string;
  270. /**
  271. *
  272. * @type {string}
  273. * @memberof AlbumResponseDto
  274. */
  275. 'updatedAt': string;
  276. }
  277. /**
  278. *
  279. * @export
  280. * @interface AllJobStatusResponseDto
  281. */
  282. export interface AllJobStatusResponseDto {
  283. /**
  284. *
  285. * @type {JobStatusDto}
  286. * @memberof AllJobStatusResponseDto
  287. */
  288. 'backgroundTask': JobStatusDto;
  289. /**
  290. *
  291. * @type {JobStatusDto}
  292. * @memberof AllJobStatusResponseDto
  293. */
  294. 'clipEncoding': JobStatusDto;
  295. /**
  296. *
  297. * @type {JobStatusDto}
  298. * @memberof AllJobStatusResponseDto
  299. */
  300. 'library': JobStatusDto;
  301. /**
  302. *
  303. * @type {JobStatusDto}
  304. * @memberof AllJobStatusResponseDto
  305. */
  306. 'metadataExtraction': JobStatusDto;
  307. /**
  308. *
  309. * @type {JobStatusDto}
  310. * @memberof AllJobStatusResponseDto
  311. */
  312. 'migration': JobStatusDto;
  313. /**
  314. *
  315. * @type {JobStatusDto}
  316. * @memberof AllJobStatusResponseDto
  317. */
  318. 'objectTagging': JobStatusDto;
  319. /**
  320. *
  321. * @type {JobStatusDto}
  322. * @memberof AllJobStatusResponseDto
  323. */
  324. 'recognizeFaces': JobStatusDto;
  325. /**
  326. *
  327. * @type {JobStatusDto}
  328. * @memberof AllJobStatusResponseDto
  329. */
  330. 'search': JobStatusDto;
  331. /**
  332. *
  333. * @type {JobStatusDto}
  334. * @memberof AllJobStatusResponseDto
  335. */
  336. 'sidecar': JobStatusDto;
  337. /**
  338. *
  339. * @type {JobStatusDto}
  340. * @memberof AllJobStatusResponseDto
  341. */
  342. 'storageTemplateMigration': JobStatusDto;
  343. /**
  344. *
  345. * @type {JobStatusDto}
  346. * @memberof AllJobStatusResponseDto
  347. */
  348. 'thumbnailGeneration': JobStatusDto;
  349. /**
  350. *
  351. * @type {JobStatusDto}
  352. * @memberof AllJobStatusResponseDto
  353. */
  354. 'videoConversion': JobStatusDto;
  355. }
  356. /**
  357. *
  358. * @export
  359. * @interface AssetBulkDeleteDto
  360. */
  361. export interface AssetBulkDeleteDto {
  362. /**
  363. *
  364. * @type {boolean}
  365. * @memberof AssetBulkDeleteDto
  366. */
  367. 'force'?: boolean;
  368. /**
  369. *
  370. * @type {Array<string>}
  371. * @memberof AssetBulkDeleteDto
  372. */
  373. 'ids': Array<string>;
  374. }
  375. /**
  376. *
  377. * @export
  378. * @interface AssetBulkUpdateDto
  379. */
  380. export interface AssetBulkUpdateDto {
  381. /**
  382. *
  383. * @type {Array<string>}
  384. * @memberof AssetBulkUpdateDto
  385. */
  386. 'ids': Array<string>;
  387. /**
  388. *
  389. * @type {boolean}
  390. * @memberof AssetBulkUpdateDto
  391. */
  392. 'isArchived'?: boolean;
  393. /**
  394. *
  395. * @type {boolean}
  396. * @memberof AssetBulkUpdateDto
  397. */
  398. 'isFavorite'?: boolean;
  399. /**
  400. *
  401. * @type {boolean}
  402. * @memberof AssetBulkUpdateDto
  403. */
  404. 'removeParent'?: boolean;
  405. /**
  406. *
  407. * @type {string}
  408. * @memberof AssetBulkUpdateDto
  409. */
  410. 'stackParentId'?: string;
  411. }
  412. /**
  413. *
  414. * @export
  415. * @interface AssetBulkUploadCheckDto
  416. */
  417. export interface AssetBulkUploadCheckDto {
  418. /**
  419. *
  420. * @type {Array<AssetBulkUploadCheckItem>}
  421. * @memberof AssetBulkUploadCheckDto
  422. */
  423. 'assets': Array<AssetBulkUploadCheckItem>;
  424. }
  425. /**
  426. *
  427. * @export
  428. * @interface AssetBulkUploadCheckItem
  429. */
  430. export interface AssetBulkUploadCheckItem {
  431. /**
  432. * base64 or hex encoded sha1 hash
  433. * @type {string}
  434. * @memberof AssetBulkUploadCheckItem
  435. */
  436. 'checksum': string;
  437. /**
  438. *
  439. * @type {string}
  440. * @memberof AssetBulkUploadCheckItem
  441. */
  442. 'id': string;
  443. }
  444. /**
  445. *
  446. * @export
  447. * @interface AssetBulkUploadCheckResponseDto
  448. */
  449. export interface AssetBulkUploadCheckResponseDto {
  450. /**
  451. *
  452. * @type {Array<AssetBulkUploadCheckResult>}
  453. * @memberof AssetBulkUploadCheckResponseDto
  454. */
  455. 'results': Array<AssetBulkUploadCheckResult>;
  456. }
  457. /**
  458. *
  459. * @export
  460. * @interface AssetBulkUploadCheckResult
  461. */
  462. export interface AssetBulkUploadCheckResult {
  463. /**
  464. *
  465. * @type {string}
  466. * @memberof AssetBulkUploadCheckResult
  467. */
  468. 'action': AssetBulkUploadCheckResultActionEnum;
  469. /**
  470. *
  471. * @type {string}
  472. * @memberof AssetBulkUploadCheckResult
  473. */
  474. 'assetId'?: string;
  475. /**
  476. *
  477. * @type {string}
  478. * @memberof AssetBulkUploadCheckResult
  479. */
  480. 'id': string;
  481. /**
  482. *
  483. * @type {string}
  484. * @memberof AssetBulkUploadCheckResult
  485. */
  486. 'reason'?: AssetBulkUploadCheckResultReasonEnum;
  487. }
  488. export const AssetBulkUploadCheckResultActionEnum = {
  489. Accept: 'accept',
  490. Reject: 'reject'
  491. } as const;
  492. export type AssetBulkUploadCheckResultActionEnum = typeof AssetBulkUploadCheckResultActionEnum[keyof typeof AssetBulkUploadCheckResultActionEnum];
  493. export const AssetBulkUploadCheckResultReasonEnum = {
  494. Duplicate: 'duplicate',
  495. UnsupportedFormat: 'unsupported-format'
  496. } as const;
  497. export type AssetBulkUploadCheckResultReasonEnum = typeof AssetBulkUploadCheckResultReasonEnum[keyof typeof AssetBulkUploadCheckResultReasonEnum];
  498. /**
  499. *
  500. * @export
  501. * @interface AssetFileUploadResponseDto
  502. */
  503. export interface AssetFileUploadResponseDto {
  504. /**
  505. *
  506. * @type {boolean}
  507. * @memberof AssetFileUploadResponseDto
  508. */
  509. 'duplicate': boolean;
  510. /**
  511. *
  512. * @type {string}
  513. * @memberof AssetFileUploadResponseDto
  514. */
  515. 'id': string;
  516. }
  517. /**
  518. *
  519. * @export
  520. * @interface AssetIdsDto
  521. */
  522. export interface AssetIdsDto {
  523. /**
  524. *
  525. * @type {Array<string>}
  526. * @memberof AssetIdsDto
  527. */
  528. 'assetIds': Array<string>;
  529. }
  530. /**
  531. *
  532. * @export
  533. * @interface AssetIdsResponseDto
  534. */
  535. export interface AssetIdsResponseDto {
  536. /**
  537. *
  538. * @type {string}
  539. * @memberof AssetIdsResponseDto
  540. */
  541. 'assetId': string;
  542. /**
  543. *
  544. * @type {string}
  545. * @memberof AssetIdsResponseDto
  546. */
  547. 'error'?: AssetIdsResponseDtoErrorEnum;
  548. /**
  549. *
  550. * @type {boolean}
  551. * @memberof AssetIdsResponseDto
  552. */
  553. 'success': boolean;
  554. }
  555. export const AssetIdsResponseDtoErrorEnum = {
  556. Duplicate: 'duplicate',
  557. NoPermission: 'no_permission',
  558. NotFound: 'not_found'
  559. } as const;
  560. export type AssetIdsResponseDtoErrorEnum = typeof AssetIdsResponseDtoErrorEnum[keyof typeof AssetIdsResponseDtoErrorEnum];
  561. /**
  562. *
  563. * @export
  564. * @enum {string}
  565. */
  566. export const AssetJobName = {
  567. RegenerateThumbnail: 'regenerate-thumbnail',
  568. RefreshMetadata: 'refresh-metadata',
  569. TranscodeVideo: 'transcode-video'
  570. } as const;
  571. export type AssetJobName = typeof AssetJobName[keyof typeof AssetJobName];
  572. /**
  573. *
  574. * @export
  575. * @interface AssetJobsDto
  576. */
  577. export interface AssetJobsDto {
  578. /**
  579. *
  580. * @type {Array<string>}
  581. * @memberof AssetJobsDto
  582. */
  583. 'assetIds': Array<string>;
  584. /**
  585. *
  586. * @type {AssetJobName}
  587. * @memberof AssetJobsDto
  588. */
  589. 'name': AssetJobName;
  590. }
  591. /**
  592. *
  593. * @export
  594. * @interface AssetResponseDto
  595. */
  596. export interface AssetResponseDto {
  597. /**
  598. * base64 encoded sha1 hash
  599. * @type {string}
  600. * @memberof AssetResponseDto
  601. */
  602. 'checksum': string;
  603. /**
  604. *
  605. * @type {string}
  606. * @memberof AssetResponseDto
  607. */
  608. 'deviceAssetId': string;
  609. /**
  610. *
  611. * @type {string}
  612. * @memberof AssetResponseDto
  613. */
  614. 'deviceId': string;
  615. /**
  616. *
  617. * @type {string}
  618. * @memberof AssetResponseDto
  619. */
  620. 'duration': string;
  621. /**
  622. *
  623. * @type {ExifResponseDto}
  624. * @memberof AssetResponseDto
  625. */
  626. 'exifInfo'?: ExifResponseDto;
  627. /**
  628. *
  629. * @type {string}
  630. * @memberof AssetResponseDto
  631. */
  632. 'fileCreatedAt': string;
  633. /**
  634. *
  635. * @type {string}
  636. * @memberof AssetResponseDto
  637. */
  638. 'fileModifiedAt': string;
  639. /**
  640. *
  641. * @type {boolean}
  642. * @memberof AssetResponseDto
  643. */
  644. 'hasMetadata': boolean;
  645. /**
  646. *
  647. * @type {string}
  648. * @memberof AssetResponseDto
  649. */
  650. 'id': string;
  651. /**
  652. *
  653. * @type {boolean}
  654. * @memberof AssetResponseDto
  655. */
  656. 'isArchived': boolean;
  657. /**
  658. *
  659. * @type {boolean}
  660. * @memberof AssetResponseDto
  661. */
  662. 'isExternal': boolean;
  663. /**
  664. *
  665. * @type {boolean}
  666. * @memberof AssetResponseDto
  667. */
  668. 'isFavorite': boolean;
  669. /**
  670. *
  671. * @type {boolean}
  672. * @memberof AssetResponseDto
  673. */
  674. 'isOffline': boolean;
  675. /**
  676. *
  677. * @type {boolean}
  678. * @memberof AssetResponseDto
  679. */
  680. 'isReadOnly': boolean;
  681. /**
  682. *
  683. * @type {boolean}
  684. * @memberof AssetResponseDto
  685. */
  686. 'isTrashed': boolean;
  687. /**
  688. *
  689. * @type {string}
  690. * @memberof AssetResponseDto
  691. */
  692. 'libraryId': string;
  693. /**
  694. *
  695. * @type {string}
  696. * @memberof AssetResponseDto
  697. */
  698. 'livePhotoVideoId'?: string | null;
  699. /**
  700. *
  701. * @type {string}
  702. * @memberof AssetResponseDto
  703. */
  704. 'localDateTime': string;
  705. /**
  706. *
  707. * @type {string}
  708. * @memberof AssetResponseDto
  709. */
  710. 'originalFileName': string;
  711. /**
  712. *
  713. * @type {string}
  714. * @memberof AssetResponseDto
  715. */
  716. 'originalPath': string;
  717. /**
  718. *
  719. * @type {UserResponseDto}
  720. * @memberof AssetResponseDto
  721. */
  722. 'owner'?: UserResponseDto;
  723. /**
  724. *
  725. * @type {string}
  726. * @memberof AssetResponseDto
  727. */
  728. 'ownerId': string;
  729. /**
  730. *
  731. * @type {Array<PersonResponseDto>}
  732. * @memberof AssetResponseDto
  733. */
  734. 'people'?: Array<PersonResponseDto>;
  735. /**
  736. *
  737. * @type {boolean}
  738. * @memberof AssetResponseDto
  739. */
  740. 'resized': boolean;
  741. /**
  742. *
  743. * @type {SmartInfoResponseDto}
  744. * @memberof AssetResponseDto
  745. */
  746. 'smartInfo'?: SmartInfoResponseDto;
  747. /**
  748. *
  749. * @type {Array<AssetResponseDto>}
  750. * @memberof AssetResponseDto
  751. */
  752. 'stack'?: Array<AssetResponseDto>;
  753. /**
  754. *
  755. * @type {number}
  756. * @memberof AssetResponseDto
  757. */
  758. 'stackCount': number;
  759. /**
  760. *
  761. * @type {string}
  762. * @memberof AssetResponseDto
  763. */
  764. 'stackParentId'?: string | null;
  765. /**
  766. *
  767. * @type {Array<TagResponseDto>}
  768. * @memberof AssetResponseDto
  769. */
  770. 'tags'?: Array<TagResponseDto>;
  771. /**
  772. *
  773. * @type {string}
  774. * @memberof AssetResponseDto
  775. */
  776. 'thumbhash': string | null;
  777. /**
  778. *
  779. * @type {AssetTypeEnum}
  780. * @memberof AssetResponseDto
  781. */
  782. 'type': AssetTypeEnum;
  783. /**
  784. *
  785. * @type {string}
  786. * @memberof AssetResponseDto
  787. */
  788. 'updatedAt': string;
  789. }
  790. /**
  791. *
  792. * @export
  793. * @interface AssetStatsResponseDto
  794. */
  795. export interface AssetStatsResponseDto {
  796. /**
  797. *
  798. * @type {number}
  799. * @memberof AssetStatsResponseDto
  800. */
  801. 'images': number;
  802. /**
  803. *
  804. * @type {number}
  805. * @memberof AssetStatsResponseDto
  806. */
  807. 'total': number;
  808. /**
  809. *
  810. * @type {number}
  811. * @memberof AssetStatsResponseDto
  812. */
  813. 'videos': number;
  814. }
  815. /**
  816. *
  817. * @export
  818. * @enum {string}
  819. */
  820. export const AssetTypeEnum = {
  821. Image: 'IMAGE',
  822. Video: 'VIDEO',
  823. Audio: 'AUDIO',
  824. Other: 'OTHER'
  825. } as const;
  826. export type AssetTypeEnum = typeof AssetTypeEnum[keyof typeof AssetTypeEnum];
  827. /**
  828. *
  829. * @export
  830. * @enum {string}
  831. */
  832. export const AudioCodec = {
  833. Mp3: 'mp3',
  834. Aac: 'aac',
  835. Libopus: 'libopus'
  836. } as const;
  837. export type AudioCodec = typeof AudioCodec[keyof typeof AudioCodec];
  838. /**
  839. *
  840. * @export
  841. * @interface AuditDeletesResponseDto
  842. */
  843. export interface AuditDeletesResponseDto {
  844. /**
  845. *
  846. * @type {Array<string>}
  847. * @memberof AuditDeletesResponseDto
  848. */
  849. 'ids': Array<string>;
  850. /**
  851. *
  852. * @type {boolean}
  853. * @memberof AuditDeletesResponseDto
  854. */
  855. 'needsFullSync': boolean;
  856. }
  857. /**
  858. *
  859. * @export
  860. * @interface AuthDeviceResponseDto
  861. */
  862. export interface AuthDeviceResponseDto {
  863. /**
  864. *
  865. * @type {string}
  866. * @memberof AuthDeviceResponseDto
  867. */
  868. 'createdAt': string;
  869. /**
  870. *
  871. * @type {boolean}
  872. * @memberof AuthDeviceResponseDto
  873. */
  874. 'current': boolean;
  875. /**
  876. *
  877. * @type {string}
  878. * @memberof AuthDeviceResponseDto
  879. */
  880. 'deviceOS': string;
  881. /**
  882. *
  883. * @type {string}
  884. * @memberof AuthDeviceResponseDto
  885. */
  886. 'deviceType': string;
  887. /**
  888. *
  889. * @type {string}
  890. * @memberof AuthDeviceResponseDto
  891. */
  892. 'id': string;
  893. /**
  894. *
  895. * @type {string}
  896. * @memberof AuthDeviceResponseDto
  897. */
  898. 'updatedAt': string;
  899. }
  900. /**
  901. *
  902. * @export
  903. * @interface BulkIdResponseDto
  904. */
  905. export interface BulkIdResponseDto {
  906. /**
  907. *
  908. * @type {string}
  909. * @memberof BulkIdResponseDto
  910. */
  911. 'error'?: BulkIdResponseDtoErrorEnum;
  912. /**
  913. *
  914. * @type {string}
  915. * @memberof BulkIdResponseDto
  916. */
  917. 'id': string;
  918. /**
  919. *
  920. * @type {boolean}
  921. * @memberof BulkIdResponseDto
  922. */
  923. 'success': boolean;
  924. }
  925. export const BulkIdResponseDtoErrorEnum = {
  926. Duplicate: 'duplicate',
  927. NoPermission: 'no_permission',
  928. NotFound: 'not_found',
  929. Unknown: 'unknown'
  930. } as const;
  931. export type BulkIdResponseDtoErrorEnum = typeof BulkIdResponseDtoErrorEnum[keyof typeof BulkIdResponseDtoErrorEnum];
  932. /**
  933. *
  934. * @export
  935. * @interface BulkIdsDto
  936. */
  937. export interface BulkIdsDto {
  938. /**
  939. *
  940. * @type {Array<string>}
  941. * @memberof BulkIdsDto
  942. */
  943. 'ids': Array<string>;
  944. }
  945. /**
  946. *
  947. * @export
  948. * @interface CLIPConfig
  949. */
  950. export interface CLIPConfig {
  951. /**
  952. *
  953. * @type {boolean}
  954. * @memberof CLIPConfig
  955. */
  956. 'enabled': boolean;
  957. /**
  958. *
  959. * @type {CLIPMode}
  960. * @memberof CLIPConfig
  961. */
  962. 'mode'?: CLIPMode;
  963. /**
  964. *
  965. * @type {string}
  966. * @memberof CLIPConfig
  967. */
  968. 'modelName': string;
  969. /**
  970. *
  971. * @type {ModelType}
  972. * @memberof CLIPConfig
  973. */
  974. 'modelType'?: ModelType;
  975. }
  976. /**
  977. *
  978. * @export
  979. * @enum {string}
  980. */
  981. export const CLIPMode = {
  982. Vision: 'vision',
  983. Text: 'text'
  984. } as const;
  985. export type CLIPMode = typeof CLIPMode[keyof typeof CLIPMode];
  986. /**
  987. *
  988. * @export
  989. * @enum {string}
  990. */
  991. export const CQMode = {
  992. Auto: 'auto',
  993. Cqp: 'cqp',
  994. Icq: 'icq'
  995. } as const;
  996. export type CQMode = typeof CQMode[keyof typeof CQMode];
  997. /**
  998. *
  999. * @export
  1000. * @interface ChangePasswordDto
  1001. */
  1002. export interface ChangePasswordDto {
  1003. /**
  1004. *
  1005. * @type {string}
  1006. * @memberof ChangePasswordDto
  1007. */
  1008. 'newPassword': string;
  1009. /**
  1010. *
  1011. * @type {string}
  1012. * @memberof ChangePasswordDto
  1013. */
  1014. 'password': string;
  1015. }
  1016. /**
  1017. *
  1018. * @export
  1019. * @interface CheckDuplicateAssetDto
  1020. */
  1021. export interface CheckDuplicateAssetDto {
  1022. /**
  1023. *
  1024. * @type {string}
  1025. * @memberof CheckDuplicateAssetDto
  1026. */
  1027. 'deviceAssetId': string;
  1028. /**
  1029. *
  1030. * @type {string}
  1031. * @memberof CheckDuplicateAssetDto
  1032. */
  1033. 'deviceId': string;
  1034. }
  1035. /**
  1036. *
  1037. * @export
  1038. * @interface CheckDuplicateAssetResponseDto
  1039. */
  1040. export interface CheckDuplicateAssetResponseDto {
  1041. /**
  1042. *
  1043. * @type {string}
  1044. * @memberof CheckDuplicateAssetResponseDto
  1045. */
  1046. 'id'?: string;
  1047. /**
  1048. *
  1049. * @type {boolean}
  1050. * @memberof CheckDuplicateAssetResponseDto
  1051. */
  1052. 'isExist': boolean;
  1053. }
  1054. /**
  1055. *
  1056. * @export
  1057. * @interface CheckExistingAssetsDto
  1058. */
  1059. export interface CheckExistingAssetsDto {
  1060. /**
  1061. *
  1062. * @type {Array<string>}
  1063. * @memberof CheckExistingAssetsDto
  1064. */
  1065. 'deviceAssetIds': Array<string>;
  1066. /**
  1067. *
  1068. * @type {string}
  1069. * @memberof CheckExistingAssetsDto
  1070. */
  1071. 'deviceId': string;
  1072. }
  1073. /**
  1074. *
  1075. * @export
  1076. * @interface CheckExistingAssetsResponseDto
  1077. */
  1078. export interface CheckExistingAssetsResponseDto {
  1079. /**
  1080. *
  1081. * @type {Array<string>}
  1082. * @memberof CheckExistingAssetsResponseDto
  1083. */
  1084. 'existingIds': Array<string>;
  1085. }
  1086. /**
  1087. *
  1088. * @export
  1089. * @enum {string}
  1090. */
  1091. export const CitiesFile = {
  1092. Cities15000: 'cities15000',
  1093. Cities5000: 'cities5000',
  1094. Cities1000: 'cities1000',
  1095. Cities500: 'cities500'
  1096. } as const;
  1097. export type CitiesFile = typeof CitiesFile[keyof typeof CitiesFile];
  1098. /**
  1099. *
  1100. * @export
  1101. * @interface ClassificationConfig
  1102. */
  1103. export interface ClassificationConfig {
  1104. /**
  1105. *
  1106. * @type {boolean}
  1107. * @memberof ClassificationConfig
  1108. */
  1109. 'enabled': boolean;
  1110. /**
  1111. *
  1112. * @type {number}
  1113. * @memberof ClassificationConfig
  1114. */
  1115. 'minScore': number;
  1116. /**
  1117. *
  1118. * @type {string}
  1119. * @memberof ClassificationConfig
  1120. */
  1121. 'modelName': string;
  1122. /**
  1123. *
  1124. * @type {ModelType}
  1125. * @memberof ClassificationConfig
  1126. */
  1127. 'modelType'?: ModelType;
  1128. }
  1129. /**
  1130. *
  1131. * @export
  1132. * @enum {string}
  1133. */
  1134. export const Colorspace = {
  1135. Srgb: 'srgb',
  1136. P3: 'p3'
  1137. } as const;
  1138. export type Colorspace = typeof Colorspace[keyof typeof Colorspace];
  1139. /**
  1140. *
  1141. * @export
  1142. * @interface CreateAlbumDto
  1143. */
  1144. export interface CreateAlbumDto {
  1145. /**
  1146. *
  1147. * @type {string}
  1148. * @memberof CreateAlbumDto
  1149. */
  1150. 'albumName': string;
  1151. /**
  1152. *
  1153. * @type {Array<string>}
  1154. * @memberof CreateAlbumDto
  1155. */
  1156. 'assetIds'?: Array<string>;
  1157. /**
  1158. *
  1159. * @type {string}
  1160. * @memberof CreateAlbumDto
  1161. */
  1162. 'description'?: string;
  1163. /**
  1164. *
  1165. * @type {Array<string>}
  1166. * @memberof CreateAlbumDto
  1167. */
  1168. 'sharedWithUserIds'?: Array<string>;
  1169. }
  1170. /**
  1171. *
  1172. * @export
  1173. * @interface CreateLibraryDto
  1174. */
  1175. export interface CreateLibraryDto {
  1176. /**
  1177. *
  1178. * @type {Array<string>}
  1179. * @memberof CreateLibraryDto
  1180. */
  1181. 'exclusionPatterns'?: Array<string>;
  1182. /**
  1183. *
  1184. * @type {Array<string>}
  1185. * @memberof CreateLibraryDto
  1186. */
  1187. 'importPaths'?: Array<string>;
  1188. /**
  1189. *
  1190. * @type {boolean}
  1191. * @memberof CreateLibraryDto
  1192. */
  1193. 'isVisible'?: boolean;
  1194. /**
  1195. *
  1196. * @type {string}
  1197. * @memberof CreateLibraryDto
  1198. */
  1199. 'name'?: string;
  1200. /**
  1201. *
  1202. * @type {LibraryType}
  1203. * @memberof CreateLibraryDto
  1204. */
  1205. 'type': LibraryType;
  1206. }
  1207. /**
  1208. *
  1209. * @export
  1210. * @interface CreateProfileImageResponseDto
  1211. */
  1212. export interface CreateProfileImageResponseDto {
  1213. /**
  1214. *
  1215. * @type {string}
  1216. * @memberof CreateProfileImageResponseDto
  1217. */
  1218. 'profileImagePath': string;
  1219. /**
  1220. *
  1221. * @type {string}
  1222. * @memberof CreateProfileImageResponseDto
  1223. */
  1224. 'userId': string;
  1225. }
  1226. /**
  1227. *
  1228. * @export
  1229. * @interface CreateTagDto
  1230. */
  1231. export interface CreateTagDto {
  1232. /**
  1233. *
  1234. * @type {string}
  1235. * @memberof CreateTagDto
  1236. */
  1237. 'name': string;
  1238. /**
  1239. *
  1240. * @type {TagTypeEnum}
  1241. * @memberof CreateTagDto
  1242. */
  1243. 'type': TagTypeEnum;
  1244. }
  1245. /**
  1246. *
  1247. * @export
  1248. * @interface CreateUserDto
  1249. */
  1250. export interface CreateUserDto {
  1251. /**
  1252. *
  1253. * @type {string}
  1254. * @memberof CreateUserDto
  1255. */
  1256. 'email': string;
  1257. /**
  1258. *
  1259. * @type {string}
  1260. * @memberof CreateUserDto
  1261. */
  1262. 'externalPath'?: string | null;
  1263. /**
  1264. *
  1265. * @type {string}
  1266. * @memberof CreateUserDto
  1267. */
  1268. 'firstName': string;
  1269. /**
  1270. *
  1271. * @type {string}
  1272. * @memberof CreateUserDto
  1273. */
  1274. 'lastName': string;
  1275. /**
  1276. *
  1277. * @type {boolean}
  1278. * @memberof CreateUserDto
  1279. */
  1280. 'memoriesEnabled'?: boolean;
  1281. /**
  1282. *
  1283. * @type {string}
  1284. * @memberof CreateUserDto
  1285. */
  1286. 'password': string;
  1287. /**
  1288. *
  1289. * @type {string}
  1290. * @memberof CreateUserDto
  1291. */
  1292. 'storageLabel'?: string | null;
  1293. }
  1294. /**
  1295. *
  1296. * @export
  1297. * @interface CuratedLocationsResponseDto
  1298. */
  1299. export interface CuratedLocationsResponseDto {
  1300. /**
  1301. *
  1302. * @type {string}
  1303. * @memberof CuratedLocationsResponseDto
  1304. */
  1305. 'city': string;
  1306. /**
  1307. *
  1308. * @type {string}
  1309. * @memberof CuratedLocationsResponseDto
  1310. */
  1311. 'deviceAssetId': string;
  1312. /**
  1313. *
  1314. * @type {string}
  1315. * @memberof CuratedLocationsResponseDto
  1316. */
  1317. 'deviceId': string;
  1318. /**
  1319. *
  1320. * @type {string}
  1321. * @memberof CuratedLocationsResponseDto
  1322. */
  1323. 'id': string;
  1324. /**
  1325. *
  1326. * @type {string}
  1327. * @memberof CuratedLocationsResponseDto
  1328. */
  1329. 'resizePath': string;
  1330. }
  1331. /**
  1332. *
  1333. * @export
  1334. * @interface CuratedObjectsResponseDto
  1335. */
  1336. export interface CuratedObjectsResponseDto {
  1337. /**
  1338. *
  1339. * @type {string}
  1340. * @memberof CuratedObjectsResponseDto
  1341. */
  1342. 'deviceAssetId': string;
  1343. /**
  1344. *
  1345. * @type {string}
  1346. * @memberof CuratedObjectsResponseDto
  1347. */
  1348. 'deviceId': string;
  1349. /**
  1350. *
  1351. * @type {string}
  1352. * @memberof CuratedObjectsResponseDto
  1353. */
  1354. 'id': string;
  1355. /**
  1356. *
  1357. * @type {string}
  1358. * @memberof CuratedObjectsResponseDto
  1359. */
  1360. 'object': string;
  1361. /**
  1362. *
  1363. * @type {string}
  1364. * @memberof CuratedObjectsResponseDto
  1365. */
  1366. 'resizePath': string;
  1367. }
  1368. /**
  1369. *
  1370. * @export
  1371. * @interface DownloadArchiveInfo
  1372. */
  1373. export interface DownloadArchiveInfo {
  1374. /**
  1375. *
  1376. * @type {Array<string>}
  1377. * @memberof DownloadArchiveInfo
  1378. */
  1379. 'assetIds': Array<string>;
  1380. /**
  1381. *
  1382. * @type {number}
  1383. * @memberof DownloadArchiveInfo
  1384. */
  1385. 'size': number;
  1386. }
  1387. /**
  1388. *
  1389. * @export
  1390. * @interface DownloadInfoDto
  1391. */
  1392. export interface DownloadInfoDto {
  1393. /**
  1394. *
  1395. * @type {string}
  1396. * @memberof DownloadInfoDto
  1397. */
  1398. 'albumId'?: string;
  1399. /**
  1400. *
  1401. * @type {number}
  1402. * @memberof DownloadInfoDto
  1403. */
  1404. 'archiveSize'?: number;
  1405. /**
  1406. *
  1407. * @type {Array<string>}
  1408. * @memberof DownloadInfoDto
  1409. */
  1410. 'assetIds'?: Array<string>;
  1411. /**
  1412. *
  1413. * @type {string}
  1414. * @memberof DownloadInfoDto
  1415. */
  1416. 'userId'?: string;
  1417. }
  1418. /**
  1419. *
  1420. * @export
  1421. * @interface DownloadResponseDto
  1422. */
  1423. export interface DownloadResponseDto {
  1424. /**
  1425. *
  1426. * @type {Array<DownloadArchiveInfo>}
  1427. * @memberof DownloadResponseDto
  1428. */
  1429. 'archives': Array<DownloadArchiveInfo>;
  1430. /**
  1431. *
  1432. * @type {number}
  1433. * @memberof DownloadResponseDto
  1434. */
  1435. 'totalSize': number;
  1436. }
  1437. /**
  1438. *
  1439. * @export
  1440. * @enum {string}
  1441. */
  1442. export const EntityType = {
  1443. Asset: 'ASSET',
  1444. Album: 'ALBUM'
  1445. } as const;
  1446. export type EntityType = typeof EntityType[keyof typeof EntityType];
  1447. /**
  1448. *
  1449. * @export
  1450. * @interface ExifResponseDto
  1451. */
  1452. export interface ExifResponseDto {
  1453. /**
  1454. *
  1455. * @type {string}
  1456. * @memberof ExifResponseDto
  1457. */
  1458. 'city'?: string | null;
  1459. /**
  1460. *
  1461. * @type {string}
  1462. * @memberof ExifResponseDto
  1463. */
  1464. 'country'?: string | null;
  1465. /**
  1466. *
  1467. * @type {string}
  1468. * @memberof ExifResponseDto
  1469. */
  1470. 'dateTimeOriginal'?: string | null;
  1471. /**
  1472. *
  1473. * @type {string}
  1474. * @memberof ExifResponseDto
  1475. */
  1476. 'description'?: string | null;
  1477. /**
  1478. *
  1479. * @type {number}
  1480. * @memberof ExifResponseDto
  1481. */
  1482. 'exifImageHeight'?: number | null;
  1483. /**
  1484. *
  1485. * @type {number}
  1486. * @memberof ExifResponseDto
  1487. */
  1488. 'exifImageWidth'?: number | null;
  1489. /**
  1490. *
  1491. * @type {string}
  1492. * @memberof ExifResponseDto
  1493. */
  1494. 'exposureTime'?: string | null;
  1495. /**
  1496. *
  1497. * @type {number}
  1498. * @memberof ExifResponseDto
  1499. */
  1500. 'fNumber'?: number | null;
  1501. /**
  1502. *
  1503. * @type {number}
  1504. * @memberof ExifResponseDto
  1505. */
  1506. 'fileSizeInByte'?: number | null;
  1507. /**
  1508. *
  1509. * @type {number}
  1510. * @memberof ExifResponseDto
  1511. */
  1512. 'focalLength'?: number | null;
  1513. /**
  1514. *
  1515. * @type {number}
  1516. * @memberof ExifResponseDto
  1517. */
  1518. 'iso'?: number | null;
  1519. /**
  1520. *
  1521. * @type {number}
  1522. * @memberof ExifResponseDto
  1523. */
  1524. 'latitude'?: number | null;
  1525. /**
  1526. *
  1527. * @type {string}
  1528. * @memberof ExifResponseDto
  1529. */
  1530. 'lensModel'?: string | null;
  1531. /**
  1532. *
  1533. * @type {number}
  1534. * @memberof ExifResponseDto
  1535. */
  1536. 'longitude'?: number | null;
  1537. /**
  1538. *
  1539. * @type {string}
  1540. * @memberof ExifResponseDto
  1541. */
  1542. 'make'?: string | null;
  1543. /**
  1544. *
  1545. * @type {string}
  1546. * @memberof ExifResponseDto
  1547. */
  1548. 'model'?: string | null;
  1549. /**
  1550. *
  1551. * @type {string}
  1552. * @memberof ExifResponseDto
  1553. */
  1554. 'modifyDate'?: string | null;
  1555. /**
  1556. *
  1557. * @type {string}
  1558. * @memberof ExifResponseDto
  1559. */
  1560. 'orientation'?: string | null;
  1561. /**
  1562. *
  1563. * @type {string}
  1564. * @memberof ExifResponseDto
  1565. */
  1566. 'projectionType'?: string | null;
  1567. /**
  1568. *
  1569. * @type {string}
  1570. * @memberof ExifResponseDto
  1571. */
  1572. 'state'?: string | null;
  1573. /**
  1574. *
  1575. * @type {string}
  1576. * @memberof ExifResponseDto
  1577. */
  1578. 'timeZone'?: string | null;
  1579. }
  1580. /**
  1581. *
  1582. * @export
  1583. * @interface FileChecksumDto
  1584. */
  1585. export interface FileChecksumDto {
  1586. /**
  1587. *
  1588. * @type {Array<string>}
  1589. * @memberof FileChecksumDto
  1590. */
  1591. 'filenames': Array<string>;
  1592. }
  1593. /**
  1594. *
  1595. * @export
  1596. * @interface FileChecksumResponseDto
  1597. */
  1598. export interface FileChecksumResponseDto {
  1599. /**
  1600. *
  1601. * @type {string}
  1602. * @memberof FileChecksumResponseDto
  1603. */
  1604. 'checksum': string;
  1605. /**
  1606. *
  1607. * @type {string}
  1608. * @memberof FileChecksumResponseDto
  1609. */
  1610. 'filename': string;
  1611. }
  1612. /**
  1613. *
  1614. * @export
  1615. * @interface FileReportDto
  1616. */
  1617. export interface FileReportDto {
  1618. /**
  1619. *
  1620. * @type {Array<string>}
  1621. * @memberof FileReportDto
  1622. */
  1623. 'extras': Array<string>;
  1624. /**
  1625. *
  1626. * @type {Array<FileReportItemDto>}
  1627. * @memberof FileReportDto
  1628. */
  1629. 'orphans': Array<FileReportItemDto>;
  1630. }
  1631. /**
  1632. *
  1633. * @export
  1634. * @interface FileReportFixDto
  1635. */
  1636. export interface FileReportFixDto {
  1637. /**
  1638. *
  1639. * @type {Array<FileReportItemDto>}
  1640. * @memberof FileReportFixDto
  1641. */
  1642. 'items': Array<FileReportItemDto>;
  1643. }
  1644. /**
  1645. *
  1646. * @export
  1647. * @interface FileReportItemDto
  1648. */
  1649. export interface FileReportItemDto {
  1650. /**
  1651. *
  1652. * @type {string}
  1653. * @memberof FileReportItemDto
  1654. */
  1655. 'checksum'?: string;
  1656. /**
  1657. *
  1658. * @type {string}
  1659. * @memberof FileReportItemDto
  1660. */
  1661. 'entityId': string;
  1662. /**
  1663. *
  1664. * @type {PathEntityType}
  1665. * @memberof FileReportItemDto
  1666. */
  1667. 'entityType': PathEntityType;
  1668. /**
  1669. *
  1670. * @type {PathType}
  1671. * @memberof FileReportItemDto
  1672. */
  1673. 'pathType': PathType;
  1674. /**
  1675. *
  1676. * @type {string}
  1677. * @memberof FileReportItemDto
  1678. */
  1679. 'pathValue': string;
  1680. }
  1681. /**
  1682. *
  1683. * @export
  1684. * @interface ImportAssetDto
  1685. */
  1686. export interface ImportAssetDto {
  1687. /**
  1688. *
  1689. * @type {string}
  1690. * @memberof ImportAssetDto
  1691. */
  1692. 'assetPath': string;
  1693. /**
  1694. *
  1695. * @type {string}
  1696. * @memberof ImportAssetDto
  1697. */
  1698. 'deviceAssetId': string;
  1699. /**
  1700. *
  1701. * @type {string}
  1702. * @memberof ImportAssetDto
  1703. */
  1704. 'deviceId': string;
  1705. /**
  1706. *
  1707. * @type {string}
  1708. * @memberof ImportAssetDto
  1709. */
  1710. 'duration'?: string;
  1711. /**
  1712. *
  1713. * @type {string}
  1714. * @memberof ImportAssetDto
  1715. */
  1716. 'fileCreatedAt': string;
  1717. /**
  1718. *
  1719. * @type {string}
  1720. * @memberof ImportAssetDto
  1721. */
  1722. 'fileModifiedAt': string;
  1723. /**
  1724. *
  1725. * @type {boolean}
  1726. * @memberof ImportAssetDto
  1727. */
  1728. 'isArchived'?: boolean;
  1729. /**
  1730. *
  1731. * @type {boolean}
  1732. * @memberof ImportAssetDto
  1733. */
  1734. 'isExternal'?: boolean;
  1735. /**
  1736. *
  1737. * @type {boolean}
  1738. * @memberof ImportAssetDto
  1739. */
  1740. 'isFavorite': boolean;
  1741. /**
  1742. *
  1743. * @type {boolean}
  1744. * @memberof ImportAssetDto
  1745. */
  1746. 'isOffline'?: boolean;
  1747. /**
  1748. *
  1749. * @type {boolean}
  1750. * @memberof ImportAssetDto
  1751. */
  1752. 'isReadOnly'?: boolean;
  1753. /**
  1754. *
  1755. * @type {boolean}
  1756. * @memberof ImportAssetDto
  1757. */
  1758. 'isVisible'?: boolean;
  1759. /**
  1760. *
  1761. * @type {string}
  1762. * @memberof ImportAssetDto
  1763. */
  1764. 'libraryId'?: string;
  1765. /**
  1766. *
  1767. * @type {string}
  1768. * @memberof ImportAssetDto
  1769. */
  1770. 'sidecarPath'?: string;
  1771. }
  1772. /**
  1773. *
  1774. * @export
  1775. * @enum {string}
  1776. */
  1777. export const JobCommand = {
  1778. Start: 'start',
  1779. Pause: 'pause',
  1780. Resume: 'resume',
  1781. Empty: 'empty'
  1782. } as const;
  1783. export type JobCommand = typeof JobCommand[keyof typeof JobCommand];
  1784. /**
  1785. *
  1786. * @export
  1787. * @interface JobCommandDto
  1788. */
  1789. export interface JobCommandDto {
  1790. /**
  1791. *
  1792. * @type {JobCommand}
  1793. * @memberof JobCommandDto
  1794. */
  1795. 'command': JobCommand;
  1796. /**
  1797. *
  1798. * @type {boolean}
  1799. * @memberof JobCommandDto
  1800. */
  1801. 'force': boolean;
  1802. }
  1803. /**
  1804. *
  1805. * @export
  1806. * @interface JobCountsDto
  1807. */
  1808. export interface JobCountsDto {
  1809. /**
  1810. *
  1811. * @type {number}
  1812. * @memberof JobCountsDto
  1813. */
  1814. 'active': number;
  1815. /**
  1816. *
  1817. * @type {number}
  1818. * @memberof JobCountsDto
  1819. */
  1820. 'completed': number;
  1821. /**
  1822. *
  1823. * @type {number}
  1824. * @memberof JobCountsDto
  1825. */
  1826. 'delayed': number;
  1827. /**
  1828. *
  1829. * @type {number}
  1830. * @memberof JobCountsDto
  1831. */
  1832. 'failed': number;
  1833. /**
  1834. *
  1835. * @type {number}
  1836. * @memberof JobCountsDto
  1837. */
  1838. 'paused': number;
  1839. /**
  1840. *
  1841. * @type {number}
  1842. * @memberof JobCountsDto
  1843. */
  1844. 'waiting': number;
  1845. }
  1846. /**
  1847. *
  1848. * @export
  1849. * @enum {string}
  1850. */
  1851. export const JobName = {
  1852. ThumbnailGeneration: 'thumbnailGeneration',
  1853. MetadataExtraction: 'metadataExtraction',
  1854. VideoConversion: 'videoConversion',
  1855. ObjectTagging: 'objectTagging',
  1856. RecognizeFaces: 'recognizeFaces',
  1857. ClipEncoding: 'clipEncoding',
  1858. BackgroundTask: 'backgroundTask',
  1859. StorageTemplateMigration: 'storageTemplateMigration',
  1860. Migration: 'migration',
  1861. Search: 'search',
  1862. Sidecar: 'sidecar',
  1863. Library: 'library'
  1864. } as const;
  1865. export type JobName = typeof JobName[keyof typeof JobName];
  1866. /**
  1867. *
  1868. * @export
  1869. * @interface JobSettingsDto
  1870. */
  1871. export interface JobSettingsDto {
  1872. /**
  1873. *
  1874. * @type {number}
  1875. * @memberof JobSettingsDto
  1876. */
  1877. 'concurrency': number;
  1878. }
  1879. /**
  1880. *
  1881. * @export
  1882. * @interface JobStatusDto
  1883. */
  1884. export interface JobStatusDto {
  1885. /**
  1886. *
  1887. * @type {JobCountsDto}
  1888. * @memberof JobStatusDto
  1889. */
  1890. 'jobCounts': JobCountsDto;
  1891. /**
  1892. *
  1893. * @type {QueueStatusDto}
  1894. * @memberof JobStatusDto
  1895. */
  1896. 'queueStatus': QueueStatusDto;
  1897. }
  1898. /**
  1899. *
  1900. * @export
  1901. * @interface LibraryResponseDto
  1902. */
  1903. export interface LibraryResponseDto {
  1904. /**
  1905. *
  1906. * @type {number}
  1907. * @memberof LibraryResponseDto
  1908. */
  1909. 'assetCount': number;
  1910. /**
  1911. *
  1912. * @type {string}
  1913. * @memberof LibraryResponseDto
  1914. */
  1915. 'createdAt': string;
  1916. /**
  1917. *
  1918. * @type {Array<string>}
  1919. * @memberof LibraryResponseDto
  1920. */
  1921. 'exclusionPatterns': Array<string>;
  1922. /**
  1923. *
  1924. * @type {string}
  1925. * @memberof LibraryResponseDto
  1926. */
  1927. 'id': string;
  1928. /**
  1929. *
  1930. * @type {Array<string>}
  1931. * @memberof LibraryResponseDto
  1932. */
  1933. 'importPaths': Array<string>;
  1934. /**
  1935. *
  1936. * @type {string}
  1937. * @memberof LibraryResponseDto
  1938. */
  1939. 'name': string;
  1940. /**
  1941. *
  1942. * @type {string}
  1943. * @memberof LibraryResponseDto
  1944. */
  1945. 'ownerId': string;
  1946. /**
  1947. *
  1948. * @type {string}
  1949. * @memberof LibraryResponseDto
  1950. */
  1951. 'refreshedAt': string | null;
  1952. /**
  1953. *
  1954. * @type {LibraryType}
  1955. * @memberof LibraryResponseDto
  1956. */
  1957. 'type': LibraryType;
  1958. /**
  1959. *
  1960. * @type {string}
  1961. * @memberof LibraryResponseDto
  1962. */
  1963. 'updatedAt': string;
  1964. }
  1965. /**
  1966. *
  1967. * @export
  1968. * @interface LibraryStatsResponseDto
  1969. */
  1970. export interface LibraryStatsResponseDto {
  1971. /**
  1972. *
  1973. * @type {number}
  1974. * @memberof LibraryStatsResponseDto
  1975. */
  1976. 'photos': number;
  1977. /**
  1978. *
  1979. * @type {number}
  1980. * @memberof LibraryStatsResponseDto
  1981. */
  1982. 'total': number;
  1983. /**
  1984. *
  1985. * @type {number}
  1986. * @memberof LibraryStatsResponseDto
  1987. */
  1988. 'usage': number;
  1989. /**
  1990. *
  1991. * @type {number}
  1992. * @memberof LibraryStatsResponseDto
  1993. */
  1994. 'videos': number;
  1995. }
  1996. /**
  1997. *
  1998. * @export
  1999. * @enum {string}
  2000. */
  2001. export const LibraryType = {
  2002. Upload: 'UPLOAD',
  2003. External: 'EXTERNAL'
  2004. } as const;
  2005. export type LibraryType = typeof LibraryType[keyof typeof LibraryType];
  2006. /**
  2007. *
  2008. * @export
  2009. * @interface LoginCredentialDto
  2010. */
  2011. export interface LoginCredentialDto {
  2012. /**
  2013. *
  2014. * @type {string}
  2015. * @memberof LoginCredentialDto
  2016. */
  2017. 'email': string;
  2018. /**
  2019. *
  2020. * @type {string}
  2021. * @memberof LoginCredentialDto
  2022. */
  2023. 'password': string;
  2024. }
  2025. /**
  2026. *
  2027. * @export
  2028. * @interface LoginResponseDto
  2029. */
  2030. export interface LoginResponseDto {
  2031. /**
  2032. *
  2033. * @type {string}
  2034. * @memberof LoginResponseDto
  2035. */
  2036. 'accessToken': string;
  2037. /**
  2038. *
  2039. * @type {string}
  2040. * @memberof LoginResponseDto
  2041. */
  2042. 'firstName': string;
  2043. /**
  2044. *
  2045. * @type {boolean}
  2046. * @memberof LoginResponseDto
  2047. */
  2048. 'isAdmin': boolean;
  2049. /**
  2050. *
  2051. * @type {string}
  2052. * @memberof LoginResponseDto
  2053. */
  2054. 'lastName': string;
  2055. /**
  2056. *
  2057. * @type {string}
  2058. * @memberof LoginResponseDto
  2059. */
  2060. 'profileImagePath': string;
  2061. /**
  2062. *
  2063. * @type {boolean}
  2064. * @memberof LoginResponseDto
  2065. */
  2066. 'shouldChangePassword': boolean;
  2067. /**
  2068. *
  2069. * @type {string}
  2070. * @memberof LoginResponseDto
  2071. */
  2072. 'userEmail': string;
  2073. /**
  2074. *
  2075. * @type {string}
  2076. * @memberof LoginResponseDto
  2077. */
  2078. 'userId': string;
  2079. }
  2080. /**
  2081. *
  2082. * @export
  2083. * @interface LogoutResponseDto
  2084. */
  2085. export interface LogoutResponseDto {
  2086. /**
  2087. *
  2088. * @type {string}
  2089. * @memberof LogoutResponseDto
  2090. */
  2091. 'redirectUri': string;
  2092. /**
  2093. *
  2094. * @type {boolean}
  2095. * @memberof LogoutResponseDto
  2096. */
  2097. 'successful': boolean;
  2098. }
  2099. /**
  2100. *
  2101. * @export
  2102. * @interface MapMarkerResponseDto
  2103. */
  2104. export interface MapMarkerResponseDto {
  2105. /**
  2106. *
  2107. * @type {string}
  2108. * @memberof MapMarkerResponseDto
  2109. */
  2110. 'id': string;
  2111. /**
  2112. *
  2113. * @type {number}
  2114. * @memberof MapMarkerResponseDto
  2115. */
  2116. 'lat': number;
  2117. /**
  2118. *
  2119. * @type {number}
  2120. * @memberof MapMarkerResponseDto
  2121. */
  2122. 'lon': number;
  2123. }
  2124. /**
  2125. *
  2126. * @export
  2127. * @interface MemoryLaneResponseDto
  2128. */
  2129. export interface MemoryLaneResponseDto {
  2130. /**
  2131. *
  2132. * @type {Array<AssetResponseDto>}
  2133. * @memberof MemoryLaneResponseDto
  2134. */
  2135. 'assets': Array<AssetResponseDto>;
  2136. /**
  2137. *
  2138. * @type {string}
  2139. * @memberof MemoryLaneResponseDto
  2140. */
  2141. 'title': string;
  2142. }
  2143. /**
  2144. *
  2145. * @export
  2146. * @interface MergePersonDto
  2147. */
  2148. export interface MergePersonDto {
  2149. /**
  2150. *
  2151. * @type {Array<string>}
  2152. * @memberof MergePersonDto
  2153. */
  2154. 'ids': Array<string>;
  2155. }
  2156. /**
  2157. *
  2158. * @export
  2159. * @enum {string}
  2160. */
  2161. export const ModelType = {
  2162. ImageClassification: 'image-classification',
  2163. FacialRecognition: 'facial-recognition',
  2164. Clip: 'clip'
  2165. } as const;
  2166. export type ModelType = typeof ModelType[keyof typeof ModelType];
  2167. /**
  2168. *
  2169. * @export
  2170. * @interface OAuthAuthorizeResponseDto
  2171. */
  2172. export interface OAuthAuthorizeResponseDto {
  2173. /**
  2174. *
  2175. * @type {string}
  2176. * @memberof OAuthAuthorizeResponseDto
  2177. */
  2178. 'url': string;
  2179. }
  2180. /**
  2181. *
  2182. * @export
  2183. * @interface OAuthCallbackDto
  2184. */
  2185. export interface OAuthCallbackDto {
  2186. /**
  2187. *
  2188. * @type {string}
  2189. * @memberof OAuthCallbackDto
  2190. */
  2191. 'url': string;
  2192. }
  2193. /**
  2194. *
  2195. * @export
  2196. * @interface OAuthConfigDto
  2197. */
  2198. export interface OAuthConfigDto {
  2199. /**
  2200. *
  2201. * @type {string}
  2202. * @memberof OAuthConfigDto
  2203. */
  2204. 'redirectUri': string;
  2205. }
  2206. /**
  2207. *
  2208. * @export
  2209. * @interface OAuthConfigResponseDto
  2210. */
  2211. export interface OAuthConfigResponseDto {
  2212. /**
  2213. *
  2214. * @type {boolean}
  2215. * @memberof OAuthConfigResponseDto
  2216. */
  2217. 'autoLaunch'?: boolean;
  2218. /**
  2219. *
  2220. * @type {string}
  2221. * @memberof OAuthConfigResponseDto
  2222. */
  2223. 'buttonText'?: string;
  2224. /**
  2225. *
  2226. * @type {boolean}
  2227. * @memberof OAuthConfigResponseDto
  2228. */
  2229. 'enabled': boolean;
  2230. /**
  2231. *
  2232. * @type {boolean}
  2233. * @memberof OAuthConfigResponseDto
  2234. */
  2235. 'passwordLoginEnabled': boolean;
  2236. /**
  2237. *
  2238. * @type {string}
  2239. * @memberof OAuthConfigResponseDto
  2240. */
  2241. 'url'?: string;
  2242. }
  2243. /**
  2244. *
  2245. * @export
  2246. * @enum {string}
  2247. */
  2248. export const PathEntityType = {
  2249. Asset: 'asset',
  2250. Person: 'person',
  2251. User: 'user'
  2252. } as const;
  2253. export type PathEntityType = typeof PathEntityType[keyof typeof PathEntityType];
  2254. /**
  2255. *
  2256. * @export
  2257. * @enum {string}
  2258. */
  2259. export const PathType = {
  2260. Original: 'original',
  2261. JpegThumbnail: 'jpeg_thumbnail',
  2262. WebpThumbnail: 'webp_thumbnail',
  2263. EncodedVideo: 'encoded_video',
  2264. Sidecar: 'sidecar',
  2265. Face: 'face',
  2266. Profile: 'profile'
  2267. } as const;
  2268. export type PathType = typeof PathType[keyof typeof PathType];
  2269. /**
  2270. *
  2271. * @export
  2272. * @interface PeopleResponseDto
  2273. */
  2274. export interface PeopleResponseDto {
  2275. /**
  2276. *
  2277. * @type {Array<PersonResponseDto>}
  2278. * @memberof PeopleResponseDto
  2279. */
  2280. 'people': Array<PersonResponseDto>;
  2281. /**
  2282. *
  2283. * @type {number}
  2284. * @memberof PeopleResponseDto
  2285. */
  2286. 'total': number;
  2287. /**
  2288. *
  2289. * @type {number}
  2290. * @memberof PeopleResponseDto
  2291. */
  2292. 'visible': number;
  2293. }
  2294. /**
  2295. *
  2296. * @export
  2297. * @interface PeopleUpdateDto
  2298. */
  2299. export interface PeopleUpdateDto {
  2300. /**
  2301. *
  2302. * @type {Array<PeopleUpdateItem>}
  2303. * @memberof PeopleUpdateDto
  2304. */
  2305. 'people': Array<PeopleUpdateItem>;
  2306. }
  2307. /**
  2308. *
  2309. * @export
  2310. * @interface PeopleUpdateItem
  2311. */
  2312. export interface PeopleUpdateItem {
  2313. /**
  2314. * Person date of birth. Note: the mobile app cannot currently set the birth date to null.
  2315. * @type {string}
  2316. * @memberof PeopleUpdateItem
  2317. */
  2318. 'birthDate'?: string | null;
  2319. /**
  2320. * Asset is used to get the feature face thumbnail.
  2321. * @type {string}
  2322. * @memberof PeopleUpdateItem
  2323. */
  2324. 'featureFaceAssetId'?: string;
  2325. /**
  2326. * Person id.
  2327. * @type {string}
  2328. * @memberof PeopleUpdateItem
  2329. */
  2330. 'id': string;
  2331. /**
  2332. * Person visibility
  2333. * @type {boolean}
  2334. * @memberof PeopleUpdateItem
  2335. */
  2336. 'isHidden'?: boolean;
  2337. /**
  2338. * Person name.
  2339. * @type {string}
  2340. * @memberof PeopleUpdateItem
  2341. */
  2342. 'name'?: string;
  2343. }
  2344. /**
  2345. *
  2346. * @export
  2347. * @interface PersonResponseDto
  2348. */
  2349. export interface PersonResponseDto {
  2350. /**
  2351. *
  2352. * @type {string}
  2353. * @memberof PersonResponseDto
  2354. */
  2355. 'birthDate': string | null;
  2356. /**
  2357. *
  2358. * @type {string}
  2359. * @memberof PersonResponseDto
  2360. */
  2361. 'id': string;
  2362. /**
  2363. *
  2364. * @type {boolean}
  2365. * @memberof PersonResponseDto
  2366. */
  2367. 'isHidden': boolean;
  2368. /**
  2369. *
  2370. * @type {string}
  2371. * @memberof PersonResponseDto
  2372. */
  2373. 'name': string;
  2374. /**
  2375. *
  2376. * @type {string}
  2377. * @memberof PersonResponseDto
  2378. */
  2379. 'thumbnailPath': string;
  2380. }
  2381. /**
  2382. *
  2383. * @export
  2384. * @interface PersonUpdateDto
  2385. */
  2386. export interface PersonUpdateDto {
  2387. /**
  2388. * Person date of birth. Note: the mobile app cannot currently set the birth date to null.
  2389. * @type {string}
  2390. * @memberof PersonUpdateDto
  2391. */
  2392. 'birthDate'?: string | null;
  2393. /**
  2394. * Asset is used to get the feature face thumbnail.
  2395. * @type {string}
  2396. * @memberof PersonUpdateDto
  2397. */
  2398. 'featureFaceAssetId'?: string;
  2399. /**
  2400. * Person visibility
  2401. * @type {boolean}
  2402. * @memberof PersonUpdateDto
  2403. */
  2404. 'isHidden'?: boolean;
  2405. /**
  2406. * Person name.
  2407. * @type {string}
  2408. * @memberof PersonUpdateDto
  2409. */
  2410. 'name'?: string;
  2411. }
  2412. /**
  2413. *
  2414. * @export
  2415. * @interface QueueStatusDto
  2416. */
  2417. export interface QueueStatusDto {
  2418. /**
  2419. *
  2420. * @type {boolean}
  2421. * @memberof QueueStatusDto
  2422. */
  2423. 'isActive': boolean;
  2424. /**
  2425. *
  2426. * @type {boolean}
  2427. * @memberof QueueStatusDto
  2428. */
  2429. 'isPaused': boolean;
  2430. }
  2431. /**
  2432. *
  2433. * @export
  2434. * @interface RecognitionConfig
  2435. */
  2436. export interface RecognitionConfig {
  2437. /**
  2438. *
  2439. * @type {boolean}
  2440. * @memberof RecognitionConfig
  2441. */
  2442. 'enabled': boolean;
  2443. /**
  2444. *
  2445. * @type {number}
  2446. * @memberof RecognitionConfig
  2447. */
  2448. 'maxDistance': number;
  2449. /**
  2450. *
  2451. * @type {number}
  2452. * @memberof RecognitionConfig
  2453. */
  2454. 'minFaces': number;
  2455. /**
  2456. *
  2457. * @type {number}
  2458. * @memberof RecognitionConfig
  2459. */
  2460. 'minScore': number;
  2461. /**
  2462. *
  2463. * @type {string}
  2464. * @memberof RecognitionConfig
  2465. */
  2466. 'modelName': string;
  2467. /**
  2468. *
  2469. * @type {ModelType}
  2470. * @memberof RecognitionConfig
  2471. */
  2472. 'modelType'?: ModelType;
  2473. }
  2474. /**
  2475. *
  2476. * @export
  2477. * @interface ScanLibraryDto
  2478. */
  2479. export interface ScanLibraryDto {
  2480. /**
  2481. *
  2482. * @type {boolean}
  2483. * @memberof ScanLibraryDto
  2484. */
  2485. 'refreshAllFiles'?: boolean;
  2486. /**
  2487. *
  2488. * @type {boolean}
  2489. * @memberof ScanLibraryDto
  2490. */
  2491. 'refreshModifiedFiles'?: boolean;
  2492. }
  2493. /**
  2494. *
  2495. * @export
  2496. * @interface SearchAlbumResponseDto
  2497. */
  2498. export interface SearchAlbumResponseDto {
  2499. /**
  2500. *
  2501. * @type {number}
  2502. * @memberof SearchAlbumResponseDto
  2503. */
  2504. 'count': number;
  2505. /**
  2506. *
  2507. * @type {Array<SearchFacetResponseDto>}
  2508. * @memberof SearchAlbumResponseDto
  2509. */
  2510. 'facets': Array<SearchFacetResponseDto>;
  2511. /**
  2512. *
  2513. * @type {Array<AlbumResponseDto>}
  2514. * @memberof SearchAlbumResponseDto
  2515. */
  2516. 'items': Array<AlbumResponseDto>;
  2517. /**
  2518. *
  2519. * @type {number}
  2520. * @memberof SearchAlbumResponseDto
  2521. */
  2522. 'total': number;
  2523. }
  2524. /**
  2525. *
  2526. * @export
  2527. * @interface SearchAssetDto
  2528. */
  2529. export interface SearchAssetDto {
  2530. /**
  2531. *
  2532. * @type {string}
  2533. * @memberof SearchAssetDto
  2534. */
  2535. 'searchTerm': string;
  2536. }
  2537. /**
  2538. *
  2539. * @export
  2540. * @interface SearchAssetResponseDto
  2541. */
  2542. export interface SearchAssetResponseDto {
  2543. /**
  2544. *
  2545. * @type {number}
  2546. * @memberof SearchAssetResponseDto
  2547. */
  2548. 'count': number;
  2549. /**
  2550. *
  2551. * @type {Array<SearchFacetResponseDto>}
  2552. * @memberof SearchAssetResponseDto
  2553. */
  2554. 'facets': Array<SearchFacetResponseDto>;
  2555. /**
  2556. *
  2557. * @type {Array<AssetResponseDto>}
  2558. * @memberof SearchAssetResponseDto
  2559. */
  2560. 'items': Array<AssetResponseDto>;
  2561. /**
  2562. *
  2563. * @type {number}
  2564. * @memberof SearchAssetResponseDto
  2565. */
  2566. 'total': number;
  2567. }
  2568. /**
  2569. *
  2570. * @export
  2571. * @interface SearchExploreItem
  2572. */
  2573. export interface SearchExploreItem {
  2574. /**
  2575. *
  2576. * @type {AssetResponseDto}
  2577. * @memberof SearchExploreItem
  2578. */
  2579. 'data': AssetResponseDto;
  2580. /**
  2581. *
  2582. * @type {string}
  2583. * @memberof SearchExploreItem
  2584. */
  2585. 'value': string;
  2586. }
  2587. /**
  2588. *
  2589. * @export
  2590. * @interface SearchExploreResponseDto
  2591. */
  2592. export interface SearchExploreResponseDto {
  2593. /**
  2594. *
  2595. * @type {string}
  2596. * @memberof SearchExploreResponseDto
  2597. */
  2598. 'fieldName': string;
  2599. /**
  2600. *
  2601. * @type {Array<SearchExploreItem>}
  2602. * @memberof SearchExploreResponseDto
  2603. */
  2604. 'items': Array<SearchExploreItem>;
  2605. }
  2606. /**
  2607. *
  2608. * @export
  2609. * @interface SearchFacetCountResponseDto
  2610. */
  2611. export interface SearchFacetCountResponseDto {
  2612. /**
  2613. *
  2614. * @type {number}
  2615. * @memberof SearchFacetCountResponseDto
  2616. */
  2617. 'count': number;
  2618. /**
  2619. *
  2620. * @type {string}
  2621. * @memberof SearchFacetCountResponseDto
  2622. */
  2623. 'value': string;
  2624. }
  2625. /**
  2626. *
  2627. * @export
  2628. * @interface SearchFacetResponseDto
  2629. */
  2630. export interface SearchFacetResponseDto {
  2631. /**
  2632. *
  2633. * @type {Array<SearchFacetCountResponseDto>}
  2634. * @memberof SearchFacetResponseDto
  2635. */
  2636. 'counts': Array<SearchFacetCountResponseDto>;
  2637. /**
  2638. *
  2639. * @type {string}
  2640. * @memberof SearchFacetResponseDto
  2641. */
  2642. 'fieldName': string;
  2643. }
  2644. /**
  2645. *
  2646. * @export
  2647. * @interface SearchResponseDto
  2648. */
  2649. export interface SearchResponseDto {
  2650. /**
  2651. *
  2652. * @type {SearchAlbumResponseDto}
  2653. * @memberof SearchResponseDto
  2654. */
  2655. 'albums': SearchAlbumResponseDto;
  2656. /**
  2657. *
  2658. * @type {SearchAssetResponseDto}
  2659. * @memberof SearchResponseDto
  2660. */
  2661. 'assets': SearchAssetResponseDto;
  2662. }
  2663. /**
  2664. *
  2665. * @export
  2666. * @interface ServerConfigDto
  2667. */
  2668. export interface ServerConfigDto {
  2669. /**
  2670. *
  2671. * @type {boolean}
  2672. * @memberof ServerConfigDto
  2673. */
  2674. 'isInitialized': boolean;
  2675. /**
  2676. *
  2677. * @type {string}
  2678. * @memberof ServerConfigDto
  2679. */
  2680. 'loginPageMessage': string;
  2681. /**
  2682. *
  2683. * @type {string}
  2684. * @memberof ServerConfigDto
  2685. */
  2686. 'mapTileUrl': string;
  2687. /**
  2688. *
  2689. * @type {string}
  2690. * @memberof ServerConfigDto
  2691. */
  2692. 'oauthButtonText': string;
  2693. /**
  2694. *
  2695. * @type {number}
  2696. * @memberof ServerConfigDto
  2697. */
  2698. 'trashDays': number;
  2699. }
  2700. /**
  2701. *
  2702. * @export
  2703. * @interface ServerFeaturesDto
  2704. */
  2705. export interface ServerFeaturesDto {
  2706. /**
  2707. *
  2708. * @type {boolean}
  2709. * @memberof ServerFeaturesDto
  2710. */
  2711. 'clipEncode': boolean;
  2712. /**
  2713. *
  2714. * @type {boolean}
  2715. * @memberof ServerFeaturesDto
  2716. */
  2717. 'configFile': boolean;
  2718. /**
  2719. *
  2720. * @type {boolean}
  2721. * @memberof ServerFeaturesDto
  2722. */
  2723. 'facialRecognition': boolean;
  2724. /**
  2725. *
  2726. * @type {boolean}
  2727. * @memberof ServerFeaturesDto
  2728. */
  2729. 'map': boolean;
  2730. /**
  2731. *
  2732. * @type {boolean}
  2733. * @memberof ServerFeaturesDto
  2734. */
  2735. 'oauth': boolean;
  2736. /**
  2737. *
  2738. * @type {boolean}
  2739. * @memberof ServerFeaturesDto
  2740. */
  2741. 'oauthAutoLaunch': boolean;
  2742. /**
  2743. *
  2744. * @type {boolean}
  2745. * @memberof ServerFeaturesDto
  2746. */
  2747. 'passwordLogin': boolean;
  2748. /**
  2749. *
  2750. * @type {boolean}
  2751. * @memberof ServerFeaturesDto
  2752. */
  2753. 'reverseGeocoding': boolean;
  2754. /**
  2755. *
  2756. * @type {boolean}
  2757. * @memberof ServerFeaturesDto
  2758. */
  2759. 'search': boolean;
  2760. /**
  2761. *
  2762. * @type {boolean}
  2763. * @memberof ServerFeaturesDto
  2764. */
  2765. 'sidecar': boolean;
  2766. /**
  2767. *
  2768. * @type {boolean}
  2769. * @memberof ServerFeaturesDto
  2770. */
  2771. 'tagImage': boolean;
  2772. /**
  2773. *
  2774. * @type {boolean}
  2775. * @memberof ServerFeaturesDto
  2776. */
  2777. 'trash': boolean;
  2778. }
  2779. /**
  2780. *
  2781. * @export
  2782. * @interface ServerInfoResponseDto
  2783. */
  2784. export interface ServerInfoResponseDto {
  2785. /**
  2786. *
  2787. * @type {string}
  2788. * @memberof ServerInfoResponseDto
  2789. */
  2790. 'diskAvailable': string;
  2791. /**
  2792. *
  2793. * @type {number}
  2794. * @memberof ServerInfoResponseDto
  2795. */
  2796. 'diskAvailableRaw': number;
  2797. /**
  2798. *
  2799. * @type {string}
  2800. * @memberof ServerInfoResponseDto
  2801. */
  2802. 'diskSize': string;
  2803. /**
  2804. *
  2805. * @type {number}
  2806. * @memberof ServerInfoResponseDto
  2807. */
  2808. 'diskSizeRaw': number;
  2809. /**
  2810. *
  2811. * @type {number}
  2812. * @memberof ServerInfoResponseDto
  2813. */
  2814. 'diskUsagePercentage': number;
  2815. /**
  2816. *
  2817. * @type {string}
  2818. * @memberof ServerInfoResponseDto
  2819. */
  2820. 'diskUse': string;
  2821. /**
  2822. *
  2823. * @type {number}
  2824. * @memberof ServerInfoResponseDto
  2825. */
  2826. 'diskUseRaw': number;
  2827. }
  2828. /**
  2829. *
  2830. * @export
  2831. * @interface ServerMediaTypesResponseDto
  2832. */
  2833. export interface ServerMediaTypesResponseDto {
  2834. /**
  2835. *
  2836. * @type {Array<string>}
  2837. * @memberof ServerMediaTypesResponseDto
  2838. */
  2839. 'image': Array<string>;
  2840. /**
  2841. *
  2842. * @type {Array<string>}
  2843. * @memberof ServerMediaTypesResponseDto
  2844. */
  2845. 'sidecar': Array<string>;
  2846. /**
  2847. *
  2848. * @type {Array<string>}
  2849. * @memberof ServerMediaTypesResponseDto
  2850. */
  2851. 'video': Array<string>;
  2852. }
  2853. /**
  2854. *
  2855. * @export
  2856. * @interface ServerPingResponse
  2857. */
  2858. export interface ServerPingResponse {
  2859. /**
  2860. *
  2861. * @type {string}
  2862. * @memberof ServerPingResponse
  2863. */
  2864. 'res': string;
  2865. }
  2866. /**
  2867. *
  2868. * @export
  2869. * @interface ServerStatsResponseDto
  2870. */
  2871. export interface ServerStatsResponseDto {
  2872. /**
  2873. *
  2874. * @type {number}
  2875. * @memberof ServerStatsResponseDto
  2876. */
  2877. 'photos': number;
  2878. /**
  2879. *
  2880. * @type {number}
  2881. * @memberof ServerStatsResponseDto
  2882. */
  2883. 'usage': number;
  2884. /**
  2885. *
  2886. * @type {Array<UsageByUserDto>}
  2887. * @memberof ServerStatsResponseDto
  2888. */
  2889. 'usageByUser': Array<UsageByUserDto>;
  2890. /**
  2891. *
  2892. * @type {number}
  2893. * @memberof ServerStatsResponseDto
  2894. */
  2895. 'videos': number;
  2896. }
  2897. /**
  2898. *
  2899. * @export
  2900. * @interface ServerVersionResponseDto
  2901. */
  2902. export interface ServerVersionResponseDto {
  2903. /**
  2904. *
  2905. * @type {number}
  2906. * @memberof ServerVersionResponseDto
  2907. */
  2908. 'major': number;
  2909. /**
  2910. *
  2911. * @type {number}
  2912. * @memberof ServerVersionResponseDto
  2913. */
  2914. 'minor': number;
  2915. /**
  2916. *
  2917. * @type {number}
  2918. * @memberof ServerVersionResponseDto
  2919. */
  2920. 'patch': number;
  2921. }
  2922. /**
  2923. *
  2924. * @export
  2925. * @interface SharedLinkCreateDto
  2926. */
  2927. export interface SharedLinkCreateDto {
  2928. /**
  2929. *
  2930. * @type {string}
  2931. * @memberof SharedLinkCreateDto
  2932. */
  2933. 'albumId'?: string;
  2934. /**
  2935. *
  2936. * @type {boolean}
  2937. * @memberof SharedLinkCreateDto
  2938. */
  2939. 'allowDownload'?: boolean;
  2940. /**
  2941. *
  2942. * @type {boolean}
  2943. * @memberof SharedLinkCreateDto
  2944. */
  2945. 'allowUpload'?: boolean;
  2946. /**
  2947. *
  2948. * @type {Array<string>}
  2949. * @memberof SharedLinkCreateDto
  2950. */
  2951. 'assetIds'?: Array<string>;
  2952. /**
  2953. *
  2954. * @type {string}
  2955. * @memberof SharedLinkCreateDto
  2956. */
  2957. 'description'?: string;
  2958. /**
  2959. *
  2960. * @type {string}
  2961. * @memberof SharedLinkCreateDto
  2962. */
  2963. 'expiresAt'?: string | null;
  2964. /**
  2965. *
  2966. * @type {boolean}
  2967. * @memberof SharedLinkCreateDto
  2968. */
  2969. 'showMetadata'?: boolean;
  2970. /**
  2971. *
  2972. * @type {SharedLinkType}
  2973. * @memberof SharedLinkCreateDto
  2974. */
  2975. 'type': SharedLinkType;
  2976. }
  2977. /**
  2978. *
  2979. * @export
  2980. * @interface SharedLinkEditDto
  2981. */
  2982. export interface SharedLinkEditDto {
  2983. /**
  2984. *
  2985. * @type {boolean}
  2986. * @memberof SharedLinkEditDto
  2987. */
  2988. 'allowDownload'?: boolean;
  2989. /**
  2990. *
  2991. * @type {boolean}
  2992. * @memberof SharedLinkEditDto
  2993. */
  2994. 'allowUpload'?: boolean;
  2995. /**
  2996. * 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.
  2997. * @type {boolean}
  2998. * @memberof SharedLinkEditDto
  2999. */
  3000. 'changeExpiryTime'?: boolean;
  3001. /**
  3002. *
  3003. * @type {string}
  3004. * @memberof SharedLinkEditDto
  3005. */
  3006. 'description'?: string;
  3007. /**
  3008. *
  3009. * @type {string}
  3010. * @memberof SharedLinkEditDto
  3011. */
  3012. 'expiresAt'?: string | null;
  3013. /**
  3014. *
  3015. * @type {boolean}
  3016. * @memberof SharedLinkEditDto
  3017. */
  3018. 'showMetadata'?: boolean;
  3019. }
  3020. /**
  3021. *
  3022. * @export
  3023. * @interface SharedLinkResponseDto
  3024. */
  3025. export interface SharedLinkResponseDto {
  3026. /**
  3027. *
  3028. * @type {AlbumResponseDto}
  3029. * @memberof SharedLinkResponseDto
  3030. */
  3031. 'album'?: AlbumResponseDto;
  3032. /**
  3033. *
  3034. * @type {boolean}
  3035. * @memberof SharedLinkResponseDto
  3036. */
  3037. 'allowDownload': boolean;
  3038. /**
  3039. *
  3040. * @type {boolean}
  3041. * @memberof SharedLinkResponseDto
  3042. */
  3043. 'allowUpload': boolean;
  3044. /**
  3045. *
  3046. * @type {Array<AssetResponseDto>}
  3047. * @memberof SharedLinkResponseDto
  3048. */
  3049. 'assets': Array<AssetResponseDto>;
  3050. /**
  3051. *
  3052. * @type {string}
  3053. * @memberof SharedLinkResponseDto
  3054. */
  3055. 'createdAt': string;
  3056. /**
  3057. *
  3058. * @type {string}
  3059. * @memberof SharedLinkResponseDto
  3060. */
  3061. 'description': string | null;
  3062. /**
  3063. *
  3064. * @type {string}
  3065. * @memberof SharedLinkResponseDto
  3066. */
  3067. 'expiresAt': string | null;
  3068. /**
  3069. *
  3070. * @type {string}
  3071. * @memberof SharedLinkResponseDto
  3072. */
  3073. 'id': string;
  3074. /**
  3075. *
  3076. * @type {string}
  3077. * @memberof SharedLinkResponseDto
  3078. */
  3079. 'key': string;
  3080. /**
  3081. *
  3082. * @type {boolean}
  3083. * @memberof SharedLinkResponseDto
  3084. */
  3085. 'showMetadata': boolean;
  3086. /**
  3087. *
  3088. * @type {SharedLinkType}
  3089. * @memberof SharedLinkResponseDto
  3090. */
  3091. 'type': SharedLinkType;
  3092. /**
  3093. *
  3094. * @type {string}
  3095. * @memberof SharedLinkResponseDto
  3096. */
  3097. 'userId': string;
  3098. }
  3099. /**
  3100. *
  3101. * @export
  3102. * @enum {string}
  3103. */
  3104. export const SharedLinkType = {
  3105. Album: 'ALBUM',
  3106. Individual: 'INDIVIDUAL'
  3107. } as const;
  3108. export type SharedLinkType = typeof SharedLinkType[keyof typeof SharedLinkType];
  3109. /**
  3110. *
  3111. * @export
  3112. * @interface SignUpDto
  3113. */
  3114. export interface SignUpDto {
  3115. /**
  3116. *
  3117. * @type {string}
  3118. * @memberof SignUpDto
  3119. */
  3120. 'email': string;
  3121. /**
  3122. *
  3123. * @type {string}
  3124. * @memberof SignUpDto
  3125. */
  3126. 'firstName': string;
  3127. /**
  3128. *
  3129. * @type {string}
  3130. * @memberof SignUpDto
  3131. */
  3132. 'lastName': string;
  3133. /**
  3134. *
  3135. * @type {string}
  3136. * @memberof SignUpDto
  3137. */
  3138. 'password': string;
  3139. }
  3140. /**
  3141. *
  3142. * @export
  3143. * @interface SmartInfoResponseDto
  3144. */
  3145. export interface SmartInfoResponseDto {
  3146. /**
  3147. *
  3148. * @type {Array<string>}
  3149. * @memberof SmartInfoResponseDto
  3150. */
  3151. 'objects'?: Array<string> | null;
  3152. /**
  3153. *
  3154. * @type {Array<string>}
  3155. * @memberof SmartInfoResponseDto
  3156. */
  3157. 'tags'?: Array<string> | null;
  3158. }
  3159. /**
  3160. *
  3161. * @export
  3162. * @interface SystemConfigDto
  3163. */
  3164. export interface SystemConfigDto {
  3165. /**
  3166. *
  3167. * @type {SystemConfigFFmpegDto}
  3168. * @memberof SystemConfigDto
  3169. */
  3170. 'ffmpeg': SystemConfigFFmpegDto;
  3171. /**
  3172. *
  3173. * @type {SystemConfigJobDto}
  3174. * @memberof SystemConfigDto
  3175. */
  3176. 'job': SystemConfigJobDto;
  3177. /**
  3178. *
  3179. * @type {SystemConfigMachineLearningDto}
  3180. * @memberof SystemConfigDto
  3181. */
  3182. 'machineLearning': SystemConfigMachineLearningDto;
  3183. /**
  3184. *
  3185. * @type {SystemConfigMapDto}
  3186. * @memberof SystemConfigDto
  3187. */
  3188. 'map': SystemConfigMapDto;
  3189. /**
  3190. *
  3191. * @type {SystemConfigOAuthDto}
  3192. * @memberof SystemConfigDto
  3193. */
  3194. 'oauth': SystemConfigOAuthDto;
  3195. /**
  3196. *
  3197. * @type {SystemConfigPasswordLoginDto}
  3198. * @memberof SystemConfigDto
  3199. */
  3200. 'passwordLogin': SystemConfigPasswordLoginDto;
  3201. /**
  3202. *
  3203. * @type {SystemConfigReverseGeocodingDto}
  3204. * @memberof SystemConfigDto
  3205. */
  3206. 'reverseGeocoding': SystemConfigReverseGeocodingDto;
  3207. /**
  3208. *
  3209. * @type {SystemConfigStorageTemplateDto}
  3210. * @memberof SystemConfigDto
  3211. */
  3212. 'storageTemplate': SystemConfigStorageTemplateDto;
  3213. /**
  3214. *
  3215. * @type {SystemConfigThemeDto}
  3216. * @memberof SystemConfigDto
  3217. */
  3218. 'theme': SystemConfigThemeDto;
  3219. /**
  3220. *
  3221. * @type {SystemConfigThumbnailDto}
  3222. * @memberof SystemConfigDto
  3223. */
  3224. 'thumbnail': SystemConfigThumbnailDto;
  3225. /**
  3226. *
  3227. * @type {SystemConfigTrashDto}
  3228. * @memberof SystemConfigDto
  3229. */
  3230. 'trash': SystemConfigTrashDto;
  3231. }
  3232. /**
  3233. *
  3234. * @export
  3235. * @interface SystemConfigFFmpegDto
  3236. */
  3237. export interface SystemConfigFFmpegDto {
  3238. /**
  3239. *
  3240. * @type {TranscodeHWAccel}
  3241. * @memberof SystemConfigFFmpegDto
  3242. */
  3243. 'accel': TranscodeHWAccel;
  3244. /**
  3245. *
  3246. * @type {number}
  3247. * @memberof SystemConfigFFmpegDto
  3248. */
  3249. 'bframes': number;
  3250. /**
  3251. *
  3252. * @type {CQMode}
  3253. * @memberof SystemConfigFFmpegDto
  3254. */
  3255. 'cqMode': CQMode;
  3256. /**
  3257. *
  3258. * @type {number}
  3259. * @memberof SystemConfigFFmpegDto
  3260. */
  3261. 'crf': number;
  3262. /**
  3263. *
  3264. * @type {number}
  3265. * @memberof SystemConfigFFmpegDto
  3266. */
  3267. 'gopSize': number;
  3268. /**
  3269. *
  3270. * @type {string}
  3271. * @memberof SystemConfigFFmpegDto
  3272. */
  3273. 'maxBitrate': string;
  3274. /**
  3275. *
  3276. * @type {number}
  3277. * @memberof SystemConfigFFmpegDto
  3278. */
  3279. 'npl': number;
  3280. /**
  3281. *
  3282. * @type {string}
  3283. * @memberof SystemConfigFFmpegDto
  3284. */
  3285. 'preset': string;
  3286. /**
  3287. *
  3288. * @type {number}
  3289. * @memberof SystemConfigFFmpegDto
  3290. */
  3291. 'refs': number;
  3292. /**
  3293. *
  3294. * @type {AudioCodec}
  3295. * @memberof SystemConfigFFmpegDto
  3296. */
  3297. 'targetAudioCodec': AudioCodec;
  3298. /**
  3299. *
  3300. * @type {string}
  3301. * @memberof SystemConfigFFmpegDto
  3302. */
  3303. 'targetResolution': string;
  3304. /**
  3305. *
  3306. * @type {VideoCodec}
  3307. * @memberof SystemConfigFFmpegDto
  3308. */
  3309. 'targetVideoCodec': VideoCodec;
  3310. /**
  3311. *
  3312. * @type {boolean}
  3313. * @memberof SystemConfigFFmpegDto
  3314. */
  3315. 'temporalAQ': boolean;
  3316. /**
  3317. *
  3318. * @type {number}
  3319. * @memberof SystemConfigFFmpegDto
  3320. */
  3321. 'threads': number;
  3322. /**
  3323. *
  3324. * @type {ToneMapping}
  3325. * @memberof SystemConfigFFmpegDto
  3326. */
  3327. 'tonemap': ToneMapping;
  3328. /**
  3329. *
  3330. * @type {TranscodePolicy}
  3331. * @memberof SystemConfigFFmpegDto
  3332. */
  3333. 'transcode': TranscodePolicy;
  3334. /**
  3335. *
  3336. * @type {boolean}
  3337. * @memberof SystemConfigFFmpegDto
  3338. */
  3339. 'twoPass': boolean;
  3340. }
  3341. /**
  3342. *
  3343. * @export
  3344. * @interface SystemConfigJobDto
  3345. */
  3346. export interface SystemConfigJobDto {
  3347. /**
  3348. *
  3349. * @type {JobSettingsDto}
  3350. * @memberof SystemConfigJobDto
  3351. */
  3352. 'backgroundTask': JobSettingsDto;
  3353. /**
  3354. *
  3355. * @type {JobSettingsDto}
  3356. * @memberof SystemConfigJobDto
  3357. */
  3358. 'clipEncoding': JobSettingsDto;
  3359. /**
  3360. *
  3361. * @type {JobSettingsDto}
  3362. * @memberof SystemConfigJobDto
  3363. */
  3364. 'library': JobSettingsDto;
  3365. /**
  3366. *
  3367. * @type {JobSettingsDto}
  3368. * @memberof SystemConfigJobDto
  3369. */
  3370. 'metadataExtraction': JobSettingsDto;
  3371. /**
  3372. *
  3373. * @type {JobSettingsDto}
  3374. * @memberof SystemConfigJobDto
  3375. */
  3376. 'migration': JobSettingsDto;
  3377. /**
  3378. *
  3379. * @type {JobSettingsDto}
  3380. * @memberof SystemConfigJobDto
  3381. */
  3382. 'objectTagging': JobSettingsDto;
  3383. /**
  3384. *
  3385. * @type {JobSettingsDto}
  3386. * @memberof SystemConfigJobDto
  3387. */
  3388. 'recognizeFaces': JobSettingsDto;
  3389. /**
  3390. *
  3391. * @type {JobSettingsDto}
  3392. * @memberof SystemConfigJobDto
  3393. */
  3394. 'search': JobSettingsDto;
  3395. /**
  3396. *
  3397. * @type {JobSettingsDto}
  3398. * @memberof SystemConfigJobDto
  3399. */
  3400. 'sidecar': JobSettingsDto;
  3401. /**
  3402. *
  3403. * @type {JobSettingsDto}
  3404. * @memberof SystemConfigJobDto
  3405. */
  3406. 'storageTemplateMigration': JobSettingsDto;
  3407. /**
  3408. *
  3409. * @type {JobSettingsDto}
  3410. * @memberof SystemConfigJobDto
  3411. */
  3412. 'thumbnailGeneration': JobSettingsDto;
  3413. /**
  3414. *
  3415. * @type {JobSettingsDto}
  3416. * @memberof SystemConfigJobDto
  3417. */
  3418. 'videoConversion': JobSettingsDto;
  3419. }
  3420. /**
  3421. *
  3422. * @export
  3423. * @interface SystemConfigMachineLearningDto
  3424. */
  3425. export interface SystemConfigMachineLearningDto {
  3426. /**
  3427. *
  3428. * @type {ClassificationConfig}
  3429. * @memberof SystemConfigMachineLearningDto
  3430. */
  3431. 'classification': ClassificationConfig;
  3432. /**
  3433. *
  3434. * @type {CLIPConfig}
  3435. * @memberof SystemConfigMachineLearningDto
  3436. */
  3437. 'clip': CLIPConfig;
  3438. /**
  3439. *
  3440. * @type {boolean}
  3441. * @memberof SystemConfigMachineLearningDto
  3442. */
  3443. 'enabled': boolean;
  3444. /**
  3445. *
  3446. * @type {RecognitionConfig}
  3447. * @memberof SystemConfigMachineLearningDto
  3448. */
  3449. 'facialRecognition': RecognitionConfig;
  3450. /**
  3451. *
  3452. * @type {string}
  3453. * @memberof SystemConfigMachineLearningDto
  3454. */
  3455. 'url': string;
  3456. }
  3457. /**
  3458. *
  3459. * @export
  3460. * @interface SystemConfigMapDto
  3461. */
  3462. export interface SystemConfigMapDto {
  3463. /**
  3464. *
  3465. * @type {boolean}
  3466. * @memberof SystemConfigMapDto
  3467. */
  3468. 'enabled': boolean;
  3469. /**
  3470. *
  3471. * @type {string}
  3472. * @memberof SystemConfigMapDto
  3473. */
  3474. 'tileUrl': string;
  3475. }
  3476. /**
  3477. *
  3478. * @export
  3479. * @interface SystemConfigOAuthDto
  3480. */
  3481. export interface SystemConfigOAuthDto {
  3482. /**
  3483. *
  3484. * @type {boolean}
  3485. * @memberof SystemConfigOAuthDto
  3486. */
  3487. 'autoLaunch': boolean;
  3488. /**
  3489. *
  3490. * @type {boolean}
  3491. * @memberof SystemConfigOAuthDto
  3492. */
  3493. 'autoRegister': boolean;
  3494. /**
  3495. *
  3496. * @type {string}
  3497. * @memberof SystemConfigOAuthDto
  3498. */
  3499. 'buttonText': string;
  3500. /**
  3501. *
  3502. * @type {string}
  3503. * @memberof SystemConfigOAuthDto
  3504. */
  3505. 'clientId': string;
  3506. /**
  3507. *
  3508. * @type {string}
  3509. * @memberof SystemConfigOAuthDto
  3510. */
  3511. 'clientSecret': string;
  3512. /**
  3513. *
  3514. * @type {boolean}
  3515. * @memberof SystemConfigOAuthDto
  3516. */
  3517. 'enabled': boolean;
  3518. /**
  3519. *
  3520. * @type {string}
  3521. * @memberof SystemConfigOAuthDto
  3522. */
  3523. 'issuerUrl': string;
  3524. /**
  3525. *
  3526. * @type {boolean}
  3527. * @memberof SystemConfigOAuthDto
  3528. */
  3529. 'mobileOverrideEnabled': boolean;
  3530. /**
  3531. *
  3532. * @type {string}
  3533. * @memberof SystemConfigOAuthDto
  3534. */
  3535. 'mobileRedirectUri': string;
  3536. /**
  3537. *
  3538. * @type {string}
  3539. * @memberof SystemConfigOAuthDto
  3540. */
  3541. 'scope': string;
  3542. /**
  3543. *
  3544. * @type {string}
  3545. * @memberof SystemConfigOAuthDto
  3546. */
  3547. 'storageLabelClaim': string;
  3548. }
  3549. /**
  3550. *
  3551. * @export
  3552. * @interface SystemConfigPasswordLoginDto
  3553. */
  3554. export interface SystemConfigPasswordLoginDto {
  3555. /**
  3556. *
  3557. * @type {boolean}
  3558. * @memberof SystemConfigPasswordLoginDto
  3559. */
  3560. 'enabled': boolean;
  3561. }
  3562. /**
  3563. *
  3564. * @export
  3565. * @interface SystemConfigReverseGeocodingDto
  3566. */
  3567. export interface SystemConfigReverseGeocodingDto {
  3568. /**
  3569. *
  3570. * @type {CitiesFile}
  3571. * @memberof SystemConfigReverseGeocodingDto
  3572. */
  3573. 'citiesFileOverride': CitiesFile;
  3574. /**
  3575. *
  3576. * @type {boolean}
  3577. * @memberof SystemConfigReverseGeocodingDto
  3578. */
  3579. 'enabled': boolean;
  3580. }
  3581. /**
  3582. *
  3583. * @export
  3584. * @interface SystemConfigStorageTemplateDto
  3585. */
  3586. export interface SystemConfigStorageTemplateDto {
  3587. /**
  3588. *
  3589. * @type {string}
  3590. * @memberof SystemConfigStorageTemplateDto
  3591. */
  3592. 'template': string;
  3593. }
  3594. /**
  3595. *
  3596. * @export
  3597. * @interface SystemConfigTemplateStorageOptionDto
  3598. */
  3599. export interface SystemConfigTemplateStorageOptionDto {
  3600. /**
  3601. *
  3602. * @type {Array<string>}
  3603. * @memberof SystemConfigTemplateStorageOptionDto
  3604. */
  3605. 'dayOptions': Array<string>;
  3606. /**
  3607. *
  3608. * @type {Array<string>}
  3609. * @memberof SystemConfigTemplateStorageOptionDto
  3610. */
  3611. 'hourOptions': Array<string>;
  3612. /**
  3613. *
  3614. * @type {Array<string>}
  3615. * @memberof SystemConfigTemplateStorageOptionDto
  3616. */
  3617. 'minuteOptions': Array<string>;
  3618. /**
  3619. *
  3620. * @type {Array<string>}
  3621. * @memberof SystemConfigTemplateStorageOptionDto
  3622. */
  3623. 'monthOptions': Array<string>;
  3624. /**
  3625. *
  3626. * @type {Array<string>}
  3627. * @memberof SystemConfigTemplateStorageOptionDto
  3628. */
  3629. 'presetOptions': Array<string>;
  3630. /**
  3631. *
  3632. * @type {Array<string>}
  3633. * @memberof SystemConfigTemplateStorageOptionDto
  3634. */
  3635. 'secondOptions': Array<string>;
  3636. /**
  3637. *
  3638. * @type {Array<string>}
  3639. * @memberof SystemConfigTemplateStorageOptionDto
  3640. */
  3641. 'weekOptions': Array<string>;
  3642. /**
  3643. *
  3644. * @type {Array<string>}
  3645. * @memberof SystemConfigTemplateStorageOptionDto
  3646. */
  3647. 'yearOptions': Array<string>;
  3648. }
  3649. /**
  3650. *
  3651. * @export
  3652. * @interface SystemConfigThemeDto
  3653. */
  3654. export interface SystemConfigThemeDto {
  3655. /**
  3656. *
  3657. * @type {string}
  3658. * @memberof SystemConfigThemeDto
  3659. */
  3660. 'customCss': string;
  3661. }
  3662. /**
  3663. *
  3664. * @export
  3665. * @interface SystemConfigThumbnailDto
  3666. */
  3667. export interface SystemConfigThumbnailDto {
  3668. /**
  3669. *
  3670. * @type {Colorspace}
  3671. * @memberof SystemConfigThumbnailDto
  3672. */
  3673. 'colorspace': Colorspace;
  3674. /**
  3675. *
  3676. * @type {number}
  3677. * @memberof SystemConfigThumbnailDto
  3678. */
  3679. 'jpegSize': number;
  3680. /**
  3681. *
  3682. * @type {number}
  3683. * @memberof SystemConfigThumbnailDto
  3684. */
  3685. 'quality': number;
  3686. /**
  3687. *
  3688. * @type {number}
  3689. * @memberof SystemConfigThumbnailDto
  3690. */
  3691. 'webpSize': number;
  3692. }
  3693. /**
  3694. *
  3695. * @export
  3696. * @interface SystemConfigTrashDto
  3697. */
  3698. export interface SystemConfigTrashDto {
  3699. /**
  3700. *
  3701. * @type {number}
  3702. * @memberof SystemConfigTrashDto
  3703. */
  3704. 'days': number;
  3705. /**
  3706. *
  3707. * @type {boolean}
  3708. * @memberof SystemConfigTrashDto
  3709. */
  3710. 'enabled': boolean;
  3711. }
  3712. /**
  3713. *
  3714. * @export
  3715. * @interface TagResponseDto
  3716. */
  3717. export interface TagResponseDto {
  3718. /**
  3719. *
  3720. * @type {string}
  3721. * @memberof TagResponseDto
  3722. */
  3723. 'id': string;
  3724. /**
  3725. *
  3726. * @type {string}
  3727. * @memberof TagResponseDto
  3728. */
  3729. 'name': string;
  3730. /**
  3731. *
  3732. * @type {TagTypeEnum}
  3733. * @memberof TagResponseDto
  3734. */
  3735. 'type': TagTypeEnum;
  3736. /**
  3737. *
  3738. * @type {string}
  3739. * @memberof TagResponseDto
  3740. */
  3741. 'userId': string;
  3742. }
  3743. /**
  3744. *
  3745. * @export
  3746. * @enum {string}
  3747. */
  3748. export const TagTypeEnum = {
  3749. Object: 'OBJECT',
  3750. Face: 'FACE',
  3751. Custom: 'CUSTOM'
  3752. } as const;
  3753. export type TagTypeEnum = typeof TagTypeEnum[keyof typeof TagTypeEnum];
  3754. /**
  3755. *
  3756. * @export
  3757. * @enum {string}
  3758. */
  3759. export const ThumbnailFormat = {
  3760. Jpeg: 'JPEG',
  3761. Webp: 'WEBP'
  3762. } as const;
  3763. export type ThumbnailFormat = typeof ThumbnailFormat[keyof typeof ThumbnailFormat];
  3764. /**
  3765. *
  3766. * @export
  3767. * @interface TimeBucketResponseDto
  3768. */
  3769. export interface TimeBucketResponseDto {
  3770. /**
  3771. *
  3772. * @type {number}
  3773. * @memberof TimeBucketResponseDto
  3774. */
  3775. 'count': number;
  3776. /**
  3777. *
  3778. * @type {string}
  3779. * @memberof TimeBucketResponseDto
  3780. */
  3781. 'timeBucket': string;
  3782. }
  3783. /**
  3784. *
  3785. * @export
  3786. * @enum {string}
  3787. */
  3788. export const TimeBucketSize = {
  3789. Day: 'DAY',
  3790. Month: 'MONTH'
  3791. } as const;
  3792. export type TimeBucketSize = typeof TimeBucketSize[keyof typeof TimeBucketSize];
  3793. /**
  3794. *
  3795. * @export
  3796. * @enum {string}
  3797. */
  3798. export const ToneMapping = {
  3799. Hable: 'hable',
  3800. Mobius: 'mobius',
  3801. Reinhard: 'reinhard',
  3802. Disabled: 'disabled'
  3803. } as const;
  3804. export type ToneMapping = typeof ToneMapping[keyof typeof ToneMapping];
  3805. /**
  3806. *
  3807. * @export
  3808. * @enum {string}
  3809. */
  3810. export const TranscodeHWAccel = {
  3811. Nvenc: 'nvenc',
  3812. Qsv: 'qsv',
  3813. Vaapi: 'vaapi',
  3814. Disabled: 'disabled'
  3815. } as const;
  3816. export type TranscodeHWAccel = typeof TranscodeHWAccel[keyof typeof TranscodeHWAccel];
  3817. /**
  3818. *
  3819. * @export
  3820. * @enum {string}
  3821. */
  3822. export const TranscodePolicy = {
  3823. All: 'all',
  3824. Optimal: 'optimal',
  3825. Required: 'required',
  3826. Disabled: 'disabled'
  3827. } as const;
  3828. export type TranscodePolicy = typeof TranscodePolicy[keyof typeof TranscodePolicy];
  3829. /**
  3830. *
  3831. * @export
  3832. * @interface UpdateAlbumDto
  3833. */
  3834. export interface UpdateAlbumDto {
  3835. /**
  3836. *
  3837. * @type {string}
  3838. * @memberof UpdateAlbumDto
  3839. */
  3840. 'albumName'?: string;
  3841. /**
  3842. *
  3843. * @type {string}
  3844. * @memberof UpdateAlbumDto
  3845. */
  3846. 'albumThumbnailAssetId'?: string;
  3847. /**
  3848. *
  3849. * @type {string}
  3850. * @memberof UpdateAlbumDto
  3851. */
  3852. 'description'?: string;
  3853. }
  3854. /**
  3855. *
  3856. * @export
  3857. * @interface UpdateAssetDto
  3858. */
  3859. export interface UpdateAssetDto {
  3860. /**
  3861. *
  3862. * @type {string}
  3863. * @memberof UpdateAssetDto
  3864. */
  3865. 'description'?: string;
  3866. /**
  3867. *
  3868. * @type {boolean}
  3869. * @memberof UpdateAssetDto
  3870. */
  3871. 'isArchived'?: boolean;
  3872. /**
  3873. *
  3874. * @type {boolean}
  3875. * @memberof UpdateAssetDto
  3876. */
  3877. 'isFavorite'?: boolean;
  3878. }
  3879. /**
  3880. *
  3881. * @export
  3882. * @interface UpdateLibraryDto
  3883. */
  3884. export interface UpdateLibraryDto {
  3885. /**
  3886. *
  3887. * @type {Array<string>}
  3888. * @memberof UpdateLibraryDto
  3889. */
  3890. 'exclusionPatterns'?: Array<string>;
  3891. /**
  3892. *
  3893. * @type {Array<string>}
  3894. * @memberof UpdateLibraryDto
  3895. */
  3896. 'importPaths'?: Array<string>;
  3897. /**
  3898. *
  3899. * @type {boolean}
  3900. * @memberof UpdateLibraryDto
  3901. */
  3902. 'isVisible'?: boolean;
  3903. /**
  3904. *
  3905. * @type {string}
  3906. * @memberof UpdateLibraryDto
  3907. */
  3908. 'name'?: string;
  3909. }
  3910. /**
  3911. *
  3912. * @export
  3913. * @interface UpdateStackParentDto
  3914. */
  3915. export interface UpdateStackParentDto {
  3916. /**
  3917. *
  3918. * @type {string}
  3919. * @memberof UpdateStackParentDto
  3920. */
  3921. 'newParentId': string;
  3922. /**
  3923. *
  3924. * @type {string}
  3925. * @memberof UpdateStackParentDto
  3926. */
  3927. 'oldParentId': string;
  3928. }
  3929. /**
  3930. *
  3931. * @export
  3932. * @interface UpdateTagDto
  3933. */
  3934. export interface UpdateTagDto {
  3935. /**
  3936. *
  3937. * @type {string}
  3938. * @memberof UpdateTagDto
  3939. */
  3940. 'name'?: string;
  3941. }
  3942. /**
  3943. *
  3944. * @export
  3945. * @interface UpdateUserDto
  3946. */
  3947. export interface UpdateUserDto {
  3948. /**
  3949. *
  3950. * @type {string}
  3951. * @memberof UpdateUserDto
  3952. */
  3953. 'email'?: string;
  3954. /**
  3955. *
  3956. * @type {string}
  3957. * @memberof UpdateUserDto
  3958. */
  3959. 'externalPath'?: string;
  3960. /**
  3961. *
  3962. * @type {string}
  3963. * @memberof UpdateUserDto
  3964. */
  3965. 'firstName'?: string;
  3966. /**
  3967. *
  3968. * @type {string}
  3969. * @memberof UpdateUserDto
  3970. */
  3971. 'id': string;
  3972. /**
  3973. *
  3974. * @type {boolean}
  3975. * @memberof UpdateUserDto
  3976. */
  3977. 'isAdmin'?: boolean;
  3978. /**
  3979. *
  3980. * @type {string}
  3981. * @memberof UpdateUserDto
  3982. */
  3983. 'lastName'?: string;
  3984. /**
  3985. *
  3986. * @type {boolean}
  3987. * @memberof UpdateUserDto
  3988. */
  3989. 'memoriesEnabled'?: boolean;
  3990. /**
  3991. *
  3992. * @type {string}
  3993. * @memberof UpdateUserDto
  3994. */
  3995. 'password'?: string;
  3996. /**
  3997. *
  3998. * @type {boolean}
  3999. * @memberof UpdateUserDto
  4000. */
  4001. 'shouldChangePassword'?: boolean;
  4002. /**
  4003. *
  4004. * @type {string}
  4005. * @memberof UpdateUserDto
  4006. */
  4007. 'storageLabel'?: string;
  4008. }
  4009. /**
  4010. *
  4011. * @export
  4012. * @interface UsageByUserDto
  4013. */
  4014. export interface UsageByUserDto {
  4015. /**
  4016. *
  4017. * @type {number}
  4018. * @memberof UsageByUserDto
  4019. */
  4020. 'photos': number;
  4021. /**
  4022. *
  4023. * @type {number}
  4024. * @memberof UsageByUserDto
  4025. */
  4026. 'usage': number;
  4027. /**
  4028. *
  4029. * @type {string}
  4030. * @memberof UsageByUserDto
  4031. */
  4032. 'userFirstName': string;
  4033. /**
  4034. *
  4035. * @type {string}
  4036. * @memberof UsageByUserDto
  4037. */
  4038. 'userId': string;
  4039. /**
  4040. *
  4041. * @type {string}
  4042. * @memberof UsageByUserDto
  4043. */
  4044. 'userLastName': string;
  4045. /**
  4046. *
  4047. * @type {number}
  4048. * @memberof UsageByUserDto
  4049. */
  4050. 'videos': number;
  4051. }
  4052. /**
  4053. *
  4054. * @export
  4055. * @interface UserCountResponseDto
  4056. */
  4057. export interface UserCountResponseDto {
  4058. /**
  4059. *
  4060. * @type {number}
  4061. * @memberof UserCountResponseDto
  4062. */
  4063. 'userCount': number;
  4064. }
  4065. /**
  4066. *
  4067. * @export
  4068. * @interface UserResponseDto
  4069. */
  4070. export interface UserResponseDto {
  4071. /**
  4072. *
  4073. * @type {string}
  4074. * @memberof UserResponseDto
  4075. */
  4076. 'createdAt': string;
  4077. /**
  4078. *
  4079. * @type {string}
  4080. * @memberof UserResponseDto
  4081. */
  4082. 'deletedAt': string | null;
  4083. /**
  4084. *
  4085. * @type {string}
  4086. * @memberof UserResponseDto
  4087. */
  4088. 'email': string;
  4089. /**
  4090. *
  4091. * @type {string}
  4092. * @memberof UserResponseDto
  4093. */
  4094. 'externalPath': string | null;
  4095. /**
  4096. *
  4097. * @type {string}
  4098. * @memberof UserResponseDto
  4099. */
  4100. 'firstName': string;
  4101. /**
  4102. *
  4103. * @type {string}
  4104. * @memberof UserResponseDto
  4105. */
  4106. 'id': string;
  4107. /**
  4108. *
  4109. * @type {boolean}
  4110. * @memberof UserResponseDto
  4111. */
  4112. 'isAdmin': boolean;
  4113. /**
  4114. *
  4115. * @type {string}
  4116. * @memberof UserResponseDto
  4117. */
  4118. 'lastName': string;
  4119. /**
  4120. *
  4121. * @type {boolean}
  4122. * @memberof UserResponseDto
  4123. */
  4124. 'memoriesEnabled'?: boolean;
  4125. /**
  4126. *
  4127. * @type {string}
  4128. * @memberof UserResponseDto
  4129. */
  4130. 'oauthId': string;
  4131. /**
  4132. *
  4133. * @type {string}
  4134. * @memberof UserResponseDto
  4135. */
  4136. 'profileImagePath': string;
  4137. /**
  4138. *
  4139. * @type {boolean}
  4140. * @memberof UserResponseDto
  4141. */
  4142. 'shouldChangePassword': boolean;
  4143. /**
  4144. *
  4145. * @type {string}
  4146. * @memberof UserResponseDto
  4147. */
  4148. 'storageLabel': string | null;
  4149. /**
  4150. *
  4151. * @type {string}
  4152. * @memberof UserResponseDto
  4153. */
  4154. 'updatedAt': string;
  4155. }
  4156. /**
  4157. *
  4158. * @export
  4159. * @interface ValidateAccessTokenResponseDto
  4160. */
  4161. export interface ValidateAccessTokenResponseDto {
  4162. /**
  4163. *
  4164. * @type {boolean}
  4165. * @memberof ValidateAccessTokenResponseDto
  4166. */
  4167. 'authStatus': boolean;
  4168. }
  4169. /**
  4170. *
  4171. * @export
  4172. * @enum {string}
  4173. */
  4174. export const VideoCodec = {
  4175. H264: 'h264',
  4176. Hevc: 'hevc',
  4177. Vp9: 'vp9'
  4178. } as const;
  4179. export type VideoCodec = typeof VideoCodec[keyof typeof VideoCodec];
  4180. /**
  4181. * APIKeyApi - axios parameter creator
  4182. * @export
  4183. */
  4184. export const APIKeyApiAxiosParamCreator = function (configuration?: Configuration) {
  4185. return {
  4186. /**
  4187. *
  4188. * @param {APIKeyCreateDto} aPIKeyCreateDto
  4189. * @param {*} [options] Override http request option.
  4190. * @throws {RequiredError}
  4191. */
  4192. createKey: async (aPIKeyCreateDto: APIKeyCreateDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4193. // verify required parameter 'aPIKeyCreateDto' is not null or undefined
  4194. assertParamExists('createKey', 'aPIKeyCreateDto', aPIKeyCreateDto)
  4195. const localVarPath = `/api-key`;
  4196. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4197. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4198. let baseOptions;
  4199. if (configuration) {
  4200. baseOptions = configuration.baseOptions;
  4201. }
  4202. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  4203. const localVarHeaderParameter = {} as any;
  4204. const localVarQueryParameter = {} as any;
  4205. // authentication cookie required
  4206. // authentication api_key required
  4207. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4208. // authentication bearer required
  4209. // http bearer authentication required
  4210. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4211. localVarHeaderParameter['Content-Type'] = 'application/json';
  4212. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4213. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4214. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4215. localVarRequestOptions.data = serializeDataIfNeeded(aPIKeyCreateDto, localVarRequestOptions, configuration)
  4216. return {
  4217. url: toPathString(localVarUrlObj),
  4218. options: localVarRequestOptions,
  4219. };
  4220. },
  4221. /**
  4222. *
  4223. * @param {string} id
  4224. * @param {*} [options] Override http request option.
  4225. * @throws {RequiredError}
  4226. */
  4227. deleteKey: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4228. // verify required parameter 'id' is not null or undefined
  4229. assertParamExists('deleteKey', 'id', id)
  4230. const localVarPath = `/api-key/{id}`
  4231. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  4232. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4233. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4234. let baseOptions;
  4235. if (configuration) {
  4236. baseOptions = configuration.baseOptions;
  4237. }
  4238. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  4239. const localVarHeaderParameter = {} as any;
  4240. const localVarQueryParameter = {} as any;
  4241. // authentication cookie required
  4242. // authentication api_key required
  4243. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4244. // authentication bearer required
  4245. // http bearer authentication required
  4246. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4247. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4248. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4249. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4250. return {
  4251. url: toPathString(localVarUrlObj),
  4252. options: localVarRequestOptions,
  4253. };
  4254. },
  4255. /**
  4256. *
  4257. * @param {string} id
  4258. * @param {*} [options] Override http request option.
  4259. * @throws {RequiredError}
  4260. */
  4261. getKey: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4262. // verify required parameter 'id' is not null or undefined
  4263. assertParamExists('getKey', 'id', id)
  4264. const localVarPath = `/api-key/{id}`
  4265. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  4266. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4267. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4268. let baseOptions;
  4269. if (configuration) {
  4270. baseOptions = configuration.baseOptions;
  4271. }
  4272. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  4273. const localVarHeaderParameter = {} as any;
  4274. const localVarQueryParameter = {} as any;
  4275. // authentication cookie required
  4276. // authentication api_key required
  4277. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4278. // authentication bearer required
  4279. // http bearer authentication required
  4280. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4281. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4282. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4283. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4284. return {
  4285. url: toPathString(localVarUrlObj),
  4286. options: localVarRequestOptions,
  4287. };
  4288. },
  4289. /**
  4290. *
  4291. * @param {*} [options] Override http request option.
  4292. * @throws {RequiredError}
  4293. */
  4294. getKeys: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4295. const localVarPath = `/api-key`;
  4296. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4297. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4298. let baseOptions;
  4299. if (configuration) {
  4300. baseOptions = configuration.baseOptions;
  4301. }
  4302. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  4303. const localVarHeaderParameter = {} as any;
  4304. const localVarQueryParameter = {} as any;
  4305. // authentication cookie required
  4306. // authentication api_key required
  4307. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4308. // authentication bearer required
  4309. // http bearer authentication required
  4310. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4311. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4312. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4313. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4314. return {
  4315. url: toPathString(localVarUrlObj),
  4316. options: localVarRequestOptions,
  4317. };
  4318. },
  4319. /**
  4320. *
  4321. * @param {string} id
  4322. * @param {APIKeyUpdateDto} aPIKeyUpdateDto
  4323. * @param {*} [options] Override http request option.
  4324. * @throws {RequiredError}
  4325. */
  4326. updateKey: async (id: string, aPIKeyUpdateDto: APIKeyUpdateDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4327. // verify required parameter 'id' is not null or undefined
  4328. assertParamExists('updateKey', 'id', id)
  4329. // verify required parameter 'aPIKeyUpdateDto' is not null or undefined
  4330. assertParamExists('updateKey', 'aPIKeyUpdateDto', aPIKeyUpdateDto)
  4331. const localVarPath = `/api-key/{id}`
  4332. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  4333. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4334. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4335. let baseOptions;
  4336. if (configuration) {
  4337. baseOptions = configuration.baseOptions;
  4338. }
  4339. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  4340. const localVarHeaderParameter = {} as any;
  4341. const localVarQueryParameter = {} as any;
  4342. // authentication cookie required
  4343. // authentication api_key required
  4344. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4345. // authentication bearer required
  4346. // http bearer authentication required
  4347. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4348. localVarHeaderParameter['Content-Type'] = 'application/json';
  4349. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4350. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4351. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4352. localVarRequestOptions.data = serializeDataIfNeeded(aPIKeyUpdateDto, localVarRequestOptions, configuration)
  4353. return {
  4354. url: toPathString(localVarUrlObj),
  4355. options: localVarRequestOptions,
  4356. };
  4357. },
  4358. }
  4359. };
  4360. /**
  4361. * APIKeyApi - functional programming interface
  4362. * @export
  4363. */
  4364. export const APIKeyApiFp = function(configuration?: Configuration) {
  4365. const localVarAxiosParamCreator = APIKeyApiAxiosParamCreator(configuration)
  4366. return {
  4367. /**
  4368. *
  4369. * @param {APIKeyCreateDto} aPIKeyCreateDto
  4370. * @param {*} [options] Override http request option.
  4371. * @throws {RequiredError}
  4372. */
  4373. async createKey(aPIKeyCreateDto: APIKeyCreateDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<APIKeyCreateResponseDto>> {
  4374. const localVarAxiosArgs = await localVarAxiosParamCreator.createKey(aPIKeyCreateDto, options);
  4375. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4376. },
  4377. /**
  4378. *
  4379. * @param {string} id
  4380. * @param {*} [options] Override http request option.
  4381. * @throws {RequiredError}
  4382. */
  4383. async deleteKey(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  4384. const localVarAxiosArgs = await localVarAxiosParamCreator.deleteKey(id, options);
  4385. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4386. },
  4387. /**
  4388. *
  4389. * @param {string} id
  4390. * @param {*} [options] Override http request option.
  4391. * @throws {RequiredError}
  4392. */
  4393. async getKey(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<APIKeyResponseDto>> {
  4394. const localVarAxiosArgs = await localVarAxiosParamCreator.getKey(id, options);
  4395. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4396. },
  4397. /**
  4398. *
  4399. * @param {*} [options] Override http request option.
  4400. * @throws {RequiredError}
  4401. */
  4402. async getKeys(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<APIKeyResponseDto>>> {
  4403. const localVarAxiosArgs = await localVarAxiosParamCreator.getKeys(options);
  4404. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4405. },
  4406. /**
  4407. *
  4408. * @param {string} id
  4409. * @param {APIKeyUpdateDto} aPIKeyUpdateDto
  4410. * @param {*} [options] Override http request option.
  4411. * @throws {RequiredError}
  4412. */
  4413. async updateKey(id: string, aPIKeyUpdateDto: APIKeyUpdateDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<APIKeyResponseDto>> {
  4414. const localVarAxiosArgs = await localVarAxiosParamCreator.updateKey(id, aPIKeyUpdateDto, options);
  4415. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4416. },
  4417. }
  4418. };
  4419. /**
  4420. * APIKeyApi - factory interface
  4421. * @export
  4422. */
  4423. export const APIKeyApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  4424. const localVarFp = APIKeyApiFp(configuration)
  4425. return {
  4426. /**
  4427. *
  4428. * @param {APIKeyApiCreateKeyRequest} requestParameters Request parameters.
  4429. * @param {*} [options] Override http request option.
  4430. * @throws {RequiredError}
  4431. */
  4432. createKey(requestParameters: APIKeyApiCreateKeyRequest, options?: AxiosRequestConfig): AxiosPromise<APIKeyCreateResponseDto> {
  4433. return localVarFp.createKey(requestParameters.aPIKeyCreateDto, options).then((request) => request(axios, basePath));
  4434. },
  4435. /**
  4436. *
  4437. * @param {APIKeyApiDeleteKeyRequest} requestParameters Request parameters.
  4438. * @param {*} [options] Override http request option.
  4439. * @throws {RequiredError}
  4440. */
  4441. deleteKey(requestParameters: APIKeyApiDeleteKeyRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  4442. return localVarFp.deleteKey(requestParameters.id, options).then((request) => request(axios, basePath));
  4443. },
  4444. /**
  4445. *
  4446. * @param {APIKeyApiGetKeyRequest} requestParameters Request parameters.
  4447. * @param {*} [options] Override http request option.
  4448. * @throws {RequiredError}
  4449. */
  4450. getKey(requestParameters: APIKeyApiGetKeyRequest, options?: AxiosRequestConfig): AxiosPromise<APIKeyResponseDto> {
  4451. return localVarFp.getKey(requestParameters.id, options).then((request) => request(axios, basePath));
  4452. },
  4453. /**
  4454. *
  4455. * @param {*} [options] Override http request option.
  4456. * @throws {RequiredError}
  4457. */
  4458. getKeys(options?: AxiosRequestConfig): AxiosPromise<Array<APIKeyResponseDto>> {
  4459. return localVarFp.getKeys(options).then((request) => request(axios, basePath));
  4460. },
  4461. /**
  4462. *
  4463. * @param {APIKeyApiUpdateKeyRequest} requestParameters Request parameters.
  4464. * @param {*} [options] Override http request option.
  4465. * @throws {RequiredError}
  4466. */
  4467. updateKey(requestParameters: APIKeyApiUpdateKeyRequest, options?: AxiosRequestConfig): AxiosPromise<APIKeyResponseDto> {
  4468. return localVarFp.updateKey(requestParameters.id, requestParameters.aPIKeyUpdateDto, options).then((request) => request(axios, basePath));
  4469. },
  4470. };
  4471. };
  4472. /**
  4473. * Request parameters for createKey operation in APIKeyApi.
  4474. * @export
  4475. * @interface APIKeyApiCreateKeyRequest
  4476. */
  4477. export interface APIKeyApiCreateKeyRequest {
  4478. /**
  4479. *
  4480. * @type {APIKeyCreateDto}
  4481. * @memberof APIKeyApiCreateKey
  4482. */
  4483. readonly aPIKeyCreateDto: APIKeyCreateDto
  4484. }
  4485. /**
  4486. * Request parameters for deleteKey operation in APIKeyApi.
  4487. * @export
  4488. * @interface APIKeyApiDeleteKeyRequest
  4489. */
  4490. export interface APIKeyApiDeleteKeyRequest {
  4491. /**
  4492. *
  4493. * @type {string}
  4494. * @memberof APIKeyApiDeleteKey
  4495. */
  4496. readonly id: string
  4497. }
  4498. /**
  4499. * Request parameters for getKey operation in APIKeyApi.
  4500. * @export
  4501. * @interface APIKeyApiGetKeyRequest
  4502. */
  4503. export interface APIKeyApiGetKeyRequest {
  4504. /**
  4505. *
  4506. * @type {string}
  4507. * @memberof APIKeyApiGetKey
  4508. */
  4509. readonly id: string
  4510. }
  4511. /**
  4512. * Request parameters for updateKey operation in APIKeyApi.
  4513. * @export
  4514. * @interface APIKeyApiUpdateKeyRequest
  4515. */
  4516. export interface APIKeyApiUpdateKeyRequest {
  4517. /**
  4518. *
  4519. * @type {string}
  4520. * @memberof APIKeyApiUpdateKey
  4521. */
  4522. readonly id: string
  4523. /**
  4524. *
  4525. * @type {APIKeyUpdateDto}
  4526. * @memberof APIKeyApiUpdateKey
  4527. */
  4528. readonly aPIKeyUpdateDto: APIKeyUpdateDto
  4529. }
  4530. /**
  4531. * APIKeyApi - object-oriented interface
  4532. * @export
  4533. * @class APIKeyApi
  4534. * @extends {BaseAPI}
  4535. */
  4536. export class APIKeyApi extends BaseAPI {
  4537. /**
  4538. *
  4539. * @param {APIKeyApiCreateKeyRequest} requestParameters Request parameters.
  4540. * @param {*} [options] Override http request option.
  4541. * @throws {RequiredError}
  4542. * @memberof APIKeyApi
  4543. */
  4544. public createKey(requestParameters: APIKeyApiCreateKeyRequest, options?: AxiosRequestConfig) {
  4545. return APIKeyApiFp(this.configuration).createKey(requestParameters.aPIKeyCreateDto, options).then((request) => request(this.axios, this.basePath));
  4546. }
  4547. /**
  4548. *
  4549. * @param {APIKeyApiDeleteKeyRequest} requestParameters Request parameters.
  4550. * @param {*} [options] Override http request option.
  4551. * @throws {RequiredError}
  4552. * @memberof APIKeyApi
  4553. */
  4554. public deleteKey(requestParameters: APIKeyApiDeleteKeyRequest, options?: AxiosRequestConfig) {
  4555. return APIKeyApiFp(this.configuration).deleteKey(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  4556. }
  4557. /**
  4558. *
  4559. * @param {APIKeyApiGetKeyRequest} requestParameters Request parameters.
  4560. * @param {*} [options] Override http request option.
  4561. * @throws {RequiredError}
  4562. * @memberof APIKeyApi
  4563. */
  4564. public getKey(requestParameters: APIKeyApiGetKeyRequest, options?: AxiosRequestConfig) {
  4565. return APIKeyApiFp(this.configuration).getKey(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  4566. }
  4567. /**
  4568. *
  4569. * @param {*} [options] Override http request option.
  4570. * @throws {RequiredError}
  4571. * @memberof APIKeyApi
  4572. */
  4573. public getKeys(options?: AxiosRequestConfig) {
  4574. return APIKeyApiFp(this.configuration).getKeys(options).then((request) => request(this.axios, this.basePath));
  4575. }
  4576. /**
  4577. *
  4578. * @param {APIKeyApiUpdateKeyRequest} requestParameters Request parameters.
  4579. * @param {*} [options] Override http request option.
  4580. * @throws {RequiredError}
  4581. * @memberof APIKeyApi
  4582. */
  4583. public updateKey(requestParameters: APIKeyApiUpdateKeyRequest, options?: AxiosRequestConfig) {
  4584. return APIKeyApiFp(this.configuration).updateKey(requestParameters.id, requestParameters.aPIKeyUpdateDto, options).then((request) => request(this.axios, this.basePath));
  4585. }
  4586. }
  4587. /**
  4588. * AlbumApi - axios parameter creator
  4589. * @export
  4590. */
  4591. export const AlbumApiAxiosParamCreator = function (configuration?: Configuration) {
  4592. return {
  4593. /**
  4594. *
  4595. * @param {string} id
  4596. * @param {BulkIdsDto} bulkIdsDto
  4597. * @param {string} [key]
  4598. * @param {*} [options] Override http request option.
  4599. * @throws {RequiredError}
  4600. */
  4601. addAssetsToAlbum: async (id: string, bulkIdsDto: BulkIdsDto, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4602. // verify required parameter 'id' is not null or undefined
  4603. assertParamExists('addAssetsToAlbum', 'id', id)
  4604. // verify required parameter 'bulkIdsDto' is not null or undefined
  4605. assertParamExists('addAssetsToAlbum', 'bulkIdsDto', bulkIdsDto)
  4606. const localVarPath = `/album/{id}/assets`
  4607. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  4608. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4609. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4610. let baseOptions;
  4611. if (configuration) {
  4612. baseOptions = configuration.baseOptions;
  4613. }
  4614. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  4615. const localVarHeaderParameter = {} as any;
  4616. const localVarQueryParameter = {} as any;
  4617. // authentication cookie required
  4618. // authentication api_key required
  4619. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4620. // authentication bearer required
  4621. // http bearer authentication required
  4622. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4623. if (key !== undefined) {
  4624. localVarQueryParameter['key'] = key;
  4625. }
  4626. localVarHeaderParameter['Content-Type'] = 'application/json';
  4627. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4628. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4629. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4630. localVarRequestOptions.data = serializeDataIfNeeded(bulkIdsDto, localVarRequestOptions, configuration)
  4631. return {
  4632. url: toPathString(localVarUrlObj),
  4633. options: localVarRequestOptions,
  4634. };
  4635. },
  4636. /**
  4637. *
  4638. * @param {string} id
  4639. * @param {AddUsersDto} addUsersDto
  4640. * @param {*} [options] Override http request option.
  4641. * @throws {RequiredError}
  4642. */
  4643. addUsersToAlbum: async (id: string, addUsersDto: AddUsersDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4644. // verify required parameter 'id' is not null or undefined
  4645. assertParamExists('addUsersToAlbum', 'id', id)
  4646. // verify required parameter 'addUsersDto' is not null or undefined
  4647. assertParamExists('addUsersToAlbum', 'addUsersDto', addUsersDto)
  4648. const localVarPath = `/album/{id}/users`
  4649. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  4650. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4651. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4652. let baseOptions;
  4653. if (configuration) {
  4654. baseOptions = configuration.baseOptions;
  4655. }
  4656. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  4657. const localVarHeaderParameter = {} as any;
  4658. const localVarQueryParameter = {} as any;
  4659. // authentication cookie required
  4660. // authentication api_key required
  4661. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4662. // authentication bearer required
  4663. // http bearer authentication required
  4664. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4665. localVarHeaderParameter['Content-Type'] = 'application/json';
  4666. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4667. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4668. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4669. localVarRequestOptions.data = serializeDataIfNeeded(addUsersDto, localVarRequestOptions, configuration)
  4670. return {
  4671. url: toPathString(localVarUrlObj),
  4672. options: localVarRequestOptions,
  4673. };
  4674. },
  4675. /**
  4676. *
  4677. * @param {CreateAlbumDto} createAlbumDto
  4678. * @param {*} [options] Override http request option.
  4679. * @throws {RequiredError}
  4680. */
  4681. createAlbum: async (createAlbumDto: CreateAlbumDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4682. // verify required parameter 'createAlbumDto' is not null or undefined
  4683. assertParamExists('createAlbum', 'createAlbumDto', createAlbumDto)
  4684. const localVarPath = `/album`;
  4685. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4686. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4687. let baseOptions;
  4688. if (configuration) {
  4689. baseOptions = configuration.baseOptions;
  4690. }
  4691. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  4692. const localVarHeaderParameter = {} as any;
  4693. const localVarQueryParameter = {} as any;
  4694. // authentication cookie required
  4695. // authentication api_key required
  4696. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4697. // authentication bearer required
  4698. // http bearer authentication required
  4699. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4700. localVarHeaderParameter['Content-Type'] = 'application/json';
  4701. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4702. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4703. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4704. localVarRequestOptions.data = serializeDataIfNeeded(createAlbumDto, localVarRequestOptions, configuration)
  4705. return {
  4706. url: toPathString(localVarUrlObj),
  4707. options: localVarRequestOptions,
  4708. };
  4709. },
  4710. /**
  4711. *
  4712. * @param {string} id
  4713. * @param {*} [options] Override http request option.
  4714. * @throws {RequiredError}
  4715. */
  4716. deleteAlbum: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4717. // verify required parameter 'id' is not null or undefined
  4718. assertParamExists('deleteAlbum', 'id', id)
  4719. const localVarPath = `/album/{id}`
  4720. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  4721. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4722. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4723. let baseOptions;
  4724. if (configuration) {
  4725. baseOptions = configuration.baseOptions;
  4726. }
  4727. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  4728. const localVarHeaderParameter = {} as any;
  4729. const localVarQueryParameter = {} as any;
  4730. // authentication cookie required
  4731. // authentication api_key required
  4732. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4733. // authentication bearer required
  4734. // http bearer authentication required
  4735. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4736. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4737. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4738. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4739. return {
  4740. url: toPathString(localVarUrlObj),
  4741. options: localVarRequestOptions,
  4742. };
  4743. },
  4744. /**
  4745. *
  4746. * @param {*} [options] Override http request option.
  4747. * @throws {RequiredError}
  4748. */
  4749. getAlbumCount: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4750. const localVarPath = `/album/count`;
  4751. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4752. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4753. let baseOptions;
  4754. if (configuration) {
  4755. baseOptions = configuration.baseOptions;
  4756. }
  4757. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  4758. const localVarHeaderParameter = {} as any;
  4759. const localVarQueryParameter = {} as any;
  4760. // authentication cookie required
  4761. // authentication api_key required
  4762. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4763. // authentication bearer required
  4764. // http bearer authentication required
  4765. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4766. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4767. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4768. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4769. return {
  4770. url: toPathString(localVarUrlObj),
  4771. options: localVarRequestOptions,
  4772. };
  4773. },
  4774. /**
  4775. *
  4776. * @param {string} id
  4777. * @param {boolean} [withoutAssets]
  4778. * @param {string} [key]
  4779. * @param {*} [options] Override http request option.
  4780. * @throws {RequiredError}
  4781. */
  4782. getAlbumInfo: async (id: string, withoutAssets?: boolean, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4783. // verify required parameter 'id' is not null or undefined
  4784. assertParamExists('getAlbumInfo', 'id', id)
  4785. const localVarPath = `/album/{id}`
  4786. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  4787. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4788. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4789. let baseOptions;
  4790. if (configuration) {
  4791. baseOptions = configuration.baseOptions;
  4792. }
  4793. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  4794. const localVarHeaderParameter = {} as any;
  4795. const localVarQueryParameter = {} as any;
  4796. // authentication cookie required
  4797. // authentication api_key required
  4798. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4799. // authentication bearer required
  4800. // http bearer authentication required
  4801. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4802. if (withoutAssets !== undefined) {
  4803. localVarQueryParameter['withoutAssets'] = withoutAssets;
  4804. }
  4805. if (key !== undefined) {
  4806. localVarQueryParameter['key'] = key;
  4807. }
  4808. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4809. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4810. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4811. return {
  4812. url: toPathString(localVarUrlObj),
  4813. options: localVarRequestOptions,
  4814. };
  4815. },
  4816. /**
  4817. *
  4818. * @param {boolean} [shared]
  4819. * @param {string} [assetId] Only returns albums that contain the asset Ignores the shared parameter undefined: get all albums
  4820. * @param {*} [options] Override http request option.
  4821. * @throws {RequiredError}
  4822. */
  4823. getAllAlbums: async (shared?: boolean, assetId?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4824. const localVarPath = `/album`;
  4825. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4826. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4827. let baseOptions;
  4828. if (configuration) {
  4829. baseOptions = configuration.baseOptions;
  4830. }
  4831. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  4832. const localVarHeaderParameter = {} as any;
  4833. const localVarQueryParameter = {} as any;
  4834. // authentication cookie required
  4835. // authentication api_key required
  4836. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4837. // authentication bearer required
  4838. // http bearer authentication required
  4839. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4840. if (shared !== undefined) {
  4841. localVarQueryParameter['shared'] = shared;
  4842. }
  4843. if (assetId !== undefined) {
  4844. localVarQueryParameter['assetId'] = assetId;
  4845. }
  4846. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4847. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4848. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4849. return {
  4850. url: toPathString(localVarUrlObj),
  4851. options: localVarRequestOptions,
  4852. };
  4853. },
  4854. /**
  4855. *
  4856. * @param {string} id
  4857. * @param {BulkIdsDto} bulkIdsDto
  4858. * @param {*} [options] Override http request option.
  4859. * @throws {RequiredError}
  4860. */
  4861. removeAssetFromAlbum: async (id: string, bulkIdsDto: BulkIdsDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4862. // verify required parameter 'id' is not null or undefined
  4863. assertParamExists('removeAssetFromAlbum', 'id', id)
  4864. // verify required parameter 'bulkIdsDto' is not null or undefined
  4865. assertParamExists('removeAssetFromAlbum', 'bulkIdsDto', bulkIdsDto)
  4866. const localVarPath = `/album/{id}/assets`
  4867. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  4868. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4869. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4870. let baseOptions;
  4871. if (configuration) {
  4872. baseOptions = configuration.baseOptions;
  4873. }
  4874. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  4875. const localVarHeaderParameter = {} as any;
  4876. const localVarQueryParameter = {} as any;
  4877. // authentication cookie required
  4878. // authentication api_key required
  4879. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4880. // authentication bearer required
  4881. // http bearer authentication required
  4882. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4883. localVarHeaderParameter['Content-Type'] = 'application/json';
  4884. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4885. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4886. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4887. localVarRequestOptions.data = serializeDataIfNeeded(bulkIdsDto, localVarRequestOptions, configuration)
  4888. return {
  4889. url: toPathString(localVarUrlObj),
  4890. options: localVarRequestOptions,
  4891. };
  4892. },
  4893. /**
  4894. *
  4895. * @param {string} id
  4896. * @param {string} userId
  4897. * @param {*} [options] Override http request option.
  4898. * @throws {RequiredError}
  4899. */
  4900. removeUserFromAlbum: async (id: string, userId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4901. // verify required parameter 'id' is not null or undefined
  4902. assertParamExists('removeUserFromAlbum', 'id', id)
  4903. // verify required parameter 'userId' is not null or undefined
  4904. assertParamExists('removeUserFromAlbum', 'userId', userId)
  4905. const localVarPath = `/album/{id}/user/{userId}`
  4906. .replace(`{${"id"}}`, encodeURIComponent(String(id)))
  4907. .replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
  4908. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4909. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4910. let baseOptions;
  4911. if (configuration) {
  4912. baseOptions = configuration.baseOptions;
  4913. }
  4914. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  4915. const localVarHeaderParameter = {} as any;
  4916. const localVarQueryParameter = {} as any;
  4917. // authentication cookie required
  4918. // authentication api_key required
  4919. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4920. // authentication bearer required
  4921. // http bearer authentication required
  4922. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4923. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4924. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4925. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4926. return {
  4927. url: toPathString(localVarUrlObj),
  4928. options: localVarRequestOptions,
  4929. };
  4930. },
  4931. /**
  4932. *
  4933. * @param {string} id
  4934. * @param {UpdateAlbumDto} updateAlbumDto
  4935. * @param {*} [options] Override http request option.
  4936. * @throws {RequiredError}
  4937. */
  4938. updateAlbumInfo: async (id: string, updateAlbumDto: UpdateAlbumDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4939. // verify required parameter 'id' is not null or undefined
  4940. assertParamExists('updateAlbumInfo', 'id', id)
  4941. // verify required parameter 'updateAlbumDto' is not null or undefined
  4942. assertParamExists('updateAlbumInfo', 'updateAlbumDto', updateAlbumDto)
  4943. const localVarPath = `/album/{id}`
  4944. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  4945. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4946. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4947. let baseOptions;
  4948. if (configuration) {
  4949. baseOptions = configuration.baseOptions;
  4950. }
  4951. const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
  4952. const localVarHeaderParameter = {} as any;
  4953. const localVarQueryParameter = {} as any;
  4954. // authentication cookie required
  4955. // authentication api_key required
  4956. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4957. // authentication bearer required
  4958. // http bearer authentication required
  4959. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4960. localVarHeaderParameter['Content-Type'] = 'application/json';
  4961. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4962. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4963. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4964. localVarRequestOptions.data = serializeDataIfNeeded(updateAlbumDto, localVarRequestOptions, configuration)
  4965. return {
  4966. url: toPathString(localVarUrlObj),
  4967. options: localVarRequestOptions,
  4968. };
  4969. },
  4970. }
  4971. };
  4972. /**
  4973. * AlbumApi - functional programming interface
  4974. * @export
  4975. */
  4976. export const AlbumApiFp = function(configuration?: Configuration) {
  4977. const localVarAxiosParamCreator = AlbumApiAxiosParamCreator(configuration)
  4978. return {
  4979. /**
  4980. *
  4981. * @param {string} id
  4982. * @param {BulkIdsDto} bulkIdsDto
  4983. * @param {string} [key]
  4984. * @param {*} [options] Override http request option.
  4985. * @throws {RequiredError}
  4986. */
  4987. async addAssetsToAlbum(id: string, bulkIdsDto: BulkIdsDto, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<BulkIdResponseDto>>> {
  4988. const localVarAxiosArgs = await localVarAxiosParamCreator.addAssetsToAlbum(id, bulkIdsDto, key, options);
  4989. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4990. },
  4991. /**
  4992. *
  4993. * @param {string} id
  4994. * @param {AddUsersDto} addUsersDto
  4995. * @param {*} [options] Override http request option.
  4996. * @throws {RequiredError}
  4997. */
  4998. async addUsersToAlbum(id: string, addUsersDto: AddUsersDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AlbumResponseDto>> {
  4999. const localVarAxiosArgs = await localVarAxiosParamCreator.addUsersToAlbum(id, addUsersDto, options);
  5000. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5001. },
  5002. /**
  5003. *
  5004. * @param {CreateAlbumDto} createAlbumDto
  5005. * @param {*} [options] Override http request option.
  5006. * @throws {RequiredError}
  5007. */
  5008. async createAlbum(createAlbumDto: CreateAlbumDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AlbumResponseDto>> {
  5009. const localVarAxiosArgs = await localVarAxiosParamCreator.createAlbum(createAlbumDto, options);
  5010. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5011. },
  5012. /**
  5013. *
  5014. * @param {string} id
  5015. * @param {*} [options] Override http request option.
  5016. * @throws {RequiredError}
  5017. */
  5018. async deleteAlbum(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  5019. const localVarAxiosArgs = await localVarAxiosParamCreator.deleteAlbum(id, options);
  5020. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5021. },
  5022. /**
  5023. *
  5024. * @param {*} [options] Override http request option.
  5025. * @throws {RequiredError}
  5026. */
  5027. async getAlbumCount(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AlbumCountResponseDto>> {
  5028. const localVarAxiosArgs = await localVarAxiosParamCreator.getAlbumCount(options);
  5029. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5030. },
  5031. /**
  5032. *
  5033. * @param {string} id
  5034. * @param {boolean} [withoutAssets]
  5035. * @param {string} [key]
  5036. * @param {*} [options] Override http request option.
  5037. * @throws {RequiredError}
  5038. */
  5039. async getAlbumInfo(id: string, withoutAssets?: boolean, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AlbumResponseDto>> {
  5040. const localVarAxiosArgs = await localVarAxiosParamCreator.getAlbumInfo(id, withoutAssets, key, options);
  5041. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5042. },
  5043. /**
  5044. *
  5045. * @param {boolean} [shared]
  5046. * @param {string} [assetId] Only returns albums that contain the asset Ignores the shared parameter undefined: get all albums
  5047. * @param {*} [options] Override http request option.
  5048. * @throws {RequiredError}
  5049. */
  5050. async getAllAlbums(shared?: boolean, assetId?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AlbumResponseDto>>> {
  5051. const localVarAxiosArgs = await localVarAxiosParamCreator.getAllAlbums(shared, assetId, options);
  5052. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5053. },
  5054. /**
  5055. *
  5056. * @param {string} id
  5057. * @param {BulkIdsDto} bulkIdsDto
  5058. * @param {*} [options] Override http request option.
  5059. * @throws {RequiredError}
  5060. */
  5061. async removeAssetFromAlbum(id: string, bulkIdsDto: BulkIdsDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<BulkIdResponseDto>>> {
  5062. const localVarAxiosArgs = await localVarAxiosParamCreator.removeAssetFromAlbum(id, bulkIdsDto, options);
  5063. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5064. },
  5065. /**
  5066. *
  5067. * @param {string} id
  5068. * @param {string} userId
  5069. * @param {*} [options] Override http request option.
  5070. * @throws {RequiredError}
  5071. */
  5072. async removeUserFromAlbum(id: string, userId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  5073. const localVarAxiosArgs = await localVarAxiosParamCreator.removeUserFromAlbum(id, userId, options);
  5074. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5075. },
  5076. /**
  5077. *
  5078. * @param {string} id
  5079. * @param {UpdateAlbumDto} updateAlbumDto
  5080. * @param {*} [options] Override http request option.
  5081. * @throws {RequiredError}
  5082. */
  5083. async updateAlbumInfo(id: string, updateAlbumDto: UpdateAlbumDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AlbumResponseDto>> {
  5084. const localVarAxiosArgs = await localVarAxiosParamCreator.updateAlbumInfo(id, updateAlbumDto, options);
  5085. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5086. },
  5087. }
  5088. };
  5089. /**
  5090. * AlbumApi - factory interface
  5091. * @export
  5092. */
  5093. export const AlbumApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  5094. const localVarFp = AlbumApiFp(configuration)
  5095. return {
  5096. /**
  5097. *
  5098. * @param {AlbumApiAddAssetsToAlbumRequest} requestParameters Request parameters.
  5099. * @param {*} [options] Override http request option.
  5100. * @throws {RequiredError}
  5101. */
  5102. addAssetsToAlbum(requestParameters: AlbumApiAddAssetsToAlbumRequest, options?: AxiosRequestConfig): AxiosPromise<Array<BulkIdResponseDto>> {
  5103. return localVarFp.addAssetsToAlbum(requestParameters.id, requestParameters.bulkIdsDto, requestParameters.key, options).then((request) => request(axios, basePath));
  5104. },
  5105. /**
  5106. *
  5107. * @param {AlbumApiAddUsersToAlbumRequest} requestParameters Request parameters.
  5108. * @param {*} [options] Override http request option.
  5109. * @throws {RequiredError}
  5110. */
  5111. addUsersToAlbum(requestParameters: AlbumApiAddUsersToAlbumRequest, options?: AxiosRequestConfig): AxiosPromise<AlbumResponseDto> {
  5112. return localVarFp.addUsersToAlbum(requestParameters.id, requestParameters.addUsersDto, options).then((request) => request(axios, basePath));
  5113. },
  5114. /**
  5115. *
  5116. * @param {AlbumApiCreateAlbumRequest} requestParameters Request parameters.
  5117. * @param {*} [options] Override http request option.
  5118. * @throws {RequiredError}
  5119. */
  5120. createAlbum(requestParameters: AlbumApiCreateAlbumRequest, options?: AxiosRequestConfig): AxiosPromise<AlbumResponseDto> {
  5121. return localVarFp.createAlbum(requestParameters.createAlbumDto, options).then((request) => request(axios, basePath));
  5122. },
  5123. /**
  5124. *
  5125. * @param {AlbumApiDeleteAlbumRequest} requestParameters Request parameters.
  5126. * @param {*} [options] Override http request option.
  5127. * @throws {RequiredError}
  5128. */
  5129. deleteAlbum(requestParameters: AlbumApiDeleteAlbumRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  5130. return localVarFp.deleteAlbum(requestParameters.id, options).then((request) => request(axios, basePath));
  5131. },
  5132. /**
  5133. *
  5134. * @param {*} [options] Override http request option.
  5135. * @throws {RequiredError}
  5136. */
  5137. getAlbumCount(options?: AxiosRequestConfig): AxiosPromise<AlbumCountResponseDto> {
  5138. return localVarFp.getAlbumCount(options).then((request) => request(axios, basePath));
  5139. },
  5140. /**
  5141. *
  5142. * @param {AlbumApiGetAlbumInfoRequest} requestParameters Request parameters.
  5143. * @param {*} [options] Override http request option.
  5144. * @throws {RequiredError}
  5145. */
  5146. getAlbumInfo(requestParameters: AlbumApiGetAlbumInfoRequest, options?: AxiosRequestConfig): AxiosPromise<AlbumResponseDto> {
  5147. return localVarFp.getAlbumInfo(requestParameters.id, requestParameters.withoutAssets, requestParameters.key, options).then((request) => request(axios, basePath));
  5148. },
  5149. /**
  5150. *
  5151. * @param {AlbumApiGetAllAlbumsRequest} requestParameters Request parameters.
  5152. * @param {*} [options] Override http request option.
  5153. * @throws {RequiredError}
  5154. */
  5155. getAllAlbums(requestParameters: AlbumApiGetAllAlbumsRequest = {}, options?: AxiosRequestConfig): AxiosPromise<Array<AlbumResponseDto>> {
  5156. return localVarFp.getAllAlbums(requestParameters.shared, requestParameters.assetId, options).then((request) => request(axios, basePath));
  5157. },
  5158. /**
  5159. *
  5160. * @param {AlbumApiRemoveAssetFromAlbumRequest} requestParameters Request parameters.
  5161. * @param {*} [options] Override http request option.
  5162. * @throws {RequiredError}
  5163. */
  5164. removeAssetFromAlbum(requestParameters: AlbumApiRemoveAssetFromAlbumRequest, options?: AxiosRequestConfig): AxiosPromise<Array<BulkIdResponseDto>> {
  5165. return localVarFp.removeAssetFromAlbum(requestParameters.id, requestParameters.bulkIdsDto, options).then((request) => request(axios, basePath));
  5166. },
  5167. /**
  5168. *
  5169. * @param {AlbumApiRemoveUserFromAlbumRequest} requestParameters Request parameters.
  5170. * @param {*} [options] Override http request option.
  5171. * @throws {RequiredError}
  5172. */
  5173. removeUserFromAlbum(requestParameters: AlbumApiRemoveUserFromAlbumRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  5174. return localVarFp.removeUserFromAlbum(requestParameters.id, requestParameters.userId, options).then((request) => request(axios, basePath));
  5175. },
  5176. /**
  5177. *
  5178. * @param {AlbumApiUpdateAlbumInfoRequest} requestParameters Request parameters.
  5179. * @param {*} [options] Override http request option.
  5180. * @throws {RequiredError}
  5181. */
  5182. updateAlbumInfo(requestParameters: AlbumApiUpdateAlbumInfoRequest, options?: AxiosRequestConfig): AxiosPromise<AlbumResponseDto> {
  5183. return localVarFp.updateAlbumInfo(requestParameters.id, requestParameters.updateAlbumDto, options).then((request) => request(axios, basePath));
  5184. },
  5185. };
  5186. };
  5187. /**
  5188. * Request parameters for addAssetsToAlbum operation in AlbumApi.
  5189. * @export
  5190. * @interface AlbumApiAddAssetsToAlbumRequest
  5191. */
  5192. export interface AlbumApiAddAssetsToAlbumRequest {
  5193. /**
  5194. *
  5195. * @type {string}
  5196. * @memberof AlbumApiAddAssetsToAlbum
  5197. */
  5198. readonly id: string
  5199. /**
  5200. *
  5201. * @type {BulkIdsDto}
  5202. * @memberof AlbumApiAddAssetsToAlbum
  5203. */
  5204. readonly bulkIdsDto: BulkIdsDto
  5205. /**
  5206. *
  5207. * @type {string}
  5208. * @memberof AlbumApiAddAssetsToAlbum
  5209. */
  5210. readonly key?: string
  5211. }
  5212. /**
  5213. * Request parameters for addUsersToAlbum operation in AlbumApi.
  5214. * @export
  5215. * @interface AlbumApiAddUsersToAlbumRequest
  5216. */
  5217. export interface AlbumApiAddUsersToAlbumRequest {
  5218. /**
  5219. *
  5220. * @type {string}
  5221. * @memberof AlbumApiAddUsersToAlbum
  5222. */
  5223. readonly id: string
  5224. /**
  5225. *
  5226. * @type {AddUsersDto}
  5227. * @memberof AlbumApiAddUsersToAlbum
  5228. */
  5229. readonly addUsersDto: AddUsersDto
  5230. }
  5231. /**
  5232. * Request parameters for createAlbum operation in AlbumApi.
  5233. * @export
  5234. * @interface AlbumApiCreateAlbumRequest
  5235. */
  5236. export interface AlbumApiCreateAlbumRequest {
  5237. /**
  5238. *
  5239. * @type {CreateAlbumDto}
  5240. * @memberof AlbumApiCreateAlbum
  5241. */
  5242. readonly createAlbumDto: CreateAlbumDto
  5243. }
  5244. /**
  5245. * Request parameters for deleteAlbum operation in AlbumApi.
  5246. * @export
  5247. * @interface AlbumApiDeleteAlbumRequest
  5248. */
  5249. export interface AlbumApiDeleteAlbumRequest {
  5250. /**
  5251. *
  5252. * @type {string}
  5253. * @memberof AlbumApiDeleteAlbum
  5254. */
  5255. readonly id: string
  5256. }
  5257. /**
  5258. * Request parameters for getAlbumInfo operation in AlbumApi.
  5259. * @export
  5260. * @interface AlbumApiGetAlbumInfoRequest
  5261. */
  5262. export interface AlbumApiGetAlbumInfoRequest {
  5263. /**
  5264. *
  5265. * @type {string}
  5266. * @memberof AlbumApiGetAlbumInfo
  5267. */
  5268. readonly id: string
  5269. /**
  5270. *
  5271. * @type {boolean}
  5272. * @memberof AlbumApiGetAlbumInfo
  5273. */
  5274. readonly withoutAssets?: boolean
  5275. /**
  5276. *
  5277. * @type {string}
  5278. * @memberof AlbumApiGetAlbumInfo
  5279. */
  5280. readonly key?: string
  5281. }
  5282. /**
  5283. * Request parameters for getAllAlbums operation in AlbumApi.
  5284. * @export
  5285. * @interface AlbumApiGetAllAlbumsRequest
  5286. */
  5287. export interface AlbumApiGetAllAlbumsRequest {
  5288. /**
  5289. *
  5290. * @type {boolean}
  5291. * @memberof AlbumApiGetAllAlbums
  5292. */
  5293. readonly shared?: boolean
  5294. /**
  5295. * Only returns albums that contain the asset Ignores the shared parameter undefined: get all albums
  5296. * @type {string}
  5297. * @memberof AlbumApiGetAllAlbums
  5298. */
  5299. readonly assetId?: string
  5300. }
  5301. /**
  5302. * Request parameters for removeAssetFromAlbum operation in AlbumApi.
  5303. * @export
  5304. * @interface AlbumApiRemoveAssetFromAlbumRequest
  5305. */
  5306. export interface AlbumApiRemoveAssetFromAlbumRequest {
  5307. /**
  5308. *
  5309. * @type {string}
  5310. * @memberof AlbumApiRemoveAssetFromAlbum
  5311. */
  5312. readonly id: string
  5313. /**
  5314. *
  5315. * @type {BulkIdsDto}
  5316. * @memberof AlbumApiRemoveAssetFromAlbum
  5317. */
  5318. readonly bulkIdsDto: BulkIdsDto
  5319. }
  5320. /**
  5321. * Request parameters for removeUserFromAlbum operation in AlbumApi.
  5322. * @export
  5323. * @interface AlbumApiRemoveUserFromAlbumRequest
  5324. */
  5325. export interface AlbumApiRemoveUserFromAlbumRequest {
  5326. /**
  5327. *
  5328. * @type {string}
  5329. * @memberof AlbumApiRemoveUserFromAlbum
  5330. */
  5331. readonly id: string
  5332. /**
  5333. *
  5334. * @type {string}
  5335. * @memberof AlbumApiRemoveUserFromAlbum
  5336. */
  5337. readonly userId: string
  5338. }
  5339. /**
  5340. * Request parameters for updateAlbumInfo operation in AlbumApi.
  5341. * @export
  5342. * @interface AlbumApiUpdateAlbumInfoRequest
  5343. */
  5344. export interface AlbumApiUpdateAlbumInfoRequest {
  5345. /**
  5346. *
  5347. * @type {string}
  5348. * @memberof AlbumApiUpdateAlbumInfo
  5349. */
  5350. readonly id: string
  5351. /**
  5352. *
  5353. * @type {UpdateAlbumDto}
  5354. * @memberof AlbumApiUpdateAlbumInfo
  5355. */
  5356. readonly updateAlbumDto: UpdateAlbumDto
  5357. }
  5358. /**
  5359. * AlbumApi - object-oriented interface
  5360. * @export
  5361. * @class AlbumApi
  5362. * @extends {BaseAPI}
  5363. */
  5364. export class AlbumApi extends BaseAPI {
  5365. /**
  5366. *
  5367. * @param {AlbumApiAddAssetsToAlbumRequest} requestParameters Request parameters.
  5368. * @param {*} [options] Override http request option.
  5369. * @throws {RequiredError}
  5370. * @memberof AlbumApi
  5371. */
  5372. public addAssetsToAlbum(requestParameters: AlbumApiAddAssetsToAlbumRequest, options?: AxiosRequestConfig) {
  5373. return AlbumApiFp(this.configuration).addAssetsToAlbum(requestParameters.id, requestParameters.bulkIdsDto, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  5374. }
  5375. /**
  5376. *
  5377. * @param {AlbumApiAddUsersToAlbumRequest} requestParameters Request parameters.
  5378. * @param {*} [options] Override http request option.
  5379. * @throws {RequiredError}
  5380. * @memberof AlbumApi
  5381. */
  5382. public addUsersToAlbum(requestParameters: AlbumApiAddUsersToAlbumRequest, options?: AxiosRequestConfig) {
  5383. return AlbumApiFp(this.configuration).addUsersToAlbum(requestParameters.id, requestParameters.addUsersDto, options).then((request) => request(this.axios, this.basePath));
  5384. }
  5385. /**
  5386. *
  5387. * @param {AlbumApiCreateAlbumRequest} requestParameters Request parameters.
  5388. * @param {*} [options] Override http request option.
  5389. * @throws {RequiredError}
  5390. * @memberof AlbumApi
  5391. */
  5392. public createAlbum(requestParameters: AlbumApiCreateAlbumRequest, options?: AxiosRequestConfig) {
  5393. return AlbumApiFp(this.configuration).createAlbum(requestParameters.createAlbumDto, options).then((request) => request(this.axios, this.basePath));
  5394. }
  5395. /**
  5396. *
  5397. * @param {AlbumApiDeleteAlbumRequest} requestParameters Request parameters.
  5398. * @param {*} [options] Override http request option.
  5399. * @throws {RequiredError}
  5400. * @memberof AlbumApi
  5401. */
  5402. public deleteAlbum(requestParameters: AlbumApiDeleteAlbumRequest, options?: AxiosRequestConfig) {
  5403. return AlbumApiFp(this.configuration).deleteAlbum(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  5404. }
  5405. /**
  5406. *
  5407. * @param {*} [options] Override http request option.
  5408. * @throws {RequiredError}
  5409. * @memberof AlbumApi
  5410. */
  5411. public getAlbumCount(options?: AxiosRequestConfig) {
  5412. return AlbumApiFp(this.configuration).getAlbumCount(options).then((request) => request(this.axios, this.basePath));
  5413. }
  5414. /**
  5415. *
  5416. * @param {AlbumApiGetAlbumInfoRequest} requestParameters Request parameters.
  5417. * @param {*} [options] Override http request option.
  5418. * @throws {RequiredError}
  5419. * @memberof AlbumApi
  5420. */
  5421. public getAlbumInfo(requestParameters: AlbumApiGetAlbumInfoRequest, options?: AxiosRequestConfig) {
  5422. return AlbumApiFp(this.configuration).getAlbumInfo(requestParameters.id, requestParameters.withoutAssets, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  5423. }
  5424. /**
  5425. *
  5426. * @param {AlbumApiGetAllAlbumsRequest} requestParameters Request parameters.
  5427. * @param {*} [options] Override http request option.
  5428. * @throws {RequiredError}
  5429. * @memberof AlbumApi
  5430. */
  5431. public getAllAlbums(requestParameters: AlbumApiGetAllAlbumsRequest = {}, options?: AxiosRequestConfig) {
  5432. return AlbumApiFp(this.configuration).getAllAlbums(requestParameters.shared, requestParameters.assetId, options).then((request) => request(this.axios, this.basePath));
  5433. }
  5434. /**
  5435. *
  5436. * @param {AlbumApiRemoveAssetFromAlbumRequest} requestParameters Request parameters.
  5437. * @param {*} [options] Override http request option.
  5438. * @throws {RequiredError}
  5439. * @memberof AlbumApi
  5440. */
  5441. public removeAssetFromAlbum(requestParameters: AlbumApiRemoveAssetFromAlbumRequest, options?: AxiosRequestConfig) {
  5442. return AlbumApiFp(this.configuration).removeAssetFromAlbum(requestParameters.id, requestParameters.bulkIdsDto, options).then((request) => request(this.axios, this.basePath));
  5443. }
  5444. /**
  5445. *
  5446. * @param {AlbumApiRemoveUserFromAlbumRequest} requestParameters Request parameters.
  5447. * @param {*} [options] Override http request option.
  5448. * @throws {RequiredError}
  5449. * @memberof AlbumApi
  5450. */
  5451. public removeUserFromAlbum(requestParameters: AlbumApiRemoveUserFromAlbumRequest, options?: AxiosRequestConfig) {
  5452. return AlbumApiFp(this.configuration).removeUserFromAlbum(requestParameters.id, requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
  5453. }
  5454. /**
  5455. *
  5456. * @param {AlbumApiUpdateAlbumInfoRequest} requestParameters Request parameters.
  5457. * @param {*} [options] Override http request option.
  5458. * @throws {RequiredError}
  5459. * @memberof AlbumApi
  5460. */
  5461. public updateAlbumInfo(requestParameters: AlbumApiUpdateAlbumInfoRequest, options?: AxiosRequestConfig) {
  5462. return AlbumApiFp(this.configuration).updateAlbumInfo(requestParameters.id, requestParameters.updateAlbumDto, options).then((request) => request(this.axios, this.basePath));
  5463. }
  5464. }
  5465. /**
  5466. * AssetApi - axios parameter creator
  5467. * @export
  5468. */
  5469. export const AssetApiAxiosParamCreator = function (configuration?: Configuration) {
  5470. return {
  5471. /**
  5472. * Checks if assets exist by checksums
  5473. * @param {AssetBulkUploadCheckDto} assetBulkUploadCheckDto
  5474. * @param {*} [options] Override http request option.
  5475. * @throws {RequiredError}
  5476. */
  5477. bulkUploadCheck: async (assetBulkUploadCheckDto: AssetBulkUploadCheckDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5478. // verify required parameter 'assetBulkUploadCheckDto' is not null or undefined
  5479. assertParamExists('bulkUploadCheck', 'assetBulkUploadCheckDto', assetBulkUploadCheckDto)
  5480. const localVarPath = `/asset/bulk-upload-check`;
  5481. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5482. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5483. let baseOptions;
  5484. if (configuration) {
  5485. baseOptions = configuration.baseOptions;
  5486. }
  5487. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  5488. const localVarHeaderParameter = {} as any;
  5489. const localVarQueryParameter = {} as any;
  5490. // authentication cookie required
  5491. // authentication api_key required
  5492. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5493. // authentication bearer required
  5494. // http bearer authentication required
  5495. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5496. localVarHeaderParameter['Content-Type'] = 'application/json';
  5497. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5498. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5499. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5500. localVarRequestOptions.data = serializeDataIfNeeded(assetBulkUploadCheckDto, localVarRequestOptions, configuration)
  5501. return {
  5502. url: toPathString(localVarUrlObj),
  5503. options: localVarRequestOptions,
  5504. };
  5505. },
  5506. /**
  5507. * Check duplicated asset before uploading - for Web upload used
  5508. * @param {CheckDuplicateAssetDto} checkDuplicateAssetDto
  5509. * @param {string} [key]
  5510. * @param {*} [options] Override http request option.
  5511. * @throws {RequiredError}
  5512. */
  5513. checkDuplicateAsset: async (checkDuplicateAssetDto: CheckDuplicateAssetDto, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5514. // verify required parameter 'checkDuplicateAssetDto' is not null or undefined
  5515. assertParamExists('checkDuplicateAsset', 'checkDuplicateAssetDto', checkDuplicateAssetDto)
  5516. const localVarPath = `/asset/check`;
  5517. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5518. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5519. let baseOptions;
  5520. if (configuration) {
  5521. baseOptions = configuration.baseOptions;
  5522. }
  5523. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  5524. const localVarHeaderParameter = {} as any;
  5525. const localVarQueryParameter = {} as any;
  5526. // authentication cookie required
  5527. // authentication api_key required
  5528. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5529. // authentication bearer required
  5530. // http bearer authentication required
  5531. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5532. if (key !== undefined) {
  5533. localVarQueryParameter['key'] = key;
  5534. }
  5535. localVarHeaderParameter['Content-Type'] = 'application/json';
  5536. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5537. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5538. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5539. localVarRequestOptions.data = serializeDataIfNeeded(checkDuplicateAssetDto, localVarRequestOptions, configuration)
  5540. return {
  5541. url: toPathString(localVarUrlObj),
  5542. options: localVarRequestOptions,
  5543. };
  5544. },
  5545. /**
  5546. * Checks if multiple assets exist on the server and returns all existing - used by background backup
  5547. * @param {CheckExistingAssetsDto} checkExistingAssetsDto
  5548. * @param {*} [options] Override http request option.
  5549. * @throws {RequiredError}
  5550. */
  5551. checkExistingAssets: async (checkExistingAssetsDto: CheckExistingAssetsDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5552. // verify required parameter 'checkExistingAssetsDto' is not null or undefined
  5553. assertParamExists('checkExistingAssets', 'checkExistingAssetsDto', checkExistingAssetsDto)
  5554. const localVarPath = `/asset/exist`;
  5555. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5556. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5557. let baseOptions;
  5558. if (configuration) {
  5559. baseOptions = configuration.baseOptions;
  5560. }
  5561. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  5562. const localVarHeaderParameter = {} as any;
  5563. const localVarQueryParameter = {} as any;
  5564. // authentication cookie required
  5565. // authentication api_key required
  5566. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5567. // authentication bearer required
  5568. // http bearer authentication required
  5569. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5570. localVarHeaderParameter['Content-Type'] = 'application/json';
  5571. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5572. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5573. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5574. localVarRequestOptions.data = serializeDataIfNeeded(checkExistingAssetsDto, localVarRequestOptions, configuration)
  5575. return {
  5576. url: toPathString(localVarUrlObj),
  5577. options: localVarRequestOptions,
  5578. };
  5579. },
  5580. /**
  5581. *
  5582. * @param {AssetBulkDeleteDto} assetBulkDeleteDto
  5583. * @param {*} [options] Override http request option.
  5584. * @throws {RequiredError}
  5585. */
  5586. deleteAssets: async (assetBulkDeleteDto: AssetBulkDeleteDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5587. // verify required parameter 'assetBulkDeleteDto' is not null or undefined
  5588. assertParamExists('deleteAssets', 'assetBulkDeleteDto', assetBulkDeleteDto)
  5589. const localVarPath = `/asset`;
  5590. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5591. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5592. let baseOptions;
  5593. if (configuration) {
  5594. baseOptions = configuration.baseOptions;
  5595. }
  5596. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  5597. const localVarHeaderParameter = {} as any;
  5598. const localVarQueryParameter = {} as any;
  5599. // authentication cookie required
  5600. // authentication api_key required
  5601. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5602. // authentication bearer required
  5603. // http bearer authentication required
  5604. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5605. localVarHeaderParameter['Content-Type'] = 'application/json';
  5606. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5607. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5608. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5609. localVarRequestOptions.data = serializeDataIfNeeded(assetBulkDeleteDto, localVarRequestOptions, configuration)
  5610. return {
  5611. url: toPathString(localVarUrlObj),
  5612. options: localVarRequestOptions,
  5613. };
  5614. },
  5615. /**
  5616. *
  5617. * @param {AssetIdsDto} assetIdsDto
  5618. * @param {string} [key]
  5619. * @param {*} [options] Override http request option.
  5620. * @throws {RequiredError}
  5621. */
  5622. downloadArchive: async (assetIdsDto: AssetIdsDto, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5623. // verify required parameter 'assetIdsDto' is not null or undefined
  5624. assertParamExists('downloadArchive', 'assetIdsDto', assetIdsDto)
  5625. const localVarPath = `/asset/download/archive`;
  5626. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5627. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5628. let baseOptions;
  5629. if (configuration) {
  5630. baseOptions = configuration.baseOptions;
  5631. }
  5632. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  5633. const localVarHeaderParameter = {} as any;
  5634. const localVarQueryParameter = {} as any;
  5635. // authentication cookie required
  5636. // authentication api_key required
  5637. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5638. // authentication bearer required
  5639. // http bearer authentication required
  5640. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5641. if (key !== undefined) {
  5642. localVarQueryParameter['key'] = key;
  5643. }
  5644. localVarHeaderParameter['Content-Type'] = 'application/json';
  5645. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5646. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5647. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5648. localVarRequestOptions.data = serializeDataIfNeeded(assetIdsDto, localVarRequestOptions, configuration)
  5649. return {
  5650. url: toPathString(localVarUrlObj),
  5651. options: localVarRequestOptions,
  5652. };
  5653. },
  5654. /**
  5655. *
  5656. * @param {string} id
  5657. * @param {string} [key]
  5658. * @param {*} [options] Override http request option.
  5659. * @throws {RequiredError}
  5660. */
  5661. downloadFile: async (id: string, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5662. // verify required parameter 'id' is not null or undefined
  5663. assertParamExists('downloadFile', 'id', id)
  5664. const localVarPath = `/asset/download/{id}`
  5665. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  5666. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5667. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5668. let baseOptions;
  5669. if (configuration) {
  5670. baseOptions = configuration.baseOptions;
  5671. }
  5672. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  5673. const localVarHeaderParameter = {} as any;
  5674. const localVarQueryParameter = {} as any;
  5675. // authentication cookie required
  5676. // authentication api_key required
  5677. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5678. // authentication bearer required
  5679. // http bearer authentication required
  5680. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5681. if (key !== undefined) {
  5682. localVarQueryParameter['key'] = key;
  5683. }
  5684. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5685. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5686. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5687. return {
  5688. url: toPathString(localVarUrlObj),
  5689. options: localVarRequestOptions,
  5690. };
  5691. },
  5692. /**
  5693. *
  5694. * @param {*} [options] Override http request option.
  5695. * @throws {RequiredError}
  5696. */
  5697. emptyTrash: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5698. const localVarPath = `/asset/trash/empty`;
  5699. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5700. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5701. let baseOptions;
  5702. if (configuration) {
  5703. baseOptions = configuration.baseOptions;
  5704. }
  5705. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  5706. const localVarHeaderParameter = {} as any;
  5707. const localVarQueryParameter = {} as any;
  5708. // authentication cookie required
  5709. // authentication api_key required
  5710. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5711. // authentication bearer required
  5712. // http bearer authentication required
  5713. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5714. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5715. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5716. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5717. return {
  5718. url: toPathString(localVarUrlObj),
  5719. options: localVarRequestOptions,
  5720. };
  5721. },
  5722. /**
  5723. * Get all AssetEntity belong to the user
  5724. * @param {string} [userId]
  5725. * @param {boolean} [isFavorite]
  5726. * @param {boolean} [isArchived]
  5727. * @param {number} [skip]
  5728. * @param {string} [updatedAfter]
  5729. * @param {string} [ifNoneMatch] ETag of data already cached on the client
  5730. * @param {*} [options] Override http request option.
  5731. * @throws {RequiredError}
  5732. */
  5733. getAllAssets: async (userId?: string, isFavorite?: boolean, isArchived?: boolean, skip?: number, updatedAfter?: string, ifNoneMatch?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5734. const localVarPath = `/asset`;
  5735. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5736. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5737. let baseOptions;
  5738. if (configuration) {
  5739. baseOptions = configuration.baseOptions;
  5740. }
  5741. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  5742. const localVarHeaderParameter = {} as any;
  5743. const localVarQueryParameter = {} as any;
  5744. // authentication cookie required
  5745. // authentication api_key required
  5746. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5747. // authentication bearer required
  5748. // http bearer authentication required
  5749. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5750. if (userId !== undefined) {
  5751. localVarQueryParameter['userId'] = userId;
  5752. }
  5753. if (isFavorite !== undefined) {
  5754. localVarQueryParameter['isFavorite'] = isFavorite;
  5755. }
  5756. if (isArchived !== undefined) {
  5757. localVarQueryParameter['isArchived'] = isArchived;
  5758. }
  5759. if (skip !== undefined) {
  5760. localVarQueryParameter['skip'] = skip;
  5761. }
  5762. if (updatedAfter !== undefined) {
  5763. localVarQueryParameter['updatedAfter'] = (updatedAfter as any instanceof Date) ?
  5764. (updatedAfter as any).toISOString() :
  5765. updatedAfter;
  5766. }
  5767. if (ifNoneMatch != null) {
  5768. localVarHeaderParameter['if-none-match'] = String(ifNoneMatch);
  5769. }
  5770. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5771. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5772. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5773. return {
  5774. url: toPathString(localVarUrlObj),
  5775. options: localVarRequestOptions,
  5776. };
  5777. },
  5778. /**
  5779. * Get a single asset\'s information
  5780. * @param {string} id
  5781. * @param {string} [key]
  5782. * @param {*} [options] Override http request option.
  5783. * @throws {RequiredError}
  5784. */
  5785. getAssetById: async (id: string, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5786. // verify required parameter 'id' is not null or undefined
  5787. assertParamExists('getAssetById', 'id', id)
  5788. const localVarPath = `/asset/assetById/{id}`
  5789. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  5790. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5791. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5792. let baseOptions;
  5793. if (configuration) {
  5794. baseOptions = configuration.baseOptions;
  5795. }
  5796. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  5797. const localVarHeaderParameter = {} as any;
  5798. const localVarQueryParameter = {} as any;
  5799. // authentication cookie required
  5800. // authentication api_key required
  5801. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5802. // authentication bearer required
  5803. // http bearer authentication required
  5804. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5805. if (key !== undefined) {
  5806. localVarQueryParameter['key'] = key;
  5807. }
  5808. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5809. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5810. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5811. return {
  5812. url: toPathString(localVarUrlObj),
  5813. options: localVarRequestOptions,
  5814. };
  5815. },
  5816. /**
  5817. *
  5818. * @param {*} [options] Override http request option.
  5819. * @throws {RequiredError}
  5820. */
  5821. getAssetSearchTerms: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5822. const localVarPath = `/asset/search-terms`;
  5823. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5824. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5825. let baseOptions;
  5826. if (configuration) {
  5827. baseOptions = configuration.baseOptions;
  5828. }
  5829. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  5830. const localVarHeaderParameter = {} as any;
  5831. const localVarQueryParameter = {} as any;
  5832. // authentication cookie required
  5833. // authentication api_key required
  5834. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5835. // authentication bearer required
  5836. // http bearer authentication required
  5837. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5838. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5839. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5840. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5841. return {
  5842. url: toPathString(localVarUrlObj),
  5843. options: localVarRequestOptions,
  5844. };
  5845. },
  5846. /**
  5847. *
  5848. * @param {boolean} [isArchived]
  5849. * @param {boolean} [isFavorite]
  5850. * @param {boolean} [isTrashed]
  5851. * @param {*} [options] Override http request option.
  5852. * @throws {RequiredError}
  5853. */
  5854. getAssetStats: async (isArchived?: boolean, isFavorite?: boolean, isTrashed?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5855. const localVarPath = `/asset/statistics`;
  5856. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5857. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5858. let baseOptions;
  5859. if (configuration) {
  5860. baseOptions = configuration.baseOptions;
  5861. }
  5862. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  5863. const localVarHeaderParameter = {} as any;
  5864. const localVarQueryParameter = {} as any;
  5865. // authentication cookie required
  5866. // authentication api_key required
  5867. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5868. // authentication bearer required
  5869. // http bearer authentication required
  5870. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5871. if (isArchived !== undefined) {
  5872. localVarQueryParameter['isArchived'] = isArchived;
  5873. }
  5874. if (isFavorite !== undefined) {
  5875. localVarQueryParameter['isFavorite'] = isFavorite;
  5876. }
  5877. if (isTrashed !== undefined) {
  5878. localVarQueryParameter['isTrashed'] = isTrashed;
  5879. }
  5880. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5881. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5882. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5883. return {
  5884. url: toPathString(localVarUrlObj),
  5885. options: localVarRequestOptions,
  5886. };
  5887. },
  5888. /**
  5889. *
  5890. * @param {string} id
  5891. * @param {ThumbnailFormat} [format]
  5892. * @param {string} [key]
  5893. * @param {*} [options] Override http request option.
  5894. * @throws {RequiredError}
  5895. */
  5896. getAssetThumbnail: async (id: string, format?: ThumbnailFormat, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5897. // verify required parameter 'id' is not null or undefined
  5898. assertParamExists('getAssetThumbnail', 'id', id)
  5899. const localVarPath = `/asset/thumbnail/{id}`
  5900. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  5901. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5902. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5903. let baseOptions;
  5904. if (configuration) {
  5905. baseOptions = configuration.baseOptions;
  5906. }
  5907. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  5908. const localVarHeaderParameter = {} as any;
  5909. const localVarQueryParameter = {} as any;
  5910. // authentication cookie required
  5911. // authentication api_key required
  5912. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5913. // authentication bearer required
  5914. // http bearer authentication required
  5915. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5916. if (format !== undefined) {
  5917. localVarQueryParameter['format'] = format;
  5918. }
  5919. if (key !== undefined) {
  5920. localVarQueryParameter['key'] = key;
  5921. }
  5922. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5923. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5924. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5925. return {
  5926. url: toPathString(localVarUrlObj),
  5927. options: localVarRequestOptions,
  5928. };
  5929. },
  5930. /**
  5931. *
  5932. * @param {TimeBucketSize} size
  5933. * @param {string} timeBucket
  5934. * @param {string} [userId]
  5935. * @param {string} [albumId]
  5936. * @param {string} [personId]
  5937. * @param {boolean} [isArchived]
  5938. * @param {boolean} [isFavorite]
  5939. * @param {boolean} [isTrashed]
  5940. * @param {string} [key]
  5941. * @param {*} [options] Override http request option.
  5942. * @throws {RequiredError}
  5943. */
  5944. getByTimeBucket: async (size: TimeBucketSize, timeBucket: string, userId?: string, albumId?: string, personId?: string, isArchived?: boolean, isFavorite?: boolean, isTrashed?: boolean, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5945. // verify required parameter 'size' is not null or undefined
  5946. assertParamExists('getByTimeBucket', 'size', size)
  5947. // verify required parameter 'timeBucket' is not null or undefined
  5948. assertParamExists('getByTimeBucket', 'timeBucket', timeBucket)
  5949. const localVarPath = `/asset/time-bucket`;
  5950. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5951. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5952. let baseOptions;
  5953. if (configuration) {
  5954. baseOptions = configuration.baseOptions;
  5955. }
  5956. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  5957. const localVarHeaderParameter = {} as any;
  5958. const localVarQueryParameter = {} as any;
  5959. // authentication cookie required
  5960. // authentication api_key required
  5961. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5962. // authentication bearer required
  5963. // http bearer authentication required
  5964. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5965. if (size !== undefined) {
  5966. localVarQueryParameter['size'] = size;
  5967. }
  5968. if (userId !== undefined) {
  5969. localVarQueryParameter['userId'] = userId;
  5970. }
  5971. if (albumId !== undefined) {
  5972. localVarQueryParameter['albumId'] = albumId;
  5973. }
  5974. if (personId !== undefined) {
  5975. localVarQueryParameter['personId'] = personId;
  5976. }
  5977. if (isArchived !== undefined) {
  5978. localVarQueryParameter['isArchived'] = isArchived;
  5979. }
  5980. if (isFavorite !== undefined) {
  5981. localVarQueryParameter['isFavorite'] = isFavorite;
  5982. }
  5983. if (isTrashed !== undefined) {
  5984. localVarQueryParameter['isTrashed'] = isTrashed;
  5985. }
  5986. if (timeBucket !== undefined) {
  5987. localVarQueryParameter['timeBucket'] = timeBucket;
  5988. }
  5989. if (key !== undefined) {
  5990. localVarQueryParameter['key'] = key;
  5991. }
  5992. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5993. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5994. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5995. return {
  5996. url: toPathString(localVarUrlObj),
  5997. options: localVarRequestOptions,
  5998. };
  5999. },
  6000. /**
  6001. *
  6002. * @param {*} [options] Override http request option.
  6003. * @throws {RequiredError}
  6004. */
  6005. getCuratedLocations: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6006. const localVarPath = `/asset/curated-locations`;
  6007. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6008. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6009. let baseOptions;
  6010. if (configuration) {
  6011. baseOptions = configuration.baseOptions;
  6012. }
  6013. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6014. const localVarHeaderParameter = {} as any;
  6015. const localVarQueryParameter = {} as any;
  6016. // authentication cookie required
  6017. // authentication api_key required
  6018. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6019. // authentication bearer required
  6020. // http bearer authentication required
  6021. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6022. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6023. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6024. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6025. return {
  6026. url: toPathString(localVarUrlObj),
  6027. options: localVarRequestOptions,
  6028. };
  6029. },
  6030. /**
  6031. *
  6032. * @param {*} [options] Override http request option.
  6033. * @throws {RequiredError}
  6034. */
  6035. getCuratedObjects: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6036. const localVarPath = `/asset/curated-objects`;
  6037. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6038. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6039. let baseOptions;
  6040. if (configuration) {
  6041. baseOptions = configuration.baseOptions;
  6042. }
  6043. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6044. const localVarHeaderParameter = {} as any;
  6045. const localVarQueryParameter = {} as any;
  6046. // authentication cookie required
  6047. // authentication api_key required
  6048. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6049. // authentication bearer required
  6050. // http bearer authentication required
  6051. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6052. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6053. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6054. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6055. return {
  6056. url: toPathString(localVarUrlObj),
  6057. options: localVarRequestOptions,
  6058. };
  6059. },
  6060. /**
  6061. *
  6062. * @param {DownloadInfoDto} downloadInfoDto
  6063. * @param {string} [key]
  6064. * @param {*} [options] Override http request option.
  6065. * @throws {RequiredError}
  6066. */
  6067. getDownloadInfo: async (downloadInfoDto: DownloadInfoDto, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6068. // verify required parameter 'downloadInfoDto' is not null or undefined
  6069. assertParamExists('getDownloadInfo', 'downloadInfoDto', downloadInfoDto)
  6070. const localVarPath = `/asset/download/info`;
  6071. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6072. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6073. let baseOptions;
  6074. if (configuration) {
  6075. baseOptions = configuration.baseOptions;
  6076. }
  6077. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  6078. const localVarHeaderParameter = {} as any;
  6079. const localVarQueryParameter = {} as any;
  6080. // authentication cookie required
  6081. // authentication api_key required
  6082. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6083. // authentication bearer required
  6084. // http bearer authentication required
  6085. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6086. if (key !== undefined) {
  6087. localVarQueryParameter['key'] = key;
  6088. }
  6089. localVarHeaderParameter['Content-Type'] = 'application/json';
  6090. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6091. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6092. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6093. localVarRequestOptions.data = serializeDataIfNeeded(downloadInfoDto, localVarRequestOptions, configuration)
  6094. return {
  6095. url: toPathString(localVarUrlObj),
  6096. options: localVarRequestOptions,
  6097. };
  6098. },
  6099. /**
  6100. *
  6101. * @param {boolean} [isArchived]
  6102. * @param {boolean} [isFavorite]
  6103. * @param {string} [fileCreatedAfter]
  6104. * @param {string} [fileCreatedBefore]
  6105. * @param {*} [options] Override http request option.
  6106. * @throws {RequiredError}
  6107. */
  6108. getMapMarkers: async (isArchived?: boolean, isFavorite?: boolean, fileCreatedAfter?: string, fileCreatedBefore?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6109. const localVarPath = `/asset/map-marker`;
  6110. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6111. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6112. let baseOptions;
  6113. if (configuration) {
  6114. baseOptions = configuration.baseOptions;
  6115. }
  6116. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6117. const localVarHeaderParameter = {} as any;
  6118. const localVarQueryParameter = {} as any;
  6119. // authentication cookie required
  6120. // authentication api_key required
  6121. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6122. // authentication bearer required
  6123. // http bearer authentication required
  6124. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6125. if (isArchived !== undefined) {
  6126. localVarQueryParameter['isArchived'] = isArchived;
  6127. }
  6128. if (isFavorite !== undefined) {
  6129. localVarQueryParameter['isFavorite'] = isFavorite;
  6130. }
  6131. if (fileCreatedAfter !== undefined) {
  6132. localVarQueryParameter['fileCreatedAfter'] = (fileCreatedAfter as any instanceof Date) ?
  6133. (fileCreatedAfter as any).toISOString() :
  6134. fileCreatedAfter;
  6135. }
  6136. if (fileCreatedBefore !== undefined) {
  6137. localVarQueryParameter['fileCreatedBefore'] = (fileCreatedBefore as any instanceof Date) ?
  6138. (fileCreatedBefore as any).toISOString() :
  6139. fileCreatedBefore;
  6140. }
  6141. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6142. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6143. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6144. return {
  6145. url: toPathString(localVarUrlObj),
  6146. options: localVarRequestOptions,
  6147. };
  6148. },
  6149. /**
  6150. *
  6151. * @param {number} day
  6152. * @param {number} month
  6153. * @param {*} [options] Override http request option.
  6154. * @throws {RequiredError}
  6155. */
  6156. getMemoryLane: async (day: number, month: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6157. // verify required parameter 'day' is not null or undefined
  6158. assertParamExists('getMemoryLane', 'day', day)
  6159. // verify required parameter 'month' is not null or undefined
  6160. assertParamExists('getMemoryLane', 'month', month)
  6161. const localVarPath = `/asset/memory-lane`;
  6162. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6163. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6164. let baseOptions;
  6165. if (configuration) {
  6166. baseOptions = configuration.baseOptions;
  6167. }
  6168. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6169. const localVarHeaderParameter = {} as any;
  6170. const localVarQueryParameter = {} as any;
  6171. // authentication cookie required
  6172. // authentication api_key required
  6173. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6174. // authentication bearer required
  6175. // http bearer authentication required
  6176. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6177. if (day !== undefined) {
  6178. localVarQueryParameter['day'] = day;
  6179. }
  6180. if (month !== undefined) {
  6181. localVarQueryParameter['month'] = month;
  6182. }
  6183. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6184. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6185. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6186. return {
  6187. url: toPathString(localVarUrlObj),
  6188. options: localVarRequestOptions,
  6189. };
  6190. },
  6191. /**
  6192. *
  6193. * @param {number} [count]
  6194. * @param {*} [options] Override http request option.
  6195. * @throws {RequiredError}
  6196. */
  6197. getRandom: async (count?: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6198. const localVarPath = `/asset/random`;
  6199. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6200. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6201. let baseOptions;
  6202. if (configuration) {
  6203. baseOptions = configuration.baseOptions;
  6204. }
  6205. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6206. const localVarHeaderParameter = {} as any;
  6207. const localVarQueryParameter = {} as any;
  6208. // authentication cookie required
  6209. // authentication api_key required
  6210. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6211. // authentication bearer required
  6212. // http bearer authentication required
  6213. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6214. if (count !== undefined) {
  6215. localVarQueryParameter['count'] = count;
  6216. }
  6217. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6218. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6219. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6220. return {
  6221. url: toPathString(localVarUrlObj),
  6222. options: localVarRequestOptions,
  6223. };
  6224. },
  6225. /**
  6226. *
  6227. * @param {TimeBucketSize} size
  6228. * @param {string} [userId]
  6229. * @param {string} [albumId]
  6230. * @param {string} [personId]
  6231. * @param {boolean} [isArchived]
  6232. * @param {boolean} [isFavorite]
  6233. * @param {boolean} [isTrashed]
  6234. * @param {string} [key]
  6235. * @param {*} [options] Override http request option.
  6236. * @throws {RequiredError}
  6237. */
  6238. getTimeBuckets: async (size: TimeBucketSize, userId?: string, albumId?: string, personId?: string, isArchived?: boolean, isFavorite?: boolean, isTrashed?: boolean, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6239. // verify required parameter 'size' is not null or undefined
  6240. assertParamExists('getTimeBuckets', 'size', size)
  6241. const localVarPath = `/asset/time-buckets`;
  6242. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6243. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6244. let baseOptions;
  6245. if (configuration) {
  6246. baseOptions = configuration.baseOptions;
  6247. }
  6248. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6249. const localVarHeaderParameter = {} as any;
  6250. const localVarQueryParameter = {} as any;
  6251. // authentication cookie required
  6252. // authentication api_key required
  6253. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6254. // authentication bearer required
  6255. // http bearer authentication required
  6256. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6257. if (size !== undefined) {
  6258. localVarQueryParameter['size'] = size;
  6259. }
  6260. if (userId !== undefined) {
  6261. localVarQueryParameter['userId'] = userId;
  6262. }
  6263. if (albumId !== undefined) {
  6264. localVarQueryParameter['albumId'] = albumId;
  6265. }
  6266. if (personId !== undefined) {
  6267. localVarQueryParameter['personId'] = personId;
  6268. }
  6269. if (isArchived !== undefined) {
  6270. localVarQueryParameter['isArchived'] = isArchived;
  6271. }
  6272. if (isFavorite !== undefined) {
  6273. localVarQueryParameter['isFavorite'] = isFavorite;
  6274. }
  6275. if (isTrashed !== undefined) {
  6276. localVarQueryParameter['isTrashed'] = isTrashed;
  6277. }
  6278. if (key !== undefined) {
  6279. localVarQueryParameter['key'] = key;
  6280. }
  6281. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6282. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6283. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6284. return {
  6285. url: toPathString(localVarUrlObj),
  6286. options: localVarRequestOptions,
  6287. };
  6288. },
  6289. /**
  6290. * Get all asset of a device that are in the database, ID only.
  6291. * @param {string} deviceId
  6292. * @param {*} [options] Override http request option.
  6293. * @throws {RequiredError}
  6294. */
  6295. getUserAssetsByDeviceId: async (deviceId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6296. // verify required parameter 'deviceId' is not null or undefined
  6297. assertParamExists('getUserAssetsByDeviceId', 'deviceId', deviceId)
  6298. const localVarPath = `/asset/{deviceId}`
  6299. .replace(`{${"deviceId"}}`, encodeURIComponent(String(deviceId)));
  6300. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6301. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6302. let baseOptions;
  6303. if (configuration) {
  6304. baseOptions = configuration.baseOptions;
  6305. }
  6306. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6307. const localVarHeaderParameter = {} as any;
  6308. const localVarQueryParameter = {} as any;
  6309. // authentication cookie required
  6310. // authentication api_key required
  6311. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6312. // authentication bearer required
  6313. // http bearer authentication required
  6314. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6315. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6316. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6317. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6318. return {
  6319. url: toPathString(localVarUrlObj),
  6320. options: localVarRequestOptions,
  6321. };
  6322. },
  6323. /**
  6324. *
  6325. * @param {ImportAssetDto} importAssetDto
  6326. * @param {*} [options] Override http request option.
  6327. * @throws {RequiredError}
  6328. */
  6329. importFile: async (importAssetDto: ImportAssetDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6330. // verify required parameter 'importAssetDto' is not null or undefined
  6331. assertParamExists('importFile', 'importAssetDto', importAssetDto)
  6332. const localVarPath = `/asset/import`;
  6333. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6334. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6335. let baseOptions;
  6336. if (configuration) {
  6337. baseOptions = configuration.baseOptions;
  6338. }
  6339. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  6340. const localVarHeaderParameter = {} as any;
  6341. const localVarQueryParameter = {} as any;
  6342. // authentication cookie required
  6343. // authentication api_key required
  6344. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6345. // authentication bearer required
  6346. // http bearer authentication required
  6347. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6348. localVarHeaderParameter['Content-Type'] = 'application/json';
  6349. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6350. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6351. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6352. localVarRequestOptions.data = serializeDataIfNeeded(importAssetDto, localVarRequestOptions, configuration)
  6353. return {
  6354. url: toPathString(localVarUrlObj),
  6355. options: localVarRequestOptions,
  6356. };
  6357. },
  6358. /**
  6359. *
  6360. * @param {BulkIdsDto} bulkIdsDto
  6361. * @param {*} [options] Override http request option.
  6362. * @throws {RequiredError}
  6363. */
  6364. restoreAssets: async (bulkIdsDto: BulkIdsDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6365. // verify required parameter 'bulkIdsDto' is not null or undefined
  6366. assertParamExists('restoreAssets', 'bulkIdsDto', bulkIdsDto)
  6367. const localVarPath = `/asset/restore`;
  6368. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6369. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6370. let baseOptions;
  6371. if (configuration) {
  6372. baseOptions = configuration.baseOptions;
  6373. }
  6374. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  6375. const localVarHeaderParameter = {} as any;
  6376. const localVarQueryParameter = {} as any;
  6377. // authentication cookie required
  6378. // authentication api_key required
  6379. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6380. // authentication bearer required
  6381. // http bearer authentication required
  6382. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6383. localVarHeaderParameter['Content-Type'] = 'application/json';
  6384. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6385. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6386. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6387. localVarRequestOptions.data = serializeDataIfNeeded(bulkIdsDto, localVarRequestOptions, configuration)
  6388. return {
  6389. url: toPathString(localVarUrlObj),
  6390. options: localVarRequestOptions,
  6391. };
  6392. },
  6393. /**
  6394. *
  6395. * @param {*} [options] Override http request option.
  6396. * @throws {RequiredError}
  6397. */
  6398. restoreTrash: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6399. const localVarPath = `/asset/trash/restore`;
  6400. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6401. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6402. let baseOptions;
  6403. if (configuration) {
  6404. baseOptions = configuration.baseOptions;
  6405. }
  6406. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  6407. const localVarHeaderParameter = {} as any;
  6408. const localVarQueryParameter = {} as any;
  6409. // authentication cookie required
  6410. // authentication api_key required
  6411. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6412. // authentication bearer required
  6413. // http bearer authentication required
  6414. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6415. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6416. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6417. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6418. return {
  6419. url: toPathString(localVarUrlObj),
  6420. options: localVarRequestOptions,
  6421. };
  6422. },
  6423. /**
  6424. *
  6425. * @param {AssetJobsDto} assetJobsDto
  6426. * @param {*} [options] Override http request option.
  6427. * @throws {RequiredError}
  6428. */
  6429. runAssetJobs: async (assetJobsDto: AssetJobsDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6430. // verify required parameter 'assetJobsDto' is not null or undefined
  6431. assertParamExists('runAssetJobs', 'assetJobsDto', assetJobsDto)
  6432. const localVarPath = `/asset/jobs`;
  6433. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6434. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6435. let baseOptions;
  6436. if (configuration) {
  6437. baseOptions = configuration.baseOptions;
  6438. }
  6439. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  6440. const localVarHeaderParameter = {} as any;
  6441. const localVarQueryParameter = {} as any;
  6442. // authentication cookie required
  6443. // authentication api_key required
  6444. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6445. // authentication bearer required
  6446. // http bearer authentication required
  6447. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6448. localVarHeaderParameter['Content-Type'] = 'application/json';
  6449. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6450. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6451. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6452. localVarRequestOptions.data = serializeDataIfNeeded(assetJobsDto, localVarRequestOptions, configuration)
  6453. return {
  6454. url: toPathString(localVarUrlObj),
  6455. options: localVarRequestOptions,
  6456. };
  6457. },
  6458. /**
  6459. *
  6460. * @param {SearchAssetDto} searchAssetDto
  6461. * @param {*} [options] Override http request option.
  6462. * @throws {RequiredError}
  6463. */
  6464. searchAsset: async (searchAssetDto: SearchAssetDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6465. // verify required parameter 'searchAssetDto' is not null or undefined
  6466. assertParamExists('searchAsset', 'searchAssetDto', searchAssetDto)
  6467. const localVarPath = `/asset/search`;
  6468. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6469. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6470. let baseOptions;
  6471. if (configuration) {
  6472. baseOptions = configuration.baseOptions;
  6473. }
  6474. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  6475. const localVarHeaderParameter = {} as any;
  6476. const localVarQueryParameter = {} as any;
  6477. // authentication cookie required
  6478. // authentication api_key required
  6479. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6480. // authentication bearer required
  6481. // http bearer authentication required
  6482. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6483. localVarHeaderParameter['Content-Type'] = 'application/json';
  6484. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6485. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6486. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6487. localVarRequestOptions.data = serializeDataIfNeeded(searchAssetDto, localVarRequestOptions, configuration)
  6488. return {
  6489. url: toPathString(localVarUrlObj),
  6490. options: localVarRequestOptions,
  6491. };
  6492. },
  6493. /**
  6494. *
  6495. * @param {string} id
  6496. * @param {boolean} [isThumb]
  6497. * @param {boolean} [isWeb]
  6498. * @param {string} [key]
  6499. * @param {*} [options] Override http request option.
  6500. * @throws {RequiredError}
  6501. */
  6502. serveFile: async (id: string, isThumb?: boolean, isWeb?: boolean, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6503. // verify required parameter 'id' is not null or undefined
  6504. assertParamExists('serveFile', 'id', id)
  6505. const localVarPath = `/asset/file/{id}`
  6506. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  6507. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6508. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6509. let baseOptions;
  6510. if (configuration) {
  6511. baseOptions = configuration.baseOptions;
  6512. }
  6513. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6514. const localVarHeaderParameter = {} as any;
  6515. const localVarQueryParameter = {} as any;
  6516. // authentication cookie required
  6517. // authentication api_key required
  6518. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6519. // authentication bearer required
  6520. // http bearer authentication required
  6521. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6522. if (isThumb !== undefined) {
  6523. localVarQueryParameter['isThumb'] = isThumb;
  6524. }
  6525. if (isWeb !== undefined) {
  6526. localVarQueryParameter['isWeb'] = isWeb;
  6527. }
  6528. if (key !== undefined) {
  6529. localVarQueryParameter['key'] = key;
  6530. }
  6531. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6532. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6533. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6534. return {
  6535. url: toPathString(localVarUrlObj),
  6536. options: localVarRequestOptions,
  6537. };
  6538. },
  6539. /**
  6540. *
  6541. * @param {string} id
  6542. * @param {UpdateAssetDto} updateAssetDto
  6543. * @param {*} [options] Override http request option.
  6544. * @throws {RequiredError}
  6545. */
  6546. updateAsset: async (id: string, updateAssetDto: UpdateAssetDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6547. // verify required parameter 'id' is not null or undefined
  6548. assertParamExists('updateAsset', 'id', id)
  6549. // verify required parameter 'updateAssetDto' is not null or undefined
  6550. assertParamExists('updateAsset', 'updateAssetDto', updateAssetDto)
  6551. const localVarPath = `/asset/{id}`
  6552. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  6553. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6554. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6555. let baseOptions;
  6556. if (configuration) {
  6557. baseOptions = configuration.baseOptions;
  6558. }
  6559. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  6560. const localVarHeaderParameter = {} as any;
  6561. const localVarQueryParameter = {} as any;
  6562. // authentication cookie required
  6563. // authentication api_key required
  6564. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6565. // authentication bearer required
  6566. // http bearer authentication required
  6567. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6568. localVarHeaderParameter['Content-Type'] = 'application/json';
  6569. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6570. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6571. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6572. localVarRequestOptions.data = serializeDataIfNeeded(updateAssetDto, localVarRequestOptions, configuration)
  6573. return {
  6574. url: toPathString(localVarUrlObj),
  6575. options: localVarRequestOptions,
  6576. };
  6577. },
  6578. /**
  6579. *
  6580. * @param {AssetBulkUpdateDto} assetBulkUpdateDto
  6581. * @param {*} [options] Override http request option.
  6582. * @throws {RequiredError}
  6583. */
  6584. updateAssets: async (assetBulkUpdateDto: AssetBulkUpdateDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6585. // verify required parameter 'assetBulkUpdateDto' is not null or undefined
  6586. assertParamExists('updateAssets', 'assetBulkUpdateDto', assetBulkUpdateDto)
  6587. const localVarPath = `/asset`;
  6588. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6589. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6590. let baseOptions;
  6591. if (configuration) {
  6592. baseOptions = configuration.baseOptions;
  6593. }
  6594. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  6595. const localVarHeaderParameter = {} as any;
  6596. const localVarQueryParameter = {} as any;
  6597. // authentication cookie required
  6598. // authentication api_key required
  6599. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6600. // authentication bearer required
  6601. // http bearer authentication required
  6602. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6603. localVarHeaderParameter['Content-Type'] = 'application/json';
  6604. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6605. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6606. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6607. localVarRequestOptions.data = serializeDataIfNeeded(assetBulkUpdateDto, localVarRequestOptions, configuration)
  6608. return {
  6609. url: toPathString(localVarUrlObj),
  6610. options: localVarRequestOptions,
  6611. };
  6612. },
  6613. /**
  6614. *
  6615. * @param {UpdateStackParentDto} updateStackParentDto
  6616. * @param {*} [options] Override http request option.
  6617. * @throws {RequiredError}
  6618. */
  6619. updateStackParent: async (updateStackParentDto: UpdateStackParentDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6620. // verify required parameter 'updateStackParentDto' is not null or undefined
  6621. assertParamExists('updateStackParent', 'updateStackParentDto', updateStackParentDto)
  6622. const localVarPath = `/asset/stack/parent`;
  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: 'PUT', ...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. localVarHeaderParameter['Content-Type'] = 'application/json';
  6639. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6640. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6641. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6642. localVarRequestOptions.data = serializeDataIfNeeded(updateStackParentDto, localVarRequestOptions, configuration)
  6643. return {
  6644. url: toPathString(localVarUrlObj),
  6645. options: localVarRequestOptions,
  6646. };
  6647. },
  6648. /**
  6649. *
  6650. * @param {File} assetData
  6651. * @param {string} deviceAssetId
  6652. * @param {string} deviceId
  6653. * @param {string} fileCreatedAt
  6654. * @param {string} fileModifiedAt
  6655. * @param {boolean} isFavorite
  6656. * @param {string} [key]
  6657. * @param {string} [duration]
  6658. * @param {boolean} [isArchived]
  6659. * @param {boolean} [isExternal]
  6660. * @param {boolean} [isOffline]
  6661. * @param {boolean} [isReadOnly]
  6662. * @param {boolean} [isVisible]
  6663. * @param {string} [libraryId]
  6664. * @param {File} [livePhotoData]
  6665. * @param {File} [sidecarData]
  6666. * @param {*} [options] Override http request option.
  6667. * @throws {RequiredError}
  6668. */
  6669. uploadFile: async (assetData: File, deviceAssetId: string, deviceId: string, fileCreatedAt: string, fileModifiedAt: string, isFavorite: boolean, key?: string, duration?: string, isArchived?: boolean, isExternal?: boolean, isOffline?: boolean, isReadOnly?: boolean, isVisible?: boolean, libraryId?: string, livePhotoData?: File, sidecarData?: File, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6670. // verify required parameter 'assetData' is not null or undefined
  6671. assertParamExists('uploadFile', 'assetData', assetData)
  6672. // verify required parameter 'deviceAssetId' is not null or undefined
  6673. assertParamExists('uploadFile', 'deviceAssetId', deviceAssetId)
  6674. // verify required parameter 'deviceId' is not null or undefined
  6675. assertParamExists('uploadFile', 'deviceId', deviceId)
  6676. // verify required parameter 'fileCreatedAt' is not null or undefined
  6677. assertParamExists('uploadFile', 'fileCreatedAt', fileCreatedAt)
  6678. // verify required parameter 'fileModifiedAt' is not null or undefined
  6679. assertParamExists('uploadFile', 'fileModifiedAt', fileModifiedAt)
  6680. // verify required parameter 'isFavorite' is not null or undefined
  6681. assertParamExists('uploadFile', 'isFavorite', isFavorite)
  6682. const localVarPath = `/asset/upload`;
  6683. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6684. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6685. let baseOptions;
  6686. if (configuration) {
  6687. baseOptions = configuration.baseOptions;
  6688. }
  6689. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  6690. const localVarHeaderParameter = {} as any;
  6691. const localVarQueryParameter = {} as any;
  6692. const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
  6693. // authentication cookie required
  6694. // authentication api_key required
  6695. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6696. // authentication bearer required
  6697. // http bearer authentication required
  6698. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6699. if (key !== undefined) {
  6700. localVarQueryParameter['key'] = key;
  6701. }
  6702. if (assetData !== undefined) {
  6703. localVarFormParams.append('assetData', assetData as any);
  6704. }
  6705. if (deviceAssetId !== undefined) {
  6706. localVarFormParams.append('deviceAssetId', deviceAssetId as any);
  6707. }
  6708. if (deviceId !== undefined) {
  6709. localVarFormParams.append('deviceId', deviceId as any);
  6710. }
  6711. if (duration !== undefined) {
  6712. localVarFormParams.append('duration', duration as any);
  6713. }
  6714. if (fileCreatedAt !== undefined) {
  6715. localVarFormParams.append('fileCreatedAt', fileCreatedAt as any);
  6716. }
  6717. if (fileModifiedAt !== undefined) {
  6718. localVarFormParams.append('fileModifiedAt', fileModifiedAt as any);
  6719. }
  6720. if (isArchived !== undefined) {
  6721. localVarFormParams.append('isArchived', isArchived as any);
  6722. }
  6723. if (isExternal !== undefined) {
  6724. localVarFormParams.append('isExternal', isExternal as any);
  6725. }
  6726. if (isFavorite !== undefined) {
  6727. localVarFormParams.append('isFavorite', isFavorite as any);
  6728. }
  6729. if (isOffline !== undefined) {
  6730. localVarFormParams.append('isOffline', isOffline as any);
  6731. }
  6732. if (isReadOnly !== undefined) {
  6733. localVarFormParams.append('isReadOnly', isReadOnly as any);
  6734. }
  6735. if (isVisible !== undefined) {
  6736. localVarFormParams.append('isVisible', isVisible as any);
  6737. }
  6738. if (libraryId !== undefined) {
  6739. localVarFormParams.append('libraryId', libraryId as any);
  6740. }
  6741. if (livePhotoData !== undefined) {
  6742. localVarFormParams.append('livePhotoData', livePhotoData as any);
  6743. }
  6744. if (sidecarData !== undefined) {
  6745. localVarFormParams.append('sidecarData', sidecarData as any);
  6746. }
  6747. localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
  6748. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6749. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6750. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6751. localVarRequestOptions.data = localVarFormParams;
  6752. return {
  6753. url: toPathString(localVarUrlObj),
  6754. options: localVarRequestOptions,
  6755. };
  6756. },
  6757. }
  6758. };
  6759. /**
  6760. * AssetApi - functional programming interface
  6761. * @export
  6762. */
  6763. export const AssetApiFp = function(configuration?: Configuration) {
  6764. const localVarAxiosParamCreator = AssetApiAxiosParamCreator(configuration)
  6765. return {
  6766. /**
  6767. * Checks if assets exist by checksums
  6768. * @param {AssetBulkUploadCheckDto} assetBulkUploadCheckDto
  6769. * @param {*} [options] Override http request option.
  6770. * @throws {RequiredError}
  6771. */
  6772. async bulkUploadCheck(assetBulkUploadCheckDto: AssetBulkUploadCheckDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AssetBulkUploadCheckResponseDto>> {
  6773. const localVarAxiosArgs = await localVarAxiosParamCreator.bulkUploadCheck(assetBulkUploadCheckDto, options);
  6774. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6775. },
  6776. /**
  6777. * Check duplicated asset before uploading - for Web upload used
  6778. * @param {CheckDuplicateAssetDto} checkDuplicateAssetDto
  6779. * @param {string} [key]
  6780. * @param {*} [options] Override http request option.
  6781. * @throws {RequiredError}
  6782. */
  6783. async checkDuplicateAsset(checkDuplicateAssetDto: CheckDuplicateAssetDto, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CheckDuplicateAssetResponseDto>> {
  6784. const localVarAxiosArgs = await localVarAxiosParamCreator.checkDuplicateAsset(checkDuplicateAssetDto, key, options);
  6785. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6786. },
  6787. /**
  6788. * Checks if multiple assets exist on the server and returns all existing - used by background backup
  6789. * @param {CheckExistingAssetsDto} checkExistingAssetsDto
  6790. * @param {*} [options] Override http request option.
  6791. * @throws {RequiredError}
  6792. */
  6793. async checkExistingAssets(checkExistingAssetsDto: CheckExistingAssetsDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CheckExistingAssetsResponseDto>> {
  6794. const localVarAxiosArgs = await localVarAxiosParamCreator.checkExistingAssets(checkExistingAssetsDto, options);
  6795. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6796. },
  6797. /**
  6798. *
  6799. * @param {AssetBulkDeleteDto} assetBulkDeleteDto
  6800. * @param {*} [options] Override http request option.
  6801. * @throws {RequiredError}
  6802. */
  6803. async deleteAssets(assetBulkDeleteDto: AssetBulkDeleteDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  6804. const localVarAxiosArgs = await localVarAxiosParamCreator.deleteAssets(assetBulkDeleteDto, options);
  6805. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6806. },
  6807. /**
  6808. *
  6809. * @param {AssetIdsDto} assetIdsDto
  6810. * @param {string} [key]
  6811. * @param {*} [options] Override http request option.
  6812. * @throws {RequiredError}
  6813. */
  6814. async downloadArchive(assetIdsDto: AssetIdsDto, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>> {
  6815. const localVarAxiosArgs = await localVarAxiosParamCreator.downloadArchive(assetIdsDto, key, options);
  6816. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6817. },
  6818. /**
  6819. *
  6820. * @param {string} id
  6821. * @param {string} [key]
  6822. * @param {*} [options] Override http request option.
  6823. * @throws {RequiredError}
  6824. */
  6825. async downloadFile(id: string, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>> {
  6826. const localVarAxiosArgs = await localVarAxiosParamCreator.downloadFile(id, key, options);
  6827. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6828. },
  6829. /**
  6830. *
  6831. * @param {*} [options] Override http request option.
  6832. * @throws {RequiredError}
  6833. */
  6834. async emptyTrash(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  6835. const localVarAxiosArgs = await localVarAxiosParamCreator.emptyTrash(options);
  6836. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6837. },
  6838. /**
  6839. * Get all AssetEntity belong to the user
  6840. * @param {string} [userId]
  6841. * @param {boolean} [isFavorite]
  6842. * @param {boolean} [isArchived]
  6843. * @param {number} [skip]
  6844. * @param {string} [updatedAfter]
  6845. * @param {string} [ifNoneMatch] ETag of data already cached on the client
  6846. * @param {*} [options] Override http request option.
  6847. * @throws {RequiredError}
  6848. */
  6849. async getAllAssets(userId?: string, isFavorite?: boolean, isArchived?: boolean, skip?: number, updatedAfter?: string, ifNoneMatch?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetResponseDto>>> {
  6850. const localVarAxiosArgs = await localVarAxiosParamCreator.getAllAssets(userId, isFavorite, isArchived, skip, updatedAfter, ifNoneMatch, options);
  6851. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6852. },
  6853. /**
  6854. * Get a single asset\'s information
  6855. * @param {string} id
  6856. * @param {string} [key]
  6857. * @param {*} [options] Override http request option.
  6858. * @throws {RequiredError}
  6859. */
  6860. async getAssetById(id: string, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AssetResponseDto>> {
  6861. const localVarAxiosArgs = await localVarAxiosParamCreator.getAssetById(id, key, options);
  6862. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6863. },
  6864. /**
  6865. *
  6866. * @param {*} [options] Override http request option.
  6867. * @throws {RequiredError}
  6868. */
  6869. async getAssetSearchTerms(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<string>>> {
  6870. const localVarAxiosArgs = await localVarAxiosParamCreator.getAssetSearchTerms(options);
  6871. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6872. },
  6873. /**
  6874. *
  6875. * @param {boolean} [isArchived]
  6876. * @param {boolean} [isFavorite]
  6877. * @param {boolean} [isTrashed]
  6878. * @param {*} [options] Override http request option.
  6879. * @throws {RequiredError}
  6880. */
  6881. async getAssetStats(isArchived?: boolean, isFavorite?: boolean, isTrashed?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AssetStatsResponseDto>> {
  6882. const localVarAxiosArgs = await localVarAxiosParamCreator.getAssetStats(isArchived, isFavorite, isTrashed, options);
  6883. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6884. },
  6885. /**
  6886. *
  6887. * @param {string} id
  6888. * @param {ThumbnailFormat} [format]
  6889. * @param {string} [key]
  6890. * @param {*} [options] Override http request option.
  6891. * @throws {RequiredError}
  6892. */
  6893. async getAssetThumbnail(id: string, format?: ThumbnailFormat, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>> {
  6894. const localVarAxiosArgs = await localVarAxiosParamCreator.getAssetThumbnail(id, format, key, options);
  6895. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6896. },
  6897. /**
  6898. *
  6899. * @param {TimeBucketSize} size
  6900. * @param {string} timeBucket
  6901. * @param {string} [userId]
  6902. * @param {string} [albumId]
  6903. * @param {string} [personId]
  6904. * @param {boolean} [isArchived]
  6905. * @param {boolean} [isFavorite]
  6906. * @param {boolean} [isTrashed]
  6907. * @param {string} [key]
  6908. * @param {*} [options] Override http request option.
  6909. * @throws {RequiredError}
  6910. */
  6911. async getByTimeBucket(size: TimeBucketSize, timeBucket: string, userId?: string, albumId?: string, personId?: string, isArchived?: boolean, isFavorite?: boolean, isTrashed?: boolean, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetResponseDto>>> {
  6912. const localVarAxiosArgs = await localVarAxiosParamCreator.getByTimeBucket(size, timeBucket, userId, albumId, personId, isArchived, isFavorite, isTrashed, key, options);
  6913. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6914. },
  6915. /**
  6916. *
  6917. * @param {*} [options] Override http request option.
  6918. * @throws {RequiredError}
  6919. */
  6920. async getCuratedLocations(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<CuratedLocationsResponseDto>>> {
  6921. const localVarAxiosArgs = await localVarAxiosParamCreator.getCuratedLocations(options);
  6922. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6923. },
  6924. /**
  6925. *
  6926. * @param {*} [options] Override http request option.
  6927. * @throws {RequiredError}
  6928. */
  6929. async getCuratedObjects(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<CuratedObjectsResponseDto>>> {
  6930. const localVarAxiosArgs = await localVarAxiosParamCreator.getCuratedObjects(options);
  6931. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6932. },
  6933. /**
  6934. *
  6935. * @param {DownloadInfoDto} downloadInfoDto
  6936. * @param {string} [key]
  6937. * @param {*} [options] Override http request option.
  6938. * @throws {RequiredError}
  6939. */
  6940. async getDownloadInfo(downloadInfoDto: DownloadInfoDto, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DownloadResponseDto>> {
  6941. const localVarAxiosArgs = await localVarAxiosParamCreator.getDownloadInfo(downloadInfoDto, key, options);
  6942. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6943. },
  6944. /**
  6945. *
  6946. * @param {boolean} [isArchived]
  6947. * @param {boolean} [isFavorite]
  6948. * @param {string} [fileCreatedAfter]
  6949. * @param {string} [fileCreatedBefore]
  6950. * @param {*} [options] Override http request option.
  6951. * @throws {RequiredError}
  6952. */
  6953. async getMapMarkers(isArchived?: boolean, isFavorite?: boolean, fileCreatedAfter?: string, fileCreatedBefore?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<MapMarkerResponseDto>>> {
  6954. const localVarAxiosArgs = await localVarAxiosParamCreator.getMapMarkers(isArchived, isFavorite, fileCreatedAfter, fileCreatedBefore, options);
  6955. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6956. },
  6957. /**
  6958. *
  6959. * @param {number} day
  6960. * @param {number} month
  6961. * @param {*} [options] Override http request option.
  6962. * @throws {RequiredError}
  6963. */
  6964. async getMemoryLane(day: number, month: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<MemoryLaneResponseDto>>> {
  6965. const localVarAxiosArgs = await localVarAxiosParamCreator.getMemoryLane(day, month, options);
  6966. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6967. },
  6968. /**
  6969. *
  6970. * @param {number} [count]
  6971. * @param {*} [options] Override http request option.
  6972. * @throws {RequiredError}
  6973. */
  6974. async getRandom(count?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetResponseDto>>> {
  6975. const localVarAxiosArgs = await localVarAxiosParamCreator.getRandom(count, options);
  6976. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6977. },
  6978. /**
  6979. *
  6980. * @param {TimeBucketSize} size
  6981. * @param {string} [userId]
  6982. * @param {string} [albumId]
  6983. * @param {string} [personId]
  6984. * @param {boolean} [isArchived]
  6985. * @param {boolean} [isFavorite]
  6986. * @param {boolean} [isTrashed]
  6987. * @param {string} [key]
  6988. * @param {*} [options] Override http request option.
  6989. * @throws {RequiredError}
  6990. */
  6991. async getTimeBuckets(size: TimeBucketSize, userId?: string, albumId?: string, personId?: string, isArchived?: boolean, isFavorite?: boolean, isTrashed?: boolean, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<TimeBucketResponseDto>>> {
  6992. const localVarAxiosArgs = await localVarAxiosParamCreator.getTimeBuckets(size, userId, albumId, personId, isArchived, isFavorite, isTrashed, key, options);
  6993. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6994. },
  6995. /**
  6996. * Get all asset of a device that are in the database, ID only.
  6997. * @param {string} deviceId
  6998. * @param {*} [options] Override http request option.
  6999. * @throws {RequiredError}
  7000. */
  7001. async getUserAssetsByDeviceId(deviceId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<string>>> {
  7002. const localVarAxiosArgs = await localVarAxiosParamCreator.getUserAssetsByDeviceId(deviceId, options);
  7003. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7004. },
  7005. /**
  7006. *
  7007. * @param {ImportAssetDto} importAssetDto
  7008. * @param {*} [options] Override http request option.
  7009. * @throws {RequiredError}
  7010. */
  7011. async importFile(importAssetDto: ImportAssetDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AssetFileUploadResponseDto>> {
  7012. const localVarAxiosArgs = await localVarAxiosParamCreator.importFile(importAssetDto, options);
  7013. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7014. },
  7015. /**
  7016. *
  7017. * @param {BulkIdsDto} bulkIdsDto
  7018. * @param {*} [options] Override http request option.
  7019. * @throws {RequiredError}
  7020. */
  7021. async restoreAssets(bulkIdsDto: BulkIdsDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  7022. const localVarAxiosArgs = await localVarAxiosParamCreator.restoreAssets(bulkIdsDto, options);
  7023. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7024. },
  7025. /**
  7026. *
  7027. * @param {*} [options] Override http request option.
  7028. * @throws {RequiredError}
  7029. */
  7030. async restoreTrash(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  7031. const localVarAxiosArgs = await localVarAxiosParamCreator.restoreTrash(options);
  7032. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7033. },
  7034. /**
  7035. *
  7036. * @param {AssetJobsDto} assetJobsDto
  7037. * @param {*} [options] Override http request option.
  7038. * @throws {RequiredError}
  7039. */
  7040. async runAssetJobs(assetJobsDto: AssetJobsDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  7041. const localVarAxiosArgs = await localVarAxiosParamCreator.runAssetJobs(assetJobsDto, options);
  7042. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7043. },
  7044. /**
  7045. *
  7046. * @param {SearchAssetDto} searchAssetDto
  7047. * @param {*} [options] Override http request option.
  7048. * @throws {RequiredError}
  7049. */
  7050. async searchAsset(searchAssetDto: SearchAssetDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetResponseDto>>> {
  7051. const localVarAxiosArgs = await localVarAxiosParamCreator.searchAsset(searchAssetDto, options);
  7052. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7053. },
  7054. /**
  7055. *
  7056. * @param {string} id
  7057. * @param {boolean} [isThumb]
  7058. * @param {boolean} [isWeb]
  7059. * @param {string} [key]
  7060. * @param {*} [options] Override http request option.
  7061. * @throws {RequiredError}
  7062. */
  7063. async serveFile(id: string, isThumb?: boolean, isWeb?: boolean, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>> {
  7064. const localVarAxiosArgs = await localVarAxiosParamCreator.serveFile(id, isThumb, isWeb, key, options);
  7065. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7066. },
  7067. /**
  7068. *
  7069. * @param {string} id
  7070. * @param {UpdateAssetDto} updateAssetDto
  7071. * @param {*} [options] Override http request option.
  7072. * @throws {RequiredError}
  7073. */
  7074. async updateAsset(id: string, updateAssetDto: UpdateAssetDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AssetResponseDto>> {
  7075. const localVarAxiosArgs = await localVarAxiosParamCreator.updateAsset(id, updateAssetDto, options);
  7076. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7077. },
  7078. /**
  7079. *
  7080. * @param {AssetBulkUpdateDto} assetBulkUpdateDto
  7081. * @param {*} [options] Override http request option.
  7082. * @throws {RequiredError}
  7083. */
  7084. async updateAssets(assetBulkUpdateDto: AssetBulkUpdateDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  7085. const localVarAxiosArgs = await localVarAxiosParamCreator.updateAssets(assetBulkUpdateDto, options);
  7086. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7087. },
  7088. /**
  7089. *
  7090. * @param {UpdateStackParentDto} updateStackParentDto
  7091. * @param {*} [options] Override http request option.
  7092. * @throws {RequiredError}
  7093. */
  7094. async updateStackParent(updateStackParentDto: UpdateStackParentDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  7095. const localVarAxiosArgs = await localVarAxiosParamCreator.updateStackParent(updateStackParentDto, options);
  7096. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7097. },
  7098. /**
  7099. *
  7100. * @param {File} assetData
  7101. * @param {string} deviceAssetId
  7102. * @param {string} deviceId
  7103. * @param {string} fileCreatedAt
  7104. * @param {string} fileModifiedAt
  7105. * @param {boolean} isFavorite
  7106. * @param {string} [key]
  7107. * @param {string} [duration]
  7108. * @param {boolean} [isArchived]
  7109. * @param {boolean} [isExternal]
  7110. * @param {boolean} [isOffline]
  7111. * @param {boolean} [isReadOnly]
  7112. * @param {boolean} [isVisible]
  7113. * @param {string} [libraryId]
  7114. * @param {File} [livePhotoData]
  7115. * @param {File} [sidecarData]
  7116. * @param {*} [options] Override http request option.
  7117. * @throws {RequiredError}
  7118. */
  7119. async uploadFile(assetData: File, deviceAssetId: string, deviceId: string, fileCreatedAt: string, fileModifiedAt: string, isFavorite: boolean, key?: string, duration?: string, isArchived?: boolean, isExternal?: boolean, isOffline?: boolean, isReadOnly?: boolean, isVisible?: boolean, libraryId?: string, livePhotoData?: File, sidecarData?: File, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AssetFileUploadResponseDto>> {
  7120. const localVarAxiosArgs = await localVarAxiosParamCreator.uploadFile(assetData, deviceAssetId, deviceId, fileCreatedAt, fileModifiedAt, isFavorite, key, duration, isArchived, isExternal, isOffline, isReadOnly, isVisible, libraryId, livePhotoData, sidecarData, options);
  7121. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7122. },
  7123. }
  7124. };
  7125. /**
  7126. * AssetApi - factory interface
  7127. * @export
  7128. */
  7129. export const AssetApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  7130. const localVarFp = AssetApiFp(configuration)
  7131. return {
  7132. /**
  7133. * Checks if assets exist by checksums
  7134. * @param {AssetApiBulkUploadCheckRequest} requestParameters Request parameters.
  7135. * @param {*} [options] Override http request option.
  7136. * @throws {RequiredError}
  7137. */
  7138. bulkUploadCheck(requestParameters: AssetApiBulkUploadCheckRequest, options?: AxiosRequestConfig): AxiosPromise<AssetBulkUploadCheckResponseDto> {
  7139. return localVarFp.bulkUploadCheck(requestParameters.assetBulkUploadCheckDto, options).then((request) => request(axios, basePath));
  7140. },
  7141. /**
  7142. * Check duplicated asset before uploading - for Web upload used
  7143. * @param {AssetApiCheckDuplicateAssetRequest} requestParameters Request parameters.
  7144. * @param {*} [options] Override http request option.
  7145. * @throws {RequiredError}
  7146. */
  7147. checkDuplicateAsset(requestParameters: AssetApiCheckDuplicateAssetRequest, options?: AxiosRequestConfig): AxiosPromise<CheckDuplicateAssetResponseDto> {
  7148. return localVarFp.checkDuplicateAsset(requestParameters.checkDuplicateAssetDto, requestParameters.key, options).then((request) => request(axios, basePath));
  7149. },
  7150. /**
  7151. * Checks if multiple assets exist on the server and returns all existing - used by background backup
  7152. * @param {AssetApiCheckExistingAssetsRequest} requestParameters Request parameters.
  7153. * @param {*} [options] Override http request option.
  7154. * @throws {RequiredError}
  7155. */
  7156. checkExistingAssets(requestParameters: AssetApiCheckExistingAssetsRequest, options?: AxiosRequestConfig): AxiosPromise<CheckExistingAssetsResponseDto> {
  7157. return localVarFp.checkExistingAssets(requestParameters.checkExistingAssetsDto, options).then((request) => request(axios, basePath));
  7158. },
  7159. /**
  7160. *
  7161. * @param {AssetApiDeleteAssetsRequest} requestParameters Request parameters.
  7162. * @param {*} [options] Override http request option.
  7163. * @throws {RequiredError}
  7164. */
  7165. deleteAssets(requestParameters: AssetApiDeleteAssetsRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  7166. return localVarFp.deleteAssets(requestParameters.assetBulkDeleteDto, options).then((request) => request(axios, basePath));
  7167. },
  7168. /**
  7169. *
  7170. * @param {AssetApiDownloadArchiveRequest} requestParameters Request parameters.
  7171. * @param {*} [options] Override http request option.
  7172. * @throws {RequiredError}
  7173. */
  7174. downloadArchive(requestParameters: AssetApiDownloadArchiveRequest, options?: AxiosRequestConfig): AxiosPromise<File> {
  7175. return localVarFp.downloadArchive(requestParameters.assetIdsDto, requestParameters.key, options).then((request) => request(axios, basePath));
  7176. },
  7177. /**
  7178. *
  7179. * @param {AssetApiDownloadFileRequest} requestParameters Request parameters.
  7180. * @param {*} [options] Override http request option.
  7181. * @throws {RequiredError}
  7182. */
  7183. downloadFile(requestParameters: AssetApiDownloadFileRequest, options?: AxiosRequestConfig): AxiosPromise<File> {
  7184. return localVarFp.downloadFile(requestParameters.id, requestParameters.key, options).then((request) => request(axios, basePath));
  7185. },
  7186. /**
  7187. *
  7188. * @param {*} [options] Override http request option.
  7189. * @throws {RequiredError}
  7190. */
  7191. emptyTrash(options?: AxiosRequestConfig): AxiosPromise<void> {
  7192. return localVarFp.emptyTrash(options).then((request) => request(axios, basePath));
  7193. },
  7194. /**
  7195. * Get all AssetEntity belong to the user
  7196. * @param {AssetApiGetAllAssetsRequest} requestParameters Request parameters.
  7197. * @param {*} [options] Override http request option.
  7198. * @throws {RequiredError}
  7199. */
  7200. getAllAssets(requestParameters: AssetApiGetAllAssetsRequest = {}, options?: AxiosRequestConfig): AxiosPromise<Array<AssetResponseDto>> {
  7201. return localVarFp.getAllAssets(requestParameters.userId, requestParameters.isFavorite, requestParameters.isArchived, requestParameters.skip, requestParameters.updatedAfter, requestParameters.ifNoneMatch, options).then((request) => request(axios, basePath));
  7202. },
  7203. /**
  7204. * Get a single asset\'s information
  7205. * @param {AssetApiGetAssetByIdRequest} requestParameters Request parameters.
  7206. * @param {*} [options] Override http request option.
  7207. * @throws {RequiredError}
  7208. */
  7209. getAssetById(requestParameters: AssetApiGetAssetByIdRequest, options?: AxiosRequestConfig): AxiosPromise<AssetResponseDto> {
  7210. return localVarFp.getAssetById(requestParameters.id, requestParameters.key, options).then((request) => request(axios, basePath));
  7211. },
  7212. /**
  7213. *
  7214. * @param {*} [options] Override http request option.
  7215. * @throws {RequiredError}
  7216. */
  7217. getAssetSearchTerms(options?: AxiosRequestConfig): AxiosPromise<Array<string>> {
  7218. return localVarFp.getAssetSearchTerms(options).then((request) => request(axios, basePath));
  7219. },
  7220. /**
  7221. *
  7222. * @param {AssetApiGetAssetStatsRequest} requestParameters Request parameters.
  7223. * @param {*} [options] Override http request option.
  7224. * @throws {RequiredError}
  7225. */
  7226. getAssetStats(requestParameters: AssetApiGetAssetStatsRequest = {}, options?: AxiosRequestConfig): AxiosPromise<AssetStatsResponseDto> {
  7227. return localVarFp.getAssetStats(requestParameters.isArchived, requestParameters.isFavorite, requestParameters.isTrashed, options).then((request) => request(axios, basePath));
  7228. },
  7229. /**
  7230. *
  7231. * @param {AssetApiGetAssetThumbnailRequest} requestParameters Request parameters.
  7232. * @param {*} [options] Override http request option.
  7233. * @throws {RequiredError}
  7234. */
  7235. getAssetThumbnail(requestParameters: AssetApiGetAssetThumbnailRequest, options?: AxiosRequestConfig): AxiosPromise<File> {
  7236. return localVarFp.getAssetThumbnail(requestParameters.id, requestParameters.format, requestParameters.key, options).then((request) => request(axios, basePath));
  7237. },
  7238. /**
  7239. *
  7240. * @param {AssetApiGetByTimeBucketRequest} requestParameters Request parameters.
  7241. * @param {*} [options] Override http request option.
  7242. * @throws {RequiredError}
  7243. */
  7244. getByTimeBucket(requestParameters: AssetApiGetByTimeBucketRequest, options?: AxiosRequestConfig): AxiosPromise<Array<AssetResponseDto>> {
  7245. return localVarFp.getByTimeBucket(requestParameters.size, requestParameters.timeBucket, requestParameters.userId, requestParameters.albumId, requestParameters.personId, requestParameters.isArchived, requestParameters.isFavorite, requestParameters.isTrashed, requestParameters.key, options).then((request) => request(axios, basePath));
  7246. },
  7247. /**
  7248. *
  7249. * @param {*} [options] Override http request option.
  7250. * @throws {RequiredError}
  7251. */
  7252. getCuratedLocations(options?: AxiosRequestConfig): AxiosPromise<Array<CuratedLocationsResponseDto>> {
  7253. return localVarFp.getCuratedLocations(options).then((request) => request(axios, basePath));
  7254. },
  7255. /**
  7256. *
  7257. * @param {*} [options] Override http request option.
  7258. * @throws {RequiredError}
  7259. */
  7260. getCuratedObjects(options?: AxiosRequestConfig): AxiosPromise<Array<CuratedObjectsResponseDto>> {
  7261. return localVarFp.getCuratedObjects(options).then((request) => request(axios, basePath));
  7262. },
  7263. /**
  7264. *
  7265. * @param {AssetApiGetDownloadInfoRequest} requestParameters Request parameters.
  7266. * @param {*} [options] Override http request option.
  7267. * @throws {RequiredError}
  7268. */
  7269. getDownloadInfo(requestParameters: AssetApiGetDownloadInfoRequest, options?: AxiosRequestConfig): AxiosPromise<DownloadResponseDto> {
  7270. return localVarFp.getDownloadInfo(requestParameters.downloadInfoDto, requestParameters.key, options).then((request) => request(axios, basePath));
  7271. },
  7272. /**
  7273. *
  7274. * @param {AssetApiGetMapMarkersRequest} requestParameters Request parameters.
  7275. * @param {*} [options] Override http request option.
  7276. * @throws {RequiredError}
  7277. */
  7278. getMapMarkers(requestParameters: AssetApiGetMapMarkersRequest = {}, options?: AxiosRequestConfig): AxiosPromise<Array<MapMarkerResponseDto>> {
  7279. return localVarFp.getMapMarkers(requestParameters.isArchived, requestParameters.isFavorite, requestParameters.fileCreatedAfter, requestParameters.fileCreatedBefore, options).then((request) => request(axios, basePath));
  7280. },
  7281. /**
  7282. *
  7283. * @param {AssetApiGetMemoryLaneRequest} requestParameters Request parameters.
  7284. * @param {*} [options] Override http request option.
  7285. * @throws {RequiredError}
  7286. */
  7287. getMemoryLane(requestParameters: AssetApiGetMemoryLaneRequest, options?: AxiosRequestConfig): AxiosPromise<Array<MemoryLaneResponseDto>> {
  7288. return localVarFp.getMemoryLane(requestParameters.day, requestParameters.month, options).then((request) => request(axios, basePath));
  7289. },
  7290. /**
  7291. *
  7292. * @param {AssetApiGetRandomRequest} requestParameters Request parameters.
  7293. * @param {*} [options] Override http request option.
  7294. * @throws {RequiredError}
  7295. */
  7296. getRandom(requestParameters: AssetApiGetRandomRequest = {}, options?: AxiosRequestConfig): AxiosPromise<Array<AssetResponseDto>> {
  7297. return localVarFp.getRandom(requestParameters.count, options).then((request) => request(axios, basePath));
  7298. },
  7299. /**
  7300. *
  7301. * @param {AssetApiGetTimeBucketsRequest} requestParameters Request parameters.
  7302. * @param {*} [options] Override http request option.
  7303. * @throws {RequiredError}
  7304. */
  7305. getTimeBuckets(requestParameters: AssetApiGetTimeBucketsRequest, options?: AxiosRequestConfig): AxiosPromise<Array<TimeBucketResponseDto>> {
  7306. return localVarFp.getTimeBuckets(requestParameters.size, requestParameters.userId, requestParameters.albumId, requestParameters.personId, requestParameters.isArchived, requestParameters.isFavorite, requestParameters.isTrashed, requestParameters.key, options).then((request) => request(axios, basePath));
  7307. },
  7308. /**
  7309. * Get all asset of a device that are in the database, ID only.
  7310. * @param {AssetApiGetUserAssetsByDeviceIdRequest} requestParameters Request parameters.
  7311. * @param {*} [options] Override http request option.
  7312. * @throws {RequiredError}
  7313. */
  7314. getUserAssetsByDeviceId(requestParameters: AssetApiGetUserAssetsByDeviceIdRequest, options?: AxiosRequestConfig): AxiosPromise<Array<string>> {
  7315. return localVarFp.getUserAssetsByDeviceId(requestParameters.deviceId, options).then((request) => request(axios, basePath));
  7316. },
  7317. /**
  7318. *
  7319. * @param {AssetApiImportFileRequest} requestParameters Request parameters.
  7320. * @param {*} [options] Override http request option.
  7321. * @throws {RequiredError}
  7322. */
  7323. importFile(requestParameters: AssetApiImportFileRequest, options?: AxiosRequestConfig): AxiosPromise<AssetFileUploadResponseDto> {
  7324. return localVarFp.importFile(requestParameters.importAssetDto, options).then((request) => request(axios, basePath));
  7325. },
  7326. /**
  7327. *
  7328. * @param {AssetApiRestoreAssetsRequest} requestParameters Request parameters.
  7329. * @param {*} [options] Override http request option.
  7330. * @throws {RequiredError}
  7331. */
  7332. restoreAssets(requestParameters: AssetApiRestoreAssetsRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  7333. return localVarFp.restoreAssets(requestParameters.bulkIdsDto, options).then((request) => request(axios, basePath));
  7334. },
  7335. /**
  7336. *
  7337. * @param {*} [options] Override http request option.
  7338. * @throws {RequiredError}
  7339. */
  7340. restoreTrash(options?: AxiosRequestConfig): AxiosPromise<void> {
  7341. return localVarFp.restoreTrash(options).then((request) => request(axios, basePath));
  7342. },
  7343. /**
  7344. *
  7345. * @param {AssetApiRunAssetJobsRequest} requestParameters Request parameters.
  7346. * @param {*} [options] Override http request option.
  7347. * @throws {RequiredError}
  7348. */
  7349. runAssetJobs(requestParameters: AssetApiRunAssetJobsRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  7350. return localVarFp.runAssetJobs(requestParameters.assetJobsDto, options).then((request) => request(axios, basePath));
  7351. },
  7352. /**
  7353. *
  7354. * @param {AssetApiSearchAssetRequest} requestParameters Request parameters.
  7355. * @param {*} [options] Override http request option.
  7356. * @throws {RequiredError}
  7357. */
  7358. searchAsset(requestParameters: AssetApiSearchAssetRequest, options?: AxiosRequestConfig): AxiosPromise<Array<AssetResponseDto>> {
  7359. return localVarFp.searchAsset(requestParameters.searchAssetDto, options).then((request) => request(axios, basePath));
  7360. },
  7361. /**
  7362. *
  7363. * @param {AssetApiServeFileRequest} requestParameters Request parameters.
  7364. * @param {*} [options] Override http request option.
  7365. * @throws {RequiredError}
  7366. */
  7367. serveFile(requestParameters: AssetApiServeFileRequest, options?: AxiosRequestConfig): AxiosPromise<File> {
  7368. return localVarFp.serveFile(requestParameters.id, requestParameters.isThumb, requestParameters.isWeb, requestParameters.key, options).then((request) => request(axios, basePath));
  7369. },
  7370. /**
  7371. *
  7372. * @param {AssetApiUpdateAssetRequest} requestParameters Request parameters.
  7373. * @param {*} [options] Override http request option.
  7374. * @throws {RequiredError}
  7375. */
  7376. updateAsset(requestParameters: AssetApiUpdateAssetRequest, options?: AxiosRequestConfig): AxiosPromise<AssetResponseDto> {
  7377. return localVarFp.updateAsset(requestParameters.id, requestParameters.updateAssetDto, options).then((request) => request(axios, basePath));
  7378. },
  7379. /**
  7380. *
  7381. * @param {AssetApiUpdateAssetsRequest} requestParameters Request parameters.
  7382. * @param {*} [options] Override http request option.
  7383. * @throws {RequiredError}
  7384. */
  7385. updateAssets(requestParameters: AssetApiUpdateAssetsRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  7386. return localVarFp.updateAssets(requestParameters.assetBulkUpdateDto, options).then((request) => request(axios, basePath));
  7387. },
  7388. /**
  7389. *
  7390. * @param {AssetApiUpdateStackParentRequest} requestParameters Request parameters.
  7391. * @param {*} [options] Override http request option.
  7392. * @throws {RequiredError}
  7393. */
  7394. updateStackParent(requestParameters: AssetApiUpdateStackParentRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  7395. return localVarFp.updateStackParent(requestParameters.updateStackParentDto, options).then((request) => request(axios, basePath));
  7396. },
  7397. /**
  7398. *
  7399. * @param {AssetApiUploadFileRequest} requestParameters Request parameters.
  7400. * @param {*} [options] Override http request option.
  7401. * @throws {RequiredError}
  7402. */
  7403. uploadFile(requestParameters: AssetApiUploadFileRequest, options?: AxiosRequestConfig): AxiosPromise<AssetFileUploadResponseDto> {
  7404. return localVarFp.uploadFile(requestParameters.assetData, requestParameters.deviceAssetId, requestParameters.deviceId, requestParameters.fileCreatedAt, requestParameters.fileModifiedAt, requestParameters.isFavorite, requestParameters.key, requestParameters.duration, requestParameters.isArchived, requestParameters.isExternal, requestParameters.isOffline, requestParameters.isReadOnly, requestParameters.isVisible, requestParameters.libraryId, requestParameters.livePhotoData, requestParameters.sidecarData, options).then((request) => request(axios, basePath));
  7405. },
  7406. };
  7407. };
  7408. /**
  7409. * Request parameters for bulkUploadCheck operation in AssetApi.
  7410. * @export
  7411. * @interface AssetApiBulkUploadCheckRequest
  7412. */
  7413. export interface AssetApiBulkUploadCheckRequest {
  7414. /**
  7415. *
  7416. * @type {AssetBulkUploadCheckDto}
  7417. * @memberof AssetApiBulkUploadCheck
  7418. */
  7419. readonly assetBulkUploadCheckDto: AssetBulkUploadCheckDto
  7420. }
  7421. /**
  7422. * Request parameters for checkDuplicateAsset operation in AssetApi.
  7423. * @export
  7424. * @interface AssetApiCheckDuplicateAssetRequest
  7425. */
  7426. export interface AssetApiCheckDuplicateAssetRequest {
  7427. /**
  7428. *
  7429. * @type {CheckDuplicateAssetDto}
  7430. * @memberof AssetApiCheckDuplicateAsset
  7431. */
  7432. readonly checkDuplicateAssetDto: CheckDuplicateAssetDto
  7433. /**
  7434. *
  7435. * @type {string}
  7436. * @memberof AssetApiCheckDuplicateAsset
  7437. */
  7438. readonly key?: string
  7439. }
  7440. /**
  7441. * Request parameters for checkExistingAssets operation in AssetApi.
  7442. * @export
  7443. * @interface AssetApiCheckExistingAssetsRequest
  7444. */
  7445. export interface AssetApiCheckExistingAssetsRequest {
  7446. /**
  7447. *
  7448. * @type {CheckExistingAssetsDto}
  7449. * @memberof AssetApiCheckExistingAssets
  7450. */
  7451. readonly checkExistingAssetsDto: CheckExistingAssetsDto
  7452. }
  7453. /**
  7454. * Request parameters for deleteAssets operation in AssetApi.
  7455. * @export
  7456. * @interface AssetApiDeleteAssetsRequest
  7457. */
  7458. export interface AssetApiDeleteAssetsRequest {
  7459. /**
  7460. *
  7461. * @type {AssetBulkDeleteDto}
  7462. * @memberof AssetApiDeleteAssets
  7463. */
  7464. readonly assetBulkDeleteDto: AssetBulkDeleteDto
  7465. }
  7466. /**
  7467. * Request parameters for downloadArchive operation in AssetApi.
  7468. * @export
  7469. * @interface AssetApiDownloadArchiveRequest
  7470. */
  7471. export interface AssetApiDownloadArchiveRequest {
  7472. /**
  7473. *
  7474. * @type {AssetIdsDto}
  7475. * @memberof AssetApiDownloadArchive
  7476. */
  7477. readonly assetIdsDto: AssetIdsDto
  7478. /**
  7479. *
  7480. * @type {string}
  7481. * @memberof AssetApiDownloadArchive
  7482. */
  7483. readonly key?: string
  7484. }
  7485. /**
  7486. * Request parameters for downloadFile operation in AssetApi.
  7487. * @export
  7488. * @interface AssetApiDownloadFileRequest
  7489. */
  7490. export interface AssetApiDownloadFileRequest {
  7491. /**
  7492. *
  7493. * @type {string}
  7494. * @memberof AssetApiDownloadFile
  7495. */
  7496. readonly id: string
  7497. /**
  7498. *
  7499. * @type {string}
  7500. * @memberof AssetApiDownloadFile
  7501. */
  7502. readonly key?: string
  7503. }
  7504. /**
  7505. * Request parameters for getAllAssets operation in AssetApi.
  7506. * @export
  7507. * @interface AssetApiGetAllAssetsRequest
  7508. */
  7509. export interface AssetApiGetAllAssetsRequest {
  7510. /**
  7511. *
  7512. * @type {string}
  7513. * @memberof AssetApiGetAllAssets
  7514. */
  7515. readonly userId?: string
  7516. /**
  7517. *
  7518. * @type {boolean}
  7519. * @memberof AssetApiGetAllAssets
  7520. */
  7521. readonly isFavorite?: boolean
  7522. /**
  7523. *
  7524. * @type {boolean}
  7525. * @memberof AssetApiGetAllAssets
  7526. */
  7527. readonly isArchived?: boolean
  7528. /**
  7529. *
  7530. * @type {number}
  7531. * @memberof AssetApiGetAllAssets
  7532. */
  7533. readonly skip?: number
  7534. /**
  7535. *
  7536. * @type {string}
  7537. * @memberof AssetApiGetAllAssets
  7538. */
  7539. readonly updatedAfter?: string
  7540. /**
  7541. * ETag of data already cached on the client
  7542. * @type {string}
  7543. * @memberof AssetApiGetAllAssets
  7544. */
  7545. readonly ifNoneMatch?: string
  7546. }
  7547. /**
  7548. * Request parameters for getAssetById operation in AssetApi.
  7549. * @export
  7550. * @interface AssetApiGetAssetByIdRequest
  7551. */
  7552. export interface AssetApiGetAssetByIdRequest {
  7553. /**
  7554. *
  7555. * @type {string}
  7556. * @memberof AssetApiGetAssetById
  7557. */
  7558. readonly id: string
  7559. /**
  7560. *
  7561. * @type {string}
  7562. * @memberof AssetApiGetAssetById
  7563. */
  7564. readonly key?: string
  7565. }
  7566. /**
  7567. * Request parameters for getAssetStats operation in AssetApi.
  7568. * @export
  7569. * @interface AssetApiGetAssetStatsRequest
  7570. */
  7571. export interface AssetApiGetAssetStatsRequest {
  7572. /**
  7573. *
  7574. * @type {boolean}
  7575. * @memberof AssetApiGetAssetStats
  7576. */
  7577. readonly isArchived?: boolean
  7578. /**
  7579. *
  7580. * @type {boolean}
  7581. * @memberof AssetApiGetAssetStats
  7582. */
  7583. readonly isFavorite?: boolean
  7584. /**
  7585. *
  7586. * @type {boolean}
  7587. * @memberof AssetApiGetAssetStats
  7588. */
  7589. readonly isTrashed?: boolean
  7590. }
  7591. /**
  7592. * Request parameters for getAssetThumbnail operation in AssetApi.
  7593. * @export
  7594. * @interface AssetApiGetAssetThumbnailRequest
  7595. */
  7596. export interface AssetApiGetAssetThumbnailRequest {
  7597. /**
  7598. *
  7599. * @type {string}
  7600. * @memberof AssetApiGetAssetThumbnail
  7601. */
  7602. readonly id: string
  7603. /**
  7604. *
  7605. * @type {ThumbnailFormat}
  7606. * @memberof AssetApiGetAssetThumbnail
  7607. */
  7608. readonly format?: ThumbnailFormat
  7609. /**
  7610. *
  7611. * @type {string}
  7612. * @memberof AssetApiGetAssetThumbnail
  7613. */
  7614. readonly key?: string
  7615. }
  7616. /**
  7617. * Request parameters for getByTimeBucket operation in AssetApi.
  7618. * @export
  7619. * @interface AssetApiGetByTimeBucketRequest
  7620. */
  7621. export interface AssetApiGetByTimeBucketRequest {
  7622. /**
  7623. *
  7624. * @type {TimeBucketSize}
  7625. * @memberof AssetApiGetByTimeBucket
  7626. */
  7627. readonly size: TimeBucketSize
  7628. /**
  7629. *
  7630. * @type {string}
  7631. * @memberof AssetApiGetByTimeBucket
  7632. */
  7633. readonly timeBucket: string
  7634. /**
  7635. *
  7636. * @type {string}
  7637. * @memberof AssetApiGetByTimeBucket
  7638. */
  7639. readonly userId?: string
  7640. /**
  7641. *
  7642. * @type {string}
  7643. * @memberof AssetApiGetByTimeBucket
  7644. */
  7645. readonly albumId?: string
  7646. /**
  7647. *
  7648. * @type {string}
  7649. * @memberof AssetApiGetByTimeBucket
  7650. */
  7651. readonly personId?: string
  7652. /**
  7653. *
  7654. * @type {boolean}
  7655. * @memberof AssetApiGetByTimeBucket
  7656. */
  7657. readonly isArchived?: boolean
  7658. /**
  7659. *
  7660. * @type {boolean}
  7661. * @memberof AssetApiGetByTimeBucket
  7662. */
  7663. readonly isFavorite?: boolean
  7664. /**
  7665. *
  7666. * @type {boolean}
  7667. * @memberof AssetApiGetByTimeBucket
  7668. */
  7669. readonly isTrashed?: boolean
  7670. /**
  7671. *
  7672. * @type {string}
  7673. * @memberof AssetApiGetByTimeBucket
  7674. */
  7675. readonly key?: string
  7676. }
  7677. /**
  7678. * Request parameters for getDownloadInfo operation in AssetApi.
  7679. * @export
  7680. * @interface AssetApiGetDownloadInfoRequest
  7681. */
  7682. export interface AssetApiGetDownloadInfoRequest {
  7683. /**
  7684. *
  7685. * @type {DownloadInfoDto}
  7686. * @memberof AssetApiGetDownloadInfo
  7687. */
  7688. readonly downloadInfoDto: DownloadInfoDto
  7689. /**
  7690. *
  7691. * @type {string}
  7692. * @memberof AssetApiGetDownloadInfo
  7693. */
  7694. readonly key?: string
  7695. }
  7696. /**
  7697. * Request parameters for getMapMarkers operation in AssetApi.
  7698. * @export
  7699. * @interface AssetApiGetMapMarkersRequest
  7700. */
  7701. export interface AssetApiGetMapMarkersRequest {
  7702. /**
  7703. *
  7704. * @type {boolean}
  7705. * @memberof AssetApiGetMapMarkers
  7706. */
  7707. readonly isArchived?: boolean
  7708. /**
  7709. *
  7710. * @type {boolean}
  7711. * @memberof AssetApiGetMapMarkers
  7712. */
  7713. readonly isFavorite?: boolean
  7714. /**
  7715. *
  7716. * @type {string}
  7717. * @memberof AssetApiGetMapMarkers
  7718. */
  7719. readonly fileCreatedAfter?: string
  7720. /**
  7721. *
  7722. * @type {string}
  7723. * @memberof AssetApiGetMapMarkers
  7724. */
  7725. readonly fileCreatedBefore?: string
  7726. }
  7727. /**
  7728. * Request parameters for getMemoryLane operation in AssetApi.
  7729. * @export
  7730. * @interface AssetApiGetMemoryLaneRequest
  7731. */
  7732. export interface AssetApiGetMemoryLaneRequest {
  7733. /**
  7734. *
  7735. * @type {number}
  7736. * @memberof AssetApiGetMemoryLane
  7737. */
  7738. readonly day: number
  7739. /**
  7740. *
  7741. * @type {number}
  7742. * @memberof AssetApiGetMemoryLane
  7743. */
  7744. readonly month: number
  7745. }
  7746. /**
  7747. * Request parameters for getRandom operation in AssetApi.
  7748. * @export
  7749. * @interface AssetApiGetRandomRequest
  7750. */
  7751. export interface AssetApiGetRandomRequest {
  7752. /**
  7753. *
  7754. * @type {number}
  7755. * @memberof AssetApiGetRandom
  7756. */
  7757. readonly count?: number
  7758. }
  7759. /**
  7760. * Request parameters for getTimeBuckets operation in AssetApi.
  7761. * @export
  7762. * @interface AssetApiGetTimeBucketsRequest
  7763. */
  7764. export interface AssetApiGetTimeBucketsRequest {
  7765. /**
  7766. *
  7767. * @type {TimeBucketSize}
  7768. * @memberof AssetApiGetTimeBuckets
  7769. */
  7770. readonly size: TimeBucketSize
  7771. /**
  7772. *
  7773. * @type {string}
  7774. * @memberof AssetApiGetTimeBuckets
  7775. */
  7776. readonly userId?: string
  7777. /**
  7778. *
  7779. * @type {string}
  7780. * @memberof AssetApiGetTimeBuckets
  7781. */
  7782. readonly albumId?: string
  7783. /**
  7784. *
  7785. * @type {string}
  7786. * @memberof AssetApiGetTimeBuckets
  7787. */
  7788. readonly personId?: string
  7789. /**
  7790. *
  7791. * @type {boolean}
  7792. * @memberof AssetApiGetTimeBuckets
  7793. */
  7794. readonly isArchived?: boolean
  7795. /**
  7796. *
  7797. * @type {boolean}
  7798. * @memberof AssetApiGetTimeBuckets
  7799. */
  7800. readonly isFavorite?: boolean
  7801. /**
  7802. *
  7803. * @type {boolean}
  7804. * @memberof AssetApiGetTimeBuckets
  7805. */
  7806. readonly isTrashed?: boolean
  7807. /**
  7808. *
  7809. * @type {string}
  7810. * @memberof AssetApiGetTimeBuckets
  7811. */
  7812. readonly key?: string
  7813. }
  7814. /**
  7815. * Request parameters for getUserAssetsByDeviceId operation in AssetApi.
  7816. * @export
  7817. * @interface AssetApiGetUserAssetsByDeviceIdRequest
  7818. */
  7819. export interface AssetApiGetUserAssetsByDeviceIdRequest {
  7820. /**
  7821. *
  7822. * @type {string}
  7823. * @memberof AssetApiGetUserAssetsByDeviceId
  7824. */
  7825. readonly deviceId: string
  7826. }
  7827. /**
  7828. * Request parameters for importFile operation in AssetApi.
  7829. * @export
  7830. * @interface AssetApiImportFileRequest
  7831. */
  7832. export interface AssetApiImportFileRequest {
  7833. /**
  7834. *
  7835. * @type {ImportAssetDto}
  7836. * @memberof AssetApiImportFile
  7837. */
  7838. readonly importAssetDto: ImportAssetDto
  7839. }
  7840. /**
  7841. * Request parameters for restoreAssets operation in AssetApi.
  7842. * @export
  7843. * @interface AssetApiRestoreAssetsRequest
  7844. */
  7845. export interface AssetApiRestoreAssetsRequest {
  7846. /**
  7847. *
  7848. * @type {BulkIdsDto}
  7849. * @memberof AssetApiRestoreAssets
  7850. */
  7851. readonly bulkIdsDto: BulkIdsDto
  7852. }
  7853. /**
  7854. * Request parameters for runAssetJobs operation in AssetApi.
  7855. * @export
  7856. * @interface AssetApiRunAssetJobsRequest
  7857. */
  7858. export interface AssetApiRunAssetJobsRequest {
  7859. /**
  7860. *
  7861. * @type {AssetJobsDto}
  7862. * @memberof AssetApiRunAssetJobs
  7863. */
  7864. readonly assetJobsDto: AssetJobsDto
  7865. }
  7866. /**
  7867. * Request parameters for searchAsset operation in AssetApi.
  7868. * @export
  7869. * @interface AssetApiSearchAssetRequest
  7870. */
  7871. export interface AssetApiSearchAssetRequest {
  7872. /**
  7873. *
  7874. * @type {SearchAssetDto}
  7875. * @memberof AssetApiSearchAsset
  7876. */
  7877. readonly searchAssetDto: SearchAssetDto
  7878. }
  7879. /**
  7880. * Request parameters for serveFile operation in AssetApi.
  7881. * @export
  7882. * @interface AssetApiServeFileRequest
  7883. */
  7884. export interface AssetApiServeFileRequest {
  7885. /**
  7886. *
  7887. * @type {string}
  7888. * @memberof AssetApiServeFile
  7889. */
  7890. readonly id: string
  7891. /**
  7892. *
  7893. * @type {boolean}
  7894. * @memberof AssetApiServeFile
  7895. */
  7896. readonly isThumb?: boolean
  7897. /**
  7898. *
  7899. * @type {boolean}
  7900. * @memberof AssetApiServeFile
  7901. */
  7902. readonly isWeb?: boolean
  7903. /**
  7904. *
  7905. * @type {string}
  7906. * @memberof AssetApiServeFile
  7907. */
  7908. readonly key?: string
  7909. }
  7910. /**
  7911. * Request parameters for updateAsset operation in AssetApi.
  7912. * @export
  7913. * @interface AssetApiUpdateAssetRequest
  7914. */
  7915. export interface AssetApiUpdateAssetRequest {
  7916. /**
  7917. *
  7918. * @type {string}
  7919. * @memberof AssetApiUpdateAsset
  7920. */
  7921. readonly id: string
  7922. /**
  7923. *
  7924. * @type {UpdateAssetDto}
  7925. * @memberof AssetApiUpdateAsset
  7926. */
  7927. readonly updateAssetDto: UpdateAssetDto
  7928. }
  7929. /**
  7930. * Request parameters for updateAssets operation in AssetApi.
  7931. * @export
  7932. * @interface AssetApiUpdateAssetsRequest
  7933. */
  7934. export interface AssetApiUpdateAssetsRequest {
  7935. /**
  7936. *
  7937. * @type {AssetBulkUpdateDto}
  7938. * @memberof AssetApiUpdateAssets
  7939. */
  7940. readonly assetBulkUpdateDto: AssetBulkUpdateDto
  7941. }
  7942. /**
  7943. * Request parameters for updateStackParent operation in AssetApi.
  7944. * @export
  7945. * @interface AssetApiUpdateStackParentRequest
  7946. */
  7947. export interface AssetApiUpdateStackParentRequest {
  7948. /**
  7949. *
  7950. * @type {UpdateStackParentDto}
  7951. * @memberof AssetApiUpdateStackParent
  7952. */
  7953. readonly updateStackParentDto: UpdateStackParentDto
  7954. }
  7955. /**
  7956. * Request parameters for uploadFile operation in AssetApi.
  7957. * @export
  7958. * @interface AssetApiUploadFileRequest
  7959. */
  7960. export interface AssetApiUploadFileRequest {
  7961. /**
  7962. *
  7963. * @type {File}
  7964. * @memberof AssetApiUploadFile
  7965. */
  7966. readonly assetData: File
  7967. /**
  7968. *
  7969. * @type {string}
  7970. * @memberof AssetApiUploadFile
  7971. */
  7972. readonly deviceAssetId: string
  7973. /**
  7974. *
  7975. * @type {string}
  7976. * @memberof AssetApiUploadFile
  7977. */
  7978. readonly deviceId: string
  7979. /**
  7980. *
  7981. * @type {string}
  7982. * @memberof AssetApiUploadFile
  7983. */
  7984. readonly fileCreatedAt: string
  7985. /**
  7986. *
  7987. * @type {string}
  7988. * @memberof AssetApiUploadFile
  7989. */
  7990. readonly fileModifiedAt: string
  7991. /**
  7992. *
  7993. * @type {boolean}
  7994. * @memberof AssetApiUploadFile
  7995. */
  7996. readonly isFavorite: boolean
  7997. /**
  7998. *
  7999. * @type {string}
  8000. * @memberof AssetApiUploadFile
  8001. */
  8002. readonly key?: string
  8003. /**
  8004. *
  8005. * @type {string}
  8006. * @memberof AssetApiUploadFile
  8007. */
  8008. readonly duration?: string
  8009. /**
  8010. *
  8011. * @type {boolean}
  8012. * @memberof AssetApiUploadFile
  8013. */
  8014. readonly isArchived?: boolean
  8015. /**
  8016. *
  8017. * @type {boolean}
  8018. * @memberof AssetApiUploadFile
  8019. */
  8020. readonly isExternal?: boolean
  8021. /**
  8022. *
  8023. * @type {boolean}
  8024. * @memberof AssetApiUploadFile
  8025. */
  8026. readonly isOffline?: boolean
  8027. /**
  8028. *
  8029. * @type {boolean}
  8030. * @memberof AssetApiUploadFile
  8031. */
  8032. readonly isReadOnly?: boolean
  8033. /**
  8034. *
  8035. * @type {boolean}
  8036. * @memberof AssetApiUploadFile
  8037. */
  8038. readonly isVisible?: boolean
  8039. /**
  8040. *
  8041. * @type {string}
  8042. * @memberof AssetApiUploadFile
  8043. */
  8044. readonly libraryId?: string
  8045. /**
  8046. *
  8047. * @type {File}
  8048. * @memberof AssetApiUploadFile
  8049. */
  8050. readonly livePhotoData?: File
  8051. /**
  8052. *
  8053. * @type {File}
  8054. * @memberof AssetApiUploadFile
  8055. */
  8056. readonly sidecarData?: File
  8057. }
  8058. /**
  8059. * AssetApi - object-oriented interface
  8060. * @export
  8061. * @class AssetApi
  8062. * @extends {BaseAPI}
  8063. */
  8064. export class AssetApi extends BaseAPI {
  8065. /**
  8066. * Checks if assets exist by checksums
  8067. * @param {AssetApiBulkUploadCheckRequest} requestParameters Request parameters.
  8068. * @param {*} [options] Override http request option.
  8069. * @throws {RequiredError}
  8070. * @memberof AssetApi
  8071. */
  8072. public bulkUploadCheck(requestParameters: AssetApiBulkUploadCheckRequest, options?: AxiosRequestConfig) {
  8073. return AssetApiFp(this.configuration).bulkUploadCheck(requestParameters.assetBulkUploadCheckDto, options).then((request) => request(this.axios, this.basePath));
  8074. }
  8075. /**
  8076. * Check duplicated asset before uploading - for Web upload used
  8077. * @param {AssetApiCheckDuplicateAssetRequest} requestParameters Request parameters.
  8078. * @param {*} [options] Override http request option.
  8079. * @throws {RequiredError}
  8080. * @memberof AssetApi
  8081. */
  8082. public checkDuplicateAsset(requestParameters: AssetApiCheckDuplicateAssetRequest, options?: AxiosRequestConfig) {
  8083. return AssetApiFp(this.configuration).checkDuplicateAsset(requestParameters.checkDuplicateAssetDto, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  8084. }
  8085. /**
  8086. * Checks if multiple assets exist on the server and returns all existing - used by background backup
  8087. * @param {AssetApiCheckExistingAssetsRequest} requestParameters Request parameters.
  8088. * @param {*} [options] Override http request option.
  8089. * @throws {RequiredError}
  8090. * @memberof AssetApi
  8091. */
  8092. public checkExistingAssets(requestParameters: AssetApiCheckExistingAssetsRequest, options?: AxiosRequestConfig) {
  8093. return AssetApiFp(this.configuration).checkExistingAssets(requestParameters.checkExistingAssetsDto, options).then((request) => request(this.axios, this.basePath));
  8094. }
  8095. /**
  8096. *
  8097. * @param {AssetApiDeleteAssetsRequest} requestParameters Request parameters.
  8098. * @param {*} [options] Override http request option.
  8099. * @throws {RequiredError}
  8100. * @memberof AssetApi
  8101. */
  8102. public deleteAssets(requestParameters: AssetApiDeleteAssetsRequest, options?: AxiosRequestConfig) {
  8103. return AssetApiFp(this.configuration).deleteAssets(requestParameters.assetBulkDeleteDto, options).then((request) => request(this.axios, this.basePath));
  8104. }
  8105. /**
  8106. *
  8107. * @param {AssetApiDownloadArchiveRequest} requestParameters Request parameters.
  8108. * @param {*} [options] Override http request option.
  8109. * @throws {RequiredError}
  8110. * @memberof AssetApi
  8111. */
  8112. public downloadArchive(requestParameters: AssetApiDownloadArchiveRequest, options?: AxiosRequestConfig) {
  8113. return AssetApiFp(this.configuration).downloadArchive(requestParameters.assetIdsDto, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  8114. }
  8115. /**
  8116. *
  8117. * @param {AssetApiDownloadFileRequest} requestParameters Request parameters.
  8118. * @param {*} [options] Override http request option.
  8119. * @throws {RequiredError}
  8120. * @memberof AssetApi
  8121. */
  8122. public downloadFile(requestParameters: AssetApiDownloadFileRequest, options?: AxiosRequestConfig) {
  8123. return AssetApiFp(this.configuration).downloadFile(requestParameters.id, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  8124. }
  8125. /**
  8126. *
  8127. * @param {*} [options] Override http request option.
  8128. * @throws {RequiredError}
  8129. * @memberof AssetApi
  8130. */
  8131. public emptyTrash(options?: AxiosRequestConfig) {
  8132. return AssetApiFp(this.configuration).emptyTrash(options).then((request) => request(this.axios, this.basePath));
  8133. }
  8134. /**
  8135. * Get all AssetEntity belong to the user
  8136. * @param {AssetApiGetAllAssetsRequest} requestParameters Request parameters.
  8137. * @param {*} [options] Override http request option.
  8138. * @throws {RequiredError}
  8139. * @memberof AssetApi
  8140. */
  8141. public getAllAssets(requestParameters: AssetApiGetAllAssetsRequest = {}, options?: AxiosRequestConfig) {
  8142. return AssetApiFp(this.configuration).getAllAssets(requestParameters.userId, requestParameters.isFavorite, requestParameters.isArchived, requestParameters.skip, requestParameters.updatedAfter, requestParameters.ifNoneMatch, options).then((request) => request(this.axios, this.basePath));
  8143. }
  8144. /**
  8145. * Get a single asset\'s information
  8146. * @param {AssetApiGetAssetByIdRequest} requestParameters Request parameters.
  8147. * @param {*} [options] Override http request option.
  8148. * @throws {RequiredError}
  8149. * @memberof AssetApi
  8150. */
  8151. public getAssetById(requestParameters: AssetApiGetAssetByIdRequest, options?: AxiosRequestConfig) {
  8152. return AssetApiFp(this.configuration).getAssetById(requestParameters.id, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  8153. }
  8154. /**
  8155. *
  8156. * @param {*} [options] Override http request option.
  8157. * @throws {RequiredError}
  8158. * @memberof AssetApi
  8159. */
  8160. public getAssetSearchTerms(options?: AxiosRequestConfig) {
  8161. return AssetApiFp(this.configuration).getAssetSearchTerms(options).then((request) => request(this.axios, this.basePath));
  8162. }
  8163. /**
  8164. *
  8165. * @param {AssetApiGetAssetStatsRequest} requestParameters Request parameters.
  8166. * @param {*} [options] Override http request option.
  8167. * @throws {RequiredError}
  8168. * @memberof AssetApi
  8169. */
  8170. public getAssetStats(requestParameters: AssetApiGetAssetStatsRequest = {}, options?: AxiosRequestConfig) {
  8171. return AssetApiFp(this.configuration).getAssetStats(requestParameters.isArchived, requestParameters.isFavorite, requestParameters.isTrashed, options).then((request) => request(this.axios, this.basePath));
  8172. }
  8173. /**
  8174. *
  8175. * @param {AssetApiGetAssetThumbnailRequest} requestParameters Request parameters.
  8176. * @param {*} [options] Override http request option.
  8177. * @throws {RequiredError}
  8178. * @memberof AssetApi
  8179. */
  8180. public getAssetThumbnail(requestParameters: AssetApiGetAssetThumbnailRequest, options?: AxiosRequestConfig) {
  8181. return AssetApiFp(this.configuration).getAssetThumbnail(requestParameters.id, requestParameters.format, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  8182. }
  8183. /**
  8184. *
  8185. * @param {AssetApiGetByTimeBucketRequest} requestParameters Request parameters.
  8186. * @param {*} [options] Override http request option.
  8187. * @throws {RequiredError}
  8188. * @memberof AssetApi
  8189. */
  8190. public getByTimeBucket(requestParameters: AssetApiGetByTimeBucketRequest, options?: AxiosRequestConfig) {
  8191. return AssetApiFp(this.configuration).getByTimeBucket(requestParameters.size, requestParameters.timeBucket, requestParameters.userId, requestParameters.albumId, requestParameters.personId, requestParameters.isArchived, requestParameters.isFavorite, requestParameters.isTrashed, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  8192. }
  8193. /**
  8194. *
  8195. * @param {*} [options] Override http request option.
  8196. * @throws {RequiredError}
  8197. * @memberof AssetApi
  8198. */
  8199. public getCuratedLocations(options?: AxiosRequestConfig) {
  8200. return AssetApiFp(this.configuration).getCuratedLocations(options).then((request) => request(this.axios, this.basePath));
  8201. }
  8202. /**
  8203. *
  8204. * @param {*} [options] Override http request option.
  8205. * @throws {RequiredError}
  8206. * @memberof AssetApi
  8207. */
  8208. public getCuratedObjects(options?: AxiosRequestConfig) {
  8209. return AssetApiFp(this.configuration).getCuratedObjects(options).then((request) => request(this.axios, this.basePath));
  8210. }
  8211. /**
  8212. *
  8213. * @param {AssetApiGetDownloadInfoRequest} requestParameters Request parameters.
  8214. * @param {*} [options] Override http request option.
  8215. * @throws {RequiredError}
  8216. * @memberof AssetApi
  8217. */
  8218. public getDownloadInfo(requestParameters: AssetApiGetDownloadInfoRequest, options?: AxiosRequestConfig) {
  8219. return AssetApiFp(this.configuration).getDownloadInfo(requestParameters.downloadInfoDto, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  8220. }
  8221. /**
  8222. *
  8223. * @param {AssetApiGetMapMarkersRequest} requestParameters Request parameters.
  8224. * @param {*} [options] Override http request option.
  8225. * @throws {RequiredError}
  8226. * @memberof AssetApi
  8227. */
  8228. public getMapMarkers(requestParameters: AssetApiGetMapMarkersRequest = {}, options?: AxiosRequestConfig) {
  8229. return AssetApiFp(this.configuration).getMapMarkers(requestParameters.isArchived, requestParameters.isFavorite, requestParameters.fileCreatedAfter, requestParameters.fileCreatedBefore, options).then((request) => request(this.axios, this.basePath));
  8230. }
  8231. /**
  8232. *
  8233. * @param {AssetApiGetMemoryLaneRequest} requestParameters Request parameters.
  8234. * @param {*} [options] Override http request option.
  8235. * @throws {RequiredError}
  8236. * @memberof AssetApi
  8237. */
  8238. public getMemoryLane(requestParameters: AssetApiGetMemoryLaneRequest, options?: AxiosRequestConfig) {
  8239. return AssetApiFp(this.configuration).getMemoryLane(requestParameters.day, requestParameters.month, options).then((request) => request(this.axios, this.basePath));
  8240. }
  8241. /**
  8242. *
  8243. * @param {AssetApiGetRandomRequest} requestParameters Request parameters.
  8244. * @param {*} [options] Override http request option.
  8245. * @throws {RequiredError}
  8246. * @memberof AssetApi
  8247. */
  8248. public getRandom(requestParameters: AssetApiGetRandomRequest = {}, options?: AxiosRequestConfig) {
  8249. return AssetApiFp(this.configuration).getRandom(requestParameters.count, options).then((request) => request(this.axios, this.basePath));
  8250. }
  8251. /**
  8252. *
  8253. * @param {AssetApiGetTimeBucketsRequest} requestParameters Request parameters.
  8254. * @param {*} [options] Override http request option.
  8255. * @throws {RequiredError}
  8256. * @memberof AssetApi
  8257. */
  8258. public getTimeBuckets(requestParameters: AssetApiGetTimeBucketsRequest, options?: AxiosRequestConfig) {
  8259. return AssetApiFp(this.configuration).getTimeBuckets(requestParameters.size, requestParameters.userId, requestParameters.albumId, requestParameters.personId, requestParameters.isArchived, requestParameters.isFavorite, requestParameters.isTrashed, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  8260. }
  8261. /**
  8262. * Get all asset of a device that are in the database, ID only.
  8263. * @param {AssetApiGetUserAssetsByDeviceIdRequest} requestParameters Request parameters.
  8264. * @param {*} [options] Override http request option.
  8265. * @throws {RequiredError}
  8266. * @memberof AssetApi
  8267. */
  8268. public getUserAssetsByDeviceId(requestParameters: AssetApiGetUserAssetsByDeviceIdRequest, options?: AxiosRequestConfig) {
  8269. return AssetApiFp(this.configuration).getUserAssetsByDeviceId(requestParameters.deviceId, options).then((request) => request(this.axios, this.basePath));
  8270. }
  8271. /**
  8272. *
  8273. * @param {AssetApiImportFileRequest} requestParameters Request parameters.
  8274. * @param {*} [options] Override http request option.
  8275. * @throws {RequiredError}
  8276. * @memberof AssetApi
  8277. */
  8278. public importFile(requestParameters: AssetApiImportFileRequest, options?: AxiosRequestConfig) {
  8279. return AssetApiFp(this.configuration).importFile(requestParameters.importAssetDto, options).then((request) => request(this.axios, this.basePath));
  8280. }
  8281. /**
  8282. *
  8283. * @param {AssetApiRestoreAssetsRequest} requestParameters Request parameters.
  8284. * @param {*} [options] Override http request option.
  8285. * @throws {RequiredError}
  8286. * @memberof AssetApi
  8287. */
  8288. public restoreAssets(requestParameters: AssetApiRestoreAssetsRequest, options?: AxiosRequestConfig) {
  8289. return AssetApiFp(this.configuration).restoreAssets(requestParameters.bulkIdsDto, options).then((request) => request(this.axios, this.basePath));
  8290. }
  8291. /**
  8292. *
  8293. * @param {*} [options] Override http request option.
  8294. * @throws {RequiredError}
  8295. * @memberof AssetApi
  8296. */
  8297. public restoreTrash(options?: AxiosRequestConfig) {
  8298. return AssetApiFp(this.configuration).restoreTrash(options).then((request) => request(this.axios, this.basePath));
  8299. }
  8300. /**
  8301. *
  8302. * @param {AssetApiRunAssetJobsRequest} requestParameters Request parameters.
  8303. * @param {*} [options] Override http request option.
  8304. * @throws {RequiredError}
  8305. * @memberof AssetApi
  8306. */
  8307. public runAssetJobs(requestParameters: AssetApiRunAssetJobsRequest, options?: AxiosRequestConfig) {
  8308. return AssetApiFp(this.configuration).runAssetJobs(requestParameters.assetJobsDto, options).then((request) => request(this.axios, this.basePath));
  8309. }
  8310. /**
  8311. *
  8312. * @param {AssetApiSearchAssetRequest} requestParameters Request parameters.
  8313. * @param {*} [options] Override http request option.
  8314. * @throws {RequiredError}
  8315. * @memberof AssetApi
  8316. */
  8317. public searchAsset(requestParameters: AssetApiSearchAssetRequest, options?: AxiosRequestConfig) {
  8318. return AssetApiFp(this.configuration).searchAsset(requestParameters.searchAssetDto, options).then((request) => request(this.axios, this.basePath));
  8319. }
  8320. /**
  8321. *
  8322. * @param {AssetApiServeFileRequest} requestParameters Request parameters.
  8323. * @param {*} [options] Override http request option.
  8324. * @throws {RequiredError}
  8325. * @memberof AssetApi
  8326. */
  8327. public serveFile(requestParameters: AssetApiServeFileRequest, options?: AxiosRequestConfig) {
  8328. return AssetApiFp(this.configuration).serveFile(requestParameters.id, requestParameters.isThumb, requestParameters.isWeb, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  8329. }
  8330. /**
  8331. *
  8332. * @param {AssetApiUpdateAssetRequest} requestParameters Request parameters.
  8333. * @param {*} [options] Override http request option.
  8334. * @throws {RequiredError}
  8335. * @memberof AssetApi
  8336. */
  8337. public updateAsset(requestParameters: AssetApiUpdateAssetRequest, options?: AxiosRequestConfig) {
  8338. return AssetApiFp(this.configuration).updateAsset(requestParameters.id, requestParameters.updateAssetDto, options).then((request) => request(this.axios, this.basePath));
  8339. }
  8340. /**
  8341. *
  8342. * @param {AssetApiUpdateAssetsRequest} requestParameters Request parameters.
  8343. * @param {*} [options] Override http request option.
  8344. * @throws {RequiredError}
  8345. * @memberof AssetApi
  8346. */
  8347. public updateAssets(requestParameters: AssetApiUpdateAssetsRequest, options?: AxiosRequestConfig) {
  8348. return AssetApiFp(this.configuration).updateAssets(requestParameters.assetBulkUpdateDto, options).then((request) => request(this.axios, this.basePath));
  8349. }
  8350. /**
  8351. *
  8352. * @param {AssetApiUpdateStackParentRequest} requestParameters Request parameters.
  8353. * @param {*} [options] Override http request option.
  8354. * @throws {RequiredError}
  8355. * @memberof AssetApi
  8356. */
  8357. public updateStackParent(requestParameters: AssetApiUpdateStackParentRequest, options?: AxiosRequestConfig) {
  8358. return AssetApiFp(this.configuration).updateStackParent(requestParameters.updateStackParentDto, options).then((request) => request(this.axios, this.basePath));
  8359. }
  8360. /**
  8361. *
  8362. * @param {AssetApiUploadFileRequest} requestParameters Request parameters.
  8363. * @param {*} [options] Override http request option.
  8364. * @throws {RequiredError}
  8365. * @memberof AssetApi
  8366. */
  8367. public uploadFile(requestParameters: AssetApiUploadFileRequest, options?: AxiosRequestConfig) {
  8368. return AssetApiFp(this.configuration).uploadFile(requestParameters.assetData, requestParameters.deviceAssetId, requestParameters.deviceId, requestParameters.fileCreatedAt, requestParameters.fileModifiedAt, requestParameters.isFavorite, requestParameters.key, requestParameters.duration, requestParameters.isArchived, requestParameters.isExternal, requestParameters.isOffline, requestParameters.isReadOnly, requestParameters.isVisible, requestParameters.libraryId, requestParameters.livePhotoData, requestParameters.sidecarData, options).then((request) => request(this.axios, this.basePath));
  8369. }
  8370. }
  8371. /**
  8372. * AuditApi - axios parameter creator
  8373. * @export
  8374. */
  8375. export const AuditApiAxiosParamCreator = function (configuration?: Configuration) {
  8376. return {
  8377. /**
  8378. *
  8379. * @param {FileReportFixDto} fileReportFixDto
  8380. * @param {*} [options] Override http request option.
  8381. * @throws {RequiredError}
  8382. */
  8383. fixAuditFiles: async (fileReportFixDto: FileReportFixDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  8384. // verify required parameter 'fileReportFixDto' is not null or undefined
  8385. assertParamExists('fixAuditFiles', 'fileReportFixDto', fileReportFixDto)
  8386. const localVarPath = `/audit/file-report/fix`;
  8387. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  8388. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  8389. let baseOptions;
  8390. if (configuration) {
  8391. baseOptions = configuration.baseOptions;
  8392. }
  8393. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  8394. const localVarHeaderParameter = {} as any;
  8395. const localVarQueryParameter = {} as any;
  8396. // authentication cookie required
  8397. // authentication api_key required
  8398. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  8399. // authentication bearer required
  8400. // http bearer authentication required
  8401. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  8402. localVarHeaderParameter['Content-Type'] = 'application/json';
  8403. setSearchParams(localVarUrlObj, localVarQueryParameter);
  8404. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  8405. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  8406. localVarRequestOptions.data = serializeDataIfNeeded(fileReportFixDto, localVarRequestOptions, configuration)
  8407. return {
  8408. url: toPathString(localVarUrlObj),
  8409. options: localVarRequestOptions,
  8410. };
  8411. },
  8412. /**
  8413. *
  8414. * @param {EntityType} entityType
  8415. * @param {string} after
  8416. * @param {string} [userId]
  8417. * @param {*} [options] Override http request option.
  8418. * @throws {RequiredError}
  8419. */
  8420. getAuditDeletes: async (entityType: EntityType, after: string, userId?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  8421. // verify required parameter 'entityType' is not null or undefined
  8422. assertParamExists('getAuditDeletes', 'entityType', entityType)
  8423. // verify required parameter 'after' is not null or undefined
  8424. assertParamExists('getAuditDeletes', 'after', after)
  8425. const localVarPath = `/audit/deletes`;
  8426. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  8427. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  8428. let baseOptions;
  8429. if (configuration) {
  8430. baseOptions = configuration.baseOptions;
  8431. }
  8432. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  8433. const localVarHeaderParameter = {} as any;
  8434. const localVarQueryParameter = {} as any;
  8435. // authentication cookie required
  8436. // authentication api_key required
  8437. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  8438. // authentication bearer required
  8439. // http bearer authentication required
  8440. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  8441. if (entityType !== undefined) {
  8442. localVarQueryParameter['entityType'] = entityType;
  8443. }
  8444. if (userId !== undefined) {
  8445. localVarQueryParameter['userId'] = userId;
  8446. }
  8447. if (after !== undefined) {
  8448. localVarQueryParameter['after'] = (after as any instanceof Date) ?
  8449. (after as any).toISOString() :
  8450. after;
  8451. }
  8452. setSearchParams(localVarUrlObj, localVarQueryParameter);
  8453. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  8454. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  8455. return {
  8456. url: toPathString(localVarUrlObj),
  8457. options: localVarRequestOptions,
  8458. };
  8459. },
  8460. /**
  8461. *
  8462. * @param {*} [options] Override http request option.
  8463. * @throws {RequiredError}
  8464. */
  8465. getAuditFiles: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  8466. const localVarPath = `/audit/file-report`;
  8467. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  8468. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  8469. let baseOptions;
  8470. if (configuration) {
  8471. baseOptions = configuration.baseOptions;
  8472. }
  8473. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  8474. const localVarHeaderParameter = {} as any;
  8475. const localVarQueryParameter = {} as any;
  8476. // authentication cookie required
  8477. // authentication api_key required
  8478. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  8479. // authentication bearer required
  8480. // http bearer authentication required
  8481. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  8482. setSearchParams(localVarUrlObj, localVarQueryParameter);
  8483. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  8484. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  8485. return {
  8486. url: toPathString(localVarUrlObj),
  8487. options: localVarRequestOptions,
  8488. };
  8489. },
  8490. /**
  8491. *
  8492. * @param {FileChecksumDto} fileChecksumDto
  8493. * @param {*} [options] Override http request option.
  8494. * @throws {RequiredError}
  8495. */
  8496. getFileChecksums: async (fileChecksumDto: FileChecksumDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  8497. // verify required parameter 'fileChecksumDto' is not null or undefined
  8498. assertParamExists('getFileChecksums', 'fileChecksumDto', fileChecksumDto)
  8499. const localVarPath = `/audit/file-report/checksum`;
  8500. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  8501. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  8502. let baseOptions;
  8503. if (configuration) {
  8504. baseOptions = configuration.baseOptions;
  8505. }
  8506. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  8507. const localVarHeaderParameter = {} as any;
  8508. const localVarQueryParameter = {} as any;
  8509. // authentication cookie required
  8510. // authentication api_key required
  8511. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  8512. // authentication bearer required
  8513. // http bearer authentication required
  8514. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  8515. localVarHeaderParameter['Content-Type'] = 'application/json';
  8516. setSearchParams(localVarUrlObj, localVarQueryParameter);
  8517. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  8518. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  8519. localVarRequestOptions.data = serializeDataIfNeeded(fileChecksumDto, localVarRequestOptions, configuration)
  8520. return {
  8521. url: toPathString(localVarUrlObj),
  8522. options: localVarRequestOptions,
  8523. };
  8524. },
  8525. }
  8526. };
  8527. /**
  8528. * AuditApi - functional programming interface
  8529. * @export
  8530. */
  8531. export const AuditApiFp = function(configuration?: Configuration) {
  8532. const localVarAxiosParamCreator = AuditApiAxiosParamCreator(configuration)
  8533. return {
  8534. /**
  8535. *
  8536. * @param {FileReportFixDto} fileReportFixDto
  8537. * @param {*} [options] Override http request option.
  8538. * @throws {RequiredError}
  8539. */
  8540. async fixAuditFiles(fileReportFixDto: FileReportFixDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  8541. const localVarAxiosArgs = await localVarAxiosParamCreator.fixAuditFiles(fileReportFixDto, options);
  8542. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  8543. },
  8544. /**
  8545. *
  8546. * @param {EntityType} entityType
  8547. * @param {string} after
  8548. * @param {string} [userId]
  8549. * @param {*} [options] Override http request option.
  8550. * @throws {RequiredError}
  8551. */
  8552. async getAuditDeletes(entityType: EntityType, after: string, userId?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AuditDeletesResponseDto>> {
  8553. const localVarAxiosArgs = await localVarAxiosParamCreator.getAuditDeletes(entityType, after, userId, options);
  8554. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  8555. },
  8556. /**
  8557. *
  8558. * @param {*} [options] Override http request option.
  8559. * @throws {RequiredError}
  8560. */
  8561. async getAuditFiles(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FileReportDto>> {
  8562. const localVarAxiosArgs = await localVarAxiosParamCreator.getAuditFiles(options);
  8563. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  8564. },
  8565. /**
  8566. *
  8567. * @param {FileChecksumDto} fileChecksumDto
  8568. * @param {*} [options] Override http request option.
  8569. * @throws {RequiredError}
  8570. */
  8571. async getFileChecksums(fileChecksumDto: FileChecksumDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<FileChecksumResponseDto>>> {
  8572. const localVarAxiosArgs = await localVarAxiosParamCreator.getFileChecksums(fileChecksumDto, options);
  8573. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  8574. },
  8575. }
  8576. };
  8577. /**
  8578. * AuditApi - factory interface
  8579. * @export
  8580. */
  8581. export const AuditApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  8582. const localVarFp = AuditApiFp(configuration)
  8583. return {
  8584. /**
  8585. *
  8586. * @param {AuditApiFixAuditFilesRequest} requestParameters Request parameters.
  8587. * @param {*} [options] Override http request option.
  8588. * @throws {RequiredError}
  8589. */
  8590. fixAuditFiles(requestParameters: AuditApiFixAuditFilesRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  8591. return localVarFp.fixAuditFiles(requestParameters.fileReportFixDto, options).then((request) => request(axios, basePath));
  8592. },
  8593. /**
  8594. *
  8595. * @param {AuditApiGetAuditDeletesRequest} requestParameters Request parameters.
  8596. * @param {*} [options] Override http request option.
  8597. * @throws {RequiredError}
  8598. */
  8599. getAuditDeletes(requestParameters: AuditApiGetAuditDeletesRequest, options?: AxiosRequestConfig): AxiosPromise<AuditDeletesResponseDto> {
  8600. return localVarFp.getAuditDeletes(requestParameters.entityType, requestParameters.after, requestParameters.userId, options).then((request) => request(axios, basePath));
  8601. },
  8602. /**
  8603. *
  8604. * @param {*} [options] Override http request option.
  8605. * @throws {RequiredError}
  8606. */
  8607. getAuditFiles(options?: AxiosRequestConfig): AxiosPromise<FileReportDto> {
  8608. return localVarFp.getAuditFiles(options).then((request) => request(axios, basePath));
  8609. },
  8610. /**
  8611. *
  8612. * @param {AuditApiGetFileChecksumsRequest} requestParameters Request parameters.
  8613. * @param {*} [options] Override http request option.
  8614. * @throws {RequiredError}
  8615. */
  8616. getFileChecksums(requestParameters: AuditApiGetFileChecksumsRequest, options?: AxiosRequestConfig): AxiosPromise<Array<FileChecksumResponseDto>> {
  8617. return localVarFp.getFileChecksums(requestParameters.fileChecksumDto, options).then((request) => request(axios, basePath));
  8618. },
  8619. };
  8620. };
  8621. /**
  8622. * Request parameters for fixAuditFiles operation in AuditApi.
  8623. * @export
  8624. * @interface AuditApiFixAuditFilesRequest
  8625. */
  8626. export interface AuditApiFixAuditFilesRequest {
  8627. /**
  8628. *
  8629. * @type {FileReportFixDto}
  8630. * @memberof AuditApiFixAuditFiles
  8631. */
  8632. readonly fileReportFixDto: FileReportFixDto
  8633. }
  8634. /**
  8635. * Request parameters for getAuditDeletes operation in AuditApi.
  8636. * @export
  8637. * @interface AuditApiGetAuditDeletesRequest
  8638. */
  8639. export interface AuditApiGetAuditDeletesRequest {
  8640. /**
  8641. *
  8642. * @type {EntityType}
  8643. * @memberof AuditApiGetAuditDeletes
  8644. */
  8645. readonly entityType: EntityType
  8646. /**
  8647. *
  8648. * @type {string}
  8649. * @memberof AuditApiGetAuditDeletes
  8650. */
  8651. readonly after: string
  8652. /**
  8653. *
  8654. * @type {string}
  8655. * @memberof AuditApiGetAuditDeletes
  8656. */
  8657. readonly userId?: string
  8658. }
  8659. /**
  8660. * Request parameters for getFileChecksums operation in AuditApi.
  8661. * @export
  8662. * @interface AuditApiGetFileChecksumsRequest
  8663. */
  8664. export interface AuditApiGetFileChecksumsRequest {
  8665. /**
  8666. *
  8667. * @type {FileChecksumDto}
  8668. * @memberof AuditApiGetFileChecksums
  8669. */
  8670. readonly fileChecksumDto: FileChecksumDto
  8671. }
  8672. /**
  8673. * AuditApi - object-oriented interface
  8674. * @export
  8675. * @class AuditApi
  8676. * @extends {BaseAPI}
  8677. */
  8678. export class AuditApi extends BaseAPI {
  8679. /**
  8680. *
  8681. * @param {AuditApiFixAuditFilesRequest} requestParameters Request parameters.
  8682. * @param {*} [options] Override http request option.
  8683. * @throws {RequiredError}
  8684. * @memberof AuditApi
  8685. */
  8686. public fixAuditFiles(requestParameters: AuditApiFixAuditFilesRequest, options?: AxiosRequestConfig) {
  8687. return AuditApiFp(this.configuration).fixAuditFiles(requestParameters.fileReportFixDto, options).then((request) => request(this.axios, this.basePath));
  8688. }
  8689. /**
  8690. *
  8691. * @param {AuditApiGetAuditDeletesRequest} requestParameters Request parameters.
  8692. * @param {*} [options] Override http request option.
  8693. * @throws {RequiredError}
  8694. * @memberof AuditApi
  8695. */
  8696. public getAuditDeletes(requestParameters: AuditApiGetAuditDeletesRequest, options?: AxiosRequestConfig) {
  8697. return AuditApiFp(this.configuration).getAuditDeletes(requestParameters.entityType, requestParameters.after, requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
  8698. }
  8699. /**
  8700. *
  8701. * @param {*} [options] Override http request option.
  8702. * @throws {RequiredError}
  8703. * @memberof AuditApi
  8704. */
  8705. public getAuditFiles(options?: AxiosRequestConfig) {
  8706. return AuditApiFp(this.configuration).getAuditFiles(options).then((request) => request(this.axios, this.basePath));
  8707. }
  8708. /**
  8709. *
  8710. * @param {AuditApiGetFileChecksumsRequest} requestParameters Request parameters.
  8711. * @param {*} [options] Override http request option.
  8712. * @throws {RequiredError}
  8713. * @memberof AuditApi
  8714. */
  8715. public getFileChecksums(requestParameters: AuditApiGetFileChecksumsRequest, options?: AxiosRequestConfig) {
  8716. return AuditApiFp(this.configuration).getFileChecksums(requestParameters.fileChecksumDto, options).then((request) => request(this.axios, this.basePath));
  8717. }
  8718. }
  8719. /**
  8720. * AuthenticationApi - axios parameter creator
  8721. * @export
  8722. */
  8723. export const AuthenticationApiAxiosParamCreator = function (configuration?: Configuration) {
  8724. return {
  8725. /**
  8726. *
  8727. * @param {SignUpDto} signUpDto
  8728. * @param {*} [options] Override http request option.
  8729. * @throws {RequiredError}
  8730. */
  8731. adminSignUp: async (signUpDto: SignUpDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  8732. // verify required parameter 'signUpDto' is not null or undefined
  8733. assertParamExists('adminSignUp', 'signUpDto', signUpDto)
  8734. const localVarPath = `/auth/admin-sign-up`;
  8735. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  8736. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  8737. let baseOptions;
  8738. if (configuration) {
  8739. baseOptions = configuration.baseOptions;
  8740. }
  8741. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  8742. const localVarHeaderParameter = {} as any;
  8743. const localVarQueryParameter = {} as any;
  8744. localVarHeaderParameter['Content-Type'] = 'application/json';
  8745. setSearchParams(localVarUrlObj, localVarQueryParameter);
  8746. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  8747. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  8748. localVarRequestOptions.data = serializeDataIfNeeded(signUpDto, localVarRequestOptions, configuration)
  8749. return {
  8750. url: toPathString(localVarUrlObj),
  8751. options: localVarRequestOptions,
  8752. };
  8753. },
  8754. /**
  8755. *
  8756. * @param {ChangePasswordDto} changePasswordDto
  8757. * @param {*} [options] Override http request option.
  8758. * @throws {RequiredError}
  8759. */
  8760. changePassword: async (changePasswordDto: ChangePasswordDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  8761. // verify required parameter 'changePasswordDto' is not null or undefined
  8762. assertParamExists('changePassword', 'changePasswordDto', changePasswordDto)
  8763. const localVarPath = `/auth/change-password`;
  8764. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  8765. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  8766. let baseOptions;
  8767. if (configuration) {
  8768. baseOptions = configuration.baseOptions;
  8769. }
  8770. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  8771. const localVarHeaderParameter = {} as any;
  8772. const localVarQueryParameter = {} as any;
  8773. // authentication cookie required
  8774. // authentication api_key required
  8775. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  8776. // authentication bearer required
  8777. // http bearer authentication required
  8778. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  8779. localVarHeaderParameter['Content-Type'] = 'application/json';
  8780. setSearchParams(localVarUrlObj, localVarQueryParameter);
  8781. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  8782. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  8783. localVarRequestOptions.data = serializeDataIfNeeded(changePasswordDto, localVarRequestOptions, configuration)
  8784. return {
  8785. url: toPathString(localVarUrlObj),
  8786. options: localVarRequestOptions,
  8787. };
  8788. },
  8789. /**
  8790. *
  8791. * @param {*} [options] Override http request option.
  8792. * @throws {RequiredError}
  8793. */
  8794. getAuthDevices: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  8795. const localVarPath = `/auth/devices`;
  8796. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  8797. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  8798. let baseOptions;
  8799. if (configuration) {
  8800. baseOptions = configuration.baseOptions;
  8801. }
  8802. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  8803. const localVarHeaderParameter = {} as any;
  8804. const localVarQueryParameter = {} as any;
  8805. // authentication cookie required
  8806. // authentication api_key required
  8807. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  8808. // authentication bearer required
  8809. // http bearer authentication required
  8810. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  8811. setSearchParams(localVarUrlObj, localVarQueryParameter);
  8812. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  8813. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  8814. return {
  8815. url: toPathString(localVarUrlObj),
  8816. options: localVarRequestOptions,
  8817. };
  8818. },
  8819. /**
  8820. *
  8821. * @param {LoginCredentialDto} loginCredentialDto
  8822. * @param {*} [options] Override http request option.
  8823. * @throws {RequiredError}
  8824. */
  8825. login: async (loginCredentialDto: LoginCredentialDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  8826. // verify required parameter 'loginCredentialDto' is not null or undefined
  8827. assertParamExists('login', 'loginCredentialDto', loginCredentialDto)
  8828. const localVarPath = `/auth/login`;
  8829. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  8830. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  8831. let baseOptions;
  8832. if (configuration) {
  8833. baseOptions = configuration.baseOptions;
  8834. }
  8835. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  8836. const localVarHeaderParameter = {} as any;
  8837. const localVarQueryParameter = {} as any;
  8838. localVarHeaderParameter['Content-Type'] = 'application/json';
  8839. setSearchParams(localVarUrlObj, localVarQueryParameter);
  8840. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  8841. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  8842. localVarRequestOptions.data = serializeDataIfNeeded(loginCredentialDto, localVarRequestOptions, configuration)
  8843. return {
  8844. url: toPathString(localVarUrlObj),
  8845. options: localVarRequestOptions,
  8846. };
  8847. },
  8848. /**
  8849. *
  8850. * @param {*} [options] Override http request option.
  8851. * @throws {RequiredError}
  8852. */
  8853. logout: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  8854. const localVarPath = `/auth/logout`;
  8855. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  8856. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  8857. let baseOptions;
  8858. if (configuration) {
  8859. baseOptions = configuration.baseOptions;
  8860. }
  8861. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  8862. const localVarHeaderParameter = {} as any;
  8863. const localVarQueryParameter = {} as any;
  8864. // authentication cookie required
  8865. // authentication api_key required
  8866. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  8867. // authentication bearer required
  8868. // http bearer authentication required
  8869. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  8870. setSearchParams(localVarUrlObj, localVarQueryParameter);
  8871. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  8872. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  8873. return {
  8874. url: toPathString(localVarUrlObj),
  8875. options: localVarRequestOptions,
  8876. };
  8877. },
  8878. /**
  8879. *
  8880. * @param {string} id
  8881. * @param {*} [options] Override http request option.
  8882. * @throws {RequiredError}
  8883. */
  8884. logoutAuthDevice: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  8885. // verify required parameter 'id' is not null or undefined
  8886. assertParamExists('logoutAuthDevice', 'id', id)
  8887. const localVarPath = `/auth/devices/{id}`
  8888. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  8889. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  8890. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  8891. let baseOptions;
  8892. if (configuration) {
  8893. baseOptions = configuration.baseOptions;
  8894. }
  8895. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  8896. const localVarHeaderParameter = {} as any;
  8897. const localVarQueryParameter = {} as any;
  8898. // authentication cookie required
  8899. // authentication api_key required
  8900. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  8901. // authentication bearer required
  8902. // http bearer authentication required
  8903. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  8904. setSearchParams(localVarUrlObj, localVarQueryParameter);
  8905. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  8906. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  8907. return {
  8908. url: toPathString(localVarUrlObj),
  8909. options: localVarRequestOptions,
  8910. };
  8911. },
  8912. /**
  8913. *
  8914. * @param {*} [options] Override http request option.
  8915. * @throws {RequiredError}
  8916. */
  8917. logoutAuthDevices: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  8918. const localVarPath = `/auth/devices`;
  8919. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  8920. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  8921. let baseOptions;
  8922. if (configuration) {
  8923. baseOptions = configuration.baseOptions;
  8924. }
  8925. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  8926. const localVarHeaderParameter = {} as any;
  8927. const localVarQueryParameter = {} as any;
  8928. // authentication cookie required
  8929. // authentication api_key required
  8930. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  8931. // authentication bearer required
  8932. // http bearer authentication required
  8933. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  8934. setSearchParams(localVarUrlObj, localVarQueryParameter);
  8935. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  8936. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  8937. return {
  8938. url: toPathString(localVarUrlObj),
  8939. options: localVarRequestOptions,
  8940. };
  8941. },
  8942. /**
  8943. *
  8944. * @param {*} [options] Override http request option.
  8945. * @throws {RequiredError}
  8946. */
  8947. validateAccessToken: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  8948. const localVarPath = `/auth/validateToken`;
  8949. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  8950. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  8951. let baseOptions;
  8952. if (configuration) {
  8953. baseOptions = configuration.baseOptions;
  8954. }
  8955. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  8956. const localVarHeaderParameter = {} as any;
  8957. const localVarQueryParameter = {} as any;
  8958. // authentication cookie required
  8959. // authentication api_key required
  8960. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  8961. // authentication bearer required
  8962. // http bearer authentication required
  8963. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  8964. setSearchParams(localVarUrlObj, localVarQueryParameter);
  8965. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  8966. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  8967. return {
  8968. url: toPathString(localVarUrlObj),
  8969. options: localVarRequestOptions,
  8970. };
  8971. },
  8972. }
  8973. };
  8974. /**
  8975. * AuthenticationApi - functional programming interface
  8976. * @export
  8977. */
  8978. export const AuthenticationApiFp = function(configuration?: Configuration) {
  8979. const localVarAxiosParamCreator = AuthenticationApiAxiosParamCreator(configuration)
  8980. return {
  8981. /**
  8982. *
  8983. * @param {SignUpDto} signUpDto
  8984. * @param {*} [options] Override http request option.
  8985. * @throws {RequiredError}
  8986. */
  8987. async adminSignUp(signUpDto: SignUpDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AdminSignupResponseDto>> {
  8988. const localVarAxiosArgs = await localVarAxiosParamCreator.adminSignUp(signUpDto, options);
  8989. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  8990. },
  8991. /**
  8992. *
  8993. * @param {ChangePasswordDto} changePasswordDto
  8994. * @param {*} [options] Override http request option.
  8995. * @throws {RequiredError}
  8996. */
  8997. async changePassword(changePasswordDto: ChangePasswordDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  8998. const localVarAxiosArgs = await localVarAxiosParamCreator.changePassword(changePasswordDto, options);
  8999. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9000. },
  9001. /**
  9002. *
  9003. * @param {*} [options] Override http request option.
  9004. * @throws {RequiredError}
  9005. */
  9006. async getAuthDevices(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AuthDeviceResponseDto>>> {
  9007. const localVarAxiosArgs = await localVarAxiosParamCreator.getAuthDevices(options);
  9008. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9009. },
  9010. /**
  9011. *
  9012. * @param {LoginCredentialDto} loginCredentialDto
  9013. * @param {*} [options] Override http request option.
  9014. * @throws {RequiredError}
  9015. */
  9016. async login(loginCredentialDto: LoginCredentialDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LoginResponseDto>> {
  9017. const localVarAxiosArgs = await localVarAxiosParamCreator.login(loginCredentialDto, options);
  9018. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9019. },
  9020. /**
  9021. *
  9022. * @param {*} [options] Override http request option.
  9023. * @throws {RequiredError}
  9024. */
  9025. async logout(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LogoutResponseDto>> {
  9026. const localVarAxiosArgs = await localVarAxiosParamCreator.logout(options);
  9027. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9028. },
  9029. /**
  9030. *
  9031. * @param {string} id
  9032. * @param {*} [options] Override http request option.
  9033. * @throws {RequiredError}
  9034. */
  9035. async logoutAuthDevice(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  9036. const localVarAxiosArgs = await localVarAxiosParamCreator.logoutAuthDevice(id, options);
  9037. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9038. },
  9039. /**
  9040. *
  9041. * @param {*} [options] Override http request option.
  9042. * @throws {RequiredError}
  9043. */
  9044. async logoutAuthDevices(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  9045. const localVarAxiosArgs = await localVarAxiosParamCreator.logoutAuthDevices(options);
  9046. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9047. },
  9048. /**
  9049. *
  9050. * @param {*} [options] Override http request option.
  9051. * @throws {RequiredError}
  9052. */
  9053. async validateAccessToken(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ValidateAccessTokenResponseDto>> {
  9054. const localVarAxiosArgs = await localVarAxiosParamCreator.validateAccessToken(options);
  9055. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9056. },
  9057. }
  9058. };
  9059. /**
  9060. * AuthenticationApi - factory interface
  9061. * @export
  9062. */
  9063. export const AuthenticationApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  9064. const localVarFp = AuthenticationApiFp(configuration)
  9065. return {
  9066. /**
  9067. *
  9068. * @param {AuthenticationApiAdminSignUpRequest} requestParameters Request parameters.
  9069. * @param {*} [options] Override http request option.
  9070. * @throws {RequiredError}
  9071. */
  9072. adminSignUp(requestParameters: AuthenticationApiAdminSignUpRequest, options?: AxiosRequestConfig): AxiosPromise<AdminSignupResponseDto> {
  9073. return localVarFp.adminSignUp(requestParameters.signUpDto, options).then((request) => request(axios, basePath));
  9074. },
  9075. /**
  9076. *
  9077. * @param {AuthenticationApiChangePasswordRequest} requestParameters Request parameters.
  9078. * @param {*} [options] Override http request option.
  9079. * @throws {RequiredError}
  9080. */
  9081. changePassword(requestParameters: AuthenticationApiChangePasswordRequest, options?: AxiosRequestConfig): AxiosPromise<UserResponseDto> {
  9082. return localVarFp.changePassword(requestParameters.changePasswordDto, options).then((request) => request(axios, basePath));
  9083. },
  9084. /**
  9085. *
  9086. * @param {*} [options] Override http request option.
  9087. * @throws {RequiredError}
  9088. */
  9089. getAuthDevices(options?: AxiosRequestConfig): AxiosPromise<Array<AuthDeviceResponseDto>> {
  9090. return localVarFp.getAuthDevices(options).then((request) => request(axios, basePath));
  9091. },
  9092. /**
  9093. *
  9094. * @param {AuthenticationApiLoginRequest} requestParameters Request parameters.
  9095. * @param {*} [options] Override http request option.
  9096. * @throws {RequiredError}
  9097. */
  9098. login(requestParameters: AuthenticationApiLoginRequest, options?: AxiosRequestConfig): AxiosPromise<LoginResponseDto> {
  9099. return localVarFp.login(requestParameters.loginCredentialDto, options).then((request) => request(axios, basePath));
  9100. },
  9101. /**
  9102. *
  9103. * @param {*} [options] Override http request option.
  9104. * @throws {RequiredError}
  9105. */
  9106. logout(options?: AxiosRequestConfig): AxiosPromise<LogoutResponseDto> {
  9107. return localVarFp.logout(options).then((request) => request(axios, basePath));
  9108. },
  9109. /**
  9110. *
  9111. * @param {AuthenticationApiLogoutAuthDeviceRequest} requestParameters Request parameters.
  9112. * @param {*} [options] Override http request option.
  9113. * @throws {RequiredError}
  9114. */
  9115. logoutAuthDevice(requestParameters: AuthenticationApiLogoutAuthDeviceRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  9116. return localVarFp.logoutAuthDevice(requestParameters.id, options).then((request) => request(axios, basePath));
  9117. },
  9118. /**
  9119. *
  9120. * @param {*} [options] Override http request option.
  9121. * @throws {RequiredError}
  9122. */
  9123. logoutAuthDevices(options?: AxiosRequestConfig): AxiosPromise<void> {
  9124. return localVarFp.logoutAuthDevices(options).then((request) => request(axios, basePath));
  9125. },
  9126. /**
  9127. *
  9128. * @param {*} [options] Override http request option.
  9129. * @throws {RequiredError}
  9130. */
  9131. validateAccessToken(options?: AxiosRequestConfig): AxiosPromise<ValidateAccessTokenResponseDto> {
  9132. return localVarFp.validateAccessToken(options).then((request) => request(axios, basePath));
  9133. },
  9134. };
  9135. };
  9136. /**
  9137. * Request parameters for adminSignUp operation in AuthenticationApi.
  9138. * @export
  9139. * @interface AuthenticationApiAdminSignUpRequest
  9140. */
  9141. export interface AuthenticationApiAdminSignUpRequest {
  9142. /**
  9143. *
  9144. * @type {SignUpDto}
  9145. * @memberof AuthenticationApiAdminSignUp
  9146. */
  9147. readonly signUpDto: SignUpDto
  9148. }
  9149. /**
  9150. * Request parameters for changePassword operation in AuthenticationApi.
  9151. * @export
  9152. * @interface AuthenticationApiChangePasswordRequest
  9153. */
  9154. export interface AuthenticationApiChangePasswordRequest {
  9155. /**
  9156. *
  9157. * @type {ChangePasswordDto}
  9158. * @memberof AuthenticationApiChangePassword
  9159. */
  9160. readonly changePasswordDto: ChangePasswordDto
  9161. }
  9162. /**
  9163. * Request parameters for login operation in AuthenticationApi.
  9164. * @export
  9165. * @interface AuthenticationApiLoginRequest
  9166. */
  9167. export interface AuthenticationApiLoginRequest {
  9168. /**
  9169. *
  9170. * @type {LoginCredentialDto}
  9171. * @memberof AuthenticationApiLogin
  9172. */
  9173. readonly loginCredentialDto: LoginCredentialDto
  9174. }
  9175. /**
  9176. * Request parameters for logoutAuthDevice operation in AuthenticationApi.
  9177. * @export
  9178. * @interface AuthenticationApiLogoutAuthDeviceRequest
  9179. */
  9180. export interface AuthenticationApiLogoutAuthDeviceRequest {
  9181. /**
  9182. *
  9183. * @type {string}
  9184. * @memberof AuthenticationApiLogoutAuthDevice
  9185. */
  9186. readonly id: string
  9187. }
  9188. /**
  9189. * AuthenticationApi - object-oriented interface
  9190. * @export
  9191. * @class AuthenticationApi
  9192. * @extends {BaseAPI}
  9193. */
  9194. export class AuthenticationApi extends BaseAPI {
  9195. /**
  9196. *
  9197. * @param {AuthenticationApiAdminSignUpRequest} requestParameters Request parameters.
  9198. * @param {*} [options] Override http request option.
  9199. * @throws {RequiredError}
  9200. * @memberof AuthenticationApi
  9201. */
  9202. public adminSignUp(requestParameters: AuthenticationApiAdminSignUpRequest, options?: AxiosRequestConfig) {
  9203. return AuthenticationApiFp(this.configuration).adminSignUp(requestParameters.signUpDto, options).then((request) => request(this.axios, this.basePath));
  9204. }
  9205. /**
  9206. *
  9207. * @param {AuthenticationApiChangePasswordRequest} requestParameters Request parameters.
  9208. * @param {*} [options] Override http request option.
  9209. * @throws {RequiredError}
  9210. * @memberof AuthenticationApi
  9211. */
  9212. public changePassword(requestParameters: AuthenticationApiChangePasswordRequest, options?: AxiosRequestConfig) {
  9213. return AuthenticationApiFp(this.configuration).changePassword(requestParameters.changePasswordDto, options).then((request) => request(this.axios, this.basePath));
  9214. }
  9215. /**
  9216. *
  9217. * @param {*} [options] Override http request option.
  9218. * @throws {RequiredError}
  9219. * @memberof AuthenticationApi
  9220. */
  9221. public getAuthDevices(options?: AxiosRequestConfig) {
  9222. return AuthenticationApiFp(this.configuration).getAuthDevices(options).then((request) => request(this.axios, this.basePath));
  9223. }
  9224. /**
  9225. *
  9226. * @param {AuthenticationApiLoginRequest} requestParameters Request parameters.
  9227. * @param {*} [options] Override http request option.
  9228. * @throws {RequiredError}
  9229. * @memberof AuthenticationApi
  9230. */
  9231. public login(requestParameters: AuthenticationApiLoginRequest, options?: AxiosRequestConfig) {
  9232. return AuthenticationApiFp(this.configuration).login(requestParameters.loginCredentialDto, options).then((request) => request(this.axios, this.basePath));
  9233. }
  9234. /**
  9235. *
  9236. * @param {*} [options] Override http request option.
  9237. * @throws {RequiredError}
  9238. * @memberof AuthenticationApi
  9239. */
  9240. public logout(options?: AxiosRequestConfig) {
  9241. return AuthenticationApiFp(this.configuration).logout(options).then((request) => request(this.axios, this.basePath));
  9242. }
  9243. /**
  9244. *
  9245. * @param {AuthenticationApiLogoutAuthDeviceRequest} requestParameters Request parameters.
  9246. * @param {*} [options] Override http request option.
  9247. * @throws {RequiredError}
  9248. * @memberof AuthenticationApi
  9249. */
  9250. public logoutAuthDevice(requestParameters: AuthenticationApiLogoutAuthDeviceRequest, options?: AxiosRequestConfig) {
  9251. return AuthenticationApiFp(this.configuration).logoutAuthDevice(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  9252. }
  9253. /**
  9254. *
  9255. * @param {*} [options] Override http request option.
  9256. * @throws {RequiredError}
  9257. * @memberof AuthenticationApi
  9258. */
  9259. public logoutAuthDevices(options?: AxiosRequestConfig) {
  9260. return AuthenticationApiFp(this.configuration).logoutAuthDevices(options).then((request) => request(this.axios, this.basePath));
  9261. }
  9262. /**
  9263. *
  9264. * @param {*} [options] Override http request option.
  9265. * @throws {RequiredError}
  9266. * @memberof AuthenticationApi
  9267. */
  9268. public validateAccessToken(options?: AxiosRequestConfig) {
  9269. return AuthenticationApiFp(this.configuration).validateAccessToken(options).then((request) => request(this.axios, this.basePath));
  9270. }
  9271. }
  9272. /**
  9273. * JobApi - axios parameter creator
  9274. * @export
  9275. */
  9276. export const JobApiAxiosParamCreator = function (configuration?: Configuration) {
  9277. return {
  9278. /**
  9279. *
  9280. * @param {*} [options] Override http request option.
  9281. * @throws {RequiredError}
  9282. */
  9283. getAllJobsStatus: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9284. const localVarPath = `/jobs`;
  9285. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9286. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9287. let baseOptions;
  9288. if (configuration) {
  9289. baseOptions = configuration.baseOptions;
  9290. }
  9291. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  9292. const localVarHeaderParameter = {} as any;
  9293. const localVarQueryParameter = {} as any;
  9294. // authentication cookie required
  9295. // authentication api_key required
  9296. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  9297. // authentication bearer required
  9298. // http bearer authentication required
  9299. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  9300. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9301. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9302. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9303. return {
  9304. url: toPathString(localVarUrlObj),
  9305. options: localVarRequestOptions,
  9306. };
  9307. },
  9308. /**
  9309. *
  9310. * @param {JobName} id
  9311. * @param {JobCommandDto} jobCommandDto
  9312. * @param {*} [options] Override http request option.
  9313. * @throws {RequiredError}
  9314. */
  9315. sendJobCommand: async (id: JobName, jobCommandDto: JobCommandDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9316. // verify required parameter 'id' is not null or undefined
  9317. assertParamExists('sendJobCommand', 'id', id)
  9318. // verify required parameter 'jobCommandDto' is not null or undefined
  9319. assertParamExists('sendJobCommand', 'jobCommandDto', jobCommandDto)
  9320. const localVarPath = `/jobs/{id}`
  9321. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  9322. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9323. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9324. let baseOptions;
  9325. if (configuration) {
  9326. baseOptions = configuration.baseOptions;
  9327. }
  9328. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  9329. const localVarHeaderParameter = {} as any;
  9330. const localVarQueryParameter = {} as any;
  9331. // authentication cookie required
  9332. // authentication api_key required
  9333. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  9334. // authentication bearer required
  9335. // http bearer authentication required
  9336. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  9337. localVarHeaderParameter['Content-Type'] = 'application/json';
  9338. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9339. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9340. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9341. localVarRequestOptions.data = serializeDataIfNeeded(jobCommandDto, localVarRequestOptions, configuration)
  9342. return {
  9343. url: toPathString(localVarUrlObj),
  9344. options: localVarRequestOptions,
  9345. };
  9346. },
  9347. }
  9348. };
  9349. /**
  9350. * JobApi - functional programming interface
  9351. * @export
  9352. */
  9353. export const JobApiFp = function(configuration?: Configuration) {
  9354. const localVarAxiosParamCreator = JobApiAxiosParamCreator(configuration)
  9355. return {
  9356. /**
  9357. *
  9358. * @param {*} [options] Override http request option.
  9359. * @throws {RequiredError}
  9360. */
  9361. async getAllJobsStatus(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AllJobStatusResponseDto>> {
  9362. const localVarAxiosArgs = await localVarAxiosParamCreator.getAllJobsStatus(options);
  9363. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9364. },
  9365. /**
  9366. *
  9367. * @param {JobName} id
  9368. * @param {JobCommandDto} jobCommandDto
  9369. * @param {*} [options] Override http request option.
  9370. * @throws {RequiredError}
  9371. */
  9372. async sendJobCommand(id: JobName, jobCommandDto: JobCommandDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<JobStatusDto>> {
  9373. const localVarAxiosArgs = await localVarAxiosParamCreator.sendJobCommand(id, jobCommandDto, options);
  9374. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9375. },
  9376. }
  9377. };
  9378. /**
  9379. * JobApi - factory interface
  9380. * @export
  9381. */
  9382. export const JobApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  9383. const localVarFp = JobApiFp(configuration)
  9384. return {
  9385. /**
  9386. *
  9387. * @param {*} [options] Override http request option.
  9388. * @throws {RequiredError}
  9389. */
  9390. getAllJobsStatus(options?: AxiosRequestConfig): AxiosPromise<AllJobStatusResponseDto> {
  9391. return localVarFp.getAllJobsStatus(options).then((request) => request(axios, basePath));
  9392. },
  9393. /**
  9394. *
  9395. * @param {JobApiSendJobCommandRequest} requestParameters Request parameters.
  9396. * @param {*} [options] Override http request option.
  9397. * @throws {RequiredError}
  9398. */
  9399. sendJobCommand(requestParameters: JobApiSendJobCommandRequest, options?: AxiosRequestConfig): AxiosPromise<JobStatusDto> {
  9400. return localVarFp.sendJobCommand(requestParameters.id, requestParameters.jobCommandDto, options).then((request) => request(axios, basePath));
  9401. },
  9402. };
  9403. };
  9404. /**
  9405. * Request parameters for sendJobCommand operation in JobApi.
  9406. * @export
  9407. * @interface JobApiSendJobCommandRequest
  9408. */
  9409. export interface JobApiSendJobCommandRequest {
  9410. /**
  9411. *
  9412. * @type {JobName}
  9413. * @memberof JobApiSendJobCommand
  9414. */
  9415. readonly id: JobName
  9416. /**
  9417. *
  9418. * @type {JobCommandDto}
  9419. * @memberof JobApiSendJobCommand
  9420. */
  9421. readonly jobCommandDto: JobCommandDto
  9422. }
  9423. /**
  9424. * JobApi - object-oriented interface
  9425. * @export
  9426. * @class JobApi
  9427. * @extends {BaseAPI}
  9428. */
  9429. export class JobApi extends BaseAPI {
  9430. /**
  9431. *
  9432. * @param {*} [options] Override http request option.
  9433. * @throws {RequiredError}
  9434. * @memberof JobApi
  9435. */
  9436. public getAllJobsStatus(options?: AxiosRequestConfig) {
  9437. return JobApiFp(this.configuration).getAllJobsStatus(options).then((request) => request(this.axios, this.basePath));
  9438. }
  9439. /**
  9440. *
  9441. * @param {JobApiSendJobCommandRequest} requestParameters Request parameters.
  9442. * @param {*} [options] Override http request option.
  9443. * @throws {RequiredError}
  9444. * @memberof JobApi
  9445. */
  9446. public sendJobCommand(requestParameters: JobApiSendJobCommandRequest, options?: AxiosRequestConfig) {
  9447. return JobApiFp(this.configuration).sendJobCommand(requestParameters.id, requestParameters.jobCommandDto, options).then((request) => request(this.axios, this.basePath));
  9448. }
  9449. }
  9450. /**
  9451. * LibraryApi - axios parameter creator
  9452. * @export
  9453. */
  9454. export const LibraryApiAxiosParamCreator = function (configuration?: Configuration) {
  9455. return {
  9456. /**
  9457. *
  9458. * @param {CreateLibraryDto} createLibraryDto
  9459. * @param {*} [options] Override http request option.
  9460. * @throws {RequiredError}
  9461. */
  9462. createLibrary: async (createLibraryDto: CreateLibraryDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9463. // verify required parameter 'createLibraryDto' is not null or undefined
  9464. assertParamExists('createLibrary', 'createLibraryDto', createLibraryDto)
  9465. const localVarPath = `/library`;
  9466. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9467. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9468. let baseOptions;
  9469. if (configuration) {
  9470. baseOptions = configuration.baseOptions;
  9471. }
  9472. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  9473. const localVarHeaderParameter = {} as any;
  9474. const localVarQueryParameter = {} as any;
  9475. // authentication cookie required
  9476. // authentication api_key required
  9477. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  9478. // authentication bearer required
  9479. // http bearer authentication required
  9480. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  9481. localVarHeaderParameter['Content-Type'] = 'application/json';
  9482. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9483. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9484. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9485. localVarRequestOptions.data = serializeDataIfNeeded(createLibraryDto, localVarRequestOptions, configuration)
  9486. return {
  9487. url: toPathString(localVarUrlObj),
  9488. options: localVarRequestOptions,
  9489. };
  9490. },
  9491. /**
  9492. *
  9493. * @param {string} id
  9494. * @param {*} [options] Override http request option.
  9495. * @throws {RequiredError}
  9496. */
  9497. deleteLibrary: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9498. // verify required parameter 'id' is not null or undefined
  9499. assertParamExists('deleteLibrary', 'id', id)
  9500. const localVarPath = `/library/{id}`
  9501. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  9502. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9503. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9504. let baseOptions;
  9505. if (configuration) {
  9506. baseOptions = configuration.baseOptions;
  9507. }
  9508. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  9509. const localVarHeaderParameter = {} as any;
  9510. const localVarQueryParameter = {} as any;
  9511. // authentication cookie required
  9512. // authentication api_key required
  9513. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  9514. // authentication bearer required
  9515. // http bearer authentication required
  9516. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  9517. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9518. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9519. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9520. return {
  9521. url: toPathString(localVarUrlObj),
  9522. options: localVarRequestOptions,
  9523. };
  9524. },
  9525. /**
  9526. *
  9527. * @param {*} [options] Override http request option.
  9528. * @throws {RequiredError}
  9529. */
  9530. getAllForUser: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9531. const localVarPath = `/library`;
  9532. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9533. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9534. let baseOptions;
  9535. if (configuration) {
  9536. baseOptions = configuration.baseOptions;
  9537. }
  9538. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  9539. const localVarHeaderParameter = {} as any;
  9540. const localVarQueryParameter = {} as any;
  9541. // authentication cookie required
  9542. // authentication api_key required
  9543. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  9544. // authentication bearer required
  9545. // http bearer authentication required
  9546. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  9547. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9548. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9549. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9550. return {
  9551. url: toPathString(localVarUrlObj),
  9552. options: localVarRequestOptions,
  9553. };
  9554. },
  9555. /**
  9556. *
  9557. * @param {string} id
  9558. * @param {*} [options] Override http request option.
  9559. * @throws {RequiredError}
  9560. */
  9561. getLibraryInfo: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9562. // verify required parameter 'id' is not null or undefined
  9563. assertParamExists('getLibraryInfo', 'id', id)
  9564. const localVarPath = `/library/{id}`
  9565. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  9566. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9567. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9568. let baseOptions;
  9569. if (configuration) {
  9570. baseOptions = configuration.baseOptions;
  9571. }
  9572. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  9573. const localVarHeaderParameter = {} as any;
  9574. const localVarQueryParameter = {} as any;
  9575. // authentication cookie required
  9576. // authentication api_key required
  9577. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  9578. // authentication bearer required
  9579. // http bearer authentication required
  9580. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  9581. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9582. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9583. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9584. return {
  9585. url: toPathString(localVarUrlObj),
  9586. options: localVarRequestOptions,
  9587. };
  9588. },
  9589. /**
  9590. *
  9591. * @param {string} id
  9592. * @param {*} [options] Override http request option.
  9593. * @throws {RequiredError}
  9594. */
  9595. getLibraryStatistics: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9596. // verify required parameter 'id' is not null or undefined
  9597. assertParamExists('getLibraryStatistics', 'id', id)
  9598. const localVarPath = `/library/{id}/statistics`
  9599. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  9600. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9601. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9602. let baseOptions;
  9603. if (configuration) {
  9604. baseOptions = configuration.baseOptions;
  9605. }
  9606. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  9607. const localVarHeaderParameter = {} as any;
  9608. const localVarQueryParameter = {} as any;
  9609. // authentication cookie required
  9610. // authentication api_key required
  9611. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  9612. // authentication bearer required
  9613. // http bearer authentication required
  9614. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  9615. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9616. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9617. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9618. return {
  9619. url: toPathString(localVarUrlObj),
  9620. options: localVarRequestOptions,
  9621. };
  9622. },
  9623. /**
  9624. *
  9625. * @param {string} id
  9626. * @param {*} [options] Override http request option.
  9627. * @throws {RequiredError}
  9628. */
  9629. removeOfflineFiles: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9630. // verify required parameter 'id' is not null or undefined
  9631. assertParamExists('removeOfflineFiles', 'id', id)
  9632. const localVarPath = `/library/{id}/removeOffline`
  9633. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  9634. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9635. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9636. let baseOptions;
  9637. if (configuration) {
  9638. baseOptions = configuration.baseOptions;
  9639. }
  9640. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  9641. const localVarHeaderParameter = {} as any;
  9642. const localVarQueryParameter = {} as any;
  9643. // authentication cookie required
  9644. // authentication api_key required
  9645. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  9646. // authentication bearer required
  9647. // http bearer authentication required
  9648. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  9649. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9650. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9651. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9652. return {
  9653. url: toPathString(localVarUrlObj),
  9654. options: localVarRequestOptions,
  9655. };
  9656. },
  9657. /**
  9658. *
  9659. * @param {string} id
  9660. * @param {ScanLibraryDto} scanLibraryDto
  9661. * @param {*} [options] Override http request option.
  9662. * @throws {RequiredError}
  9663. */
  9664. scanLibrary: async (id: string, scanLibraryDto: ScanLibraryDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9665. // verify required parameter 'id' is not null or undefined
  9666. assertParamExists('scanLibrary', 'id', id)
  9667. // verify required parameter 'scanLibraryDto' is not null or undefined
  9668. assertParamExists('scanLibrary', 'scanLibraryDto', scanLibraryDto)
  9669. const localVarPath = `/library/{id}/scan`
  9670. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  9671. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9672. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9673. let baseOptions;
  9674. if (configuration) {
  9675. baseOptions = configuration.baseOptions;
  9676. }
  9677. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  9678. const localVarHeaderParameter = {} as any;
  9679. const localVarQueryParameter = {} as any;
  9680. // authentication cookie required
  9681. // authentication api_key required
  9682. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  9683. // authentication bearer required
  9684. // http bearer authentication required
  9685. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  9686. localVarHeaderParameter['Content-Type'] = 'application/json';
  9687. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9688. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9689. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9690. localVarRequestOptions.data = serializeDataIfNeeded(scanLibraryDto, localVarRequestOptions, configuration)
  9691. return {
  9692. url: toPathString(localVarUrlObj),
  9693. options: localVarRequestOptions,
  9694. };
  9695. },
  9696. /**
  9697. *
  9698. * @param {string} id
  9699. * @param {UpdateLibraryDto} updateLibraryDto
  9700. * @param {*} [options] Override http request option.
  9701. * @throws {RequiredError}
  9702. */
  9703. updateLibrary: async (id: string, updateLibraryDto: UpdateLibraryDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9704. // verify required parameter 'id' is not null or undefined
  9705. assertParamExists('updateLibrary', 'id', id)
  9706. // verify required parameter 'updateLibraryDto' is not null or undefined
  9707. assertParamExists('updateLibrary', 'updateLibraryDto', updateLibraryDto)
  9708. const localVarPath = `/library/{id}`
  9709. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  9710. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9711. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9712. let baseOptions;
  9713. if (configuration) {
  9714. baseOptions = configuration.baseOptions;
  9715. }
  9716. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  9717. const localVarHeaderParameter = {} as any;
  9718. const localVarQueryParameter = {} as any;
  9719. // authentication cookie required
  9720. // authentication api_key required
  9721. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  9722. // authentication bearer required
  9723. // http bearer authentication required
  9724. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  9725. localVarHeaderParameter['Content-Type'] = 'application/json';
  9726. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9727. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9728. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9729. localVarRequestOptions.data = serializeDataIfNeeded(updateLibraryDto, localVarRequestOptions, configuration)
  9730. return {
  9731. url: toPathString(localVarUrlObj),
  9732. options: localVarRequestOptions,
  9733. };
  9734. },
  9735. }
  9736. };
  9737. /**
  9738. * LibraryApi - functional programming interface
  9739. * @export
  9740. */
  9741. export const LibraryApiFp = function(configuration?: Configuration) {
  9742. const localVarAxiosParamCreator = LibraryApiAxiosParamCreator(configuration)
  9743. return {
  9744. /**
  9745. *
  9746. * @param {CreateLibraryDto} createLibraryDto
  9747. * @param {*} [options] Override http request option.
  9748. * @throws {RequiredError}
  9749. */
  9750. async createLibrary(createLibraryDto: CreateLibraryDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LibraryResponseDto>> {
  9751. const localVarAxiosArgs = await localVarAxiosParamCreator.createLibrary(createLibraryDto, options);
  9752. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9753. },
  9754. /**
  9755. *
  9756. * @param {string} id
  9757. * @param {*} [options] Override http request option.
  9758. * @throws {RequiredError}
  9759. */
  9760. async deleteLibrary(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  9761. const localVarAxiosArgs = await localVarAxiosParamCreator.deleteLibrary(id, options);
  9762. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9763. },
  9764. /**
  9765. *
  9766. * @param {*} [options] Override http request option.
  9767. * @throws {RequiredError}
  9768. */
  9769. async getAllForUser(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<LibraryResponseDto>>> {
  9770. const localVarAxiosArgs = await localVarAxiosParamCreator.getAllForUser(options);
  9771. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9772. },
  9773. /**
  9774. *
  9775. * @param {string} id
  9776. * @param {*} [options] Override http request option.
  9777. * @throws {RequiredError}
  9778. */
  9779. async getLibraryInfo(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LibraryResponseDto>> {
  9780. const localVarAxiosArgs = await localVarAxiosParamCreator.getLibraryInfo(id, options);
  9781. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9782. },
  9783. /**
  9784. *
  9785. * @param {string} id
  9786. * @param {*} [options] Override http request option.
  9787. * @throws {RequiredError}
  9788. */
  9789. async getLibraryStatistics(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LibraryStatsResponseDto>> {
  9790. const localVarAxiosArgs = await localVarAxiosParamCreator.getLibraryStatistics(id, options);
  9791. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9792. },
  9793. /**
  9794. *
  9795. * @param {string} id
  9796. * @param {*} [options] Override http request option.
  9797. * @throws {RequiredError}
  9798. */
  9799. async removeOfflineFiles(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  9800. const localVarAxiosArgs = await localVarAxiosParamCreator.removeOfflineFiles(id, options);
  9801. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9802. },
  9803. /**
  9804. *
  9805. * @param {string} id
  9806. * @param {ScanLibraryDto} scanLibraryDto
  9807. * @param {*} [options] Override http request option.
  9808. * @throws {RequiredError}
  9809. */
  9810. async scanLibrary(id: string, scanLibraryDto: ScanLibraryDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  9811. const localVarAxiosArgs = await localVarAxiosParamCreator.scanLibrary(id, scanLibraryDto, options);
  9812. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9813. },
  9814. /**
  9815. *
  9816. * @param {string} id
  9817. * @param {UpdateLibraryDto} updateLibraryDto
  9818. * @param {*} [options] Override http request option.
  9819. * @throws {RequiredError}
  9820. */
  9821. async updateLibrary(id: string, updateLibraryDto: UpdateLibraryDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LibraryResponseDto>> {
  9822. const localVarAxiosArgs = await localVarAxiosParamCreator.updateLibrary(id, updateLibraryDto, options);
  9823. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9824. },
  9825. }
  9826. };
  9827. /**
  9828. * LibraryApi - factory interface
  9829. * @export
  9830. */
  9831. export const LibraryApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  9832. const localVarFp = LibraryApiFp(configuration)
  9833. return {
  9834. /**
  9835. *
  9836. * @param {LibraryApiCreateLibraryRequest} requestParameters Request parameters.
  9837. * @param {*} [options] Override http request option.
  9838. * @throws {RequiredError}
  9839. */
  9840. createLibrary(requestParameters: LibraryApiCreateLibraryRequest, options?: AxiosRequestConfig): AxiosPromise<LibraryResponseDto> {
  9841. return localVarFp.createLibrary(requestParameters.createLibraryDto, options).then((request) => request(axios, basePath));
  9842. },
  9843. /**
  9844. *
  9845. * @param {LibraryApiDeleteLibraryRequest} requestParameters Request parameters.
  9846. * @param {*} [options] Override http request option.
  9847. * @throws {RequiredError}
  9848. */
  9849. deleteLibrary(requestParameters: LibraryApiDeleteLibraryRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  9850. return localVarFp.deleteLibrary(requestParameters.id, options).then((request) => request(axios, basePath));
  9851. },
  9852. /**
  9853. *
  9854. * @param {*} [options] Override http request option.
  9855. * @throws {RequiredError}
  9856. */
  9857. getAllForUser(options?: AxiosRequestConfig): AxiosPromise<Array<LibraryResponseDto>> {
  9858. return localVarFp.getAllForUser(options).then((request) => request(axios, basePath));
  9859. },
  9860. /**
  9861. *
  9862. * @param {LibraryApiGetLibraryInfoRequest} requestParameters Request parameters.
  9863. * @param {*} [options] Override http request option.
  9864. * @throws {RequiredError}
  9865. */
  9866. getLibraryInfo(requestParameters: LibraryApiGetLibraryInfoRequest, options?: AxiosRequestConfig): AxiosPromise<LibraryResponseDto> {
  9867. return localVarFp.getLibraryInfo(requestParameters.id, options).then((request) => request(axios, basePath));
  9868. },
  9869. /**
  9870. *
  9871. * @param {LibraryApiGetLibraryStatisticsRequest} requestParameters Request parameters.
  9872. * @param {*} [options] Override http request option.
  9873. * @throws {RequiredError}
  9874. */
  9875. getLibraryStatistics(requestParameters: LibraryApiGetLibraryStatisticsRequest, options?: AxiosRequestConfig): AxiosPromise<LibraryStatsResponseDto> {
  9876. return localVarFp.getLibraryStatistics(requestParameters.id, options).then((request) => request(axios, basePath));
  9877. },
  9878. /**
  9879. *
  9880. * @param {LibraryApiRemoveOfflineFilesRequest} requestParameters Request parameters.
  9881. * @param {*} [options] Override http request option.
  9882. * @throws {RequiredError}
  9883. */
  9884. removeOfflineFiles(requestParameters: LibraryApiRemoveOfflineFilesRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  9885. return localVarFp.removeOfflineFiles(requestParameters.id, options).then((request) => request(axios, basePath));
  9886. },
  9887. /**
  9888. *
  9889. * @param {LibraryApiScanLibraryRequest} requestParameters Request parameters.
  9890. * @param {*} [options] Override http request option.
  9891. * @throws {RequiredError}
  9892. */
  9893. scanLibrary(requestParameters: LibraryApiScanLibraryRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  9894. return localVarFp.scanLibrary(requestParameters.id, requestParameters.scanLibraryDto, options).then((request) => request(axios, basePath));
  9895. },
  9896. /**
  9897. *
  9898. * @param {LibraryApiUpdateLibraryRequest} requestParameters Request parameters.
  9899. * @param {*} [options] Override http request option.
  9900. * @throws {RequiredError}
  9901. */
  9902. updateLibrary(requestParameters: LibraryApiUpdateLibraryRequest, options?: AxiosRequestConfig): AxiosPromise<LibraryResponseDto> {
  9903. return localVarFp.updateLibrary(requestParameters.id, requestParameters.updateLibraryDto, options).then((request) => request(axios, basePath));
  9904. },
  9905. };
  9906. };
  9907. /**
  9908. * Request parameters for createLibrary operation in LibraryApi.
  9909. * @export
  9910. * @interface LibraryApiCreateLibraryRequest
  9911. */
  9912. export interface LibraryApiCreateLibraryRequest {
  9913. /**
  9914. *
  9915. * @type {CreateLibraryDto}
  9916. * @memberof LibraryApiCreateLibrary
  9917. */
  9918. readonly createLibraryDto: CreateLibraryDto
  9919. }
  9920. /**
  9921. * Request parameters for deleteLibrary operation in LibraryApi.
  9922. * @export
  9923. * @interface LibraryApiDeleteLibraryRequest
  9924. */
  9925. export interface LibraryApiDeleteLibraryRequest {
  9926. /**
  9927. *
  9928. * @type {string}
  9929. * @memberof LibraryApiDeleteLibrary
  9930. */
  9931. readonly id: string
  9932. }
  9933. /**
  9934. * Request parameters for getLibraryInfo operation in LibraryApi.
  9935. * @export
  9936. * @interface LibraryApiGetLibraryInfoRequest
  9937. */
  9938. export interface LibraryApiGetLibraryInfoRequest {
  9939. /**
  9940. *
  9941. * @type {string}
  9942. * @memberof LibraryApiGetLibraryInfo
  9943. */
  9944. readonly id: string
  9945. }
  9946. /**
  9947. * Request parameters for getLibraryStatistics operation in LibraryApi.
  9948. * @export
  9949. * @interface LibraryApiGetLibraryStatisticsRequest
  9950. */
  9951. export interface LibraryApiGetLibraryStatisticsRequest {
  9952. /**
  9953. *
  9954. * @type {string}
  9955. * @memberof LibraryApiGetLibraryStatistics
  9956. */
  9957. readonly id: string
  9958. }
  9959. /**
  9960. * Request parameters for removeOfflineFiles operation in LibraryApi.
  9961. * @export
  9962. * @interface LibraryApiRemoveOfflineFilesRequest
  9963. */
  9964. export interface LibraryApiRemoveOfflineFilesRequest {
  9965. /**
  9966. *
  9967. * @type {string}
  9968. * @memberof LibraryApiRemoveOfflineFiles
  9969. */
  9970. readonly id: string
  9971. }
  9972. /**
  9973. * Request parameters for scanLibrary operation in LibraryApi.
  9974. * @export
  9975. * @interface LibraryApiScanLibraryRequest
  9976. */
  9977. export interface LibraryApiScanLibraryRequest {
  9978. /**
  9979. *
  9980. * @type {string}
  9981. * @memberof LibraryApiScanLibrary
  9982. */
  9983. readonly id: string
  9984. /**
  9985. *
  9986. * @type {ScanLibraryDto}
  9987. * @memberof LibraryApiScanLibrary
  9988. */
  9989. readonly scanLibraryDto: ScanLibraryDto
  9990. }
  9991. /**
  9992. * Request parameters for updateLibrary operation in LibraryApi.
  9993. * @export
  9994. * @interface LibraryApiUpdateLibraryRequest
  9995. */
  9996. export interface LibraryApiUpdateLibraryRequest {
  9997. /**
  9998. *
  9999. * @type {string}
  10000. * @memberof LibraryApiUpdateLibrary
  10001. */
  10002. readonly id: string
  10003. /**
  10004. *
  10005. * @type {UpdateLibraryDto}
  10006. * @memberof LibraryApiUpdateLibrary
  10007. */
  10008. readonly updateLibraryDto: UpdateLibraryDto
  10009. }
  10010. /**
  10011. * LibraryApi - object-oriented interface
  10012. * @export
  10013. * @class LibraryApi
  10014. * @extends {BaseAPI}
  10015. */
  10016. export class LibraryApi extends BaseAPI {
  10017. /**
  10018. *
  10019. * @param {LibraryApiCreateLibraryRequest} requestParameters Request parameters.
  10020. * @param {*} [options] Override http request option.
  10021. * @throws {RequiredError}
  10022. * @memberof LibraryApi
  10023. */
  10024. public createLibrary(requestParameters: LibraryApiCreateLibraryRequest, options?: AxiosRequestConfig) {
  10025. return LibraryApiFp(this.configuration).createLibrary(requestParameters.createLibraryDto, options).then((request) => request(this.axios, this.basePath));
  10026. }
  10027. /**
  10028. *
  10029. * @param {LibraryApiDeleteLibraryRequest} requestParameters Request parameters.
  10030. * @param {*} [options] Override http request option.
  10031. * @throws {RequiredError}
  10032. * @memberof LibraryApi
  10033. */
  10034. public deleteLibrary(requestParameters: LibraryApiDeleteLibraryRequest, options?: AxiosRequestConfig) {
  10035. return LibraryApiFp(this.configuration).deleteLibrary(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  10036. }
  10037. /**
  10038. *
  10039. * @param {*} [options] Override http request option.
  10040. * @throws {RequiredError}
  10041. * @memberof LibraryApi
  10042. */
  10043. public getAllForUser(options?: AxiosRequestConfig) {
  10044. return LibraryApiFp(this.configuration).getAllForUser(options).then((request) => request(this.axios, this.basePath));
  10045. }
  10046. /**
  10047. *
  10048. * @param {LibraryApiGetLibraryInfoRequest} requestParameters Request parameters.
  10049. * @param {*} [options] Override http request option.
  10050. * @throws {RequiredError}
  10051. * @memberof LibraryApi
  10052. */
  10053. public getLibraryInfo(requestParameters: LibraryApiGetLibraryInfoRequest, options?: AxiosRequestConfig) {
  10054. return LibraryApiFp(this.configuration).getLibraryInfo(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  10055. }
  10056. /**
  10057. *
  10058. * @param {LibraryApiGetLibraryStatisticsRequest} requestParameters Request parameters.
  10059. * @param {*} [options] Override http request option.
  10060. * @throws {RequiredError}
  10061. * @memberof LibraryApi
  10062. */
  10063. public getLibraryStatistics(requestParameters: LibraryApiGetLibraryStatisticsRequest, options?: AxiosRequestConfig) {
  10064. return LibraryApiFp(this.configuration).getLibraryStatistics(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  10065. }
  10066. /**
  10067. *
  10068. * @param {LibraryApiRemoveOfflineFilesRequest} requestParameters Request parameters.
  10069. * @param {*} [options] Override http request option.
  10070. * @throws {RequiredError}
  10071. * @memberof LibraryApi
  10072. */
  10073. public removeOfflineFiles(requestParameters: LibraryApiRemoveOfflineFilesRequest, options?: AxiosRequestConfig) {
  10074. return LibraryApiFp(this.configuration).removeOfflineFiles(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  10075. }
  10076. /**
  10077. *
  10078. * @param {LibraryApiScanLibraryRequest} requestParameters Request parameters.
  10079. * @param {*} [options] Override http request option.
  10080. * @throws {RequiredError}
  10081. * @memberof LibraryApi
  10082. */
  10083. public scanLibrary(requestParameters: LibraryApiScanLibraryRequest, options?: AxiosRequestConfig) {
  10084. return LibraryApiFp(this.configuration).scanLibrary(requestParameters.id, requestParameters.scanLibraryDto, options).then((request) => request(this.axios, this.basePath));
  10085. }
  10086. /**
  10087. *
  10088. * @param {LibraryApiUpdateLibraryRequest} requestParameters Request parameters.
  10089. * @param {*} [options] Override http request option.
  10090. * @throws {RequiredError}
  10091. * @memberof LibraryApi
  10092. */
  10093. public updateLibrary(requestParameters: LibraryApiUpdateLibraryRequest, options?: AxiosRequestConfig) {
  10094. return LibraryApiFp(this.configuration).updateLibrary(requestParameters.id, requestParameters.updateLibraryDto, options).then((request) => request(this.axios, this.basePath));
  10095. }
  10096. }
  10097. /**
  10098. * OAuthApi - axios parameter creator
  10099. * @export
  10100. */
  10101. export const OAuthApiAxiosParamCreator = function (configuration?: Configuration) {
  10102. return {
  10103. /**
  10104. *
  10105. * @param {OAuthConfigDto} oAuthConfigDto
  10106. * @param {*} [options] Override http request option.
  10107. * @throws {RequiredError}
  10108. */
  10109. authorizeOAuth: async (oAuthConfigDto: OAuthConfigDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10110. // verify required parameter 'oAuthConfigDto' is not null or undefined
  10111. assertParamExists('authorizeOAuth', 'oAuthConfigDto', oAuthConfigDto)
  10112. const localVarPath = `/oauth/authorize`;
  10113. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10114. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10115. let baseOptions;
  10116. if (configuration) {
  10117. baseOptions = configuration.baseOptions;
  10118. }
  10119. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  10120. const localVarHeaderParameter = {} as any;
  10121. const localVarQueryParameter = {} as any;
  10122. localVarHeaderParameter['Content-Type'] = 'application/json';
  10123. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10124. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10125. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10126. localVarRequestOptions.data = serializeDataIfNeeded(oAuthConfigDto, localVarRequestOptions, configuration)
  10127. return {
  10128. url: toPathString(localVarUrlObj),
  10129. options: localVarRequestOptions,
  10130. };
  10131. },
  10132. /**
  10133. *
  10134. * @param {OAuthCallbackDto} oAuthCallbackDto
  10135. * @param {*} [options] Override http request option.
  10136. * @throws {RequiredError}
  10137. */
  10138. callback: async (oAuthCallbackDto: OAuthCallbackDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10139. // verify required parameter 'oAuthCallbackDto' is not null or undefined
  10140. assertParamExists('callback', 'oAuthCallbackDto', oAuthCallbackDto)
  10141. const localVarPath = `/oauth/callback`;
  10142. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10143. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10144. let baseOptions;
  10145. if (configuration) {
  10146. baseOptions = configuration.baseOptions;
  10147. }
  10148. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  10149. const localVarHeaderParameter = {} as any;
  10150. const localVarQueryParameter = {} as any;
  10151. localVarHeaderParameter['Content-Type'] = 'application/json';
  10152. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10153. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10154. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10155. localVarRequestOptions.data = serializeDataIfNeeded(oAuthCallbackDto, localVarRequestOptions, configuration)
  10156. return {
  10157. url: toPathString(localVarUrlObj),
  10158. options: localVarRequestOptions,
  10159. };
  10160. },
  10161. /**
  10162. * @deprecated use feature flags and /oauth/authorize
  10163. * @param {OAuthConfigDto} oAuthConfigDto
  10164. * @param {*} [options] Override http request option.
  10165. * @deprecated
  10166. * @throws {RequiredError}
  10167. */
  10168. generateConfig: async (oAuthConfigDto: OAuthConfigDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10169. // verify required parameter 'oAuthConfigDto' is not null or undefined
  10170. assertParamExists('generateConfig', 'oAuthConfigDto', oAuthConfigDto)
  10171. const localVarPath = `/oauth/config`;
  10172. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10173. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10174. let baseOptions;
  10175. if (configuration) {
  10176. baseOptions = configuration.baseOptions;
  10177. }
  10178. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  10179. const localVarHeaderParameter = {} as any;
  10180. const localVarQueryParameter = {} as any;
  10181. localVarHeaderParameter['Content-Type'] = 'application/json';
  10182. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10183. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10184. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10185. localVarRequestOptions.data = serializeDataIfNeeded(oAuthConfigDto, localVarRequestOptions, configuration)
  10186. return {
  10187. url: toPathString(localVarUrlObj),
  10188. options: localVarRequestOptions,
  10189. };
  10190. },
  10191. /**
  10192. *
  10193. * @param {OAuthCallbackDto} oAuthCallbackDto
  10194. * @param {*} [options] Override http request option.
  10195. * @throws {RequiredError}
  10196. */
  10197. link: async (oAuthCallbackDto: OAuthCallbackDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10198. // verify required parameter 'oAuthCallbackDto' is not null or undefined
  10199. assertParamExists('link', 'oAuthCallbackDto', oAuthCallbackDto)
  10200. const localVarPath = `/oauth/link`;
  10201. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10202. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10203. let baseOptions;
  10204. if (configuration) {
  10205. baseOptions = configuration.baseOptions;
  10206. }
  10207. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  10208. const localVarHeaderParameter = {} as any;
  10209. const localVarQueryParameter = {} as any;
  10210. // authentication cookie required
  10211. // authentication api_key required
  10212. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10213. // authentication bearer required
  10214. // http bearer authentication required
  10215. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10216. localVarHeaderParameter['Content-Type'] = 'application/json';
  10217. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10218. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10219. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10220. localVarRequestOptions.data = serializeDataIfNeeded(oAuthCallbackDto, localVarRequestOptions, configuration)
  10221. return {
  10222. url: toPathString(localVarUrlObj),
  10223. options: localVarRequestOptions,
  10224. };
  10225. },
  10226. /**
  10227. *
  10228. * @param {*} [options] Override http request option.
  10229. * @throws {RequiredError}
  10230. */
  10231. mobileRedirect: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10232. const localVarPath = `/oauth/mobile-redirect`;
  10233. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10234. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10235. let baseOptions;
  10236. if (configuration) {
  10237. baseOptions = configuration.baseOptions;
  10238. }
  10239. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  10240. const localVarHeaderParameter = {} as any;
  10241. const localVarQueryParameter = {} as any;
  10242. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10243. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10244. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10245. return {
  10246. url: toPathString(localVarUrlObj),
  10247. options: localVarRequestOptions,
  10248. };
  10249. },
  10250. /**
  10251. *
  10252. * @param {*} [options] Override http request option.
  10253. * @throws {RequiredError}
  10254. */
  10255. unlink: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10256. const localVarPath = `/oauth/unlink`;
  10257. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10258. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10259. let baseOptions;
  10260. if (configuration) {
  10261. baseOptions = configuration.baseOptions;
  10262. }
  10263. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  10264. const localVarHeaderParameter = {} as any;
  10265. const localVarQueryParameter = {} as any;
  10266. // authentication cookie required
  10267. // authentication api_key required
  10268. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10269. // authentication bearer required
  10270. // http bearer authentication required
  10271. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10272. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10273. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10274. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10275. return {
  10276. url: toPathString(localVarUrlObj),
  10277. options: localVarRequestOptions,
  10278. };
  10279. },
  10280. }
  10281. };
  10282. /**
  10283. * OAuthApi - functional programming interface
  10284. * @export
  10285. */
  10286. export const OAuthApiFp = function(configuration?: Configuration) {
  10287. const localVarAxiosParamCreator = OAuthApiAxiosParamCreator(configuration)
  10288. return {
  10289. /**
  10290. *
  10291. * @param {OAuthConfigDto} oAuthConfigDto
  10292. * @param {*} [options] Override http request option.
  10293. * @throws {RequiredError}
  10294. */
  10295. async authorizeOAuth(oAuthConfigDto: OAuthConfigDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OAuthAuthorizeResponseDto>> {
  10296. const localVarAxiosArgs = await localVarAxiosParamCreator.authorizeOAuth(oAuthConfigDto, options);
  10297. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10298. },
  10299. /**
  10300. *
  10301. * @param {OAuthCallbackDto} oAuthCallbackDto
  10302. * @param {*} [options] Override http request option.
  10303. * @throws {RequiredError}
  10304. */
  10305. async callback(oAuthCallbackDto: OAuthCallbackDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LoginResponseDto>> {
  10306. const localVarAxiosArgs = await localVarAxiosParamCreator.callback(oAuthCallbackDto, options);
  10307. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10308. },
  10309. /**
  10310. * @deprecated use feature flags and /oauth/authorize
  10311. * @param {OAuthConfigDto} oAuthConfigDto
  10312. * @param {*} [options] Override http request option.
  10313. * @deprecated
  10314. * @throws {RequiredError}
  10315. */
  10316. async generateConfig(oAuthConfigDto: OAuthConfigDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OAuthConfigResponseDto>> {
  10317. const localVarAxiosArgs = await localVarAxiosParamCreator.generateConfig(oAuthConfigDto, options);
  10318. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10319. },
  10320. /**
  10321. *
  10322. * @param {OAuthCallbackDto} oAuthCallbackDto
  10323. * @param {*} [options] Override http request option.
  10324. * @throws {RequiredError}
  10325. */
  10326. async link(oAuthCallbackDto: OAuthCallbackDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  10327. const localVarAxiosArgs = await localVarAxiosParamCreator.link(oAuthCallbackDto, options);
  10328. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10329. },
  10330. /**
  10331. *
  10332. * @param {*} [options] Override http request option.
  10333. * @throws {RequiredError}
  10334. */
  10335. async mobileRedirect(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  10336. const localVarAxiosArgs = await localVarAxiosParamCreator.mobileRedirect(options);
  10337. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10338. },
  10339. /**
  10340. *
  10341. * @param {*} [options] Override http request option.
  10342. * @throws {RequiredError}
  10343. */
  10344. async unlink(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  10345. const localVarAxiosArgs = await localVarAxiosParamCreator.unlink(options);
  10346. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10347. },
  10348. }
  10349. };
  10350. /**
  10351. * OAuthApi - factory interface
  10352. * @export
  10353. */
  10354. export const OAuthApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  10355. const localVarFp = OAuthApiFp(configuration)
  10356. return {
  10357. /**
  10358. *
  10359. * @param {OAuthApiAuthorizeOAuthRequest} requestParameters Request parameters.
  10360. * @param {*} [options] Override http request option.
  10361. * @throws {RequiredError}
  10362. */
  10363. authorizeOAuth(requestParameters: OAuthApiAuthorizeOAuthRequest, options?: AxiosRequestConfig): AxiosPromise<OAuthAuthorizeResponseDto> {
  10364. return localVarFp.authorizeOAuth(requestParameters.oAuthConfigDto, options).then((request) => request(axios, basePath));
  10365. },
  10366. /**
  10367. *
  10368. * @param {OAuthApiCallbackRequest} requestParameters Request parameters.
  10369. * @param {*} [options] Override http request option.
  10370. * @throws {RequiredError}
  10371. */
  10372. callback(requestParameters: OAuthApiCallbackRequest, options?: AxiosRequestConfig): AxiosPromise<LoginResponseDto> {
  10373. return localVarFp.callback(requestParameters.oAuthCallbackDto, options).then((request) => request(axios, basePath));
  10374. },
  10375. /**
  10376. * @deprecated use feature flags and /oauth/authorize
  10377. * @param {OAuthApiGenerateConfigRequest} requestParameters Request parameters.
  10378. * @param {*} [options] Override http request option.
  10379. * @deprecated
  10380. * @throws {RequiredError}
  10381. */
  10382. generateConfig(requestParameters: OAuthApiGenerateConfigRequest, options?: AxiosRequestConfig): AxiosPromise<OAuthConfigResponseDto> {
  10383. return localVarFp.generateConfig(requestParameters.oAuthConfigDto, options).then((request) => request(axios, basePath));
  10384. },
  10385. /**
  10386. *
  10387. * @param {OAuthApiLinkRequest} requestParameters Request parameters.
  10388. * @param {*} [options] Override http request option.
  10389. * @throws {RequiredError}
  10390. */
  10391. link(requestParameters: OAuthApiLinkRequest, options?: AxiosRequestConfig): AxiosPromise<UserResponseDto> {
  10392. return localVarFp.link(requestParameters.oAuthCallbackDto, options).then((request) => request(axios, basePath));
  10393. },
  10394. /**
  10395. *
  10396. * @param {*} [options] Override http request option.
  10397. * @throws {RequiredError}
  10398. */
  10399. mobileRedirect(options?: AxiosRequestConfig): AxiosPromise<void> {
  10400. return localVarFp.mobileRedirect(options).then((request) => request(axios, basePath));
  10401. },
  10402. /**
  10403. *
  10404. * @param {*} [options] Override http request option.
  10405. * @throws {RequiredError}
  10406. */
  10407. unlink(options?: AxiosRequestConfig): AxiosPromise<UserResponseDto> {
  10408. return localVarFp.unlink(options).then((request) => request(axios, basePath));
  10409. },
  10410. };
  10411. };
  10412. /**
  10413. * Request parameters for authorizeOAuth operation in OAuthApi.
  10414. * @export
  10415. * @interface OAuthApiAuthorizeOAuthRequest
  10416. */
  10417. export interface OAuthApiAuthorizeOAuthRequest {
  10418. /**
  10419. *
  10420. * @type {OAuthConfigDto}
  10421. * @memberof OAuthApiAuthorizeOAuth
  10422. */
  10423. readonly oAuthConfigDto: OAuthConfigDto
  10424. }
  10425. /**
  10426. * Request parameters for callback operation in OAuthApi.
  10427. * @export
  10428. * @interface OAuthApiCallbackRequest
  10429. */
  10430. export interface OAuthApiCallbackRequest {
  10431. /**
  10432. *
  10433. * @type {OAuthCallbackDto}
  10434. * @memberof OAuthApiCallback
  10435. */
  10436. readonly oAuthCallbackDto: OAuthCallbackDto
  10437. }
  10438. /**
  10439. * Request parameters for generateConfig operation in OAuthApi.
  10440. * @export
  10441. * @interface OAuthApiGenerateConfigRequest
  10442. */
  10443. export interface OAuthApiGenerateConfigRequest {
  10444. /**
  10445. *
  10446. * @type {OAuthConfigDto}
  10447. * @memberof OAuthApiGenerateConfig
  10448. */
  10449. readonly oAuthConfigDto: OAuthConfigDto
  10450. }
  10451. /**
  10452. * Request parameters for link operation in OAuthApi.
  10453. * @export
  10454. * @interface OAuthApiLinkRequest
  10455. */
  10456. export interface OAuthApiLinkRequest {
  10457. /**
  10458. *
  10459. * @type {OAuthCallbackDto}
  10460. * @memberof OAuthApiLink
  10461. */
  10462. readonly oAuthCallbackDto: OAuthCallbackDto
  10463. }
  10464. /**
  10465. * OAuthApi - object-oriented interface
  10466. * @export
  10467. * @class OAuthApi
  10468. * @extends {BaseAPI}
  10469. */
  10470. export class OAuthApi extends BaseAPI {
  10471. /**
  10472. *
  10473. * @param {OAuthApiAuthorizeOAuthRequest} requestParameters Request parameters.
  10474. * @param {*} [options] Override http request option.
  10475. * @throws {RequiredError}
  10476. * @memberof OAuthApi
  10477. */
  10478. public authorizeOAuth(requestParameters: OAuthApiAuthorizeOAuthRequest, options?: AxiosRequestConfig) {
  10479. return OAuthApiFp(this.configuration).authorizeOAuth(requestParameters.oAuthConfigDto, options).then((request) => request(this.axios, this.basePath));
  10480. }
  10481. /**
  10482. *
  10483. * @param {OAuthApiCallbackRequest} requestParameters Request parameters.
  10484. * @param {*} [options] Override http request option.
  10485. * @throws {RequiredError}
  10486. * @memberof OAuthApi
  10487. */
  10488. public callback(requestParameters: OAuthApiCallbackRequest, options?: AxiosRequestConfig) {
  10489. return OAuthApiFp(this.configuration).callback(requestParameters.oAuthCallbackDto, options).then((request) => request(this.axios, this.basePath));
  10490. }
  10491. /**
  10492. * @deprecated use feature flags and /oauth/authorize
  10493. * @param {OAuthApiGenerateConfigRequest} requestParameters Request parameters.
  10494. * @param {*} [options] Override http request option.
  10495. * @deprecated
  10496. * @throws {RequiredError}
  10497. * @memberof OAuthApi
  10498. */
  10499. public generateConfig(requestParameters: OAuthApiGenerateConfigRequest, options?: AxiosRequestConfig) {
  10500. return OAuthApiFp(this.configuration).generateConfig(requestParameters.oAuthConfigDto, options).then((request) => request(this.axios, this.basePath));
  10501. }
  10502. /**
  10503. *
  10504. * @param {OAuthApiLinkRequest} requestParameters Request parameters.
  10505. * @param {*} [options] Override http request option.
  10506. * @throws {RequiredError}
  10507. * @memberof OAuthApi
  10508. */
  10509. public link(requestParameters: OAuthApiLinkRequest, options?: AxiosRequestConfig) {
  10510. return OAuthApiFp(this.configuration).link(requestParameters.oAuthCallbackDto, options).then((request) => request(this.axios, this.basePath));
  10511. }
  10512. /**
  10513. *
  10514. * @param {*} [options] Override http request option.
  10515. * @throws {RequiredError}
  10516. * @memberof OAuthApi
  10517. */
  10518. public mobileRedirect(options?: AxiosRequestConfig) {
  10519. return OAuthApiFp(this.configuration).mobileRedirect(options).then((request) => request(this.axios, this.basePath));
  10520. }
  10521. /**
  10522. *
  10523. * @param {*} [options] Override http request option.
  10524. * @throws {RequiredError}
  10525. * @memberof OAuthApi
  10526. */
  10527. public unlink(options?: AxiosRequestConfig) {
  10528. return OAuthApiFp(this.configuration).unlink(options).then((request) => request(this.axios, this.basePath));
  10529. }
  10530. }
  10531. /**
  10532. * PartnerApi - axios parameter creator
  10533. * @export
  10534. */
  10535. export const PartnerApiAxiosParamCreator = function (configuration?: Configuration) {
  10536. return {
  10537. /**
  10538. *
  10539. * @param {string} id
  10540. * @param {*} [options] Override http request option.
  10541. * @throws {RequiredError}
  10542. */
  10543. createPartner: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10544. // verify required parameter 'id' is not null or undefined
  10545. assertParamExists('createPartner', 'id', id)
  10546. const localVarPath = `/partner/{id}`
  10547. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  10548. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10549. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10550. let baseOptions;
  10551. if (configuration) {
  10552. baseOptions = configuration.baseOptions;
  10553. }
  10554. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  10555. const localVarHeaderParameter = {} as any;
  10556. const localVarQueryParameter = {} as any;
  10557. // authentication cookie required
  10558. // authentication api_key required
  10559. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10560. // authentication bearer required
  10561. // http bearer authentication required
  10562. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10563. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10564. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10565. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10566. return {
  10567. url: toPathString(localVarUrlObj),
  10568. options: localVarRequestOptions,
  10569. };
  10570. },
  10571. /**
  10572. *
  10573. * @param {'shared-by' | 'shared-with'} direction
  10574. * @param {*} [options] Override http request option.
  10575. * @throws {RequiredError}
  10576. */
  10577. getPartners: async (direction: 'shared-by' | 'shared-with', options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10578. // verify required parameter 'direction' is not null or undefined
  10579. assertParamExists('getPartners', 'direction', direction)
  10580. const localVarPath = `/partner`;
  10581. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10582. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10583. let baseOptions;
  10584. if (configuration) {
  10585. baseOptions = configuration.baseOptions;
  10586. }
  10587. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  10588. const localVarHeaderParameter = {} as any;
  10589. const localVarQueryParameter = {} as any;
  10590. // authentication cookie required
  10591. // authentication api_key required
  10592. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10593. // authentication bearer required
  10594. // http bearer authentication required
  10595. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10596. if (direction !== undefined) {
  10597. localVarQueryParameter['direction'] = direction;
  10598. }
  10599. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10600. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10601. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10602. return {
  10603. url: toPathString(localVarUrlObj),
  10604. options: localVarRequestOptions,
  10605. };
  10606. },
  10607. /**
  10608. *
  10609. * @param {string} id
  10610. * @param {*} [options] Override http request option.
  10611. * @throws {RequiredError}
  10612. */
  10613. removePartner: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10614. // verify required parameter 'id' is not null or undefined
  10615. assertParamExists('removePartner', 'id', id)
  10616. const localVarPath = `/partner/{id}`
  10617. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  10618. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10619. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10620. let baseOptions;
  10621. if (configuration) {
  10622. baseOptions = configuration.baseOptions;
  10623. }
  10624. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  10625. const localVarHeaderParameter = {} as any;
  10626. const localVarQueryParameter = {} as any;
  10627. // authentication cookie required
  10628. // authentication api_key required
  10629. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10630. // authentication bearer required
  10631. // http bearer authentication required
  10632. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10633. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10634. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10635. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10636. return {
  10637. url: toPathString(localVarUrlObj),
  10638. options: localVarRequestOptions,
  10639. };
  10640. },
  10641. }
  10642. };
  10643. /**
  10644. * PartnerApi - functional programming interface
  10645. * @export
  10646. */
  10647. export const PartnerApiFp = function(configuration?: Configuration) {
  10648. const localVarAxiosParamCreator = PartnerApiAxiosParamCreator(configuration)
  10649. return {
  10650. /**
  10651. *
  10652. * @param {string} id
  10653. * @param {*} [options] Override http request option.
  10654. * @throws {RequiredError}
  10655. */
  10656. async createPartner(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  10657. const localVarAxiosArgs = await localVarAxiosParamCreator.createPartner(id, options);
  10658. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10659. },
  10660. /**
  10661. *
  10662. * @param {'shared-by' | 'shared-with'} direction
  10663. * @param {*} [options] Override http request option.
  10664. * @throws {RequiredError}
  10665. */
  10666. async getPartners(direction: 'shared-by' | 'shared-with', options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<UserResponseDto>>> {
  10667. const localVarAxiosArgs = await localVarAxiosParamCreator.getPartners(direction, options);
  10668. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10669. },
  10670. /**
  10671. *
  10672. * @param {string} id
  10673. * @param {*} [options] Override http request option.
  10674. * @throws {RequiredError}
  10675. */
  10676. async removePartner(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  10677. const localVarAxiosArgs = await localVarAxiosParamCreator.removePartner(id, options);
  10678. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10679. },
  10680. }
  10681. };
  10682. /**
  10683. * PartnerApi - factory interface
  10684. * @export
  10685. */
  10686. export const PartnerApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  10687. const localVarFp = PartnerApiFp(configuration)
  10688. return {
  10689. /**
  10690. *
  10691. * @param {PartnerApiCreatePartnerRequest} requestParameters Request parameters.
  10692. * @param {*} [options] Override http request option.
  10693. * @throws {RequiredError}
  10694. */
  10695. createPartner(requestParameters: PartnerApiCreatePartnerRequest, options?: AxiosRequestConfig): AxiosPromise<UserResponseDto> {
  10696. return localVarFp.createPartner(requestParameters.id, options).then((request) => request(axios, basePath));
  10697. },
  10698. /**
  10699. *
  10700. * @param {PartnerApiGetPartnersRequest} requestParameters Request parameters.
  10701. * @param {*} [options] Override http request option.
  10702. * @throws {RequiredError}
  10703. */
  10704. getPartners(requestParameters: PartnerApiGetPartnersRequest, options?: AxiosRequestConfig): AxiosPromise<Array<UserResponseDto>> {
  10705. return localVarFp.getPartners(requestParameters.direction, options).then((request) => request(axios, basePath));
  10706. },
  10707. /**
  10708. *
  10709. * @param {PartnerApiRemovePartnerRequest} requestParameters Request parameters.
  10710. * @param {*} [options] Override http request option.
  10711. * @throws {RequiredError}
  10712. */
  10713. removePartner(requestParameters: PartnerApiRemovePartnerRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  10714. return localVarFp.removePartner(requestParameters.id, options).then((request) => request(axios, basePath));
  10715. },
  10716. };
  10717. };
  10718. /**
  10719. * Request parameters for createPartner operation in PartnerApi.
  10720. * @export
  10721. * @interface PartnerApiCreatePartnerRequest
  10722. */
  10723. export interface PartnerApiCreatePartnerRequest {
  10724. /**
  10725. *
  10726. * @type {string}
  10727. * @memberof PartnerApiCreatePartner
  10728. */
  10729. readonly id: string
  10730. }
  10731. /**
  10732. * Request parameters for getPartners operation in PartnerApi.
  10733. * @export
  10734. * @interface PartnerApiGetPartnersRequest
  10735. */
  10736. export interface PartnerApiGetPartnersRequest {
  10737. /**
  10738. *
  10739. * @type {'shared-by' | 'shared-with'}
  10740. * @memberof PartnerApiGetPartners
  10741. */
  10742. readonly direction: 'shared-by' | 'shared-with'
  10743. }
  10744. /**
  10745. * Request parameters for removePartner operation in PartnerApi.
  10746. * @export
  10747. * @interface PartnerApiRemovePartnerRequest
  10748. */
  10749. export interface PartnerApiRemovePartnerRequest {
  10750. /**
  10751. *
  10752. * @type {string}
  10753. * @memberof PartnerApiRemovePartner
  10754. */
  10755. readonly id: string
  10756. }
  10757. /**
  10758. * PartnerApi - object-oriented interface
  10759. * @export
  10760. * @class PartnerApi
  10761. * @extends {BaseAPI}
  10762. */
  10763. export class PartnerApi extends BaseAPI {
  10764. /**
  10765. *
  10766. * @param {PartnerApiCreatePartnerRequest} requestParameters Request parameters.
  10767. * @param {*} [options] Override http request option.
  10768. * @throws {RequiredError}
  10769. * @memberof PartnerApi
  10770. */
  10771. public createPartner(requestParameters: PartnerApiCreatePartnerRequest, options?: AxiosRequestConfig) {
  10772. return PartnerApiFp(this.configuration).createPartner(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  10773. }
  10774. /**
  10775. *
  10776. * @param {PartnerApiGetPartnersRequest} requestParameters Request parameters.
  10777. * @param {*} [options] Override http request option.
  10778. * @throws {RequiredError}
  10779. * @memberof PartnerApi
  10780. */
  10781. public getPartners(requestParameters: PartnerApiGetPartnersRequest, options?: AxiosRequestConfig) {
  10782. return PartnerApiFp(this.configuration).getPartners(requestParameters.direction, options).then((request) => request(this.axios, this.basePath));
  10783. }
  10784. /**
  10785. *
  10786. * @param {PartnerApiRemovePartnerRequest} requestParameters Request parameters.
  10787. * @param {*} [options] Override http request option.
  10788. * @throws {RequiredError}
  10789. * @memberof PartnerApi
  10790. */
  10791. public removePartner(requestParameters: PartnerApiRemovePartnerRequest, options?: AxiosRequestConfig) {
  10792. return PartnerApiFp(this.configuration).removePartner(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  10793. }
  10794. }
  10795. /**
  10796. * PersonApi - axios parameter creator
  10797. * @export
  10798. */
  10799. export const PersonApiAxiosParamCreator = function (configuration?: Configuration) {
  10800. return {
  10801. /**
  10802. *
  10803. * @param {boolean} [withHidden]
  10804. * @param {*} [options] Override http request option.
  10805. * @throws {RequiredError}
  10806. */
  10807. getAllPeople: async (withHidden?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10808. const localVarPath = `/person`;
  10809. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10810. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10811. let baseOptions;
  10812. if (configuration) {
  10813. baseOptions = configuration.baseOptions;
  10814. }
  10815. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  10816. const localVarHeaderParameter = {} as any;
  10817. const localVarQueryParameter = {} as any;
  10818. // authentication cookie required
  10819. // authentication api_key required
  10820. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10821. // authentication bearer required
  10822. // http bearer authentication required
  10823. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10824. if (withHidden !== undefined) {
  10825. localVarQueryParameter['withHidden'] = withHidden;
  10826. }
  10827. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10828. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10829. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10830. return {
  10831. url: toPathString(localVarUrlObj),
  10832. options: localVarRequestOptions,
  10833. };
  10834. },
  10835. /**
  10836. *
  10837. * @param {string} id
  10838. * @param {*} [options] Override http request option.
  10839. * @throws {RequiredError}
  10840. */
  10841. getPerson: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10842. // verify required parameter 'id' is not null or undefined
  10843. assertParamExists('getPerson', 'id', id)
  10844. const localVarPath = `/person/{id}`
  10845. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  10846. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10847. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10848. let baseOptions;
  10849. if (configuration) {
  10850. baseOptions = configuration.baseOptions;
  10851. }
  10852. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  10853. const localVarHeaderParameter = {} as any;
  10854. const localVarQueryParameter = {} as any;
  10855. // authentication cookie required
  10856. // authentication api_key required
  10857. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10858. // authentication bearer required
  10859. // http bearer authentication required
  10860. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10861. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10862. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10863. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10864. return {
  10865. url: toPathString(localVarUrlObj),
  10866. options: localVarRequestOptions,
  10867. };
  10868. },
  10869. /**
  10870. *
  10871. * @param {string} id
  10872. * @param {*} [options] Override http request option.
  10873. * @throws {RequiredError}
  10874. */
  10875. getPersonAssets: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10876. // verify required parameter 'id' is not null or undefined
  10877. assertParamExists('getPersonAssets', 'id', id)
  10878. const localVarPath = `/person/{id}/assets`
  10879. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  10880. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10881. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10882. let baseOptions;
  10883. if (configuration) {
  10884. baseOptions = configuration.baseOptions;
  10885. }
  10886. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  10887. const localVarHeaderParameter = {} as any;
  10888. const localVarQueryParameter = {} as any;
  10889. // authentication cookie required
  10890. // authentication api_key required
  10891. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10892. // authentication bearer required
  10893. // http bearer authentication required
  10894. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10895. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10896. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10897. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10898. return {
  10899. url: toPathString(localVarUrlObj),
  10900. options: localVarRequestOptions,
  10901. };
  10902. },
  10903. /**
  10904. *
  10905. * @param {string} id
  10906. * @param {*} [options] Override http request option.
  10907. * @throws {RequiredError}
  10908. */
  10909. getPersonThumbnail: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10910. // verify required parameter 'id' is not null or undefined
  10911. assertParamExists('getPersonThumbnail', 'id', id)
  10912. const localVarPath = `/person/{id}/thumbnail`
  10913. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  10914. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10915. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10916. let baseOptions;
  10917. if (configuration) {
  10918. baseOptions = configuration.baseOptions;
  10919. }
  10920. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  10921. const localVarHeaderParameter = {} as any;
  10922. const localVarQueryParameter = {} as any;
  10923. // authentication cookie required
  10924. // authentication api_key required
  10925. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10926. // authentication bearer required
  10927. // http bearer authentication required
  10928. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10929. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10930. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10931. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10932. return {
  10933. url: toPathString(localVarUrlObj),
  10934. options: localVarRequestOptions,
  10935. };
  10936. },
  10937. /**
  10938. *
  10939. * @param {string} id
  10940. * @param {MergePersonDto} mergePersonDto
  10941. * @param {*} [options] Override http request option.
  10942. * @throws {RequiredError}
  10943. */
  10944. mergePerson: async (id: string, mergePersonDto: MergePersonDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10945. // verify required parameter 'id' is not null or undefined
  10946. assertParamExists('mergePerson', 'id', id)
  10947. // verify required parameter 'mergePersonDto' is not null or undefined
  10948. assertParamExists('mergePerson', 'mergePersonDto', mergePersonDto)
  10949. const localVarPath = `/person/{id}/merge`
  10950. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  10951. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10952. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10953. let baseOptions;
  10954. if (configuration) {
  10955. baseOptions = configuration.baseOptions;
  10956. }
  10957. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  10958. const localVarHeaderParameter = {} as any;
  10959. const localVarQueryParameter = {} as any;
  10960. // authentication cookie required
  10961. // authentication api_key required
  10962. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10963. // authentication bearer required
  10964. // http bearer authentication required
  10965. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10966. localVarHeaderParameter['Content-Type'] = 'application/json';
  10967. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10968. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10969. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10970. localVarRequestOptions.data = serializeDataIfNeeded(mergePersonDto, localVarRequestOptions, configuration)
  10971. return {
  10972. url: toPathString(localVarUrlObj),
  10973. options: localVarRequestOptions,
  10974. };
  10975. },
  10976. /**
  10977. *
  10978. * @param {PeopleUpdateDto} peopleUpdateDto
  10979. * @param {*} [options] Override http request option.
  10980. * @throws {RequiredError}
  10981. */
  10982. updatePeople: async (peopleUpdateDto: PeopleUpdateDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10983. // verify required parameter 'peopleUpdateDto' is not null or undefined
  10984. assertParamExists('updatePeople', 'peopleUpdateDto', peopleUpdateDto)
  10985. const localVarPath = `/person`;
  10986. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10987. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10988. let baseOptions;
  10989. if (configuration) {
  10990. baseOptions = configuration.baseOptions;
  10991. }
  10992. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  10993. const localVarHeaderParameter = {} as any;
  10994. const localVarQueryParameter = {} as any;
  10995. // authentication cookie required
  10996. // authentication api_key required
  10997. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10998. // authentication bearer required
  10999. // http bearer authentication required
  11000. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  11001. localVarHeaderParameter['Content-Type'] = 'application/json';
  11002. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11003. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11004. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11005. localVarRequestOptions.data = serializeDataIfNeeded(peopleUpdateDto, localVarRequestOptions, configuration)
  11006. return {
  11007. url: toPathString(localVarUrlObj),
  11008. options: localVarRequestOptions,
  11009. };
  11010. },
  11011. /**
  11012. *
  11013. * @param {string} id
  11014. * @param {PersonUpdateDto} personUpdateDto
  11015. * @param {*} [options] Override http request option.
  11016. * @throws {RequiredError}
  11017. */
  11018. updatePerson: async (id: string, personUpdateDto: PersonUpdateDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11019. // verify required parameter 'id' is not null or undefined
  11020. assertParamExists('updatePerson', 'id', id)
  11021. // verify required parameter 'personUpdateDto' is not null or undefined
  11022. assertParamExists('updatePerson', 'personUpdateDto', personUpdateDto)
  11023. const localVarPath = `/person/{id}`
  11024. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  11025. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11026. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11027. let baseOptions;
  11028. if (configuration) {
  11029. baseOptions = configuration.baseOptions;
  11030. }
  11031. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  11032. const localVarHeaderParameter = {} as any;
  11033. const localVarQueryParameter = {} as any;
  11034. // authentication cookie required
  11035. // authentication api_key required
  11036. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  11037. // authentication bearer required
  11038. // http bearer authentication required
  11039. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  11040. localVarHeaderParameter['Content-Type'] = 'application/json';
  11041. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11042. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11043. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11044. localVarRequestOptions.data = serializeDataIfNeeded(personUpdateDto, localVarRequestOptions, configuration)
  11045. return {
  11046. url: toPathString(localVarUrlObj),
  11047. options: localVarRequestOptions,
  11048. };
  11049. },
  11050. }
  11051. };
  11052. /**
  11053. * PersonApi - functional programming interface
  11054. * @export
  11055. */
  11056. export const PersonApiFp = function(configuration?: Configuration) {
  11057. const localVarAxiosParamCreator = PersonApiAxiosParamCreator(configuration)
  11058. return {
  11059. /**
  11060. *
  11061. * @param {boolean} [withHidden]
  11062. * @param {*} [options] Override http request option.
  11063. * @throws {RequiredError}
  11064. */
  11065. async getAllPeople(withHidden?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PeopleResponseDto>> {
  11066. const localVarAxiosArgs = await localVarAxiosParamCreator.getAllPeople(withHidden, options);
  11067. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11068. },
  11069. /**
  11070. *
  11071. * @param {string} id
  11072. * @param {*} [options] Override http request option.
  11073. * @throws {RequiredError}
  11074. */
  11075. async getPerson(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PersonResponseDto>> {
  11076. const localVarAxiosArgs = await localVarAxiosParamCreator.getPerson(id, options);
  11077. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11078. },
  11079. /**
  11080. *
  11081. * @param {string} id
  11082. * @param {*} [options] Override http request option.
  11083. * @throws {RequiredError}
  11084. */
  11085. async getPersonAssets(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetResponseDto>>> {
  11086. const localVarAxiosArgs = await localVarAxiosParamCreator.getPersonAssets(id, options);
  11087. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11088. },
  11089. /**
  11090. *
  11091. * @param {string} id
  11092. * @param {*} [options] Override http request option.
  11093. * @throws {RequiredError}
  11094. */
  11095. async getPersonThumbnail(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>> {
  11096. const localVarAxiosArgs = await localVarAxiosParamCreator.getPersonThumbnail(id, options);
  11097. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11098. },
  11099. /**
  11100. *
  11101. * @param {string} id
  11102. * @param {MergePersonDto} mergePersonDto
  11103. * @param {*} [options] Override http request option.
  11104. * @throws {RequiredError}
  11105. */
  11106. async mergePerson(id: string, mergePersonDto: MergePersonDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<BulkIdResponseDto>>> {
  11107. const localVarAxiosArgs = await localVarAxiosParamCreator.mergePerson(id, mergePersonDto, options);
  11108. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11109. },
  11110. /**
  11111. *
  11112. * @param {PeopleUpdateDto} peopleUpdateDto
  11113. * @param {*} [options] Override http request option.
  11114. * @throws {RequiredError}
  11115. */
  11116. async updatePeople(peopleUpdateDto: PeopleUpdateDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<BulkIdResponseDto>>> {
  11117. const localVarAxiosArgs = await localVarAxiosParamCreator.updatePeople(peopleUpdateDto, options);
  11118. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11119. },
  11120. /**
  11121. *
  11122. * @param {string} id
  11123. * @param {PersonUpdateDto} personUpdateDto
  11124. * @param {*} [options] Override http request option.
  11125. * @throws {RequiredError}
  11126. */
  11127. async updatePerson(id: string, personUpdateDto: PersonUpdateDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PersonResponseDto>> {
  11128. const localVarAxiosArgs = await localVarAxiosParamCreator.updatePerson(id, personUpdateDto, options);
  11129. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11130. },
  11131. }
  11132. };
  11133. /**
  11134. * PersonApi - factory interface
  11135. * @export
  11136. */
  11137. export const PersonApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  11138. const localVarFp = PersonApiFp(configuration)
  11139. return {
  11140. /**
  11141. *
  11142. * @param {PersonApiGetAllPeopleRequest} requestParameters Request parameters.
  11143. * @param {*} [options] Override http request option.
  11144. * @throws {RequiredError}
  11145. */
  11146. getAllPeople(requestParameters: PersonApiGetAllPeopleRequest = {}, options?: AxiosRequestConfig): AxiosPromise<PeopleResponseDto> {
  11147. return localVarFp.getAllPeople(requestParameters.withHidden, options).then((request) => request(axios, basePath));
  11148. },
  11149. /**
  11150. *
  11151. * @param {PersonApiGetPersonRequest} requestParameters Request parameters.
  11152. * @param {*} [options] Override http request option.
  11153. * @throws {RequiredError}
  11154. */
  11155. getPerson(requestParameters: PersonApiGetPersonRequest, options?: AxiosRequestConfig): AxiosPromise<PersonResponseDto> {
  11156. return localVarFp.getPerson(requestParameters.id, options).then((request) => request(axios, basePath));
  11157. },
  11158. /**
  11159. *
  11160. * @param {PersonApiGetPersonAssetsRequest} requestParameters Request parameters.
  11161. * @param {*} [options] Override http request option.
  11162. * @throws {RequiredError}
  11163. */
  11164. getPersonAssets(requestParameters: PersonApiGetPersonAssetsRequest, options?: AxiosRequestConfig): AxiosPromise<Array<AssetResponseDto>> {
  11165. return localVarFp.getPersonAssets(requestParameters.id, options).then((request) => request(axios, basePath));
  11166. },
  11167. /**
  11168. *
  11169. * @param {PersonApiGetPersonThumbnailRequest} requestParameters Request parameters.
  11170. * @param {*} [options] Override http request option.
  11171. * @throws {RequiredError}
  11172. */
  11173. getPersonThumbnail(requestParameters: PersonApiGetPersonThumbnailRequest, options?: AxiosRequestConfig): AxiosPromise<File> {
  11174. return localVarFp.getPersonThumbnail(requestParameters.id, options).then((request) => request(axios, basePath));
  11175. },
  11176. /**
  11177. *
  11178. * @param {PersonApiMergePersonRequest} requestParameters Request parameters.
  11179. * @param {*} [options] Override http request option.
  11180. * @throws {RequiredError}
  11181. */
  11182. mergePerson(requestParameters: PersonApiMergePersonRequest, options?: AxiosRequestConfig): AxiosPromise<Array<BulkIdResponseDto>> {
  11183. return localVarFp.mergePerson(requestParameters.id, requestParameters.mergePersonDto, options).then((request) => request(axios, basePath));
  11184. },
  11185. /**
  11186. *
  11187. * @param {PersonApiUpdatePeopleRequest} requestParameters Request parameters.
  11188. * @param {*} [options] Override http request option.
  11189. * @throws {RequiredError}
  11190. */
  11191. updatePeople(requestParameters: PersonApiUpdatePeopleRequest, options?: AxiosRequestConfig): AxiosPromise<Array<BulkIdResponseDto>> {
  11192. return localVarFp.updatePeople(requestParameters.peopleUpdateDto, options).then((request) => request(axios, basePath));
  11193. },
  11194. /**
  11195. *
  11196. * @param {PersonApiUpdatePersonRequest} requestParameters Request parameters.
  11197. * @param {*} [options] Override http request option.
  11198. * @throws {RequiredError}
  11199. */
  11200. updatePerson(requestParameters: PersonApiUpdatePersonRequest, options?: AxiosRequestConfig): AxiosPromise<PersonResponseDto> {
  11201. return localVarFp.updatePerson(requestParameters.id, requestParameters.personUpdateDto, options).then((request) => request(axios, basePath));
  11202. },
  11203. };
  11204. };
  11205. /**
  11206. * Request parameters for getAllPeople operation in PersonApi.
  11207. * @export
  11208. * @interface PersonApiGetAllPeopleRequest
  11209. */
  11210. export interface PersonApiGetAllPeopleRequest {
  11211. /**
  11212. *
  11213. * @type {boolean}
  11214. * @memberof PersonApiGetAllPeople
  11215. */
  11216. readonly withHidden?: boolean
  11217. }
  11218. /**
  11219. * Request parameters for getPerson operation in PersonApi.
  11220. * @export
  11221. * @interface PersonApiGetPersonRequest
  11222. */
  11223. export interface PersonApiGetPersonRequest {
  11224. /**
  11225. *
  11226. * @type {string}
  11227. * @memberof PersonApiGetPerson
  11228. */
  11229. readonly id: string
  11230. }
  11231. /**
  11232. * Request parameters for getPersonAssets operation in PersonApi.
  11233. * @export
  11234. * @interface PersonApiGetPersonAssetsRequest
  11235. */
  11236. export interface PersonApiGetPersonAssetsRequest {
  11237. /**
  11238. *
  11239. * @type {string}
  11240. * @memberof PersonApiGetPersonAssets
  11241. */
  11242. readonly id: string
  11243. }
  11244. /**
  11245. * Request parameters for getPersonThumbnail operation in PersonApi.
  11246. * @export
  11247. * @interface PersonApiGetPersonThumbnailRequest
  11248. */
  11249. export interface PersonApiGetPersonThumbnailRequest {
  11250. /**
  11251. *
  11252. * @type {string}
  11253. * @memberof PersonApiGetPersonThumbnail
  11254. */
  11255. readonly id: string
  11256. }
  11257. /**
  11258. * Request parameters for mergePerson operation in PersonApi.
  11259. * @export
  11260. * @interface PersonApiMergePersonRequest
  11261. */
  11262. export interface PersonApiMergePersonRequest {
  11263. /**
  11264. *
  11265. * @type {string}
  11266. * @memberof PersonApiMergePerson
  11267. */
  11268. readonly id: string
  11269. /**
  11270. *
  11271. * @type {MergePersonDto}
  11272. * @memberof PersonApiMergePerson
  11273. */
  11274. readonly mergePersonDto: MergePersonDto
  11275. }
  11276. /**
  11277. * Request parameters for updatePeople operation in PersonApi.
  11278. * @export
  11279. * @interface PersonApiUpdatePeopleRequest
  11280. */
  11281. export interface PersonApiUpdatePeopleRequest {
  11282. /**
  11283. *
  11284. * @type {PeopleUpdateDto}
  11285. * @memberof PersonApiUpdatePeople
  11286. */
  11287. readonly peopleUpdateDto: PeopleUpdateDto
  11288. }
  11289. /**
  11290. * Request parameters for updatePerson operation in PersonApi.
  11291. * @export
  11292. * @interface PersonApiUpdatePersonRequest
  11293. */
  11294. export interface PersonApiUpdatePersonRequest {
  11295. /**
  11296. *
  11297. * @type {string}
  11298. * @memberof PersonApiUpdatePerson
  11299. */
  11300. readonly id: string
  11301. /**
  11302. *
  11303. * @type {PersonUpdateDto}
  11304. * @memberof PersonApiUpdatePerson
  11305. */
  11306. readonly personUpdateDto: PersonUpdateDto
  11307. }
  11308. /**
  11309. * PersonApi - object-oriented interface
  11310. * @export
  11311. * @class PersonApi
  11312. * @extends {BaseAPI}
  11313. */
  11314. export class PersonApi extends BaseAPI {
  11315. /**
  11316. *
  11317. * @param {PersonApiGetAllPeopleRequest} requestParameters Request parameters.
  11318. * @param {*} [options] Override http request option.
  11319. * @throws {RequiredError}
  11320. * @memberof PersonApi
  11321. */
  11322. public getAllPeople(requestParameters: PersonApiGetAllPeopleRequest = {}, options?: AxiosRequestConfig) {
  11323. return PersonApiFp(this.configuration).getAllPeople(requestParameters.withHidden, options).then((request) => request(this.axios, this.basePath));
  11324. }
  11325. /**
  11326. *
  11327. * @param {PersonApiGetPersonRequest} requestParameters Request parameters.
  11328. * @param {*} [options] Override http request option.
  11329. * @throws {RequiredError}
  11330. * @memberof PersonApi
  11331. */
  11332. public getPerson(requestParameters: PersonApiGetPersonRequest, options?: AxiosRequestConfig) {
  11333. return PersonApiFp(this.configuration).getPerson(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  11334. }
  11335. /**
  11336. *
  11337. * @param {PersonApiGetPersonAssetsRequest} requestParameters Request parameters.
  11338. * @param {*} [options] Override http request option.
  11339. * @throws {RequiredError}
  11340. * @memberof PersonApi
  11341. */
  11342. public getPersonAssets(requestParameters: PersonApiGetPersonAssetsRequest, options?: AxiosRequestConfig) {
  11343. return PersonApiFp(this.configuration).getPersonAssets(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  11344. }
  11345. /**
  11346. *
  11347. * @param {PersonApiGetPersonThumbnailRequest} requestParameters Request parameters.
  11348. * @param {*} [options] Override http request option.
  11349. * @throws {RequiredError}
  11350. * @memberof PersonApi
  11351. */
  11352. public getPersonThumbnail(requestParameters: PersonApiGetPersonThumbnailRequest, options?: AxiosRequestConfig) {
  11353. return PersonApiFp(this.configuration).getPersonThumbnail(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  11354. }
  11355. /**
  11356. *
  11357. * @param {PersonApiMergePersonRequest} requestParameters Request parameters.
  11358. * @param {*} [options] Override http request option.
  11359. * @throws {RequiredError}
  11360. * @memberof PersonApi
  11361. */
  11362. public mergePerson(requestParameters: PersonApiMergePersonRequest, options?: AxiosRequestConfig) {
  11363. return PersonApiFp(this.configuration).mergePerson(requestParameters.id, requestParameters.mergePersonDto, options).then((request) => request(this.axios, this.basePath));
  11364. }
  11365. /**
  11366. *
  11367. * @param {PersonApiUpdatePeopleRequest} requestParameters Request parameters.
  11368. * @param {*} [options] Override http request option.
  11369. * @throws {RequiredError}
  11370. * @memberof PersonApi
  11371. */
  11372. public updatePeople(requestParameters: PersonApiUpdatePeopleRequest, options?: AxiosRequestConfig) {
  11373. return PersonApiFp(this.configuration).updatePeople(requestParameters.peopleUpdateDto, options).then((request) => request(this.axios, this.basePath));
  11374. }
  11375. /**
  11376. *
  11377. * @param {PersonApiUpdatePersonRequest} requestParameters Request parameters.
  11378. * @param {*} [options] Override http request option.
  11379. * @throws {RequiredError}
  11380. * @memberof PersonApi
  11381. */
  11382. public updatePerson(requestParameters: PersonApiUpdatePersonRequest, options?: AxiosRequestConfig) {
  11383. return PersonApiFp(this.configuration).updatePerson(requestParameters.id, requestParameters.personUpdateDto, options).then((request) => request(this.axios, this.basePath));
  11384. }
  11385. }
  11386. /**
  11387. * SearchApi - axios parameter creator
  11388. * @export
  11389. */
  11390. export const SearchApiAxiosParamCreator = function (configuration?: Configuration) {
  11391. return {
  11392. /**
  11393. *
  11394. * @param {*} [options] Override http request option.
  11395. * @throws {RequiredError}
  11396. */
  11397. getExploreData: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11398. const localVarPath = `/search/explore`;
  11399. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11400. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11401. let baseOptions;
  11402. if (configuration) {
  11403. baseOptions = configuration.baseOptions;
  11404. }
  11405. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  11406. const localVarHeaderParameter = {} as any;
  11407. const localVarQueryParameter = {} as any;
  11408. // authentication cookie required
  11409. // authentication api_key required
  11410. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  11411. // authentication bearer required
  11412. // http bearer authentication required
  11413. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  11414. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11415. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11416. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11417. return {
  11418. url: toPathString(localVarUrlObj),
  11419. options: localVarRequestOptions,
  11420. };
  11421. },
  11422. /**
  11423. *
  11424. * @param {string} [q]
  11425. * @param {string} [query]
  11426. * @param {boolean} [clip]
  11427. * @param {'IMAGE' | 'VIDEO' | 'AUDIO' | 'OTHER'} [type]
  11428. * @param {boolean} [isFavorite]
  11429. * @param {boolean} [isArchived]
  11430. * @param {string} [exifInfoCity]
  11431. * @param {string} [exifInfoState]
  11432. * @param {string} [exifInfoCountry]
  11433. * @param {string} [exifInfoMake]
  11434. * @param {string} [exifInfoModel]
  11435. * @param {string} [exifInfoProjectionType]
  11436. * @param {Array<string>} [smartInfoObjects]
  11437. * @param {Array<string>} [smartInfoTags]
  11438. * @param {boolean} [recent]
  11439. * @param {boolean} [motion]
  11440. * @param {*} [options] Override http request option.
  11441. * @throws {RequiredError}
  11442. */
  11443. 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> => {
  11444. const localVarPath = `/search`;
  11445. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11446. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11447. let baseOptions;
  11448. if (configuration) {
  11449. baseOptions = configuration.baseOptions;
  11450. }
  11451. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  11452. const localVarHeaderParameter = {} as any;
  11453. const localVarQueryParameter = {} as any;
  11454. // authentication cookie required
  11455. // authentication api_key required
  11456. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  11457. // authentication bearer required
  11458. // http bearer authentication required
  11459. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  11460. if (q !== undefined) {
  11461. localVarQueryParameter['q'] = q;
  11462. }
  11463. if (query !== undefined) {
  11464. localVarQueryParameter['query'] = query;
  11465. }
  11466. if (clip !== undefined) {
  11467. localVarQueryParameter['clip'] = clip;
  11468. }
  11469. if (type !== undefined) {
  11470. localVarQueryParameter['type'] = type;
  11471. }
  11472. if (isFavorite !== undefined) {
  11473. localVarQueryParameter['isFavorite'] = isFavorite;
  11474. }
  11475. if (isArchived !== undefined) {
  11476. localVarQueryParameter['isArchived'] = isArchived;
  11477. }
  11478. if (exifInfoCity !== undefined) {
  11479. localVarQueryParameter['exifInfo.city'] = exifInfoCity;
  11480. }
  11481. if (exifInfoState !== undefined) {
  11482. localVarQueryParameter['exifInfo.state'] = exifInfoState;
  11483. }
  11484. if (exifInfoCountry !== undefined) {
  11485. localVarQueryParameter['exifInfo.country'] = exifInfoCountry;
  11486. }
  11487. if (exifInfoMake !== undefined) {
  11488. localVarQueryParameter['exifInfo.make'] = exifInfoMake;
  11489. }
  11490. if (exifInfoModel !== undefined) {
  11491. localVarQueryParameter['exifInfo.model'] = exifInfoModel;
  11492. }
  11493. if (exifInfoProjectionType !== undefined) {
  11494. localVarQueryParameter['exifInfo.projectionType'] = exifInfoProjectionType;
  11495. }
  11496. if (smartInfoObjects) {
  11497. localVarQueryParameter['smartInfo.objects'] = smartInfoObjects;
  11498. }
  11499. if (smartInfoTags) {
  11500. localVarQueryParameter['smartInfo.tags'] = smartInfoTags;
  11501. }
  11502. if (recent !== undefined) {
  11503. localVarQueryParameter['recent'] = recent;
  11504. }
  11505. if (motion !== undefined) {
  11506. localVarQueryParameter['motion'] = motion;
  11507. }
  11508. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11509. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11510. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11511. return {
  11512. url: toPathString(localVarUrlObj),
  11513. options: localVarRequestOptions,
  11514. };
  11515. },
  11516. /**
  11517. *
  11518. * @param {string} name
  11519. * @param {*} [options] Override http request option.
  11520. * @throws {RequiredError}
  11521. */
  11522. searchPerson: async (name: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11523. // verify required parameter 'name' is not null or undefined
  11524. assertParamExists('searchPerson', 'name', name)
  11525. const localVarPath = `/search/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 (name !== undefined) {
  11542. localVarQueryParameter['name'] = name;
  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. /**
  11555. * SearchApi - functional programming interface
  11556. * @export
  11557. */
  11558. export const SearchApiFp = function(configuration?: Configuration) {
  11559. const localVarAxiosParamCreator = SearchApiAxiosParamCreator(configuration)
  11560. return {
  11561. /**
  11562. *
  11563. * @param {*} [options] Override http request option.
  11564. * @throws {RequiredError}
  11565. */
  11566. async getExploreData(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<SearchExploreResponseDto>>> {
  11567. const localVarAxiosArgs = await localVarAxiosParamCreator.getExploreData(options);
  11568. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11569. },
  11570. /**
  11571. *
  11572. * @param {string} [q]
  11573. * @param {string} [query]
  11574. * @param {boolean} [clip]
  11575. * @param {'IMAGE' | 'VIDEO' | 'AUDIO' | 'OTHER'} [type]
  11576. * @param {boolean} [isFavorite]
  11577. * @param {boolean} [isArchived]
  11578. * @param {string} [exifInfoCity]
  11579. * @param {string} [exifInfoState]
  11580. * @param {string} [exifInfoCountry]
  11581. * @param {string} [exifInfoMake]
  11582. * @param {string} [exifInfoModel]
  11583. * @param {string} [exifInfoProjectionType]
  11584. * @param {Array<string>} [smartInfoObjects]
  11585. * @param {Array<string>} [smartInfoTags]
  11586. * @param {boolean} [recent]
  11587. * @param {boolean} [motion]
  11588. * @param {*} [options] Override http request option.
  11589. * @throws {RequiredError}
  11590. */
  11591. 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>> {
  11592. const localVarAxiosArgs = await localVarAxiosParamCreator.search(q, query, clip, type, isFavorite, isArchived, exifInfoCity, exifInfoState, exifInfoCountry, exifInfoMake, exifInfoModel, exifInfoProjectionType, smartInfoObjects, smartInfoTags, recent, motion, options);
  11593. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11594. },
  11595. /**
  11596. *
  11597. * @param {string} name
  11598. * @param {*} [options] Override http request option.
  11599. * @throws {RequiredError}
  11600. */
  11601. async searchPerson(name: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<PersonResponseDto>>> {
  11602. const localVarAxiosArgs = await localVarAxiosParamCreator.searchPerson(name, options);
  11603. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11604. },
  11605. }
  11606. };
  11607. /**
  11608. * SearchApi - factory interface
  11609. * @export
  11610. */
  11611. export const SearchApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  11612. const localVarFp = SearchApiFp(configuration)
  11613. return {
  11614. /**
  11615. *
  11616. * @param {*} [options] Override http request option.
  11617. * @throws {RequiredError}
  11618. */
  11619. getExploreData(options?: AxiosRequestConfig): AxiosPromise<Array<SearchExploreResponseDto>> {
  11620. return localVarFp.getExploreData(options).then((request) => request(axios, basePath));
  11621. },
  11622. /**
  11623. *
  11624. * @param {SearchApiSearchRequest} requestParameters Request parameters.
  11625. * @param {*} [options] Override http request option.
  11626. * @throws {RequiredError}
  11627. */
  11628. search(requestParameters: SearchApiSearchRequest = {}, options?: AxiosRequestConfig): AxiosPromise<SearchResponseDto> {
  11629. 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));
  11630. },
  11631. /**
  11632. *
  11633. * @param {SearchApiSearchPersonRequest} requestParameters Request parameters.
  11634. * @param {*} [options] Override http request option.
  11635. * @throws {RequiredError}
  11636. */
  11637. searchPerson(requestParameters: SearchApiSearchPersonRequest, options?: AxiosRequestConfig): AxiosPromise<Array<PersonResponseDto>> {
  11638. return localVarFp.searchPerson(requestParameters.name, options).then((request) => request(axios, basePath));
  11639. },
  11640. };
  11641. };
  11642. /**
  11643. * Request parameters for search operation in SearchApi.
  11644. * @export
  11645. * @interface SearchApiSearchRequest
  11646. */
  11647. export interface SearchApiSearchRequest {
  11648. /**
  11649. *
  11650. * @type {string}
  11651. * @memberof SearchApiSearch
  11652. */
  11653. readonly q?: string
  11654. /**
  11655. *
  11656. * @type {string}
  11657. * @memberof SearchApiSearch
  11658. */
  11659. readonly query?: string
  11660. /**
  11661. *
  11662. * @type {boolean}
  11663. * @memberof SearchApiSearch
  11664. */
  11665. readonly clip?: boolean
  11666. /**
  11667. *
  11668. * @type {'IMAGE' | 'VIDEO' | 'AUDIO' | 'OTHER'}
  11669. * @memberof SearchApiSearch
  11670. */
  11671. readonly type?: 'IMAGE' | 'VIDEO' | 'AUDIO' | 'OTHER'
  11672. /**
  11673. *
  11674. * @type {boolean}
  11675. * @memberof SearchApiSearch
  11676. */
  11677. readonly isFavorite?: boolean
  11678. /**
  11679. *
  11680. * @type {boolean}
  11681. * @memberof SearchApiSearch
  11682. */
  11683. readonly isArchived?: boolean
  11684. /**
  11685. *
  11686. * @type {string}
  11687. * @memberof SearchApiSearch
  11688. */
  11689. readonly exifInfoCity?: string
  11690. /**
  11691. *
  11692. * @type {string}
  11693. * @memberof SearchApiSearch
  11694. */
  11695. readonly exifInfoState?: string
  11696. /**
  11697. *
  11698. * @type {string}
  11699. * @memberof SearchApiSearch
  11700. */
  11701. readonly exifInfoCountry?: string
  11702. /**
  11703. *
  11704. * @type {string}
  11705. * @memberof SearchApiSearch
  11706. */
  11707. readonly exifInfoMake?: string
  11708. /**
  11709. *
  11710. * @type {string}
  11711. * @memberof SearchApiSearch
  11712. */
  11713. readonly exifInfoModel?: string
  11714. /**
  11715. *
  11716. * @type {string}
  11717. * @memberof SearchApiSearch
  11718. */
  11719. readonly exifInfoProjectionType?: string
  11720. /**
  11721. *
  11722. * @type {Array<string>}
  11723. * @memberof SearchApiSearch
  11724. */
  11725. readonly smartInfoObjects?: Array<string>
  11726. /**
  11727. *
  11728. * @type {Array<string>}
  11729. * @memberof SearchApiSearch
  11730. */
  11731. readonly smartInfoTags?: Array<string>
  11732. /**
  11733. *
  11734. * @type {boolean}
  11735. * @memberof SearchApiSearch
  11736. */
  11737. readonly recent?: boolean
  11738. /**
  11739. *
  11740. * @type {boolean}
  11741. * @memberof SearchApiSearch
  11742. */
  11743. readonly motion?: boolean
  11744. }
  11745. /**
  11746. * Request parameters for searchPerson operation in SearchApi.
  11747. * @export
  11748. * @interface SearchApiSearchPersonRequest
  11749. */
  11750. export interface SearchApiSearchPersonRequest {
  11751. /**
  11752. *
  11753. * @type {string}
  11754. * @memberof SearchApiSearchPerson
  11755. */
  11756. readonly name: string
  11757. }
  11758. /**
  11759. * SearchApi - object-oriented interface
  11760. * @export
  11761. * @class SearchApi
  11762. * @extends {BaseAPI}
  11763. */
  11764. export class SearchApi extends BaseAPI {
  11765. /**
  11766. *
  11767. * @param {*} [options] Override http request option.
  11768. * @throws {RequiredError}
  11769. * @memberof SearchApi
  11770. */
  11771. public getExploreData(options?: AxiosRequestConfig) {
  11772. return SearchApiFp(this.configuration).getExploreData(options).then((request) => request(this.axios, this.basePath));
  11773. }
  11774. /**
  11775. *
  11776. * @param {SearchApiSearchRequest} requestParameters Request parameters.
  11777. * @param {*} [options] Override http request option.
  11778. * @throws {RequiredError}
  11779. * @memberof SearchApi
  11780. */
  11781. public search(requestParameters: SearchApiSearchRequest = {}, options?: AxiosRequestConfig) {
  11782. 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));
  11783. }
  11784. /**
  11785. *
  11786. * @param {SearchApiSearchPersonRequest} requestParameters Request parameters.
  11787. * @param {*} [options] Override http request option.
  11788. * @throws {RequiredError}
  11789. * @memberof SearchApi
  11790. */
  11791. public searchPerson(requestParameters: SearchApiSearchPersonRequest, options?: AxiosRequestConfig) {
  11792. return SearchApiFp(this.configuration).searchPerson(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
  11793. }
  11794. }
  11795. /**
  11796. * ServerInfoApi - axios parameter creator
  11797. * @export
  11798. */
  11799. export const ServerInfoApiAxiosParamCreator = function (configuration?: Configuration) {
  11800. return {
  11801. /**
  11802. *
  11803. * @param {*} [options] Override http request option.
  11804. * @throws {RequiredError}
  11805. */
  11806. getServerConfig: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11807. const localVarPath = `/server-info/config`;
  11808. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11809. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11810. let baseOptions;
  11811. if (configuration) {
  11812. baseOptions = configuration.baseOptions;
  11813. }
  11814. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  11815. const localVarHeaderParameter = {} as any;
  11816. const localVarQueryParameter = {} as any;
  11817. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11818. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11819. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11820. return {
  11821. url: toPathString(localVarUrlObj),
  11822. options: localVarRequestOptions,
  11823. };
  11824. },
  11825. /**
  11826. *
  11827. * @param {*} [options] Override http request option.
  11828. * @throws {RequiredError}
  11829. */
  11830. getServerFeatures: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11831. const localVarPath = `/server-info/features`;
  11832. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11833. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11834. let baseOptions;
  11835. if (configuration) {
  11836. baseOptions = configuration.baseOptions;
  11837. }
  11838. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  11839. const localVarHeaderParameter = {} as any;
  11840. const localVarQueryParameter = {} as any;
  11841. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11842. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11843. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11844. return {
  11845. url: toPathString(localVarUrlObj),
  11846. options: localVarRequestOptions,
  11847. };
  11848. },
  11849. /**
  11850. *
  11851. * @param {*} [options] Override http request option.
  11852. * @throws {RequiredError}
  11853. */
  11854. getServerInfo: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11855. const localVarPath = `/server-info`;
  11856. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11857. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11858. let baseOptions;
  11859. if (configuration) {
  11860. baseOptions = configuration.baseOptions;
  11861. }
  11862. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  11863. const localVarHeaderParameter = {} as any;
  11864. const localVarQueryParameter = {} as any;
  11865. // authentication cookie required
  11866. // authentication api_key required
  11867. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  11868. // authentication bearer required
  11869. // http bearer authentication required
  11870. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  11871. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11872. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11873. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11874. return {
  11875. url: toPathString(localVarUrlObj),
  11876. options: localVarRequestOptions,
  11877. };
  11878. },
  11879. /**
  11880. *
  11881. * @param {*} [options] Override http request option.
  11882. * @throws {RequiredError}
  11883. */
  11884. getServerVersion: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11885. const localVarPath = `/server-info/version`;
  11886. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11887. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11888. let baseOptions;
  11889. if (configuration) {
  11890. baseOptions = configuration.baseOptions;
  11891. }
  11892. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  11893. const localVarHeaderParameter = {} as any;
  11894. const localVarQueryParameter = {} as any;
  11895. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11896. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11897. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11898. return {
  11899. url: toPathString(localVarUrlObj),
  11900. options: localVarRequestOptions,
  11901. };
  11902. },
  11903. /**
  11904. *
  11905. * @param {*} [options] Override http request option.
  11906. * @throws {RequiredError}
  11907. */
  11908. getStats: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11909. const localVarPath = `/server-info/stats`;
  11910. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11911. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11912. let baseOptions;
  11913. if (configuration) {
  11914. baseOptions = configuration.baseOptions;
  11915. }
  11916. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  11917. const localVarHeaderParameter = {} as any;
  11918. const localVarQueryParameter = {} as any;
  11919. // authentication cookie required
  11920. // authentication api_key required
  11921. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  11922. // authentication bearer required
  11923. // http bearer authentication required
  11924. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  11925. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11926. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11927. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11928. return {
  11929. url: toPathString(localVarUrlObj),
  11930. options: localVarRequestOptions,
  11931. };
  11932. },
  11933. /**
  11934. *
  11935. * @param {*} [options] Override http request option.
  11936. * @throws {RequiredError}
  11937. */
  11938. getSupportedMediaTypes: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11939. const localVarPath = `/server-info/media-types`;
  11940. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11941. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11942. let baseOptions;
  11943. if (configuration) {
  11944. baseOptions = configuration.baseOptions;
  11945. }
  11946. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  11947. const localVarHeaderParameter = {} as any;
  11948. const localVarQueryParameter = {} as any;
  11949. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11950. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11951. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11952. return {
  11953. url: toPathString(localVarUrlObj),
  11954. options: localVarRequestOptions,
  11955. };
  11956. },
  11957. /**
  11958. *
  11959. * @param {*} [options] Override http request option.
  11960. * @throws {RequiredError}
  11961. */
  11962. pingServer: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11963. const localVarPath = `/server-info/ping`;
  11964. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11965. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11966. let baseOptions;
  11967. if (configuration) {
  11968. baseOptions = configuration.baseOptions;
  11969. }
  11970. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  11971. const localVarHeaderParameter = {} as any;
  11972. const localVarQueryParameter = {} as any;
  11973. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11974. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11975. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11976. return {
  11977. url: toPathString(localVarUrlObj),
  11978. options: localVarRequestOptions,
  11979. };
  11980. },
  11981. }
  11982. };
  11983. /**
  11984. * ServerInfoApi - functional programming interface
  11985. * @export
  11986. */
  11987. export const ServerInfoApiFp = function(configuration?: Configuration) {
  11988. const localVarAxiosParamCreator = ServerInfoApiAxiosParamCreator(configuration)
  11989. return {
  11990. /**
  11991. *
  11992. * @param {*} [options] Override http request option.
  11993. * @throws {RequiredError}
  11994. */
  11995. async getServerConfig(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServerConfigDto>> {
  11996. const localVarAxiosArgs = await localVarAxiosParamCreator.getServerConfig(options);
  11997. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11998. },
  11999. /**
  12000. *
  12001. * @param {*} [options] Override http request option.
  12002. * @throws {RequiredError}
  12003. */
  12004. async getServerFeatures(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServerFeaturesDto>> {
  12005. const localVarAxiosArgs = await localVarAxiosParamCreator.getServerFeatures(options);
  12006. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12007. },
  12008. /**
  12009. *
  12010. * @param {*} [options] Override http request option.
  12011. * @throws {RequiredError}
  12012. */
  12013. async getServerInfo(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServerInfoResponseDto>> {
  12014. const localVarAxiosArgs = await localVarAxiosParamCreator.getServerInfo(options);
  12015. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12016. },
  12017. /**
  12018. *
  12019. * @param {*} [options] Override http request option.
  12020. * @throws {RequiredError}
  12021. */
  12022. async getServerVersion(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServerVersionResponseDto>> {
  12023. const localVarAxiosArgs = await localVarAxiosParamCreator.getServerVersion(options);
  12024. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12025. },
  12026. /**
  12027. *
  12028. * @param {*} [options] Override http request option.
  12029. * @throws {RequiredError}
  12030. */
  12031. async getStats(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServerStatsResponseDto>> {
  12032. const localVarAxiosArgs = await localVarAxiosParamCreator.getStats(options);
  12033. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12034. },
  12035. /**
  12036. *
  12037. * @param {*} [options] Override http request option.
  12038. * @throws {RequiredError}
  12039. */
  12040. async getSupportedMediaTypes(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServerMediaTypesResponseDto>> {
  12041. const localVarAxiosArgs = await localVarAxiosParamCreator.getSupportedMediaTypes(options);
  12042. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12043. },
  12044. /**
  12045. *
  12046. * @param {*} [options] Override http request option.
  12047. * @throws {RequiredError}
  12048. */
  12049. async pingServer(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServerPingResponse>> {
  12050. const localVarAxiosArgs = await localVarAxiosParamCreator.pingServer(options);
  12051. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12052. },
  12053. }
  12054. };
  12055. /**
  12056. * ServerInfoApi - factory interface
  12057. * @export
  12058. */
  12059. export const ServerInfoApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  12060. const localVarFp = ServerInfoApiFp(configuration)
  12061. return {
  12062. /**
  12063. *
  12064. * @param {*} [options] Override http request option.
  12065. * @throws {RequiredError}
  12066. */
  12067. getServerConfig(options?: AxiosRequestConfig): AxiosPromise<ServerConfigDto> {
  12068. return localVarFp.getServerConfig(options).then((request) => request(axios, basePath));
  12069. },
  12070. /**
  12071. *
  12072. * @param {*} [options] Override http request option.
  12073. * @throws {RequiredError}
  12074. */
  12075. getServerFeatures(options?: AxiosRequestConfig): AxiosPromise<ServerFeaturesDto> {
  12076. return localVarFp.getServerFeatures(options).then((request) => request(axios, basePath));
  12077. },
  12078. /**
  12079. *
  12080. * @param {*} [options] Override http request option.
  12081. * @throws {RequiredError}
  12082. */
  12083. getServerInfo(options?: AxiosRequestConfig): AxiosPromise<ServerInfoResponseDto> {
  12084. return localVarFp.getServerInfo(options).then((request) => request(axios, basePath));
  12085. },
  12086. /**
  12087. *
  12088. * @param {*} [options] Override http request option.
  12089. * @throws {RequiredError}
  12090. */
  12091. getServerVersion(options?: AxiosRequestConfig): AxiosPromise<ServerVersionResponseDto> {
  12092. return localVarFp.getServerVersion(options).then((request) => request(axios, basePath));
  12093. },
  12094. /**
  12095. *
  12096. * @param {*} [options] Override http request option.
  12097. * @throws {RequiredError}
  12098. */
  12099. getStats(options?: AxiosRequestConfig): AxiosPromise<ServerStatsResponseDto> {
  12100. return localVarFp.getStats(options).then((request) => request(axios, basePath));
  12101. },
  12102. /**
  12103. *
  12104. * @param {*} [options] Override http request option.
  12105. * @throws {RequiredError}
  12106. */
  12107. getSupportedMediaTypes(options?: AxiosRequestConfig): AxiosPromise<ServerMediaTypesResponseDto> {
  12108. return localVarFp.getSupportedMediaTypes(options).then((request) => request(axios, basePath));
  12109. },
  12110. /**
  12111. *
  12112. * @param {*} [options] Override http request option.
  12113. * @throws {RequiredError}
  12114. */
  12115. pingServer(options?: AxiosRequestConfig): AxiosPromise<ServerPingResponse> {
  12116. return localVarFp.pingServer(options).then((request) => request(axios, basePath));
  12117. },
  12118. };
  12119. };
  12120. /**
  12121. * ServerInfoApi - object-oriented interface
  12122. * @export
  12123. * @class ServerInfoApi
  12124. * @extends {BaseAPI}
  12125. */
  12126. export class ServerInfoApi extends BaseAPI {
  12127. /**
  12128. *
  12129. * @param {*} [options] Override http request option.
  12130. * @throws {RequiredError}
  12131. * @memberof ServerInfoApi
  12132. */
  12133. public getServerConfig(options?: AxiosRequestConfig) {
  12134. return ServerInfoApiFp(this.configuration).getServerConfig(options).then((request) => request(this.axios, this.basePath));
  12135. }
  12136. /**
  12137. *
  12138. * @param {*} [options] Override http request option.
  12139. * @throws {RequiredError}
  12140. * @memberof ServerInfoApi
  12141. */
  12142. public getServerFeatures(options?: AxiosRequestConfig) {
  12143. return ServerInfoApiFp(this.configuration).getServerFeatures(options).then((request) => request(this.axios, this.basePath));
  12144. }
  12145. /**
  12146. *
  12147. * @param {*} [options] Override http request option.
  12148. * @throws {RequiredError}
  12149. * @memberof ServerInfoApi
  12150. */
  12151. public getServerInfo(options?: AxiosRequestConfig) {
  12152. return ServerInfoApiFp(this.configuration).getServerInfo(options).then((request) => request(this.axios, this.basePath));
  12153. }
  12154. /**
  12155. *
  12156. * @param {*} [options] Override http request option.
  12157. * @throws {RequiredError}
  12158. * @memberof ServerInfoApi
  12159. */
  12160. public getServerVersion(options?: AxiosRequestConfig) {
  12161. return ServerInfoApiFp(this.configuration).getServerVersion(options).then((request) => request(this.axios, this.basePath));
  12162. }
  12163. /**
  12164. *
  12165. * @param {*} [options] Override http request option.
  12166. * @throws {RequiredError}
  12167. * @memberof ServerInfoApi
  12168. */
  12169. public getStats(options?: AxiosRequestConfig) {
  12170. return ServerInfoApiFp(this.configuration).getStats(options).then((request) => request(this.axios, this.basePath));
  12171. }
  12172. /**
  12173. *
  12174. * @param {*} [options] Override http request option.
  12175. * @throws {RequiredError}
  12176. * @memberof ServerInfoApi
  12177. */
  12178. public getSupportedMediaTypes(options?: AxiosRequestConfig) {
  12179. return ServerInfoApiFp(this.configuration).getSupportedMediaTypes(options).then((request) => request(this.axios, this.basePath));
  12180. }
  12181. /**
  12182. *
  12183. * @param {*} [options] Override http request option.
  12184. * @throws {RequiredError}
  12185. * @memberof ServerInfoApi
  12186. */
  12187. public pingServer(options?: AxiosRequestConfig) {
  12188. return ServerInfoApiFp(this.configuration).pingServer(options).then((request) => request(this.axios, this.basePath));
  12189. }
  12190. }
  12191. /**
  12192. * SharedLinkApi - axios parameter creator
  12193. * @export
  12194. */
  12195. export const SharedLinkApiAxiosParamCreator = function (configuration?: Configuration) {
  12196. return {
  12197. /**
  12198. *
  12199. * @param {string} id
  12200. * @param {AssetIdsDto} assetIdsDto
  12201. * @param {string} [key]
  12202. * @param {*} [options] Override http request option.
  12203. * @throws {RequiredError}
  12204. */
  12205. addSharedLinkAssets: async (id: string, assetIdsDto: AssetIdsDto, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  12206. // verify required parameter 'id' is not null or undefined
  12207. assertParamExists('addSharedLinkAssets', 'id', id)
  12208. // verify required parameter 'assetIdsDto' is not null or undefined
  12209. assertParamExists('addSharedLinkAssets', 'assetIdsDto', assetIdsDto)
  12210. const localVarPath = `/shared-link/{id}/assets`
  12211. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  12212. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  12213. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  12214. let baseOptions;
  12215. if (configuration) {
  12216. baseOptions = configuration.baseOptions;
  12217. }
  12218. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  12219. const localVarHeaderParameter = {} as any;
  12220. const localVarQueryParameter = {} as any;
  12221. // authentication cookie required
  12222. // authentication api_key required
  12223. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  12224. // authentication bearer required
  12225. // http bearer authentication required
  12226. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  12227. if (key !== undefined) {
  12228. localVarQueryParameter['key'] = key;
  12229. }
  12230. localVarHeaderParameter['Content-Type'] = 'application/json';
  12231. setSearchParams(localVarUrlObj, localVarQueryParameter);
  12232. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  12233. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  12234. localVarRequestOptions.data = serializeDataIfNeeded(assetIdsDto, localVarRequestOptions, configuration)
  12235. return {
  12236. url: toPathString(localVarUrlObj),
  12237. options: localVarRequestOptions,
  12238. };
  12239. },
  12240. /**
  12241. *
  12242. * @param {SharedLinkCreateDto} sharedLinkCreateDto
  12243. * @param {*} [options] Override http request option.
  12244. * @throws {RequiredError}
  12245. */
  12246. createSharedLink: async (sharedLinkCreateDto: SharedLinkCreateDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  12247. // verify required parameter 'sharedLinkCreateDto' is not null or undefined
  12248. assertParamExists('createSharedLink', 'sharedLinkCreateDto', sharedLinkCreateDto)
  12249. const localVarPath = `/shared-link`;
  12250. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  12251. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  12252. let baseOptions;
  12253. if (configuration) {
  12254. baseOptions = configuration.baseOptions;
  12255. }
  12256. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  12257. const localVarHeaderParameter = {} as any;
  12258. const localVarQueryParameter = {} as any;
  12259. // authentication cookie required
  12260. // authentication api_key required
  12261. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  12262. // authentication bearer required
  12263. // http bearer authentication required
  12264. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  12265. localVarHeaderParameter['Content-Type'] = 'application/json';
  12266. setSearchParams(localVarUrlObj, localVarQueryParameter);
  12267. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  12268. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  12269. localVarRequestOptions.data = serializeDataIfNeeded(sharedLinkCreateDto, localVarRequestOptions, configuration)
  12270. return {
  12271. url: toPathString(localVarUrlObj),
  12272. options: localVarRequestOptions,
  12273. };
  12274. },
  12275. /**
  12276. *
  12277. * @param {*} [options] Override http request option.
  12278. * @throws {RequiredError}
  12279. */
  12280. getAllSharedLinks: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  12281. const localVarPath = `/shared-link`;
  12282. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  12283. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  12284. let baseOptions;
  12285. if (configuration) {
  12286. baseOptions = configuration.baseOptions;
  12287. }
  12288. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  12289. const localVarHeaderParameter = {} as any;
  12290. const localVarQueryParameter = {} as any;
  12291. // authentication cookie required
  12292. // authentication api_key required
  12293. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  12294. // authentication bearer required
  12295. // http bearer authentication required
  12296. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  12297. setSearchParams(localVarUrlObj, localVarQueryParameter);
  12298. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  12299. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  12300. return {
  12301. url: toPathString(localVarUrlObj),
  12302. options: localVarRequestOptions,
  12303. };
  12304. },
  12305. /**
  12306. *
  12307. * @param {string} [key]
  12308. * @param {*} [options] Override http request option.
  12309. * @throws {RequiredError}
  12310. */
  12311. getMySharedLink: async (key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  12312. const localVarPath = `/shared-link/me`;
  12313. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  12314. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  12315. let baseOptions;
  12316. if (configuration) {
  12317. baseOptions = configuration.baseOptions;
  12318. }
  12319. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  12320. const localVarHeaderParameter = {} as any;
  12321. const localVarQueryParameter = {} as any;
  12322. // authentication cookie required
  12323. // authentication api_key required
  12324. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  12325. // authentication bearer required
  12326. // http bearer authentication required
  12327. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  12328. if (key !== undefined) {
  12329. localVarQueryParameter['key'] = key;
  12330. }
  12331. setSearchParams(localVarUrlObj, localVarQueryParameter);
  12332. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  12333. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  12334. return {
  12335. url: toPathString(localVarUrlObj),
  12336. options: localVarRequestOptions,
  12337. };
  12338. },
  12339. /**
  12340. *
  12341. * @param {string} id
  12342. * @param {*} [options] Override http request option.
  12343. * @throws {RequiredError}
  12344. */
  12345. getSharedLinkById: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  12346. // verify required parameter 'id' is not null or undefined
  12347. assertParamExists('getSharedLinkById', 'id', id)
  12348. const localVarPath = `/shared-link/{id}`
  12349. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  12350. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  12351. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  12352. let baseOptions;
  12353. if (configuration) {
  12354. baseOptions = configuration.baseOptions;
  12355. }
  12356. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  12357. const localVarHeaderParameter = {} as any;
  12358. const localVarQueryParameter = {} as any;
  12359. // authentication cookie required
  12360. // authentication api_key required
  12361. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  12362. // authentication bearer required
  12363. // http bearer authentication required
  12364. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  12365. setSearchParams(localVarUrlObj, localVarQueryParameter);
  12366. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  12367. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  12368. return {
  12369. url: toPathString(localVarUrlObj),
  12370. options: localVarRequestOptions,
  12371. };
  12372. },
  12373. /**
  12374. *
  12375. * @param {string} id
  12376. * @param {*} [options] Override http request option.
  12377. * @throws {RequiredError}
  12378. */
  12379. removeSharedLink: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  12380. // verify required parameter 'id' is not null or undefined
  12381. assertParamExists('removeSharedLink', 'id', id)
  12382. const localVarPath = `/shared-link/{id}`
  12383. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  12384. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  12385. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  12386. let baseOptions;
  12387. if (configuration) {
  12388. baseOptions = configuration.baseOptions;
  12389. }
  12390. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  12391. const localVarHeaderParameter = {} as any;
  12392. const localVarQueryParameter = {} as any;
  12393. // authentication cookie required
  12394. // authentication api_key required
  12395. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  12396. // authentication bearer required
  12397. // http bearer authentication required
  12398. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  12399. setSearchParams(localVarUrlObj, localVarQueryParameter);
  12400. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  12401. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  12402. return {
  12403. url: toPathString(localVarUrlObj),
  12404. options: localVarRequestOptions,
  12405. };
  12406. },
  12407. /**
  12408. *
  12409. * @param {string} id
  12410. * @param {AssetIdsDto} assetIdsDto
  12411. * @param {string} [key]
  12412. * @param {*} [options] Override http request option.
  12413. * @throws {RequiredError}
  12414. */
  12415. removeSharedLinkAssets: async (id: string, assetIdsDto: AssetIdsDto, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  12416. // verify required parameter 'id' is not null or undefined
  12417. assertParamExists('removeSharedLinkAssets', 'id', id)
  12418. // verify required parameter 'assetIdsDto' is not null or undefined
  12419. assertParamExists('removeSharedLinkAssets', 'assetIdsDto', assetIdsDto)
  12420. const localVarPath = `/shared-link/{id}/assets`
  12421. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  12422. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  12423. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  12424. let baseOptions;
  12425. if (configuration) {
  12426. baseOptions = configuration.baseOptions;
  12427. }
  12428. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  12429. const localVarHeaderParameter = {} as any;
  12430. const localVarQueryParameter = {} as any;
  12431. // authentication cookie required
  12432. // authentication api_key required
  12433. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  12434. // authentication bearer required
  12435. // http bearer authentication required
  12436. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  12437. if (key !== undefined) {
  12438. localVarQueryParameter['key'] = key;
  12439. }
  12440. localVarHeaderParameter['Content-Type'] = 'application/json';
  12441. setSearchParams(localVarUrlObj, localVarQueryParameter);
  12442. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  12443. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  12444. localVarRequestOptions.data = serializeDataIfNeeded(assetIdsDto, localVarRequestOptions, configuration)
  12445. return {
  12446. url: toPathString(localVarUrlObj),
  12447. options: localVarRequestOptions,
  12448. };
  12449. },
  12450. /**
  12451. *
  12452. * @param {string} id
  12453. * @param {SharedLinkEditDto} sharedLinkEditDto
  12454. * @param {*} [options] Override http request option.
  12455. * @throws {RequiredError}
  12456. */
  12457. updateSharedLink: async (id: string, sharedLinkEditDto: SharedLinkEditDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  12458. // verify required parameter 'id' is not null or undefined
  12459. assertParamExists('updateSharedLink', 'id', id)
  12460. // verify required parameter 'sharedLinkEditDto' is not null or undefined
  12461. assertParamExists('updateSharedLink', 'sharedLinkEditDto', sharedLinkEditDto)
  12462. const localVarPath = `/shared-link/{id}`
  12463. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  12464. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  12465. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  12466. let baseOptions;
  12467. if (configuration) {
  12468. baseOptions = configuration.baseOptions;
  12469. }
  12470. const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
  12471. const localVarHeaderParameter = {} as any;
  12472. const localVarQueryParameter = {} as any;
  12473. // authentication cookie required
  12474. // authentication api_key required
  12475. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  12476. // authentication bearer required
  12477. // http bearer authentication required
  12478. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  12479. localVarHeaderParameter['Content-Type'] = 'application/json';
  12480. setSearchParams(localVarUrlObj, localVarQueryParameter);
  12481. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  12482. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  12483. localVarRequestOptions.data = serializeDataIfNeeded(sharedLinkEditDto, localVarRequestOptions, configuration)
  12484. return {
  12485. url: toPathString(localVarUrlObj),
  12486. options: localVarRequestOptions,
  12487. };
  12488. },
  12489. }
  12490. };
  12491. /**
  12492. * SharedLinkApi - functional programming interface
  12493. * @export
  12494. */
  12495. export const SharedLinkApiFp = function(configuration?: Configuration) {
  12496. const localVarAxiosParamCreator = SharedLinkApiAxiosParamCreator(configuration)
  12497. return {
  12498. /**
  12499. *
  12500. * @param {string} id
  12501. * @param {AssetIdsDto} assetIdsDto
  12502. * @param {string} [key]
  12503. * @param {*} [options] Override http request option.
  12504. * @throws {RequiredError}
  12505. */
  12506. async addSharedLinkAssets(id: string, assetIdsDto: AssetIdsDto, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetIdsResponseDto>>> {
  12507. const localVarAxiosArgs = await localVarAxiosParamCreator.addSharedLinkAssets(id, assetIdsDto, key, options);
  12508. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12509. },
  12510. /**
  12511. *
  12512. * @param {SharedLinkCreateDto} sharedLinkCreateDto
  12513. * @param {*} [options] Override http request option.
  12514. * @throws {RequiredError}
  12515. */
  12516. async createSharedLink(sharedLinkCreateDto: SharedLinkCreateDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SharedLinkResponseDto>> {
  12517. const localVarAxiosArgs = await localVarAxiosParamCreator.createSharedLink(sharedLinkCreateDto, options);
  12518. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12519. },
  12520. /**
  12521. *
  12522. * @param {*} [options] Override http request option.
  12523. * @throws {RequiredError}
  12524. */
  12525. async getAllSharedLinks(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<SharedLinkResponseDto>>> {
  12526. const localVarAxiosArgs = await localVarAxiosParamCreator.getAllSharedLinks(options);
  12527. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12528. },
  12529. /**
  12530. *
  12531. * @param {string} [key]
  12532. * @param {*} [options] Override http request option.
  12533. * @throws {RequiredError}
  12534. */
  12535. async getMySharedLink(key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SharedLinkResponseDto>> {
  12536. const localVarAxiosArgs = await localVarAxiosParamCreator.getMySharedLink(key, options);
  12537. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12538. },
  12539. /**
  12540. *
  12541. * @param {string} id
  12542. * @param {*} [options] Override http request option.
  12543. * @throws {RequiredError}
  12544. */
  12545. async getSharedLinkById(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SharedLinkResponseDto>> {
  12546. const localVarAxiosArgs = await localVarAxiosParamCreator.getSharedLinkById(id, options);
  12547. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12548. },
  12549. /**
  12550. *
  12551. * @param {string} id
  12552. * @param {*} [options] Override http request option.
  12553. * @throws {RequiredError}
  12554. */
  12555. async removeSharedLink(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  12556. const localVarAxiosArgs = await localVarAxiosParamCreator.removeSharedLink(id, options);
  12557. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12558. },
  12559. /**
  12560. *
  12561. * @param {string} id
  12562. * @param {AssetIdsDto} assetIdsDto
  12563. * @param {string} [key]
  12564. * @param {*} [options] Override http request option.
  12565. * @throws {RequiredError}
  12566. */
  12567. async removeSharedLinkAssets(id: string, assetIdsDto: AssetIdsDto, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetIdsResponseDto>>> {
  12568. const localVarAxiosArgs = await localVarAxiosParamCreator.removeSharedLinkAssets(id, assetIdsDto, key, options);
  12569. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12570. },
  12571. /**
  12572. *
  12573. * @param {string} id
  12574. * @param {SharedLinkEditDto} sharedLinkEditDto
  12575. * @param {*} [options] Override http request option.
  12576. * @throws {RequiredError}
  12577. */
  12578. async updateSharedLink(id: string, sharedLinkEditDto: SharedLinkEditDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SharedLinkResponseDto>> {
  12579. const localVarAxiosArgs = await localVarAxiosParamCreator.updateSharedLink(id, sharedLinkEditDto, options);
  12580. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12581. },
  12582. }
  12583. };
  12584. /**
  12585. * SharedLinkApi - factory interface
  12586. * @export
  12587. */
  12588. export const SharedLinkApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  12589. const localVarFp = SharedLinkApiFp(configuration)
  12590. return {
  12591. /**
  12592. *
  12593. * @param {SharedLinkApiAddSharedLinkAssetsRequest} requestParameters Request parameters.
  12594. * @param {*} [options] Override http request option.
  12595. * @throws {RequiredError}
  12596. */
  12597. addSharedLinkAssets(requestParameters: SharedLinkApiAddSharedLinkAssetsRequest, options?: AxiosRequestConfig): AxiosPromise<Array<AssetIdsResponseDto>> {
  12598. return localVarFp.addSharedLinkAssets(requestParameters.id, requestParameters.assetIdsDto, requestParameters.key, options).then((request) => request(axios, basePath));
  12599. },
  12600. /**
  12601. *
  12602. * @param {SharedLinkApiCreateSharedLinkRequest} requestParameters Request parameters.
  12603. * @param {*} [options] Override http request option.
  12604. * @throws {RequiredError}
  12605. */
  12606. createSharedLink(requestParameters: SharedLinkApiCreateSharedLinkRequest, options?: AxiosRequestConfig): AxiosPromise<SharedLinkResponseDto> {
  12607. return localVarFp.createSharedLink(requestParameters.sharedLinkCreateDto, options).then((request) => request(axios, basePath));
  12608. },
  12609. /**
  12610. *
  12611. * @param {*} [options] Override http request option.
  12612. * @throws {RequiredError}
  12613. */
  12614. getAllSharedLinks(options?: AxiosRequestConfig): AxiosPromise<Array<SharedLinkResponseDto>> {
  12615. return localVarFp.getAllSharedLinks(options).then((request) => request(axios, basePath));
  12616. },
  12617. /**
  12618. *
  12619. * @param {SharedLinkApiGetMySharedLinkRequest} requestParameters Request parameters.
  12620. * @param {*} [options] Override http request option.
  12621. * @throws {RequiredError}
  12622. */
  12623. getMySharedLink(requestParameters: SharedLinkApiGetMySharedLinkRequest = {}, options?: AxiosRequestConfig): AxiosPromise<SharedLinkResponseDto> {
  12624. return localVarFp.getMySharedLink(requestParameters.key, options).then((request) => request(axios, basePath));
  12625. },
  12626. /**
  12627. *
  12628. * @param {SharedLinkApiGetSharedLinkByIdRequest} requestParameters Request parameters.
  12629. * @param {*} [options] Override http request option.
  12630. * @throws {RequiredError}
  12631. */
  12632. getSharedLinkById(requestParameters: SharedLinkApiGetSharedLinkByIdRequest, options?: AxiosRequestConfig): AxiosPromise<SharedLinkResponseDto> {
  12633. return localVarFp.getSharedLinkById(requestParameters.id, options).then((request) => request(axios, basePath));
  12634. },
  12635. /**
  12636. *
  12637. * @param {SharedLinkApiRemoveSharedLinkRequest} requestParameters Request parameters.
  12638. * @param {*} [options] Override http request option.
  12639. * @throws {RequiredError}
  12640. */
  12641. removeSharedLink(requestParameters: SharedLinkApiRemoveSharedLinkRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  12642. return localVarFp.removeSharedLink(requestParameters.id, options).then((request) => request(axios, basePath));
  12643. },
  12644. /**
  12645. *
  12646. * @param {SharedLinkApiRemoveSharedLinkAssetsRequest} requestParameters Request parameters.
  12647. * @param {*} [options] Override http request option.
  12648. * @throws {RequiredError}
  12649. */
  12650. removeSharedLinkAssets(requestParameters: SharedLinkApiRemoveSharedLinkAssetsRequest, options?: AxiosRequestConfig): AxiosPromise<Array<AssetIdsResponseDto>> {
  12651. return localVarFp.removeSharedLinkAssets(requestParameters.id, requestParameters.assetIdsDto, requestParameters.key, options).then((request) => request(axios, basePath));
  12652. },
  12653. /**
  12654. *
  12655. * @param {SharedLinkApiUpdateSharedLinkRequest} requestParameters Request parameters.
  12656. * @param {*} [options] Override http request option.
  12657. * @throws {RequiredError}
  12658. */
  12659. updateSharedLink(requestParameters: SharedLinkApiUpdateSharedLinkRequest, options?: AxiosRequestConfig): AxiosPromise<SharedLinkResponseDto> {
  12660. return localVarFp.updateSharedLink(requestParameters.id, requestParameters.sharedLinkEditDto, options).then((request) => request(axios, basePath));
  12661. },
  12662. };
  12663. };
  12664. /**
  12665. * Request parameters for addSharedLinkAssets operation in SharedLinkApi.
  12666. * @export
  12667. * @interface SharedLinkApiAddSharedLinkAssetsRequest
  12668. */
  12669. export interface SharedLinkApiAddSharedLinkAssetsRequest {
  12670. /**
  12671. *
  12672. * @type {string}
  12673. * @memberof SharedLinkApiAddSharedLinkAssets
  12674. */
  12675. readonly id: string
  12676. /**
  12677. *
  12678. * @type {AssetIdsDto}
  12679. * @memberof SharedLinkApiAddSharedLinkAssets
  12680. */
  12681. readonly assetIdsDto: AssetIdsDto
  12682. /**
  12683. *
  12684. * @type {string}
  12685. * @memberof SharedLinkApiAddSharedLinkAssets
  12686. */
  12687. readonly key?: string
  12688. }
  12689. /**
  12690. * Request parameters for createSharedLink operation in SharedLinkApi.
  12691. * @export
  12692. * @interface SharedLinkApiCreateSharedLinkRequest
  12693. */
  12694. export interface SharedLinkApiCreateSharedLinkRequest {
  12695. /**
  12696. *
  12697. * @type {SharedLinkCreateDto}
  12698. * @memberof SharedLinkApiCreateSharedLink
  12699. */
  12700. readonly sharedLinkCreateDto: SharedLinkCreateDto
  12701. }
  12702. /**
  12703. * Request parameters for getMySharedLink operation in SharedLinkApi.
  12704. * @export
  12705. * @interface SharedLinkApiGetMySharedLinkRequest
  12706. */
  12707. export interface SharedLinkApiGetMySharedLinkRequest {
  12708. /**
  12709. *
  12710. * @type {string}
  12711. * @memberof SharedLinkApiGetMySharedLink
  12712. */
  12713. readonly key?: string
  12714. }
  12715. /**
  12716. * Request parameters for getSharedLinkById operation in SharedLinkApi.
  12717. * @export
  12718. * @interface SharedLinkApiGetSharedLinkByIdRequest
  12719. */
  12720. export interface SharedLinkApiGetSharedLinkByIdRequest {
  12721. /**
  12722. *
  12723. * @type {string}
  12724. * @memberof SharedLinkApiGetSharedLinkById
  12725. */
  12726. readonly id: string
  12727. }
  12728. /**
  12729. * Request parameters for removeSharedLink operation in SharedLinkApi.
  12730. * @export
  12731. * @interface SharedLinkApiRemoveSharedLinkRequest
  12732. */
  12733. export interface SharedLinkApiRemoveSharedLinkRequest {
  12734. /**
  12735. *
  12736. * @type {string}
  12737. * @memberof SharedLinkApiRemoveSharedLink
  12738. */
  12739. readonly id: string
  12740. }
  12741. /**
  12742. * Request parameters for removeSharedLinkAssets operation in SharedLinkApi.
  12743. * @export
  12744. * @interface SharedLinkApiRemoveSharedLinkAssetsRequest
  12745. */
  12746. export interface SharedLinkApiRemoveSharedLinkAssetsRequest {
  12747. /**
  12748. *
  12749. * @type {string}
  12750. * @memberof SharedLinkApiRemoveSharedLinkAssets
  12751. */
  12752. readonly id: string
  12753. /**
  12754. *
  12755. * @type {AssetIdsDto}
  12756. * @memberof SharedLinkApiRemoveSharedLinkAssets
  12757. */
  12758. readonly assetIdsDto: AssetIdsDto
  12759. /**
  12760. *
  12761. * @type {string}
  12762. * @memberof SharedLinkApiRemoveSharedLinkAssets
  12763. */
  12764. readonly key?: string
  12765. }
  12766. /**
  12767. * Request parameters for updateSharedLink operation in SharedLinkApi.
  12768. * @export
  12769. * @interface SharedLinkApiUpdateSharedLinkRequest
  12770. */
  12771. export interface SharedLinkApiUpdateSharedLinkRequest {
  12772. /**
  12773. *
  12774. * @type {string}
  12775. * @memberof SharedLinkApiUpdateSharedLink
  12776. */
  12777. readonly id: string
  12778. /**
  12779. *
  12780. * @type {SharedLinkEditDto}
  12781. * @memberof SharedLinkApiUpdateSharedLink
  12782. */
  12783. readonly sharedLinkEditDto: SharedLinkEditDto
  12784. }
  12785. /**
  12786. * SharedLinkApi - object-oriented interface
  12787. * @export
  12788. * @class SharedLinkApi
  12789. * @extends {BaseAPI}
  12790. */
  12791. export class SharedLinkApi extends BaseAPI {
  12792. /**
  12793. *
  12794. * @param {SharedLinkApiAddSharedLinkAssetsRequest} requestParameters Request parameters.
  12795. * @param {*} [options] Override http request option.
  12796. * @throws {RequiredError}
  12797. * @memberof SharedLinkApi
  12798. */
  12799. public addSharedLinkAssets(requestParameters: SharedLinkApiAddSharedLinkAssetsRequest, options?: AxiosRequestConfig) {
  12800. return SharedLinkApiFp(this.configuration).addSharedLinkAssets(requestParameters.id, requestParameters.assetIdsDto, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  12801. }
  12802. /**
  12803. *
  12804. * @param {SharedLinkApiCreateSharedLinkRequest} requestParameters Request parameters.
  12805. * @param {*} [options] Override http request option.
  12806. * @throws {RequiredError}
  12807. * @memberof SharedLinkApi
  12808. */
  12809. public createSharedLink(requestParameters: SharedLinkApiCreateSharedLinkRequest, options?: AxiosRequestConfig) {
  12810. return SharedLinkApiFp(this.configuration).createSharedLink(requestParameters.sharedLinkCreateDto, options).then((request) => request(this.axios, this.basePath));
  12811. }
  12812. /**
  12813. *
  12814. * @param {*} [options] Override http request option.
  12815. * @throws {RequiredError}
  12816. * @memberof SharedLinkApi
  12817. */
  12818. public getAllSharedLinks(options?: AxiosRequestConfig) {
  12819. return SharedLinkApiFp(this.configuration).getAllSharedLinks(options).then((request) => request(this.axios, this.basePath));
  12820. }
  12821. /**
  12822. *
  12823. * @param {SharedLinkApiGetMySharedLinkRequest} requestParameters Request parameters.
  12824. * @param {*} [options] Override http request option.
  12825. * @throws {RequiredError}
  12826. * @memberof SharedLinkApi
  12827. */
  12828. public getMySharedLink(requestParameters: SharedLinkApiGetMySharedLinkRequest = {}, options?: AxiosRequestConfig) {
  12829. return SharedLinkApiFp(this.configuration).getMySharedLink(requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  12830. }
  12831. /**
  12832. *
  12833. * @param {SharedLinkApiGetSharedLinkByIdRequest} requestParameters Request parameters.
  12834. * @param {*} [options] Override http request option.
  12835. * @throws {RequiredError}
  12836. * @memberof SharedLinkApi
  12837. */
  12838. public getSharedLinkById(requestParameters: SharedLinkApiGetSharedLinkByIdRequest, options?: AxiosRequestConfig) {
  12839. return SharedLinkApiFp(this.configuration).getSharedLinkById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  12840. }
  12841. /**
  12842. *
  12843. * @param {SharedLinkApiRemoveSharedLinkRequest} requestParameters Request parameters.
  12844. * @param {*} [options] Override http request option.
  12845. * @throws {RequiredError}
  12846. * @memberof SharedLinkApi
  12847. */
  12848. public removeSharedLink(requestParameters: SharedLinkApiRemoveSharedLinkRequest, options?: AxiosRequestConfig) {
  12849. return SharedLinkApiFp(this.configuration).removeSharedLink(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  12850. }
  12851. /**
  12852. *
  12853. * @param {SharedLinkApiRemoveSharedLinkAssetsRequest} requestParameters Request parameters.
  12854. * @param {*} [options] Override http request option.
  12855. * @throws {RequiredError}
  12856. * @memberof SharedLinkApi
  12857. */
  12858. public removeSharedLinkAssets(requestParameters: SharedLinkApiRemoveSharedLinkAssetsRequest, options?: AxiosRequestConfig) {
  12859. return SharedLinkApiFp(this.configuration).removeSharedLinkAssets(requestParameters.id, requestParameters.assetIdsDto, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  12860. }
  12861. /**
  12862. *
  12863. * @param {SharedLinkApiUpdateSharedLinkRequest} requestParameters Request parameters.
  12864. * @param {*} [options] Override http request option.
  12865. * @throws {RequiredError}
  12866. * @memberof SharedLinkApi
  12867. */
  12868. public updateSharedLink(requestParameters: SharedLinkApiUpdateSharedLinkRequest, options?: AxiosRequestConfig) {
  12869. return SharedLinkApiFp(this.configuration).updateSharedLink(requestParameters.id, requestParameters.sharedLinkEditDto, options).then((request) => request(this.axios, this.basePath));
  12870. }
  12871. }
  12872. /**
  12873. * SystemConfigApi - axios parameter creator
  12874. * @export
  12875. */
  12876. export const SystemConfigApiAxiosParamCreator = function (configuration?: Configuration) {
  12877. return {
  12878. /**
  12879. *
  12880. * @param {*} [options] Override http request option.
  12881. * @throws {RequiredError}
  12882. */
  12883. getConfig: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  12884. const localVarPath = `/system-config`;
  12885. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  12886. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  12887. let baseOptions;
  12888. if (configuration) {
  12889. baseOptions = configuration.baseOptions;
  12890. }
  12891. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  12892. const localVarHeaderParameter = {} as any;
  12893. const localVarQueryParameter = {} as any;
  12894. // authentication cookie required
  12895. // authentication api_key required
  12896. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  12897. // authentication bearer required
  12898. // http bearer authentication required
  12899. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  12900. setSearchParams(localVarUrlObj, localVarQueryParameter);
  12901. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  12902. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  12903. return {
  12904. url: toPathString(localVarUrlObj),
  12905. options: localVarRequestOptions,
  12906. };
  12907. },
  12908. /**
  12909. *
  12910. * @param {*} [options] Override http request option.
  12911. * @throws {RequiredError}
  12912. */
  12913. getDefaults: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  12914. const localVarPath = `/system-config/defaults`;
  12915. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  12916. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  12917. let baseOptions;
  12918. if (configuration) {
  12919. baseOptions = configuration.baseOptions;
  12920. }
  12921. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  12922. const localVarHeaderParameter = {} as any;
  12923. const localVarQueryParameter = {} as any;
  12924. // authentication cookie required
  12925. // authentication api_key required
  12926. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  12927. // authentication bearer required
  12928. // http bearer authentication required
  12929. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  12930. setSearchParams(localVarUrlObj, localVarQueryParameter);
  12931. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  12932. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  12933. return {
  12934. url: toPathString(localVarUrlObj),
  12935. options: localVarRequestOptions,
  12936. };
  12937. },
  12938. /**
  12939. *
  12940. * @param {*} [options] Override http request option.
  12941. * @throws {RequiredError}
  12942. */
  12943. getStorageTemplateOptions: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  12944. const localVarPath = `/system-config/storage-template-options`;
  12945. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  12946. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  12947. let baseOptions;
  12948. if (configuration) {
  12949. baseOptions = configuration.baseOptions;
  12950. }
  12951. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  12952. const localVarHeaderParameter = {} as any;
  12953. const localVarQueryParameter = {} as any;
  12954. // authentication cookie required
  12955. // authentication api_key required
  12956. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  12957. // authentication bearer required
  12958. // http bearer authentication required
  12959. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  12960. setSearchParams(localVarUrlObj, localVarQueryParameter);
  12961. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  12962. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  12963. return {
  12964. url: toPathString(localVarUrlObj),
  12965. options: localVarRequestOptions,
  12966. };
  12967. },
  12968. /**
  12969. *
  12970. * @param {SystemConfigDto} systemConfigDto
  12971. * @param {*} [options] Override http request option.
  12972. * @throws {RequiredError}
  12973. */
  12974. updateConfig: async (systemConfigDto: SystemConfigDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  12975. // verify required parameter 'systemConfigDto' is not null or undefined
  12976. assertParamExists('updateConfig', 'systemConfigDto', systemConfigDto)
  12977. const localVarPath = `/system-config`;
  12978. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  12979. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  12980. let baseOptions;
  12981. if (configuration) {
  12982. baseOptions = configuration.baseOptions;
  12983. }
  12984. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  12985. const localVarHeaderParameter = {} as any;
  12986. const localVarQueryParameter = {} as any;
  12987. // authentication cookie required
  12988. // authentication api_key required
  12989. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  12990. // authentication bearer required
  12991. // http bearer authentication required
  12992. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  12993. localVarHeaderParameter['Content-Type'] = 'application/json';
  12994. setSearchParams(localVarUrlObj, localVarQueryParameter);
  12995. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  12996. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  12997. localVarRequestOptions.data = serializeDataIfNeeded(systemConfigDto, localVarRequestOptions, configuration)
  12998. return {
  12999. url: toPathString(localVarUrlObj),
  13000. options: localVarRequestOptions,
  13001. };
  13002. },
  13003. }
  13004. };
  13005. /**
  13006. * SystemConfigApi - functional programming interface
  13007. * @export
  13008. */
  13009. export const SystemConfigApiFp = function(configuration?: Configuration) {
  13010. const localVarAxiosParamCreator = SystemConfigApiAxiosParamCreator(configuration)
  13011. return {
  13012. /**
  13013. *
  13014. * @param {*} [options] Override http request option.
  13015. * @throws {RequiredError}
  13016. */
  13017. async getConfig(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SystemConfigDto>> {
  13018. const localVarAxiosArgs = await localVarAxiosParamCreator.getConfig(options);
  13019. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13020. },
  13021. /**
  13022. *
  13023. * @param {*} [options] Override http request option.
  13024. * @throws {RequiredError}
  13025. */
  13026. async getDefaults(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SystemConfigDto>> {
  13027. const localVarAxiosArgs = await localVarAxiosParamCreator.getDefaults(options);
  13028. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13029. },
  13030. /**
  13031. *
  13032. * @param {*} [options] Override http request option.
  13033. * @throws {RequiredError}
  13034. */
  13035. async getStorageTemplateOptions(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SystemConfigTemplateStorageOptionDto>> {
  13036. const localVarAxiosArgs = await localVarAxiosParamCreator.getStorageTemplateOptions(options);
  13037. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13038. },
  13039. /**
  13040. *
  13041. * @param {SystemConfigDto} systemConfigDto
  13042. * @param {*} [options] Override http request option.
  13043. * @throws {RequiredError}
  13044. */
  13045. async updateConfig(systemConfigDto: SystemConfigDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SystemConfigDto>> {
  13046. const localVarAxiosArgs = await localVarAxiosParamCreator.updateConfig(systemConfigDto, options);
  13047. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13048. },
  13049. }
  13050. };
  13051. /**
  13052. * SystemConfigApi - factory interface
  13053. * @export
  13054. */
  13055. export const SystemConfigApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  13056. const localVarFp = SystemConfigApiFp(configuration)
  13057. return {
  13058. /**
  13059. *
  13060. * @param {*} [options] Override http request option.
  13061. * @throws {RequiredError}
  13062. */
  13063. getConfig(options?: AxiosRequestConfig): AxiosPromise<SystemConfigDto> {
  13064. return localVarFp.getConfig(options).then((request) => request(axios, basePath));
  13065. },
  13066. /**
  13067. *
  13068. * @param {*} [options] Override http request option.
  13069. * @throws {RequiredError}
  13070. */
  13071. getDefaults(options?: AxiosRequestConfig): AxiosPromise<SystemConfigDto> {
  13072. return localVarFp.getDefaults(options).then((request) => request(axios, basePath));
  13073. },
  13074. /**
  13075. *
  13076. * @param {*} [options] Override http request option.
  13077. * @throws {RequiredError}
  13078. */
  13079. getStorageTemplateOptions(options?: AxiosRequestConfig): AxiosPromise<SystemConfigTemplateStorageOptionDto> {
  13080. return localVarFp.getStorageTemplateOptions(options).then((request) => request(axios, basePath));
  13081. },
  13082. /**
  13083. *
  13084. * @param {SystemConfigApiUpdateConfigRequest} requestParameters Request parameters.
  13085. * @param {*} [options] Override http request option.
  13086. * @throws {RequiredError}
  13087. */
  13088. updateConfig(requestParameters: SystemConfigApiUpdateConfigRequest, options?: AxiosRequestConfig): AxiosPromise<SystemConfigDto> {
  13089. return localVarFp.updateConfig(requestParameters.systemConfigDto, options).then((request) => request(axios, basePath));
  13090. },
  13091. };
  13092. };
  13093. /**
  13094. * Request parameters for updateConfig operation in SystemConfigApi.
  13095. * @export
  13096. * @interface SystemConfigApiUpdateConfigRequest
  13097. */
  13098. export interface SystemConfigApiUpdateConfigRequest {
  13099. /**
  13100. *
  13101. * @type {SystemConfigDto}
  13102. * @memberof SystemConfigApiUpdateConfig
  13103. */
  13104. readonly systemConfigDto: SystemConfigDto
  13105. }
  13106. /**
  13107. * SystemConfigApi - object-oriented interface
  13108. * @export
  13109. * @class SystemConfigApi
  13110. * @extends {BaseAPI}
  13111. */
  13112. export class SystemConfigApi extends BaseAPI {
  13113. /**
  13114. *
  13115. * @param {*} [options] Override http request option.
  13116. * @throws {RequiredError}
  13117. * @memberof SystemConfigApi
  13118. */
  13119. public getConfig(options?: AxiosRequestConfig) {
  13120. return SystemConfigApiFp(this.configuration).getConfig(options).then((request) => request(this.axios, this.basePath));
  13121. }
  13122. /**
  13123. *
  13124. * @param {*} [options] Override http request option.
  13125. * @throws {RequiredError}
  13126. * @memberof SystemConfigApi
  13127. */
  13128. public getDefaults(options?: AxiosRequestConfig) {
  13129. return SystemConfigApiFp(this.configuration).getDefaults(options).then((request) => request(this.axios, this.basePath));
  13130. }
  13131. /**
  13132. *
  13133. * @param {*} [options] Override http request option.
  13134. * @throws {RequiredError}
  13135. * @memberof SystemConfigApi
  13136. */
  13137. public getStorageTemplateOptions(options?: AxiosRequestConfig) {
  13138. return SystemConfigApiFp(this.configuration).getStorageTemplateOptions(options).then((request) => request(this.axios, this.basePath));
  13139. }
  13140. /**
  13141. *
  13142. * @param {SystemConfigApiUpdateConfigRequest} requestParameters Request parameters.
  13143. * @param {*} [options] Override http request option.
  13144. * @throws {RequiredError}
  13145. * @memberof SystemConfigApi
  13146. */
  13147. public updateConfig(requestParameters: SystemConfigApiUpdateConfigRequest, options?: AxiosRequestConfig) {
  13148. return SystemConfigApiFp(this.configuration).updateConfig(requestParameters.systemConfigDto, options).then((request) => request(this.axios, this.basePath));
  13149. }
  13150. }
  13151. /**
  13152. * TagApi - axios parameter creator
  13153. * @export
  13154. */
  13155. export const TagApiAxiosParamCreator = function (configuration?: Configuration) {
  13156. return {
  13157. /**
  13158. *
  13159. * @param {CreateTagDto} createTagDto
  13160. * @param {*} [options] Override http request option.
  13161. * @throws {RequiredError}
  13162. */
  13163. createTag: async (createTagDto: CreateTagDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13164. // verify required parameter 'createTagDto' is not null or undefined
  13165. assertParamExists('createTag', 'createTagDto', createTagDto)
  13166. const localVarPath = `/tag`;
  13167. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13168. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13169. let baseOptions;
  13170. if (configuration) {
  13171. baseOptions = configuration.baseOptions;
  13172. }
  13173. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  13174. const localVarHeaderParameter = {} as any;
  13175. const localVarQueryParameter = {} as any;
  13176. // authentication cookie required
  13177. // authentication api_key required
  13178. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13179. // authentication bearer required
  13180. // http bearer authentication required
  13181. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13182. localVarHeaderParameter['Content-Type'] = 'application/json';
  13183. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13184. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13185. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13186. localVarRequestOptions.data = serializeDataIfNeeded(createTagDto, localVarRequestOptions, configuration)
  13187. return {
  13188. url: toPathString(localVarUrlObj),
  13189. options: localVarRequestOptions,
  13190. };
  13191. },
  13192. /**
  13193. *
  13194. * @param {string} id
  13195. * @param {*} [options] Override http request option.
  13196. * @throws {RequiredError}
  13197. */
  13198. deleteTag: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13199. // verify required parameter 'id' is not null or undefined
  13200. assertParamExists('deleteTag', 'id', id)
  13201. const localVarPath = `/tag/{id}`
  13202. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  13203. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13204. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13205. let baseOptions;
  13206. if (configuration) {
  13207. baseOptions = configuration.baseOptions;
  13208. }
  13209. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  13210. const localVarHeaderParameter = {} as any;
  13211. const localVarQueryParameter = {} as any;
  13212. // authentication cookie required
  13213. // authentication api_key required
  13214. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13215. // authentication bearer required
  13216. // http bearer authentication required
  13217. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13218. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13219. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13220. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13221. return {
  13222. url: toPathString(localVarUrlObj),
  13223. options: localVarRequestOptions,
  13224. };
  13225. },
  13226. /**
  13227. *
  13228. * @param {*} [options] Override http request option.
  13229. * @throws {RequiredError}
  13230. */
  13231. getAllTags: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13232. const localVarPath = `/tag`;
  13233. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13234. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13235. let baseOptions;
  13236. if (configuration) {
  13237. baseOptions = configuration.baseOptions;
  13238. }
  13239. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  13240. const localVarHeaderParameter = {} as any;
  13241. const localVarQueryParameter = {} as any;
  13242. // authentication cookie required
  13243. // authentication api_key required
  13244. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13245. // authentication bearer required
  13246. // http bearer authentication required
  13247. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13248. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13249. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13250. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13251. return {
  13252. url: toPathString(localVarUrlObj),
  13253. options: localVarRequestOptions,
  13254. };
  13255. },
  13256. /**
  13257. *
  13258. * @param {string} id
  13259. * @param {*} [options] Override http request option.
  13260. * @throws {RequiredError}
  13261. */
  13262. getTagAssets: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13263. // verify required parameter 'id' is not null or undefined
  13264. assertParamExists('getTagAssets', 'id', id)
  13265. const localVarPath = `/tag/{id}/assets`
  13266. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  13267. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13268. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13269. let baseOptions;
  13270. if (configuration) {
  13271. baseOptions = configuration.baseOptions;
  13272. }
  13273. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  13274. const localVarHeaderParameter = {} as any;
  13275. const localVarQueryParameter = {} as any;
  13276. // authentication cookie required
  13277. // authentication api_key required
  13278. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13279. // authentication bearer required
  13280. // http bearer authentication required
  13281. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13282. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13283. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13284. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13285. return {
  13286. url: toPathString(localVarUrlObj),
  13287. options: localVarRequestOptions,
  13288. };
  13289. },
  13290. /**
  13291. *
  13292. * @param {string} id
  13293. * @param {*} [options] Override http request option.
  13294. * @throws {RequiredError}
  13295. */
  13296. getTagById: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13297. // verify required parameter 'id' is not null or undefined
  13298. assertParamExists('getTagById', 'id', id)
  13299. const localVarPath = `/tag/{id}`
  13300. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  13301. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13302. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13303. let baseOptions;
  13304. if (configuration) {
  13305. baseOptions = configuration.baseOptions;
  13306. }
  13307. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  13308. const localVarHeaderParameter = {} as any;
  13309. const localVarQueryParameter = {} as any;
  13310. // authentication cookie required
  13311. // authentication api_key required
  13312. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13313. // authentication bearer required
  13314. // http bearer authentication required
  13315. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13316. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13317. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13318. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13319. return {
  13320. url: toPathString(localVarUrlObj),
  13321. options: localVarRequestOptions,
  13322. };
  13323. },
  13324. /**
  13325. *
  13326. * @param {string} id
  13327. * @param {AssetIdsDto} assetIdsDto
  13328. * @param {*} [options] Override http request option.
  13329. * @throws {RequiredError}
  13330. */
  13331. tagAssets: async (id: string, assetIdsDto: AssetIdsDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13332. // verify required parameter 'id' is not null or undefined
  13333. assertParamExists('tagAssets', 'id', id)
  13334. // verify required parameter 'assetIdsDto' is not null or undefined
  13335. assertParamExists('tagAssets', 'assetIdsDto', assetIdsDto)
  13336. const localVarPath = `/tag/{id}/assets`
  13337. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  13338. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13339. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13340. let baseOptions;
  13341. if (configuration) {
  13342. baseOptions = configuration.baseOptions;
  13343. }
  13344. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  13345. const localVarHeaderParameter = {} as any;
  13346. const localVarQueryParameter = {} as any;
  13347. // authentication cookie required
  13348. // authentication api_key required
  13349. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13350. // authentication bearer required
  13351. // http bearer authentication required
  13352. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13353. localVarHeaderParameter['Content-Type'] = 'application/json';
  13354. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13355. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13356. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13357. localVarRequestOptions.data = serializeDataIfNeeded(assetIdsDto, localVarRequestOptions, configuration)
  13358. return {
  13359. url: toPathString(localVarUrlObj),
  13360. options: localVarRequestOptions,
  13361. };
  13362. },
  13363. /**
  13364. *
  13365. * @param {string} id
  13366. * @param {AssetIdsDto} assetIdsDto
  13367. * @param {*} [options] Override http request option.
  13368. * @throws {RequiredError}
  13369. */
  13370. untagAssets: async (id: string, assetIdsDto: AssetIdsDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13371. // verify required parameter 'id' is not null or undefined
  13372. assertParamExists('untagAssets', 'id', id)
  13373. // verify required parameter 'assetIdsDto' is not null or undefined
  13374. assertParamExists('untagAssets', 'assetIdsDto', assetIdsDto)
  13375. const localVarPath = `/tag/{id}/assets`
  13376. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  13377. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13378. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13379. let baseOptions;
  13380. if (configuration) {
  13381. baseOptions = configuration.baseOptions;
  13382. }
  13383. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  13384. const localVarHeaderParameter = {} as any;
  13385. const localVarQueryParameter = {} as any;
  13386. // authentication cookie required
  13387. // authentication api_key required
  13388. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13389. // authentication bearer required
  13390. // http bearer authentication required
  13391. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13392. localVarHeaderParameter['Content-Type'] = 'application/json';
  13393. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13394. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13395. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13396. localVarRequestOptions.data = serializeDataIfNeeded(assetIdsDto, localVarRequestOptions, configuration)
  13397. return {
  13398. url: toPathString(localVarUrlObj),
  13399. options: localVarRequestOptions,
  13400. };
  13401. },
  13402. /**
  13403. *
  13404. * @param {string} id
  13405. * @param {UpdateTagDto} updateTagDto
  13406. * @param {*} [options] Override http request option.
  13407. * @throws {RequiredError}
  13408. */
  13409. updateTag: async (id: string, updateTagDto: UpdateTagDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13410. // verify required parameter 'id' is not null or undefined
  13411. assertParamExists('updateTag', 'id', id)
  13412. // verify required parameter 'updateTagDto' is not null or undefined
  13413. assertParamExists('updateTag', 'updateTagDto', updateTagDto)
  13414. const localVarPath = `/tag/{id}`
  13415. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  13416. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13417. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13418. let baseOptions;
  13419. if (configuration) {
  13420. baseOptions = configuration.baseOptions;
  13421. }
  13422. const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
  13423. const localVarHeaderParameter = {} as any;
  13424. const localVarQueryParameter = {} as any;
  13425. // authentication cookie required
  13426. // authentication api_key required
  13427. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13428. // authentication bearer required
  13429. // http bearer authentication required
  13430. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13431. localVarHeaderParameter['Content-Type'] = 'application/json';
  13432. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13433. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13434. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13435. localVarRequestOptions.data = serializeDataIfNeeded(updateTagDto, localVarRequestOptions, configuration)
  13436. return {
  13437. url: toPathString(localVarUrlObj),
  13438. options: localVarRequestOptions,
  13439. };
  13440. },
  13441. }
  13442. };
  13443. /**
  13444. * TagApi - functional programming interface
  13445. * @export
  13446. */
  13447. export const TagApiFp = function(configuration?: Configuration) {
  13448. const localVarAxiosParamCreator = TagApiAxiosParamCreator(configuration)
  13449. return {
  13450. /**
  13451. *
  13452. * @param {CreateTagDto} createTagDto
  13453. * @param {*} [options] Override http request option.
  13454. * @throws {RequiredError}
  13455. */
  13456. async createTag(createTagDto: CreateTagDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TagResponseDto>> {
  13457. const localVarAxiosArgs = await localVarAxiosParamCreator.createTag(createTagDto, options);
  13458. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13459. },
  13460. /**
  13461. *
  13462. * @param {string} id
  13463. * @param {*} [options] Override http request option.
  13464. * @throws {RequiredError}
  13465. */
  13466. async deleteTag(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  13467. const localVarAxiosArgs = await localVarAxiosParamCreator.deleteTag(id, options);
  13468. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13469. },
  13470. /**
  13471. *
  13472. * @param {*} [options] Override http request option.
  13473. * @throws {RequiredError}
  13474. */
  13475. async getAllTags(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<TagResponseDto>>> {
  13476. const localVarAxiosArgs = await localVarAxiosParamCreator.getAllTags(options);
  13477. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13478. },
  13479. /**
  13480. *
  13481. * @param {string} id
  13482. * @param {*} [options] Override http request option.
  13483. * @throws {RequiredError}
  13484. */
  13485. async getTagAssets(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetResponseDto>>> {
  13486. const localVarAxiosArgs = await localVarAxiosParamCreator.getTagAssets(id, options);
  13487. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13488. },
  13489. /**
  13490. *
  13491. * @param {string} id
  13492. * @param {*} [options] Override http request option.
  13493. * @throws {RequiredError}
  13494. */
  13495. async getTagById(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TagResponseDto>> {
  13496. const localVarAxiosArgs = await localVarAxiosParamCreator.getTagById(id, options);
  13497. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13498. },
  13499. /**
  13500. *
  13501. * @param {string} id
  13502. * @param {AssetIdsDto} assetIdsDto
  13503. * @param {*} [options] Override http request option.
  13504. * @throws {RequiredError}
  13505. */
  13506. async tagAssets(id: string, assetIdsDto: AssetIdsDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetIdsResponseDto>>> {
  13507. const localVarAxiosArgs = await localVarAxiosParamCreator.tagAssets(id, assetIdsDto, options);
  13508. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13509. },
  13510. /**
  13511. *
  13512. * @param {string} id
  13513. * @param {AssetIdsDto} assetIdsDto
  13514. * @param {*} [options] Override http request option.
  13515. * @throws {RequiredError}
  13516. */
  13517. async untagAssets(id: string, assetIdsDto: AssetIdsDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetIdsResponseDto>>> {
  13518. const localVarAxiosArgs = await localVarAxiosParamCreator.untagAssets(id, assetIdsDto, options);
  13519. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13520. },
  13521. /**
  13522. *
  13523. * @param {string} id
  13524. * @param {UpdateTagDto} updateTagDto
  13525. * @param {*} [options] Override http request option.
  13526. * @throws {RequiredError}
  13527. */
  13528. async updateTag(id: string, updateTagDto: UpdateTagDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TagResponseDto>> {
  13529. const localVarAxiosArgs = await localVarAxiosParamCreator.updateTag(id, updateTagDto, options);
  13530. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13531. },
  13532. }
  13533. };
  13534. /**
  13535. * TagApi - factory interface
  13536. * @export
  13537. */
  13538. export const TagApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  13539. const localVarFp = TagApiFp(configuration)
  13540. return {
  13541. /**
  13542. *
  13543. * @param {TagApiCreateTagRequest} requestParameters Request parameters.
  13544. * @param {*} [options] Override http request option.
  13545. * @throws {RequiredError}
  13546. */
  13547. createTag(requestParameters: TagApiCreateTagRequest, options?: AxiosRequestConfig): AxiosPromise<TagResponseDto> {
  13548. return localVarFp.createTag(requestParameters.createTagDto, options).then((request) => request(axios, basePath));
  13549. },
  13550. /**
  13551. *
  13552. * @param {TagApiDeleteTagRequest} requestParameters Request parameters.
  13553. * @param {*} [options] Override http request option.
  13554. * @throws {RequiredError}
  13555. */
  13556. deleteTag(requestParameters: TagApiDeleteTagRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  13557. return localVarFp.deleteTag(requestParameters.id, options).then((request) => request(axios, basePath));
  13558. },
  13559. /**
  13560. *
  13561. * @param {*} [options] Override http request option.
  13562. * @throws {RequiredError}
  13563. */
  13564. getAllTags(options?: AxiosRequestConfig): AxiosPromise<Array<TagResponseDto>> {
  13565. return localVarFp.getAllTags(options).then((request) => request(axios, basePath));
  13566. },
  13567. /**
  13568. *
  13569. * @param {TagApiGetTagAssetsRequest} requestParameters Request parameters.
  13570. * @param {*} [options] Override http request option.
  13571. * @throws {RequiredError}
  13572. */
  13573. getTagAssets(requestParameters: TagApiGetTagAssetsRequest, options?: AxiosRequestConfig): AxiosPromise<Array<AssetResponseDto>> {
  13574. return localVarFp.getTagAssets(requestParameters.id, options).then((request) => request(axios, basePath));
  13575. },
  13576. /**
  13577. *
  13578. * @param {TagApiGetTagByIdRequest} requestParameters Request parameters.
  13579. * @param {*} [options] Override http request option.
  13580. * @throws {RequiredError}
  13581. */
  13582. getTagById(requestParameters: TagApiGetTagByIdRequest, options?: AxiosRequestConfig): AxiosPromise<TagResponseDto> {
  13583. return localVarFp.getTagById(requestParameters.id, options).then((request) => request(axios, basePath));
  13584. },
  13585. /**
  13586. *
  13587. * @param {TagApiTagAssetsRequest} requestParameters Request parameters.
  13588. * @param {*} [options] Override http request option.
  13589. * @throws {RequiredError}
  13590. */
  13591. tagAssets(requestParameters: TagApiTagAssetsRequest, options?: AxiosRequestConfig): AxiosPromise<Array<AssetIdsResponseDto>> {
  13592. return localVarFp.tagAssets(requestParameters.id, requestParameters.assetIdsDto, options).then((request) => request(axios, basePath));
  13593. },
  13594. /**
  13595. *
  13596. * @param {TagApiUntagAssetsRequest} requestParameters Request parameters.
  13597. * @param {*} [options] Override http request option.
  13598. * @throws {RequiredError}
  13599. */
  13600. untagAssets(requestParameters: TagApiUntagAssetsRequest, options?: AxiosRequestConfig): AxiosPromise<Array<AssetIdsResponseDto>> {
  13601. return localVarFp.untagAssets(requestParameters.id, requestParameters.assetIdsDto, options).then((request) => request(axios, basePath));
  13602. },
  13603. /**
  13604. *
  13605. * @param {TagApiUpdateTagRequest} requestParameters Request parameters.
  13606. * @param {*} [options] Override http request option.
  13607. * @throws {RequiredError}
  13608. */
  13609. updateTag(requestParameters: TagApiUpdateTagRequest, options?: AxiosRequestConfig): AxiosPromise<TagResponseDto> {
  13610. return localVarFp.updateTag(requestParameters.id, requestParameters.updateTagDto, options).then((request) => request(axios, basePath));
  13611. },
  13612. };
  13613. };
  13614. /**
  13615. * Request parameters for createTag operation in TagApi.
  13616. * @export
  13617. * @interface TagApiCreateTagRequest
  13618. */
  13619. export interface TagApiCreateTagRequest {
  13620. /**
  13621. *
  13622. * @type {CreateTagDto}
  13623. * @memberof TagApiCreateTag
  13624. */
  13625. readonly createTagDto: CreateTagDto
  13626. }
  13627. /**
  13628. * Request parameters for deleteTag operation in TagApi.
  13629. * @export
  13630. * @interface TagApiDeleteTagRequest
  13631. */
  13632. export interface TagApiDeleteTagRequest {
  13633. /**
  13634. *
  13635. * @type {string}
  13636. * @memberof TagApiDeleteTag
  13637. */
  13638. readonly id: string
  13639. }
  13640. /**
  13641. * Request parameters for getTagAssets operation in TagApi.
  13642. * @export
  13643. * @interface TagApiGetTagAssetsRequest
  13644. */
  13645. export interface TagApiGetTagAssetsRequest {
  13646. /**
  13647. *
  13648. * @type {string}
  13649. * @memberof TagApiGetTagAssets
  13650. */
  13651. readonly id: string
  13652. }
  13653. /**
  13654. * Request parameters for getTagById operation in TagApi.
  13655. * @export
  13656. * @interface TagApiGetTagByIdRequest
  13657. */
  13658. export interface TagApiGetTagByIdRequest {
  13659. /**
  13660. *
  13661. * @type {string}
  13662. * @memberof TagApiGetTagById
  13663. */
  13664. readonly id: string
  13665. }
  13666. /**
  13667. * Request parameters for tagAssets operation in TagApi.
  13668. * @export
  13669. * @interface TagApiTagAssetsRequest
  13670. */
  13671. export interface TagApiTagAssetsRequest {
  13672. /**
  13673. *
  13674. * @type {string}
  13675. * @memberof TagApiTagAssets
  13676. */
  13677. readonly id: string
  13678. /**
  13679. *
  13680. * @type {AssetIdsDto}
  13681. * @memberof TagApiTagAssets
  13682. */
  13683. readonly assetIdsDto: AssetIdsDto
  13684. }
  13685. /**
  13686. * Request parameters for untagAssets operation in TagApi.
  13687. * @export
  13688. * @interface TagApiUntagAssetsRequest
  13689. */
  13690. export interface TagApiUntagAssetsRequest {
  13691. /**
  13692. *
  13693. * @type {string}
  13694. * @memberof TagApiUntagAssets
  13695. */
  13696. readonly id: string
  13697. /**
  13698. *
  13699. * @type {AssetIdsDto}
  13700. * @memberof TagApiUntagAssets
  13701. */
  13702. readonly assetIdsDto: AssetIdsDto
  13703. }
  13704. /**
  13705. * Request parameters for updateTag operation in TagApi.
  13706. * @export
  13707. * @interface TagApiUpdateTagRequest
  13708. */
  13709. export interface TagApiUpdateTagRequest {
  13710. /**
  13711. *
  13712. * @type {string}
  13713. * @memberof TagApiUpdateTag
  13714. */
  13715. readonly id: string
  13716. /**
  13717. *
  13718. * @type {UpdateTagDto}
  13719. * @memberof TagApiUpdateTag
  13720. */
  13721. readonly updateTagDto: UpdateTagDto
  13722. }
  13723. /**
  13724. * TagApi - object-oriented interface
  13725. * @export
  13726. * @class TagApi
  13727. * @extends {BaseAPI}
  13728. */
  13729. export class TagApi extends BaseAPI {
  13730. /**
  13731. *
  13732. * @param {TagApiCreateTagRequest} requestParameters Request parameters.
  13733. * @param {*} [options] Override http request option.
  13734. * @throws {RequiredError}
  13735. * @memberof TagApi
  13736. */
  13737. public createTag(requestParameters: TagApiCreateTagRequest, options?: AxiosRequestConfig) {
  13738. return TagApiFp(this.configuration).createTag(requestParameters.createTagDto, options).then((request) => request(this.axios, this.basePath));
  13739. }
  13740. /**
  13741. *
  13742. * @param {TagApiDeleteTagRequest} requestParameters Request parameters.
  13743. * @param {*} [options] Override http request option.
  13744. * @throws {RequiredError}
  13745. * @memberof TagApi
  13746. */
  13747. public deleteTag(requestParameters: TagApiDeleteTagRequest, options?: AxiosRequestConfig) {
  13748. return TagApiFp(this.configuration).deleteTag(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  13749. }
  13750. /**
  13751. *
  13752. * @param {*} [options] Override http request option.
  13753. * @throws {RequiredError}
  13754. * @memberof TagApi
  13755. */
  13756. public getAllTags(options?: AxiosRequestConfig) {
  13757. return TagApiFp(this.configuration).getAllTags(options).then((request) => request(this.axios, this.basePath));
  13758. }
  13759. /**
  13760. *
  13761. * @param {TagApiGetTagAssetsRequest} requestParameters Request parameters.
  13762. * @param {*} [options] Override http request option.
  13763. * @throws {RequiredError}
  13764. * @memberof TagApi
  13765. */
  13766. public getTagAssets(requestParameters: TagApiGetTagAssetsRequest, options?: AxiosRequestConfig) {
  13767. return TagApiFp(this.configuration).getTagAssets(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  13768. }
  13769. /**
  13770. *
  13771. * @param {TagApiGetTagByIdRequest} requestParameters Request parameters.
  13772. * @param {*} [options] Override http request option.
  13773. * @throws {RequiredError}
  13774. * @memberof TagApi
  13775. */
  13776. public getTagById(requestParameters: TagApiGetTagByIdRequest, options?: AxiosRequestConfig) {
  13777. return TagApiFp(this.configuration).getTagById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  13778. }
  13779. /**
  13780. *
  13781. * @param {TagApiTagAssetsRequest} requestParameters Request parameters.
  13782. * @param {*} [options] Override http request option.
  13783. * @throws {RequiredError}
  13784. * @memberof TagApi
  13785. */
  13786. public tagAssets(requestParameters: TagApiTagAssetsRequest, options?: AxiosRequestConfig) {
  13787. return TagApiFp(this.configuration).tagAssets(requestParameters.id, requestParameters.assetIdsDto, options).then((request) => request(this.axios, this.basePath));
  13788. }
  13789. /**
  13790. *
  13791. * @param {TagApiUntagAssetsRequest} requestParameters Request parameters.
  13792. * @param {*} [options] Override http request option.
  13793. * @throws {RequiredError}
  13794. * @memberof TagApi
  13795. */
  13796. public untagAssets(requestParameters: TagApiUntagAssetsRequest, options?: AxiosRequestConfig) {
  13797. return TagApiFp(this.configuration).untagAssets(requestParameters.id, requestParameters.assetIdsDto, options).then((request) => request(this.axios, this.basePath));
  13798. }
  13799. /**
  13800. *
  13801. * @param {TagApiUpdateTagRequest} requestParameters Request parameters.
  13802. * @param {*} [options] Override http request option.
  13803. * @throws {RequiredError}
  13804. * @memberof TagApi
  13805. */
  13806. public updateTag(requestParameters: TagApiUpdateTagRequest, options?: AxiosRequestConfig) {
  13807. return TagApiFp(this.configuration).updateTag(requestParameters.id, requestParameters.updateTagDto, options).then((request) => request(this.axios, this.basePath));
  13808. }
  13809. }
  13810. /**
  13811. * UserApi - axios parameter creator
  13812. * @export
  13813. */
  13814. export const UserApiAxiosParamCreator = function (configuration?: Configuration) {
  13815. return {
  13816. /**
  13817. *
  13818. * @param {File} file
  13819. * @param {*} [options] Override http request option.
  13820. * @throws {RequiredError}
  13821. */
  13822. createProfileImage: async (file: File, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13823. // verify required parameter 'file' is not null or undefined
  13824. assertParamExists('createProfileImage', 'file', file)
  13825. const localVarPath = `/user/profile-image`;
  13826. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13827. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13828. let baseOptions;
  13829. if (configuration) {
  13830. baseOptions = configuration.baseOptions;
  13831. }
  13832. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  13833. const localVarHeaderParameter = {} as any;
  13834. const localVarQueryParameter = {} as any;
  13835. const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
  13836. // authentication cookie required
  13837. // authentication api_key required
  13838. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13839. // authentication bearer required
  13840. // http bearer authentication required
  13841. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13842. if (file !== undefined) {
  13843. localVarFormParams.append('file', file as any);
  13844. }
  13845. localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
  13846. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13847. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13848. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13849. localVarRequestOptions.data = localVarFormParams;
  13850. return {
  13851. url: toPathString(localVarUrlObj),
  13852. options: localVarRequestOptions,
  13853. };
  13854. },
  13855. /**
  13856. *
  13857. * @param {CreateUserDto} createUserDto
  13858. * @param {*} [options] Override http request option.
  13859. * @throws {RequiredError}
  13860. */
  13861. createUser: async (createUserDto: CreateUserDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13862. // verify required parameter 'createUserDto' is not null or undefined
  13863. assertParamExists('createUser', 'createUserDto', createUserDto)
  13864. const localVarPath = `/user`;
  13865. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13866. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13867. let baseOptions;
  13868. if (configuration) {
  13869. baseOptions = configuration.baseOptions;
  13870. }
  13871. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  13872. const localVarHeaderParameter = {} as any;
  13873. const localVarQueryParameter = {} as any;
  13874. // authentication cookie required
  13875. // authentication api_key required
  13876. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13877. // authentication bearer required
  13878. // http bearer authentication required
  13879. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13880. localVarHeaderParameter['Content-Type'] = 'application/json';
  13881. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13882. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13883. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13884. localVarRequestOptions.data = serializeDataIfNeeded(createUserDto, localVarRequestOptions, configuration)
  13885. return {
  13886. url: toPathString(localVarUrlObj),
  13887. options: localVarRequestOptions,
  13888. };
  13889. },
  13890. /**
  13891. *
  13892. * @param {string} id
  13893. * @param {*} [options] Override http request option.
  13894. * @throws {RequiredError}
  13895. */
  13896. deleteUser: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13897. // verify required parameter 'id' is not null or undefined
  13898. assertParamExists('deleteUser', 'id', id)
  13899. const localVarPath = `/user/{id}`
  13900. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  13901. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13902. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13903. let baseOptions;
  13904. if (configuration) {
  13905. baseOptions = configuration.baseOptions;
  13906. }
  13907. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  13908. const localVarHeaderParameter = {} as any;
  13909. const localVarQueryParameter = {} as any;
  13910. // authentication cookie required
  13911. // authentication api_key required
  13912. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13913. // authentication bearer required
  13914. // http bearer authentication required
  13915. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13916. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13917. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13918. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13919. return {
  13920. url: toPathString(localVarUrlObj),
  13921. options: localVarRequestOptions,
  13922. };
  13923. },
  13924. /**
  13925. *
  13926. * @param {boolean} isAll
  13927. * @param {*} [options] Override http request option.
  13928. * @throws {RequiredError}
  13929. */
  13930. getAllUsers: async (isAll: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13931. // verify required parameter 'isAll' is not null or undefined
  13932. assertParamExists('getAllUsers', 'isAll', isAll)
  13933. const localVarPath = `/user`;
  13934. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13935. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13936. let baseOptions;
  13937. if (configuration) {
  13938. baseOptions = configuration.baseOptions;
  13939. }
  13940. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  13941. const localVarHeaderParameter = {} as any;
  13942. const localVarQueryParameter = {} as any;
  13943. // authentication cookie required
  13944. // authentication api_key required
  13945. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13946. // authentication bearer required
  13947. // http bearer authentication required
  13948. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13949. if (isAll !== undefined) {
  13950. localVarQueryParameter['isAll'] = isAll;
  13951. }
  13952. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13953. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13954. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13955. return {
  13956. url: toPathString(localVarUrlObj),
  13957. options: localVarRequestOptions,
  13958. };
  13959. },
  13960. /**
  13961. *
  13962. * @param {*} [options] Override http request option.
  13963. * @throws {RequiredError}
  13964. */
  13965. getMyUserInfo: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13966. const localVarPath = `/user/me`;
  13967. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13968. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13969. let baseOptions;
  13970. if (configuration) {
  13971. baseOptions = configuration.baseOptions;
  13972. }
  13973. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  13974. const localVarHeaderParameter = {} as any;
  13975. const localVarQueryParameter = {} as any;
  13976. // authentication cookie required
  13977. // authentication api_key required
  13978. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13979. // authentication bearer required
  13980. // http bearer authentication required
  13981. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13982. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13983. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13984. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13985. return {
  13986. url: toPathString(localVarUrlObj),
  13987. options: localVarRequestOptions,
  13988. };
  13989. },
  13990. /**
  13991. *
  13992. * @param {string} id
  13993. * @param {*} [options] Override http request option.
  13994. * @throws {RequiredError}
  13995. */
  13996. getProfileImage: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13997. // verify required parameter 'id' is not null or undefined
  13998. assertParamExists('getProfileImage', 'id', id)
  13999. const localVarPath = `/user/profile-image/{id}`
  14000. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  14001. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  14002. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  14003. let baseOptions;
  14004. if (configuration) {
  14005. baseOptions = configuration.baseOptions;
  14006. }
  14007. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  14008. const localVarHeaderParameter = {} as any;
  14009. const localVarQueryParameter = {} as any;
  14010. // authentication cookie required
  14011. // authentication api_key required
  14012. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  14013. // authentication bearer required
  14014. // http bearer authentication required
  14015. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  14016. setSearchParams(localVarUrlObj, localVarQueryParameter);
  14017. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  14018. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  14019. return {
  14020. url: toPathString(localVarUrlObj),
  14021. options: localVarRequestOptions,
  14022. };
  14023. },
  14024. /**
  14025. *
  14026. * @param {string} id
  14027. * @param {*} [options] Override http request option.
  14028. * @throws {RequiredError}
  14029. */
  14030. getUserById: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  14031. // verify required parameter 'id' is not null or undefined
  14032. assertParamExists('getUserById', 'id', id)
  14033. const localVarPath = `/user/info/{id}`
  14034. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  14035. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  14036. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  14037. let baseOptions;
  14038. if (configuration) {
  14039. baseOptions = configuration.baseOptions;
  14040. }
  14041. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  14042. const localVarHeaderParameter = {} as any;
  14043. const localVarQueryParameter = {} as any;
  14044. // authentication cookie required
  14045. // authentication api_key required
  14046. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  14047. // authentication bearer required
  14048. // http bearer authentication required
  14049. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  14050. setSearchParams(localVarUrlObj, localVarQueryParameter);
  14051. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  14052. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  14053. return {
  14054. url: toPathString(localVarUrlObj),
  14055. options: localVarRequestOptions,
  14056. };
  14057. },
  14058. /**
  14059. *
  14060. * @param {boolean} [admin]
  14061. * @param {*} [options] Override http request option.
  14062. * @throws {RequiredError}
  14063. */
  14064. getUserCount: async (admin?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  14065. const localVarPath = `/user/count`;
  14066. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  14067. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  14068. let baseOptions;
  14069. if (configuration) {
  14070. baseOptions = configuration.baseOptions;
  14071. }
  14072. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  14073. const localVarHeaderParameter = {} as any;
  14074. const localVarQueryParameter = {} as any;
  14075. // authentication cookie required
  14076. // authentication api_key required
  14077. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  14078. // authentication bearer required
  14079. // http bearer authentication required
  14080. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  14081. if (admin !== undefined) {
  14082. localVarQueryParameter['admin'] = admin;
  14083. }
  14084. setSearchParams(localVarUrlObj, localVarQueryParameter);
  14085. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  14086. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  14087. return {
  14088. url: toPathString(localVarUrlObj),
  14089. options: localVarRequestOptions,
  14090. };
  14091. },
  14092. /**
  14093. *
  14094. * @param {string} id
  14095. * @param {*} [options] Override http request option.
  14096. * @throws {RequiredError}
  14097. */
  14098. restoreUser: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  14099. // verify required parameter 'id' is not null or undefined
  14100. assertParamExists('restoreUser', 'id', id)
  14101. const localVarPath = `/user/{id}/restore`
  14102. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  14103. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  14104. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  14105. let baseOptions;
  14106. if (configuration) {
  14107. baseOptions = configuration.baseOptions;
  14108. }
  14109. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  14110. const localVarHeaderParameter = {} as any;
  14111. const localVarQueryParameter = {} as any;
  14112. // authentication cookie required
  14113. // authentication api_key required
  14114. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  14115. // authentication bearer required
  14116. // http bearer authentication required
  14117. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  14118. setSearchParams(localVarUrlObj, localVarQueryParameter);
  14119. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  14120. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  14121. return {
  14122. url: toPathString(localVarUrlObj),
  14123. options: localVarRequestOptions,
  14124. };
  14125. },
  14126. /**
  14127. *
  14128. * @param {UpdateUserDto} updateUserDto
  14129. * @param {*} [options] Override http request option.
  14130. * @throws {RequiredError}
  14131. */
  14132. updateUser: async (updateUserDto: UpdateUserDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  14133. // verify required parameter 'updateUserDto' is not null or undefined
  14134. assertParamExists('updateUser', 'updateUserDto', updateUserDto)
  14135. const localVarPath = `/user`;
  14136. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  14137. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  14138. let baseOptions;
  14139. if (configuration) {
  14140. baseOptions = configuration.baseOptions;
  14141. }
  14142. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  14143. const localVarHeaderParameter = {} as any;
  14144. const localVarQueryParameter = {} as any;
  14145. // authentication cookie required
  14146. // authentication api_key required
  14147. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  14148. // authentication bearer required
  14149. // http bearer authentication required
  14150. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  14151. localVarHeaderParameter['Content-Type'] = 'application/json';
  14152. setSearchParams(localVarUrlObj, localVarQueryParameter);
  14153. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  14154. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  14155. localVarRequestOptions.data = serializeDataIfNeeded(updateUserDto, localVarRequestOptions, configuration)
  14156. return {
  14157. url: toPathString(localVarUrlObj),
  14158. options: localVarRequestOptions,
  14159. };
  14160. },
  14161. }
  14162. };
  14163. /**
  14164. * UserApi - functional programming interface
  14165. * @export
  14166. */
  14167. export const UserApiFp = function(configuration?: Configuration) {
  14168. const localVarAxiosParamCreator = UserApiAxiosParamCreator(configuration)
  14169. return {
  14170. /**
  14171. *
  14172. * @param {File} file
  14173. * @param {*} [options] Override http request option.
  14174. * @throws {RequiredError}
  14175. */
  14176. async createProfileImage(file: File, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateProfileImageResponseDto>> {
  14177. const localVarAxiosArgs = await localVarAxiosParamCreator.createProfileImage(file, options);
  14178. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  14179. },
  14180. /**
  14181. *
  14182. * @param {CreateUserDto} createUserDto
  14183. * @param {*} [options] Override http request option.
  14184. * @throws {RequiredError}
  14185. */
  14186. async createUser(createUserDto: CreateUserDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  14187. const localVarAxiosArgs = await localVarAxiosParamCreator.createUser(createUserDto, options);
  14188. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  14189. },
  14190. /**
  14191. *
  14192. * @param {string} id
  14193. * @param {*} [options] Override http request option.
  14194. * @throws {RequiredError}
  14195. */
  14196. async deleteUser(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  14197. const localVarAxiosArgs = await localVarAxiosParamCreator.deleteUser(id, options);
  14198. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  14199. },
  14200. /**
  14201. *
  14202. * @param {boolean} isAll
  14203. * @param {*} [options] Override http request option.
  14204. * @throws {RequiredError}
  14205. */
  14206. async getAllUsers(isAll: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<UserResponseDto>>> {
  14207. const localVarAxiosArgs = await localVarAxiosParamCreator.getAllUsers(isAll, options);
  14208. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  14209. },
  14210. /**
  14211. *
  14212. * @param {*} [options] Override http request option.
  14213. * @throws {RequiredError}
  14214. */
  14215. async getMyUserInfo(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  14216. const localVarAxiosArgs = await localVarAxiosParamCreator.getMyUserInfo(options);
  14217. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  14218. },
  14219. /**
  14220. *
  14221. * @param {string} id
  14222. * @param {*} [options] Override http request option.
  14223. * @throws {RequiredError}
  14224. */
  14225. async getProfileImage(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
  14226. const localVarAxiosArgs = await localVarAxiosParamCreator.getProfileImage(id, options);
  14227. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  14228. },
  14229. /**
  14230. *
  14231. * @param {string} id
  14232. * @param {*} [options] Override http request option.
  14233. * @throws {RequiredError}
  14234. */
  14235. async getUserById(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  14236. const localVarAxiosArgs = await localVarAxiosParamCreator.getUserById(id, options);
  14237. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  14238. },
  14239. /**
  14240. *
  14241. * @param {boolean} [admin]
  14242. * @param {*} [options] Override http request option.
  14243. * @throws {RequiredError}
  14244. */
  14245. async getUserCount(admin?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserCountResponseDto>> {
  14246. const localVarAxiosArgs = await localVarAxiosParamCreator.getUserCount(admin, options);
  14247. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  14248. },
  14249. /**
  14250. *
  14251. * @param {string} id
  14252. * @param {*} [options] Override http request option.
  14253. * @throws {RequiredError}
  14254. */
  14255. async restoreUser(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  14256. const localVarAxiosArgs = await localVarAxiosParamCreator.restoreUser(id, options);
  14257. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  14258. },
  14259. /**
  14260. *
  14261. * @param {UpdateUserDto} updateUserDto
  14262. * @param {*} [options] Override http request option.
  14263. * @throws {RequiredError}
  14264. */
  14265. async updateUser(updateUserDto: UpdateUserDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  14266. const localVarAxiosArgs = await localVarAxiosParamCreator.updateUser(updateUserDto, options);
  14267. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  14268. },
  14269. }
  14270. };
  14271. /**
  14272. * UserApi - factory interface
  14273. * @export
  14274. */
  14275. export const UserApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  14276. const localVarFp = UserApiFp(configuration)
  14277. return {
  14278. /**
  14279. *
  14280. * @param {UserApiCreateProfileImageRequest} requestParameters Request parameters.
  14281. * @param {*} [options] Override http request option.
  14282. * @throws {RequiredError}
  14283. */
  14284. createProfileImage(requestParameters: UserApiCreateProfileImageRequest, options?: AxiosRequestConfig): AxiosPromise<CreateProfileImageResponseDto> {
  14285. return localVarFp.createProfileImage(requestParameters.file, options).then((request) => request(axios, basePath));
  14286. },
  14287. /**
  14288. *
  14289. * @param {UserApiCreateUserRequest} requestParameters Request parameters.
  14290. * @param {*} [options] Override http request option.
  14291. * @throws {RequiredError}
  14292. */
  14293. createUser(requestParameters: UserApiCreateUserRequest, options?: AxiosRequestConfig): AxiosPromise<UserResponseDto> {
  14294. return localVarFp.createUser(requestParameters.createUserDto, options).then((request) => request(axios, basePath));
  14295. },
  14296. /**
  14297. *
  14298. * @param {UserApiDeleteUserRequest} requestParameters Request parameters.
  14299. * @param {*} [options] Override http request option.
  14300. * @throws {RequiredError}
  14301. */
  14302. deleteUser(requestParameters: UserApiDeleteUserRequest, options?: AxiosRequestConfig): AxiosPromise<UserResponseDto> {
  14303. return localVarFp.deleteUser(requestParameters.id, options).then((request) => request(axios, basePath));
  14304. },
  14305. /**
  14306. *
  14307. * @param {UserApiGetAllUsersRequest} requestParameters Request parameters.
  14308. * @param {*} [options] Override http request option.
  14309. * @throws {RequiredError}
  14310. */
  14311. getAllUsers(requestParameters: UserApiGetAllUsersRequest, options?: AxiosRequestConfig): AxiosPromise<Array<UserResponseDto>> {
  14312. return localVarFp.getAllUsers(requestParameters.isAll, options).then((request) => request(axios, basePath));
  14313. },
  14314. /**
  14315. *
  14316. * @param {*} [options] Override http request option.
  14317. * @throws {RequiredError}
  14318. */
  14319. getMyUserInfo(options?: AxiosRequestConfig): AxiosPromise<UserResponseDto> {
  14320. return localVarFp.getMyUserInfo(options).then((request) => request(axios, basePath));
  14321. },
  14322. /**
  14323. *
  14324. * @param {UserApiGetProfileImageRequest} requestParameters Request parameters.
  14325. * @param {*} [options] Override http request option.
  14326. * @throws {RequiredError}
  14327. */
  14328. getProfileImage(requestParameters: UserApiGetProfileImageRequest, options?: AxiosRequestConfig): AxiosPromise<object> {
  14329. return localVarFp.getProfileImage(requestParameters.id, options).then((request) => request(axios, basePath));
  14330. },
  14331. /**
  14332. *
  14333. * @param {UserApiGetUserByIdRequest} requestParameters Request parameters.
  14334. * @param {*} [options] Override http request option.
  14335. * @throws {RequiredError}
  14336. */
  14337. getUserById(requestParameters: UserApiGetUserByIdRequest, options?: AxiosRequestConfig): AxiosPromise<UserResponseDto> {
  14338. return localVarFp.getUserById(requestParameters.id, options).then((request) => request(axios, basePath));
  14339. },
  14340. /**
  14341. *
  14342. * @param {UserApiGetUserCountRequest} requestParameters Request parameters.
  14343. * @param {*} [options] Override http request option.
  14344. * @throws {RequiredError}
  14345. */
  14346. getUserCount(requestParameters: UserApiGetUserCountRequest = {}, options?: AxiosRequestConfig): AxiosPromise<UserCountResponseDto> {
  14347. return localVarFp.getUserCount(requestParameters.admin, options).then((request) => request(axios, basePath));
  14348. },
  14349. /**
  14350. *
  14351. * @param {UserApiRestoreUserRequest} requestParameters Request parameters.
  14352. * @param {*} [options] Override http request option.
  14353. * @throws {RequiredError}
  14354. */
  14355. restoreUser(requestParameters: UserApiRestoreUserRequest, options?: AxiosRequestConfig): AxiosPromise<UserResponseDto> {
  14356. return localVarFp.restoreUser(requestParameters.id, options).then((request) => request(axios, basePath));
  14357. },
  14358. /**
  14359. *
  14360. * @param {UserApiUpdateUserRequest} requestParameters Request parameters.
  14361. * @param {*} [options] Override http request option.
  14362. * @throws {RequiredError}
  14363. */
  14364. updateUser(requestParameters: UserApiUpdateUserRequest, options?: AxiosRequestConfig): AxiosPromise<UserResponseDto> {
  14365. return localVarFp.updateUser(requestParameters.updateUserDto, options).then((request) => request(axios, basePath));
  14366. },
  14367. };
  14368. };
  14369. /**
  14370. * Request parameters for createProfileImage operation in UserApi.
  14371. * @export
  14372. * @interface UserApiCreateProfileImageRequest
  14373. */
  14374. export interface UserApiCreateProfileImageRequest {
  14375. /**
  14376. *
  14377. * @type {File}
  14378. * @memberof UserApiCreateProfileImage
  14379. */
  14380. readonly file: File
  14381. }
  14382. /**
  14383. * Request parameters for createUser operation in UserApi.
  14384. * @export
  14385. * @interface UserApiCreateUserRequest
  14386. */
  14387. export interface UserApiCreateUserRequest {
  14388. /**
  14389. *
  14390. * @type {CreateUserDto}
  14391. * @memberof UserApiCreateUser
  14392. */
  14393. readonly createUserDto: CreateUserDto
  14394. }
  14395. /**
  14396. * Request parameters for deleteUser operation in UserApi.
  14397. * @export
  14398. * @interface UserApiDeleteUserRequest
  14399. */
  14400. export interface UserApiDeleteUserRequest {
  14401. /**
  14402. *
  14403. * @type {string}
  14404. * @memberof UserApiDeleteUser
  14405. */
  14406. readonly id: string
  14407. }
  14408. /**
  14409. * Request parameters for getAllUsers operation in UserApi.
  14410. * @export
  14411. * @interface UserApiGetAllUsersRequest
  14412. */
  14413. export interface UserApiGetAllUsersRequest {
  14414. /**
  14415. *
  14416. * @type {boolean}
  14417. * @memberof UserApiGetAllUsers
  14418. */
  14419. readonly isAll: boolean
  14420. }
  14421. /**
  14422. * Request parameters for getProfileImage operation in UserApi.
  14423. * @export
  14424. * @interface UserApiGetProfileImageRequest
  14425. */
  14426. export interface UserApiGetProfileImageRequest {
  14427. /**
  14428. *
  14429. * @type {string}
  14430. * @memberof UserApiGetProfileImage
  14431. */
  14432. readonly id: string
  14433. }
  14434. /**
  14435. * Request parameters for getUserById operation in UserApi.
  14436. * @export
  14437. * @interface UserApiGetUserByIdRequest
  14438. */
  14439. export interface UserApiGetUserByIdRequest {
  14440. /**
  14441. *
  14442. * @type {string}
  14443. * @memberof UserApiGetUserById
  14444. */
  14445. readonly id: string
  14446. }
  14447. /**
  14448. * Request parameters for getUserCount operation in UserApi.
  14449. * @export
  14450. * @interface UserApiGetUserCountRequest
  14451. */
  14452. export interface UserApiGetUserCountRequest {
  14453. /**
  14454. *
  14455. * @type {boolean}
  14456. * @memberof UserApiGetUserCount
  14457. */
  14458. readonly admin?: boolean
  14459. }
  14460. /**
  14461. * Request parameters for restoreUser operation in UserApi.
  14462. * @export
  14463. * @interface UserApiRestoreUserRequest
  14464. */
  14465. export interface UserApiRestoreUserRequest {
  14466. /**
  14467. *
  14468. * @type {string}
  14469. * @memberof UserApiRestoreUser
  14470. */
  14471. readonly id: string
  14472. }
  14473. /**
  14474. * Request parameters for updateUser operation in UserApi.
  14475. * @export
  14476. * @interface UserApiUpdateUserRequest
  14477. */
  14478. export interface UserApiUpdateUserRequest {
  14479. /**
  14480. *
  14481. * @type {UpdateUserDto}
  14482. * @memberof UserApiUpdateUser
  14483. */
  14484. readonly updateUserDto: UpdateUserDto
  14485. }
  14486. /**
  14487. * UserApi - object-oriented interface
  14488. * @export
  14489. * @class UserApi
  14490. * @extends {BaseAPI}
  14491. */
  14492. export class UserApi extends BaseAPI {
  14493. /**
  14494. *
  14495. * @param {UserApiCreateProfileImageRequest} requestParameters Request parameters.
  14496. * @param {*} [options] Override http request option.
  14497. * @throws {RequiredError}
  14498. * @memberof UserApi
  14499. */
  14500. public createProfileImage(requestParameters: UserApiCreateProfileImageRequest, options?: AxiosRequestConfig) {
  14501. return UserApiFp(this.configuration).createProfileImage(requestParameters.file, options).then((request) => request(this.axios, this.basePath));
  14502. }
  14503. /**
  14504. *
  14505. * @param {UserApiCreateUserRequest} requestParameters Request parameters.
  14506. * @param {*} [options] Override http request option.
  14507. * @throws {RequiredError}
  14508. * @memberof UserApi
  14509. */
  14510. public createUser(requestParameters: UserApiCreateUserRequest, options?: AxiosRequestConfig) {
  14511. return UserApiFp(this.configuration).createUser(requestParameters.createUserDto, options).then((request) => request(this.axios, this.basePath));
  14512. }
  14513. /**
  14514. *
  14515. * @param {UserApiDeleteUserRequest} requestParameters Request parameters.
  14516. * @param {*} [options] Override http request option.
  14517. * @throws {RequiredError}
  14518. * @memberof UserApi
  14519. */
  14520. public deleteUser(requestParameters: UserApiDeleteUserRequest, options?: AxiosRequestConfig) {
  14521. return UserApiFp(this.configuration).deleteUser(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  14522. }
  14523. /**
  14524. *
  14525. * @param {UserApiGetAllUsersRequest} requestParameters Request parameters.
  14526. * @param {*} [options] Override http request option.
  14527. * @throws {RequiredError}
  14528. * @memberof UserApi
  14529. */
  14530. public getAllUsers(requestParameters: UserApiGetAllUsersRequest, options?: AxiosRequestConfig) {
  14531. return UserApiFp(this.configuration).getAllUsers(requestParameters.isAll, options).then((request) => request(this.axios, this.basePath));
  14532. }
  14533. /**
  14534. *
  14535. * @param {*} [options] Override http request option.
  14536. * @throws {RequiredError}
  14537. * @memberof UserApi
  14538. */
  14539. public getMyUserInfo(options?: AxiosRequestConfig) {
  14540. return UserApiFp(this.configuration).getMyUserInfo(options).then((request) => request(this.axios, this.basePath));
  14541. }
  14542. /**
  14543. *
  14544. * @param {UserApiGetProfileImageRequest} requestParameters Request parameters.
  14545. * @param {*} [options] Override http request option.
  14546. * @throws {RequiredError}
  14547. * @memberof UserApi
  14548. */
  14549. public getProfileImage(requestParameters: UserApiGetProfileImageRequest, options?: AxiosRequestConfig) {
  14550. return UserApiFp(this.configuration).getProfileImage(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  14551. }
  14552. /**
  14553. *
  14554. * @param {UserApiGetUserByIdRequest} requestParameters Request parameters.
  14555. * @param {*} [options] Override http request option.
  14556. * @throws {RequiredError}
  14557. * @memberof UserApi
  14558. */
  14559. public getUserById(requestParameters: UserApiGetUserByIdRequest, options?: AxiosRequestConfig) {
  14560. return UserApiFp(this.configuration).getUserById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  14561. }
  14562. /**
  14563. *
  14564. * @param {UserApiGetUserCountRequest} requestParameters Request parameters.
  14565. * @param {*} [options] Override http request option.
  14566. * @throws {RequiredError}
  14567. * @memberof UserApi
  14568. */
  14569. public getUserCount(requestParameters: UserApiGetUserCountRequest = {}, options?: AxiosRequestConfig) {
  14570. return UserApiFp(this.configuration).getUserCount(requestParameters.admin, options).then((request) => request(this.axios, this.basePath));
  14571. }
  14572. /**
  14573. *
  14574. * @param {UserApiRestoreUserRequest} requestParameters Request parameters.
  14575. * @param {*} [options] Override http request option.
  14576. * @throws {RequiredError}
  14577. * @memberof UserApi
  14578. */
  14579. public restoreUser(requestParameters: UserApiRestoreUserRequest, options?: AxiosRequestConfig) {
  14580. return UserApiFp(this.configuration).restoreUser(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  14581. }
  14582. /**
  14583. *
  14584. * @param {UserApiUpdateUserRequest} requestParameters Request parameters.
  14585. * @param {*} [options] Override http request option.
  14586. * @throws {RequiredError}
  14587. * @memberof UserApi
  14588. */
  14589. public updateUser(requestParameters: UserApiUpdateUserRequest, options?: AxiosRequestConfig) {
  14590. return UserApiFp(this.configuration).updateUser(requestParameters.updateUserDto, options).then((request) => request(this.axios, this.basePath));
  14591. }
  14592. }